diff --git a/.tx/config b/.tx/config index e567d04e89..dd68af0cf0 100644 --- a/.tx/config +++ b/.tx/config @@ -1,2507 +1,2442 @@ [main] host = https://www.transifex.com -[o:python-doc:p:python-newest:r:about] +[o:python-doc:p:python-310:r:about] file_filter = about.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:bugs] +[o:python-doc:p:python-310:r:bugs] file_filter = bugs.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--abstract] +[o:python-doc:p:python-310:r:c-api--abstract] file_filter = c-api/abstract.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--allocation] +[o:python-doc:p:python-310:r:c-api--allocation] file_filter = c-api/allocation.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--apiabiversion] +[o:python-doc:p:python-310:r:c-api--apiabiversion] file_filter = c-api/apiabiversion.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--arg] +[o:python-doc:p:python-310:r:c-api--arg] file_filter = c-api/arg.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--bool] +[o:python-doc:p:python-310:r:c-api--bool] file_filter = c-api/bool.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--buffer] +[o:python-doc:p:python-310:r:c-api--buffer] file_filter = c-api/buffer.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--bytearray] +[o:python-doc:p:python-310:r:c-api--bytearray] file_filter = c-api/bytearray.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--bytes] +[o:python-doc:p:python-310:r:c-api--bytes] file_filter = c-api/bytes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--call] +[o:python-doc:p:python-310:r:c-api--call] file_filter = c-api/call.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--capsule] +[o:python-doc:p:python-310:r:c-api--capsule] file_filter = c-api/capsule.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--cell] +[o:python-doc:p:python-310:r:c-api--cell] file_filter = c-api/cell.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--code] +[o:python-doc:p:python-310:r:c-api--code] file_filter = c-api/code.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--codec] +[o:python-doc:p:python-310:r:c-api--codec] file_filter = c-api/codec.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--complex] +[o:python-doc:p:python-310:r:c-api--complex] file_filter = c-api/complex.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--concrete] +[o:python-doc:p:python-310:r:c-api--concrete] file_filter = c-api/concrete.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--contextvars] +[o:python-doc:p:python-310:r:c-api--contextvars] file_filter = c-api/contextvars.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--conversion] +[o:python-doc:p:python-310:r:c-api--conversion] file_filter = c-api/conversion.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--coro] +[o:python-doc:p:python-310:r:c-api--coro] file_filter = c-api/coro.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--datetime] +[o:python-doc:p:python-310:r:c-api--datetime] file_filter = c-api/datetime.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--descriptor] +[o:python-doc:p:python-310:r:c-api--descriptor] file_filter = c-api/descriptor.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--dict] +[o:python-doc:p:python-310:r:c-api--dict] file_filter = c-api/dict.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--exceptions] +[o:python-doc:p:python-310:r:c-api--exceptions] file_filter = c-api/exceptions.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--file] +[o:python-doc:p:python-310:r:c-api--file] file_filter = c-api/file.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--float] +[o:python-doc:p:python-310:r:c-api--float] file_filter = c-api/float.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--frame] -file_filter = c-api/frame.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:c-api--function] +[o:python-doc:p:python-310:r:c-api--function] file_filter = c-api/function.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--gcsupport] +[o:python-doc:p:python-310:r:c-api--gcsupport] file_filter = c-api/gcsupport.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--gen] +[o:python-doc:p:python-310:r:c-api--gen] file_filter = c-api/gen.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--import] +[o:python-doc:p:python-310:r:c-api--import] file_filter = c-api/import.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--index] +[o:python-doc:p:python-310:r:c-api--index] file_filter = c-api/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--init] +[o:python-doc:p:python-310:r:c-api--init] file_filter = c-api/init.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--init_config] +[o:python-doc:p:python-310:r:c-api--init_config] file_filter = c-api/init_config.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--intro] +[o:python-doc:p:python-310:r:c-api--intro] file_filter = c-api/intro.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--iter] +[o:python-doc:p:python-310:r:c-api--iter] file_filter = c-api/iter.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--iterator] +[o:python-doc:p:python-310:r:c-api--iterator] file_filter = c-api/iterator.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--list] +[o:python-doc:p:python-310:r:c-api--list] file_filter = c-api/list.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--long] +[o:python-doc:p:python-310:r:c-api--long] file_filter = c-api/long.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--mapping] +[o:python-doc:p:python-310:r:c-api--mapping] file_filter = c-api/mapping.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--marshal] +[o:python-doc:p:python-310:r:c-api--marshal] file_filter = c-api/marshal.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--memory] +[o:python-doc:p:python-310:r:c-api--memory] file_filter = c-api/memory.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--memoryview] +[o:python-doc:p:python-310:r:c-api--memoryview] file_filter = c-api/memoryview.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--method] +[o:python-doc:p:python-310:r:c-api--method] file_filter = c-api/method.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--module] +[o:python-doc:p:python-310:r:c-api--module] file_filter = c-api/module.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--none] +[o:python-doc:p:python-310:r:c-api--none] file_filter = c-api/none.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--number] +[o:python-doc:p:python-310:r:c-api--number] file_filter = c-api/number.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--objbuffer] +[o:python-doc:p:python-310:r:c-api--objbuffer] file_filter = c-api/objbuffer.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--object] +[o:python-doc:p:python-310:r:c-api--object] file_filter = c-api/object.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--objimpl] +[o:python-doc:p:python-310:r:c-api--objimpl] file_filter = c-api/objimpl.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--refcounting] +[o:python-doc:p:python-310:r:c-api--refcounting] file_filter = c-api/refcounting.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--reflection] +[o:python-doc:p:python-310:r:c-api--reflection] file_filter = c-api/reflection.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--sequence] +[o:python-doc:p:python-310:r:c-api--sequence] file_filter = c-api/sequence.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--set] +[o:python-doc:p:python-310:r:c-api--set] file_filter = c-api/set.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--slice] +[o:python-doc:p:python-310:r:c-api--slice] file_filter = c-api/slice.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--stable] +[o:python-doc:p:python-310:r:c-api--stable] file_filter = c-api/stable.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--structures] +[o:python-doc:p:python-310:r:c-api--structures] file_filter = c-api/structures.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--sys] +[o:python-doc:p:python-310:r:c-api--sys] file_filter = c-api/sys.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--tuple] +[o:python-doc:p:python-310:r:c-api--tuple] file_filter = c-api/tuple.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--type] +[o:python-doc:p:python-310:r:c-api--type] file_filter = c-api/type.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--typehints] +[o:python-doc:p:python-310:r:c-api--typehints] file_filter = c-api/typehints.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--typeobj] +[o:python-doc:p:python-310:r:c-api--typeobj] file_filter = c-api/typeobj.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--unicode] +[o:python-doc:p:python-310:r:c-api--unicode] file_filter = c-api/unicode.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--utilities] +[o:python-doc:p:python-310:r:c-api--utilities] file_filter = c-api/utilities.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--veryhigh] +[o:python-doc:p:python-310:r:c-api--veryhigh] file_filter = c-api/veryhigh.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:c-api--weakref] +[o:python-doc:p:python-310:r:c-api--weakref] file_filter = c-api/weakref.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:contents] +[o:python-doc:p:python-310:r:contents] file_filter = contents.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:copyright] +[o:python-doc:p:python-310:r:copyright] file_filter = copyright.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distributing--index] +[o:python-doc:p:python-310:r:distributing--index] file_filter = distributing/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--apiref] +[o:python-doc:p:python-310:r:distutils--apiref] file_filter = distutils/apiref.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--builtdist] +[o:python-doc:p:python-310:r:distutils--builtdist] file_filter = distutils/builtdist.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--commandref] +[o:python-doc:p:python-310:r:distutils--commandref] file_filter = distutils/commandref.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--configfile] +[o:python-doc:p:python-310:r:distutils--configfile] file_filter = distutils/configfile.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--examples] +[o:python-doc:p:python-310:r:distutils--examples] file_filter = distutils/examples.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--extending] +[o:python-doc:p:python-310:r:distutils--extending] file_filter = distutils/extending.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--index] +[o:python-doc:p:python-310:r:distutils--index] file_filter = distutils/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--introduction] +[o:python-doc:p:python-310:r:distutils--introduction] file_filter = distutils/introduction.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--packageindex] +[o:python-doc:p:python-310:r:distutils--packageindex] file_filter = distutils/packageindex.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--setupscript] +[o:python-doc:p:python-310:r:distutils--setupscript] file_filter = distutils/setupscript.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--_setuptools_disclaimer] +[o:python-doc:p:python-310:r:distutils--_setuptools_disclaimer] file_filter = distutils/_setuptools_disclaimer.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--sourcedist] +[o:python-doc:p:python-310:r:distutils--sourcedist] file_filter = distutils/sourcedist.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:distutils--uploading] +[o:python-doc:p:python-310:r:distutils--uploading] file_filter = distutils/uploading.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--building] +[o:python-doc:p:python-310:r:extending--building] file_filter = extending/building.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--embedding] +[o:python-doc:p:python-310:r:extending--embedding] file_filter = extending/embedding.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--extending] +[o:python-doc:p:python-310:r:extending--extending] file_filter = extending/extending.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--index] +[o:python-doc:p:python-310:r:extending--index] file_filter = extending/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--newtypes] +[o:python-doc:p:python-310:r:extending--newtypes] file_filter = extending/newtypes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--newtypes_tutorial] +[o:python-doc:p:python-310:r:extending--newtypes_tutorial] file_filter = extending/newtypes_tutorial.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:extending--windows] +[o:python-doc:p:python-310:r:extending--windows] file_filter = extending/windows.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--design] +[o:python-doc:p:python-310:r:faq--design] file_filter = faq/design.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--extending] +[o:python-doc:p:python-310:r:faq--extending] file_filter = faq/extending.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--general] +[o:python-doc:p:python-310:r:faq--general] file_filter = faq/general.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--gui] +[o:python-doc:p:python-310:r:faq--gui] file_filter = faq/gui.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--index] +[o:python-doc:p:python-310:r:faq--index] file_filter = faq/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--installed] +[o:python-doc:p:python-310:r:faq--installed] file_filter = faq/installed.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--library] +[o:python-doc:p:python-310:r:faq--library] file_filter = faq/library.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--programming] +[o:python-doc:p:python-310:r:faq--programming] file_filter = faq/programming.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:faq--windows] +[o:python-doc:p:python-310:r:faq--windows] file_filter = faq/windows.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:glossary_] +[o:python-doc:p:python-310:r:glossary_] file_filter = glossary.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--annotations] +[o:python-doc:p:python-310:r:howto--annotations] file_filter = howto/annotations.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--argparse] +[o:python-doc:p:python-310:r:howto--argparse] file_filter = howto/argparse.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--clinic] +[o:python-doc:p:python-310:r:howto--clinic] file_filter = howto/clinic.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--cporting] +[o:python-doc:p:python-310:r:howto--cporting] file_filter = howto/cporting.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--curses] +[o:python-doc:p:python-310:r:howto--curses] file_filter = howto/curses.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--descriptor] +[o:python-doc:p:python-310:r:howto--descriptor] file_filter = howto/descriptor.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--enum] -file_filter = howto/enum.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:howto--functional] +[o:python-doc:p:python-310:r:howto--functional] file_filter = howto/functional.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--index] +[o:python-doc:p:python-310:r:howto--index] file_filter = howto/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--instrumentation] +[o:python-doc:p:python-310:r:howto--instrumentation] file_filter = howto/instrumentation.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--ipaddress] +[o:python-doc:p:python-310:r:howto--ipaddress] file_filter = howto/ipaddress.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--isolating-extensions] -file_filter = howto/isolating-extensions.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:howto--logging] +[o:python-doc:p:python-310:r:howto--logging] file_filter = howto/logging.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--logging-cookbook] +[o:python-doc:p:python-310:r:howto--logging-cookbook] file_filter = howto/logging-cookbook.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--pyporting] +[o:python-doc:p:python-310:r:howto--pyporting] file_filter = howto/pyporting.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--regex] +[o:python-doc:p:python-310:r:howto--regex] file_filter = howto/regex.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--sockets] +[o:python-doc:p:python-310:r:howto--sockets] file_filter = howto/sockets.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--sorting] +[o:python-doc:p:python-310:r:howto--sorting] file_filter = howto/sorting.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--unicode] +[o:python-doc:p:python-310:r:howto--unicode] file_filter = howto/unicode.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:howto--urllib2] +[o:python-doc:p:python-310:r:howto--urllib2] file_filter = howto/urllib2.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:includes--wasm-notavail] -file_filter = includes/wasm-notavail.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:install--index] +[o:python-doc:p:python-310:r:install--index] file_filter = install/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:installing--index] +[o:python-doc:p:python-310:r:installing--index] file_filter = installing/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--2to3] +[o:python-doc:p:python-310:r:library--2to3] file_filter = library/2to3.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--abc] +[o:python-doc:p:python-310:r:library--abc] file_filter = library/abc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--aifc] +[o:python-doc:p:python-310:r:library--aifc] file_filter = library/aifc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--allos] +[o:python-doc:p:python-310:r:library--allos] file_filter = library/allos.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--archiving] +[o:python-doc:p:python-310:r:library--archiving] file_filter = library/archiving.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--argparse] +[o:python-doc:p:python-310:r:library--argparse] file_filter = library/argparse.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--array] +[o:python-doc:p:python-310:r:library--array] file_filter = library/array.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ast] +[o:python-doc:p:python-310:r:library--ast] file_filter = library/ast.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asynchat] +[o:python-doc:p:python-310:r:library--asynchat] file_filter = library/asynchat.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio] +[o:python-doc:p:python-310:r:library--asyncio] file_filter = library/asyncio.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-api-index] +[o:python-doc:p:python-310:r:library--asyncio-api-index] file_filter = library/asyncio-api-index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-dev] +[o:python-doc:p:python-310:r:library--asyncio-dev] file_filter = library/asyncio-dev.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-eventloop] +[o:python-doc:p:python-310:r:library--asyncio-eventloop] file_filter = library/asyncio-eventloop.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-exceptions] +[o:python-doc:p:python-310:r:library--asyncio-exceptions] file_filter = library/asyncio-exceptions.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-extending] -file_filter = library/asyncio-extending.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--asyncio-future] +[o:python-doc:p:python-310:r:library--asyncio-future] file_filter = library/asyncio-future.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-llapi-index] +[o:python-doc:p:python-310:r:library--asyncio-llapi-index] file_filter = library/asyncio-llapi-index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-platforms] +[o:python-doc:p:python-310:r:library--asyncio-platforms] file_filter = library/asyncio-platforms.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-policy] +[o:python-doc:p:python-310:r:library--asyncio-policy] file_filter = library/asyncio-policy.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-protocol] +[o:python-doc:p:python-310:r:library--asyncio-protocol] file_filter = library/asyncio-protocol.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-queue] +[o:python-doc:p:python-310:r:library--asyncio-queue] file_filter = library/asyncio-queue.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-runner] -file_filter = library/asyncio-runner.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--asyncio-stream] +[o:python-doc:p:python-310:r:library--asyncio-stream] file_filter = library/asyncio-stream.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-subprocess] +[o:python-doc:p:python-310:r:library--asyncio-subprocess] file_filter = library/asyncio-subprocess.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-sync] +[o:python-doc:p:python-310:r:library--asyncio-sync] file_filter = library/asyncio-sync.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncio-task] +[o:python-doc:p:python-310:r:library--asyncio-task] file_filter = library/asyncio-task.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--asyncore] +[o:python-doc:p:python-310:r:library--asyncore] file_filter = library/asyncore.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--atexit] +[o:python-doc:p:python-310:r:library--atexit] file_filter = library/atexit.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--audioop] +[o:python-doc:p:python-310:r:library--audioop] file_filter = library/audioop.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--audit_events] +[o:python-doc:p:python-310:r:library--audit_events] file_filter = library/audit_events.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--base64] +[o:python-doc:p:python-310:r:library--base64] file_filter = library/base64.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--bdb] +[o:python-doc:p:python-310:r:library--bdb] file_filter = library/bdb.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--binary] +[o:python-doc:p:python-310:r:library--binary] file_filter = library/binary.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--binascii] +[o:python-doc:p:python-310:r:library--binascii] file_filter = library/binascii.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--binhex] +[o:python-doc:p:python-310:r:library--binhex] file_filter = library/binhex.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--bisect] +[o:python-doc:p:python-310:r:library--bisect] file_filter = library/bisect.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--builtins] +[o:python-doc:p:python-310:r:library--builtins] file_filter = library/builtins.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--bz2] +[o:python-doc:p:python-310:r:library--bz2] file_filter = library/bz2.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--calendar] +[o:python-doc:p:python-310:r:library--calendar] file_filter = library/calendar.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--cgi] +[o:python-doc:p:python-310:r:library--cgi] file_filter = library/cgi.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--cgitb] +[o:python-doc:p:python-310:r:library--cgitb] file_filter = library/cgitb.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--chunk] +[o:python-doc:p:python-310:r:library--chunk] file_filter = library/chunk.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--cmath] +[o:python-doc:p:python-310:r:library--cmath] file_filter = library/cmath.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--cmd] +[o:python-doc:p:python-310:r:library--cmd] file_filter = library/cmd.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--code] +[o:python-doc:p:python-310:r:library--code] file_filter = library/code.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--codecs] +[o:python-doc:p:python-310:r:library--codecs] file_filter = library/codecs.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--codeop] +[o:python-doc:p:python-310:r:library--codeop] file_filter = library/codeop.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--collections] +[o:python-doc:p:python-310:r:library--collections] file_filter = library/collections.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--collections_abc] +[o:python-doc:p:python-310:r:library--collections_abc] file_filter = library/collections_abc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--colorsys] +[o:python-doc:p:python-310:r:library--colorsys] file_filter = library/colorsys.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--compileall] +[o:python-doc:p:python-310:r:library--compileall] file_filter = library/compileall.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--concurrency] +[o:python-doc:p:python-310:r:library--concurrency] file_filter = library/concurrency.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--concurrent] +[o:python-doc:p:python-310:r:library--concurrent] file_filter = library/concurrent.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--concurrent_futures] +[o:python-doc:p:python-310:r:library--concurrent_futures] file_filter = library/concurrent_futures.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--configparser] +[o:python-doc:p:python-310:r:library--configparser] file_filter = library/configparser.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--constants] +[o:python-doc:p:python-310:r:library--constants] file_filter = library/constants.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--contextlib] +[o:python-doc:p:python-310:r:library--contextlib] file_filter = library/contextlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--contextvars] +[o:python-doc:p:python-310:r:library--contextvars] file_filter = library/contextvars.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--copy] +[o:python-doc:p:python-310:r:library--copy] file_filter = library/copy.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--copyreg] +[o:python-doc:p:python-310:r:library--copyreg] file_filter = library/copyreg.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--crypt] +[o:python-doc:p:python-310:r:library--crypt] file_filter = library/crypt.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--crypto] +[o:python-doc:p:python-310:r:library--crypto] file_filter = library/crypto.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--csv] +[o:python-doc:p:python-310:r:library--csv] file_filter = library/csv.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ctypes] +[o:python-doc:p:python-310:r:library--ctypes] file_filter = library/ctypes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--curses] +[o:python-doc:p:python-310:r:library--curses] file_filter = library/curses.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--curses_ascii] +[o:python-doc:p:python-310:r:library--curses_ascii] file_filter = library/curses_ascii.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--curses_panel] +[o:python-doc:p:python-310:r:library--curses_panel] file_filter = library/curses_panel.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--custominterp] +[o:python-doc:p:python-310:r:library--custominterp] file_filter = library/custominterp.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--dataclasses] +[o:python-doc:p:python-310:r:library--dataclasses] file_filter = library/dataclasses.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--datatypes] +[o:python-doc:p:python-310:r:library--datatypes] file_filter = library/datatypes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--datetime] +[o:python-doc:p:python-310:r:library--datetime] file_filter = library/datetime.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--dbm] +[o:python-doc:p:python-310:r:library--dbm] file_filter = library/dbm.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--debug] +[o:python-doc:p:python-310:r:library--debug] file_filter = library/debug.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--decimal] +[o:python-doc:p:python-310:r:library--decimal] file_filter = library/decimal.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--development] +[o:python-doc:p:python-310:r:library--development] file_filter = library/development.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--devmode] +[o:python-doc:p:python-310:r:library--devmode] file_filter = library/devmode.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--dialog] +[o:python-doc:p:python-310:r:library--dialog] file_filter = library/dialog.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--difflib] +[o:python-doc:p:python-310:r:library--difflib] file_filter = library/difflib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--dis] +[o:python-doc:p:python-310:r:library--dis] file_filter = library/dis.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--distribution] +[o:python-doc:p:python-310:r:library--distribution] file_filter = library/distribution.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--distutils] +[o:python-doc:p:python-310:r:library--distutils] file_filter = library/distutils.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--doctest] +[o:python-doc:p:python-310:r:library--doctest] file_filter = library/doctest.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email] +[o:python-doc:p:python-310:r:library--email] file_filter = library/email.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_charset] +[o:python-doc:p:python-310:r:library--email_charset] file_filter = library/email_charset.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_compat32-message] +[o:python-doc:p:python-310:r:library--email_compat32-message] file_filter = library/email_compat32-message.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_contentmanager] +[o:python-doc:p:python-310:r:library--email_contentmanager] file_filter = library/email_contentmanager.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_encoders] +[o:python-doc:p:python-310:r:library--email_encoders] file_filter = library/email_encoders.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_errors] +[o:python-doc:p:python-310:r:library--email_errors] file_filter = library/email_errors.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_examples] +[o:python-doc:p:python-310:r:library--email_examples] file_filter = library/email_examples.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_generator] +[o:python-doc:p:python-310:r:library--email_generator] file_filter = library/email_generator.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_header] +[o:python-doc:p:python-310:r:library--email_header] file_filter = library/email_header.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_headerregistry] +[o:python-doc:p:python-310:r:library--email_headerregistry] file_filter = library/email_headerregistry.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_iterators] +[o:python-doc:p:python-310:r:library--email_iterators] file_filter = library/email_iterators.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_message] +[o:python-doc:p:python-310:r:library--email_message] file_filter = library/email_message.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_mime] +[o:python-doc:p:python-310:r:library--email_mime] file_filter = library/email_mime.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_parser] +[o:python-doc:p:python-310:r:library--email_parser] file_filter = library/email_parser.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_policy] +[o:python-doc:p:python-310:r:library--email_policy] file_filter = library/email_policy.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--email_utils] +[o:python-doc:p:python-310:r:library--email_utils] file_filter = library/email_utils.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ensurepip] +[o:python-doc:p:python-310:r:library--ensurepip] file_filter = library/ensurepip.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--enum] +[o:python-doc:p:python-310:r:library--enum] file_filter = library/enum.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--errno] +[o:python-doc:p:python-310:r:library--errno] file_filter = library/errno.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--exceptions] +[o:python-doc:p:python-310:r:library--exceptions] file_filter = library/exceptions.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--faulthandler] +[o:python-doc:p:python-310:r:library--faulthandler] file_filter = library/faulthandler.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--fcntl] +[o:python-doc:p:python-310:r:library--fcntl] file_filter = library/fcntl.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--filecmp] +[o:python-doc:p:python-310:r:library--filecmp] file_filter = library/filecmp.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--fileformats] +[o:python-doc:p:python-310:r:library--fileformats] file_filter = library/fileformats.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--fileinput] +[o:python-doc:p:python-310:r:library--fileinput] file_filter = library/fileinput.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--filesys] +[o:python-doc:p:python-310:r:library--filesys] file_filter = library/filesys.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--fnmatch] +[o:python-doc:p:python-310:r:library--fnmatch] file_filter = library/fnmatch.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--fractions] +[o:python-doc:p:python-310:r:library--fractions] file_filter = library/fractions.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--frameworks] +[o:python-doc:p:python-310:r:library--frameworks] file_filter = library/frameworks.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ftplib] +[o:python-doc:p:python-310:r:library--ftplib] file_filter = library/ftplib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--functional] +[o:python-doc:p:python-310:r:library--functional] file_filter = library/functional.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--functions] +[o:python-doc:p:python-310:r:library--functions] file_filter = library/functions.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--functools] +[o:python-doc:p:python-310:r:library--functools] file_filter = library/functools.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--__future__] +[o:python-doc:p:python-310:r:library--__future__] file_filter = library/__future__.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--gc] +[o:python-doc:p:python-310:r:library--gc] file_filter = library/gc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--getopt] +[o:python-doc:p:python-310:r:library--getopt] file_filter = library/getopt.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--getpass] +[o:python-doc:p:python-310:r:library--getpass] file_filter = library/getpass.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--gettext] +[o:python-doc:p:python-310:r:library--gettext] file_filter = library/gettext.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--glob] +[o:python-doc:p:python-310:r:library--glob] file_filter = library/glob.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--graphlib] +[o:python-doc:p:python-310:r:library--graphlib] file_filter = library/graphlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--grp] +[o:python-doc:p:python-310:r:library--grp] file_filter = library/grp.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--gzip] +[o:python-doc:p:python-310:r:library--gzip] file_filter = library/gzip.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--hashlib] +[o:python-doc:p:python-310:r:library--hashlib] file_filter = library/hashlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--heapq] +[o:python-doc:p:python-310:r:library--heapq] file_filter = library/heapq.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--hmac] +[o:python-doc:p:python-310:r:library--hmac] file_filter = library/hmac.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--html] +[o:python-doc:p:python-310:r:library--html] file_filter = library/html.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--html_entities] +[o:python-doc:p:python-310:r:library--html_entities] file_filter = library/html_entities.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--html_parser] +[o:python-doc:p:python-310:r:library--html_parser] file_filter = library/html_parser.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--http] +[o:python-doc:p:python-310:r:library--http] file_filter = library/http.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--http_client] +[o:python-doc:p:python-310:r:library--http_client] file_filter = library/http_client.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--http_cookiejar] +[o:python-doc:p:python-310:r:library--http_cookiejar] file_filter = library/http_cookiejar.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--http_cookies] +[o:python-doc:p:python-310:r:library--http_cookies] file_filter = library/http_cookies.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--http_server] +[o:python-doc:p:python-310:r:library--http_server] file_filter = library/http_server.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--i18n] +[o:python-doc:p:python-310:r:library--i18n] file_filter = library/i18n.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--idle] +[o:python-doc:p:python-310:r:library--idle] file_filter = library/idle.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--imaplib] +[o:python-doc:p:python-310:r:library--imaplib] file_filter = library/imaplib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--imghdr] +[o:python-doc:p:python-310:r:library--imghdr] file_filter = library/imghdr.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--imp] +[o:python-doc:p:python-310:r:library--imp] file_filter = library/imp.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--importlib] +[o:python-doc:p:python-310:r:library--importlib] file_filter = library/importlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--importlib_metadata] +[o:python-doc:p:python-310:r:library--importlib_metadata] file_filter = library/importlib_metadata.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--importlib_resources] -file_filter = library/importlib_resources.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--importlib_resources_abc] -file_filter = library/importlib_resources_abc.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--index] +[o:python-doc:p:python-310:r:library--index] file_filter = library/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--inspect] +[o:python-doc:p:python-310:r:library--inspect] file_filter = library/inspect.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--internet] +[o:python-doc:p:python-310:r:library--internet] file_filter = library/internet.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--intro] +[o:python-doc:p:python-310:r:library--intro] file_filter = library/intro.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--io] +[o:python-doc:p:python-310:r:library--io] file_filter = library/io.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ipaddress] +[o:python-doc:p:python-310:r:library--ipaddress] file_filter = library/ipaddress.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ipc] +[o:python-doc:p:python-310:r:library--ipc] file_filter = library/ipc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--itertools] +[o:python-doc:p:python-310:r:library--itertools] file_filter = library/itertools.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--json] +[o:python-doc:p:python-310:r:library--json] file_filter = library/json.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--keyword] +[o:python-doc:p:python-310:r:library--keyword] file_filter = library/keyword.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--language] +[o:python-doc:p:python-310:r:library--language] file_filter = library/language.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--linecache] +[o:python-doc:p:python-310:r:library--linecache] file_filter = library/linecache.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--locale] +[o:python-doc:p:python-310:r:library--locale] file_filter = library/locale.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--logging] +[o:python-doc:p:python-310:r:library--logging] file_filter = library/logging.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--logging_config] +[o:python-doc:p:python-310:r:library--logging_config] file_filter = library/logging_config.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--logging_handlers] +[o:python-doc:p:python-310:r:library--logging_handlers] file_filter = library/logging_handlers.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--lzma] +[o:python-doc:p:python-310:r:library--lzma] file_filter = library/lzma.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--mailbox] +[o:python-doc:p:python-310:r:library--mailbox] file_filter = library/mailbox.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--mailcap] +[o:python-doc:p:python-310:r:library--mailcap] file_filter = library/mailcap.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--__main__] +[o:python-doc:p:python-310:r:library--__main__] file_filter = library/__main__.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--markup] +[o:python-doc:p:python-310:r:library--markup] file_filter = library/markup.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--marshal] +[o:python-doc:p:python-310:r:library--marshal] file_filter = library/marshal.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--math] +[o:python-doc:p:python-310:r:library--math] file_filter = library/math.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--mimetypes] +[o:python-doc:p:python-310:r:library--mimetypes] file_filter = library/mimetypes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--mm] +[o:python-doc:p:python-310:r:library--mm] file_filter = library/mm.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--mmap] +[o:python-doc:p:python-310:r:library--mmap] file_filter = library/mmap.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--modulefinder] +[o:python-doc:p:python-310:r:library--modulefinder] file_filter = library/modulefinder.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--modules] +[o:python-doc:p:python-310:r:library--modules] file_filter = library/modules.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--msilib] +[o:python-doc:p:python-310:r:library--msilib] file_filter = library/msilib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--msvcrt] +[o:python-doc:p:python-310:r:library--msvcrt] file_filter = library/msvcrt.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--multiprocessing] +[o:python-doc:p:python-310:r:library--multiprocessing] file_filter = library/multiprocessing.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--multiprocessing_shared_memory] +[o:python-doc:p:python-310:r:library--multiprocessing_shared_memory] file_filter = library/multiprocessing_shared_memory.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--netdata] +[o:python-doc:p:python-310:r:library--netdata] file_filter = library/netdata.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--netrc] +[o:python-doc:p:python-310:r:library--netrc] file_filter = library/netrc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--nis] +[o:python-doc:p:python-310:r:library--nis] file_filter = library/nis.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--nntplib] +[o:python-doc:p:python-310:r:library--nntplib] file_filter = library/nntplib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--numbers] +[o:python-doc:p:python-310:r:library--numbers] file_filter = library/numbers.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--numeric] +[o:python-doc:p:python-310:r:library--numeric] file_filter = library/numeric.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--operator] +[o:python-doc:p:python-310:r:library--operator] file_filter = library/operator.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--optparse] +[o:python-doc:p:python-310:r:library--optparse] file_filter = library/optparse.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--os] +[o:python-doc:p:python-310:r:library--os] file_filter = library/os.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--os_path] +[o:python-doc:p:python-310:r:library--os_path] file_filter = library/os_path.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ossaudiodev] +[o:python-doc:p:python-310:r:library--ossaudiodev] file_filter = library/ossaudiodev.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--othergui] -file_filter = library/othergui.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--pathlib] +[o:python-doc:p:python-310:r:library--pathlib] file_filter = library/pathlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pdb] +[o:python-doc:p:python-310:r:library--pdb] file_filter = library/pdb.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--persistence] +[o:python-doc:p:python-310:r:library--persistence] file_filter = library/persistence.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pickle] +[o:python-doc:p:python-310:r:library--pickle] file_filter = library/pickle.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pickletools] +[o:python-doc:p:python-310:r:library--pickletools] file_filter = library/pickletools.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pipes] +[o:python-doc:p:python-310:r:library--pipes] file_filter = library/pipes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pkgutil] +[o:python-doc:p:python-310:r:library--pkgutil] file_filter = library/pkgutil.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--platform] +[o:python-doc:p:python-310:r:library--platform] file_filter = library/platform.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--plistlib] +[o:python-doc:p:python-310:r:library--plistlib] file_filter = library/plistlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--poplib] +[o:python-doc:p:python-310:r:library--poplib] file_filter = library/poplib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--posix] +[o:python-doc:p:python-310:r:library--posix] file_filter = library/posix.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pprint] +[o:python-doc:p:python-310:r:library--pprint] file_filter = library/pprint.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--profile] +[o:python-doc:p:python-310:r:library--profile] file_filter = library/profile.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pty] +[o:python-doc:p:python-310:r:library--pty] file_filter = library/pty.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pwd] +[o:python-doc:p:python-310:r:library--pwd] file_filter = library/pwd.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pyclbr] +[o:python-doc:p:python-310:r:library--pyclbr] file_filter = library/pyclbr.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--py_compile] +[o:python-doc:p:python-310:r:library--py_compile] file_filter = library/py_compile.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pydoc] +[o:python-doc:p:python-310:r:library--pydoc] file_filter = library/pydoc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--pyexpat] +[o:python-doc:p:python-310:r:library--pyexpat] file_filter = library/pyexpat.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--python] +[o:python-doc:p:python-310:r:library--python] file_filter = library/python.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--queue] +[o:python-doc:p:python-310:r:library--queue] file_filter = library/queue.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--quopri] +[o:python-doc:p:python-310:r:library--quopri] file_filter = library/quopri.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--random] +[o:python-doc:p:python-310:r:library--random] file_filter = library/random.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--re] +[o:python-doc:p:python-310:r:library--re] file_filter = library/re.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--readline] +[o:python-doc:p:python-310:r:library--readline] file_filter = library/readline.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--reprlib] +[o:python-doc:p:python-310:r:library--reprlib] file_filter = library/reprlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--resource] +[o:python-doc:p:python-310:r:library--resource] file_filter = library/resource.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--rlcompleter] +[o:python-doc:p:python-310:r:library--rlcompleter] file_filter = library/rlcompleter.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--runpy] +[o:python-doc:p:python-310:r:library--runpy] file_filter = library/runpy.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sched] +[o:python-doc:p:python-310:r:library--sched] file_filter = library/sched.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--secrets] +[o:python-doc:p:python-310:r:library--secrets] file_filter = library/secrets.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--security_warnings] +[o:python-doc:p:python-310:r:library--security_warnings] file_filter = library/security_warnings.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--select] +[o:python-doc:p:python-310:r:library--select] file_filter = library/select.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--selectors] +[o:python-doc:p:python-310:r:library--selectors] file_filter = library/selectors.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--shelve] +[o:python-doc:p:python-310:r:library--shelve] file_filter = library/shelve.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--shlex] +[o:python-doc:p:python-310:r:library--shlex] file_filter = library/shlex.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--shutil] +[o:python-doc:p:python-310:r:library--shutil] file_filter = library/shutil.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--signal] +[o:python-doc:p:python-310:r:library--signal] file_filter = library/signal.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--site] +[o:python-doc:p:python-310:r:library--site] file_filter = library/site.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--smtpd] +[o:python-doc:p:python-310:r:library--smtpd] file_filter = library/smtpd.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--smtplib] +[o:python-doc:p:python-310:r:library--smtplib] file_filter = library/smtplib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sndhdr] +[o:python-doc:p:python-310:r:library--sndhdr] file_filter = library/sndhdr.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--socket] +[o:python-doc:p:python-310:r:library--socket] file_filter = library/socket.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--socketserver] +[o:python-doc:p:python-310:r:library--socketserver] file_filter = library/socketserver.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--spwd] +[o:python-doc:p:python-310:r:library--spwd] file_filter = library/spwd.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sqlite3] +[o:python-doc:p:python-310:r:library--sqlite3] file_filter = library/sqlite3.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--ssl] +[o:python-doc:p:python-310:r:library--ssl] file_filter = library/ssl.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--stat] +[o:python-doc:p:python-310:r:library--stat] file_filter = library/stat.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--statistics] +[o:python-doc:p:python-310:r:library--statistics] file_filter = library/statistics.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--stdtypes] +[o:python-doc:p:python-310:r:library--stdtypes] file_filter = library/stdtypes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--string] +[o:python-doc:p:python-310:r:library--string] file_filter = library/string.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--stringprep] +[o:python-doc:p:python-310:r:library--stringprep] file_filter = library/stringprep.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--struct] +[o:python-doc:p:python-310:r:library--struct] file_filter = library/struct.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--subprocess] +[o:python-doc:p:python-310:r:library--subprocess] file_filter = library/subprocess.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sunau] +[o:python-doc:p:python-310:r:library--sunau] file_filter = library/sunau.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--superseded] +[o:python-doc:p:python-310:r:library--superseded] file_filter = library/superseded.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--symtable] +[o:python-doc:p:python-310:r:library--symtable] file_filter = library/symtable.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sys] +[o:python-doc:p:python-310:r:library--sys] file_filter = library/sys.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sysconfig] +[o:python-doc:p:python-310:r:library--sysconfig] file_filter = library/sysconfig.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--syslog] +[o:python-doc:p:python-310:r:library--syslog] file_filter = library/syslog.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--sys_path_init] -file_filter = library/sys_path_init.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--tabnanny] +[o:python-doc:p:python-310:r:library--tabnanny] file_filter = library/tabnanny.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tarfile] +[o:python-doc:p:python-310:r:library--tarfile] file_filter = library/tarfile.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--telnetlib] +[o:python-doc:p:python-310:r:library--telnetlib] file_filter = library/telnetlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tempfile] +[o:python-doc:p:python-310:r:library--tempfile] file_filter = library/tempfile.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--termios] +[o:python-doc:p:python-310:r:library--termios] file_filter = library/termios.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--test] +[o:python-doc:p:python-310:r:library--test] file_filter = library/test.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--text] +[o:python-doc:p:python-310:r:library--text] file_filter = library/text.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--textwrap] +[o:python-doc:p:python-310:r:library--textwrap] file_filter = library/textwrap.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--_thread] +[o:python-doc:p:python-310:r:library--_thread] file_filter = library/_thread.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--threading] +[o:python-doc:p:python-310:r:library--threading] file_filter = library/threading.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--time] +[o:python-doc:p:python-310:r:library--time] file_filter = library/time.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--timeit] +[o:python-doc:p:python-310:r:library--timeit] file_filter = library/timeit.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tk] +[o:python-doc:p:python-310:r:library--tk] file_filter = library/tk.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter] +[o:python-doc:p:python-310:r:library--tkinter] file_filter = library/tkinter.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_colorchooser] +[o:python-doc:p:python-310:r:library--tkinter_colorchooser] file_filter = library/tkinter_colorchooser.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_dnd] +[o:python-doc:p:python-310:r:library--tkinter_dnd] file_filter = library/tkinter_dnd.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_font] +[o:python-doc:p:python-310:r:library--tkinter_font] file_filter = library/tkinter_font.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_messagebox] +[o:python-doc:p:python-310:r:library--tkinter_messagebox] file_filter = library/tkinter_messagebox.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_scrolledtext] +[o:python-doc:p:python-310:r:library--tkinter_scrolledtext] file_filter = library/tkinter_scrolledtext.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_tix] +[o:python-doc:p:python-310:r:library--tkinter_tix] file_filter = library/tkinter_tix.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tkinter_ttk] +[o:python-doc:p:python-310:r:library--tkinter_ttk] file_filter = library/tkinter_ttk.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--token] +[o:python-doc:p:python-310:r:library--token] file_filter = library/token.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tokenize] +[o:python-doc:p:python-310:r:library--tokenize] file_filter = library/tokenize.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tomllib] -file_filter = library/tomllib.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--trace] +[o:python-doc:p:python-310:r:library--trace] file_filter = library/trace.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--traceback] +[o:python-doc:p:python-310:r:library--traceback] file_filter = library/traceback.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tracemalloc] +[o:python-doc:p:python-310:r:library--tracemalloc] file_filter = library/tracemalloc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--tty] +[o:python-doc:p:python-310:r:library--tty] file_filter = library/tty.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--turtle] +[o:python-doc:p:python-310:r:library--turtle] file_filter = library/turtle.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--types] +[o:python-doc:p:python-310:r:library--types] file_filter = library/types.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--typing] +[o:python-doc:p:python-310:r:library--typing] file_filter = library/typing.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--undoc] -file_filter = library/undoc.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:library--unicodedata] +[o:python-doc:p:python-310:r:library--unicodedata] file_filter = library/unicodedata.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--unittest] +[o:python-doc:p:python-310:r:library--unittest] file_filter = library/unittest.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--unittest_mock] +[o:python-doc:p:python-310:r:library--unittest_mock] file_filter = library/unittest_mock.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--unittest_mock-examples] +[o:python-doc:p:python-310:r:library--unittest_mock-examples] file_filter = library/unittest_mock-examples.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--unix] +[o:python-doc:p:python-310:r:library--unix] file_filter = library/unix.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--urllib] +[o:python-doc:p:python-310:r:library--urllib] file_filter = library/urllib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--urllib_error] +[o:python-doc:p:python-310:r:library--urllib_error] file_filter = library/urllib_error.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--urllib_parse] +[o:python-doc:p:python-310:r:library--urllib_parse] file_filter = library/urllib_parse.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--urllib_request] +[o:python-doc:p:python-310:r:library--urllib_request] file_filter = library/urllib_request.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--urllib_robotparser] +[o:python-doc:p:python-310:r:library--urllib_robotparser] file_filter = library/urllib_robotparser.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--uu] +[o:python-doc:p:python-310:r:library--uu] file_filter = library/uu.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--uuid] +[o:python-doc:p:python-310:r:library--uuid] file_filter = library/uuid.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--venv] +[o:python-doc:p:python-310:r:library--venv] file_filter = library/venv.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--warnings] +[o:python-doc:p:python-310:r:library--warnings] file_filter = library/warnings.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--wave] +[o:python-doc:p:python-310:r:library--wave] file_filter = library/wave.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--weakref] +[o:python-doc:p:python-310:r:library--weakref] file_filter = library/weakref.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--webbrowser] +[o:python-doc:p:python-310:r:library--webbrowser] file_filter = library/webbrowser.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--windows] +[o:python-doc:p:python-310:r:library--windows] file_filter = library/windows.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--winreg] +[o:python-doc:p:python-310:r:library--winreg] file_filter = library/winreg.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--winsound] +[o:python-doc:p:python-310:r:library--winsound] file_filter = library/winsound.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--wsgiref] +[o:python-doc:p:python-310:r:library--wsgiref] file_filter = library/wsgiref.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xdrlib] +[o:python-doc:p:python-310:r:library--xdrlib] file_filter = library/xdrlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml] +[o:python-doc:p:python-310:r:library--xml] file_filter = library/xml.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_dom] +[o:python-doc:p:python-310:r:library--xml_dom] file_filter = library/xml_dom.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_dom_minidom] +[o:python-doc:p:python-310:r:library--xml_dom_minidom] file_filter = library/xml_dom_minidom.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_dom_pulldom] +[o:python-doc:p:python-310:r:library--xml_dom_pulldom] file_filter = library/xml_dom_pulldom.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_etree_elementtree] +[o:python-doc:p:python-310:r:library--xml_etree_elementtree] file_filter = library/xml_etree_elementtree.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xmlrpc] +[o:python-doc:p:python-310:r:library--xmlrpc] file_filter = library/xmlrpc.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xmlrpc_client] +[o:python-doc:p:python-310:r:library--xmlrpc_client] file_filter = library/xmlrpc_client.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xmlrpc_server] +[o:python-doc:p:python-310:r:library--xmlrpc_server] file_filter = library/xmlrpc_server.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_sax] +[o:python-doc:p:python-310:r:library--xml_sax] file_filter = library/xml_sax.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_sax_handler] +[o:python-doc:p:python-310:r:library--xml_sax_handler] file_filter = library/xml_sax_handler.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_sax_reader] +[o:python-doc:p:python-310:r:library--xml_sax_reader] file_filter = library/xml_sax_reader.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--xml_sax_utils] +[o:python-doc:p:python-310:r:library--xml_sax_utils] file_filter = library/xml_sax_utils.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--zipapp] +[o:python-doc:p:python-310:r:library--zipapp] file_filter = library/zipapp.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--zipfile] +[o:python-doc:p:python-310:r:library--zipfile] file_filter = library/zipfile.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--zipimport] +[o:python-doc:p:python-310:r:library--zipimport] file_filter = library/zipimport.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--zlib] +[o:python-doc:p:python-310:r:library--zlib] file_filter = library/zlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:library--zoneinfo] +[o:python-doc:p:python-310:r:library--zoneinfo] file_filter = library/zoneinfo.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:license] +[o:python-doc:p:python-310:r:license] file_filter = license.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--compound_stmts] +[o:python-doc:p:python-310:r:reference--compound_stmts] file_filter = reference/compound_stmts.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--datamodel] +[o:python-doc:p:python-310:r:reference--datamodel] file_filter = reference/datamodel.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--executionmodel] +[o:python-doc:p:python-310:r:reference--executionmodel] file_filter = reference/executionmodel.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--expressions] +[o:python-doc:p:python-310:r:reference--expressions] file_filter = reference/expressions.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--grammar] +[o:python-doc:p:python-310:r:reference--grammar] file_filter = reference/grammar.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--import] +[o:python-doc:p:python-310:r:reference--import] file_filter = reference/import.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--index] +[o:python-doc:p:python-310:r:reference--index] file_filter = reference/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--introduction] +[o:python-doc:p:python-310:r:reference--introduction] file_filter = reference/introduction.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--lexical_analysis] +[o:python-doc:p:python-310:r:reference--lexical_analysis] file_filter = reference/lexical_analysis.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--simple_stmts] +[o:python-doc:p:python-310:r:reference--simple_stmts] file_filter = reference/simple_stmts.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:reference--toplevel_components] +[o:python-doc:p:python-310:r:reference--toplevel_components] file_filter = reference/toplevel_components.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:sphinx] +[o:python-doc:p:python-310:r:sphinx] file_filter = sphinx.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--appendix] +[o:python-doc:p:python-310:r:tutorial--appendix] file_filter = tutorial/appendix.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--appetite] +[o:python-doc:p:python-310:r:tutorial--appetite] file_filter = tutorial/appetite.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--classes] +[o:python-doc:p:python-310:r:tutorial--classes] file_filter = tutorial/classes.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--controlflow] +[o:python-doc:p:python-310:r:tutorial--controlflow] file_filter = tutorial/controlflow.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--datastructures] +[o:python-doc:p:python-310:r:tutorial--datastructures] file_filter = tutorial/datastructures.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--errors] +[o:python-doc:p:python-310:r:tutorial--errors] file_filter = tutorial/errors.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--floatingpoint] +[o:python-doc:p:python-310:r:tutorial--floatingpoint] file_filter = tutorial/floatingpoint.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--index] +[o:python-doc:p:python-310:r:tutorial--index] file_filter = tutorial/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--inputoutput] +[o:python-doc:p:python-310:r:tutorial--inputoutput] file_filter = tutorial/inputoutput.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--interactive] +[o:python-doc:p:python-310:r:tutorial--interactive] file_filter = tutorial/interactive.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--interpreter] +[o:python-doc:p:python-310:r:tutorial--interpreter] file_filter = tutorial/interpreter.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--introduction] +[o:python-doc:p:python-310:r:tutorial--introduction] file_filter = tutorial/introduction.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--modules] +[o:python-doc:p:python-310:r:tutorial--modules] file_filter = tutorial/modules.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--stdlib] +[o:python-doc:p:python-310:r:tutorial--stdlib] file_filter = tutorial/stdlib.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--stdlib2] +[o:python-doc:p:python-310:r:tutorial--stdlib2] file_filter = tutorial/stdlib2.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--venv] +[o:python-doc:p:python-310:r:tutorial--venv] file_filter = tutorial/venv.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:tutorial--whatnow] +[o:python-doc:p:python-310:r:tutorial--whatnow] file_filter = tutorial/whatnow.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--cmdline] +[o:python-doc:p:python-310:r:using--cmdline] file_filter = using/cmdline.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--configure] +[o:python-doc:p:python-310:r:using--configure] file_filter = using/configure.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--editors] +[o:python-doc:p:python-310:r:using--editors] file_filter = using/editors.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--index] +[o:python-doc:p:python-310:r:using--index] file_filter = using/index.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--mac] +[o:python-doc:p:python-310:r:using--mac] file_filter = using/mac.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--unix] +[o:python-doc:p:python-310:r:using--unix] file_filter = using/unix.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:using--windows] +[o:python-doc:p:python-310:r:using--windows] file_filter = using/windows.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_0] +[o:python-doc:p:python-310:r:whatsnew--2_0] file_filter = whatsnew/2.0.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_1] +[o:python-doc:p:python-310:r:whatsnew--2_1] file_filter = whatsnew/2.1.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_2] +[o:python-doc:p:python-310:r:whatsnew--2_2] file_filter = whatsnew/2.2.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_3] +[o:python-doc:p:python-310:r:whatsnew--2_3] file_filter = whatsnew/2.3.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_4] +[o:python-doc:p:python-310:r:whatsnew--2_4] file_filter = whatsnew/2.4.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_5] +[o:python-doc:p:python-310:r:whatsnew--2_5] file_filter = whatsnew/2.5.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_6] +[o:python-doc:p:python-310:r:whatsnew--2_6] file_filter = whatsnew/2.6.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--2_7] +[o:python-doc:p:python-310:r:whatsnew--2_7] file_filter = whatsnew/2.7.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_0] +[o:python-doc:p:python-310:r:whatsnew--3_0] file_filter = whatsnew/3.0.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_1] +[o:python-doc:p:python-310:r:whatsnew--3_1] file_filter = whatsnew/3.1.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_10] +[o:python-doc:p:python-310:r:whatsnew--3_10] file_filter = whatsnew/3.10.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_11] -file_filter = whatsnew/3.11.po -type = PO -source_lang = en - -[o:python-doc:p:python-newest:r:whatsnew--3_2] +[o:python-doc:p:python-310:r:whatsnew--3_2] file_filter = whatsnew/3.2.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_3] +[o:python-doc:p:python-310:r:whatsnew--3_3] file_filter = whatsnew/3.3.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_4] +[o:python-doc:p:python-310:r:whatsnew--3_4] file_filter = whatsnew/3.4.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_5] +[o:python-doc:p:python-310:r:whatsnew--3_5] file_filter = whatsnew/3.5.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_6] +[o:python-doc:p:python-310:r:whatsnew--3_6] file_filter = whatsnew/3.6.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_7] +[o:python-doc:p:python-310:r:whatsnew--3_7] file_filter = whatsnew/3.7.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_8] +[o:python-doc:p:python-310:r:whatsnew--3_8] file_filter = whatsnew/3.8.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--3_9] +[o:python-doc:p:python-310:r:whatsnew--3_9] file_filter = whatsnew/3.9.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--changelog] +[o:python-doc:p:python-310:r:whatsnew--changelog] file_filter = whatsnew/changelog.po type = PO source_lang = en -[o:python-doc:p:python-newest:r:whatsnew--index] +[o:python-doc:p:python-310:r:whatsnew--index] file_filter = whatsnew/index.po type = PO source_lang = en diff --git a/README.md b/README.md index d3923ac621..ebd93fc53c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ Polskie tłumaczenie dokumentacji Pythona ======================================== ![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-and-build.yml/badge.svg) -![44.07% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-44.07%25-0.svg) +![89.52% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-89.52%25-0.svg) ![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/dynamic/json.svg?label=całość&query=$.pl&url=http://gce.zhsj.me/python/newest) -![18 tłumaczy](https://img.shields.io/badge/tłumaczy-18-0.svg) +![7 tłumaczy](https://img.shields.io/badge/tłumaczy-7-0.svg) Jeśli znalazłeś(-aś) błąd lub masz sugestię, [dodaj zgłoszenie](https://github.com/python/python-docs-pl/issues) w tym projekcie lub diff --git a/about.po b/about.po index f4001d6fbd..df25fd1763 100644 --- a/about.po +++ b/about.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "About these documents" msgstr "O tej dokumentacji" @@ -59,11 +58,15 @@ msgid "" "the `Docutils `_ project for creating " "reStructuredText and the Docutils suite;" msgstr "" +"projektu `Docutils `_ za stworzenie " +"reStructuredText i pakietu Docutils;" msgid "" "Fredrik Lundh for his Alternative Python Reference project from which Sphinx " "got many good ideas." msgstr "" +"Fredrika Lundha za jego projekt Alternative Python Reference, z którego " +"Sphinx wziął wiele dobrych pomysłów." msgid "Contributors to the Python Documentation" msgstr "Współtwórcy dokumentacji Pythona" diff --git a/bugs.po b/bugs.po index 75bb49f8ca..435dc77eba 100644 --- a/bugs.po +++ b/bugs.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Ciarbin Ciarbin , 2021 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 16:29+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Dealing with Bugs" msgstr "Zajmowanie się błędami" @@ -38,12 +37,12 @@ msgstr "" 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 "" "Czasem szybsze może być własnoręczne naprawienie błędu i wysłanie patchy do " -"Pythona, usprawnia to proces i angażuje mniej osób. Dowiedz się, jak :ref:" -"`kontrybuować `." +"Pythona, usprawnia to proces i angażuje mniej osób. Dowiedz się, " +"jak :ref:`kontrybuować `." msgid "Documentation bugs" msgstr "Błędy w dokumentacji" @@ -59,6 +58,13 @@ msgstr "" "adresem: https://github.com/python/python-docs-pl. Jeśli masz sugestię, jak " "naprawić błąd, zawrzyj ją w zgłoszeniu." +msgid "" +"You can also open a discussion item on our `Documentation Discourse forum " +"`_." +msgstr "" +"Możesz również otworzyć dyskusję na naszym `forum Discourse dokumentacji " +"`_." + msgid "" "If you're short on time, you can also email documentation bug reports to " "docs@python.org (behavioral bugs can be sent to python-list@python.org). " @@ -159,14 +165,18 @@ msgid "" "Being now logged in, you can submit an issue. Click on the \"New issue\" " "button in the top bar to report a new issue." msgstr "" +"Będąc zalogowanym możesz wysłać zgłoszenie. Kliknij przycisk \"Nowe " +"zgłoszenie\" w górnym pasku, aby wysłać nowe zgłoszenie." msgid "The submission form has two fields, \"Title\" and \"Comment\"." -msgstr "" +msgstr "Formularz zgłoszenia ma dwa pola: „Tytuł” oraz „Komentarz”." msgid "" "For the \"Title\" field, enter a *very* short description of the problem; " -"less than ten words is good." +"fewer than ten words is good." msgstr "" +"W polu „Tytuł” wpisz *bardzo* krótki opis problemu; najlepiej mniej niż " +"dziesięć słów." msgid "" "In the \"Comment\" field, describe the problem in detail, including what you " @@ -185,6 +195,9 @@ msgid "" "needs to be done to correct the problem. You will receive an update each " "time an action is taken on the issue." msgstr "" +"Każde zgłoszenie będzie zweryfikowane przez twórcę oprogramowania, który " +"oceni, co musi być zrobione, aby naprawić problem. Otrzymasz aktualizację za " +"każdym razem, gdy wobec zgłoszenia zostanie podjęte działanie." msgid "" "`How to Report Bugs Effectively , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Wierzbicki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Krzysztof Wierzbicki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Abstract Objects Layer" msgstr "Warstwa obiektów abstrakcyjnych" @@ -40,9 +39,9 @@ msgstr "" 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 "" "Nie da się używać tych funckcji na obiektach, które nie zostały prawidłowo " "zainicjowane jak np. lista utworzona za pomocą :c:func:`PyList_New`, której " diff --git a/c-api/allocation.po b/c-api/allocation.po new file mode 100644 index 0000000000..f3a22e3f6f --- /dev/null +++ b/c-api/allocation.po @@ -0,0 +1,92 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Allocating Objects on the Heap" +msgstr "Przydzielanie obiektów na stercie" + +msgid "" +"Initialize a newly allocated object *op* with its type and initial " +"reference. Returns the initialized object. If *type* indicates that the " +"object participates in the cyclic garbage detector, it is added to the " +"detector's set of observed objects. Other fields of the object are not " +"affected." +msgstr "" +"Inicjalizacja nowo przydzielonego obiektu o nazwie *op*, określa jego typ " +"oraz początkowe odniesienie. Funkcja zwraca zainicjowany obiekt. Jeżeli " +"wartość *type* wskazuje, że obiekt bierze udział w detekcji cyklicznych " +"zbędnych danych \"garbage detector\", to zostaje on dodany do zbioru " +"obiektów obserwowanych przez detektor. Pozostałe pola obiektu pozostają " +"niezmienione." + +msgid "" +"This does everything :c:func:`PyObject_Init` does, and also initializes the " +"length information for a variable-size object." +msgstr "" +"To wszystko, czym zajmie się funkcja :c:func:`PyObject_Init`, a ponadto " +"zainicjuje informacje o długości dla obiektu o zmiennym rozmiarze." + +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 caller will own the only reference to the object " +"(i.e. its 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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" +"Obiekt widoczny w Pythonie jako ``None``. Dostęp do tego należy uzyskać " +"wyłącznie za pomocą makra :c:macro:`Py_None`, którego wartością jest " +"wskaźnik do tego obiektu." + +msgid ":c:func:`PyModule_Create`" +msgstr ":c:func:`PyModule_Create`" + +msgid "To allocate and create extension modules." +msgstr "Przydzielanie i tworzenie modułów rozszerzeń." diff --git a/c-api/apiabiversion.po b/c-api/apiabiversion.po index e02185b166..d0f902a0c3 100644 --- a/c-api/apiabiversion.po +++ b/c-api/apiabiversion.po @@ -1,148 +1,153 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "API and ABI Versioning" -msgstr "" +msgstr "API i wersjonowanie ABI" msgid "" "CPython exposes its version number in the following macros. Note that these " "correspond to the version code is **built** with, not necessarily the " "version used at **run time**." msgstr "" +"CPython (standardowa implementacja) ujawnia swój numer wersji w " +"następujących makrach. Należy pamiętać, że odpowiadają one kodowi wersji, z " +"którym został **zbudowany**, niekoniecznie wersji używanej w **czasie " +"działania**." msgid "" "See :ref:`stable` for a discussion of API and ABI stability across versions." msgstr "" +"Więcej informacji na temat stabilności API i ABI w różnych wersjach można " +"znaleźć na stronie :ref:`stable`." msgid "The ``3`` in ``3.4.1a2``." -msgstr "" +msgstr "``3`` w ``3.4.1a2``." msgid "The ``4`` in ``3.4.1a2``." -msgstr "" +msgstr "``4`` w ``3.4.1a2``." msgid "The ``1`` in ``3.4.1a2``." -msgstr "" +msgstr "``1`` w ``3.4.1a2``." msgid "" "The ``a`` in ``3.4.1a2``. This can be ``0xA`` for alpha, ``0xB`` for beta, " "``0xC`` for release candidate or ``0xF`` for final." msgstr "" +"``a`` w ``3.4.1a2``. Może to być ``0xA`` dla wersji alfa, ``0xB`` dla wersji " +"beta, ``0xC`` dla wersji kandydującej do wydania lub ``0xF`` dla wersji " +"finalnej." msgid "The ``2`` in ``3.4.1a2``. Zero for final releases." -msgstr "" +msgstr "``2`` w ``3.4.1a2``. Zero dla ostatecznych wydań." msgid "The Python version number encoded in a single integer." -msgstr "" +msgstr "Numer wersji Pythona zakodowany w pojedynczej liczbie całkowitej." msgid "" "The underlying version information can be found by treating it as a 32 bit " "number in the following manner:" msgstr "" +"Podstawowe informacje wersji można znaleźć, traktując je jako 32-bitową " +"liczbę w następujący sposób:" msgid "Bytes" -msgstr "" +msgstr "Bajty" msgid "Bits (big endian order)" -msgstr "" +msgstr "Bity (kolejność big endian)" msgid "Meaning" msgstr "Znaczenie" msgid "Value for ``3.4.1a2``" -msgstr "" +msgstr "Wartość dla ``3.4.1a2``" msgid "1" msgstr "1" msgid "1-8" -msgstr "" +msgstr "1-8" msgid "``PY_MAJOR_VERSION``" -msgstr "" +msgstr "``PY_MAJOR_VERSION``" msgid "``0x03``" -msgstr "" +msgstr "``0x03``" msgid "2" msgstr "2" msgid "9-16" -msgstr "" +msgstr "9-16" msgid "``PY_MINOR_VERSION``" -msgstr "" +msgstr "``PY_MINOR_VERSION``" msgid "``0x04``" -msgstr "" +msgstr "``0x04``" msgid "3" -msgstr "" +msgstr "3" msgid "17-24" -msgstr "" +msgstr "17-24" msgid "``PY_MICRO_VERSION``" -msgstr "" +msgstr "``PY_MICRO_VERSION``" msgid "``0x01``" -msgstr "" +msgstr "``0x01``" msgid "4" msgstr "4" msgid "25-28" -msgstr "" +msgstr "25-28" msgid "``PY_RELEASE_LEVEL``" -msgstr "" +msgstr "``PY_RELEASE_LEVEL``" msgid "``0xA``" -msgstr "" +msgstr "``0xA``" msgid "29-32" -msgstr "" +msgstr "29-32" msgid "``PY_RELEASE_SERIAL``" -msgstr "" +msgstr "``PY_RELEASE_SERIAL``" msgid "``0x2``" -msgstr "" +msgstr "``0x2``" msgid "" "Thus ``3.4.1a2`` is hexversion ``0x030401a2`` and ``3.10.0`` is hexversion " "``0x030a00f0``." msgstr "" - -msgid "This version is also available via the symbol :data:`Py_Version`." -msgstr "" - -msgid "" -"The Python runtime version number encoded in a single constant integer, with " -"the same format as the :c:macro:`PY_VERSION_HEX` macro. This contains the " -"Python version used at run time." -msgstr "" +"Tak więc ``3.4.1a2`` jest hekswersją ``0x030401a2``, a ``3.10.0`` jest " +"hekswersją ``0x030a00f0``." msgid "All the given macros are defined in :source:`Include/patchlevel.h`." msgstr "" +"Wszystkie podane makra są zdefiniowane w :source:`Include/patchlevel.h`." diff --git a/c-api/arg.po b/c-api/arg.po index 8b05279b21..de8f6667f7 100644 --- a/c-api/arg.po +++ b/c-api/arg.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Parsing arguments and building values" msgstr "" @@ -29,19 +29,19 @@ msgstr "" 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 "" "Te działania są użyteczne przy tworzeniu swoich własnych zadań " "rozszerzających i rozszerzających sposobów działania. Dodatkowe informacje i " "przykłady dostępne są w :ref:`extending-index`." msgid "" -"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." +"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 "" msgid "Parsing arguments" @@ -76,39 +76,58 @@ 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." msgstr "" +"Formaty te umożliwiają dostęp do obiektu jako ciągłego fragmentu pamięci. " +"Nie musisz zapewniać nieprzetworzonej pamięci dla zwróconego obszaru unicode " +"lub bajtów." + +msgid "Unless otherwise stated, buffers are not NUL-terminated." +msgstr "Bufory nie są zakończone znakiem NULL, chyba że zaznaczono inaczej." + +msgid "There are three ways strings and buffers can be converted to C:" +msgstr "Istnieją trzy sposoby konwersji łańcuchów i buforów na język C:" msgid "" -"In general, when a format sets a pointer to a buffer, the buffer is managed " -"by the corresponding Python object, and the buffer shares the lifetime of " -"this object. You won't have to release any memory yourself. The only " -"exceptions are ``es``, ``es#``, ``et`` and ``et#``." +"Formats such as ``y*`` and ``s*`` fill a :c:type:`Py_buffer` structure. This " +"locks the underlying buffer 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 "" 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)." +"The ``es``, ``es#``, ``et`` and ``et#`` formats allocate the result buffer. " +"**You have to call** :c:func:`PyMem_Free` after you have finished processing " +"the data (or in any early abort case)." msgstr "" -msgid "Unless otherwise stated, buffers are not NUL-terminated." -msgstr "Bufory nie są zakończone znakiem NULL, chyba że zaznaczono inaczej." +msgid "" +"Other formats take a :class:`str` or a read-only :term:`bytes-like object`, " +"such as :class:`bytes`, and provide a ``const char *`` pointer to its " +"buffer. In this case the buffer is \"borrowed\": it is managed by the " +"corresponding Python object, and shares the lifetime of this object. You " +"won't have to release any memory yourself." +msgstr "" + +msgid "" +"To ensure that the underlying buffer may be safely borrowed, the " +"object's :c:member:`PyBufferProcs.bf_releasebuffer` field must be ``NULL``. " +"This disallows common mutable objects such as :class:`bytearray`, but also " +"some read-only objects such as :class:`memoryview` of :class:`bytes`." +msgstr "" 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`." +"Besides this ``bf_releasebuffer`` requirement, there is no check to verify " +"whether the input object is immutable (e.g. whether it would honor a request " +"for a writable buffer, or whether another thread can mutate the data)." msgstr "" msgid "" -"For all ``#`` variants of formats (``s#``, ``y#``, etc.), the macro :c:macro:" -"`PY_SSIZE_T_CLEAN` must be defined before including :file:`Python.h`. On " -"Python 3.9 and older, the type of the length argument is :c:type:" -"`Py_ssize_t` if the :c:macro:`PY_SSIZE_T_CLEAN` macro is defined, or int " -"otherwise." +"For all ``#`` variants of formats (``s#``, ``y#``, etc.), the " +"macro :c:macro:`PY_SSIZE_T_CLEAN` must be defined before " +"including :file:`Python.h`. On Python 3.9 and older, the type of the length " +"argument is :c:type:`Py_ssize_t` if the :c:macro:`PY_SSIZE_T_CLEAN` macro is " +"defined, or int otherwise." msgstr "" msgid "``s`` (:class:`str`) [const char \\*]" @@ -126,8 +145,8 @@ msgstr "" 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*." +"strings, it is preferable to use the ``O&`` format " +"with :c:func:`PyUnicode_FSConverter` as *converter*." msgstr "" msgid "" @@ -146,15 +165,16 @@ msgid "" msgstr "" msgid "" -"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char \\*, :" -"c:type:`Py_ssize_t`]" +"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char " +"\\*, :c:type:`Py_ssize_t`]" msgstr "" msgid "" -"Like ``s*``, except that it doesn't accept mutable objects. The result is " -"stored into two C variables, the first one a pointer to a C string, the " -"second one its length. The string may contain embedded null bytes. Unicode " -"objects are converted to C strings using ``'utf-8'`` encoding." +"Like ``s*``, except that it provides a :ref:`borrowed buffer `. The result is stored into two C variables, the first one a pointer " +"to a C string, the second one its length. The string may contain embedded " +"null bytes. Unicode objects are converted to C strings using ``'utf-8'`` " +"encoding." msgstr "" msgid "``z`` (:class:`str` or ``None``) [const char \\*]" @@ -188,10 +208,10 @@ msgid "``y`` (read-only :term:`bytes-like object`) [const char \\*]" msgstr "" msgid "" -"This format converts a bytes-like object to a C pointer to a character " -"string; it does not accept Unicode objects. The bytes buffer must not " -"contain embedded null bytes; if it does, a :exc:`ValueError` exception is " -"raised." +"This format converts a bytes-like object to a C pointer to a :ref:`borrowed " +"` character string; it does not accept Unicode " +"objects. The bytes buffer must not contain embedded null bytes; if it does, " +"a :exc:`ValueError` exception is raised." msgstr "" msgid "" @@ -200,7 +220,7 @@ msgid "" msgstr "" msgid "``y*`` (:term:`bytes-like object`) [Py_buffer]" -msgstr "" +msgstr "``y*`` (:term:`bytes-like object`) [Py_buffer]" msgid "" "This variant on ``s*`` doesn't accept Unicode objects, only bytes-like " @@ -208,8 +228,8 @@ msgid "" msgstr "" msgid "" -"``y#`` (read-only :term:`bytes-like object`) [const char \\*, :c:type:" -"`Py_ssize_t`]" +"``y#`` (read-only :term:`bytes-like object`) [const char " +"\\*, :c:type:`Py_ssize_t`]" msgstr "" msgid "" @@ -220,7 +240,7 @@ msgstr "" "obiekty." msgid "``S`` (:class:`bytes`) [PyBytesObject \\*]" -msgstr "" +msgstr "``S`` (:class:`bytes`) [PyBytesObject \\*]" msgid "" "Requires that the Python object is a :class:`bytes` object, without " @@ -229,13 +249,13 @@ msgid "" msgstr "" msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]" -msgstr "" +msgstr "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]" 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:expr:" -"`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:expr:`PyObject*`." msgstr "" msgid "``u`` (:class:`str`) [const Py_UNICODE \\*]" @@ -247,13 +267,13 @@ msgid "" "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 "" 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 "" msgid "``u#`` (:class:`str`) [const Py_UNICODE \\*, :c:type:`Py_ssize_t`]" @@ -269,22 +289,22 @@ msgid "``Z`` (:class:`str` or ``None``) [const Py_UNICODE \\*]" msgstr "" 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 "" msgid "" -"``Z#`` (:class:`str` or ``None``) [const Py_UNICODE \\*, :c:type:" -"`Py_ssize_t`]" +"``Z#`` (:class:`str` or ``None``) [const Py_UNICODE " +"\\*, :c:type:`Py_ssize_t`]" msgstr "" 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 "" msgid "``U`` (:class:`str`) [PyObject \\*]" -msgstr "" +msgstr "``U`` (:class:`str`) [PyObject \\*]" msgid "" "Requires that the Python object is a Unicode object, without attempting any " @@ -298,8 +318,8 @@ msgstr "" 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 "" msgid "``es`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer]" @@ -325,8 +345,8 @@ msgstr "" 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 "" msgid "" @@ -344,8 +364,8 @@ msgstr "" "że obiekt łańcucha znaków wykorzystuje kodowanie przekazane jako parametr." msgid "" -"``es#`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, :c:type:" -"`Py_ssize_t` \\*buffer_length]" +"``es#`` (:class:`str`) [const char \\*encoding, char " +"\\*\\*buffer, :c:type:`Py_ssize_t` \\*buffer_length]" msgstr "" msgid "" @@ -374,8 +394,8 @@ msgstr "Istnieją dwa tryby pracy:" 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 "" @@ -413,15 +433,15 @@ msgid "Numbers" msgstr "Liczby" msgid "``b`` (:class:`int`) [unsigned char]" -msgstr "" +msgstr "``b`` (:class:`int`) [unsigned char]" msgid "" -"Convert a nonnegative Python integer to an unsigned tiny int, stored in a C :" -"c:expr:`unsigned char`." +"Convert a nonnegative Python integer to an unsigned tiny int, stored in a " +"C :c:expr:`unsigned char`." msgstr "" msgid "``B`` (:class:`int`) [unsigned char]" -msgstr "" +msgstr "``B`` (:class:`int`) [unsigned char]" msgid "" "Convert a Python integer to a tiny int without overflow checking, stored in " @@ -429,7 +449,7 @@ msgid "" msgstr "" msgid "``h`` (:class:`int`) [short int]" -msgstr "" +msgstr "``h`` (:class:`int`) [short int]" msgid "Convert a Python integer to a C :c:expr:`short int`." msgstr "" @@ -443,13 +463,13 @@ msgid "" msgstr "" msgid "``i`` (:class:`int`) [int]" -msgstr "" +msgstr "``i`` (:class:`int`) [int]" msgid "Convert a Python integer to a plain C :c:expr:`int`." msgstr "" msgid "``I`` (:class:`int`) [unsigned int]" -msgstr "" +msgstr "``I`` (:class:`int`) [unsigned int]" msgid "" "Convert a Python integer to a C :c:expr:`unsigned int`, without overflow " @@ -457,13 +477,13 @@ msgid "" msgstr "" msgid "``l`` (:class:`int`) [long int]" -msgstr "" +msgstr "``l`` (:class:`int`) [long int]" msgid "Convert a Python integer to a C :c:expr:`long int`." msgstr "" msgid "``k`` (:class:`int`) [unsigned long]" -msgstr "" +msgstr "``k`` (:class:`int`) [unsigned long]" msgid "" "Convert a Python integer to a C :c:expr:`unsigned long` without overflow " @@ -471,7 +491,7 @@ msgid "" msgstr "" msgid "``L`` (:class:`int`) [long long]" -msgstr "" +msgstr "``L`` (:class:`int`) [long long]" msgid "Convert a Python integer to a C :c:expr:`long long`." msgstr "" @@ -485,7 +505,7 @@ msgid "" msgstr "" msgid "``n`` (:class:`int`) [:c:type:`Py_ssize_t`]" -msgstr "" +msgstr "``n`` (:class:`int`) [:c:type:`Py_ssize_t`]" msgid "Convert a Python integer to a C :c:type:`Py_ssize_t`." msgstr "" @@ -510,19 +530,19 @@ msgid "" msgstr "" msgid "``f`` (:class:`float`) [float]" -msgstr "" +msgstr "``f`` (:class:`float`) [float]" msgid "Convert a Python floating point number to a C :c:expr:`float`." msgstr "" msgid "``d`` (:class:`float`) [double]" -msgstr "" +msgstr "``d`` (:class:`float`) [double]" msgid "Convert a Python floating point number to a C :c:expr:`double`." msgstr "" msgid "``D`` (:class:`complex`) [Py_complex]" -msgstr "" +msgstr "``D`` (:class:`complex`) [Py_complex]" msgid "Convert a Python complex number to a C :c:type:`Py_complex` structure." msgstr "" @@ -531,12 +551,13 @@ msgid "Other objects" msgstr "Inne obiekty" msgid "``O`` (object) [PyObject \\*]" -msgstr "" +msgstr "``O`` (object) [PyObject \\*]" 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 " -"reference count is not increased. The pointer stored is not ``NULL``." +"program thus receives the actual object that was passed. A " +"new :term:`strong reference` to the object is not created (i.e. its " +"reference count is not increased). The pointer stored is not ``NULL``." msgstr "" msgid "``O!`` (object) [*typeobject*, PyObject \\*]" @@ -551,7 +572,7 @@ msgid "" msgstr "" msgid "``O&`` (object) [*converter*, *anything*]" -msgstr "" +msgstr "``O&`` (object) [*converter*, *anything*]" msgid "" "Convert a Python object to a C variable through a *converter* function. " @@ -561,12 +582,12 @@ msgid "" msgstr "" msgid "" -"where *object* is the Python object to be converted and *address* is the :c:" -"expr:`void*` argument that was passed to the ``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." +"where *object* is the Python object to be converted and *address* is " +"the :c:expr:`void*` argument that was passed to the ``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 "" msgid "" @@ -578,10 +599,10 @@ msgid "" msgstr "" msgid "``Py_CLEANUP_SUPPORTED`` was added." -msgstr "" +msgstr "``Py_CLEANUP_SUPPORTED`` został dodany." msgid "``p`` (:class:`bool`) [int]" -msgstr "" +msgstr "``p`` (:class:`bool`) [int]" msgid "" "Tests the value passed in for truth (a boolean **p**\\ redicate) and " @@ -627,7 +648,7 @@ msgstr "" "wystąpić wewnątrz zagnieżdżonych nawiasach okrągłych. Są to:" msgid "``|``" -msgstr "" +msgstr "``|``" msgid "" "Indicates that the remaining arguments in the Python argument list are " @@ -638,7 +659,7 @@ msgid "" msgstr "" msgid "``$``" -msgstr "" +msgstr "``$``" msgid "" ":c:func:`PyArg_ParseTupleAndKeywords` only: Indicates that the remaining " @@ -648,7 +669,7 @@ msgid "" msgstr "" msgid "``:``" -msgstr "" +msgstr "``:``" msgid "" "The list of format units ends here; the string after the colon is used as " @@ -657,12 +678,12 @@ msgid "" msgstr "" msgid "``;``" -msgstr "" +msgstr "``;``" 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 "" "Na tym kończy się lista jednostek formatu; ciąg po średniku jest traktowany " "jako informacja o błędzie do użycia *zamiast* automatycznej wiadomości o " @@ -670,11 +691,9 @@ msgstr "" msgid "" "Note that any Python object references which are provided to the caller are " -"*borrowed* references; do not decrement their reference count!" +"*borrowed* references; do not release them (i.e. do not decrement their " +"reference count)!" msgstr "" -"Zauważ, że dowolne odniesienia do przedmiotów języka pytonowskiego, które są " -"dostarczone wołającemu są *pożyczonymi* odniesieniami; nie zmniejszaj liczby " -"tych odniesień." msgid "" "Additional arguments passed to these functions must be addresses of " @@ -717,9 +736,10 @@ msgstr "" 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." +"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 "" msgid "" @@ -797,10 +817,10 @@ 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." +"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 "" msgid "" @@ -889,7 +909,7 @@ msgid "Convert a plain C :c:expr:`int` to a Python integer object." msgstr "" msgid "``b`` (:class:`int`) [char]" -msgstr "" +msgstr "``b`` (:class:`int`) [char]" msgid "Convert a plain C :c:expr:`char` to a Python integer object." msgstr "" @@ -941,40 +961,40 @@ msgid "Convert a C :c:expr:`float` to a Python floating point number." msgstr "" msgid "``D`` (:class:`complex`) [Py_complex \\*]" -msgstr "" +msgstr "``D`` (:class:`complex`) [Py_complex \\*]" msgid "Convert a C :c:type:`Py_complex` structure to a Python complex number." msgstr "" msgid "" -"Pass a Python object untouched (except for its reference count, which is " -"incremented by one). If the object passed in is a ``NULL`` pointer, it is " -"assumed that this was caused because the call producing the argument found " -"an error and set an exception. Therefore, :c:func:`Py_BuildValue` will " -"return ``NULL`` but won't raise an exception. If no exception has been " -"raised yet, :exc:`SystemError` is set." +"Pass a Python object untouched but create a new :term:`strong reference` to " +"it (i.e. its reference count is incremented by one). If the object passed in " +"is a ``NULL`` pointer, it is assumed that this was caused because the call " +"producing the argument found an error and set an exception. " +"Therefore, :c:func:`Py_BuildValue` will return ``NULL`` but won't raise an " +"exception. If no exception has been raised yet, :exc:`SystemError` is set." msgstr "" msgid "``S`` (object) [PyObject \\*]" -msgstr "" +msgstr "``S`` (object) [PyObject \\*]" msgid "Same as ``O``." msgstr "" msgid "``N`` (object) [PyObject \\*]" -msgstr "" +msgstr "``N`` (object) [PyObject \\*]" 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." +"Same as ``O``, except it doesn't create a new :term:`strong reference`. " +"Useful when the object is created by a call to an object constructor in the " +"argument list." msgstr "" msgid "" "Convert *anything* to a Python object through a *converter* function. The " -"function is called with *anything* (which should be compatible with :c:expr:" -"`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:expr:`void*`) as its argument and should return a \"new\" Python " +"object, or ``NULL`` if an error occurred." msgstr "" msgid "" @@ -991,7 +1011,7 @@ msgid "" msgstr "" msgid "``{items}`` (:class:`dict`) [*matching-items*]" -msgstr "" +msgstr "``{items}`` (:class:`dict`) [*matching-items*]" msgid "" "Convert a sequence of C values to a Python dictionary. Each pair of " diff --git a/c-api/bool.po b/c-api/bool.po new file mode 100644 index 0000000000..258915620e --- /dev/null +++ b/c-api/bool.po @@ -0,0 +1,74 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Boolean Objects" +msgstr "Obiekty logiczne" + +msgid "" +"Booleans in Python are implemented as a subclass of integers. There are " +"only two booleans, :const:`Py_False` and :const:`Py_True`. As such, the " +"normal creation and deletion functions don't apply to booleans. The " +"following macros are available, however." +msgstr "" + +msgid "" +"Return true if *o* is of type :c:data:`PyBool_Type`. This function always " +"succeeds." +msgstr "" +"Zwraca wartość true, jeśli *o* jest typu :c:data:`PyBool_Type`. Ta funkcja " +"zawsze kończy się powodzeniem." + +msgid "" +"The Python ``False`` object. This object has no methods. It needs to be " +"treated just like any other object with respect to reference counts." +msgstr "" + +msgid "" +"The Python ``True`` object. This object has no methods. It needs to be " +"treated just like any other object with respect to reference counts." +msgstr "" +"Obiekt Python ``True``. Ten obiekt nie ma żadnych metod. Musi być " +"traktowany jak każdy inny obiekt w odniesieniu do liczby referencji." + +msgid "" +"Return :const:`Py_False` from a function, properly incrementing its " +"reference count." +msgstr "" +"Zwraca :const:`Py_False` z funkcji, odpowiednio zwiększając jej liczbę " +"odwołań." + +msgid "" +"Return :const:`Py_True` from a function, properly incrementing its reference " +"count." +msgstr "" +"Zwraca :const:`Py_True` z funkcji, odpowiednio zwiększając jej liczbę " +"odwołań." + +msgid "" +"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on " +"the truth value of *v*." +msgstr "" +"Zwraca nowe odwołanie do :const:`Py_True` lub :const:`Py_False` w zależności " +"od wartości *v*." diff --git a/c-api/buffer.po b/c-api/buffer.po index b86d840611..e7858f69f7 100644 --- a/c-api/buffer.po +++ b/c-api/buffer.po @@ -1,37 +1,37 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Buffer Protocol" msgstr "" 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 "" msgid "" @@ -42,8 +42,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -65,14 +65,14 @@ msgid "" msgstr "" 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." +"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 "" msgid "" @@ -118,8 +118,8 @@ msgstr "" 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 "" msgid "" @@ -136,15 +136,15 @@ msgstr "" 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 released (i.e. reference count 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 "" 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 "" msgid "" @@ -157,8 +157,8 @@ msgstr "" 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 "" msgid "" @@ -167,27 +167,29 @@ msgid "" msgstr "" 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 "" 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 " -"``NULL``, but :c:member:`~Py_buffer.itemsize` still has the value for the " -"original format." +"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 "" 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 "" 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 "" msgid "" @@ -202,8 +204,9 @@ msgstr "" 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``." +"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 "" msgid "" @@ -215,8 +218,8 @@ msgstr "" 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 "" msgid "" @@ -289,9 +292,8 @@ msgstr "" 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`." +"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 "" msgid "readonly, format" @@ -311,14 +313,15 @@ msgstr "" 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 "" 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 "" msgid "shape, strides, suboffsets" @@ -334,7 +337,7 @@ msgid "Request" msgstr "" msgid "shape" -msgstr "" +msgstr "kształt" msgid "strides" msgstr "" @@ -349,7 +352,7 @@ msgid "if needed" msgstr "" msgid "NULL" -msgstr "" +msgstr "NULL" msgid "contiguity requests" msgstr "" @@ -364,16 +367,16 @@ msgid "contig" msgstr "" msgid "C" -msgstr "" +msgstr "C" msgid "F" -msgstr "" +msgstr "F" msgid "C or F" msgstr "" msgid ":c:macro:`PyBUF_ND`" -msgstr "" +msgstr ":c:macro:`PyBUF_ND`" msgid "compound requests" msgstr "" @@ -393,10 +396,10 @@ msgid "readonly" msgstr "" msgid "format" -msgstr "" +msgstr "format" msgid "U" -msgstr "" +msgstr "U" msgid "0" msgstr "0" @@ -411,16 +414,17 @@ msgid "NumPy-style: shape and strides" msgstr "" 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 "" 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 "" msgid "" @@ -465,8 +469,9 @@ msgstr "" 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 ``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 ``view->obj`` to ``NULL`` and return " +"``-1``." msgstr "" msgid "" @@ -478,25 +483,26 @@ msgstr "" 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 "" msgid "" -"Release the buffer *view* and decrement the reference count for ``view-" +"Release the buffer *view* and release the :term:`strong reference` (i.e. " +"decrement the reference count) to the view's supporting object, ``view-" ">obj``. This function MUST be called when the buffer is no longer being " "used, otherwise reference leaks may occur." msgstr "" 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 "" msgid "" -"Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer." -"format`. On error, raise an exception and return -1." +"Return the implied :c:data:`~Py_buffer.itemsize` " +"from :c:data:`~Py_buffer.format`. On error, raise an exception and return -1." msgstr "" msgid "" @@ -526,14 +532,6 @@ msgstr "" msgid "This function fails if *len* != *src->len*." msgstr "" -msgid "" -"Copy data from *src* to *dest* buffer. Can convert between C-style and or " -"Fortran-style buffers." -msgstr "" - -msgid "``0`` is returned on success, ``-1`` on error." -msgstr "" - msgid "" "Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style " "if *order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the " diff --git a/c-api/bytes.po b/c-api/bytes.po index 54f1b896e9..6aa6d71cec 100644 --- a/c-api/bytes.po +++ b/c-api/bytes.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Bytes Objects" msgstr "" @@ -74,16 +74,16 @@ msgid "Format Characters" msgstr "" msgid "Type" -msgstr "" +msgstr "Typ" msgid "Comment" -msgstr "" +msgstr "komentarz" msgid ":attr:`%%`" msgstr "" msgid "*n/a*" -msgstr "" +msgstr "*n/a*" msgid "The literal % character." msgstr "" @@ -134,7 +134,7 @@ msgid ":attr:`%zd`" msgstr "" msgid ":c:type:`\\ Py_ssize_t`" -msgstr "" +msgstr ":c:type:`\\ Py_ssize_t`" msgid "Equivalent to ``printf(\"%zd\")``. [1]_" msgstr "" @@ -143,7 +143,7 @@ msgid ":attr:`%zu`" msgstr "" msgid "size_t" -msgstr "" +msgstr "size_t" msgid "Equivalent to ``printf(\"%zu\")``. [1]_" msgstr "" @@ -176,9 +176,9 @@ msgid "const void\\*" msgstr "" 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 "" msgid "" @@ -204,7 +204,7 @@ msgstr "" msgid "Return the length of the bytes in bytes object *o*." msgstr "" -msgid "Similar to :c:func:`PyBytes_Size`, but without error checking." +msgid "Macro form of :c:func:`PyBytes_Size` but without error checking." msgstr "" msgid "" @@ -213,11 +213,11 @@ msgid "" "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`." +"deallocated. If *o* is not a bytes object at " +"all, :c:func:`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`." msgstr "" -msgid "Similar to :c:func:`PyBytes_AsString`, but without error checking." +msgid "Macro form of :c:func:`PyBytes_AsString` but without error checking." msgstr "" msgid "" @@ -255,8 +255,8 @@ msgstr "" msgid "" "Create a new bytes object in *\\*bytes* containing the contents of *newpart* " -"appended to *bytes*. This version decrements the reference count of " -"*newpart*." +"appended to *bytes*. This version releases the :term:`strong reference` to " +"*newpart* (i.e. decrements its reference count)." msgstr "" msgid "" @@ -267,7 +267,7 @@ 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` " +"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 "" diff --git a/c-api/call.po b/c-api/call.po index 5558314100..24f6719046 100644 --- a/c-api/call.po +++ b/c-api/call.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Call Protocol" msgstr "" @@ -46,8 +46,9 @@ msgid "" msgstr "" msgid "" -"This convention is not only used by *tp_call*: :c:member:`~PyTypeObject." -"tp_new` and :c:member:`~PyTypeObject.tp_init` also pass arguments this way." +"This convention is not only used by " +"*tp_call*: :c:member:`~PyTypeObject.tp_new` " +"and :c:member:`~PyTypeObject.tp_init` also pass arguments this way." msgstr "" msgid "" @@ -66,17 +67,18 @@ msgstr "" msgid "" "As rule of thumb, CPython will prefer the vectorcall for internal calls if " "the callable supports it. However, this is not a hard rule. Additionally, " -"some third-party extensions use *tp_call* directly (rather than using :c:" -"func:`PyObject_Call`). Therefore, a class supporting vectorcall must also " -"implement :c:member:`~PyTypeObject.tp_call`. Moreover, the callable must " -"behave the same regardless of which protocol is used. The recommended way to " -"achieve this is by setting :c:member:`~PyTypeObject.tp_call` to :c:func:" -"`PyVectorcall_Call`. This bears repeating:" +"some third-party extensions use *tp_call* directly (rather than " +"using :c:func:`PyObject_Call`). Therefore, a class supporting vectorcall " +"must also implement :c:member:`~PyTypeObject.tp_call`. Moreover, the " +"callable must behave the same regardless of which protocol is used. The " +"recommended way to achieve this is by " +"setting :c:member:`~PyTypeObject.tp_call` to :c:func:`PyVectorcall_Call`. " +"This bears repeating:" msgstr "" msgid "" -"A class supporting vectorcall **must** also implement :c:member:" -"`~PyTypeObject.tp_call` with the same semantics." +"A class supporting vectorcall **must** also " +"implement :c:member:`~PyTypeObject.tp_call` with the same semantics." msgstr "" msgid "" @@ -87,11 +89,11 @@ msgid "" msgstr "" msgid "" -"Classes can implement the vectorcall protocol by enabling the :const:" -"`Py_TPFLAGS_HAVE_VECTORCALL` flag and setting :c:member:`~PyTypeObject." -"tp_vectorcall_offset` to the offset inside the object structure where a " -"*vectorcallfunc* appears. This is a pointer to a function with the following " -"signature:" +"Classes can implement the vectorcall protocol by enabling " +"the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag and " +"setting :c:member:`~PyTypeObject.tp_vectorcall_offset` to the offset inside " +"the object structure where a *vectorcallfunc* appears. This is a pointer to " +"a function with the following signature:" msgstr "" msgid "*callable* is the object being called." @@ -164,8 +166,8 @@ msgstr "Kontrola Rekursji" msgid "" "When using *tp_call*, callees do not need to worry about :ref:`recursion " -"`: CPython uses :c:func:`Py_EnterRecursiveCall` and :c:func:" -"`Py_LeaveRecursiveCall` for calls made using *tp_call*." +"`: CPython uses :c:func:`Py_EnterRecursiveCall` " +"and :c:func:`Py_LeaveRecursiveCall` for calls made using *tp_call*." msgstr "" msgid "" @@ -205,10 +207,10 @@ msgid "" msgstr "" msgid "" -"This is a specialized function, intended to be put in the :c:member:" -"`~PyTypeObject.tp_call` slot or be used in an implementation of ``tp_call``. " -"It does not check the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag and it does " -"not fall back to ``tp_call``." +"This is a specialized function, intended to be put in " +"the :c:member:`~PyTypeObject.tp_call` slot or be used in an implementation " +"of ``tp_call``. It does not check the :const:`Py_TPFLAGS_HAVE_VECTORCALL` " +"flag and it does not fall back to ``tp_call``." msgstr "" msgid "Object Calling API" @@ -227,7 +229,7 @@ msgid "" msgstr "" msgid "Function" -msgstr "" +msgstr "Funkcja" msgid "callable" msgstr "" @@ -239,76 +241,76 @@ msgid "kwargs" msgstr "" msgid ":c:func:`PyObject_Call`" -msgstr "" +msgstr ":c:func:`PyObject_Call`" msgid "``PyObject *``" -msgstr "" +msgstr "``PyObject *``" msgid "tuple" -msgstr "" +msgstr "tuple" msgid "dict/``NULL``" -msgstr "" +msgstr "dict/``NULL``" msgid ":c:func:`PyObject_CallNoArgs`" -msgstr "" +msgstr ":c:func:`PyObject_CallNoArgs`" msgid "---" msgstr "" msgid ":c:func:`PyObject_CallOneArg`" -msgstr "" +msgstr ":c:func:`PyObject_CallOneArg`" msgid "1 object" msgstr "" msgid ":c:func:`PyObject_CallObject`" -msgstr "" +msgstr ":c:func:`PyObject_CallObject`" msgid "tuple/``NULL``" -msgstr "" +msgstr "tuple/``NULL``" msgid ":c:func:`PyObject_CallFunction`" -msgstr "" +msgstr ":c:func:`PyObject_CallFunction`" msgid "format" -msgstr "" +msgstr "format" msgid ":c:func:`PyObject_CallMethod`" -msgstr "" +msgstr ":c:func:`PyObject_CallMethod`" msgid "obj + ``char*``" -msgstr "" +msgstr "obj + ``char*``" msgid ":c:func:`PyObject_CallFunctionObjArgs`" -msgstr "" +msgstr ":c:func:`PyObject_CallFunctionObjArgs`" msgid "variadic" msgstr "" msgid ":c:func:`PyObject_CallMethodObjArgs`" -msgstr "" +msgstr ":c:func:`PyObject_CallMethodObjArgs`" msgid "obj + name" msgstr "" msgid ":c:func:`PyObject_CallMethodNoArgs`" -msgstr "" +msgstr ":c:func:`PyObject_CallMethodNoArgs`" msgid ":c:func:`PyObject_CallMethodOneArg`" -msgstr "" +msgstr ":c:func:`PyObject_CallMethodOneArg`" msgid ":c:func:`PyObject_Vectorcall`" -msgstr "" +msgstr ":c:func:`PyObject_Vectorcall`" msgid "vectorcall" msgstr "" msgid ":c:func:`PyObject_VectorcallDict`" -msgstr "" +msgstr ":c:func:`PyObject_VectorcallDict`" msgid ":c:func:`PyObject_VectorcallMethod`" -msgstr "" +msgstr ":c:func:`PyObject_VectorcallMethod`" msgid "arg + name" msgstr "" @@ -359,8 +361,8 @@ msgid "" msgstr "" msgid "" -"Note that if you only pass :c:expr:`PyObject *` args, :c:func:" -"`PyObject_CallFunctionObjArgs` is a faster alternative." +"Note that if you only pass :c:expr:`PyObject *` " +"args, :c:func:`PyObject_CallFunctionObjArgs` is a faster alternative." msgstr "" msgid "The type of *format* was changed from ``char *``." @@ -381,17 +383,17 @@ msgid "" msgstr "" msgid "" -"Note that if you only pass :c:expr:`PyObject *` args, :c:func:" -"`PyObject_CallMethodObjArgs` is a faster alternative." +"Note that if you only pass :c:expr:`PyObject *` " +"args, :c:func:`PyObject_CallMethodObjArgs` is a faster alternative." msgstr "" msgid "The types of *name* and *format* were changed from ``char *``." msgstr "" msgid "" -"Call a callable Python object *callable*, with a variable number of :c:expr:" -"`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:expr:`PyObject *` arguments. The arguments are provided as a variable " +"number of parameters followed by *NULL*." msgstr "" msgid "" @@ -418,9 +420,9 @@ msgid "" msgstr "" msgid "" -"Call a callable Python object *callable*. The arguments are the same as for :" -"c:type:`vectorcallfunc`. If *callable* supports vectorcall_, this directly " -"calls the vectorcall function stored in *callable*." +"Call a callable Python object *callable*. The arguments are the same as " +"for :c:type:`vectorcallfunc`. If *callable* supports vectorcall_, this " +"directly calls the vectorcall function stored in *callable*." msgstr "" msgid "" @@ -441,10 +443,10 @@ msgid "" "method is given as a Python string *name*. The object whose method is called " "is *args[0]*, and the *args* array starting at *args[1]* represents the " "arguments of the call. There must be at least one positional argument. " -"*nargsf* is the number of positional arguments including *args[0]*, plus :" -"const:`PY_VECTORCALL_ARGUMENTS_OFFSET` if the value of ``args[0]`` may " -"temporarily be changed. Keyword arguments can be passed just like in :c:func:" -"`PyObject_Vectorcall`." +"*nargsf* is the number of positional arguments including *args[0]*, " +"plus :const:`PY_VECTORCALL_ARGUMENTS_OFFSET` if the value of ``args[0]`` may " +"temporarily be changed. Keyword arguments can be passed just like " +"in :c:func:`PyObject_Vectorcall`." msgstr "" msgid "" diff --git a/c-api/cell.po b/c-api/cell.po new file mode 100644 index 0000000000..d50678524b --- /dev/null +++ b/c-api/cell.po @@ -0,0 +1,85 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Cell Objects" +msgstr "" + +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 " +"support from the generated byte-code; these are not automatically de-" +"referenced when accessed. Cell objects are not likely to be useful elsewhere." +msgstr "" +"Obiekty \"Cell\" są używane do implementacji zmiennych, do których odwołuje " +"się wiele zakresów. Dla każdej takiej zmiennej tworzony jest obiekt komórki " +"do przechowywania wartości; zmienne lokalne każdej ramki stosu, która " +"odwołuje się do wartości, zawierają odniesienie do komórek z zewnętrznych " +"zakresów, które również używają tej zmiennej. Gdy wartość jest dostępna, " +"wartość zawarta w komórce jest używana zamiast samego obiektu komórki. " +"Odwoływanie się do obiektu komórki wymaga wsparcia ze strony wygenerowanego " +"kodu bajtowego; nie są one automatycznie odwoływane, gdy uzyskuje się do " +"nich dostęp. Obiekty komórek prawdopodobnie nie będą przydatne w innych " +"miejscach." + +msgid "The C structure used for cell objects." +msgstr "" + +msgid "The type object corresponding to cell objects." +msgstr "" + +msgid "" +"Return true if *ob* is a cell object; *ob* must not be ``NULL``. This " +"function always succeeds." +msgstr "" + +msgid "" +"Create and return a new cell object containing the value *ob*. The parameter " +"may be ``NULL``." +msgstr "" + +msgid "Return the contents of the cell *cell*." +msgstr "" + +msgid "" +"Return the contents of the cell *cell*, but without checking that *cell* is " +"non-``NULL`` and a cell object." +msgstr "" + +msgid "" +"Set the contents of the cell object *cell* to *value*. This releases the " +"reference to any current content of the cell. *value* may be ``NULL``. " +"*cell* must be non-``NULL``; if it is not a cell object, ``-1`` will be " +"returned. On success, ``0`` will be returned." +msgstr "" + +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." +msgstr "" diff --git a/c-api/complex.po b/c-api/complex.po index c70202f31e..41e6067c32 100644 --- a/c-api/complex.po +++ b/c-api/complex.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# gresm gresm, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:48+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Complex Number Objects" msgstr "Obiekt Liczby Zespolonej" @@ -33,10 +32,10 @@ msgid "" "and the other is a C structure which represents the actual complex number " "value. The API provides functions for working with both." msgstr "" -"Pythonowe liczby zespolone są stworzone w implementacji C jako dwa oddzielne " -"typy: jeden jest strukturą w C która reprezentuje prawdziwe liczby " -"zespolone, a drugi ujawnia tą strukturę dla Pythonowego kodu. API ma funkcje " -"do operacji na obydwu typach." +"Python-owe obiekty liczby zespolonej są stworzone w C jako dwa oddzielne " +"typy: jeden jest strukturą w która reprezentuje prawdziwe liczby zespolone, " +"a drugi ujawnia tą strukturę dla Python-owego kodu. API ma funkcje do " +"operacji na obydwu typach." msgid "Complex Numbers as C Structures" msgstr "Liczby zespolone jako struktury w C" @@ -58,35 +57,43 @@ msgid "" "Return the sum of two complex numbers, using the C :c:type:`Py_complex` " "representation." msgstr "" +"Zwraca sumę dwóch liczb zespolonych wykorzystując " +"strukturę :c:type:`Py_complex` jako reprezentację." 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 "" +"Zwraca różnicę dwóch liczb zespolonych wykorzystując " +"strukturę :c:type:`Py_complex` jako reprezentację." msgid "" -"Return the negation of the complex number *num*, using the C :c:type:" -"`Py_complex` representation." +"Return the negation of the complex number *num*, using the " +"C :c:type:`Py_complex` representation." msgstr "" msgid "" "Return the product of two complex numbers, using the C :c:type:`Py_complex` " "representation." msgstr "" +"Zwraca iloczyn dwóch liczb zespolonych wykorzystując " +"strukturę :c:type:`Py_complex` jako reprezentację." msgid "" "Return the quotient of two complex numbers, using the C :c:type:`Py_complex` " "representation." msgstr "" +"Zwraca iloraz dwóch liczb zespolonych wykorzystując " +"strukturę :c:type:`Py_complex` jako reprezentację." 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 "" 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 "" msgid "" @@ -107,8 +114,8 @@ msgid "" msgstr "" msgid "" -"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :" -"c:type:`PyComplexObject`. This function always succeeds." +"Return true if its argument is a :c:type:`PyComplexObject` or a subtype " +"of :c:type:`PyComplexObject`. This function always succeeds." msgstr "" msgid "" @@ -136,9 +143,9 @@ msgstr "" 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. If ``__complex__()`` is not defined then it falls back to :" -"meth:`__float__`. If ``__float__()`` is not defined then it falls back to :" -"meth:`__index__`. Upon failure, this method returns ``-1.0`` as a real " +"number object. If ``__complex__()`` is not defined then it falls back " +"to :meth:`__float__`. If ``__float__()`` is not defined then it falls back " +"to :meth:`__index__`. Upon failure, this method returns ``-1.0`` as a real " "value." msgstr "" diff --git a/c-api/concrete.po b/c-api/concrete.po new file mode 100644 index 0000000000..044096c8ce --- /dev/null +++ b/c-api/concrete.po @@ -0,0 +1,72 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Concrete Objects Layer" +msgstr "" + +msgid "" +"The functions in this chapter are specific to certain Python object types. " +"Passing them an object of the wrong type is not a good idea; if you receive " +"an object from a Python program and you are not sure that it has the right " +"type, you must perform a type check first; for example, to check that an " +"object is a dictionary, use :c:func:`PyDict_Check`. The chapter is " +"structured like the \"family tree\" of Python object types." +msgstr "" + +msgid "" +"While the functions described in this chapter carefully check the type of " +"the objects which are passed in, many of them do not check for ``NULL`` " +"being passed instead of a valid object. Allowing ``NULL`` to be passed in " +"can cause memory access violations and immediate termination of the " +"interpreter." +msgstr "" + +msgid "Fundamental Objects" +msgstr "" + +msgid "" +"This section describes Python type objects and the singleton object ``None``." +msgstr "" + +msgid "Numeric Objects" +msgstr "" + +msgid "Sequence Objects" +msgstr "" + +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." +msgstr "" + +msgid "Container Objects" +msgstr "" + +msgid "Function Objects" +msgstr "Obiekty Funkcja" + +msgid "Other Objects" +msgstr "" diff --git a/c-api/contextvars.po b/c-api/contextvars.po new file mode 100644 index 0000000000..bca479defc --- /dev/null +++ b/c-api/contextvars.po @@ -0,0 +1,152 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Context Variables Objects" +msgstr "" + +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 "" + +msgid "See :issue:`34762` for more details." +msgstr "" + +msgid "" +"This section details the public C API for the :mod:`contextvars` module." +msgstr "" + +msgid "" +"The C structure used to represent a :class:`contextvars.Context` object." +msgstr "" + +msgid "" +"The C structure used to represent a :class:`contextvars.ContextVar` object." +msgstr "" + +msgid "The C structure used to represent a :class:`contextvars.Token` object." +msgstr "" + +msgid "The type object representing the *context* type." +msgstr "" + +msgid "The type object representing the *context variable* type." +msgstr "" + +msgid "The type object representing the *context variable token* type." +msgstr "" + +msgid "Type-check macros:" +msgstr "Sprawdzanie typu makr:" + +msgid "" +"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be " +"``NULL``. This function always succeeds." +msgstr "" + +msgid "" +"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be " +"``NULL``. This function always succeeds." +msgstr "" + +msgid "" +"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be " +"``NULL``. This function always succeeds." +msgstr "" + +msgid "Context object management functions:" +msgstr "" + +msgid "" +"Create a new empty context object. Returns ``NULL`` if an error has " +"occurred." +msgstr "" + +msgid "" +"Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` " +"if an error has occurred." +msgstr "" + +msgid "" +"Create a shallow copy of the current thread context. Returns ``NULL`` if an " +"error has occurred." +msgstr "" + +msgid "" +"Set *ctx* as the current context for the current thread. Returns ``0`` on " +"success, and ``-1`` on error." +msgstr "" + +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 "" + +msgid "Context variable functions:" +msgstr "" + +msgid "" +"Create a new ``ContextVar`` object. The *name* parameter is used for " +"introspection and debug purposes. The *def* parameter specifies a default " +"value for the context variable, or ``NULL`` for no default. If an error has " +"occurred, this function returns ``NULL``." +msgstr "" + +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 "" + +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 "" + +msgid "*default_value*, if not ``NULL``;" +msgstr "" + +msgid "the default value of *var*, if not ``NULL``;" +msgstr "" + +msgid "``NULL``" +msgstr "``NULL``" + +msgid "Except for ``NULL``, the function returns a new reference." +msgstr "" + +msgid "" +"Set the value of *var* to *value* in the current context. Returns a new " +"token object for this change, or ``NULL`` if an error has occurred." +msgstr "" + +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 returns ``0`` on success and ``-1`` on error." +msgstr "" diff --git a/c-api/conversion.po b/c-api/conversion.po new file mode 100644 index 0000000000..62a67de1c5 --- /dev/null +++ b/c-api/conversion.po @@ -0,0 +1,219 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Blessing Oluronbi, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:56+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "String conversion and formatting" +msgstr "Konwersja i formatowanie ciągów znaków" + +msgid "Functions for number conversion and formatted string output." +msgstr "funkcja do konwersji liczb i formatowania napis wyjście." + +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(3)`." +msgstr "" +"Wyjście nie więcej niż *size* bajtów do *str* zgodnie z format napis " +"*format* i ekstra argument. Zobacz stronę podręcznika " +"Unix :manpage:`snprintf(3)`." + +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(3)`." +msgstr "" +"Wyprowadzaj nie więcej niż *size* bajtów do *str* zgodnie z ciągiem format " +"napis ującym *format* i listą argumentów zmiennych *va*. Strona podręcznika " +"systemu Unix :manpage:`vsnprintf(3)`." + +msgid "" +":c:func:`PyOS_snprintf` and :c:func:`PyOS_vsnprintf` wrap the Standard C " +"library functions :c:func:`snprintf` and :c:func:`vsnprintf`. Their purpose " +"is to guarantee consistent behavior in corner cases, which the Standard C " +"functions do not." +msgstr "" +":c:func:`PyOS_snprintf` I :c:func:`PyOS_vsnprintf` owinąć Standardowe C " +"biblioteka funkcja :c:func:`snprintf` I :c:func:`vsnprintf`. Ich celem jest " +"zagwarantowanie spójnego zachowania w skrajnych przypadkach, czego nie " +"zapewniają standardowe funkcje języka C." + +msgid "" +"The wrappers ensure that ``str[size-1]`` is always ``'\\0'`` upon return. " +"They never write more than *size* bytes (including the trailing ``'\\0'``) " +"into str. Both functions require that ``str != NULL``, ``size > 0``, " +"``format != NULL`` and ``size < INT_MAX``. Note that this means there is no " +"equivalent to the C99 ``n = snprintf(NULL, 0, ...)`` which would determine " +"the necessary buffer size." +msgstr "" +"Wraptory zapewniają, że ``str[size-1]`` zawsze jest to ``'\\0'`` wartość " +"zwracaćz. Nigdy nie zapisują więcej niż *size* bajtów (wliczając " +"końcowy``'\\0'`` ) do str. Obie funkcja wymagają aby ``str != NULL``, " +"``size > 0``, ``format != NULL`` i ``size < INT_MAX``. Należy pamiętać, że " +"oznacza to brak odpowiednika C99 ``n = snprintf(NULL, 0, ...)``, który " +"określałby wymagany rozmiar bufor size." + +msgid "" +"The return value (*rv*) for these functions should be interpreted as follows:" +msgstr "" +"The zwracana wartość (*rv*) dla tych funkcja należy interpretować je " +"następująco:" + +msgid "" +"When ``0 <= rv < size``, the output conversion was successful and *rv* " +"characters were written to *str* (excluding the trailing ``'\\0'`` byte at " +"``str[rv]``)." +msgstr "" +"Gdy ``0 <= rv < size``, konwersja danych wyjściowych zakończyła się " +"powodzeniem, a znaki *rv* znak zapisane w *str* (z wyłączeniem końcowego " +"``'\\0'`` bajt o godz ``str[rv]``)" + +msgid "" +"When ``rv >= size``, the output conversion was truncated and a buffer with " +"``rv + 1`` bytes would have been needed to succeed. ``str[size-1]`` is " +"``'\\0'`` in this case." +msgstr "" +"Gdy ``rv >= size``, konwersja wyjściowa została skrócona, a bufor z ``rv + " +"1`` bajtów byłoby potrzebnych do osiągnięcia sukcesu. ``str[size-1]`` w " +"``'\\0'`` tym przypadku." + +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 " +"error depends on the underlying platform." +msgstr "" + +msgid "" +"The following functions provide locale-independent string to number " +"conversions." +msgstr "" +"Poniższe funkcje umożliwiają niezależną od ustawień regionalnych konwersję " +"ciągów znaków na liczby." + +msgid "" +"Convert a string ``s`` to a :c:expr:`double`, raising a Python exception on " +"failure. The set of accepted strings corresponds to the set of strings " +"accepted by Python's :func:`float` constructor, except that ``s`` must not " +"have leading or trailing whitespace. The conversion is independent of the " +"current locale." +msgstr "" +"Konwertuj ciąg napis ``s`` a :c:expr:`double`, rzucić a Python Wyjątek w " +"przypadku błędu. Zestaw akceptowanych ciągów znaków odpowiada zestawowi " +"ciągów znaków akceptowanych :func:`float`przez konstruktor Python ``s``, z " +"tym wyjątkiem, że nie mogą one zawierać spacji na początku ani na końcu. " +"Konwersja jest niezależna od bieżącej lokalizacji." + +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." +msgstr "" +"Jeśli ``endptr`` jest ``NULL``, przekonwertować cały napis. " +"Rzucić :exc:`ValueError` I zwracać ``-1.0`` jeśli napis nie jest ważny " +"prawidłową reprezentacją liczby zmiennoprzecinkowej." + +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 " +"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``." +msgstr "" +"Jeśli endptr jest różny od ``NULL`` , konwertuj tak dużą część napis jak to " +"możliwe ``*endptr``, i ustaw wskaźnik na pierwszy nieprzekonwertowany znak. " +"Jeżeli żaden początkowy segment napis nie jest prawidłową reprezentacją " +"liczby zmiennoprzecinkowej, ustaw go tak ``*endptr``, aby wskazywał na " +"początek ciągu, zgłoś wyjątek ValueError i zwróć ``-1.0`` ." + +msgid "" +"If ``s`` represents a value that is too large to store in a float (for " +"example, ``\"1e500\"`` is such a string on many platforms) then if " +"``overflow_exception`` is ``NULL`` return ``Py_HUGE_VAL`` (with an " +"appropriate sign) and don't set any exception. Otherwise, " +"``overflow_exception`` must point to a Python exception object; raise that " +"exception and return ``-1.0``. In both cases, set ``*endptr`` to point to " +"the first character after the converted value." +msgstr "" + +msgid "" +"If any other error occurs during the conversion (for example an out-of-" +"memory error), set the appropriate Python exception and return ``-1.0``." +msgstr "" +"Jeżeli podczas konwersji wystąpi jakikolwiek inny błąd (na przykład błąd " +"braku pamięci), ustaw odpowiedni wyjątek Pythona i zwracać ``-1.0``." + +msgid "" +"Convert a :c:expr:`double` *val* to a string using supplied *format_code*, " +"*precision*, and *flags*." +msgstr "" +"Konwertuje :c:expr:`double` *val* na napis ciąg znaków przy użyciu " +"dostarczonych *format_code*, *precision* i *flags*." + +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." +msgstr "" + +msgid "" +"*flags* can be zero or more of the values ``Py_DTSF_SIGN``, " +"``Py_DTSF_ADD_DOT_0``, or ``Py_DTSF_ALT``, or-ed together:" +msgstr "" + +msgid "" +"``Py_DTSF_SIGN`` means to always precede the returned string with a sign " +"character, even if *val* is non-negative." +msgstr "" + +msgid "" +"``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look " +"like an integer." +msgstr "" + +msgid "" +"``Py_DTSF_ALT`` means to apply \"alternate\" formatting rules. See the " +"documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for details." +msgstr "" + +msgid "" +"If *ptype* is non-``NULL``, then the value it points to will be set to one " +"of ``Py_DTST_FINITE``, ``Py_DTST_INFINITE``, or ``Py_DTST_NAN``, signifying " +"that *val* is a finite number, an infinite number, or not a number, " +"respectively." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Case insensitive comparison of strings. The function works almost " +"identically to :c:func:`strcmp` except that it ignores the case." +msgstr "" + +msgid "" +"Case insensitive comparison of strings. The function works almost " +"identically to :c:func:`strncmp` except that it ignores the case." +msgstr "" diff --git a/c-api/datetime.po b/c-api/datetime.po new file mode 100644 index 0000000000..59b4d3e608 --- /dev/null +++ b/c-api/datetime.po @@ -0,0 +1,222 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "DateTime Objects" +msgstr "" + +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." +msgstr "" + +msgid "Macro for access to the UTC singleton:" +msgstr "" + +msgid "" +"Returns the time zone singleton representing UTC, the same object " +"as :attr:`datetime.timezone.utc`." +msgstr "" + +msgid "Type-check macros:" +msgstr "Sprawdzanie typu makr:" + +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``. This function " +"always succeeds." +msgstr "" + +msgid "" +"Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not " +"be ``NULL``. This function always succeeds." +msgstr "" + +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``. " +"This function always succeeds." +msgstr "" + +msgid "" +"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must " +"not be ``NULL``. This function always succeeds." +msgstr "" + +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``. This function " +"always succeeds." +msgstr "" + +msgid "" +"Return true if *ob* is of type :c:data:`PyDateTime_TimeType`. *ob* must not " +"be ``NULL``. This function always succeeds." +msgstr "" + +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``. This " +"function always succeeds." +msgstr "" + +msgid "" +"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not " +"be ``NULL``. This function always succeeds." +msgstr "" + +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``. This " +"function always succeeds." +msgstr "" + +msgid "" +"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType`. *ob* must " +"not be ``NULL``. This function always succeeds." +msgstr "" + +msgid "Macros to create objects:" +msgstr "" + +msgid "" +"Return a :class:`datetime.date` object with the specified year, month and " +"day." +msgstr "" + +msgid "" +"Return a :class:`datetime.datetime` object with the specified year, month, " +"day, hour, minute, second and microsecond." +msgstr "" + +msgid "" +"Return a :class:`datetime.datetime` object with the specified year, month, " +"day, hour, minute, second, microsecond and fold." +msgstr "" + +msgid "" +"Return a :class:`datetime.time` object with the specified hour, minute, " +"second and microsecond." +msgstr "" + +msgid "" +"Return a :class:`datetime.time` object with the specified hour, minute, " +"second, microsecond and fold." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Return a :class:`datetime.timezone` object with an unnamed fixed offset " +"represented by the *offset* argument." +msgstr "" + +msgid "" +"Return a :class:`datetime.timezone` object with a fixed offset represented " +"by the *offset* argument and with tzname *name*." +msgstr "" + +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:" +msgstr "" + +msgid "Return the year, as a positive int." +msgstr "" + +msgid "Return the month, as an int from 1 through 12." +msgstr "" + +msgid "Return the day, as an int from 1 through 31." +msgstr "" + +msgid "" +"Macros to extract fields from datetime objects. The argument must be an " +"instance of :c:data:`PyDateTime_DateTime`, including subclasses. The " +"argument must not be ``NULL``, and the type is not checked:" +msgstr "" + +msgid "Return the hour, as an int from 0 through 23." +msgstr "" + +msgid "Return the minute, as an int from 0 through 59." +msgstr "" + +msgid "Return the second, as an int from 0 through 59." +msgstr "" + +msgid "Return the microsecond, as an int from 0 through 999999." +msgstr "" + +msgid "Return the fold, as an int from 0 through 1." +msgstr "" + +msgid "Return the tzinfo (which may be ``None``)." +msgstr "" + +msgid "" +"Macros to extract fields from time objects. The argument must be an " +"instance of :c:data:`PyDateTime_Time`, including subclasses. The argument " +"must not be ``NULL``, and the type is not checked:" +msgstr "" + +msgid "" +"Macros to extract fields from time delta objects. The argument must be an " +"instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument " +"must not be ``NULL``, and the type is not checked:" +msgstr "" + +msgid "Return the number of days, as an int from -999999999 to 999999999." +msgstr "" + +msgid "Return the number of seconds, as an int from 0 through 86399." +msgstr "" + +msgid "Return the number of microseconds, as an int from 0 through 999999." +msgstr "" + +msgid "Macros for the convenience of modules implementing the DB API:" +msgstr "" + +msgid "" +"Create and return a new :class:`datetime.datetime` object given an argument " +"tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`." +msgstr "" + +msgid "" +"Create and return a new :class:`datetime.date` object given an argument " +"tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`." +msgstr "" diff --git a/c-api/dict.po b/c-api/dict.po index 1879de902e..7d4c57cbb7 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -1,52 +1,58 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:48+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Dictionary Objects" -msgstr "" +msgstr "Obiekty słownika" msgid "" "This subtype of :c:type:`PyObject` represents a Python dictionary object." -msgstr "" +msgstr "Ten podtyp :c:type:`PyObject` reprezentuje obiekt słownika Pythona." 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 "" +"Ta instancja :c:type:`PyTypeObject` reprezentuje typ słownika Pythona. Jest " +"to ten sam obiekt, co :class:`dict` w warstwie Pythona." msgid "" "Return true if *p* is a dict object or an instance of a subtype of the dict " "type. This function always succeeds." msgstr "" +"Zwraca wartość true, jeśli *p* jest obiektem typu dict lub instancją podtypu " +"typu dict. Funkcja ta zawsze kończy się powodzeniem." msgid "" "Return true if *p* is a dict object, but not an instance of a subtype of the " "dict type. This function always succeeds." msgstr "" +"Zwraca wartość true, jeśli *p* jest obiektem typu dict, ale nie jest " +"instancją podtypu typu dict. Funkcja ta zawsze kończy się powodzeniem." msgid "Return a new empty dictionary, or ``NULL`` on failure." -msgstr "" +msgstr "Zwraca nowy pusty słownik lub ``NULL`` w przypadku niepowodzenia." msgid "" "Return a :class:`types.MappingProxyType` object for a mapping which enforces " @@ -64,13 +70,13 @@ msgid "" msgstr "" msgid "Return a new dictionary that contains the same key-value pairs as *p*." -msgstr "" +msgstr "Zwraca nowy słownik zawierający te same pary klucz-wartość co *p*." msgid "" -"Insert *val* 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. This function *does not* steal a reference " -"to *val*." +"Insert *val* 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. This function *does not* steal a " +"reference to *val*." msgstr "" msgid "" @@ -81,9 +87,10 @@ msgid "" msgstr "" msgid "" -"Remove the entry in dictionary *p* with key *key*. *key* must be hashable; " -"if it isn't, :exc:`TypeError` is raised. If *key* is not in the dictionary, :" -"exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure." +"Remove the entry in dictionary *p* with key *key*. *key* must " +"be :term:`hashable`; if it isn't, :exc:`TypeError` is raised. If *key* is " +"not in the dictionary, :exc:`KeyError` is raised. Return ``0`` on success or " +"``-1`` on failure." msgstr "" msgid "" @@ -98,9 +105,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -115,14 +122,15 @@ msgid "" msgstr "" msgid "" -"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:" -"expr:`const char*`, rather than a :c:expr:`PyObject*`." +"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as " +"a :c:expr:`const char*`, rather than a :c:expr:`PyObject*`." msgstr "" 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 "" msgid "" @@ -146,6 +154,7 @@ msgid "" "Return a :c:type:`PyListObject` containing all the values from the " "dictionary *p*." msgstr "" +"Zwraca :c:type:`PyListObject` zawierający wszystkie wartości ze słownika *p*." msgid "" "Return the number of items in the dictionary. This is equivalent to " @@ -153,16 +162,16 @@ msgid "" msgstr "" 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:expr:" -"`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:expr:`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 "" msgid "For example::" @@ -184,10 +193,10 @@ msgid "" msgstr "" 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 " +"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 "" diff --git a/c-api/exceptions.po b/c-api/exceptions.po index 66c2482a5a..2609bcada2 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:48+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Exception Handling" msgstr "Obsługa sytuacji wyjątkowych" @@ -97,9 +97,10 @@ msgid "" msgstr "" 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 " -"type, value and traceback of the printed exception, respectively." +"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 "" msgid "Alias for ``PyErr_PrintEx(1)``." @@ -138,9 +139,9 @@ msgstr "" 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 " -"count. The second argument is an error message; it is decoded from " -"``'utf-8'``." +"e.g. :c:data:`PyExc_RuntimeError`. You need not create a new :term:`strong " +"reference` to it (e.g. with :c:func:`Py_INCREF`). The second argument is an " +"error message; it is decoded from ``'utf-8'``." msgstr "" msgid "" @@ -151,8 +152,8 @@ msgstr "" 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 "" msgid "" @@ -179,9 +180,9 @@ 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 " -"Unix, when the :c:data:`errno` value is :const:`EINTR`, indicating an " +"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 " "returns ``NULL``, so a wrapper function around a system call can write " @@ -211,10 +212,10 @@ msgid "" "This is a convenience function to raise :exc:`WindowsError`. If called with " "*ierr* of ``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 " +"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 "" @@ -307,46 +308,49 @@ msgid "" "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 "" 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 " -"enumerated at :ref:`standardwarningcategories`." +"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 "" 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 "" 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 "" msgid "" "Similar to :c:func:`PyErr_WarnExplicitObject` except that *message* and " -"*module* are UTF-8 encoded strings, and *filename* is decoded from the :term:" -"`filesystem encoding and error handler`." +"*module* are UTF-8 encoded strings, and *filename* is decoded from " +"the :term:`filesystem encoding and error handler`." msgstr "" 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 "" msgid "" -"Function similar to :c:func:`PyErr_WarnFormat`, but *category* is :exc:" -"`ResourceWarning` and it passes *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 "" msgid "Querying the error indicator" @@ -356,18 +360,19 @@ 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 ``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." +"do not own a reference to the return value, so you do not need " +"to :c:func:`Py_DECREF` it." msgstr "" msgid "The caller must hold the GIL." msgstr "" 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 "" msgid "" @@ -393,8 +398,8 @@ msgstr "" 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 "" msgid "" @@ -431,39 +436,10 @@ msgid "" msgstr "" msgid "" -"Retrieve the active exception instance, as would be returned by :func:`sys." -"exception`. This refers to an exception that was *already caught*, not to an " -"exception that was freshly raised. Returns a new reference to the exception " -"or ``NULL``. Does not modify the interpreter's exception state." -msgstr "" - -msgid "" -"This function is not normally used by code that wants to handle exceptions. " -"Rather, it can be used when code needs to save and restore the exception " -"state temporarily. Use :c:func:`PyErr_SetHandledException` to restore or " -"clear the exception state." -msgstr "" - -msgid "" -"Set the active exception, as known from ``sys.exception()``. This refers to " -"an exception that was *already caught*, not to an exception that was freshly " -"raised. To clear the exception state, pass ``NULL``." -msgstr "" - -msgid "" -"This function is not normally used by code that wants to handle exceptions. " -"Rather, it can be used when code needs to save and restore the exception " -"state temporarily. Use :c:func:`PyErr_GetHandledException` to get the " -"exception state." -msgstr "" - -msgid "" -"Retrieve the old-style representation of the exception info, as known from :" -"func:`sys.exc_info`. This refers to an exception that was *already caught*, " -"not to an exception that was freshly raised. Returns new references for the " -"three objects, any of which may be ``NULL``. Does not modify the exception " -"info state. This function is kept for backwards compatibility. Prefer " -"using :c:func:`PyErr_GetHandledException`." +"Retrieve 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. Returns new references for the three objects, any of which " +"may be ``NULL``. Does not modify the exception info state." msgstr "" msgid "" @@ -477,9 +453,8 @@ 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 " "raised. This function steals the references of the arguments. To clear the " -"exception state, pass ``NULL`` for all three arguments. This function is " -"kept for backwards compatibility. Prefer using :c:func:" -"`PyErr_SetHandledException`." +"exception state, pass ``NULL`` for all three arguments. For general rules " +"about the three arguments, see :c:func:`PyErr_Restore`." msgstr "" msgid "" @@ -489,12 +464,6 @@ msgid "" "state." msgstr "" -msgid "" -"The ``type`` and ``traceback`` arguments are no longer used and can be NULL. " -"The interpreter now derives them from the exception instance (the ``value`` " -"argument). The function still steals references of all three arguments." -msgstr "" - msgid "Signal Handling" msgstr "" @@ -512,8 +481,8 @@ msgid "" "The function attempts to handle all pending signals, and then returns ``0``. " "However, if a Python signal handler raises an exception, the error indicator " "is set and the function returns ``-1`` immediately (such that other pending " -"signals may not have been handled yet: they will be on the next :c:func:" -"`PyErr_CheckSignals()` invocation)." +"signals may not have been handled yet: they will be on the " +"next :c:func:`PyErr_CheckSignals()` invocation)." msgstr "" msgid "" @@ -527,8 +496,8 @@ msgid "" msgstr "" msgid "" -"The default Python signal handler for :const:`SIGINT` raises the :exc:" -"`KeyboardInterrupt` exception." +"The default Python signal handler for :const:`SIGINT` raises " +"the :exc:`KeyboardInterrupt` exception." msgstr "" msgid "" @@ -537,14 +506,14 @@ msgid "" msgstr "" msgid "" -"This function is async-signal-safe. It can be called without the :term:" -"`GIL` and from a C signal handler." +"This function is async-signal-safe. It can be called without " +"the :term:`GIL` and from a C signal handler." msgstr "" msgid "" -"Simulate the effect of a signal arriving. The next time :c:func:" -"`PyErr_CheckSignals` is called, the Python signal handler for the given " -"signal number will be called." +"Simulate the effect of a signal arriving. The next " +"time :c:func:`PyErr_CheckSignals` is called, the Python signal handler for " +"the given signal number will be called." msgstr "" msgid "" @@ -555,8 +524,8 @@ msgid "" msgstr "" msgid "" -"If the given signal isn't handled by Python (it was set to :data:`signal." -"SIG_DFL` or :data:`signal.SIG_IGN`), it will be ignored." +"If the given signal isn't handled by Python (it was set " +"to :data:`signal.SIG_DFL` or :data:`signal.SIG_IGN`), it will be ignored." msgstr "" msgid "" @@ -664,6 +633,30 @@ msgid "" "UTF-8 encoded strings." msgstr "" +msgid "" +"Create a :class:`UnicodeEncodeError` object with the attributes *encoding*, " +"*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are " +"UTF-8 encoded strings." +msgstr "" + +msgid "3.11" +msgstr "3.11" + +msgid "" +"``Py_UNICODE`` is deprecated since Python 3.3. Please migrate to " +"``PyObject_CallFunction(PyExc_UnicodeEncodeError, \"sOnns\", ...)``." +msgstr "" + +msgid "" +"Create a :class:`UnicodeTranslateError` object with the attributes *object*, " +"*length*, *start*, *end* and *reason*. *reason* is a UTF-8 encoded string." +msgstr "" + +msgid "" +"``Py_UNICODE`` is deprecated since Python 3.3. Please migrate to " +"``PyObject_CallFunction(PyExc_UnicodeTranslateError, \"Onns\", ...)``." +msgstr "" + msgid "Return the *encoding* attribute of the given exception object." msgstr "" @@ -671,8 +664,8 @@ msgid "Return the *object* attribute of the given exception object." msgstr "" 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 "" @@ -682,8 +675,8 @@ msgid "" msgstr "" 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 "" @@ -717,8 +710,8 @@ msgstr "" 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 "" msgid "" @@ -743,9 +736,9 @@ msgstr "" 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 " -"cycles. The following two functions facilitate this functionality. " +"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 "" @@ -757,8 +750,9 @@ msgstr "" 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 "" msgid "" @@ -768,13 +762,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "Standard Exceptions" @@ -782,9 +776,9 @@ msgstr "Sztandarowe Sytuacje Wyjątkowe" 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:expr:`PyObject*`; they are all class objects. For completeness, here are " -"all the variables:" +"are ``PyExc_`` followed by the Python exception name. These have the " +"type :c:expr:`PyObject*`; they are all class objects. For completeness, " +"here are all the variables:" msgstr "" msgid "C Name" @@ -797,342 +791,336 @@ msgid "Notes" msgstr "Notatki" msgid ":c:data:`PyExc_BaseException`" -msgstr "" +msgstr ":c:data:`PyExc_BaseException`" msgid ":exc:`BaseException`" msgstr ":exc:`BaseException`" msgid "[1]_" -msgstr "" +msgstr "[1]_" msgid ":c:data:`PyExc_Exception`" -msgstr "" +msgstr ":c:data:`PyExc_Exception`" msgid ":exc:`Exception`" msgstr ":exc:`Exception`" msgid ":c:data:`PyExc_ArithmeticError`" -msgstr "" +msgstr ":c:data:`PyExc_ArithmeticError`" msgid ":exc:`ArithmeticError`" msgstr ":exc:`ArithmeticError`" msgid ":c:data:`PyExc_AssertionError`" -msgstr "" +msgstr ":c:data:`PyExc_AssertionError`" msgid ":exc:`AssertionError`" msgstr ":exc:`AssertionError`" msgid ":c:data:`PyExc_AttributeError`" -msgstr "" +msgstr ":c:data:`PyExc_AttributeError`" msgid ":exc:`AttributeError`" msgstr ":exc:`AttributeError`" msgid ":c:data:`PyExc_BlockingIOError`" -msgstr "" +msgstr ":c:data:`PyExc_BlockingIOError`" msgid ":exc:`BlockingIOError`" -msgstr "" +msgstr ":exc:`BlockingIOError`" msgid ":c:data:`PyExc_BrokenPipeError`" -msgstr "" +msgstr ":c:data:`PyExc_BrokenPipeError`" msgid ":exc:`BrokenPipeError`" -msgstr "" +msgstr ":exc:`BrokenPipeError`" msgid ":c:data:`PyExc_BufferError`" -msgstr "" +msgstr ":c:data:`PyExc_BufferError`" msgid ":exc:`BufferError`" -msgstr "" +msgstr ":exc:`BufferError`" msgid ":c:data:`PyExc_ChildProcessError`" -msgstr "" +msgstr ":c:data:`PyExc_ChildProcessError`" msgid ":exc:`ChildProcessError`" -msgstr "" +msgstr ":exc:`ChildProcessError`" msgid ":c:data:`PyExc_ConnectionAbortedError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionAbortedError`" msgid ":exc:`ConnectionAbortedError`" -msgstr "" +msgstr ":exc:`ConnectionAbortedError`" msgid ":c:data:`PyExc_ConnectionError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionError`" msgid ":exc:`ConnectionError`" -msgstr "" +msgstr ":exc:`ConnectionError`" msgid ":c:data:`PyExc_ConnectionRefusedError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionRefusedError`" msgid ":exc:`ConnectionRefusedError`" -msgstr "" +msgstr ":exc:`ConnectionRefusedError`" msgid ":c:data:`PyExc_ConnectionResetError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionResetError`" msgid ":exc:`ConnectionResetError`" -msgstr "" +msgstr ":exc:`ConnectionResetError`" msgid ":c:data:`PyExc_EOFError`" -msgstr "" +msgstr ":c:data:`PyExc_EOFError`" msgid ":exc:`EOFError`" msgstr ":exc:`EOFError`" msgid ":c:data:`PyExc_FileExistsError`" -msgstr "" +msgstr ":c:data:`PyExc_FileExistsError`" msgid ":exc:`FileExistsError`" -msgstr "" +msgstr ":exc:`FileExistsError`" msgid ":c:data:`PyExc_FileNotFoundError`" -msgstr "" +msgstr ":c:data:`PyExc_FileNotFoundError`" msgid ":exc:`FileNotFoundError`" -msgstr "" +msgstr ":exc:`FileNotFoundError`" msgid ":c:data:`PyExc_FloatingPointError`" -msgstr "" +msgstr ":c:data:`PyExc_FloatingPointError`" msgid ":exc:`FloatingPointError`" msgstr ":exc:`FloatingPointError`" msgid ":c:data:`PyExc_GeneratorExit`" -msgstr "" +msgstr ":c:data:`PyExc_GeneratorExit`" msgid ":exc:`GeneratorExit`" -msgstr "" +msgstr ":exc:`GeneratorExit`" msgid ":c:data:`PyExc_ImportError`" -msgstr "" +msgstr ":c:data:`PyExc_ImportError`" msgid ":exc:`ImportError`" msgstr ":exc:`ImportError`" msgid ":c:data:`PyExc_IndentationError`" -msgstr "" +msgstr ":c:data:`PyExc_IndentationError`" msgid ":exc:`IndentationError`" -msgstr "" +msgstr ":exc:`IndentationError`" msgid ":c:data:`PyExc_IndexError`" -msgstr "" +msgstr ":c:data:`PyExc_IndexError`" msgid ":exc:`IndexError`" msgstr ":exc:`IndexError`" msgid ":c:data:`PyExc_InterruptedError`" -msgstr "" +msgstr ":c:data:`PyExc_InterruptedError`" msgid ":exc:`InterruptedError`" -msgstr "" +msgstr ":exc:`InterruptedError`" msgid ":c:data:`PyExc_IsADirectoryError`" -msgstr "" +msgstr ":c:data:`PyExc_IsADirectoryError`" msgid ":exc:`IsADirectoryError`" -msgstr "" +msgstr ":exc:`IsADirectoryError`" msgid ":c:data:`PyExc_KeyError`" -msgstr "" +msgstr ":c:data:`PyExc_KeyError`" msgid ":exc:`KeyError`" msgstr ":exc:`KeyError`" msgid ":c:data:`PyExc_KeyboardInterrupt`" -msgstr "" +msgstr ":c:data:`PyExc_KeyboardInterrupt`" msgid ":exc:`KeyboardInterrupt`" msgstr ":exc:`KeyboardInterrupt`" msgid ":c:data:`PyExc_LookupError`" -msgstr "" +msgstr ":c:data:`PyExc_LookupError`" msgid ":exc:`LookupError`" msgstr ":exc:`LookupError`" msgid ":c:data:`PyExc_MemoryError`" -msgstr "" +msgstr ":c:data:`PyExc_MemoryError`" msgid ":exc:`MemoryError`" msgstr ":exc:`MemoryError`" msgid ":c:data:`PyExc_ModuleNotFoundError`" -msgstr "" +msgstr ":c:data:`PyExc_ModuleNotFoundError`" msgid ":exc:`ModuleNotFoundError`" -msgstr "" +msgstr ":exc:`ModuleNotFoundError`" msgid ":c:data:`PyExc_NameError`" -msgstr "" +msgstr ":c:data:`PyExc_NameError`" msgid ":exc:`NameError`" msgstr ":exc:`NameError`" msgid ":c:data:`PyExc_NotADirectoryError`" -msgstr "" +msgstr ":c:data:`PyExc_NotADirectoryError`" msgid ":exc:`NotADirectoryError`" -msgstr "" +msgstr ":exc:`NotADirectoryError`" msgid ":c:data:`PyExc_NotImplementedError`" -msgstr "" +msgstr ":c:data:`PyExc_NotImplementedError`" msgid ":exc:`NotImplementedError`" msgstr ":exc:`NotImplementedError`" msgid ":c:data:`PyExc_OSError`" -msgstr "" +msgstr ":c:data:`PyExc_OSError`" msgid ":exc:`OSError`" msgstr ":exc:`OSError`" msgid ":c:data:`PyExc_OverflowError`" -msgstr "" +msgstr ":c:data:`PyExc_OverflowError`" msgid ":exc:`OverflowError`" msgstr ":exc:`OverflowError`" msgid ":c:data:`PyExc_PermissionError`" -msgstr "" +msgstr ":c:data:`PyExc_PermissionError`" msgid ":exc:`PermissionError`" -msgstr "" +msgstr ":exc:`PermissionError`" msgid ":c:data:`PyExc_ProcessLookupError`" -msgstr "" +msgstr ":c:data:`PyExc_ProcessLookupError`" msgid ":exc:`ProcessLookupError`" -msgstr "" +msgstr ":exc:`ProcessLookupError`" msgid ":c:data:`PyExc_RecursionError`" -msgstr "" +msgstr ":c:data:`PyExc_RecursionError`" msgid ":exc:`RecursionError`" -msgstr "" +msgstr ":exc:`RecursionError`" msgid ":c:data:`PyExc_ReferenceError`" -msgstr "" +msgstr ":c:data:`PyExc_ReferenceError`" msgid ":exc:`ReferenceError`" msgstr ":exc:`ReferenceError`" msgid ":c:data:`PyExc_RuntimeError`" -msgstr "" +msgstr ":c:data:`PyExc_RuntimeError`" msgid ":exc:`RuntimeError`" msgstr ":exc:`RuntimeError`" msgid ":c:data:`PyExc_StopAsyncIteration`" -msgstr "" +msgstr ":c:data:`PyExc_StopAsyncIteration`" msgid ":exc:`StopAsyncIteration`" -msgstr "" +msgstr ":exc:`StopAsyncIteration`" msgid ":c:data:`PyExc_StopIteration`" -msgstr "" +msgstr ":c:data:`PyExc_StopIteration`" msgid ":exc:`StopIteration`" -msgstr "" +msgstr ":exc:`StopIteration`" msgid ":c:data:`PyExc_SyntaxError`" -msgstr "" +msgstr ":c:data:`PyExc_SyntaxError`" msgid ":exc:`SyntaxError`" msgstr ":exc:`SyntaxError`" msgid ":c:data:`PyExc_SystemError`" -msgstr "" +msgstr ":c:data:`PyExc_SystemError`" msgid ":exc:`SystemError`" msgstr ":exc:`SystemError`" msgid ":c:data:`PyExc_SystemExit`" -msgstr "" +msgstr ":c:data:`PyExc_SystemExit`" msgid ":exc:`SystemExit`" msgstr ":exc:`SystemExit`" msgid ":c:data:`PyExc_TabError`" -msgstr "" +msgstr ":c:data:`PyExc_TabError`" msgid ":exc:`TabError`" -msgstr "" +msgstr ":exc:`TabError`" msgid ":c:data:`PyExc_TimeoutError`" -msgstr "" +msgstr ":c:data:`PyExc_TimeoutError`" msgid ":exc:`TimeoutError`" -msgstr "" +msgstr ":exc:`TimeoutError`" msgid ":c:data:`PyExc_TypeError`" -msgstr "" +msgstr ":c:data:`PyExc_TypeError`" msgid ":exc:`TypeError`" msgstr ":exc:`TypeError`" msgid ":c:data:`PyExc_UnboundLocalError`" -msgstr "" +msgstr ":c:data:`PyExc_UnboundLocalError`" msgid ":exc:`UnboundLocalError`" -msgstr "" +msgstr ":exc:`UnboundLocalError`" msgid ":c:data:`PyExc_UnicodeDecodeError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeDecodeError`" msgid ":exc:`UnicodeDecodeError`" -msgstr "" +msgstr ":exc:`UnicodeDecodeError`" msgid ":c:data:`PyExc_UnicodeEncodeError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeEncodeError`" msgid ":exc:`UnicodeEncodeError`" -msgstr "" +msgstr ":exc:`UnicodeEncodeError`" msgid ":c:data:`PyExc_UnicodeError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeError`" msgid ":exc:`UnicodeError`" -msgstr "" +msgstr ":exc:`UnicodeError`" msgid ":c:data:`PyExc_UnicodeTranslateError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeTranslateError`" msgid ":exc:`UnicodeTranslateError`" -msgstr "" +msgstr ":exc:`UnicodeTranslateError`" msgid ":c:data:`PyExc_ValueError`" -msgstr "" +msgstr ":c:data:`PyExc_ValueError`" msgid ":exc:`ValueError`" msgstr ":exc:`ValueError`" msgid ":c:data:`PyExc_ZeroDivisionError`" -msgstr "" +msgstr ":c:data:`PyExc_ZeroDivisionError`" msgid ":exc:`ZeroDivisionError`" msgstr ":exc:`ZeroDivisionError`" 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`." +":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 "" msgid ":c:data:`PyExc_StopAsyncIteration` and :c:data:`PyExc_RecursionError`." msgstr "" msgid ":c:data:`PyExc_ModuleNotFoundError`." -msgstr "" +msgstr ":c:data:`PyExc_ModuleNotFoundError`." msgid "These are compatibility aliases to :c:data:`PyExc_OSError`:" msgstr "" @@ -1178,76 +1166,76 @@ msgid "" msgstr "" msgid ":c:data:`PyExc_Warning`" -msgstr "" +msgstr ":c:data:`PyExc_Warning`" msgid ":exc:`Warning`" -msgstr "" +msgstr ":exc:`Warning`" msgid "[3]_" msgstr "" msgid ":c:data:`PyExc_BytesWarning`" -msgstr "" +msgstr ":c:data:`PyExc_BytesWarning`" msgid ":exc:`BytesWarning`" -msgstr "" +msgstr ":exc:`BytesWarning`" msgid ":c:data:`PyExc_DeprecationWarning`" -msgstr "" +msgstr ":c:data:`PyExc_DeprecationWarning`" msgid ":exc:`DeprecationWarning`" -msgstr "" +msgstr ":exc:`DeprecationWarning`" msgid ":c:data:`PyExc_FutureWarning`" -msgstr "" +msgstr ":c:data:`PyExc_FutureWarning`" msgid ":exc:`FutureWarning`" -msgstr "" +msgstr ":exc:`FutureWarning`" msgid ":c:data:`PyExc_ImportWarning`" -msgstr "" +msgstr ":c:data:`PyExc_ImportWarning`" msgid ":exc:`ImportWarning`" -msgstr "" +msgstr ":exc:`ImportWarning`" msgid ":c:data:`PyExc_PendingDeprecationWarning`" -msgstr "" +msgstr ":c:data:`PyExc_PendingDeprecationWarning`" msgid ":exc:`PendingDeprecationWarning`" -msgstr "" +msgstr ":exc:`PendingDeprecationWarning`" msgid ":c:data:`PyExc_ResourceWarning`" -msgstr "" +msgstr ":c:data:`PyExc_ResourceWarning`" msgid ":exc:`ResourceWarning`" -msgstr "" +msgstr ":exc:`ResourceWarning`" msgid ":c:data:`PyExc_RuntimeWarning`" -msgstr "" +msgstr ":c:data:`PyExc_RuntimeWarning`" msgid ":exc:`RuntimeWarning`" -msgstr "" +msgstr ":exc:`RuntimeWarning`" msgid ":c:data:`PyExc_SyntaxWarning`" -msgstr "" +msgstr ":c:data:`PyExc_SyntaxWarning`" msgid ":exc:`SyntaxWarning`" -msgstr "" +msgstr ":exc:`SyntaxWarning`" msgid ":c:data:`PyExc_UnicodeWarning`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeWarning`" msgid ":exc:`UnicodeWarning`" -msgstr "" +msgstr ":exc:`UnicodeWarning`" msgid ":c:data:`PyExc_UserWarning`" -msgstr "" +msgstr ":c:data:`PyExc_UserWarning`" msgid ":exc:`UserWarning`" -msgstr "" +msgstr ":exc:`UserWarning`" msgid ":c:data:`PyExc_ResourceWarning`." -msgstr "" +msgstr ":c:data:`PyExc_ResourceWarning`." msgid "This is a base class for other standard warning categories." msgstr "" diff --git a/c-api/file.po b/c-api/file.po index c3423edaa4..4814c5c4e8 100644 --- a/c-api/file.po +++ b/c-api/file.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Michał Frontczak, 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:48+0000\n" -"Last-Translator: Michał Frontczak, 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "File Objects" msgstr "" @@ -29,12 +29,12 @@ msgstr "" 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:expr:`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 "" msgid "" @@ -57,22 +57,22 @@ msgstr "Zignoruj atrybut *name*." msgid "" "Return the file descriptor associated with *p* as an :c:expr:`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 "" 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 "" msgid "" diff --git a/c-api/function.po b/c-api/function.po new file mode 100644 index 0000000000..b4c299d47d --- /dev/null +++ b/c-api/function.po @@ -0,0 +1,114 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Function Objects" +msgstr "Obiekty Funkcja" + +msgid "There are a few functions specific to Python functions." +msgstr "Istnieje kilka funkcji specyficznych dla funkcji Pythona." + +msgid "The C structure used for functions." +msgstr "Struktura C używana dla funkcji." + +msgid "" +"This is an instance of :c:type:`PyTypeObject` and represents the Python " +"function type. It is exposed to Python programmers as " +"``types.FunctionType``." +msgstr "" + +msgid "" +"Return true if *o* is a function object (has " +"type :c:data:`PyFunction_Type`). The parameter must not be ``NULL``. This " +"function always succeeds." +msgstr "" + +msgid "" +"Return a new function object associated with the code object *code*. " +"*globals* must be a dictionary with the global variables accessible to the " +"function." +msgstr "" + +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." +msgstr "" + +msgid "" +"As :c:func:`PyFunction_New`, but also allows setting the function object's " +"``__qualname__`` attribute. *qualname* should be a unicode object or " +"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same " +"value as its ``__name__`` attribute." +msgstr "" + +msgid "Return the code object associated with the function object *op*." +msgstr "" + +msgid "Return the globals dictionary associated with the function object *op*." +msgstr "" + +msgid "" +"Return a :term:`borrowed reference` to the *__module__* attribute of the " +"function object *op*. It can be *NULL*." +msgstr "" + +msgid "" +"This is normally a string containing the module name, but can be set to any " +"other object by Python code." +msgstr "" + +msgid "" +"Return the argument default values of the function object *op*. This can be " +"a tuple of arguments or ``NULL``." +msgstr "" + +msgid "" +"Set the argument default values for the function object *op*. *defaults* " +"must be ``Py_None`` or a tuple." +msgstr "" + +msgid "Raises :exc:`SystemError` and returns ``-1`` on failure." +msgstr "" + +msgid "" +"Return the closure associated with the function object *op*. This can be " +"``NULL`` or a tuple of cell objects." +msgstr "" + +msgid "" +"Set the closure associated with the function object *op*. *closure* must be " +"``Py_None`` or a tuple of cell objects." +msgstr "" + +msgid "" +"Return the annotations of the function object *op*. This can be a mutable " +"dictionary or ``NULL``." +msgstr "" + +msgid "" +"Set the annotations for the function object *op*. *annotations* must be a " +"dictionary or ``Py_None``." +msgstr "" diff --git a/c-api/index.po b/c-api/index.po new file mode 100644 index 0000000000..2b5492f0d3 --- /dev/null +++ b/c-api/index.po @@ -0,0 +1,38 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Python/C API Reference Manual" +msgstr "Python/C API Podręcznik" + +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 writing but does not document the API functions in detail." +msgstr "" +"Ten podręcznik dokumentuje API używany przez programistów C i C++, którzy " +"chcą napisać rozszerzenie moduł lub osadzić Pythona. Jest to dodatek " +"do :ref:`extending-index`, który opisuje ogólne zasady pisania rozszerzeń, " +"ale nie dokumentuje szczegółowo API ." diff --git a/c-api/init.po b/c-api/init.po new file mode 100644 index 0000000000..179c75bea3 --- /dev/null +++ b/c-api/init.po @@ -0,0 +1,1732 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Initialization, Finalization, and Threads" +msgstr "" + +msgid "See also :ref:`Python Initialization Configuration `." +msgstr "" + +msgid "Before Python Initialization" +msgstr "" + +msgid "" +"In an application embedding Python, the :c:func:`Py_Initialize` function " +"must be called before using any other Python/C API functions; with the " +"exception of a few functions and the :ref:`global configuration variables " +"`." +msgstr "" + +msgid "" +"The following functions can be safely called before Python is initialized:" +msgstr "" + +msgid "Configuration functions:" +msgstr "Konfiguracja funkcja:" + +msgid ":c:func:`PyImport_AppendInittab`" +msgstr ":c:func:`PyImport_AppendInittab`" + +msgid ":c:func:`PyImport_ExtendInittab`" +msgstr ":c:func:`PyImport_ExtendInittab`" + +msgid ":c:func:`PyInitFrozenExtensions`" +msgstr "" + +msgid ":c:func:`PyMem_SetAllocator`" +msgstr ":c:func:`PyMem_SetAllocator`" + +msgid ":c:func:`PyMem_SetupDebugHooks`" +msgstr ":c:func:`PyMem_SetupDebugHooks`" + +msgid ":c:func:`PyObject_SetArenaAllocator`" +msgstr ":c:func:`PyObject_SetArenaAllocator`" + +msgid ":c:func:`Py_SetPath`" +msgstr "" + +msgid ":c:func:`Py_SetProgramName`" +msgstr ":c:func:`Py_SetProgramName`" + +msgid ":c:func:`Py_SetPythonHome`" +msgstr ":c:func:`Py_SetPythonHome`" + +msgid ":c:func:`Py_SetStandardStreamEncoding`" +msgstr "" + +msgid ":c:func:`PySys_AddWarnOption`" +msgstr "" + +msgid ":c:func:`PySys_AddXOption`" +msgstr "" + +msgid ":c:func:`PySys_ResetWarnOptions`" +msgstr ":c:func:`PySys_ResetWarnOptions`" + +msgid "Informative functions:" +msgstr "Informatiwne funkcje:" + +msgid ":c:func:`Py_IsInitialized`" +msgstr ":c:func:`Py_IsInitialized`" + +msgid ":c:func:`PyMem_GetAllocator`" +msgstr ":c:func:`PyMem_GetAllocator`" + +msgid ":c:func:`PyObject_GetArenaAllocator`" +msgstr ":c:func:`PyObject_GetArenaAllocator`" + +msgid ":c:func:`Py_GetBuildInfo`" +msgstr ":c:func:`Py_GetBuildInfo`" + +msgid ":c:func:`Py_GetCompiler`" +msgstr ":c:func:`Py_GetCompiler`" + +msgid ":c:func:`Py_GetCopyright`" +msgstr ":c:func:`Py_GetCopyright`" + +msgid ":c:func:`Py_GetPlatform`" +msgstr ":c:func:`Py_GetPlatform`" + +msgid ":c:func:`Py_GetVersion`" +msgstr ":c:func:`Py_GetVersion`" + +msgid "Utilities:" +msgstr "Narzędzia:" + +msgid ":c:func:`Py_DecodeLocale`" +msgstr ":c:func:`Py_DecodeLocale`" + +msgid "Memory allocators:" +msgstr "Alokatory pamięci:" + +msgid ":c:func:`PyMem_RawMalloc`" +msgstr ":c:func:`PyMem_RawMalloc`" + +msgid ":c:func:`PyMem_RawRealloc`" +msgstr ":c:func:`PyMem_RawRealloc`" + +msgid ":c:func:`PyMem_RawCalloc`" +msgstr ":c:func:`PyMem_RawCalloc`" + +msgid ":c:func:`PyMem_RawFree`" +msgstr ":c:func:`PyMem_RawFree`" + +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`." +msgstr "" + +msgid "Global configuration variables" +msgstr "" + +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 `." +msgstr "" + +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." +msgstr "" + +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``." +msgstr "" + +msgid "Set by the :option:`-b` option." +msgstr "" + +msgid "" +"Turn on parser debugging output (for expert only, depending on compilation " +"options)." +msgstr "" + +msgid "" +"Set by the :option:`-d` option and the :envvar:`PYTHONDEBUG` environment " +"variable." +msgstr "" + +msgid "" +"If set to non-zero, Python won't try to write ``.pyc`` files on the import " +"of source modules." +msgstr "" + +msgid "" +"Set by the :option:`-B` option and the :envvar:`PYTHONDONTWRITEBYTECODE` " +"environment variable." +msgstr "" + +msgid "" +"Suppress error messages when calculating the module search path " +"in :c:func:`Py_GetPath`." +msgstr "" + +msgid "Private flag used by ``_freeze_importlib`` and ``frozenmain`` programs." +msgstr "" + +msgid "" +"Set to ``1`` if the :envvar:`PYTHONHASHSEED` environment variable is set to " +"a non-empty string." +msgstr "" + +msgid "" +"If the flag is non-zero, read the :envvar:`PYTHONHASHSEED` environment " +"variable to initialize the secret hash seed." +msgstr "" + +msgid "" +"Ignore all :envvar:`PYTHON*` environment variables, " +"e.g. :envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." +msgstr "" + +msgid "Set by the :option:`-E` and :option:`-I` options." +msgstr "" + +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." +msgstr "" + +msgid "" +"Set by the :option:`-i` option and the :envvar:`PYTHONINSPECT` environment " +"variable." +msgstr "" + +msgid "Set by the :option:`-i` option." +msgstr "" + +msgid "" +"Run Python in isolated mode. In isolated mode :data:`sys.path` contains " +"neither the script's directory nor the user's site-packages directory." +msgstr "" + +msgid "Set by the :option:`-I` option." +msgstr "" + +msgid "" +"If the flag is non-zero, use the ``mbcs`` encoding with ``replace`` error " +"handler, instead of the UTF-8 encoding with ``surrogatepass`` error handler, " +"for the :term:`filesystem encoding and error handler`." +msgstr "" + +msgid "" +"Set to ``1`` if the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment " +"variable is set to a non-empty string." +msgstr "" + +msgid "See :pep:`529` for more details." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" + +msgid "" +"If the flag is non-zero, use :class:`io.FileIO` instead " +"of :class:`WindowsConsoleIO` for :mod:`sys` standard streams." +msgstr "" + +msgid "" +"Set to ``1`` if the :envvar:`PYTHONLEGACYWINDOWSSTDIO` environment variable " +"is set to a non-empty string." +msgstr "" + +msgid "See :pep:`528` for more details." +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)." +msgstr "" + +msgid "Set by the :option:`-S` option." +msgstr "" + +msgid "" +"Don't add the :data:`user site-packages directory ` " +"to :data:`sys.path`." +msgstr "" + +msgid "" +"Set by the :option:`-s` and :option:`-I` options, and " +"the :envvar:`PYTHONNOUSERSITE` environment variable." +msgstr "" + +msgid "" +"Set by the :option:`-O` option and the :envvar:`PYTHONOPTIMIZE` environment " +"variable." +msgstr "" + +msgid "" +"Don't display the copyright and version messages even in interactive mode." +msgstr "" + +msgid "Set by the :option:`-q` option." +msgstr "" + +msgid "Force the stdout and stderr streams to be unbuffered." +msgstr "" + +msgid "" +"Set by the :option:`-u` option and the :envvar:`PYTHONUNBUFFERED` " +"environment variable." +msgstr "" + +msgid "" +"Print a message each time a module is initialized, showing the place " +"(filename or built-in module) from which it is loaded. If greater or equal " +"to ``2``, print a message for each file that is checked for when searching " +"for a module. Also provides information on module cleanup at exit." +msgstr "" + +msgid "" +"Set by the :option:`-v` option and the :envvar:`PYTHONVERBOSE` environment " +"variable." +msgstr "" + +msgid "Initializing and finalizing the interpreter" +msgstr "" + +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." +msgstr "" + +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 " +"``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." +msgstr "" + +msgid "" +"On Windows, changes the console mode from ``O_TEXT`` to ``O_BINARY``, which " +"will also affect non-Python uses of the console using the C Runtime." +msgstr "" + +msgid "" +"This function works like :c:func:`Py_Initialize` if *initsigs* is ``1``. If " +"*initsigs* is ``0``, it skips initialization registration of signal " +"handlers, which might be useful when Python is embedded." +msgstr "" + +msgid "" +"Return true (nonzero) when the Python interpreter has been initialized, " +"false (zero) if not. After :c:func:`Py_FinalizeEx` is called, this returns " +"false until :c:func:`Py_Initialize` is called again." +msgstr "" + +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." +msgstr "" + +msgid "" +"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 " +"Python before exiting from the application." +msgstr "" + +msgid "" +"**Bugs and caveats:** The destruction of modules and objects in modules is " +"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 " +"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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` " +"``cpython._PySys_ClearAuditHooks`` with no arguments." +msgstr "" + +msgid "" +"This is a backwards-compatible version of :c:func:`Py_FinalizeEx` that " +"disregards the return value." +msgstr "" + +msgid "Process-wide parameters" +msgstr "" + +msgid "" +"This function should be called before :c:func:`Py_Initialize`, if it is " +"called at all. It specifies which encoding and error handling to use with " +"standard IO, with the same meanings as in :func:`str.encode`." +msgstr "" + +msgid "" +"It overrides :envvar:`PYTHONIOENCODING` values, and allows embedding code to " +"control IO encoding when the environment variable does not work." +msgstr "" + +msgid "" +"*encoding* and/or *errors* may be ``NULL`` to use :envvar:`PYTHONIOENCODING` " +"and/or default values (depending on other settings)." +msgstr "" + +msgid "" +"Note that :data:`sys.stderr` always uses the \"backslashreplace\" error " +"handler, regardless of this (or any other) setting." +msgstr "" + +msgid "" +"If :c:func:`Py_FinalizeEx` is called, this function will need to be called " +"again in order to affect subsequent calls to :c:func:`Py_Initialize`." +msgstr "" + +msgid "" +"Returns ``0`` if successful, a nonzero value on error (e.g. calling after " +"the interpreter has already been initialized)." +msgstr "" + +msgid "" +"This function should be called before :c:func:`Py_Initialize` is called for " +"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 " +"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 " +"this storage." +msgstr "" + +msgid "" +"Use :c:func:`Py_DecodeLocale` to decode a bytes string to get " +"a :c:expr:`wchar_*` string." +msgstr "" + +msgid "" +"Return the program name set with :c:func:`Py_SetProgramName`, or the " +"default. The returned string points into static storage; the caller should " +"not modify its value." +msgstr "" + +msgid "" +"This function should not be called before :c:func:`Py_Initialize`, otherwise " +"it returns ``NULL``." +msgstr "" + +msgid "It now returns ``NULL`` if called before :c:func:`Py_Initialize`." +msgstr "" + +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` " +"variable in the top-level :file:`Makefile` and the :option:`--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." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +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!)." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Return the full program name of the Python executable; this is computed as " +"a side-effect of deriving the default module search path from the program " +"name (set by :c:func:`Py_SetProgramName` above). The returned string points " +"into static storage; the caller should not modify its value. The value is " +"available to Python code as ``sys.executable``." +msgstr "" + +msgid "" +"Return the default module search path; this is computed from the program " +"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 macOS, ``';'`` 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 "" + +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 dependent delimiter character, which is ``':'`` on Unix and macOS, " +"``';'`` on Windows." +msgstr "" + +msgid "" +"This also causes :data:`sys.executable` to be set to the program full path " +"(see :c:func:`Py_GetProgramFullPath`) 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 "" + +msgid "" +"The path argument is copied internally, so the caller may free it after the " +"call completes." +msgstr "" + +msgid "" +"The program full path is now used for :data:`sys.executable`, instead of the " +"program name." +msgstr "" + +msgid "" +"Return the version of this Python interpreter. This is a string that looks " +"something like ::" +msgstr "" + +msgid "" +"The first word (up to the first space character) is the current Python " +"version; the first characters are the major and minor version separated by a " +"period. The returned string points into static storage; the caller should " +"not modify its value. The value is available to Python code " +"as :data:`sys.version`." +msgstr "" + +msgid "" +"Return the platform identifier for the current platform. On Unix, this is " +"formed from the \"official\" name of the operating system, converted to " +"lower case, followed by the major revision number; e.g., for Solaris 2.x, " +"which is also known as SunOS 5.x, the value is ``'sunos5'``. On macOS, it " +"is ``'darwin'``. On Windows, it is ``'win'``. The returned string points " +"into static storage; the caller should not modify its value. The value is " +"available to Python code as ``sys.platform``." +msgstr "" + +msgid "" +"Return the official copyright string for the current Python version, for " +"example" +msgstr "" + +msgid "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``" +msgstr "" + +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``." +msgstr "" + +msgid "" +"Return an indication of the compiler used to build the current Python " +"version, in square brackets, for example::" +msgstr "" + +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 " +"``sys.version``." +msgstr "" + +msgid "" +"Return information about the sequence number and build date and time of the " +"current Python interpreter instance, for example ::" +msgstr "" + +msgid "" +"Set :data:`sys.argv` based on *argc* and *argv*. These parameters are " +"similar to those passed to the program's :c:func:`main` function with the " +"difference that the first entry should refer to the script file to be " +"executed rather than the executable hosting the Python interpreter. If " +"there isn't a script that will be run, the first entry in *argv* can be an " +"empty string. If this function fails to initialize :data:`sys.argv`, a " +"fatal condition is signalled using :c:func:`Py_FatalError`." +msgstr "" + +msgid "" +"If *updatepath* is zero, this is all the function does. If *updatepath* is " +"non-zero, the function also modifies :data:`sys.path` according to the " +"following algorithm:" +msgstr "" + +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`." +msgstr "" + +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 (``\".\"``)." +msgstr "" + +msgid "" +"It is recommended that applications embedding the Python interpreter for " +"purposes other than executing a single script pass ``0`` as *updatepath*, " +"and update :data:`sys.path` themselves if desired. See `CVE-2008-5983 " +"`_." +msgstr "" + +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::" +msgstr "" + +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`." +msgstr "" + +msgid "The *updatepath* value depends on :option:`-I`." +msgstr "" + +msgid "" +"Set the default \"home\" directory, that is, the location of the standard " +"Python libraries. See :envvar:`PYTHONHOME` for the meaning of the argument " +"string." +msgstr "" + +msgid "" +"The argument should point to a zero-terminated 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 " +"this storage." +msgstr "" + +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` " +"environment variable if it is set." +msgstr "" + +msgid "Thread State and the Global Interpreter Lock" +msgstr "" + +msgid "" +"The Python interpreter is not fully thread-safe. In order to support multi-" +"threaded Python programs, there's a global lock, called the :term:`global " +"interpreter lock` or :term:`GIL`, that must be held by the current thread " +"before it can safely access Python objects. Without the lock, even the " +"simplest operations could cause problems in a multi-threaded program: for " +"example, when two threads simultaneously increment the reference count of " +"the same object, the reference count could end up being incremented only " +"once instead of twice." +msgstr "" + +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 released around potentially blocking I/O operations like " +"reading or writing a file, so that other Python threads can run in the " +"meantime." +msgstr "" + +msgid "" +"The Python interpreter keeps some thread-specific bookkeeping information " +"inside a data structure called :c:type:`PyThreadState`. There's also one " +"global variable pointing to the current :c:type:`PyThreadState`: it can be " +"retrieved using :c:func:`PyThreadState_Get`." +msgstr "" + +msgid "Releasing the GIL from extension code" +msgstr "" + +msgid "" +"Most extension code manipulating the :term:`GIL` has the following simple " +"structure::" +msgstr "" + +msgid "This is so common that a pair of macros exists to simplify it::" +msgstr "" + +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." +msgstr "" + +msgid "The block above expands to the following code::" +msgstr "" + +msgid "" +"Here is how these functions work: the global interpreter lock is used to " +"protect the pointer to the current thread state. When releasing the lock " +"and saving the thread state, the current thread state pointer must be " +"retrieved before the lock is released (since another thread could " +"immediately acquire the lock and store its own thread state in the global " +"variable). Conversely, when acquiring the lock and restoring the thread " +"state, the lock must be acquired before storing the thread state pointer." +msgstr "" + +msgid "" +"Calling system I/O functions is the most common use case for releasing the " +"GIL, but it can also be useful before calling long-running computations " +"which don't need access to Python objects, such as compression or " +"cryptographic functions operating over memory buffers. For example, the " +"standard :mod:`zlib` and :mod:`hashlib` modules release the GIL when " +"compressing or hashing data." +msgstr "" + +msgid "Non-Python created threads" +msgstr "" + +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 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." +msgstr "" + +msgid "" +"If you need to call Python code from these threads (often this will be part " +"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 " +"finally free the thread state data structure." +msgstr "" + +msgid "" +"The :c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release` functions " +"do all of the above automatically. The typical idiom for calling into " +"Python from a C thread is::" +msgstr "" + +msgid "" +"Note that the ``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 ``PyGILState_*`` API is unsupported." +msgstr "" + +msgid "Cautions about fork()" +msgstr "" + +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 " +"process forks only the thread that issued the fork will exist. This has a " +"concrete impact both on how locks must be handled and on all stored state in " +"CPython's runtime." +msgstr "" + +msgid "" +"The fact that only the \"current\" thread remains 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` 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." +msgstr "" + +msgid "" +"The fact that all other threads go away also means that CPython's runtime " +"state there must be cleaned up properly, which :func:`os.fork` does. This " +"means finalizing all other :c:type:`PyThreadState` objects belonging to the " +"current interpreter and all other :c:type:`PyInterpreterState` objects. Due " +"to this and the special nature of the :ref:`\"main\" interpreter `, :c:func:`fork` should only be called in that " +"interpreter's \"main\" thread, where the CPython global runtime was " +"originally initialized. The only exception is if :c:func:`exec` will be " +"called immediately after." +msgstr "" + +msgid "High-level API" +msgstr "" + +msgid "" +"These are the most commonly used types and functions when writing C " +"extension code, or when embedding the Python interpreter:" +msgstr "" + +msgid "" +"This data structure represents the state shared by a number of cooperating " +"threads. Threads belonging to the same interpreter share their module " +"administration and a few other internal items. There are no public members " +"in this structure." +msgstr "" + +msgid "" +"Threads belonging to different interpreters initially share nothing, except " +"process state like available memory, open file descriptors and such. The " +"global interpreter lock is also shared by all threads, regardless of to " +"which interpreter they belong." +msgstr "" + +msgid "" +"This data structure represents the state of a single thread. The only " +"public data member is :attr:`interp` (:c:expr:`PyInterpreterState *`), which " +"points to this thread's interpreter state." +msgstr "" + +msgid "Deprecated function which does nothing." +msgstr "" + +msgid "" +"In Python 3.6 and older, this function created the GIL if it didn't exist." +msgstr "" + +msgid "The function now does nothing." +msgstr "" + +msgid "" +"This function is now called by :c:func:`Py_Initialize()`, so you don't have " +"to call it yourself anymore." +msgstr "" + +msgid "" +"This function cannot be called before :c:func:`Py_Initialize()` anymore." +msgstr "" + +msgid "" +"Returns a non-zero value if :c:func:`PyEval_InitThreads` has been called. " +"This function can be called without holding the GIL, and therefore can be " +"used to avoid calls to the locking API when running single-threaded." +msgstr "" + +msgid "The :term:`GIL` is now initialized by :c:func:`Py_Initialize()`." +msgstr "" + +msgid "" +"Release the global interpreter lock (if it has been created) and reset the " +"thread state to ``NULL``, returning the previous thread state (which is not " +"``NULL``). If the lock has been created, the current thread must have " +"acquired it." +msgstr "" + +msgid "" +"Acquire the global interpreter lock (if it has been created) and set the " +"thread state to *tstate*, which must not be ``NULL``. If the lock has been " +"created, the current thread must not have acquired it, otherwise deadlock " +"ensues." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the current thread state. The global interpreter lock must be held. " +"When the current thread state is ``NULL``, this issues a fatal error (so " +"that the caller needn't check for ``NULL``)." +msgstr "" + +msgid "" +"Swap the current thread state with the thread state given by the argument " +"*tstate*, which may be ``NULL``. The global interpreter lock must be held " +"and is not released." +msgstr "" + +msgid "" +"The following functions use thread-local storage, and are not compatible " +"with sub-interpreters:" +msgstr "" + +msgid "" +"Ensure that the current thread is ready to call the Python C API regardless " +"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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"When the function returns, the current thread will hold the GIL and be able " +"to call arbitrary Python code. Failure is a fatal error." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Every call to :c:func:`PyGILState_Ensure` must be matched by a call " +"to :c:func:`PyGILState_Release` on the same thread." +msgstr "" + +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 " +"made on the main thread. This is mainly a helper/diagnostic function." +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." +msgstr "" + +msgid "" +"The following macros are normally used without a trailing semicolon; look " +"for example usage in the Python source distribution." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent " +"to :c:macro:`Py_END_ALLOW_THREADS` without the closing brace." +msgstr "" + +msgid "" +"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 "" + +msgid "Low-level API" +msgstr "" + +msgid "" +"All of the following functions must be called after :c:func:`Py_Initialize`." +msgstr "" + +msgid ":c:func:`Py_Initialize()` now initializes the :term:`GIL`." +msgstr "" + +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 " +"function." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` " +"``cpython.PyInterpreterState_New`` with no arguments." +msgstr "" + +msgid "" +"Reset all information in an interpreter state object. The global " +"interpreter lock must be held." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` " +"``cpython.PyInterpreterState_Clear`` with no arguments." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Create a new thread state object belonging to the given interpreter object. " +"The global interpreter lock need not be held, but may be held if it is " +"necessary to serialize calls to this function." +msgstr "" + +msgid "" +"Reset all information in a thread state object. The global interpreter lock " +"must be held." +msgstr "" + +msgid "" +"This function now calls the :c:member:`PyThreadState.on_delete` callback. " +"Previously, that happened in :c:func:`PyThreadState_Delete`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Destroy the current thread state and release the global interpreter lock. " +"Like :c:func:`PyThreadState_Delete`, the global interpreter lock need not be " +"held. The thread state must have been reset with a previous call " +"to :c:func:`PyThreadState_Clear`." +msgstr "" + +msgid "Get the current frame of the Python thread state *tstate*." +msgstr "" + +msgid "" +"Return a :term:`strong reference`. Return ``NULL`` if no frame is currently " +"executing." +msgstr "" + +msgid "See also :c:func:`PyEval_GetFrame`." +msgstr "" + +msgid "*tstate* must not be ``NULL``." +msgstr "" + +msgid "" +"Get the unique thread state identifier of the Python thread state *tstate*." +msgstr "" + +msgid "Get the interpreter of the Python thread state *tstate*." +msgstr "" + +msgid "Get the current interpreter." +msgstr "" + +msgid "" +"Issue a fatal error if there no current Python thread state or no current " +"interpreter. It cannot return NULL." +msgstr "" + +msgid "The caller must hold the GIL." +msgstr "" + +msgid "" +"Return the interpreter's unique ID. If there was any error in doing so then " +"``-1`` is returned and an error is set." +msgstr "" + +msgid "" +"Return a dictionary in which interpreter-specific data may be stored. If " +"this function returns ``NULL`` then no exception has been raised and the " +"caller should assume no interpreter-specific dict is available." +msgstr "" + +msgid "" +"This is not a replacement for :c:func:`PyModule_GetState()`, which " +"extensions should use to store interpreter-specific state information." +msgstr "" + +msgid "Type of a frame evaluation function." +msgstr "" + +msgid "" +"The *throwflag* parameter is used by the ``throw()`` method of generators: " +"if non-zero, handle the current exception." +msgstr "" + +msgid "The function now takes a *tstate* parameter." +msgstr "" + +msgid "Get the frame evaluation function." +msgstr "" + +msgid "See the :pep:`523` \"Adding a frame evaluation API to CPython\"." +msgstr "" + +msgid "Set the frame evaluation function." +msgstr "" + +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." +msgstr "" + +msgid "" +"Asynchronously raise an exception in a thread. The *id* argument is the " +"thread id of the target thread; *exc* is the exception object to be raised. " +"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." +msgstr "" + +msgid "" +"The type of the *id* parameter changed from :c:expr:`long` " +"to :c:expr:`unsigned long`." +msgstr "" + +msgid "" +"Acquire the global interpreter lock and set the current thread state to " +"*tstate*, which must not be ``NULL``. The lock must have been created " +"earlier. If this thread already has the lock, deadlock ensues." +msgstr "" + +msgid "" +"Updated to be consistent " +"with :c:func:`PyEval_RestoreThread`, :c:func:`Py_END_ALLOW_THREADS`, " +"and :c:func:`PyGILState_Ensure`, and terminate the current thread if called " +"while the interpreter is finalizing." +msgstr "" + +msgid "" +":c:func:`PyEval_RestoreThread` is a higher-level function which is always " +"available (even when threads have not been initialized)." +msgstr "" + +msgid "" +"Reset the current thread state to ``NULL`` and release the global " +"interpreter lock. The lock must have been created earlier and must be held " +"by the current thread. The *tstate* argument, which must not be ``NULL``, " +"is only used to check that it represents the current thread state --- if it " +"isn't, a fatal error is reported." +msgstr "" + +msgid "" +":c:func:`PyEval_SaveThread` is a higher-level function which is always " +"available (even when threads have not been initialized)." +msgstr "" + +msgid "" +"Acquire the global interpreter lock. The lock must have been created " +"earlier. If this thread already has the lock, a deadlock ensues." +msgstr "" + +msgid "" +"This function does not update the current thread state. Please " +"use :c:func:`PyEval_RestoreThread` or :c:func:`PyEval_AcquireThread` instead." +msgstr "" + +msgid "" +"Release the global interpreter lock. The lock must have been created " +"earlier." +msgstr "" + +msgid "" +"This function does not update the current thread state. Please " +"use :c:func:`PyEval_SaveThread` or :c:func:`PyEval_ReleaseThread` instead." +msgstr "" + +msgid "Sub-interpreter support" +msgstr "" + +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." +msgstr "" + +msgid "" +"The \"main\" interpreter is the first one created when the runtime " +"initializes. It is usually the only Python interpreter in a process. Unlike " +"sub-interpreters, the main interpreter has unique process-global " +"responsibilities like signal handling. It is also responsible for execution " +"during runtime initialization and is usually the active interpreter during " +"runtime finalization. The :c:func:`PyInterpreterState_Main` function " +"returns a pointer to its state." +msgstr "" + +msgid "" +"You can switch between sub-interpreters using " +"the :c:func:`PyThreadState_Swap` function. You can create and destroy them " +"using the following functions:" +msgstr "" + +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)." +msgstr "" + +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.)" +msgstr "" + +msgid "Extension modules are shared between (sub-)interpreters as follows:" +msgstr "" + +msgid "" +"For modules using multi-phase initialization, " +"e.g. :c:func:`PyModule_FromDefAndSpec`, a separate module object is created " +"and initialized for each interpreter. Only C-level static and global " +"variables are shared between these module objects." +msgstr "" + +msgid "" +"For modules using single-phase initialization, " +"e.g. :c:func:`PyModule_Create`, 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 ``init`` function is not called. " +"Objects in the module's dictionary thus end up shared across " +"(sub-)interpreters, which might cause unwanted behavior (see `Bugs and " +"caveats`_ below)." +msgstr "" + +msgid "" +"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. As with multi-" +"phase initialization, this means that only C-level static and global " +"variables are shared between these modules." +msgstr "" + +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." +msgstr "" + +msgid "Bugs and caveats" +msgstr "" + +msgid "" +"Because sub-interpreters (and the main interpreter) are part of the same " +"process, the insulation between them isn't perfect --- for example, using " +"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 using single-phase initialization " +"or (static) global variables. It is possible to insert objects created in " +"one sub-interpreter into a namespace of another (sub-)interpreter; this " +"should be avoided if possible." +msgstr "" + +msgid "" +"Special care should be taken 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. It is equally important to avoid sharing " +"objects from which the above are reachable." +msgstr "" + +msgid "" +"Also note that combining this functionality with ``PyGILState_*`` 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." +msgstr "" + +msgid "Asynchronous Notifications" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"When successfully queued, *func* will be *eventually* called from the main " +"interpreter thread with the argument *arg*. It will be called " +"asynchronously with respect to normally running Python code, but with both " +"these conditions met:" +msgstr "" + +msgid "on a :term:`bytecode` boundary;" +msgstr "" + +msgid "" +"with the main thread holding the :term:`global interpreter lock` (*func* can " +"therefore use the full C API)." +msgstr "" + +msgid "" +"*func* must return ``0`` on success, or ``-1`` on failure with an exception " +"set. *func* won't be interrupted to perform another asynchronous " +"notification recursively, but it can still be interrupted to switch threads " +"if the global interpreter lock is released." +msgstr "" + +msgid "" +"This function doesn't need a current thread state to run, and it doesn't " +"need the global interpreter lock." +msgstr "" + +msgid "" +"To call this function in a subinterpreter, the caller must hold the GIL. " +"Otherwise, the function *func* can be scheduled to be called from the wrong " +"interpreter." +msgstr "" + +msgid "" +"This is a low-level function, only useful for very special cases. There is " +"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`." +msgstr "" + +msgid "" +"If this function is called in a subinterpreter, the function *func* is now " +"scheduled to be called from the subinterpreter, rather than being called " +"from the main interpreter. Each subinterpreter now has its own list of " +"scheduled calls." +msgstr "" + +msgid "Profiling and Tracing" +msgstr "" + +msgid "" +"The Python interpreter provides some low-level support for attaching " +"profiling and execution tracing facilities. These are used for profiling, " +"debugging, and coverage analysis tools." +msgstr "" + +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; " +"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." +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*:" +msgstr "" + +msgid "Value of *what*" +msgstr "" + +msgid "Meaning of *arg*" +msgstr "" + +msgid ":const:`PyTrace_CALL`" +msgstr "" + +msgid "Always :c:data:`Py_None`." +msgstr "Zawsze :c:data:`Py_None`." + +msgid ":const:`PyTrace_EXCEPTION`" +msgstr "" + +msgid "Exception information as returned by :func:`sys.exc_info`." +msgstr "" + +msgid ":const:`PyTrace_LINE`" +msgstr "" + +msgid ":const:`PyTrace_RETURN`" +msgstr "" + +msgid "" +"Value being returned to the caller, or ``NULL`` if caused by an exception." +msgstr "" + +msgid ":const:`PyTrace_C_CALL`" +msgstr "" + +msgid "Function object being called." +msgstr "" + +msgid ":const:`PyTrace_C_EXCEPTION`" +msgstr "" + +msgid ":const:`PyTrace_C_RETURN`" +msgstr "" + +msgid ":const:`PyTrace_OPCODE`" +msgstr "" + +msgid "" +"The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " +"a new call to a function or method is being reported, or a new entry into a " +"generator. Note that the creation of the iterator for a generator function " +"is not reported as there is no control transfer to the Python bytecode in " +"the corresponding frame." +msgstr "" + +msgid "" +"The value of the *what* parameter to a :c:type:`Py_tracefunc` function when " +"an exception has been raised. The callback function is called with this " +"value for *what* when after any bytecode is processed after which the " +"exception becomes set within the frame being executed. The effect of this " +"is that as exception propagation causes the Python stack to unwind, the " +"callback is called upon return to each frame as the exception propagates. " +"Only trace functions receives these events; they are not needed by the " +"profiler." +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." +msgstr "" + +msgid "" +"The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " +"a call is about to return." +msgstr "" + +msgid "" +"The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " +"a C function is about to be called." +msgstr "" + +msgid "" +"The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " +"a C function has raised an exception." +msgstr "" + +msgid "" +"The value for the *what* parameter to :c:type:`Py_tracefunc` functions when " +"a C function has returned." +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." +msgstr "" + +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`." +msgstr "" + +msgid "The caller must hold the :term:`GIL`." +msgstr "" + +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." +msgstr "" + +msgid "Advanced Debugger Support" +msgstr "" + +msgid "" +"These functions are only intended to be used by advanced debugging tools." +msgstr "" + +msgid "" +"Return the interpreter state object at the head of the list of all such " +"objects." +msgstr "" + +msgid "Return the main interpreter state object." +msgstr "" + +msgid "" +"Return the next interpreter state object after *interp* from the list of all " +"such objects." +msgstr "" + +msgid "" +"Return the pointer to the first :c:type:`PyThreadState` object in the list " +"of threads associated with the interpreter *interp*." +msgstr "" + +msgid "" +"Return the next thread state object after *tstate* from the list of all such " +"objects belonging to the same :c:type:`PyInterpreterState` object." +msgstr "" + +msgid "Thread Local Storage Support" +msgstr "" + +msgid "" +"The Python interpreter provides low-level support for thread-local storage " +"(TLS) which wraps the underlying native TLS implementation to support the " +"Python-level thread local storage API (:class:`threading.local`). The " +"CPython C level APIs are similar to those offered by pthreads and Windows: " +"use a thread key and functions to associate a :c:expr:`void*` value per " +"thread." +msgstr "" + +msgid "" +"The GIL does *not* need to be held when calling these functions; they supply " +"their own locking." +msgstr "" + +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." +msgstr "" + +msgid "" +"None of these API functions handle memory management on behalf of " +"the :c:expr:`void*` values. You need to allocate and deallocate them " +"yourself. If the :c:expr:`void*` values happen to be :c:expr:`PyObject*`, " +"these functions don't do refcount operations on them either." +msgstr "" + +msgid "Thread Specific Storage (TSS) API" +msgstr "" + +msgid "" +"TSS API is introduced to supersede the use of the existing TLS API within " +"the CPython interpreter. This API uses a new type :c:type:`Py_tss_t` " +"instead of :c:expr:`int` to represent thread keys." +msgstr "" + +msgid "\"A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)" +msgstr "" + +msgid "" +"This data structure represents the state of a thread key, the definition of " +"which may depend on the underlying TLS implementation, and it has an " +"internal field representing the key's initialization state. There are no " +"public members in this structure." +msgstr "" + +msgid "" +"When :ref:`Py_LIMITED_API ` is not defined, static allocation of " +"this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed." +msgstr "" + +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 `." +msgstr "" + +msgid "Dynamic Allocation" +msgstr "" + +msgid "" +"Dynamic allocation of the :c:type:`Py_tss_t`, required in extension modules " +"built with :ref:`Py_LIMITED_API `, where static allocation of this " +"type is not possible due to its implementation being opaque at build time." +msgstr "" + +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." +msgstr "" + +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``." +msgstr "" + +msgid "" +"A freed key becomes a dangling pointer. You should reset the key to `NULL`." +msgstr "" + +msgid "Methods" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized " +"by :c:func:`PyThread_tss_create`." +msgstr "" + +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 " +"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." +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." +msgstr "" + +msgid "" +"Return a zero value to indicate successfully associating a :c:expr:`void*` " +"value with a TSS key in the current thread. Each thread has a distinct " +"mapping of the key to a :c:expr:`void*` value." +msgstr "" + +msgid "" +"Return the :c:expr:`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." +msgstr "" + +msgid "Thread Local Storage (TLS) API" +msgstr "" + +msgid "" +"This API is superseded by :ref:`Thread Specific Storage (TSS) API `." +msgstr "" + +msgid "" +"This version of the API does not support platforms where the native TLS key " +"is defined in a way that cannot be safely cast to ``int``. On such " +"platforms, :c:func:`PyThread_create_key` will return immediately with a " +"failure status, and the other TLS functions will all be no-ops on such " +"platforms." +msgstr "" + +msgid "" +"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/init_config.po b/c-api/init_config.po new file mode 100644 index 0000000000..9c6a33005d --- /dev/null +++ b/c-api/init_config.po @@ -0,0 +1,1563 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Blessing Oluronbi, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Python Initialization Configuration" +msgstr "Konfiguracja inicjalizacji Pythona" + +msgid "" +"Python can be initialized with :c:func:`Py_InitializeFromConfig` and " +"the :c:type:`PyConfig` structure. It can be preinitialized " +"with :c:func:`Py_PreInitialize` and the :c:type:`PyPreConfig` structure." +msgstr "" + +msgid "There are two kinds of configuration:" +msgstr "" + +msgid "" +"The :ref:`Python Configuration ` can be used to build a " +"customized Python which behaves as the regular Python. For example, " +"environment variables and command line arguments are used to configure " +"Python." +msgstr "" + +msgid "" +"The :ref:`Isolated Configuration ` can be used to embed " +"Python into an application. It isolates Python from the system. For example, " +"environment variables are ignored, the LC_CTYPE locale is left unchanged and " +"no signal handler is registered." +msgstr "" + +msgid "" +"The :c:func:`Py_RunMain` function can be used to write a customized Python " +"program." +msgstr "" +"Funkcja ta może być użyta do napisania dostosowanego programu w języku " +"Python.:c:func:`Py_RunMain`" + +msgid "" +"See also :ref:`Initialization, Finalization, and Threads `." +msgstr "" +"Funkcja ta może być używana do pisania spersonalizowanego programu w języku " +"Python." + +msgid ":pep:`587` \"Python Initialization Configuration\"." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid "Example of customized Python always running in isolated mode::" +msgstr "" + +msgid "PyWideStringList" +msgstr "PyWideStringList" + +msgid "List of ``wchar_t*`` strings." +msgstr "" + +msgid "" +"If *length* is non-zero, *items* must be non-``NULL`` and all strings must " +"be non-``NULL``." +msgstr "" + +msgid "Methods:" +msgstr "Metody:" + +msgid "Append *item* to *list*." +msgstr "" + +msgid "Python must be preinitialized to call this function." +msgstr "" + +msgid "Insert *item* into *list* at *index*." +msgstr "" + +msgid "" +"If *index* is greater than or equal to *list* length, append *item* to " +"*list*." +msgstr "" + +msgid "*index* must be greater than or equal to 0." +msgstr "" + +msgid "Structure fields:" +msgstr "" + +msgid "List length." +msgstr "" + +msgid "List items." +msgstr "" + +msgid "PyStatus" +msgstr "PyStatus" + +msgid "" +"Structure to store an initialization function status: success, error or exit." +msgstr "" + +msgid "For an error, it can store the C function name which created the error." +msgstr "" + +msgid "Exit code. Argument passed to ``exit()``." +msgstr "" + +msgid "Error message." +msgstr "" + +msgid "Name of the function which created an error, can be ``NULL``." +msgstr "" + +msgid "Functions to create a status:" +msgstr "" + +msgid "Success." +msgstr "Sukces." + +msgid "Initialization error with a message." +msgstr "" + +msgid "*err_msg* must not be ``NULL``." +msgstr "" + +msgid "Memory allocation failure (out of memory)." +msgstr "" + +msgid "Exit Python with the specified exit code." +msgstr "" + +msgid "Functions to handle a status:" +msgstr "" + +msgid "" +"Is the status an error or an exit? If true, the exception must be handled; " +"by calling :c:func:`Py_ExitStatusException` for example." +msgstr "" + +msgid "Is the result an error?" +msgstr "" + +msgid "Is the result an exit?" +msgstr "" + +msgid "" +"Call ``exit(exitcode)`` if *status* is an exit. Print the error message and " +"exit with a non-zero exit code if *status* is an error. Must only be called " +"if ``PyStatus_Exception(status)`` is non-zero." +msgstr "" + +msgid "" +"Internally, Python uses macros which set ``PyStatus.func``, whereas " +"functions to create a status set ``func`` to ``NULL``." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "PyPreConfig" +msgstr "PyPreConfig" + +msgid "Structure used to preinitialize Python." +msgstr "" + +msgid "Function to initialize a preconfiguration:" +msgstr "" + +msgid "" +"Initialize the preconfiguration with :ref:`Python Configuration `." +msgstr "" + +msgid "" +"Initialize the preconfiguration with :ref:`Isolated Configuration `." +msgstr "" + +msgid "Name of the Python memory allocators:" +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_NOT_SET`` (``0``): don't change memory allocators (use " +"defaults)." +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_DEFAULT`` (``1``): :ref:`default memory allocators " +"`." +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_DEBUG`` (``2``): :ref:`default memory allocators ` with :ref:`debug hooks `." +msgstr "" + +msgid "``PYMEM_ALLOCATOR_MALLOC`` (``3``): use ``malloc()`` of the C library." +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_MALLOC_DEBUG`` (``4``): force usage of ``malloc()`` " +"with :ref:`debug hooks `." +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_PYMALLOC`` (``5``): :ref:`Python pymalloc memory allocator " +"`." +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_PYMALLOC_DEBUG`` (``6``): :ref:`Python pymalloc memory " +"allocator ` with :ref:`debug hooks `." +msgstr "" + +msgid "" +"``PYMEM_ALLOCATOR_PYMALLOC`` and ``PYMEM_ALLOCATOR_PYMALLOC_DEBUG`` are not " +"supported if Python is :option:`configured using --without-pymalloc <--" +"without-pymalloc>`." +msgstr "" + +msgid "See :ref:`Memory Management `." +msgstr "" + +msgid "Default: ``PYMEM_ALLOCATOR_NOT_SET``." +msgstr "" + +msgid "Set the LC_CTYPE locale to the user preferred locale." +msgstr "" + +msgid "" +"If equals to 0, set :c:member:`~PyPreConfig.coerce_c_locale` " +"and :c:member:`~PyPreConfig.coerce_c_locale_warn` members to 0." +msgstr "" + +msgid "See the :term:`locale encoding`." +msgstr "" + +msgid "Default: ``1`` in Python config, ``0`` in isolated config." +msgstr "" + +msgid "If equals to 2, coerce the C locale." +msgstr "" + +msgid "" +"If equals to 1, read the LC_CTYPE locale to decide if it should be coerced." +msgstr "" + +msgid "Default: ``-1`` in Python config, ``0`` in isolated config." +msgstr "" + +msgid "If non-zero, emit a warning if the C locale is coerced." +msgstr "" + +msgid "" +"If non-zero, enables the :ref:`Python Development Mode `: " +"see :c:member:`PyConfig.dev_mode`." +msgstr "" + +msgid "Default: ``-1`` in Python mode, ``0`` in isolated mode." +msgstr "" + +msgid "Isolated mode: see :c:member:`PyConfig.isolated`." +msgstr "" + +msgid "Default: ``0`` in Python mode, ``1`` in isolated mode." +msgstr "" + +msgid "If non-zero:" +msgstr "" + +msgid "Set :c:member:`PyPreConfig.utf8_mode` to ``0``," +msgstr "" + +msgid "Set :c:member:`PyConfig.filesystem_encoding` to ``\"mbcs\"``," +msgstr "" + +msgid "Set :c:member:`PyConfig.filesystem_errors` to ``\"replace\"``." +msgstr "" + +msgid "" +"Initialized the from :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment " +"variable value." +msgstr "" + +msgid "" +"Only available on Windows. ``#ifdef MS_WINDOWS`` macro can be used for " +"Windows specific code." +msgstr "" + +msgid "Default: ``0``." +msgstr "" + +msgid "" +"If non-zero, :c:func:`Py_PreInitializeFromArgs` " +"and :c:func:`Py_PreInitializeFromBytesArgs` parse their ``argv`` argument " +"the same way the regular Python parses command line arguments: " +"see :ref:`Command Line Arguments `." +msgstr "" + +msgid "" +"Use :ref:`environment variables `? " +"See :c:member:`PyConfig.use_environment`." +msgstr "" + +msgid "Default: ``1`` in Python config and ``0`` in isolated config." +msgstr "" + +msgid "If non-zero, enable the :ref:`Python UTF-8 Mode `." +msgstr "" + +msgid "" +"Set by the :option:`-X utf8 <-X>` command line option and " +"the :envvar:`PYTHONUTF8` environment variable." +msgstr "" + +msgid "Default: ``-1`` in Python config and ``0`` in isolated config." +msgstr "" + +msgid "Preinitialize Python with PyPreConfig" +msgstr "" + +msgid "The preinitialization of Python:" +msgstr "" + +msgid "Set the Python memory allocators (:c:member:`PyPreConfig.allocator`)" +msgstr "" + +msgid "Configure the LC_CTYPE locale (:term:`locale encoding`)" +msgstr "" + +msgid "" +"Set the :ref:`Python UTF-8 Mode ` " +"(:c:member:`PyPreConfig.utf8_mode`)" +msgstr "" + +msgid "" +"The current preconfiguration (``PyPreConfig`` type) is stored in " +"``_PyRuntime.preconfig``." +msgstr "" + +msgid "Functions to preinitialize Python:" +msgstr "" + +msgid "Preinitialize Python from *preconfig* preconfiguration." +msgstr "" + +msgid "*preconfig* must not be ``NULL``." +msgstr "" + +msgid "" +"Parse *argv* command line arguments (bytes strings) " +"if :c:member:`~PyPreConfig.parse_argv` of *preconfig* is non-zero." +msgstr "" + +msgid "" +"Parse *argv* command line arguments (wide strings) " +"if :c:member:`~PyPreConfig.parse_argv` of *preconfig* is non-zero." +msgstr "" + +msgid "" +"The caller is responsible to handle exceptions (error or exit) " +"using :c:func:`PyStatus_Exception` and :c:func:`Py_ExitStatusException`." +msgstr "" + +msgid "" +"For :ref:`Python Configuration ` " +"(:c:func:`PyPreConfig_InitPythonConfig`), if Python is initialized with " +"command line arguments, the command line arguments must also be passed to " +"preinitialize Python, since they have an effect on the pre-configuration " +"like encodings. For example, the :option:`-X utf8 <-X>` command line option " +"enables the :ref:`Python UTF-8 Mode `." +msgstr "" + +msgid "" +"``PyMem_SetAllocator()`` can be called after :c:func:`Py_PreInitialize` and " +"before :c:func:`Py_InitializeFromConfig` to install a custom memory " +"allocator. It can be called before :c:func:`Py_PreInitialize` " +"if :c:member:`PyPreConfig.allocator` is set to ``PYMEM_ALLOCATOR_NOT_SET``." +msgstr "" + +msgid "" +"Python memory allocation functions like :c:func:`PyMem_RawMalloc` must not " +"be used before the Python preinitialization, whereas calling directly " +"``malloc()`` and ``free()`` is always safe. :c:func:`Py_DecodeLocale` must " +"not be called before the Python preinitialization." +msgstr "" + +msgid "" +"Example using the preinitialization to enable the :ref:`Python UTF-8 Mode " +"`::" +msgstr "" + +msgid "PyConfig" +msgstr "PyConfig" + +msgid "Structure containing most parameters to configure Python." +msgstr "" + +msgid "" +"When done, the :c:func:`PyConfig_Clear` function must be used to release the " +"configuration memory." +msgstr "" + +msgid "Structure methods:" +msgstr "" + +msgid "" +"Initialize configuration with the :ref:`Python Configuration `." +msgstr "" + +msgid "" +"Initialize configuration with the :ref:`Isolated Configuration `." +msgstr "" + +msgid "Copy the wide character string *str* into ``*config_str``." +msgstr "" + +msgid ":ref:`Preinitialize Python ` if needed." +msgstr "" + +msgid "" +"Decode *str* using :c:func:`Py_DecodeLocale` and set the result into " +"``*config_str``." +msgstr "" + +msgid "" +"Set command line arguments (:c:member:`~PyConfig.argv` member of *config*) " +"from the *argv* list of wide character strings." +msgstr "" + +msgid "" +"Set command line arguments (:c:member:`~PyConfig.argv` member of *config*) " +"from the *argv* list of bytes strings. Decode bytes " +"using :c:func:`Py_DecodeLocale`." +msgstr "" + +msgid "Set the list of wide strings *list* to *length* and *items*." +msgstr "" + +msgid "Read all Python configuration." +msgstr "" + +msgid "Fields which are already initialized are left unchanged." +msgstr "" + +msgid "" +"The :c:func:`PyConfig_Read` function only parses :c:member:`PyConfig.argv` " +"arguments once: :c:member:`PyConfig.parse_argv` is set to ``2`` after " +"arguments are parsed. Since Python arguments are strippped " +"from :c:member:`PyConfig.argv`, parsing arguments twice would parse the " +"application options as Python options." +msgstr "" + +msgid "" +"The :c:member:`PyConfig.argv` arguments are now only parsed " +"once, :c:member:`PyConfig.parse_argv` is set to ``2`` after arguments are " +"parsed, and arguments are only parsed if :c:member:`PyConfig.parse_argv` " +"equals ``1``." +msgstr "" + +msgid "Release configuration memory." +msgstr "" + +msgid "" +"Most ``PyConfig`` methods :ref:`preinitialize Python ` if needed. " +"In that case, the Python preinitialization configuration " +"(:c:type:`PyPreConfig`) in based on the :c:type:`PyConfig`. If configuration " +"fields which are in common with :c:type:`PyPreConfig` are tuned, they must " +"be set before calling a :c:type:`PyConfig` method:" +msgstr "" + +msgid ":c:member:`PyConfig.dev_mode`" +msgstr ":c:member:`PyConfig.dev_mode`" + +msgid ":c:member:`PyConfig.isolated`" +msgstr ":c:member:`PyConfig.isolated`" + +msgid ":c:member:`PyConfig.parse_argv`" +msgstr ":c:member:`PyConfig.parse_argv`" + +msgid ":c:member:`PyConfig.use_environment`" +msgstr ":c:member:`PyConfig.use_environment`" + +msgid "" +"Moreover, if :c:func:`PyConfig_SetArgv` or :c:func:`PyConfig_SetBytesArgv` " +"is used, this method must be called before other methods, since the " +"preinitialization configuration depends on command line arguments " +"(if :c:member:`parse_argv` is non-zero)." +msgstr "" + +msgid "" +"The caller of these methods is responsible to handle exceptions (error or " +"exit) using ``PyStatus_Exception()`` and ``Py_ExitStatusException()``." +msgstr "" + +msgid "Command line arguments: :data:`sys.argv`." +msgstr "" + +msgid "" +"Set :c:member:`~PyConfig.parse_argv` to ``1`` to " +"parse :c:member:`~PyConfig.argv` the same way the regular Python parses " +"Python command line arguments and then to strip Python arguments " +"from :c:member:`~PyConfig.argv`." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.argv` is empty, an empty string is added to ensure " +"that :data:`sys.argv` always exists and is never empty." +msgstr "" + +msgid "Default: ``NULL``." +msgstr "" + +msgid "See also the :c:member:`~PyConfig.orig_argv` member." +msgstr "" + +msgid ":data:`sys.base_exec_prefix`." +msgstr ":data:`sys.base_exec_prefix`." + +msgid "Part of the :ref:`Python Path Configuration ` output." +msgstr "" + +msgid "Python base executable: :data:`sys._base_executable`." +msgstr "" + +msgid "Set by the :envvar:`__PYVENV_LAUNCHER__` environment variable." +msgstr "" + +msgid "Set from :c:member:`PyConfig.executable` if ``NULL``." +msgstr "" + +msgid ":data:`sys.base_prefix`." +msgstr ":data:`sys.base_prefix`." + +msgid "" +"If equals to 0 and :c:member:`~PyConfig.configure_c_stdio` is non-zero, " +"disable buffering on the C streams stdout and stderr." +msgstr "" + +msgid "" +"Set to 0 by the :option:`-u` command line option and " +"the :envvar:`PYTHONUNBUFFERED` environment variable." +msgstr "" + +msgid "stdin is always opened in buffered mode." +msgstr "" + +msgid "Default: ``1``." +msgstr "Domyślny: ``1``." + +msgid "" +"If equals to 1, issue a warning when comparing :class:`bytes` " +"or :class:`bytearray` with :class:`str`, or comparing :class:`bytes` " +"with :class:`int`." +msgstr "" + +msgid "" +"If equal or greater to 2, raise a :exc:`BytesWarning` exception in these " +"cases." +msgstr "" + +msgid "Incremented by the :option:`-b` command line option." +msgstr "" + +msgid "" +"If non-zero, emit a :exc:`EncodingWarning` warning " +"when :class:`io.TextIOWrapper` uses its default encoding. See :ref:`io-" +"encoding-warning` for details." +msgstr "" + +msgid "" +"Control the validation behavior of hash-based ``.pyc`` files: value of " +"the :option:`--check-hash-based-pycs` command line option." +msgstr "" + +msgid "Valid values:" +msgstr "Prawidłowe wartości:" + +msgid "" +"``L\"always\"``: Hash the source file for invalidation regardless of value " +"of the 'check_source' flag." +msgstr "" + +msgid "``L\"never\"``: Assume that hash-based pycs always are valid." +msgstr "" + +msgid "" +"``L\"default\"``: The 'check_source' flag in hash-based pycs determines " +"invalidation." +msgstr "" + +msgid "Default: ``L\"default\"``." +msgstr "Domyślny: ``L\"default\"``." + +msgid "See also :pep:`552` \"Deterministic pycs\"." +msgstr "" + +msgid "If non-zero, configure C standard streams:" +msgstr "" + +msgid "" +"On Windows, set the binary mode (``O_BINARY``) on stdin, stdout and stderr." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.buffered_stdio` equals zero, disable buffering of " +"stdin, stdout and stderr streams." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.interactive` is non-zero, enable stream buffering on " +"stdin and stdout (only stdout on Windows)." +msgstr "" + +msgid "If non-zero, enable the :ref:`Python Development Mode `." +msgstr "" + +msgid "Dump Python references?" +msgstr "" + +msgid "If non-zero, dump all objects which are still alive at exit." +msgstr "" + +msgid "Set to ``1`` by the :envvar:`PYTHONDUMPREFS` environment variable." +msgstr "" + +msgid "" +"Need a special build of Python with the ``Py_TRACE_REFS`` macro defined: see " +"the :option:`configure --with-trace-refs option <--with-trace-refs>`." +msgstr "" + +msgid "" +"The site-specific directory prefix where the platform-dependent Python files " +"are installed: :data:`sys.exec_prefix`." +msgstr "" + +msgid "" +"The absolute path of the executable binary for the Python " +"interpreter: :data:`sys.executable`." +msgstr "" + +msgid "Enable faulthandler?" +msgstr "" + +msgid "If non-zero, call :func:`faulthandler.enable` at startup." +msgstr "" + +msgid "" +"Set to ``1`` by :option:`-X faulthandler <-X>` and " +"the :envvar:`PYTHONFAULTHANDLER` environment variable." +msgstr "" + +msgid "" +":term:`Filesystem encoding `: :func:`sys.getfilesystemencoding`." +msgstr "" + +msgid "On macOS, Android and VxWorks: use ``\"utf-8\"`` by default." +msgstr "" + +msgid "" +"On Windows: use ``\"utf-8\"`` by default, or ``\"mbcs\"`` " +"if :c:member:`~PyPreConfig.legacy_windows_fs_encoding` " +"of :c:type:`PyPreConfig` is non-zero." +msgstr "" + +msgid "Default encoding on other platforms:" +msgstr "" + +msgid "``\"utf-8\"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero." +msgstr "" + +msgid "" +"``\"ascii\"`` if Python detects that ``nl_langinfo(CODESET)`` announces the " +"ASCII encoding, whereas the ``mbstowcs()`` function decodes from a different " +"encoding (usually Latin1)." +msgstr "" + +msgid "``\"utf-8\"`` if ``nl_langinfo(CODESET)`` returns an empty string." +msgstr "" + +msgid "" +"Otherwise, use the :term:`locale encoding`: ``nl_langinfo(CODESET)`` result." +msgstr "" + +msgid "" +"At Python startup, the encoding name is normalized to the Python codec name. " +"For example, ``\"ANSI_X3.4-1968\"`` is replaced with ``\"ascii\"``." +msgstr "" + +msgid "See also the :c:member:`~PyConfig.filesystem_errors` member." +msgstr "" + +msgid "" +":term:`Filesystem error handler `: :func:`sys.getfilesystemencodeerrors`." +msgstr "" + +msgid "" +"On Windows: use ``\"surrogatepass\"`` by default, or ``\"replace\"`` " +"if :c:member:`~PyPreConfig.legacy_windows_fs_encoding` " +"of :c:type:`PyPreConfig` is non-zero." +msgstr "" + +msgid "On other platforms: use ``\"surrogateescape\"`` by default." +msgstr "" + +msgid "Supported error handlers:" +msgstr "" + +msgid "``\"strict\"``" +msgstr "``\"strict\"``" + +msgid "``\"surrogateescape\"``" +msgstr "``\"surrogateescape\"``" + +msgid "``\"surrogatepass\"`` (only supported with the UTF-8 encoding)" +msgstr "" + +msgid "See also the :c:member:`~PyConfig.filesystem_encoding` member." +msgstr "" + +msgid "Randomized hash function seed." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.use_hash_seed` is zero, a seed is chosen randomly at " +"Python startup, and :c:member:`~PyConfig.hash_seed` is ignored." +msgstr "" + +msgid "Set by the :envvar:`PYTHONHASHSEED` environment variable." +msgstr "" + +msgid "" +"Default *use_hash_seed* value: ``-1`` in Python mode, ``0`` in isolated mode." +msgstr "" + +msgid "Python home directory." +msgstr "" + +msgid "" +"If :c:func:`Py_SetPythonHome` has been called, use its argument if it is not " +"``NULL``." +msgstr "" + +msgid "Set by the :envvar:`PYTHONHOME` environment variable." +msgstr "" + +msgid "Part of the :ref:`Python Path Configuration ` input." +msgstr "" + +msgid "If non-zero, profile import time." +msgstr "" + +msgid "" +"Set the ``1`` by the :option:`-X importtime <-X>` option and " +"the :envvar:`PYTHONPROFILEIMPORTTIME` environment variable." +msgstr "" + +msgid "Enter interactive mode after executing a script or a command." +msgstr "" + +msgid "" +"If greater than 0, enable inspect: when a script is passed as first argument " +"or the -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." +msgstr "" + +msgid "" +"Incremented by the :option:`-i` command line option. Set to ``1`` if " +"the :envvar:`PYTHONINSPECT` environment variable is non-empty." +msgstr "" + +msgid "Install Python signal handlers?" +msgstr "" + +msgid "Default: ``1`` in Python mode, ``0`` in isolated mode." +msgstr "" + +msgid "If greater than 0, enable the interactive mode (REPL)." +msgstr "" + +msgid "Incremented by the :option:`-i` command line option." +msgstr "" + +msgid "If greater than 0, enable isolated mode:" +msgstr "" + +msgid "" +":data:`sys.path` contains neither the script's directory (computed from " +"``argv[0]`` or the current directory) nor the user's site-packages directory." +msgstr "" + +msgid "" +"Python REPL doesn't import :mod:`readline` nor enable default readline " +"configuration on interactive prompts." +msgstr "" + +msgid "" +"Set :c:member:`~PyConfig.use_environment` " +"and :c:member:`~PyConfig.user_site_directory` to 0." +msgstr "" + +msgid "See also :c:member:`PyPreConfig.isolated`." +msgstr "" + +msgid "" +"If non-zero, use :class:`io.FileIO` instead of :class:`io.WindowsConsoleIO` " +"for :data:`sys.stdin`, :data:`sys.stdout` and :data:`sys.stderr`." +msgstr "" + +msgid "" +"Set to ``1`` if the :envvar:`PYTHONLEGACYWINDOWSSTDIO` environment variable " +"is set to a non-empty string." +msgstr "" + +msgid "See also the :pep:`528` (Change Windows console encoding to UTF-8)." +msgstr "" + +msgid "" +"If non-zero, dump statistics on :ref:`Python pymalloc memory allocator " +"` at exit." +msgstr "" + +msgid "Set to ``1`` by the :envvar:`PYTHONMALLOCSTATS` environment variable." +msgstr "" + +msgid "" +"The option is ignored if Python is :option:`configured using the --without-" +"pymalloc option <--without-pymalloc>`." +msgstr "" + +msgid "Platform library directory name: :data:`sys.platlibdir`." +msgstr "" + +msgid "Set by the :envvar:`PYTHONPLATLIBDIR` environment variable." +msgstr "" + +msgid "" +"Default: value of the ``PLATLIBDIR`` macro which is set by " +"the :option:`configure --with-platlibdir option <--with-platlibdir>` " +"(default: ``\"lib\"``)." +msgstr "" + +msgid "" +"Module search paths (:data:`sys.path`) as a string separated by ``DELIM`` " +"(:data:`os.path.pathsep`)." +msgstr "" + +msgid "Set by the :envvar:`PYTHONPATH` environment variable." +msgstr "" + +msgid "Module search paths: :data:`sys.path`." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.module_search_paths_set` is equal to 0, the function " +"calculating the :ref:`Python Path Configuration ` " +"overrides the :c:member:`~PyConfig.module_search_paths` and " +"sets :c:member:`~PyConfig.module_search_paths_set` to ``1``." +msgstr "" + +msgid "" +"Default: empty list (``module_search_paths``) and ``0`` " +"(``module_search_paths_set``)." +msgstr "" + +msgid "Compilation optimization level:" +msgstr "" + +msgid "``0``: Peephole optimizer, set ``__debug__`` to ``True``." +msgstr "" + +msgid "``1``: Level 0, remove assertions, set ``__debug__`` to ``False``." +msgstr "" + +msgid "``2``: Level 1, strip docstrings." +msgstr "" + +msgid "" +"Incremented by the :option:`-O` command line option. Set to " +"the :envvar:`PYTHONOPTIMIZE` environment variable value." +msgstr "" + +msgid "" +"The list of the original command line arguments passed to the Python " +"executable: :data:`sys.orig_argv`." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.orig_argv` list is empty " +"and :c:member:`~PyConfig.argv` is not a list only containing an empty " +"string, :c:func:`PyConfig_Read` copies :c:member:`~PyConfig.argv` " +"into :c:member:`~PyConfig.orig_argv` before " +"modifying :c:member:`~PyConfig.argv` (if :c:member:`~PyConfig.parse_argv` is " +"non-zero)." +msgstr "" + +msgid "" +"See also the :c:member:`~PyConfig.argv` member and " +"the :c:func:`Py_GetArgcArgv` function." +msgstr "" + +msgid "Default: empty list." +msgstr "" + +msgid "Parse command line arguments?" +msgstr "" + +msgid "" +"If equals to ``1``, parse :c:member:`~PyConfig.argv` the same way the " +"regular Python parses :ref:`command line arguments `, and " +"strip Python arguments from :c:member:`~PyConfig.argv`." +msgstr "" + +msgid "" +"The :c:member:`PyConfig.argv` arguments are now only parsed " +"if :c:member:`PyConfig.parse_argv` equals to ``1``." +msgstr "" + +msgid "" +"Parser debug mode. If greater than 0, turn on parser debugging output (for " +"expert only, depending on compilation options)." +msgstr "" + +msgid "" +"Incremented by the :option:`-d` command line option. Set to " +"the :envvar:`PYTHONDEBUG` environment variable value." +msgstr "" + +msgid "" +"On Unix, if non-zero, calculating the :ref:`Python Path Configuration ` can log warnings into ``stderr``. If equals to 0, suppress " +"these warnings." +msgstr "" + +msgid "It has no effect on Windows." +msgstr "" + +msgid "" +"The site-specific directory prefix where the platform independent Python " +"files are installed: :data:`sys.prefix`." +msgstr "" + +msgid "" +"Program name used to initialize :c:member:`~PyConfig.executable` and in " +"early error messages during Python initialization." +msgstr "" + +msgid "If :func:`Py_SetProgramName` has been called, use its argument." +msgstr "" + +msgid "On macOS, use :envvar:`PYTHONEXECUTABLE` environment variable if set." +msgstr "" + +msgid "" +"If the ``WITH_NEXT_FRAMEWORK`` macro is defined, " +"use :envvar:`__PYVENV_LAUNCHER__` environment variable if set." +msgstr "" + +msgid "" +"Use ``argv[0]`` of :c:member:`~PyConfig.argv` if available and non-empty." +msgstr "" + +msgid "" +"Otherwise, use ``L\"python\"`` on Windows, or ``L\"python3\"`` on other " +"platforms." +msgstr "" + +msgid "" +"Directory where cached ``.pyc`` files are " +"written: :data:`sys.pycache_prefix`." +msgstr "" + +msgid "" +"Set by the :option:`-X pycache_prefix=PATH <-X>` command line option and " +"the :envvar:`PYTHONPYCACHEPREFIX` environment variable." +msgstr "" + +msgid "If ``NULL``, :data:`sys.pycache_prefix` is set to ``None``." +msgstr "" + +msgid "" +"Quiet mode. If greater than 0, don't display the copyright and version at " +"Python startup in interactive mode." +msgstr "" + +msgid "Incremented by the :option:`-q` command line option." +msgstr "" + +msgid "Value of the :option:`-c` command line option." +msgstr "" + +msgid "Used by :c:func:`Py_RunMain`." +msgstr "" + +msgid "" +"Filename passed on the command line: trailing command line argument " +"without :option:`-c` or :option:`-m`." +msgstr "" + +msgid "" +"For example, it is set to ``script.py`` by the ``python3 script.py arg`` " +"command." +msgstr "" + +msgid "Value of the :option:`-m` command line option." +msgstr "" + +msgid "Show total reference count at exit?" +msgstr "" + +msgid "Set to 1 by :option:`-X showrefcount <-X>` command line option." +msgstr "" + +msgid "" +"Need a :ref:`debug build of Python ` (the ``Py_REF_DEBUG`` " +"macro must be defined)." +msgstr "" + +msgid "Import the :mod:`site` module at startup?" +msgstr "" + +msgid "" +"If equal to zero, disable the import of the module site and the site-" +"dependent manipulations of :data:`sys.path` that it entails." +msgstr "" + +msgid "" +"Also disable these manipulations if the :mod:`site` module is explicitly " +"imported later (call :func:`site.main` if you want them to be triggered)." +msgstr "" + +msgid "Set to ``0`` by the :option:`-S` command line option." +msgstr "" + +msgid "" +":data:`sys.flags.no_site` is set to the inverted value " +"of :c:member:`~PyConfig.site_import`." +msgstr "" + +msgid "" +"If non-zero, skip the first line of the :c:member:`PyConfig.run_filename` " +"source." +msgstr "" + +msgid "" +"It allows the usage of non-Unix forms of ``#!cmd``. This is intended for a " +"DOS specific hack only." +msgstr "" + +msgid "Set to ``1`` by the :option:`-x` command line option." +msgstr "" + +msgid "" +"Encoding and encoding errors of :data:`sys.stdin`, :data:`sys.stdout` " +"and :data:`sys.stderr` (but :data:`sys.stderr` always uses " +"``\"backslashreplace\"`` error handler)." +msgstr "" + +msgid "" +"If :c:func:`Py_SetStandardStreamEncoding` has been called, use its *error* " +"and *errors* arguments if they are not ``NULL``." +msgstr "" + +msgid "" +"Use the :envvar:`PYTHONIOENCODING` environment variable if it is non-empty." +msgstr "" + +msgid "Default encoding:" +msgstr "" + +msgid "``\"UTF-8\"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero." +msgstr "" + +msgid "Otherwise, use the :term:`locale encoding`." +msgstr "" + +msgid "Default error handler:" +msgstr "" + +msgid "On Windows: use ``\"surrogateescape\"``." +msgstr "" + +msgid "" +"``\"surrogateescape\"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero, or " +"if the LC_CTYPE locale is \"C\" or \"POSIX\"." +msgstr "" + +msgid "``\"strict\"`` otherwise." +msgstr "" + +msgid "Enable tracemalloc?" +msgstr "" + +msgid "If non-zero, call :func:`tracemalloc.start` at startup." +msgstr "" + +msgid "" +"Set by :option:`-X tracemalloc=N <-X>` command line option and by " +"the :envvar:`PYTHONTRACEMALLOC` environment variable." +msgstr "" + +msgid "Use :ref:`environment variables `?" +msgstr "" + +msgid "" +"If equals to zero, ignore the :ref:`environment variables `." +msgstr "" + +msgid "If non-zero, add the user site directory to :data:`sys.path`." +msgstr "" + +msgid "Set to ``0`` by the :option:`-s` and :option:`-I` command line options." +msgstr "" + +msgid "Set to ``0`` by the :envvar:`PYTHONNOUSERSITE` environment variable." +msgstr "" + +msgid "" +"Verbose mode. If greater than 0, print a message each time a module is " +"imported, showing the place (filename or built-in module) from which it is " +"loaded." +msgstr "" + +msgid "" +"If greater or equal to 2, print a message for each file that is checked for " +"when searching for a module. Also provides information on module cleanup at " +"exit." +msgstr "" + +msgid "Incremented by the :option:`-v` command line option." +msgstr "" + +msgid "Set to the :envvar:`PYTHONVERBOSE` environment variable value." +msgstr "" + +msgid "" +"Options of the :mod:`warnings` module to build warnings filters, lowest to " +"highest priority: :data:`sys.warnoptions`." +msgstr "" + +msgid "" +"The :mod:`warnings` module adds :data:`sys.warnoptions` in the reverse " +"order: the last :c:member:`PyConfig.warnoptions` item becomes the first item " +"of :data:`warnings.filters` which is checked first (highest priority)." +msgstr "" + +msgid "" +"The :option:`-W` command line options adds its value " +"to :c:member:`~PyConfig.warnoptions`, it can be used multiple times." +msgstr "" + +msgid "" +"The :envvar:`PYTHONWARNINGS` environment variable can also be used to add " +"warning options. Multiple options can be specified, separated by commas " +"(``,``)." +msgstr "" + +msgid "" +"If equal to 0, Python won't try to write ``.pyc`` files on the import of " +"source modules." +msgstr "" + +msgid "" +"Set to ``0`` by the :option:`-B` command line option and " +"the :envvar:`PYTHONDONTWRITEBYTECODE` environment variable." +msgstr "" + +msgid "" +":data:`sys.dont_write_bytecode` is initialized to the inverted value " +"of :c:member:`~PyConfig.write_bytecode`." +msgstr "" + +msgid "Values of the :option:`-X` command line options: :data:`sys._xoptions`." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.parse_argv` is non-zero, :c:member:`~PyConfig.argv` " +"arguments are parsed the same way the regular Python parses :ref:`command " +"line arguments `, and Python arguments are stripped " +"from :c:member:`~PyConfig.argv`." +msgstr "" + +msgid "" +"The :c:member:`~PyConfig.xoptions` options are parsed to set other options: " +"see the :option:`-X` command line option." +msgstr "" + +msgid "The ``show_alloc_count`` field has been removed." +msgstr "" + +msgid "Initialization with PyConfig" +msgstr "" + +msgid "Function to initialize Python:" +msgstr "" + +msgid "Initialize Python from *config* configuration." +msgstr "" + +msgid "" +"If :c:func:`PyImport_FrozenModules`, :c:func:`PyImport_AppendInittab` " +"or :c:func:`PyImport_ExtendInittab` are used, they must be set or called " +"after Python preinitialization and before the Python initialization. If " +"Python is initialized multiple times, :c:func:`PyImport_AppendInittab` " +"or :c:func:`PyImport_ExtendInittab` must be called before each Python " +"initialization." +msgstr "" + +msgid "" +"The current configuration (``PyConfig`` type) is stored in " +"``PyInterpreterState.config``." +msgstr "" + +msgid "Example setting the program name::" +msgstr "" + +msgid "" +"More complete example modifying the default configuration, read the " +"configuration, and then override some parameters::" +msgstr "" + +msgid "Isolated Configuration" +msgstr "" + +msgid "" +":c:func:`PyPreConfig_InitIsolatedConfig` " +"and :c:func:`PyConfig_InitIsolatedConfig` functions create a configuration " +"to isolate Python from the system. For example, to embed Python into an " +"application." +msgstr "" + +msgid "" +"This configuration ignores global configuration variables, environment " +"variables, command line arguments (:c:member:`PyConfig.argv` is not parsed) " +"and user site directory. The C standard streams (ex: ``stdout``) and the " +"LC_CTYPE locale are left unchanged. Signal handlers are not installed." +msgstr "" + +msgid "" +"Configuration files are still used with this configuration. Set " +"the :ref:`Python Path Configuration ` (\"output fields\") " +"to ignore these configuration files and avoid the function computing the " +"default path configuration." +msgstr "" + +msgid "Python Configuration" +msgstr "" + +msgid "" +":c:func:`PyPreConfig_InitPythonConfig` " +"and :c:func:`PyConfig_InitPythonConfig` functions create a configuration to " +"build a customized Python which behaves as the regular Python." +msgstr "" + +msgid "" +"Environments variables and command line arguments are used to configure " +"Python, whereas global configuration variables are ignored." +msgstr "" + +msgid "" +"This function enables C locale coercion (:pep:`538`) and :ref:`Python UTF-8 " +"Mode ` (:pep:`540`) depending on the LC_CTYPE " +"locale, :envvar:`PYTHONUTF8` and :envvar:`PYTHONCOERCECLOCALE` environment " +"variables." +msgstr "" + +msgid "Python Path Configuration" +msgstr "" + +msgid ":c:type:`PyConfig` contains multiple fields for the path configuration:" +msgstr "" + +msgid "Path configuration inputs:" +msgstr "" + +msgid ":c:member:`PyConfig.home`" +msgstr ":c:member:`PyConfig.home`" + +msgid ":c:member:`PyConfig.platlibdir`" +msgstr ":c:member:`PyConfig.platlibdir`" + +msgid ":c:member:`PyConfig.pathconfig_warnings`" +msgstr ":c:member:`PyConfig.pathconfig_warnings`" + +msgid ":c:member:`PyConfig.program_name`" +msgstr ":c:member:`PyConfig.program_name`" + +msgid ":c:member:`PyConfig.pythonpath_env`" +msgstr ":c:member:`PyConfig.pythonpath_env`" + +msgid "current working directory: to get absolute paths" +msgstr "" + +msgid "" +"``PATH`` environment variable to get the program full path " +"(from :c:member:`PyConfig.program_name`)" +msgstr "" + +msgid "``__PYVENV_LAUNCHER__`` environment variable" +msgstr "" + +msgid "" +"(Windows only) Application paths in the registry under " +"\"Software\\Python\\PythonCore\\X.Y\\PythonPath\" of HKEY_CURRENT_USER and " +"HKEY_LOCAL_MACHINE (where X.Y is the Python version)." +msgstr "" + +msgid "Path configuration output fields:" +msgstr "" + +msgid ":c:member:`PyConfig.base_exec_prefix`" +msgstr ":c:member:`PyConfig.base_exec_prefix`" + +msgid ":c:member:`PyConfig.base_executable`" +msgstr ":c:member:`PyConfig.base_executable`" + +msgid ":c:member:`PyConfig.base_prefix`" +msgstr ":c:member:`PyConfig.base_prefix`" + +msgid ":c:member:`PyConfig.exec_prefix`" +msgstr ":c:member:`PyConfig.exec_prefix`" + +msgid ":c:member:`PyConfig.executable`" +msgstr ":c:member:`PyConfig.executable`" + +msgid ":c:member:`PyConfig.module_search_paths_set`, :c:member:`PyConfig.module_search_paths`" +msgstr ":c:member:`PyConfig.module_search_paths_set`, :c:member:`PyConfig.module_search_paths`" + +msgid ":c:member:`PyConfig.prefix`" +msgstr ":c:member:`PyConfig.prefix`" + +msgid "" +"If at least one \"output field\" is not set, Python calculates the path " +"configuration to fill unset fields. " +"If :c:member:`~PyConfig.module_search_paths_set` is equal to " +"0, :c:member:`~PyConfig.module_search_paths` is overridden " +"and :c:member:`~PyConfig.module_search_paths_set` is set to 1." +msgstr "" + +msgid "" +"It is possible to completely ignore the function calculating the default " +"path configuration by setting explicitly all path configuration output " +"fields listed above. A string is considered as set even if it is non-empty. " +"``module_search_paths`` is considered as set if ``module_search_paths_set`` " +"is set to 1. In this case, path configuration input fields are ignored as " +"well." +msgstr "" + +msgid "" +"Set :c:member:`~PyConfig.pathconfig_warnings` to 0 to suppress warnings when " +"calculating the path configuration (Unix only, Windows does not log any " +"warning)." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.base_prefix` " +"or :c:member:`~PyConfig.base_exec_prefix` fields are not set, they inherit " +"their value from :c:member:`~PyConfig.prefix` " +"and :c:member:`~PyConfig.exec_prefix` respectively." +msgstr "" + +msgid ":c:func:`Py_RunMain` and :c:func:`Py_Main` modify :data:`sys.path`:" +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.run_filename` is set and is a directory which " +"contains a ``__main__.py`` script, " +"prepend :c:member:`~PyConfig.run_filename` to :data:`sys.path`." +msgstr "" + +msgid "If :c:member:`~PyConfig.isolated` is zero:" +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.run_module` is set, prepend the current directory " +"to :data:`sys.path`. Do nothing if the current directory cannot be read." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.run_filename` is set, prepend the directory of the " +"filename to :data:`sys.path`." +msgstr "" + +msgid "Otherwise, prepend an empty string to :data:`sys.path`." +msgstr "" + +msgid "" +"If :c:member:`~PyConfig.site_import` is non-zero, :data:`sys.path` can be " +"modified by the :mod:`site` module. " +"If :c:member:`~PyConfig.user_site_directory` is non-zero and the user's site-" +"package directory exists, the :mod:`site` module appends the user's site-" +"package directory to :data:`sys.path`." +msgstr "" + +msgid "The following configuration files are used by the path configuration:" +msgstr "" + +msgid "``pyvenv.cfg``" +msgstr "``pyvenv.cfg``" + +msgid "``python._pth`` (Windows only)" +msgstr "" + +msgid "``pybuilddir.txt`` (Unix only)" +msgstr "" + +msgid "" +"The ``__PYVENV_LAUNCHER__`` environment variable is used to " +"set :c:member:`PyConfig.base_executable`" +msgstr "" + +msgid "Py_RunMain()" +msgstr "" + +msgid "" +"Execute the command (:c:member:`PyConfig.run_command`), the script " +"(:c:member:`PyConfig.run_filename`) or the module " +"(:c:member:`PyConfig.run_module`) specified on the command line or in the " +"configuration." +msgstr "" + +msgid "By default and when if :option:`-i` option is used, run the REPL." +msgstr "" + +msgid "" +"Finally, finalizes Python and returns an exit status that can be passed to " +"the ``exit()`` function." +msgstr "" + +msgid "" +"See :ref:`Python Configuration ` for an example of " +"customized Python always running in isolated mode using :c:func:`Py_RunMain`." +msgstr "" + +msgid "Py_GetArgcArgv()" +msgstr "Py_GetArgcArgv()" + +msgid "Get the original command line arguments, before Python modified them." +msgstr "" + +msgid "See also :c:member:`PyConfig.orig_argv` member." +msgstr "" + +msgid "Multi-Phase Initialization Private Provisional API" +msgstr "" + +msgid "" +"This section is a private provisional API introducing multi-phase " +"initialization, the core feature of :pep:`432`:" +msgstr "" + +msgid "\"Core\" initialization phase, \"bare minimum Python\":" +msgstr "" + +msgid "Builtin types;" +msgstr "" + +msgid "Builtin exceptions;" +msgstr "" + +msgid "Builtin and frozen modules;" +msgstr "" + +msgid "" +"The :mod:`sys` module is only partially initialized (ex: :data:`sys.path` " +"doesn't exist yet)." +msgstr "" + +msgid "\"Main\" initialization phase, Python is fully initialized:" +msgstr "" + +msgid "Install and configure :mod:`importlib`;" +msgstr "" + +msgid "Apply the :ref:`Path Configuration `;" +msgstr "" + +msgid "Install signal handlers;" +msgstr "" + +msgid "" +"Finish :mod:`sys` module initialization (ex: create :data:`sys.stdout` " +"and :data:`sys.path`);" +msgstr "" + +msgid "" +"Enable optional features like :mod:`faulthandler` and :mod:`tracemalloc`;" +msgstr "" + +msgid "Import the :mod:`site` module;" +msgstr "" + +msgid "etc." +msgstr "itd." + +msgid "Private provisional API:" +msgstr "" + +msgid "" +":c:member:`PyConfig._init_main`: if set to " +"0, :c:func:`Py_InitializeFromConfig` stops at the \"Core\" initialization " +"phase." +msgstr "" + +msgid "" +":c:member:`PyConfig._isolated_interpreter`: if non-zero, disallow threads, " +"subprocesses and fork." +msgstr "" + +msgid "" +"Move to the \"Main\" initialization phase, finish the Python initialization." +msgstr "" + +msgid "" +"No module is imported during the \"Core\" phase and the ``importlib`` module " +"is not configured: the :ref:`Path Configuration ` is only " +"applied during the \"Main\" phase. It may allow to customize Python in " +"Python to override or tune the :ref:`Path Configuration `, " +"maybe install a custom :data:`sys.meta_path` importer or an import hook, etc." +msgstr "" + +msgid "" +"It may become possible to calculatin the :ref:`Path Configuration ` in Python, after the Core phase and before the Main phase, which is " +"one of the :pep:`432` motivation." +msgstr "" + +msgid "" +"The \"Core\" phase is not properly defined: what should be and what should " +"not be available at this phase is not specified yet. The API is marked as " +"private and provisional: the API can be modified or even be removed anytime " +"until a proper public API is designed." +msgstr "" + +msgid "" +"Example running Python code between \"Core\" and \"Main\" initialization " +"phases::" +msgstr "" diff --git a/c-api/intro.po b/c-api/intro.po index 73313191ec..b9eede8d3b 100644 --- a/c-api/intro.po +++ b/c-api/intro.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:49+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Introduction" msgstr "Wprowadzenie" @@ -36,8 +34,8 @@ msgid "" "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." +"larger application; this technique is generally referred to " +"as :dfn:`embedding` Python in an application." msgstr "" "Interfejs programowania aplikacji w Pythonie daje programistom języków C i C+" "+ dostęp do programu interpretującego polecenia języka pytonowskiego na " @@ -48,8 +46,8 @@ msgstr "" "pisanie *modułów rozszerzających* dla szczególnych powodów; są to moduły " "języka C, które rozszerzają interpreter Pythona. To jest zwykle najczęstsze " "użycie. Drugą przyczyną jest użycie Pythona jako komponentu większego " -"programu; ta technika jest zwykle określana mianem załączania - z ang. - :" -"dfn:`embedding` w aplikacji." +"programu; ta technika jest zwykle określana mianem załączania - z ang. " +"- :dfn:`embedding` w aplikacji." msgid "" "Writing an extension module is a relatively well-understood process, where a " @@ -58,6 +56,11 @@ msgid "" "applications since its early existence, the process of embedding Python is " "less straightforward than writing an extension." msgstr "" +"Napisanie moduł rozszerzeń jest stosunkowo dobrze zrozumiałym procesem, w " +"którym dobrze sprawdza się podejście \"książki kucharskiej\". Istnieje " +"kilka narzędzi, które w pewnym stopniu automatyzują ten proces. Ludzie " +"wbudowali Pythona w innych aplikacja od początku jego istnienia, proces " +"wbudowania Pythona jest mniej prosty niż pisanie rozszerzenia." msgid "" "Many API functions are useful independent of whether you're embedding or " @@ -75,7 +78,7 @@ msgstr "" "aplikacji." msgid "Coding standards" -msgstr "" +msgstr "Standardy kodowania" msgid "" "If you're writing C code for inclusion in CPython, you **must** follow the " @@ -84,6 +87,11 @@ msgid "" "these conventions is not necessary for your own third party extension " "modules, unless you eventually expect to contribute them to Python." msgstr "" +"Jeśli piszesz C do umieszczenia w CPythonie **musisz** przestrzegać " +"wytycznych standardów zdefiniowanych w :PEP:`7`. Wytyczne te obowiązują " +"niezależnie od tego, do której wersji Pythona wnosisz swój wkład. " +"Przestrzeganie tych konwencji nie jest konieczne dla własnych rozszerzeń, " +"chyba że ostatecznie spodziewasz się wnieść je do Python." msgid "Include Files" msgstr "Pliki Włączania - z ang. Include" @@ -98,9 +106,12 @@ msgstr "" msgid "" "This implies inclusion of the following standard headers: ````, " -"````, ````, ````, ```` and ```` (if available)." +"````, ````, ````, ```` and " +"```` (if available)." msgstr "" +"Oznacza to włączenie następujących standardowych nagłówek: ````, " +"````, ````, ````, ```` i " +"```` (jeśli są dostępne)." msgid "" "Since Python may define some pre-processor definitions which affect the " @@ -108,13 +119,15 @@ msgid "" "any standard headers are included." msgstr "" "Jako że Python może definiować pewne definicje preprocesora, które wpływają " -"na pliki nagłówkowe na niektórych systemach, *musisz* załączyć plik :file:" -"`Python.h` przed jakimikolwiek standardowymi nagłówkami." +"na pliki nagłówkowe na niektórych systemach, *musisz* załączyć " +"plik :file:`Python.h` przed jakimikolwiek standardowymi nagłówkami." msgid "" "It is recommended to always define ``PY_SSIZE_T_CLEAN`` before including " "``Python.h``. See :ref:`arg-parsing` for a description of this macro." msgstr "" +"Zaleca się, aby zawsze definiować ``PY_SSIZE_T_CLEAN`` przed włączeniem " +"``Python.h``. Zobacz :ref:`arg-parsing` dla opisu tego makro." msgid "" "All user visible names defined by Python.h (except those defined by the " @@ -139,30 +152,23 @@ msgstr "" 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 :option:`prefix <--" +"prefix>` and :option:`exec_prefix <--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 ``prefix`` is the " +"installation directory specified to the installer." msgstr "" 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`." +"break on multi-platform builds since the platform independent headers " +"under :option:`prefix <--prefix>` include the platform specific headers " +"from :option:`exec_prefix <--exec-prefix>`." msgstr "" -"Aby załączyć pliki nagłówkowe, umieść oba katalogi (jeśli są różne) na " -"liście przeszukiwanych ścieżek poszukiwania plików nagłówkowych. *Nie* " -"umieszczaj katalogów nadrzędnych na ścieżkach poszukiwania plików " -"nagłówkowych po czym wpisując ``#include ``; To " -"spowoduje przerwanie na realizacjach wieloplatformowych gdyż niezależne od " -"platformy nagłówki dostępne w katalogu :envvar:`przedrostek` zawiera pliki " -"nagłówkowe szczególne dla pewnych platform z katalogu :envvar:`exec_prefix`." msgid "" "C++ users should note that although the API is defined entirely using C, the " @@ -180,106 +186,72 @@ msgid "" "a complete listing." msgstr "" -msgid "Return the absolute value of ``x``." -msgstr "" - -msgid "" -"Ask the compiler to always inline a static inline function. The compiler can " -"ignore it and decides to not inline the function." -msgstr "" - -msgid "" -"It can be used to inline performance critical static inline functions when " -"building Python in debug mode with function inlining disabled. For example, " -"MSC disables function inlining when building in debug mode." -msgstr "" - msgid "" -"Marking blindly a static inline function with Py_ALWAYS_INLINE can result in " -"worse performances (due to increased code size for example). The compiler is " -"usually smarter than the developer for the cost/benefit analysis." +"Use this when you have a code path that cannot be reached by design. 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 "" msgid "" -"If Python is :ref:`built in debug mode ` (if the ``Py_DEBUG`` " -"macro is defined), the :c:macro:`Py_ALWAYS_INLINE` macro does nothing." -msgstr "" - -msgid "It must be specified before the function return type. Usage::" +"In release mode, the macro helps the compiler to optimize the code, and " +"avoids a warning about unreachable code. For example, the macro is " +"implemented with ``__builtin_unreachable()`` on GCC in release mode." msgstr "" msgid "" -"Argument must be a character or an integer in the range [-128, 127] or [0, " -"255]. This macro returns ``c`` cast to an ``unsigned char``." +"A use for ``Py_UNREACHABLE()`` is following a call a function that never " +"returns but that is not declared :c:macro:`_Py_NO_RETURN`." msgstr "" msgid "" -"Use this for deprecated declarations. The macro must be placed before the " -"symbol name." -msgstr "" - -msgid "Example::" +"If a code path is very unlikely code but can be reached under exceptional " +"case, this macro must not be used. For example, under low memory condition " +"or if a system call returns a value out of the expected range. In this " +"case, it's better to report the error to the caller. If the error cannot be " +"reported to caller, :c:func:`Py_FatalError` can be used." msgstr "" -msgid "MSVC support was added." +msgid "Return the absolute value of ``x``." msgstr "" -msgid "" -"Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the " -"command line (i.e. if ``Py_IgnoreEnvironmentFlag`` is set)." +msgid "Return the minimum value between ``x`` and ``y``." msgstr "" msgid "Return the maximum value between ``x`` and ``y``." msgstr "" -msgid "Return the size of a structure (``type``) ``member`` in bytes." -msgstr "" - -msgid "Return the minimum value between ``x`` and ``y``." -msgstr "" - msgid "" -"Disable inlining on a function. For example, it reduces the C stack " -"consumption: useful on LTO+PGO builds which heavily inline code (see :issue:" -"`33720`)." +"Convert ``x`` to a C string. E.g. ``Py_STRINGIFY(123)`` returns ``\"123\"``." msgstr "" -msgid "Usage::" +msgid "Return the size of a structure (``type``) ``member`` in bytes." msgstr "" msgid "" -"Convert ``x`` to a C string. E.g. ``Py_STRINGIFY(123)`` returns ``\"123\"``." +"Argument must be a character or an integer in the range [-128, 127] or [0, " +"255]. This macro returns ``c`` cast to an ``unsigned char``." msgstr "" msgid "" -"Use this when you have a code path that cannot be reached by design. 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." +"Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the " +"command line (i.e. if ``Py_IgnoreEnvironmentFlag`` is set)." msgstr "" msgid "" -"In release mode, the macro helps the compiler to optimize the code, and " -"avoids a warning about unreachable code. For example, the macro is " -"implemented with ``__builtin_unreachable()`` on GCC in release mode." +"Use this for unused arguments in a function definition to silence compiler " +"warnings. Example: ``int func(int a, int Py_UNUSED(b)) { return a; }``." msgstr "" msgid "" -"A use for ``Py_UNREACHABLE()`` is following a call a function that never " -"returns but that is not declared :c:macro:`_Py_NO_RETURN`." +"Use this for deprecated declarations. The macro must be placed before the " +"symbol name." msgstr "" -msgid "" -"If a code path is very unlikely code but can be reached under exceptional " -"case, this macro must not be used. For example, under low memory condition " -"or if a system call returns a value out of the expected range. In this " -"case, it's better to report the error to the caller. If the error cannot be " -"reported to caller, :c:func:`Py_FatalError` can be used." -msgstr "" +msgid "Example::" +msgstr "Przykład::" -msgid "" -"Use this for unused arguments in a function definition to silence compiler " -"warnings. Example: ``int func(int a, int Py_UNUSED(b)) { return a; }``." +msgid "MSVC support was added." msgstr "" msgid "" @@ -312,28 +284,28 @@ msgid "" "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:expr:`PyObject*` can " -"be declared. The sole exception are the type objects; since these must " +"live on the heap: you never declare an automatic or static variable of " +"type :c:type:`PyObject`, only pointer variables of type :c:expr:`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 "" 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, " +"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 "" "Wszystkie przedmioty języka pytonowskiego (nawet liczby całkowite języka " "pytonowskiego) mają :dfn:`rodzaj` i :dfn:`liczbę odniesień`. Typ przedmiotu " "określa jakiego rodzaju przedmiot to jest (np. liczba całkowita, lista, lub " -"zadanie zdefiniowane przez użytkownika; jest wiele więcej jak wyjaśniono w :" -"ref:`types`). Dla każdego z dobrze-znanych rodzajów istnieje makropolecenie " -"sprawdzające czy przedmiot jest tego rodzaju; na przykład, " +"zadanie zdefiniowane przez użytkownika; jest wiele więcej jak wyjaśniono " +"w :ref:`types`). Dla każdego z dobrze-znanych rodzajów istnieje " +"makropolecenie sprawdzające czy przedmiot jest tego rodzaju; na przykład, " "``PyList_Check(a)`` jest prawdziwe wtedy (i tylko wtedy) gdy przedmiot na " "który wskazuje *a* jest lista z języka pytonowskiego." @@ -342,38 +314,28 @@ msgstr "Liczby odniesień" 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 " -"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; " -"for now, the solution is \"don't do that.\")" -msgstr "" -"Liczba odniesień jest istotna, gdyż dzisiejsze komputery mają skończony (i " -"zwykle poważnie ograniczony) rozmiar pamięci; liczy ona jak wiele różnych " -"miejsc istnieje, które przechowują odniesienie do przedmiotu. Takie miejsce " -"może być innym przedmiotem, zmienną C nadrzędnego poziomu (lub statyczną), " -"lub lokalną zmienną w jakimś zadaniu języka C. Gdy liczba odniesień do " -"przedmiotu staje się równa zero, przedmiot jest zdejmowany z pamięci. Jeśli " -"zawiera odniesienia do innych przedmiotów liczba odniesień do nich jest " -"obniżana po jednym dla każdego. Te inne przedmioty mogą być zdejmowane z " -"pamięci w konsekwencji, jeśli obniżenie liczby odniesień do nich spowoduje " -"że liczba odniesień stanie się równa zero, itd. (Istnieje dość oczywisty " -"problem z przedmiotami które wzajemnie się odnoszą do siebie; na razie " -"rozwiązaniem jest \"proszę tak nie robić.\")" - -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 " -"takes care of decrementing the reference counts for other objects contained " +"(and often severely limited) memory size; it counts how many different " +"places there are that have a :term:`strong 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 the last :term:`strong reference` to " +"an object is released (i.e. its reference count becomes zero), the object is " +"deallocated. If it contains references to other objects, those references " +"are released. Those other objects may be deallocated in turn, if there are " +"no more references to them, 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 "" + +msgid "" +"Reference counts are always manipulated explicitly. The normal way is to " +"use the macro :c:func:`Py_INCREF` to take a new reference to an object (i.e. " +"increment its reference count by one), and :c:func:`Py_DECREF` to release " +"that reference (i.e. decrement the reference count 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 releasing references 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 " "that the reference count can overflow; at least as many bits are used to " @@ -383,53 +345,39 @@ msgid "" msgstr "" 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 " -"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." -msgstr "" -"Nie jest konieczne zwiększanie zwiększanie liczby odniesień do przedmiotu " -"dla każdej lokalnej zmiennej która zawiera wskaźnik na przedmiot. " -"Teoretycznie, liczba odniesień do przedmiotu zwiększa się o jeden gdy " -"zmienna jest zmuszana do wskazywania nań i jest zmniejszana o jeden gdy " -"zmienna wychodzi z widoku. Jednakże te dwa działania wykluczają się " -"nawzajem, więc ostatecznie liczba odniesień nie ulega zmianie. Jedynym " -"prawdziwym powodem użycia liczby odniesień jest aby uniemożliwić zdjęcie z " -"pamięci przedmiotu tak długo jak nasza zmienna nań wskazuje. Jeśli wiemy, że " -"istnieje przynajmniej jedno inne odniesienie do przedmiotu, które żyje tak " -"długo jak nasza zmienna, nie ma potrzeby zwiększania liczby odniesień " -"tymczasowo. Istotną sytuacją gdzie to się pojawia jest w obiektach które są " -"przekazywane jako parametry do zadań C w modułach rozszerzających które są " -"wywoływane przez polecenia języka pytonowskiego; mechanizm wywołania " -"gwarantuje przytrzymanie odniesienia do każdego parametru na czas wywołania " -"zadania z tym parametrem." +"It is not necessary to hold a :term:`strong reference` (i.e. increment the " +"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 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 take a new :term:`strong reference` (i.e. 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." +msgstr "" 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 " -"operation might conceivably remove the object from the list, decrementing " -"its reference count and possibly 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." +"it for a while without taking a new reference. Some other operation might " +"conceivably remove the object from the list, releasing that reference, and " +"possibly 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." msgstr "" msgid "" "A safe approach is to always use the generic operations (functions whose " "name begins with ``PyObject_``, ``PyNumber_``, ``PySequence_`` or " -"``PyMapping_``). These operations always increment the reference count of " -"the object they return. This leaves the caller with the responsibility to " -"call :c:func:`Py_DECREF` when they are done with the result; this soon " -"becomes second nature." +"``PyMapping_``). These operations always create a new :term:`strong " +"reference` (i.e. increment the reference count) of the object they return. " +"This leaves the caller with the responsibility to call :c:func:`Py_DECREF` " +"when they are done with the result; this soon becomes second nature." msgstr "" msgid "Reference Count Details" @@ -442,13 +390,13 @@ 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 " -"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 " -"said to *borrow* the reference. Nothing needs to be done for a :term:" -"`borrowed reference`." +"reference then becomes responsible for eventually releasing 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 said to *borrow* the reference. Nothing needs to be done for " +"a :term:`borrowed reference`." msgstr "" msgid "" @@ -465,14 +413,14 @@ msgstr "" "odniesienie i nie jesteś za nie odpowiedzialny ani chwili dłużej." 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 "" msgid "" @@ -485,29 +433,30 @@ msgstr "" 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." +"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 "" 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 "" 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 "" 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\"). " +"regarding references is much saner, since you don't have to take a new " +"reference just so you can give that 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 "" @@ -545,12 +494,12 @@ msgstr "Typy" 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:expr:`int`, :c:expr:`long`, :c:expr:" -"`double` and :c:expr:`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." +"API; most are simple C types such " +"as :c:expr:`int`, :c:expr:`long`, :c:expr:`double` and :c:expr:`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 "" msgid "" @@ -594,38 +543,38 @@ msgstr "" 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." +"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 "" 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." +"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 "" 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." +"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 "" "Zauważ że poczynając od języka pytonowskiego w wersji 1.5 preferowaną, " "bezpiecznym dla wątków sposobem na dostęp do stanu wyjątku z poziomu kodu " @@ -670,14 +619,14 @@ msgstr "Tu następuje odpowiadający kod w języku C, w całej pełni okazałoś 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 "" msgid "Embedding Python" @@ -704,10 +653,11 @@ msgid "" msgstr "" 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, setting :c:member:`PyConfig.argv` and :c:member:`PyConfig.parse_argv` " -"must be set: see :ref:`Python Initialization Configuration `." +":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 "" msgid "" @@ -725,43 +675,44 @@ 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 " +"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 "" "Na przykład, jeśli plik wykonywalny programu interpretującego polecenia " "języka pytonowskiego znajduje się w katalogu :file:`/usr/local/bin/python`, " -"będzie zakładał, że biblioteki są w katalogu :file:`/usr/local/lib/python{X." -"Y}` (Faktycznie, ta szczególna ścieżka jest także \"ratunkowym\" położeniem, " -"używanym gdy żaden plik wykonywalny nazwany :file:`python` nie znajdzie się " -"w katalogach znajdujących się w zmiennej środowiskowej :envvar:`PATH`.) " -"Użytkownik może podmienić to zachowanie przez ustawienie zmiennej " -"środowiskowej :envvar:`PYTHONHOME`, lub wstawić dodatkowe katalogi przed " -"sztandarową ścieżką przez ustawienie zmiennej środowiskowej :envvar:" -"`PYTHONPATH`." +"będzie zakładał, że biblioteki są w katalogu :file:`/usr/local/lib/" +"python{X.Y}` (Faktycznie, ta szczególna ścieżka jest także \"ratunkowym\" " +"położeniem, używanym gdy żaden plik wykonywalny nazwany :file:`python` nie " +"znajdzie się w katalogach znajdujących się w zmiennej " +"środowiskowej :envvar:`PATH`.) Użytkownik może podmienić to zachowanie przez " +"ustawienie zmiennej środowiskowej :envvar:`PYTHONHOME`, lub wstawić " +"dodatkowe katalogi przed sztandarową ścieżką przez ustawienie zmiennej " +"środowiskowej :envvar:`PYTHONPATH`." 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 " "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 "" 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." +"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 "" msgid "Debugging Builds" @@ -779,22 +730,22 @@ msgstr "" "programu więc nie są załączane domyślnie." 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 " -"allocator, or low-level profiling of the main interpreter loop. Only the " -"most frequently used builds will be described in the remainder of this " +"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 "" msgid "" "Compiling the interpreter with the :c:macro:`Py_DEBUG` macro defined " "produces what is generally meant by :ref:`a debug build of Python `. :c:macro:`Py_DEBUG` is enabled in the Unix build by adding :option:" -"`--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." +"build>`. :c:macro:`Py_DEBUG` is enabled in the Unix build by " +"adding :option:`--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 "" msgid "" @@ -803,12 +754,12 @@ msgid "" msgstr "" msgid "" -"Defining :c:macro:`Py_TRACE_REFS` enables reference tracing (see the :option:" -"`configure --with-trace-refs option <--with-trace-refs>`). 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.)" +"Defining :c:macro:`Py_TRACE_REFS` enables reference tracing (see " +"the :option:`configure --with-trace-refs option <--with-trace-refs>`). 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.)" msgstr "" msgid "" diff --git a/c-api/list.po b/c-api/list.po new file mode 100644 index 0000000000..1e726c4d42 --- /dev/null +++ b/c-api/list.po @@ -0,0 +1,138 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "List Objects" +msgstr "" + +msgid "This subtype of :c:type:`PyObject` represents a Python list object." +msgstr "Ten podtyp :c:type:`PyObject` reprezentuje obiekt listy Pythona." + +msgid "" +"This instance of :c:type:`PyTypeObject` represents the Python list type. " +"This is the same object as :class:`list` in the Python layer." +msgstr "" + +msgid "" +"Return true if *p* is a list object or an instance of a subtype of the list " +"type. This function always succeeds." +msgstr "" + +msgid "" +"Return true if *p* is a list object, but not an instance of a subtype of the " +"list type. This function always succeeds." +msgstr "" + +msgid "Return a new list of length *len* on success, or ``NULL`` on failure." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Return the length of the list object in *list*; this is equivalent to " +"``len(list)`` on a list object." +msgstr "" + +msgid "Macro form of :c:func:`PyList_Size` without error checking." +msgstr "" + +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." +msgstr "" + +msgid "Macro form of :c:func:`PyList_GetItem` without error checking." +msgstr "" + +msgid "" +"Set the item at index *index* in list to *item*. Return ``0`` on success. " +"If *index* is out of bounds, return ``-1`` and set an :exc:`IndexError` " +"exception." +msgstr "" + +msgid "" +"This function \"steals\" a reference to *item* and discards a reference to " +"an item already in the list at the affected position." +msgstr "" + +msgid "" +"Macro form of :c:func:`PyList_SetItem` without error checking. This is " +"normally only used to fill in new lists where there is no previous content." +msgstr "" + +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." +msgstr "" + +msgid "" +"Insert the item *item* into list *list* in front of index *index*. Return " +"``0`` if successful; return ``-1`` and set an exception if unsuccessful. " +"Analogous to ``list.insert(index, item)``." +msgstr "" + +msgid "" +"Append the object *item* at the end of list *list*. Return ``0`` if " +"successful; return ``-1`` and set an exception if unsuccessful. Analogous " +"to ``list.append(item)``." +msgstr "" + +msgid "" +"Return a list of the objects in *list* containing the objects *between* " +"*low* and *high*. Return ``NULL`` and set an exception if unsuccessful. " +"Analogous to ``list[low:high]``. Indexing from the end of the list is not " +"supported." +msgstr "" + +msgid "" +"Set the slice of *list* between *low* and *high* to the contents of " +"*itemlist*. Analogous to ``list[low:high] = itemlist``. The *itemlist* may " +"be ``NULL``, indicating the assignment of an empty list (slice deletion). " +"Return ``0`` on success, ``-1`` on failure. Indexing from the end of the " +"list is not supported." +msgstr "" + +msgid "" +"Sort the items of *list* in place. Return ``0`` on success, ``-1`` on " +"failure. This is equivalent to ``list.sort()``." +msgstr "" + +msgid "" +"Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on " +"failure. This is the equivalent of ``list.reverse()``." +msgstr "" + +msgid "" +"Return a new tuple object containing the contents of *list*; equivalent to " +"``tuple(list)``." +msgstr "" diff --git a/c-api/memory.po b/c-api/memory.po index 41bbd5525b..d91899dfa7 100644 --- a/c-api/memory.po +++ b/c-api/memory.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:49+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Memory Management" msgstr "Zarządzanie Pamięcią" @@ -80,13 +80,14 @@ msgstr "" 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::" +"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 "" msgid "" @@ -137,8 +138,8 @@ msgid "" "allocation functions belonging to a given domain for only the purposes " "hinted by that domain (although this is the recommended practice). For " "example, one could use the memory returned by :c:func:`PyMem_RawMalloc` for " -"allocating Python objects or the memory returned by :c:func:" -"`PyObject_Malloc` for allocating memory for buffers." +"allocating Python objects or the memory returned " +"by :c:func:`PyObject_Malloc` for allocating memory for buffers." msgstr "" msgid "The three allocation domains are:" @@ -220,9 +221,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -232,9 +233,9 @@ msgstr "" 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 " -"called before, undefined behavior occurs." +"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 "" msgid "If *p* is ``NULL``, no operation is performed." @@ -250,8 +251,8 @@ msgid "" msgstr "" msgid "" -"The :ref:`default memory allocator ` uses the :" -"ref:`pymalloc memory allocator `." +"The :ref:`default memory allocator ` uses " +"the :ref:`pymalloc memory allocator `." msgstr "" msgid "" @@ -282,8 +283,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -293,9 +294,9 @@ msgstr "" 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." +"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 "" msgid "" @@ -340,22 +341,22 @@ msgstr "" "rozszerzających." msgid "``PyMem_MALLOC(size)``" -msgstr "" +msgstr "``PyMem_MALLOC(size)``" msgid "``PyMem_NEW(type, size)``" -msgstr "" +msgstr "``PyMem_NEW(type, size)``" msgid "``PyMem_REALLOC(ptr, size)``" -msgstr "" +msgstr "``PyMem_REALLOC(ptr, size)``" msgid "``PyMem_RESIZE(ptr, type, size)``" msgstr "" msgid "``PyMem_FREE(ptr)``" -msgstr "" +msgstr "``PyMem_FREE(ptr)``" msgid "``PyMem_DEL(ptr)``" -msgstr "" +msgstr "``PyMem_DEL(ptr)``" msgid "Object allocators" msgstr "" @@ -368,8 +369,8 @@ msgid "" msgstr "" msgid "" -"The :ref:`default object allocator ` uses the :" -"ref:`pymalloc memory allocator `." +"The :ref:`default object allocator ` uses " +"the :ref:`pymalloc memory allocator `." msgstr "" msgid "" @@ -391,9 +392,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -403,9 +404,9 @@ msgstr "" 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 " -"called before, undefined behavior occurs." +"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 "" msgid "Default Memory Allocators" @@ -415,37 +416,37 @@ msgid "Default memory allocators:" msgstr "" msgid "Configuration" -msgstr "" +msgstr "Konfiguracja" msgid "Name" msgstr "Nazwa" msgid "PyMem_RawMalloc" -msgstr "" +msgstr "PyMem_RawMalloc" msgid "PyMem_Malloc" -msgstr "" +msgstr "PyMem_Malloc" msgid "PyObject_Malloc" -msgstr "" +msgstr "PyObject_Malloc" msgid "Release build" msgstr "" msgid "``\"pymalloc\"``" -msgstr "" +msgstr "``\"pymalloc\"``" msgid "``malloc``" -msgstr "" +msgstr "``malloc``" msgid "``pymalloc``" -msgstr "" +msgstr "``pymalloc``" msgid "Debug build" msgstr "" msgid "``\"pymalloc_debug\"``" -msgstr "" +msgstr "``\"pymalloc_debug\"``" msgid "``malloc`` + debug" msgstr "" @@ -457,23 +458,24 @@ msgid "Release build, without pymalloc" msgstr "" msgid "``\"malloc\"``" -msgstr "" +msgstr "``\"malloc\"``" msgid "Debug build, without pymalloc" msgstr "" msgid "``\"malloc_debug\"``" -msgstr "" +msgstr "``\"malloc_debug\"``" msgid "Legend:" -msgstr "" +msgstr "Legenda:" msgid "Name: value for :envvar:`PYTHONMALLOC` environment variable." msgstr "" 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 "" msgid "``pymalloc``: :ref:`pymalloc memory allocator `." @@ -496,13 +498,13 @@ msgid "" msgstr "" msgid "Field" -msgstr "" +msgstr "Pole" msgid "Meaning" msgstr "Znaczenie" msgid "``void *ctx``" -msgstr "" +msgstr "``void *ctx``" msgid "user context passed as first argument" msgstr "" @@ -532,51 +534,51 @@ msgid "free a memory block" msgstr "" 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 "" msgid "Enum used to identify an allocator domain. Domains:" msgstr "" msgid "Functions:" -msgstr "" +msgstr "Funkcje:" msgid ":c:func:`PyMem_RawMalloc`" -msgstr "" +msgstr ":c:func:`PyMem_RawMalloc`" msgid ":c:func:`PyMem_RawRealloc`" -msgstr "" +msgstr ":c:func:`PyMem_RawRealloc`" msgid ":c:func:`PyMem_RawCalloc`" -msgstr "" +msgstr ":c:func:`PyMem_RawCalloc`" msgid ":c:func:`PyMem_RawFree`" -msgstr "" +msgstr ":c:func:`PyMem_RawFree`" msgid ":c:func:`PyMem_Malloc`," -msgstr "" +msgstr ":c:func:`PyMem_Malloc`," msgid ":c:func:`PyMem_Realloc`" -msgstr "" +msgstr ":c:func:`PyMem_Realloc`" msgid ":c:func:`PyMem_Calloc`" -msgstr "" +msgstr ":c:func:`PyMem_Calloc`" msgid ":c:func:`PyMem_Free`" -msgstr "" +msgstr ":c:func:`PyMem_Free`" msgid ":c:func:`PyObject_Malloc`" -msgstr "" +msgstr ":c:func:`PyObject_Malloc`" msgid ":c:func:`PyObject_Realloc`" -msgstr "" +msgstr ":c:func:`PyObject_Realloc`" msgid ":c:func:`PyObject_Calloc`" -msgstr "" +msgstr ":c:func:`PyObject_Calloc`" msgid ":c:func:`PyObject_Free`" -msgstr "" +msgstr ":c:func:`PyObject_Free`" msgid "Get the memory block allocator of the specified domain." msgstr "" @@ -601,28 +603,23 @@ msgid "" "debug hooks on top on the new allocator." msgstr "" -msgid "" -"See also :c:member:`PyPreConfig.allocator` and :ref:`Preinitialize Python " -"with PyPreConfig `." -msgstr "" - msgid ":c:func:`PyMem_SetAllocator` does have the following contract:" msgstr "" msgid "" -"It can be called after :c:func:`Py_PreInitialize` and before :c:func:" -"`Py_InitializeFromConfig` to install a custom memory allocator. There are no " -"restrictions over the installed allocator other than the ones imposed by the " -"domain (for instance, the Raw Domain allows the allocator to be called " -"without the GIL held). See :ref:`the section on allocator domains ` for more information." +"It can be called after :c:func:`Py_PreInitialize` and " +"before :c:func:`Py_InitializeFromConfig` to install a custom memory " +"allocator. There are no restrictions over the installed allocator other than " +"the ones imposed by the domain (for instance, the Raw Domain allows the " +"allocator to be called without the GIL held). See :ref:`the section on " +"allocator domains ` for more information." msgstr "" msgid "" -"If called after Python has finish initializing (after :c:func:" -"`Py_InitializeFromConfig` has been called) the allocator **must** wrap the " -"existing allocator. Substituting the current allocator for some other " -"arbitrary one is **not supported**." +"If called after Python has finish initializing " +"(after :c:func:`Py_InitializeFromConfig` has been called) the allocator " +"**must** wrap the existing allocator. Substituting the current allocator for " +"some other arbitrary one is **not supported**." msgstr "" msgid "" @@ -634,8 +631,8 @@ msgid "Debug hooks on the Python memory allocators" msgstr "" msgid "" -"When :ref:`Python is built in debug mode `, the :c:func:" -"`PyMem_SetupDebugHooks` function is called at the :ref:`Python " +"When :ref:`Python is built in debug mode `, " +"the :c:func:`PyMem_SetupDebugHooks` function is called at the :ref:`Python " "preinitialization ` to setup debug hooks on Python memory " "allocators to detect memory errors." msgstr "" @@ -675,8 +672,9 @@ msgstr "" 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 "" msgid "" @@ -690,13 +688,13 @@ msgid "" "Let *S* = ``sizeof(size_t)``. ``2*S`` bytes are added at each end of each " "block of *N* bytes requested. The memory layout is like so, where p " "represents the address returned by a malloc-like or realloc-like function " -"(``p[i:j]`` means the slice of bytes from ``*(p+i)`` inclusive up to ``*(p" -"+j)`` exclusive; note that the treatment of negative indices differs from a " -"Python slice):" +"(``p[i:j]`` means the slice of bytes from ``*(p+i)`` inclusive up to " +"``*(p+j)`` exclusive; note that the treatment of negative indices differs " +"from a Python slice):" msgstr "" msgid "``p[-2*S:-S]``" -msgstr "" +msgstr "``p[-2*S:-S]``" msgid "" "Number of bytes originally asked for. This is a size_t, big-endian (easier " @@ -704,7 +702,7 @@ msgid "" msgstr "" msgid "``p[-S]``" -msgstr "" +msgstr "``p[-S]``" msgid "API identifier (ASCII character):" msgstr "" @@ -719,13 +717,13 @@ msgid "``'o'`` for :c:data:`PYMEM_DOMAIN_OBJ`." msgstr "" msgid "``p[-S+1:0]``" -msgstr "" +msgstr "``p[-S+1:0]``" msgid "Copies of PYMEM_FORBIDDENBYTE. Used to catch under- writes and reads." msgstr "" msgid "``p[0:N]``" -msgstr "" +msgstr "``p[0:N]``" msgid "" "The requested memory, filled with copies of PYMEM_CLEANBYTE, used to catch " @@ -738,13 +736,13 @@ msgid "" msgstr "" msgid "``p[N:N+S]``" -msgstr "" +msgstr "``p[N:N+S]``" msgid "Copies of PYMEM_FORBIDDENBYTE. Used to catch over- writes and reads." msgstr "" msgid "``p[N+S:N+2*S]``" -msgstr "" +msgstr "``p[N+S:N+2*S]``" msgid "" "Only used if the ``PYMEM_DEBUG_SERIALNO`` macro is defined (not defined by " @@ -774,10 +772,11 @@ msgstr "" msgid "" "The :c:func:`PyMem_SetupDebugHooks` 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." +"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." msgstr "" msgid "" @@ -793,15 +792,15 @@ 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 "" 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 "" msgid "The arena allocator uses the following functions:" @@ -818,8 +817,9 @@ msgstr "" msgid "" "This allocator is disabled if Python is configured with the :option:`--" -"without-pymalloc` option. It can also be disabled at runtime using the :" -"envvar:`PYTHONMALLOC` environment variable (ex: ``PYTHONMALLOC=malloc``)." +"without-pymalloc` option. It can also be disabled at runtime using " +"the :envvar:`PYTHONMALLOC` environment variable (ex: " +"``PYTHONMALLOC=malloc``)." msgstr "" msgid "Customize pymalloc Arena Allocator" @@ -878,8 +878,8 @@ msgid "" "the I/O buffer is allocated from the Python heap by using the first function " "set::" msgstr "" -"Tutaj jest przykład z sekcji \"przeglądu pamięci\" - z ang. - :ref:" -"`memoryoverview`, przepisane, tak aby przestrzeń wejścia/wyjścia była " +"Tutaj jest przykład z sekcji \"przeglądu pamięci\" - z ang. " +"- :ref:`memoryoverview`, przepisane, tak aby przestrzeń wejścia/wyjścia była " "przydzielona ze sterty Pythona używając pierwszego zestawu zadań::" msgid "The same code using the type-oriented function set::" @@ -903,8 +903,9 @@ msgstr "" 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 "" msgid "" diff --git a/c-api/method.po b/c-api/method.po new file mode 100644 index 0000000000..9728670022 --- /dev/null +++ b/c-api/method.po @@ -0,0 +1,96 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Instance Method Objects" +msgstr "" + +msgid "" +"An instance method is a wrapper for a :c:data:`PyCFunction` and the new way " +"to bind a :c:data:`PyCFunction` to a class object. It replaces the former " +"call ``PyMethod_New(func, NULL, class)``." +msgstr "" + +msgid "" +"This instance of :c:type:`PyTypeObject` represents the Python instance " +"method type. It is not exposed to Python programs." +msgstr "" + +msgid "" +"Return true if *o* is an instance method object (has " +"type :c:data:`PyInstanceMethod_Type`). The parameter must not be ``NULL``. " +"This function always succeeds." +msgstr "" + +msgid "" +"Return a new instance method object, with *func* being any callable object. " +"*func* is the function that will be called when the instance method is " +"called." +msgstr "" + +msgid "Return the function object associated with the instance method *im*." +msgstr "" + +msgid "" +"Macro version of :c:func:`PyInstanceMethod_Function` which avoids error " +"checking." +msgstr "" + +msgid "Method Objects" +msgstr "Obiekty metod" + +msgid "" +"Methods are bound function objects. Methods are always bound to an instance " +"of a user-defined class. Unbound methods (methods bound to a class object) " +"are no longer available." +msgstr "" + +msgid "" +"This instance of :c:type:`PyTypeObject` represents the Python method type. " +"This is exposed to Python programs as ``types.MethodType``." +msgstr "" + +msgid "" +"Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). " +"The parameter must not be ``NULL``. This function always succeeds." +msgstr "" + +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``." +msgstr "" + +msgid "Return the function object associated with the method *meth*." +msgstr "" + +msgid "" +"Macro version of :c:func:`PyMethod_Function` which avoids error checking." +msgstr "" + +msgid "Return the instance associated with the method *meth*." +msgstr "" + +msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking." +msgstr "" diff --git a/c-api/module.po b/c-api/module.po new file mode 100644 index 0000000000..5f68c4d626 --- /dev/null +++ b/c-api/module.po @@ -0,0 +1,560 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Blessing Oluronbi, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Module Objects" +msgstr "" + +msgid "" +"This instance of :c:type:`PyTypeObject` represents the Python module type. " +"This is exposed to Python programs as ``types.ModuleType``." +msgstr "" + +msgid "" +"Return true if *p* is a module object, or a subtype of a module object. This " +"function always succeeds." +msgstr "" + +msgid "" +"Return true if *p* is a module object, but not a subtype " +"of :c:data:`PyModule_Type`. This function always succeeds." +msgstr "" + +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." +msgstr "" + +msgid ":attr:`__package__` and :attr:`__loader__` are set to ``None``." +msgstr "" + +msgid "" +"Similar to :c:func:`PyModule_NewObject`, but the name is a UTF-8 encoded " +"string instead of a Unicode object." +msgstr "" + +msgid "" +"Return the dictionary object that implements *module*'s namespace; this " +"object is the same as the :attr:`~object.__dict__` attribute of the module " +"object. If *module* is not a module object (or a subtype of a module " +"object), :exc:`SystemError` is raised and ``NULL`` is returned." +msgstr "" + +msgid "" +"It is recommended extensions use other ``PyModule_*`` and ``PyObject_*`` " +"functions rather than directly manipulate a " +"module's :attr:`~object.__dict__`." +msgstr "" + +msgid "" +"Return *module*'s :attr:`__name__` value. If the module does not provide " +"one, or if it is not a string, :exc:`SystemError` is raised and ``NULL`` is " +"returned." +msgstr "" + +msgid "" +"Similar to :c:func:`PyModule_GetNameObject` but return the name encoded to " +"``'utf-8'``." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Return a pointer to the :c:type:`PyModuleDef` struct from which the module " +"was created, or ``NULL`` if the module wasn't created from a definition." +msgstr "" + +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 unicode string, raise :exc:`SystemError` and return ``NULL``; " +"otherwise return a reference to a Unicode object." +msgstr "" + +msgid "" +"Similar to :c:func:`PyModule_GetFilenameObject` but return the filename " +"encoded to 'utf-8'." +msgstr "" + +msgid "" +":c:func:`PyModule_GetFilename` raises :c:type:`UnicodeEncodeError` on " +"unencodable filenames, use :c:func:`PyModule_GetFilenameObject` instead." +msgstr "" + +msgid "Initializing C modules" +msgstr "" + +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`). " +"See :ref:`building` or :ref:`extending-with-embedding` for details." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Always initialize this member to :const:`PyModuleDef_HEAD_INIT`." +msgstr "" + +msgid "Name for the new module." +msgstr "" + +msgid "" +"Docstring for the module; usually a docstring variable created " +"with :c:macro:`PyDoc_STRVAR` is used." +msgstr "" + +msgid "" +"Module state may be kept in a per-module memory area that can be retrieved " +"with :c:func:`PyModule_GetState`, rather than in static globals. This makes " +"modules safe for use in multiple sub-interpreters." +msgstr "" + +msgid "" +"This memory area is allocated based on *m_size* on module creation, and " +"freed when the module object is deallocated, after the :c:member:`m_free` " +"function has been called, if present." +msgstr "" + +msgid "" +"Setting ``m_size`` to ``-1`` means that the module does not support sub-" +"interpreters, because it has global state." +msgstr "" + +msgid "" +"Setting it to a non-negative value means that the module can be re-" +"initialized and specifies the additional amount of memory it requires for " +"its state. Non-negative ``m_size`` is required for multi-phase " +"initialization." +msgstr "" + +msgid "See :PEP:`3121` for more details." +msgstr "" + +msgid "" +"A pointer to a table of module-level functions, described " +"by :c:type:`PyMethodDef` values. Can be ``NULL`` if no functions are " +"present." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Prior to version 3.5, this member was always set to ``NULL``, and was " +"defined as:" +msgstr "" + +msgid "" +"A traversal function to call during GC traversal of the module object, or " +"``NULL`` if not needed." +msgstr "" + +msgid "" +"This function is not called if the module state was requested but is not " +"allocated yet. This is the case immediately after the module is created and " +"before the module is executed (:c:data:`Py_mod_exec` function). More " +"precisely, this function is not called if :c:member:`m_size` is greater than " +"0 and the module state (as returned by :c:func:`PyModule_GetState`) is " +"``NULL``." +msgstr "" + +msgid "No longer called before the module state is allocated." +msgstr "" + +msgid "" +"A clear function to call during GC clearing of the module object, or " +"``NULL`` if not needed." +msgstr "" + +msgid "" +"Like :c:member:`PyTypeObject.tp_clear`, this function is not *always* called " +"before a module is deallocated. For example, when reference counting is " +"enough to determine that an object is no longer used, the cyclic garbage " +"collector is not involved and :c:member:`~PyModuleDef.m_free` is called " +"directly." +msgstr "" + +msgid "" +"A function to call during deallocation of the module object, or ``NULL`` if " +"not needed." +msgstr "" + +msgid "Single-phase initialization" +msgstr "" + +msgid "" +"The module initialization function may create and return the module object " +"directly. This is referred to as \"single-phase initialization\", and uses " +"one of the following two module creation functions:" +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Most uses of this function should be using :c:func:`PyModule_Create` " +"instead; only use this if you are sure you need it." +msgstr "" + +msgid "" +"Before it is returned from in the initialization function, the resulting " +"module object is typically populated using functions " +"like :c:func:`PyModule_AddObjectRef`." +msgstr "" + +msgid "Multi-phase initialization" +msgstr "Inicjalizacja wielofazowa" + +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." +msgstr "" + +msgid "" +"Unlike modules created using single-phase initialization, these modules are " +"not singletons: if the *sys.modules* entry is removed and the module is re-" +"imported, a new module object is created, and the old module is subject to " +"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`)." +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid "" +"Ensures a module definition is a properly initialized Python object that " +"correctly reports its type and reference count." +msgstr "" + +msgid "Returns *def* cast to ``PyObject*``, or ``NULL`` if an error occurred." +msgstr "" + +msgid "" +"The *m_slots* member of the module definition must point to an array of " +"``PyModuleDef_Slot`` structures:" +msgstr "" + +msgid "A slot ID, chosen from the available values explained below." +msgstr "" + +msgid "Value of the slot, whose meaning depends on the slot ID." +msgstr "" + +msgid "The *m_slots* array must be terminated by a slot with id 0." +msgstr "" + +msgid "The available slot types are:" +msgstr "" + +msgid "" +"Specifies a function that is called to create the module object itself. The " +"*value* pointer of this slot must point to a function of the signature:" +msgstr "" + +msgid "" +"The function receives a :py:class:`~importlib.machinery.ModuleSpec` " +"instance, as defined in :PEP:`451`, and the module definition. It should " +"return a new module object, or set an error and return ``NULL``." +msgstr "" + +msgid "" +"This function should be kept minimal. In particular, it should not call " +"arbitrary Python code, as trying to import the same module again may result " +"in an infinite loop." +msgstr "" + +msgid "" +"Multiple ``Py_mod_create`` slots may not be specified in one module " +"definition." +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." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Specifies a function that is called to *execute* the module. This is " +"equivalent to executing the code of a Python module: typically, this " +"function adds classes and constants to the module. The signature of the " +"function is:" +msgstr "" + +msgid "" +"If multiple ``Py_mod_exec`` slots are specified, they are processed in the " +"order they appear in the *m_slots* array." +msgstr "" + +msgid "See :PEP:`489` for more details on multi-phase initialization." +msgstr "" + +msgid "Low-level module creation functions" +msgstr "" + +msgid "" +"The following functions are called under the hood when using multi-phase " +"initialization. They can be used directly, for example when creating module " +"objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and " +"``PyModule_ExecDef`` must be called to fully initialize a module." +msgstr "" + +msgid "" +"Create a new module object, given the definition in *def* and the ModuleSpec " +"*spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` with " +"*module_api_version* set to :const:`PYTHON_API_VERSION`." +msgstr "" + +msgid "" +"Create a new module object, given the definition in *def* 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." +msgstr "" + +msgid "" +"Most uses of this function should be using :c:func:`PyModule_FromDefAndSpec` " +"instead; only use this if you are sure you need it." +msgstr "" + +msgid "Process any execution slots (:c:data:`Py_mod_exec`) given in *def*." +msgstr "" + +msgid "" +"Set the docstring for *module* to *docstring*. This function is called " +"automatically when creating a module from ``PyModuleDef``, using either " +"``PyModule_Create`` or ``PyModule_FromDefAndSpec``." +msgstr "" + +msgid "" +"Add the functions from the ``NULL`` terminated *functions* array to " +"*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 " +"``PyModuleDef``, using either ``PyModule_Create`` or " +"``PyModule_FromDefAndSpec``." +msgstr "" + +msgid "Support functions" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Add an object to *module* as *name*. This is a convenience function which " +"can be used from the module's initialization function." +msgstr "" + +msgid "" +"On success, return ``0``. On error, raise an exception and return ``-1``." +msgstr "" + +msgid "" +"Return ``NULL`` if *value* is ``NULL``. It must be called with an exception " +"raised in this case." +msgstr "" + +msgid "Example usage::" +msgstr "" + +msgid "" +"The example can also be written without checking explicitly if *obj* is " +"``NULL``::" +msgstr "" + +msgid "" +"Note that ``Py_XDECREF()`` should be used instead of ``Py_DECREF()`` in this " +"case, since *obj* can be ``NULL``." +msgstr "" + +msgid "" +"Similar to :c:func:`PyModule_AddObjectRef`, but steals a reference to " +"*value* on success (if it returns ``0``)." +msgstr "" + +msgid "" +"The new :c:func:`PyModule_AddObjectRef` function is recommended, since it is " +"easy to introduce reference leaks by misusing " +"the :c:func:`PyModule_AddObject` function." +msgstr "" + +msgid "" +"Unlike other functions that steal references, ``PyModule_AddObject()`` only " +"releases the reference to *value* **on success**." +msgstr "" + +msgid "" +"This means that its return value must be checked, and calling code " +"must :c:func:`Py_DECREF` *value* manually on error." +msgstr "" + +msgid "" +"Add an integer constant to *module* as *name*. This convenience function " +"can be used from the module's initialization function. Return ``-1`` on " +"error, ``0`` on success." +msgstr "" + +msgid "" +"Add a string constant to *module* as *name*. This convenience function can " +"be used from the module's initialization function. The string *value* must " +"be ``NULL``-terminated. Return ``-1`` on error, ``0`` on success." +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." +msgstr "" + +msgid "Add a string constant to *module*." +msgstr "" + +msgid "" +"Add a type object to *module*. The type object is finalized by calling " +"internally :c:func:`PyType_Ready`. The name of the type object is taken from " +"the last component of :c:member:`~PyTypeObject.tp_name` after dot. Return " +"``-1`` on error, ``0`` on success." +msgstr "" + +msgid "Module lookup" +msgstr "" + +msgid "" +"Single-phase initialization creates singleton modules that can be looked up " +"in the context of the current interpreter. This allows the module object to " +"be retrieved later with only a reference to the module definition." +msgstr "" + +msgid "" +"These functions will not work on modules created using multi-phase " +"initialization, since multiple such modules can be created from a single " +"definition." +msgstr "" + +msgid "" +"Returns the module object that was created from *def* for the current " +"interpreter. This method requires that the module object has been attached " +"to the interpreter state with :c:func:`PyState_AddModule` beforehand. In " +"case the corresponding module object is not found or has not been attached " +"to the interpreter state yet, it returns ``NULL``." +msgstr "" + +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`." +msgstr "" + +msgid "Only effective on modules created using single-phase initialization." +msgstr "" + +msgid "" +"Python calls ``PyState_AddModule`` automatically after importing a module, " +"so it is unnecessary (but harmless) to call it from module initialization " +"code. An explicit call is needed only if the module's own init code " +"subsequently calls ``PyState_FindModule``. The function is mainly intended " +"for implementing alternative import mechanisms (either by calling it " +"directly, or by referring to its implementation for details of the required " +"state updates)." +msgstr "" + +msgid "The caller must hold the GIL." +msgstr "" + +msgid "Return 0 on success or -1 on failure." +msgstr "" + +msgid "" +"Removes the module object created from *def* from the interpreter state. " +"Return 0 on success or -1 on failure." +msgstr "" diff --git a/c-api/refcounting.po b/c-api/refcounting.po index 1d852ee63c..406b4e3812 100644 --- a/c-api/refcounting.po +++ b/c-api/refcounting.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:50+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Reference Counting" msgstr "" @@ -31,36 +31,44 @@ msgid "" "objects." msgstr "" -msgid "Increment the reference count for object *o*." +msgid "" +"Indicate taking a new :term:`strong reference` to object *o*, indicating it " +"is in use and should not be destroyed." msgstr "" msgid "" -"This function is usually used to convert a :term:`borrowed reference` to a :" -"term:`strong reference` in-place. The :c:func:`Py_NewRef` function can be " +"This function is usually used to convert a :term:`borrowed reference` to " +"a :term:`strong reference` in-place. The :c:func:`Py_NewRef` function can be " "used to create a new :term:`strong reference`." msgstr "" +msgid "When done using the object, release it by calling :c:func:`Py_DECREF`." +msgstr "" + msgid "" "The object must not be ``NULL``; if you aren't sure that it isn't ``NULL``, " "use :c:func:`Py_XINCREF`." msgstr "" +msgid "Do not expect this function to actually modify *o* in any way." +msgstr "" + msgid "" -"Increment the reference count for object *o*. The object may be ``NULL``, " -"in which case the macro has no effect." +"Similar to :c:func:`Py_INCREF`, but the object *o* can be ``NULL``, in which " +"case this has no effect." msgstr "" msgid "See also :c:func:`Py_XNewRef`." msgstr "" msgid "" -"Create a new :term:`strong reference` to an object: increment the reference " -"count of the object *o* and return the object *o*." +"Create a new :term:`strong reference` to an object: call :c:func:`Py_INCREF` " +"on *o* and return the object *o*." msgstr "" msgid "" "When the :term:`strong reference` is no longer needed, :c:func:`Py_DECREF` " -"should be called on it to decrement the object reference count." +"should be called on it to release the reference." msgstr "" msgid "" @@ -83,12 +91,15 @@ msgstr "" msgid "If the object *o* is ``NULL``, the function just returns ``NULL``." msgstr "" -msgid "Decrement the reference count for object *o*." +msgid "" +"Release a :term:`strong reference` to object *o*, indicating the reference " +"is no longer used." msgstr "" msgid "" -"If the reference count reaches zero, the object's type's deallocation " -"function (which must not be ``NULL``) is invoked." +"Once the last :term:`strong reference` is released (i.e. the object's " +"reference count reaches 0), the object's type's deallocation function (which " +"must not be ``NULL``) is invoked." msgstr "" msgid "" @@ -102,49 +113,51 @@ msgid "" msgstr "" 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). " +"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." +"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 "" msgid "" -"Decrement the reference count for object *o*. The object may be ``NULL``, " -"in which case the macro has no effect; otherwise the effect is the same as " -"for :c:func:`Py_DECREF`, and the same warning applies." +"Similar to :c:func:`Py_DECREF`, but the object *o* can be ``NULL``, in which " +"case this has no effect. The same warning from :c:func:`Py_DECREF` applies " +"here as well." msgstr "" msgid "" -"Decrement the reference count for object *o*. The object may be ``NULL``, " -"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." +"Release a :term:`strong reference` for object *o*. The object may be " +"``NULL``, 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 releasing the reference." msgstr "" msgid "" -"It is a good idea to use this macro whenever decrementing the reference " -"count of an object that might be traversed during garbage collection." +"It is a good idea to use this macro whenever releasing a reference to an " +"object that might be traversed during garbage collection." msgstr "" msgid "" -"Increment the reference count for object *o*. A function version of :c:func:" -"`Py_XINCREF`. It can be used for runtime dynamic embedding of Python." +"Indicate taking a new :term:`strong reference` to object *o*. A function " +"version of :c:func:`Py_XINCREF`. It can be used for runtime dynamic " +"embedding of Python." msgstr "" msgid "" -"Decrement the reference count for object *o*. A function version of :c:func:" -"`Py_XDECREF`. It can be used for runtime dynamic embedding of Python." +"Release a :term:`strong reference` to object *o*. A function version " +"of :c:func:`Py_XDECREF`. It can be used for runtime dynamic embedding of " +"Python." msgstr "" 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/structures.po b/c-api/structures.po index 62e264068c..95805856ca 100644 --- a/c-api/structures.po +++ b/c-api/structures.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:50+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Common Object Structures" msgstr "Wspólne struktury obiektów" @@ -108,11 +108,6 @@ msgstr "" msgid "Use the :c:func:`Py_SET_TYPE` function to set an object type." msgstr "" -msgid "" -":c:func:`Py_TYPE()` is changed to an inline static function. The parameter " -"type is no longer :c:expr:`const PyObject*`." -msgstr "" - msgid "" "Return non-zero if the object *o* type is *type*. Return zero otherwise. " "Equivalent to: ``Py_TYPE(o) == type``." @@ -125,13 +120,8 @@ msgid "Get the reference count of the Python object *o*." msgstr "" msgid "" -"Use the :c:func:`Py_SET_REFCNT()` function to set an object reference count." -msgstr "" - -msgid "The parameter type is no longer :c:expr:`const PyObject*`." -msgstr "" - -msgid ":c:func:`Py_REFCNT()` is changed to the inline static function." +":c:func:`Py_REFCNT()` is changed to the inline static function. " +"Use :c:func:`Py_SET_REFCNT()` to set an object reference count." msgstr "" msgid "Set the object *o* reference counter to *refcnt*." @@ -143,23 +133,18 @@ msgstr "" msgid "Use the :c:func:`Py_SET_SIZE` function to set an object size." msgstr "" -msgid "" -":c:func:`Py_SIZE()` is changed to an inline static function. The parameter " -"type is no longer :c:expr:`const PyVarObject*`." -msgstr "" - msgid "Set the object *o* size to *size*." msgstr "" 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 "" 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 "" msgid "Implementing functions and methods" @@ -203,50 +188,20 @@ msgid "" "has four fields:" msgstr "" -msgid "Field" -msgstr "" - -msgid "C Type" -msgstr "typ języka C " - -msgid "Meaning" -msgstr "Znaczenie" - -msgid ":attr:`ml_name`" -msgstr "" - -msgid "const char \\*" -msgstr "" - msgid "name of the method" msgstr "" -msgid ":attr:`ml_meth`" -msgstr "" - -msgid "PyCFunction" -msgstr "" - msgid "pointer to the C implementation" msgstr "" -msgid ":attr:`ml_flags`" -msgstr "" - -msgid "int" -msgstr "int" - -msgid "flag bits indicating how the call should be constructed" -msgstr "" - -msgid ":attr:`ml_doc`" +msgid "flags bits indicating how the call should be constructed" msgstr "" msgid "points to the contents of the docstring" msgstr "" msgid "" -"The :attr:`ml_meth` is a C function pointer. The functions may be of " +"The :c:member:`ml_meth` is a C function pointer. The functions may be of " "different types, but they always return :c:expr:`PyObject*`. If the " "function is not of the :c:type:`PyCFunction`, the compiler will require a " "cast in the method table. Even though :c:type:`PyCFunction` defines the " @@ -255,7 +210,7 @@ msgid "" msgstr "" msgid "" -"The :attr:`ml_flags` field is a bitfield which can include the following " +"The :c:member:`ml_flags` field is a bitfield which can include the following " "flags. The individual flags indicate either a calling convention or a " "binding convention." msgstr "" @@ -264,12 +219,13 @@ msgid "There are these calling conventions:" msgstr "" msgid "" -"This is the typical calling convention, where the methods have the type :c:" -"type:`PyCFunction`. The function expects two :c:expr:`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:expr:`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 "" msgid "" @@ -322,11 +278,6 @@ msgid "" "the second parameter will be ``NULL``." msgstr "" -msgid "" -"The function must have 2 parameters. Since the second parameter is unused, :" -"c:macro:`Py_UNUSED` can be used to prevent a compiler warning." -msgstr "" - 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\"`` " @@ -344,7 +295,7 @@ msgstr "" "Te dwie stałe nie są używane do zaznaczania konwencji wywoływania, ale wiążą " "gdy są używane z metodami klas. Nie mogą być one używane dla funkcji " "określonych dla modułów. Co najwyżej jedna z tych flag może być ustawiona " -"dla dowolnej danej metody. " +"dla dowolnej danej metody." msgid "" "The method will be passed the type object as the first parameter rather than " @@ -372,22 +323,22 @@ 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 "" "Metoda zostanie załadowana w miejsce istniejących definicji. Bez " "*METH_COEXIST*, domyślnie pomija się powtórzone definicje. Od kiedy " "opakowania gniazd są ładowane przed tabelą metod, istnienie na przykład " -"gniazda *sq_contains* generuje opakowaną metodę nazywaną :meth:" -"`__contains__` i zapobiega ładowaniu odpowiadającej funkcji PyCFunction o " -"tej samej nazwie. Ze zdefiniowaną flagą, PyCFunction zostanie załadowana w " -"miejsce obiektu opakowania i będzie współistniała z gniazdem. To jest " -"pomocne ponieważ wywołania PyCFunction są zoptymalizowane bardziej niż " -"odwołania do obiektów opakowań." +"gniazda *sq_contains* generuje opakowaną metodę " +"nazywaną :meth:`__contains__` i zapobiega ładowaniu odpowiadającej funkcji " +"PyCFunction o tej samej nazwie. Ze zdefiniowaną flagą, PyCFunction zostanie " +"załadowana w miejsce obiektu opakowania i będzie współistniała z gniazdem. " +"To jest pomocne ponieważ wywołania PyCFunction są zoptymalizowane bardziej " +"niż odwołania do obiektów opakowań." msgid "Accessing attributes of extension types" msgstr "" @@ -397,15 +348,30 @@ msgid "" "struct member. Its fields are:" msgstr "" +msgid "Field" +msgstr "Pole" + +msgid "C Type" +msgstr "typ języka C" + +msgid "Meaning" +msgstr "Znaczenie" + msgid ":attr:`name`" msgstr "" +msgid "const char \\*" +msgstr "" + msgid "name of the member" msgstr "" msgid ":attr:`!type`" msgstr "" +msgid "int" +msgstr "int" + msgid "the type of the member in the C struct" msgstr "" @@ -531,30 +497,30 @@ msgid "T_PYSSIZET" msgstr "" 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 "" 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 "" msgid "" "Heap allocated types (created using :c:func:`PyType_FromSpec` or similar), " "``PyMemberDef`` may contain definitions for the special members " "``__dictoffset__``, ``__weaklistoffset__`` and ``__vectorcalloffset__``, " -"corresponding to :c:member:`~PyTypeObject.tp_dictoffset`, :c:member:" -"`~PyTypeObject.tp_weaklistoffset` and :c:member:`~PyTypeObject." -"tp_vectorcall_offset` in type objects. These must be defined with " -"``T_PYSSIZET`` and ``READONLY``, for example::" +"corresponding " +"to :c:member:`~PyTypeObject.tp_dictoffset`, :c:member:`~PyTypeObject.tp_weaklistoffset` " +"and :c:member:`~PyTypeObject.tp_vectorcall_offset` in type objects. These " +"must be defined with ``T_PYSSIZET`` and ``READONLY``, for example::" msgstr "" msgid "" @@ -574,7 +540,7 @@ msgid "" msgstr "" msgid "name" -msgstr "" +msgstr "nazwa" msgid "attribute name" msgstr "" @@ -589,7 +555,7 @@ msgid "C function to get the attribute" msgstr "" msgid "set" -msgstr "" +msgstr "zestaw" msgid "setter" msgstr "" diff --git a/c-api/tuple.po b/c-api/tuple.po index dd471d327e..784919a76a 100644 --- a/c-api/tuple.po +++ b/c-api/tuple.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:50+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Tuple Objects" msgstr "" @@ -50,8 +50,8 @@ msgstr "" msgid "" "Return a new tuple object of size *n*, or ``NULL`` on failure. The tuple " "values are initialized to the subsequent *n* C arguments pointing to Python " -"objects. ``PyTuple_Pack(2, a, b)`` is equivalent to " -"``Py_BuildValue(\"(OO)\", a, b)``." +"objects. ``PyTuple_Pack(2, a, b)`` is equivalent to ``Py_BuildValue(\"(OO)" +"\", a, b)``." msgstr "" msgid "Take a pointer to a tuple object, and return the size of that tuple." @@ -64,8 +64,8 @@ msgstr "" msgid "" "Return the object at position *pos* in the tuple pointed to by *p*. If " -"*pos* is negative or out of bounds, return ``NULL`` and set an :exc:" -"`IndexError` exception." +"*pos* is negative or out of bounds, return ``NULL`` and set " +"an :exc:`IndexError` exception." msgstr "" msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments." @@ -94,9 +94,10 @@ msgid "" msgstr "" msgid "" -"This function \"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 "" msgid "" @@ -109,24 +110,24 @@ msgid "" "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`." +"and sets ``*p`` to ``NULL``, and raises :exc:`MemoryError` " +"or :exc:`SystemError`." msgstr "" msgid "Struct Sequence Objects" msgstr "" 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 "" 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 "" msgid "Initializes a struct sequence type *type* from *desc* in place." @@ -141,10 +142,10 @@ msgid "Contains the meta information of a struct sequence type to create." msgstr "" msgid "Field" -msgstr "" +msgstr "Pole" msgid "C Type" -msgstr "typ języka C " +msgstr "typ języka C" msgid "Meaning" msgstr "Znaczenie" @@ -177,21 +178,21 @@ msgid "``n_in_sequence``" msgstr "" msgid "``int``" -msgstr "" +msgstr "``int``" msgid "number of fields visible to the Python side (if used as tuple)" msgstr "" msgid "" "Describes a field of a struct sequence. As a struct sequence is modeled as a " -"tuple, all fields are typed as :c:expr:`PyObject*`. The index in the :attr:" -"`fields` array of the :c:type:`PyStructSequence_Desc` determines which field " -"of the struct sequence is described." +"tuple, all fields are typed as :c:expr:`PyObject*`. The index in " +"the :attr:`fields` array of the :c:type:`PyStructSequence_Desc` determines " +"which field of the struct sequence is described." msgstr "" 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 "" msgid "field docstring or ``NULL`` to omit" @@ -204,8 +205,8 @@ msgid "The type was changed from ``char *``." msgstr "" 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 "" msgid "" @@ -225,7 +226,5 @@ msgstr "" msgid "This function \"steals\" a reference to *o*." msgstr "" -msgid "" -"Similar to :c:func:`PyStructSequence_SetItem`, but implemented as a static " -"inlined function." +msgid "Macro equivalent of :c:func:`PyStructSequence_SetItem`." msgstr "" diff --git a/c-api/type.po b/c-api/type.po new file mode 100644 index 0000000000..b72470fe79 --- /dev/null +++ b/c-api/type.po @@ -0,0 +1,317 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Type Objects" +msgstr "" + +msgid "The C structure of the objects used to describe built-in types." +msgstr "" + +msgid "" +"This is the type object for type objects; it is the same object " +"as :class:`type` in the Python layer." +msgstr "" + +msgid "" +"Return non-zero if the object *o* is a type object, including instances of " +"types derived from the standard type object. Return 0 in all other cases. " +"This function always succeeds." +msgstr "" + +msgid "" +"Return non-zero if the object *o* is a type object, but not a subtype of the " +"standard type object. Return 0 in all other cases. This function always " +"succeeds." +msgstr "" + +msgid "Clear the internal lookup cache. Return the current version tag." +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." +msgstr "" + +msgid "The return type is now ``unsigned long`` rather than ``long``." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return non-zero if the type object *o* sets the feature *feature*. Type " +"features are denoted by single bit flags." +msgstr "" + +msgid "" +"Return true if the type object includes support for the cycle detector; this " +"tests the type flag :const:`Py_TPFLAGS_HAVE_GC`." +msgstr "" + +msgid "Return true if *a* is a subtype of *b*." +msgstr "" + +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." +msgstr "" + +msgid "" +"Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type " +"object. Use Python's default memory allocation mechanism to allocate a new " +"instance and initialize all its contents to ``NULL``." +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"If some of the base classes implements the GC protocol and the provided type " +"does not include the :const:`Py_TPFLAGS_HAVE_GC` in its flags, then the GC " +"protocol will be automatically implemented from its parents. On the " +"contrary, if the type being created does include :const:`Py_TPFLAGS_HAVE_GC` " +"in its flags then it **must** implement the GC protocol itself by at least " +"implementing the :c:member:`~PyTypeObject.tp_traverse` handle." +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." +msgstr "" + +msgid "" +"See :c:member:`PyType_Slot.slot` for possible values of the *slot* argument." +msgstr "" + +msgid "" +":c:func:`PyType_GetSlot` can now accept all types. Previously, it was " +"limited to :ref:`heap types `." +msgstr "" + +msgid "" +"Return the module object associated with the given type when the type was " +"created using :c:func:`PyType_FromModuleAndSpec`." +msgstr "" + +msgid "" +"If no module is associated with the given type, sets :py:class:`TypeError` " +"and returns ``NULL``." +msgstr "" + +msgid "" +"This function is usually used to get the module in which a method is " +"defined. Note that in such a method, ``PyType_GetModule(Py_TYPE(self))`` may " +"not return the intended result. ``Py_TYPE(self)`` may be a *subclass* of the " +"intended class, and subclasses are not necessarily defined in the same " +"module as their superclass. See :c:type:`PyCMethod` to get the class that " +"defines the method." +msgstr "" + +msgid "" +"Return the state of the module object associated with the given type. This " +"is a shortcut for calling :c:func:`PyModule_GetState()` on the result " +"of :c:func:`PyType_GetModule`." +msgstr "" + +msgid "" +"If the *type* has an associated module but its state is ``NULL``, returns " +"``NULL`` without setting an exception." +msgstr "" + +msgid "Creating Heap-Allocated Types" +msgstr "" + +msgid "" +"The following functions and structs are used to create :ref:`heap types " +"`." +msgstr "" + +msgid "" +"Creates and returns a :ref:`heap type ` from the *spec* " +"(:const:`Py_TPFLAGS_HEAPTYPE`)." +msgstr "" + +msgid "" +"The *bases* argument can be used to specify base classes; it can either be " +"only one class or a tuple of classes. If *bases* is ``NULL``, the " +"*Py_tp_bases* slot is used instead. If that also is ``NULL``, the " +"*Py_tp_base* slot is used instead. If that also is ``NULL``, the new type " +"derives from :class:`object`." +msgstr "" + +msgid "" +"The *module* argument can be used to record the module in which the new " +"class is defined. It must be a module object or ``NULL``. If not ``NULL``, " +"the module is associated with the new type and can later be retrieved " +"with :c:func:`PyType_GetModule`. The associated module is not inherited by " +"subclasses; it must be specified for each class individually." +msgstr "" + +msgid "This function calls :c:func:`PyType_Ready` on the new type." +msgstr "" + +msgid "" +"The function now accepts a single class as the *bases* argument and ``NULL`` " +"as the ``tp_doc`` slot." +msgstr "" + +msgid "Equivalent to ``PyType_FromModuleAndSpec(NULL, spec, bases)``." +msgstr "" + +msgid "Equivalent to ``PyType_FromSpecWithBases(spec, NULL)``." +msgstr "" + +msgid "Structure defining a type's behavior." +msgstr "" + +msgid "Name of the type, used to set :c:member:`PyTypeObject.tp_name`." +msgstr "" + +msgid "" +"Size of the instance in bytes, used to " +"set :c:member:`PyTypeObject.tp_basicsize` " +"and :c:member:`PyTypeObject.tp_itemsize`." +msgstr "" + +msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`." +msgstr "" + +msgid "" +"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not " +"set, :c:func:`PyType_FromSpecWithBases` sets it automatically." +msgstr "" + +msgid "" +"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot " +"value ``{0, NULL}``." +msgstr "" + +msgid "" +"Structure defining optional functionality of a type, containing a slot ID " +"and a value pointer." +msgstr "" + +msgid "A slot ID." +msgstr "" + +msgid "" +"Slot IDs are named like the field names of the " +"structures :c:type:`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:type:`PyMappingMethods` " +"and :c:type:`PyAsyncMethods` with an added ``Py_`` prefix. For example, use:" +msgstr "" + +msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`" +msgstr "" + +msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`" +msgstr "" + +msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`" +msgstr "" + +msgid "" +"The following fields cannot be set at all using :c:type:`PyType_Spec` " +"and :c:type:`PyType_Slot`:" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_dict`" +msgstr ":c:member:`~PyTypeObject.tp_dict`" + +msgid ":c:member:`~PyTypeObject.tp_mro`" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_cache`" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_subclasses`" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_weaklist`" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_vectorcall`" +msgstr ":c:member:`~PyTypeObject.tp_vectorcall`" + +msgid "" +":c:member:`~PyTypeObject.tp_weaklistoffset` (see :ref:`PyMemberDef " +"`)" +msgstr "" + +msgid "" +":c:member:`~PyTypeObject.tp_dictoffset` (see :ref:`PyMemberDef `)" +msgstr "" + +msgid "" +":c:member:`~PyTypeObject.tp_vectorcall_offset` (see :ref:`PyMemberDef " +"`)" +msgstr "" + +msgid "" +"The following fields cannot be set using :c:type:`PyType_Spec` " +"and :c:type:`PyType_Slot` under the limited API:" +msgstr "" + +msgid ":c:member:`~PyBufferProcs.bf_getbuffer`" +msgstr ":c:member:`~PyBufferProcs.bf_getbuffer`" + +msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`" +msgstr ":c:member:`~PyBufferProcs.bf_releasebuffer`" + +msgid "" +"Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on " +"some platforms. To avoid issues, use the *bases* argument " +"of :py:func:`PyType_FromSpecWithBases` instead." +msgstr "" + +msgid "Slots in :c:type:`PyBufferProcs` may be set in the unlimited API." +msgstr "" + +msgid "" +"The desired value of the slot. In most cases, this is a pointer to a " +"function." +msgstr "" + +msgid "Slots other than ``Py_tp_doc`` may not be ``NULL``." +msgstr "" diff --git a/c-api/typeobj.po b/c-api/typeobj.po new file mode 100644 index 0000000000..fd22054cc9 --- /dev/null +++ b/c-api/typeobj.po @@ -0,0 +1,2816 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Blessing Oluronbi, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Type Objects" +msgstr "" + +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 ``PyObject_*`` or " +"``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 "" +"Prawdopodobnie jedną z najważniejszych struktur systemu obiektów Pythona " +"jest struktura definiująca nowy typ: struktura :c:type:`PyTypeObject`. " +"Obiekty typów można obsługiwać za pomocą dowolnej z funkcji ``PyObject_*`` " +"lub ``PyType_*``, ale nie oferują one wiele interesującego dla większości " +"aplikacji Pythona. Obiekty te są fundamentalne dla zachowania obiektów, " +"dlatego są bardzo ważne dla samego interpretera i każdego modułu rozszerzeń " +"implementującego nowe typy." + +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 " +"detail in this section. The fields will be described in the order in which " +"they occur in the structure." +msgstr "" +"Obiekty typu są dość duże w porównaniu z większością typów standardowych. " +"Wynika to z faktu, że każdy obiekt typu przechowuje dużą liczbę wartości, " +"głównie wskaźników do funkcji języka C, z których każdy implementuje " +"niewielką część funkcjonalności typu. Pola obiektu typu zostaną szczegółowo " +"omówione w tej sekcji. Zostaną one opisane w kolejności, w jakiej występują " +"w strukturze." + +msgid "" +"In addition to the following quick reference, the :ref:`typedef-examples` " +"section provides at-a-glance insight into the meaning and use " +"of :c:type:`PyTypeObject`." +msgstr "" +"Oprócz poniższego krótkiego odniesienia, sekcja ta zapewnia szybki wgląd w " +"znaczenie i użycie ." + +msgid "Quick Reference" +msgstr "Szybkie odniesienie" + +msgid "\"tp slots\"" +msgstr "„gniazda tp”" + +msgid "PyTypeObject Slot [#slots]_" +msgstr "Gniazdo obiektu PyType [#slotów]_" + +msgid ":ref:`Type `" +msgstr ":ref:`Type `" + +msgid "special methods/attrs" +msgstr "metody/atrybuty specjalne" + +msgid "Info [#cols]_" +msgstr "Informacje [#cols]_" + +msgid "O" +msgstr "O" + +msgid "T" +msgstr "T" + +msgid "D" +msgstr "D" + +msgid "I" +msgstr "I" + +msgid " :c:member:`~PyTypeObject.tp_name`" +msgstr " :c:member:`~PyTypeObject.tp_name`" + +msgid "const char *" +msgstr "znak stały *" + +msgid "__name__" +msgstr "__name__" + +msgid "X" +msgstr "X" + +msgid ":c:member:`~PyTypeObject.tp_basicsize`" +msgstr ":c:member:`~PyTypeObject.tp_basicsize`" + +msgid ":c:type:`Py_ssize_t`" +msgstr ":c:type:`Py_ssize_t`" + +msgid ":c:member:`~PyTypeObject.tp_itemsize`" +msgstr ":c:member:`~PyTypeObject.tp_itemsize`" + +msgid ":c:member:`~PyTypeObject.tp_dealloc`" +msgstr ":c:member:`~PyTypeObject.tp_dealloc`" + +msgid ":c:type:`destructor`" +msgstr ":c:type:`destructor`" + +msgid ":c:member:`~PyTypeObject.tp_vectorcall_offset`" +msgstr ":c:member:`~PyTypeObject.tp_vectorcall_offset`" + +msgid "(:c:member:`~PyTypeObject.tp_getattr`)" +msgstr "(:c:member:`~PyTypeObject.tp_getattr`)" + +msgid ":c:type:`getattrfunc`" +msgstr ":c:type:`getattrfunc`" + +msgid "__getattribute__, __getattr__" +msgstr "__getattribute__, __getattr__" + +msgid "G" +msgstr "G" + +msgid "(:c:member:`~PyTypeObject.tp_setattr`)" +msgstr "(:c:member:`~PyTypeObject.tp_setattr`)" + +msgid ":c:type:`setattrfunc`" +msgstr ":c:type:`setattrfunc`" + +msgid "__setattr__, __delattr__" +msgstr "__setattr__, __delattr__" + +msgid ":c:member:`~PyTypeObject.tp_as_async`" +msgstr ":c:member:`~PyTypeObject.tp_as_async`" + +msgid ":c:type:`PyAsyncMethods` *" +msgstr ":c:type:`PyAsyncMethods` *" + +msgid ":ref:`sub-slots`" +msgstr ":ref:`sub-slots`" + +msgid "%" +msgstr "%" + +msgid ":c:member:`~PyTypeObject.tp_repr`" +msgstr ":c:member:`~PyTypeObject.tp_repr`" + +msgid ":c:type:`reprfunc`" +msgstr ":c:type:`reprfunc`" + +msgid "__repr__" +msgstr "__repr__" + +msgid ":c:member:`~PyTypeObject.tp_as_number`" +msgstr ":c:member:`~PyTypeObject.tp_as_number`" + +msgid ":c:type:`PyNumberMethods` *" +msgstr ":c:type:`PyNumberMethods` *" + +msgid ":c:member:`~PyTypeObject.tp_as_sequence`" +msgstr ":c:member:`~PyTypeObject.tp_as_sequence`" + +msgid ":c:type:`PySequenceMethods` *" +msgstr ":c:type:`PySequenceMethods` *" + +msgid ":c:member:`~PyTypeObject.tp_as_mapping`" +msgstr ":c:member:`~PyTypeObject.tp_as_mapping`" + +msgid ":c:type:`PyMappingMethods` *" +msgstr ":c:type:`PyMappingMethods` *" + +msgid ":c:member:`~PyTypeObject.tp_hash`" +msgstr ":c:member:`~PyTypeObject.tp_hash`" + +msgid ":c:type:`hashfunc`" +msgstr ":c:type:`hashfunc`" + +msgid "__hash__" +msgstr "__hash__" + +msgid ":c:member:`~PyTypeObject.tp_call`" +msgstr ":c:member:`~PyTypeObject.tp_call`" + +msgid ":c:type:`ternaryfunc`" +msgstr ":c:type:`ternaryfunc`" + +msgid "__call__" +msgstr "__call__" + +msgid ":c:member:`~PyTypeObject.tp_str`" +msgstr ":c:member:`~PyTypeObject.tp_str`" + +msgid "__str__" +msgstr "__str__" + +msgid ":c:member:`~PyTypeObject.tp_getattro`" +msgstr ":c:member:`~PyTypeObject.tp_getattro`" + +msgid ":c:type:`getattrofunc`" +msgstr ":c:type:`getattrofunc`" + +msgid ":c:member:`~PyTypeObject.tp_setattro`" +msgstr ":c:member:`~PyTypeObject.tp_setattro`" + +msgid ":c:type:`setattrofunc`" +msgstr ":c:type:`setattrofunc`" + +msgid ":c:member:`~PyTypeObject.tp_as_buffer`" +msgstr ":c:member:`~PyTypeObject.tp_as_buffer`" + +msgid ":c:type:`PyBufferProcs` *" +msgstr ":c:type:`PyBufferProcs` *" + +msgid ":c:member:`~PyTypeObject.tp_flags`" +msgstr ":c:member:`~PyTypeObject.tp_flags`" + +msgid "unsigned long" +msgstr "nieoznaczony typ długi" + +msgid "?" +msgstr "?" + +msgid ":c:member:`~PyTypeObject.tp_doc`" +msgstr ":c:member:`~PyTypeObject.tp_doc`" + +msgid "__doc__" +msgstr "__doc__" + +msgid ":c:member:`~PyTypeObject.tp_traverse`" +msgstr ":c:member:`~PyTypeObject.tp_traverse`" + +msgid ":c:type:`traverseproc`" +msgstr ":c:type:`traverseproc`" + +msgid ":c:member:`~PyTypeObject.tp_clear`" +msgstr ":c:member:`~PyTypeObject.tp_clear`" + +msgid ":c:type:`inquiry`" +msgstr ":c:type:`inquiry`" + +msgid ":c:member:`~PyTypeObject.tp_richcompare`" +msgstr ":c:member:`~PyTypeObject.tp_richcompare`" + +msgid ":c:type:`richcmpfunc`" +msgstr ":c:type:`richcmpfunc`" + +msgid "__lt__, __le__, __eq__, __ne__, __gt__, __ge__" +msgstr "__lt__, __le__, __eq__, __ne__, __gt__, __ge__" + +msgid ":c:member:`~PyTypeObject.tp_weaklistoffset`" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_iter`" +msgstr ":c:member:`~PyTypeObject.tp_iter`" + +msgid ":c:type:`getiterfunc`" +msgstr ":c:type:`getiterfunc`" + +msgid "__iter__" +msgstr "__iter__" + +msgid ":c:member:`~PyTypeObject.tp_iternext`" +msgstr ":c:member:`~PyTypeObject.tp_iternext`" + +msgid ":c:type:`iternextfunc`" +msgstr ":c:type:`iternextfunc`" + +msgid "__next__" +msgstr "__next__" + +msgid ":c:member:`~PyTypeObject.tp_methods`" +msgstr ":c:member:`~PyTypeObject.tp_methods`" + +msgid ":c:type:`PyMethodDef` []" +msgstr ":c:type:`PyMethodDef` []" + +msgid ":c:member:`~PyTypeObject.tp_members`" +msgstr ":c:member:`~PyTypeObject.tp_members`" + +msgid ":c:type:`PyMemberDef` []" +msgstr ":c:type:`PyMemberDef` []" + +msgid ":c:member:`~PyTypeObject.tp_getset`" +msgstr ":c:member:`~PyTypeObject.tp_getset`" + +msgid ":c:type:`PyGetSetDef` []" +msgstr ":c:type:`PyGetSetDef` []" + +msgid ":c:member:`~PyTypeObject.tp_base`" +msgstr ":c:member:`~PyTypeObject.tp_base`" + +msgid ":c:type:`PyTypeObject` *" +msgstr ":c:type:`PyTypeObject` *" + +msgid "__base__" +msgstr "__base__" + +msgid ":c:member:`~PyTypeObject.tp_dict`" +msgstr ":c:member:`~PyTypeObject.tp_dict`" + +msgid ":c:type:`PyObject` *" +msgstr ":c:type:`PyObject` *" + +msgid "__dict__" +msgstr "__dict__" + +msgid ":c:member:`~PyTypeObject.tp_descr_get`" +msgstr ":c:member:`~PyTypeObject.tp_descr_get`" + +msgid ":c:type:`descrgetfunc`" +msgstr ":c:type:`descrgetfunc`" + +msgid "__get__" +msgstr "__get__" + +msgid ":c:member:`~PyTypeObject.tp_descr_set`" +msgstr ":c:member:`~PyTypeObject.tp_descr_set`" + +msgid ":c:type:`descrsetfunc`" +msgstr ":c:type:`descrsetfunc`" + +msgid "__set__, __delete__" +msgstr "__set__, __delete__" + +msgid ":c:member:`~PyTypeObject.tp_dictoffset`" +msgstr "" + +msgid ":c:member:`~PyTypeObject.tp_init`" +msgstr ":c:member:`~PyTypeObject.tp_init`" + +msgid ":c:type:`initproc`" +msgstr ":c:type:`initproc`" + +msgid "__init__" +msgstr "__init__" + +msgid ":c:member:`~PyTypeObject.tp_alloc`" +msgstr ":c:member:`~PyTypeObject.tp_alloc`" + +msgid ":c:type:`allocfunc`" +msgstr ":c:type:`allocfunc`" + +msgid ":c:member:`~PyTypeObject.tp_new`" +msgstr ":c:member:`~PyTypeObject.tp_new`" + +msgid ":c:type:`newfunc`" +msgstr ":c:type:`newfunc`" + +msgid "__new__" +msgstr "__new__" + +msgid ":c:member:`~PyTypeObject.tp_free`" +msgstr ":c:member:`~PyTypeObject.tp_free`" + +msgid ":c:type:`freefunc`" +msgstr ":c:type:`freefunc`" + +msgid ":c:member:`~PyTypeObject.tp_is_gc`" +msgstr ":c:member:`~PyTypeObject.tp_is_gc`" + +msgid "<:c:member:`~PyTypeObject.tp_bases`>" +msgstr "<:c:member:`~PyTypeObject.tp_bases`>" + +msgid "__bases__" +msgstr "__bases__" + +msgid "~" +msgstr "~" + +msgid "<:c:member:`~PyTypeObject.tp_mro`>" +msgstr "<:c:member:`~PyTypeObject.tp_mro`>" + +msgid "__mro__" +msgstr "__mro__" + +msgid "[:c:member:`~PyTypeObject.tp_cache`]" +msgstr "[:c:member:`~PyTypeObject.tp_cache`]" + +msgid "[:c:member:`~PyTypeObject.tp_subclasses`]" +msgstr "[:c:member:`~PyTypeObject.tp_subclasses`]" + +msgid "__subclasses__" +msgstr "__subclasses__" + +msgid "[:c:member:`~PyTypeObject.tp_weaklist`]" +msgstr "[:c:member:`~PyTypeObject.tp_weaklist`]" + +msgid "(:c:member:`~PyTypeObject.tp_del`)" +msgstr "(:c:member:`~PyTypeObject.tp_del`)" + +msgid "[:c:member:`~PyTypeObject.tp_version_tag`]" +msgstr "[:c:member:`~PyTypeObject.tp_version_tag`]" + +msgid "unsigned int" +msgstr "nieoznaczony typ int" + +msgid ":c:member:`~PyTypeObject.tp_finalize`" +msgstr ":c:member:`~PyTypeObject.tp_finalize`" + +msgid "__del__" +msgstr "__del__" + +msgid ":c:member:`~PyTypeObject.tp_vectorcall`" +msgstr ":c:member:`~PyTypeObject.tp_vectorcall`" + +msgid ":c:type:`vectorcallfunc`" +msgstr ":c:type:`vectorcallfunc`" + +msgid "" +"**()**: A slot name in parentheses indicates it is (effectively) deprecated." +msgstr "" +"**()**: Nazwa slotu w nawiasach oznacza, że ​​jest on (faktycznie) " +"przestarzały." + +msgid "" +"**<>**: Names in angle brackets should be initially set to ``NULL`` and " +"treated as read-only." +msgstr "" +"**<>**: Nazwy w nawiasach kątowych powinny być początkowo ustawione na " +"``NULL`` i traktowane jako tylko do odczytu." + +msgid "**[]**: Names in square brackets are for internal use only." +msgstr "" +"**[]**: Nazwy w nawiasach kwadratowych są przeznaczone wyłącznie do użytku " +"wewnętrznego." + +msgid "" +"**** (as a prefix) means the field is required (must be non-``NULL``)." +msgstr "" +"**** (jako prefiks) oznacza, że ​​pole jest wymagane (nie może być wartością " +"``NULL``)." + +msgid "Columns:" +msgstr "Kolumny:" + +msgid "**\"O\"**: set on :c:type:`PyBaseObject_Type`" +msgstr "" + +msgid "**\"T\"**: set on :c:type:`PyType_Type`" +msgstr "" + +msgid "**\"D\"**: default (if slot is set to ``NULL``)" +msgstr "**\"D\"**: domyślne (jeśli slot jest ustawiony na ``NULL``)" + +msgid "**\"I\"**: inheritance" +msgstr "**\"I\"**: dziedziczenie" + +msgid "" +"Note that some slots are effectively inherited through the normal attribute " +"lookup chain." +msgstr "" +"Należy pamiętać, że niektóre sloty są skutecznie dziedziczone poprzez " +"normalny łańcuch wyszukiwania atrybutów." + +msgid "sub-slots" +msgstr "sub-slots" + +msgid "Slot" +msgstr "Szczelina" + +msgid "special methods" +msgstr "metody specjalne" + +msgid ":c:member:`~PyAsyncMethods.am_await`" +msgstr ":c:member:`~PyAsyncMethods.am_await`" + +msgid ":c:type:`unaryfunc`" +msgstr ":c:type:`unaryfunc`" + +msgid "__await__" +msgstr "__await__" + +msgid ":c:member:`~PyAsyncMethods.am_aiter`" +msgstr ":c:member:`~PyAsyncMethods.am_aiter`" + +msgid "__aiter__" +msgstr "__aiter__" + +msgid ":c:member:`~PyAsyncMethods.am_anext`" +msgstr ":c:member:`~PyAsyncMethods.am_anext`" + +msgid "__anext__" +msgstr "__anext__" + +msgid ":c:member:`~PyAsyncMethods.am_send`" +msgstr ":c:member:`~PyAsyncMethods.am_send`" + +msgid ":c:type:`sendfunc`" +msgstr ":c:type:`sendfunc`" + +msgid ":c:member:`~PyNumberMethods.nb_add`" +msgstr ":c:member:`~PyNumberMethods.nb_add`" + +msgid ":c:type:`binaryfunc`" +msgstr ":c:type:`binaryfunc`" + +msgid "__add__ __radd__" +msgstr "__add__ __radd__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_add`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_add`" + +msgid "__iadd__" +msgstr "__iadd__" + +msgid ":c:member:`~PyNumberMethods.nb_subtract`" +msgstr ":c:member:`~PyNumberMethods.nb_subtract`" + +msgid "__sub__ __rsub__" +msgstr "__sub__ __rsub__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_subtract`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_subtract`" + +msgid "__isub__" +msgstr "__isub__" + +msgid ":c:member:`~PyNumberMethods.nb_multiply`" +msgstr ":c:member:`~PyNumberMethods.nb_multiply`" + +msgid "__mul__ __rmul__" +msgstr "__mul__ __rmul__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_multiply`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_multiply`" + +msgid "__imul__" +msgstr "__imul__" + +msgid ":c:member:`~PyNumberMethods.nb_remainder`" +msgstr ":c:member:`~PyNumberMethods.nb_remainder`" + +msgid "__mod__ __rmod__" +msgstr "__mod__ __rmod__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_remainder`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_remainder`" + +msgid "__imod__" +msgstr "__imod__" + +msgid ":c:member:`~PyNumberMethods.nb_divmod`" +msgstr ":c:member:`~PyNumberMethods.nb_divmod`" + +msgid "__divmod__ __rdivmod__" +msgstr "__divmod__ __rdivmod__" + +msgid ":c:member:`~PyNumberMethods.nb_power`" +msgstr ":c:member:`~PyNumberMethods.nb_power`" + +msgid "__pow__ __rpow__" +msgstr "__pow__ __rpow__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_power`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_power`" + +msgid "__ipow__" +msgstr "__ipow__" + +msgid ":c:member:`~PyNumberMethods.nb_negative`" +msgstr ":c:member:`~PyNumberMethods.nb_negative`" + +msgid "__neg__" +msgstr "__neg__" + +msgid ":c:member:`~PyNumberMethods.nb_positive`" +msgstr ":c:member:`~PyNumberMethods.nb_positive`" + +msgid "__pos__" +msgstr "__pos__" + +msgid ":c:member:`~PyNumberMethods.nb_absolute`" +msgstr ":c:member:`~PyNumberMethods.nb_absolute`" + +msgid "__abs__" +msgstr "__abs__" + +msgid ":c:member:`~PyNumberMethods.nb_bool`" +msgstr ":c:member:`~PyNumberMethods.nb_bool`" + +msgid "__bool__" +msgstr "__bool__" + +msgid ":c:member:`~PyNumberMethods.nb_invert`" +msgstr ":c:member:`~PyNumberMethods.nb_invert`" + +msgid "__invert__" +msgstr "__invert__" + +msgid ":c:member:`~PyNumberMethods.nb_lshift`" +msgstr ":c:member:`~PyNumberMethods.nb_lshift`" + +msgid "__lshift__ __rlshift__" +msgstr "__lshift__ __rlshift__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_lshift`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_lshift`" + +msgid "__ilshift__" +msgstr "__ilshift__" + +msgid ":c:member:`~PyNumberMethods.nb_rshift`" +msgstr ":c:member:`~PyNumberMethods.nb_rshift`" + +msgid "__rshift__ __rrshift__" +msgstr "__rshift__ __rrshift__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_rshift`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_rshift`" + +msgid "__irshift__" +msgstr "__irshift__" + +msgid ":c:member:`~PyNumberMethods.nb_and`" +msgstr ":c:member:`~PyNumberMethods.nb_and`" + +msgid "__and__ __rand__" +msgstr "__and__ __rand__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_and`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_and`" + +msgid "__iand__" +msgstr "__iand__" + +msgid ":c:member:`~PyNumberMethods.nb_xor`" +msgstr ":c:member:`~PyNumberMethods.nb_xor`" + +msgid "__xor__ __rxor__" +msgstr "__xor__ __rxor__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_xor`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_xor`" + +msgid "__ixor__" +msgstr "__ixor__" + +msgid ":c:member:`~PyNumberMethods.nb_or`" +msgstr ":c:member:`~PyNumberMethods.nb_or`" + +msgid "__or__ __ror__" +msgstr "__or__ __ror__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_or`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_or`" + +msgid "__ior__" +msgstr "__ior__" + +msgid ":c:member:`~PyNumberMethods.nb_int`" +msgstr ":c:member:`~PyNumberMethods.nb_int`" + +msgid "__int__" +msgstr "__int__" + +msgid ":c:member:`~PyNumberMethods.nb_reserved`" +msgstr ":c:member:`~PyNumberMethods.nb_reserved`" + +msgid "void *" +msgstr "próżnia *" + +msgid ":c:member:`~PyNumberMethods.nb_float`" +msgstr ":c:member:`~PyNumberMethods.nb_float`" + +msgid "__float__" +msgstr "__float__" + +msgid ":c:member:`~PyNumberMethods.nb_floor_divide`" +msgstr ":c:member:`~PyNumberMethods.nb_floor_divide`" + +msgid "__floordiv__" +msgstr "__floordiv__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_floor_divide`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_floor_divide`" + +msgid "__ifloordiv__" +msgstr "__ifloordiv__" + +msgid ":c:member:`~PyNumberMethods.nb_true_divide`" +msgstr ":c:member:`~PyNumberMethods.nb_true_divide`" + +msgid "__truediv__" +msgstr "__truediv__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_true_divide`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_true_divide`" + +msgid "__itruediv__" +msgstr "__itruediv__" + +msgid ":c:member:`~PyNumberMethods.nb_index`" +msgstr ":c:member:`~PyNumberMethods.nb_index`" + +msgid "__index__" +msgstr "__index__" + +msgid ":c:member:`~PyNumberMethods.nb_matrix_multiply`" +msgstr ":c:member:`~PyNumberMethods.nb_matrix_multiply`" + +msgid "__matmul__ __rmatmul__" +msgstr "__matmul__ __rmatmul__" + +msgid ":c:member:`~PyNumberMethods.nb_inplace_matrix_multiply`" +msgstr ":c:member:`~PyNumberMethods.nb_inplace_matrix_multiply`" + +msgid "__imatmul__" +msgstr "__imatmul__" + +msgid ":c:member:`~PyMappingMethods.mp_length`" +msgstr ":c:member:`~PyMappingMethods.mp_length`" + +msgid ":c:type:`lenfunc`" +msgstr ":c:type:`lenfunc`" + +msgid "__len__" +msgstr "__len__" + +msgid ":c:member:`~PyMappingMethods.mp_subscript`" +msgstr ":c:member:`~PyMappingMethods.mp_subscript`" + +msgid "__getitem__" +msgstr "__getitem__" + +msgid ":c:member:`~PyMappingMethods.mp_ass_subscript`" +msgstr ":c:member:`~PyMappingMethods.mp_ass_subscript`" + +msgid ":c:type:`objobjargproc`" +msgstr ":c:type:`objobjargproc`" + +msgid "__setitem__, __delitem__" +msgstr "__setitem__, __delitem__" + +msgid ":c:member:`~PySequenceMethods.sq_length`" +msgstr ":c:member:`~PySequenceMethods.sq_length`" + +msgid ":c:member:`~PySequenceMethods.sq_concat`" +msgstr ":c:member:`~PySequenceMethods.sq_concat`" + +msgid "__add__" +msgstr "__add__" + +msgid ":c:member:`~PySequenceMethods.sq_repeat`" +msgstr ":c:member:`~PySequenceMethods.sq_repeat`" + +msgid ":c:type:`ssizeargfunc`" +msgstr ":c:type:`ssizeargfunc`" + +msgid "__mul__" +msgstr "__mul__" + +msgid ":c:member:`~PySequenceMethods.sq_item`" +msgstr ":c:member:`~PySequenceMethods.sq_item`" + +msgid ":c:member:`~PySequenceMethods.sq_ass_item`" +msgstr ":c:member:`~PySequenceMethods.sq_ass_item`" + +msgid ":c:type:`ssizeobjargproc`" +msgstr ":c:type:`ssizeobjargproc`" + +msgid "__setitem__ __delitem__" +msgstr "__setitem__ __delitem__" + +msgid ":c:member:`~PySequenceMethods.sq_contains`" +msgstr ":c:member:`~PySequenceMethods.sq_contains`" + +msgid ":c:type:`objobjproc`" +msgstr ":c:type:`objobjproc`" + +msgid "__contains__" +msgstr "__contains__" + +msgid ":c:member:`~PySequenceMethods.sq_inplace_concat`" +msgstr ":c:member:`~PySequenceMethods.sq_inplace_concat`" + +msgid ":c:member:`~PySequenceMethods.sq_inplace_repeat`" +msgstr ":c:member:`~PySequenceMethods.sq_inplace_repeat`" + +msgid ":c:member:`~PyBufferProcs.bf_getbuffer`" +msgstr ":c:member:`~PyBufferProcs.bf_getbuffer`" + +msgid ":c:func:`getbufferproc`" +msgstr ":c:func:`getbufferproc`" + +msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`" +msgstr ":c:member:`~PyBufferProcs.bf_releasebuffer`" + +msgid ":c:func:`releasebufferproc`" +msgstr ":c:func:`releasebufferproc`" + +msgid "slot typedefs" +msgstr "definicje typów gniazd" + +msgid "typedef" +msgstr "typedef" + +msgid "Parameter Types" +msgstr "Typy parametrów" + +msgid "Return Type" +msgstr "Typ zwracany" + +msgid "void" +msgstr "próżnia" + +msgid ":c:type:`visitproc`" +msgstr ":c:type:`visitproc`" + +msgid "int" +msgstr "int" + +msgid "Py_hash_t" +msgstr "Py_hash_t" + +msgid ":c:type:`getbufferproc`" +msgstr ":c:type:`getbufferproc`" + +msgid ":c:type:`Py_buffer` *" +msgstr ":c:type:`Py_buffer` *" + +msgid ":c:type:`releasebufferproc`" +msgstr ":c:type:`releasebufferproc`" + +msgid "See :ref:`slot-typedefs` below for more detail." +msgstr "Więcej szczegółów znajdziesz poniżej w :ref:`slot-typedefs`." + +msgid "PyTypeObject Definition" +msgstr "Definicja obiektu PyTypeObject" + +msgid "" +"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 "" + +msgid "PyObject Slots" +msgstr "Sloty PyObject" + +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." +msgstr "" + +msgid "" +"This is the type object's reference count, initialized to ``1`` by the " +"``PyObject_HEAD_INIT`` macro. Note that for :ref:`statically allocated type " +"objects `, the type's instances (objects whose :attr:`ob_type` " +"points back to the type) do *not* count as references. But " +"for :ref:`dynamically allocated type objects `, the instances " +"*do* count as references." +msgstr "" + +msgid "**Inheritance:**" +msgstr "**Dziedzictwo:**" + +msgid "This field is not inherited by subtypes." +msgstr "To pole nie jest dziedziczone przez podtypy." + +msgid "" +"This is the type's type, in other words its metatype. It is initialized by " +"the argument to the ``PyObject_HEAD_INIT`` macro, and its value should " +"normally be ``&PyType_Type``. However, for dynamically loadable extension " +"modules that must be usable on Windows (at least), the compiler complains " +"that this is not a valid initializer. Therefore, the convention is to pass " +"``NULL`` to the ``PyObject_HEAD_INIT`` macro and to initialize this field " +"explicitly at the start of the module's initialization function, before " +"doing anything else. This is typically done like this::" +msgstr "" +"To jest typ typu, innymi słowy jego metatyp. Jest on inicjowany przez " +"argument makra ``PyObject_HEAD_INIT``, a jego wartość powinna normalnie " +"wynosić ``&PyType_Type``. Jednak w przypadku dynamicznie ładowalnych modułów " +"rozszerzeń, które muszą działać w systemie Windows (przynajmniej), " +"kompilator zgłasza, że ​​nie jest to prawidłowy inicjator. Dlatego przyjętą " +"konwencją jest przekazywanie ``NULL`` do makra ``PyObject_HEAD_INIT`` i " +"jawne inicjowanie tego pola na początku funkcji inicjującej modułu, przed " +"wykonaniem jakichkolwiek innych czynności. Zazwyczaj robi się to w " +"następujący sposób:" + +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." +msgstr "" + +msgid "This field is inherited by subtypes." +msgstr "To pole jest dziedziczone przez podtypy." + +msgid "" +"These fields are only present when the macro ``Py_TRACE_REFS`` is defined " +"(see the :option:`configure --with-trace-refs option <--with-trace-refs>`)." +msgstr "" + +msgid "" +"Their initialization to ``NULL`` is taken care of by the " +"``PyObject_HEAD_INIT`` macro. For :ref:`statically allocated objects " +"`, these fields always remain ``NULL``. For :ref:`dynamically " +"allocated objects `, these two fields are used to link the " +"object into a doubly linked list of *all* live objects on the heap." +msgstr "" + +msgid "" +"This could be used for various debugging purposes; currently the only uses " +"are the :func:`sys.getobjects` function and to print the objects that are " +"still alive at the end of a run when the environment " +"variable :envvar:`PYTHONDUMPREFS` is set." +msgstr "" + +msgid "These fields are not inherited by subtypes." +msgstr "" + +msgid "PyVarObject Slots" +msgstr "Sloty PyVarObject" + +msgid "" +"For :ref:`statically allocated type objects `, this should be " +"initialized to zero. For :ref:`dynamically allocated type objects `, this field has a special internal meaning." +msgstr "" +"W przypadku obiektów typu :ref:`statycznie przydzielanych`, pole to powinno " +"zostać zainicjowane zerem. W przypadku obiektów typu :ref:`dynamicznie " +"przydzielanych`, pole to ma specjalne znaczenie wewnętrzne." + +msgid "PyTypeObject Slots" +msgstr "Sloty PyTypeObject" + +msgid "" +"Each slot has a section describing inheritance. If :c:func:`PyType_Ready` " +"may set a value when the field is set to ``NULL`` then there will also be a " +"\"Default\" section. (Note that many fields set " +"on :c:type:`PyBaseObject_Type` and :c:type:`PyType_Type` effectively act as " +"defaults.)" +msgstr "" + +msgid "" +"Pointer to a NUL-terminated string containing the name of the type. For " +"types that are accessible as module globals, the string should be the full " +"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\"``." +msgstr "" + +msgid "" +"For :ref:`dynamically allocated type objects `, this should just " +"be the type name, and the module name explicitly stored in the type dict as " +"the value for key ``'__module__'``." +msgstr "" +"W przypadku :ref:`obiektów typu przydzielanych dynamicznie` powinna to być " +"po prostu nazwa typu i nazwa modułu jawnie zapisane w słowniku typów jako " +"wartość klucza ``'__module__'``." + +msgid "" +"For :ref:`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." +msgstr "" + +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 " +"created with pydoc." +msgstr "" + +msgid "" +"This field must not be ``NULL``. It is the only required field " +"in :c:func:`PyTypeObject` (other than " +"potentially :c:member:`~PyTypeObject.tp_itemsize`)." +msgstr "" +"To pole nie może mieć wartości ``NULL``. Jest to jedyne wymagane pole " +"w :c:func:`PyTypeObject` (oprócz " +"potencjalnie :c:member:`~PyTypeObject.tp_itemsize`)." + +msgid "" +"These fields allow calculating the size in bytes of instances of the type." +msgstr "" +"Pola te umożliwiają obliczenie rozmiaru instancji danego typu w bajtach." + +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 " +"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`." +msgstr "" + +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 " +"``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 " +"instances, yet those instances have a meaningful :attr:`ob_size` field)." +msgstr "" + +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." +msgstr "" + +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``)." +msgstr "" + +msgid "" +"For any type with variable-length instances, this field must not be ``NULL``." +msgstr "" + +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)." +msgstr "" + +msgid "" +"A pointer to the instance destructor function. This function must be " +"defined unless the type guarantees that its instances will never be " +"deallocated (as is the case for the singletons ``None`` and ``Ellipsis``). " +"The function signature is::" +msgstr "" + +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 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 "" + +msgid "" +"If the type supports garbage collection (has the :const:`Py_TPFLAGS_HAVE_GC` " +"flag bit set), the destructor should call :c:func:`PyObject_GC_UnTrack` " +"before clearing any member fields." +msgstr "" + +msgid "" +"Finally, if the type is heap allocated (:const:`Py_TPFLAGS_HEAPTYPE`), the " +"deallocator should release the owned reference to its type object " +"(via :c:func:`Py_DECREF`) after calling the type deallocator. In order to " +"avoid dangling pointers, the recommended way to achieve this is:" +msgstr "" + +msgid "" +"An optional offset to a per-instance function that implements calling the " +"object using the :ref:`vectorcall protocol `, a more efficient " +"alternative of the simpler :c:member:`~PyTypeObject.tp_call`." +msgstr "" + +msgid "" +"This field is only used if the flag :const:`Py_TPFLAGS_HAVE_VECTORCALL` is " +"set. If so, this must be a positive integer containing the offset in the " +"instance of a :c:type:`vectorcallfunc` pointer." +msgstr "" + +msgid "" +"The *vectorcallfunc* pointer may be ``NULL``, in which case the instance " +"behaves as if :const:`Py_TPFLAGS_HAVE_VECTORCALL` was not set: calling the " +"instance falls back to :c:member:`~PyTypeObject.tp_call`." +msgstr "" + +msgid "" +"Any class that sets ``Py_TPFLAGS_HAVE_VECTORCALL`` must also " +"set :c:member:`~PyTypeObject.tp_call` and make sure its behaviour is " +"consistent with the *vectorcallfunc* function. This can be done by setting " +"*tp_call* to :c:func:`PyVectorcall_Call`." +msgstr "" + +msgid "" +"It is not recommended for :ref:`heap types ` to implement the " +"vectorcall protocol. When a user sets :attr:`__call__` in Python code, only " +"*tp_call* is updated, likely making it inconsistent with the vectorcall " +"function." +msgstr "" + +msgid "" +"Before version 3.8, this slot was named ``tp_print``. In Python 2.x, it was " +"used for printing to a file. In Python 3.0 to 3.7, it was unused." +msgstr "" + +msgid "" +"This field is always inherited. However, " +"the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag is not always inherited. If " +"it's not, then the subclass won't use :ref:`vectorcall `, except " +"when :c:func:`PyVectorcall_Call` is explicitly called. This is in particular " +"the case for :ref:`heap types ` (including subclasses defined in " +"Python)." +msgstr "" + +msgid "An optional pointer to the get-attribute-string function." +msgstr "" + +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, " +"but taking a C string instead of a Python string object to give the " +"attribute name." +msgstr "" + +msgid "Group: :attr:`tp_getattr`, :attr:`tp_getattro`" +msgstr "" + +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``." +msgstr "" + +msgid "" +"An optional pointer to the function for setting and deleting attributes." +msgstr "" + +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, " +"but taking a C string instead of a Python string object to give the " +"attribute name." +msgstr "" + +msgid "Group: :attr:`tp_setattr`, :attr:`tp_setattro`" +msgstr "" + +msgid "" +"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``." +msgstr "" + +msgid "" +"Pointer to an additional structure that contains fields relevant only to " +"objects which implement :term:`awaitable` and :term:`asynchronous iterator` " +"protocols at the C-level. See :ref:`async-structs` for details." +msgstr "" + +msgid "Formerly known as ``tp_compare`` and ``tp_reserved``." +msgstr "" + +msgid "" +"The :c:member:`~PyTypeObject.tp_as_async` field is not inherited, but the " +"contained fields are inherited individually." +msgstr "" + +msgid "" +"An optional pointer to a function that implements the built-in " +"function :func:`repr`." +msgstr "" + +msgid "The signature is the same as for :c:func:`PyObject_Repr`::" +msgstr "" + +msgid "" +"The function must return a string or a Unicode object. Ideally, this " +"function should return a string that, when passed to :func:`eval`, given a " +"suitable environment, returns an object with the same value. If this is not " +"feasible, it should return a string starting with ``'<'`` and ending with " +"``'>'`` from which both the type and the value of the object can be deduced." +msgstr "" + +msgid "**Default:**" +msgstr "" + +msgid "" +"When this field is not set, a string of the form ``<%s object at %p>`` is " +"returned, where ``%s`` is replaced by the type name, and ``%p`` by the " +"object's memory address." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The :c:member:`~PyTypeObject.tp_as_number` field is not inherited, but the " +"contained fields are inherited individually." +msgstr "" + +msgid "" +"Pointer to an additional structure that contains fields relevant only to " +"objects which implement the sequence protocol. These fields are documented " +"in :ref:`sequence-structs`." +msgstr "" + +msgid "" +"The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the " +"contained fields are inherited individually." +msgstr "" + +msgid "" +"Pointer to an additional structure that contains fields relevant only to " +"objects which implement the mapping protocol. These fields are documented " +"in :ref:`mapping-structs`." +msgstr "" + +msgid "" +"The :c:member:`~PyTypeObject.tp_as_mapping` field is not inherited, but the " +"contained fields are inherited individually." +msgstr "" + +msgid "" +"An optional pointer to a function that implements the built-in " +"function :func:`hash`." +msgstr "" + +msgid "The signature is the same as for :c:func:`PyObject_Hash`::" +msgstr "" + +msgid "" +"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``." +msgstr "" + +msgid "" +"When this field is not set (*and* :attr:`tp_richcompare` is not set), an " +"attempt to take the hash of the object raises :exc:`TypeError`. This is the " +"same as setting it to :c:func:`PyObject_HashNotImplemented`." +msgstr "" + +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`." +msgstr "" + +msgid "Group: :attr:`tp_hash`, :attr:`tp_richcompare`" +msgstr "" + +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``." +msgstr "" + +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`::" +msgstr "" + +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.)" +msgstr "" + +msgid "The signature is the same as for :c:func:`PyObject_Str`::" +msgstr "" + +msgid "" +"The function must return a string or a Unicode object. It should be a " +"\"friendly\" string representation of the object, as this is the " +"representation that will be used, among other things, by the :func:`print` " +"function." +msgstr "" + +msgid "" +"When this field is not set, :c:func:`PyObject_Repr` is called to return a " +"string representation." +msgstr "" + +msgid "An optional pointer to the get-attribute function." +msgstr "" + +msgid "The signature is the same as for :c:func:`PyObject_GetAttr`::" +msgstr "" + +msgid "" +"It is usually convenient to set this field " +"to :c:func:`PyObject_GenericGetAttr`, which implements the normal way of " +"looking for object attributes." +msgstr "" + +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``." +msgstr "" + +msgid ":c:type:`PyBaseObject_Type` uses :c:func:`PyObject_GenericGetAttr`." +msgstr "" + +msgid "The signature is the same as for :c:func:`PyObject_SetAttr`::" +msgstr "" + +msgid "" +"In addition, setting *value* 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 "" + +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``." +msgstr "" + +msgid ":c:type:`PyBaseObject_Type` uses :c:func:`PyObject_GenericSetAttr`." +msgstr "" + +msgid "" +"Pointer to an additional structure that contains fields relevant only to " +"objects which implement the buffer interface. These fields are documented " +"in :ref:`buffer-structs`." +msgstr "" + +msgid "" +"The :c:member:`~PyTypeObject.tp_as_buffer` field is not inherited, but the " +"contained fields are inherited individually." +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +":c:type:`PyBaseObject_Type` uses ``Py_TPFLAGS_DEFAULT | " +"Py_TPFLAGS_BASETYPE``." +msgstr "" + +msgid "**Bit Masks:**" +msgstr "" + +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." +msgstr "" + +msgid "" +"This bit is set when the type object itself is allocated on the heap, for " +"example, types created dynamically using :c:func:`PyType_FromSpec`. 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)." +msgstr "" + +msgid "???" +msgstr "???" + +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\" " +"class in Java)." +msgstr "" + +msgid "" +"This bit is set when the type object has been fully initialized " +"by :c:func:`PyType_Ready`." +msgstr "" + +msgid "" +"This bit is set while :c:func:`PyType_Ready` is in the process of " +"initializing the type object." +msgstr "" + +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." +msgstr "" + +msgid "Group: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`" +msgstr "" + +msgid "" +"The :const:`Py_TPFLAGS_HAVE_GC` flag bit is inherited together with " +"the :attr:`tp_traverse` and :attr:`tp_clear` fields, i.e. if " +"the :const:`Py_TPFLAGS_HAVE_GC` flag bit is clear in the subtype and " +"the :attr:`tp_traverse` and :attr:`tp_clear` fields in the subtype exist and " +"have ``NULL`` values." +msgstr "" + +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`." +msgstr "" + +msgid "This bit indicates that objects behave like unbound methods." +msgstr "" + +msgid "If this flag is set for ``type(meth)``, then:" +msgstr "" + +msgid "" +"``meth.__get__(obj, cls)(*args, **kwds)`` (with ``obj`` not None) must be " +"equivalent to ``meth(obj, *args, **kwds)``." +msgstr "" + +msgid "" +"``meth.__get__(None, cls)(*args, **kwds)`` must be equivalent to " +"``meth(*args, **kwds)``." +msgstr "" + +msgid "" +"This flag enables an optimization for typical method calls like " +"``obj.meth()``: it avoids creating a temporary \"bound method\" object for " +"``obj.meth``." +msgstr "" + +msgid "" +"This flag is never inherited by :ref:`heap types `. For " +"extension types, it is inherited " +"whenever :c:member:`~PyTypeObject.tp_descr_get` is inherited." +msgstr "" + +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." +msgstr "" + +msgid "" +"This bit is set when the :c:member:`~PyTypeObject.tp_finalize` slot is " +"present in the type structure." +msgstr "" + +msgid "" +"This flag isn't necessary anymore, as the interpreter assumes " +"the :c:member:`~PyTypeObject.tp_finalize` slot is always present in the type " +"structure." +msgstr "" + +msgid "" +"This bit is set when the class implements the :ref:`vectorcall protocol " +"`. See :c:member:`~PyTypeObject.tp_vectorcall_offset` for " +"details." +msgstr "" + +msgid "" +"This bit is inherited for :ref:`static subtypes ` " +"if :c:member:`~PyTypeObject.tp_call` is also inherited. :ref:`Heap types " +"` do not inherit ``Py_TPFLAGS_HAVE_VECTORCALL``." +msgstr "" + +msgid "" +"This bit is set for type objects that are immutable: type attributes cannot " +"be set nor deleted." +msgstr "" + +msgid "" +":c:func:`PyType_Ready` automatically applies this flag to :ref:`static types " +"`." +msgstr "" + +msgid "This flag is not inherited." +msgstr "" + +msgid "" +"Disallow creating instances of the type: " +"set :c:member:`~PyTypeObject.tp_new` to NULL and don't create the " +"``__new__`` key in the type dictionary." +msgstr "" + +msgid "" +"The flag must be set before creating the type, not after. For example, it " +"must be set before :c:func:`PyType_Ready` is called on the type." +msgstr "" + +msgid "" +"The flag is set automatically on :ref:`static types ` " +"if :c:member:`~PyTypeObject.tp_base` is NULL or ``&PyBaseObject_Type`` " +"and :c:member:`~PyTypeObject.tp_new` is NULL." +msgstr "" + +msgid "" +"This flag is not inherited. However, subclasses will not be instantiable " +"unless they provide a non-NULL :c:member:`~PyTypeObject.tp_new` (which is " +"only possible via the C API)." +msgstr "" + +msgid "" +"To disallow instantiating a class directly but allow instantiating its " +"subclasses (e.g. for an :term:`abstract base class`), do not use this flag. " +"Instead, make :c:member:`~PyTypeObject.tp_new` only succeed for subclasses." +msgstr "" + +msgid "" +"This bit indicates that instances of the class may match mapping patterns " +"when used as the subject of a :keyword:`match` block. It is automatically " +"set when registering or subclassing :class:`collections.abc.Mapping`, and " +"unset when registering :class:`collections.abc.Sequence`." +msgstr "" + +msgid "" +":const:`Py_TPFLAGS_MAPPING` and :const:`Py_TPFLAGS_SEQUENCE` are mutually " +"exclusive; it is an error to enable both flags simultaneously." +msgstr "" + +msgid "" +"This flag is inherited by types that do not already " +"set :const:`Py_TPFLAGS_SEQUENCE`." +msgstr "" + +msgid ":pep:`634` -- Structural Pattern Matching: Specification" +msgstr "" + +msgid "" +"This bit indicates that instances of the class may match sequence patterns " +"when used as the subject of a :keyword:`match` block. It is automatically " +"set when registering or subclassing :class:`collections.abc.Sequence`, and " +"unset when registering :class:`collections.abc.Mapping`." +msgstr "" + +msgid "" +"This flag is inherited by types that do not already " +"set :const:`Py_TPFLAGS_MAPPING`." +msgstr "" + +msgid "" +"An optional pointer to a NUL-terminated C string giving the docstring for " +"this type object. This is exposed as the :attr:`__doc__` attribute on the " +"type and instances of the type." +msgstr "" + +msgid "This field is *not* inherited by subtypes." +msgstr "" + +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. The " +"signature is::" +msgstr "" + +msgid "" +"More information about Python's garbage collection scheme can be found in " +"section :ref:`supporting-cycle-detection`." +msgstr "" + +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 that the instance owns. For example, this is " +"function :c:func:`local_traverse` from the :mod:`_thread` extension module::" +msgstr "" + +msgid "" +"Note that :c:func:`Py_VISIT` is called only on those members that can " +"participate in reference cycles. Although there is also a ``self->key`` " +"member, it can only be ``NULL`` or a Python string and therefore cannot be " +"part of a reference cycle." +msgstr "" + +msgid "" +"On the other hand, even if you know a member can never be part of a cycle, " +"as a debugging aid you may want to visit it anyway just so the :mod:`gc` " +"module's :func:`~gc.get_referents` function will include it." +msgstr "" + +msgid "" +"When implementing :c:member:`~PyTypeObject.tp_traverse`, only the members " +"that the instance *owns* (by having :term:`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 "" + +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 "" + +msgid "" +"Instances of :ref:`heap-allocated types ` hold a reference to " +"their type. Their traversal function must therefore either " +"visit :c:func:`Py_TYPE(self) `, or delegate this responsibility by " +"calling ``tp_traverse`` of another heap-allocated type (such as a heap-" +"allocated superclass). If they do not, the type object may not be garbage-" +"collected." +msgstr "" + +msgid "" +"Heap-allocated types are expected to visit ``Py_TYPE(self)`` in " +"``tp_traverse``. In earlier versions of Python, due to `bug 40217 `_, doing this may lead to crashes in subclasses." +msgstr "" + +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." +msgstr "" + +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. The signature " +"is::" +msgstr "" + +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 " +"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`." +msgstr "" + +msgid "" +"Implementations of :c:member:`~PyTypeObject.tp_clear` should drop the " +"instance's references to those of its members that may be Python objects, " +"and set its pointers to those members to ``NULL``, as in the following " +"example::" +msgstr "" + +msgid "" +"The :c:func:`Py_CLEAR` macro should be used, because clearing references is " +"delicate: the reference to the contained object must not be released " +"(via :c:func:`Py_DECREF`) until after the pointer to the contained object is " +"set to ``NULL``. This is because releasing the reference 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." +msgstr "" + +msgid "" +"Note that :c:member:`~PyTypeObject.tp_clear` is not *always* called before " +"an instance is deallocated. For example, when reference counting is enough " +"to determine that an object is no longer used, the cyclic garbage collector " +"is not involved and :c:member:`~PyTypeObject.tp_dealloc` is called directly." +msgstr "" + +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 " +"invoke :c:member:`~PyTypeObject.tp_clear`." +msgstr "" + +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." +msgstr "" + +msgid "" +"An optional pointer to the rich comparison function, whose signature is::" +msgstr "" + +msgid "" +"The first parameter is guaranteed to be an instance of the type that is " +"defined by :c:type:`PyTypeObject`." +msgstr "" + +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." +msgstr "" + +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`:" +msgstr "" + +msgid "Constant" +msgstr "Stała" + +msgid "Comparison" +msgstr "Porównanie" + +msgid ":const:`Py_LT`" +msgstr "" + +msgid "``<``" +msgstr "``<``" + +msgid ":const:`Py_LE`" +msgstr "" + +msgid "``<=``" +msgstr "``<=``" + +msgid ":const:`Py_EQ`" +msgstr "" + +msgid "``==``" +msgstr "``==``" + +msgid ":const:`Py_NE`" +msgstr "" + +msgid "``!=``" +msgstr "``!=``" + +msgid ":const:`Py_GT`" +msgstr "" + +msgid "``>``" +msgstr "``>``" + +msgid ":const:`Py_GE`" +msgstr "" + +msgid "``>=``" +msgstr "``>=``" + +msgid "" +"The following macro is defined to ease writing rich comparison functions:" +msgstr "" + +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 " +"operators (for example, they may be C ints or floats). The third argument " +"specifies the requested operation, as for :c:func:`PyObject_RichCompare`." +msgstr "" + +msgid "The returned value is a new :term:`strong reference`." +msgstr "" + +msgid "On error, sets an exception and returns ``NULL`` from the function." +msgstr "" + +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``." +msgstr "" + +msgid "" +":c:type:`PyBaseObject_Type` provides a :attr:`tp_richcompare` " +"implementation, which may be inherited. However, if only :attr:`tp_hash` is " +"defined, not even the inherited function is used and instances of the type " +"will not be able to participate in any comparisons." +msgstr "" + +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 ``PyWeakref_*`` " +"functions. The instance structure needs to include a field of " +"type :c:expr:`PyObject*` which is initialized to ``NULL``." +msgstr "" + +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 "" + +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." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"An optional pointer to a function that returns an :term:`iterator` for the " +"object. Its presence normally signals that the instances of this type " +"are :term:`iterable` (although sequences may be iterable without this " +"function)." +msgstr "" + +msgid "This function has the same signature as :c:func:`PyObject_GetIter`::" +msgstr "" + +msgid "" +"An optional pointer to a function that returns the next item in " +"an :term:`iterator`. The signature is::" +msgstr "" + +msgid "" +"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 "" + +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 "" + +msgid "This function has the same signature as :c:func:`PyIter_Next`." +msgstr "" + +msgid "" +"An optional pointer to a static ``NULL``-terminated array " +"of :c:type:`PyMethodDef` structures, declaring regular methods of this type." +msgstr "" + +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." +msgstr "" + +msgid "" +"This field is not inherited by subtypes (methods are inherited through a " +"different mechanism)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"This field is not inherited by subtypes (members are inherited through a " +"different mechanism)." +msgstr "" + +msgid "" +"An optional pointer to a static ``NULL``-terminated array " +"of :c:type:`PyGetSetDef` structures, declaring computed attributes of " +"instances of this type." +msgstr "" + +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." +msgstr "" + +msgid "" +"This field is not inherited by subtypes (computed attributes are inherited " +"through a different mechanism)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Slot initialization is subject to the rules of initializing globals. C99 " +"requires the initializers to be \"address constants\". Function designators " +"like :c:func:`PyType_GenericNew`, with implicit conversion to a pointer, are " +"valid C99 address constants." +msgstr "" + +msgid "" +"However, the unary '&' operator applied to a non-static variable " +"like :c:func:`PyBaseObject_Type` is not required to produce an address " +"constant. Compilers may support this (gcc does), MSVC does not. Both " +"compilers are strictly standard conforming in this particular behavior." +msgstr "" + +msgid "" +"Consequently, :c:member:`~PyTypeObject.tp_base` should be set in the " +"extension module's init function." +msgstr "" + +msgid "This field is not inherited by subtypes (obviously)." +msgstr "" + +msgid "" +"This field defaults to ``&PyBaseObject_Type`` (which to Python programmers " +"is known as the type :class:`object`)." +msgstr "" + +msgid "The type's dictionary is stored here by :c:func:`PyType_Ready`." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"This field is not inherited by subtypes (though the attributes defined in " +"here are inherited through a different mechanism)." +msgstr "" + +msgid "" +"If this field is ``NULL``, :c:func:`PyType_Ready` will assign a new " +"dictionary to it." +msgstr "" + +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." +msgstr "" + +msgid "An optional pointer to a \"descriptor get\" function." +msgstr "" + +msgid "The function signature is::" +msgstr "" + +msgid "" +"An optional pointer to a function for setting and deleting a descriptor's " +"value." +msgstr "" + +msgid "The *value* argument is set to ``NULL`` to delete the value." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Do not confuse this field with :c:member:`~PyTypeObject.tp_dict`; that is " +"the dictionary for attributes of the type object itself." +msgstr "" + +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, " +"it specifies the offset from the *end* of the instance structure. A " +"negative offset is more expensive to use, and should only be used when the " +"instance structure contains a variable-length part. This is used for " +"example to add an instance variable dictionary to subtypes of :class:`str` " +"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." +msgstr "" + +msgid "" +"The real dictionary offset in an instance can be computed from a " +"negative :c:member:`~PyTypeObject.tp_dictoffset` as follows::" +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "" +"(Adding a slot named :attr:`~object.__dict__` to the :attr:`__slots__` " +"declaration does not have the expected effect, it just causes confusion. " +"Maybe this should be added as a feature just like :attr:`__weakref__` " +"though.)" +msgstr "" + +msgid "" +"This slot has no default. For :ref:`static types `, if the " +"field is ``NULL`` then no :attr:`__dict__` gets created for instances." +msgstr "" + +msgid "An optional pointer to an instance initialization function." +msgstr "" + +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." +msgstr "" + +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__`." +msgstr "" + +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 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." +msgstr "" + +msgid "Returns ``0`` on success, ``-1`` and sets an exception on error." +msgstr "" + +msgid "" +"For :ref:`static types ` this field does not have a default." +msgstr "" + +msgid "An optional pointer to an instance allocation function." +msgstr "" + +msgid "" +"This field is inherited by static subtypes, but not by dynamic subtypes " +"(subtypes created by a class statement)." +msgstr "" + +msgid "" +"For dynamic subtypes, this field is always set " +"to :c:func:`PyType_GenericAlloc`, to force a standard heap allocation " +"strategy." +msgstr "" + +msgid "" +"For static subtypes, :c:type:`PyBaseObject_Type` " +"uses :c:func:`PyType_GenericAlloc`. That is the recommended value for all " +"statically defined types." +msgstr "" + +msgid "An optional pointer to an instance creation function." +msgstr "" + +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)." +msgstr "" + +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. " +"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`." +msgstr "" + +msgid "" +"Set the :const:`Py_TPFLAGS_DISALLOW_INSTANTIATION` flag to disallow creating " +"instances of the type in Python." +msgstr "" + +msgid "" +"This field is inherited by subtypes, except it is not inherited " +"by :ref:`static types ` " +"whose :c:member:`~PyTypeObject.tp_base` is ``NULL`` or " +"``&PyBaseObject_Type``." +msgstr "" + +msgid "" +"For :ref:`static types ` this field has no default. This means " +"if the slot is defined as ``NULL``, the type cannot be called to create new " +"instances; presumably there is some other way to create instances, like a " +"factory function." +msgstr "" + +msgid "" +"An optional pointer to an instance deallocation function. Its signature is::" +msgstr "" + +msgid "" +"An initializer that is compatible with this signature " +"is :c:func:`PyObject_Free`." +msgstr "" + +msgid "" +"This field is inherited by static subtypes, but not by dynamic subtypes " +"(subtypes created by a class statement)" +msgstr "" + +msgid "" +"In dynamic subtypes, 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 "" + +msgid "For static subtypes, :c:type:`PyBaseObject_Type` uses PyObject_Del." +msgstr "" + +msgid "An optional pointer to a function called by the garbage collector." +msgstr "" + +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::" +msgstr "" + +msgid "" +"(The only example of this are types themselves. The " +"metatype, :c:data:`PyType_Type`, defines this function to distinguish " +"between statically and :ref:`dynamically allocated types `.)" +msgstr "" + +msgid "" +"This slot has no default. If this field is " +"``NULL``, :const:`Py_TPFLAGS_HAVE_GC` is used as the functional equivalent." +msgstr "" + +msgid "Tuple of base types." +msgstr "" + +msgid "" +"This field should be set to ``NULL`` and treated as read-only. Python will " +"fill it in when the type is :c:func:`initialized `." +msgstr "" + +msgid "" +"For dynamically created classes, the ``Py_tp_bases`` :c:type:`slot " +"` can be used instead of the *bases* argument " +"of :c:func:`PyType_FromSpecWithBases`. The argument form is preferred." +msgstr "" + +msgid "" +"Multiple inheritance does not work well for statically defined types. If you " +"set ``tp_bases`` to a tuple, Python will not raise an error, but some slots " +"will only be inherited from the first base." +msgstr "" + +msgid "This field is not inherited." +msgstr "" + +msgid "" +"Tuple containing the expanded set of base types, starting with the type " +"itself and ending with :class:`object`, in Method Resolution Order." +msgstr "" + +msgid "" +"This field is not inherited; it is calculated fresh " +"by :c:func:`PyType_Ready`." +msgstr "" + +msgid "Unused. Internal use only." +msgstr "" + +msgid "List of weak references to subclasses. Internal use only." +msgstr "" + +msgid "" +"Weak reference list head, for weak references to this type object. Not " +"inherited. Internal use only." +msgstr "" + +msgid "" +"This field is deprecated. Use :c:member:`~PyTypeObject.tp_finalize` instead." +msgstr "" + +msgid "Used to index into the method cache. Internal use only." +msgstr "" + +msgid "" +"An optional pointer to an instance finalization function. Its signature is::" +msgstr "" + +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 " +"object in a sane state." +msgstr "" + +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 "" + +msgid "" +"Also, note that, in a garbage collected " +"Python, :c:member:`~PyTypeObject.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 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 " +"ensure that destroying those objects on the thread which called tp_dealloc " +"will not violate any assumptions of the library." +msgstr "" + +msgid "" +"Before version 3.8 it was necessary to set " +"the :const:`Py_TPFLAGS_HAVE_FINALIZE` flags bit in order for this field to " +"be used. This is no longer required." +msgstr "" + +msgid "\"Safe object finalization\" (:pep:`442`)" +msgstr "" + +msgid "" +"Vectorcall function to use for calls of this type object. In other words, it " +"is used to implement :ref:`vectorcall ` for ``type.__call__``. " +"If ``tp_vectorcall`` is ``NULL``, the default call implementation " +"using :attr:`__new__` and :attr:`__init__` is used." +msgstr "" + +msgid "This field is never inherited." +msgstr "" + +msgid "(the field exists since 3.8 but it's only used since 3.9)" +msgstr "" + +msgid "Static Types" +msgstr "" + +msgid "" +"Traditionally, types defined in C code are *static*, that is, a " +"static :c:type:`PyTypeObject` structure is defined directly in code and " +"initialized using :c:func:`PyType_Ready`." +msgstr "" + +msgid "" +"This results in types that are limited relative to types defined in Python:" +msgstr "" + +msgid "" +"Static types are limited to one base, i.e. they cannot use multiple " +"inheritance." +msgstr "" + +msgid "" +"Static type objects (but not necessarily their instances) are immutable. It " +"is not possible to add or modify the type object's attributes from Python." +msgstr "" + +msgid "" +"Static type objects are shared across :ref:`sub-interpreters `, so they should not include any subinterpreter-" +"specific state." +msgstr "" + +msgid "" +"Also, since :c:type:`PyTypeObject` is only part of the :ref:`Limited API " +"` as an opaque struct, any extension modules using static types must " +"be compiled for a specific Python minor version." +msgstr "" + +msgid "Heap Types" +msgstr "" + +msgid "" +"An alternative to :ref:`static types ` is *heap-allocated " +"types*, or *heap types* for short, which correspond closely to classes " +"created by Python's ``class`` statement. Heap types have " +"the :const:`Py_TPFLAGS_HEAPTYPE` flag set." +msgstr "" + +msgid "" +"This is done by filling a :c:type:`PyType_Spec` structure and " +"calling :c:func:`PyType_FromSpec`, :c:func:`PyType_FromSpecWithBases`, " +"or :c:func:`PyType_FromModuleAndSpec`." +msgstr "" + +msgid "Number Object Structures" +msgstr "" + +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 "" + +msgid "Here is the structure definition::" +msgstr "" + +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 " +"instance of the defined type). If the operation is not defined for the " +"given operands, binary and ternary functions must return " +"``Py_NotImplemented``, if another error occurred they must return ``NULL`` " +"and set an exception." +msgstr "" + +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 "" + +msgid "Mapping Object Structures" +msgstr "" + +msgid "" +"This structure holds pointers to the functions which an object uses to " +"implement the mapping protocol. It has three members:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Sequence Object Structures" +msgstr "" + +msgid "" +"This structure holds pointers to the functions which an object uses to " +"implement the sequence protocol." +msgstr "" + +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." +msgstr "" + +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 "" + +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 "" + +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 " +"subscription via the :c:member:`~PyMappingMethods.mp_subscript` slot. This " +"slot must be filled for the :c:func:`PySequence_Check` function to return " +"``1``, it can be ``NULL`` otherwise." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +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 " +"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 "" + +msgid "Buffer Object Structures" +msgstr "" + +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 "" + +msgid "The signature of this function is::" +msgstr "" + +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 "" + +msgid "" +"Check if the request can be met. If not, raise :c:data:`PyExc_BufferError`, " +"set :c:expr:`view->obj` to ``NULL`` and return ``-1``." +msgstr "" + +msgid "Fill in the requested fields." +msgstr "" + +msgid "Increment an internal counter for the number of exports." +msgstr "" + +msgid "" +"Set :c:expr:`view->obj` to *exporter* and increment :c:expr:`view->obj`." +msgstr "" + +msgid "Return ``0``." +msgstr "" + +msgid "" +"If *exporter* is part of a chain or tree of buffer providers, two main " +"schemes can be used:" +msgstr "" + +msgid "" +"Re-export: Each member of the tree acts as the exporting object and " +"sets :c:expr:`view->obj` to a new reference to itself." +msgstr "" + +msgid "" +"Redirect: The buffer request is redirected to the root object of the tree. " +"Here, :c:expr:`view->obj` will be a new reference to the root object." +msgstr "" + +msgid "" +"The individual fields of *view* are described in section :ref:`Buffer " +"structure `, the rules how an exporter must react to " +"specific requests are in section :ref:`Buffer request types `." +msgstr "" + +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." +msgstr "" + +msgid "" +":c:func:`PyBuffer_FillInfo` provides an easy way of exposing a simple bytes " +"buffer while dealing correctly with all request types." +msgstr "" + +msgid "" +":c:func:`PyObject_GetBuffer` is the interface for the consumer that wraps " +"this function." +msgstr "" + +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 " +"``NULL``. Otherwise, a standard implementation of this function will take " +"these optional steps:" +msgstr "" + +msgid "Decrement an internal counter for the number of exports." +msgstr "" + +msgid "If the counter is ``0``, free all memory associated with *view*." +msgstr "" + +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 " +"constant, while a consumer MAY pass a copy of the original buffer as the " +"*view* argument." +msgstr "" + +msgid "" +"This function MUST NOT decrement :c:expr:`view->obj`, since that is done " +"automatically in :c:func:`PyBuffer_Release` (this scheme is useful for " +"breaking reference cycles)." +msgstr "" + +msgid "" +":c:func:`PyBuffer_Release` is the interface for the consumer that wraps this " +"function." +msgstr "" + +msgid "Async Object Structures" +msgstr "" + +msgid "" +"This structure holds pointers to the functions required to " +"implement :term:`awaitable` and :term:`asynchronous iterator` objects." +msgstr "" + +msgid "" +"The returned object must be an :term:`iterator`, i.e. :c:func:`PyIter_Check` " +"must return ``1`` for it." +msgstr "" + +msgid "" +"This slot may be set to ``NULL`` if an object is not an :term:`awaitable`." +msgstr "" + +msgid "" +"Must return an :term:`asynchronous iterator` object. See :meth:`__anext__` " +"for details." +msgstr "" + +msgid "" +"This slot may be set to ``NULL`` if an object does not implement " +"asynchronous iteration protocol." +msgstr "" + +msgid "" +"Must return an :term:`awaitable` object. See :meth:`__anext__` for details. " +"This slot may be set to ``NULL``." +msgstr "" + +msgid "" +"See :c:func:`PyIter_Send` for details. This slot may be set to ``NULL``." +msgstr "" + +msgid "Slot Type typedefs" +msgstr "" + +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 " +"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 + " +"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`." +msgstr "" + +msgid "" +"This function should not do any other instance initialization, not even to " +"allocate additional memory; that should be done " +"by :c:member:`~PyTypeObject.tp_new`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_free`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_new`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_init`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_repr`." +msgstr "" + +msgid "Return the value of the named attribute for the object." +msgstr "" + +msgid "" +"Set the value of the named attribute for the object. The value argument is " +"set to ``NULL`` to delete the attribute." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_getattro`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_setattro`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_descr_get`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_descr_set`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_hash`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_richcompare`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_iter`." +msgstr "" + +msgid "See :c:member:`~PyTypeObject.tp_iternext`." +msgstr "" + +msgid "See :c:member:`~PyAsyncMethods.am_send`." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "" +"The following are simple examples of Python type definitions. They include " +"common usage you may encounter. Some demonstrate tricky corner cases. For " +"more examples, practical info, and a tutorial, see :ref:`defining-new-types` " +"and :ref:`new-types-topics`." +msgstr "" + +msgid "A basic :ref:`static type `::" +msgstr "" + +msgid "" +"You may also find older code (especially in the CPython code base) with a " +"more verbose initializer::" +msgstr "" + +msgid "A type that supports weakrefs, instance dicts, and hashing::" +msgstr "" + +msgid "" +"A str subclass that cannot be subclassed and cannot be called to create " +"instances (e.g. uses a separate factory func) " +"using :c:data:`Py_TPFLAGS_DISALLOW_INSTANTIATION` flag::" +msgstr "" + +msgid "" +"The simplest :ref:`static type ` with fixed-length instances::" +msgstr "" + +msgid "" +"The simplest :ref:`static type ` with variable-length " +"instances::" +msgstr "" diff --git a/c-api/unicode.po b/c-api/unicode.po new file mode 100644 index 0000000000..69ab151ebe --- /dev/null +++ b/c-api/unicode.po @@ -0,0 +1,1666 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Unicode Objects and Codecs" +msgstr "" + +msgid "Unicode Objects" +msgstr "" + +msgid "" +"Since the implementation of :pep:`393` in Python 3.3, Unicode objects " +"internally use a variety of representations, in order to allow handling the " +"complete range of Unicode characters while staying memory efficient. There " +"are special cases for strings where all code points are below 128, 256, or " +"65536; otherwise, code points must be below 1114112 (which is the full " +"Unicode range)." +msgstr "" + +msgid "" +":c:expr:`Py_UNICODE*` and UTF-8 representations are created on demand and " +"cached in the Unicode object. The :c:expr:`Py_UNICODE*` representation is " +"deprecated and inefficient." +msgstr "" + +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:" +msgstr "" + +msgid "" +"\"canonical\" Unicode objects are all objects created by a non-deprecated " +"Unicode API. They use the most efficient representation allowed by the " +"implementation." +msgstr "" + +msgid "" +"\"legacy\" Unicode objects have been created through one of the deprecated " +"APIs (typically :c:func:`PyUnicode_FromUnicode`) and only bear " +"the :c:expr:`Py_UNICODE*` representation; you will have to " +"call :c:func:`PyUnicode_READY` on them before calling any other API." +msgstr "" + +msgid "" +"The \"legacy\" Unicode object will be removed in Python 3.12 with deprecated " +"APIs. All Unicode objects will be \"canonical\" since then. See :pep:`623` " +"for more information." +msgstr "" + +msgid "Unicode Type" +msgstr "" + +msgid "" +"These are the basic Unicode object types used for the Unicode implementation " +"in Python:" +msgstr "" + +msgid "" +"These types are typedefs for unsigned integer types wide enough to contain " +"characters of 32 bits, 16 bits and 8 bits, respectively. When dealing with " +"single Unicode characters, use :c:type:`Py_UCS4`." +msgstr "" + +msgid "" +"This is a typedef of :c:expr:`wchar_t`, which is a 16-bit type or 32-bit " +"type depending on the platform." +msgstr "" + +msgid "" +"In previous versions, this was a 16-bit type or a 32-bit type depending on " +"whether you selected a \"narrow\" or \"wide\" Unicode version of Python at " +"build time." +msgstr "" + +msgid "" +"These subtypes of :c:type:`PyObject` represent a Python Unicode object. In " +"almost all cases, they shouldn't be used directly, since all API functions " +"that deal with Unicode objects take and return :c:type:`PyObject` pointers." +msgstr "" + +msgid "" +"This instance of :c:type:`PyTypeObject` represents the Python Unicode type. " +"It is exposed to Python code as ``str``." +msgstr "" + +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:" +msgstr "" + +msgid "" +"Return true if the object *o* is a Unicode object or an instance of a " +"Unicode subtype. This function always succeeds." +msgstr "" + +msgid "" +"Return true if the object *o* is a Unicode object, but not an instance of a " +"subtype. This function always succeeds." +msgstr "" + +msgid "" +"Ensure the string object *o* is in the \"canonical\" representation. This " +"is required before using any of the access macros described below." +msgstr "" + +msgid "" +"Returns ``0`` on success and ``-1`` with an exception set on failure, which " +"in particular happens if memory allocation fails." +msgstr "" + +msgid "This API will be removed with :c:func:`PyUnicode_FromUnicode`." +msgstr "" + +msgid "" +"Return the length of the Unicode string, in code points. *o* has to be a " +"Unicode object in the \"canonical\" representation (not checked)." +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." +msgstr "" + +msgid "Return values of the :c:func:`PyUnicode_KIND` macro." +msgstr "" + +msgid "``PyUnicode_WCHAR_KIND`` is deprecated." +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)." +msgstr "" + +msgid "" +"Return a void pointer to the raw Unicode buffer. *o* has to be a Unicode " +"object in the \"canonical\" representation (not checked)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Read a code point from a canonical representation *data* (as obtained " +"with :c:func:`PyUnicode_DATA`). No checks or ready calls are performed." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the maximum code point that is suitable for creating another string " +"based on *o*, which must be in the \"canonical\" representation. This is " +"always an approximation but more efficient than iterating over the string." +msgstr "" + +msgid "" +"Return the size of the deprecated :c:type:`Py_UNICODE` representation, in " +"code units (this includes surrogate pairs as 2 units). *o* has to be a " +"Unicode object (not checked)." +msgstr "" + +msgid "" +"Part of the old-style Unicode API, please migrate to " +"using :c:func:`PyUnicode_GET_LENGTH`." +msgstr "" + +msgid "" +"Return the size of the deprecated :c:type:`Py_UNICODE` representation in " +"bytes. *o* has to be a Unicode object (not checked)." +msgstr "" + +msgid "" +"Return a pointer to a :c:type:`Py_UNICODE` representation of the object. " +"The returned buffer is always terminated with an extra null code point. It " +"may also contain embedded null code points, which would cause the string to " +"be truncated when used in most C functions. The ``AS_DATA`` form casts the " +"pointer to :c:expr:`const char *`. The *o* argument has to be a Unicode " +"object (not checked)." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Part of the old-style Unicode API, please migrate to using " +"the :c:func:`PyUnicode_nBYTE_DATA` family of macros." +msgstr "" + +msgid "" +"Return ``1`` if the string is a valid identifier according to the language " +"definition, section :ref:`identifiers`. Return ``0`` otherwise." +msgstr "" + +msgid "" +"The function does not call :c:func:`Py_FatalError` anymore if the string is " +"not ready." +msgstr "" + +msgid "Unicode Character Properties" +msgstr "" + +msgid "" +"Unicode provides many different character properties. The most often needed " +"ones are available through these macros which are mapped to C functions " +"depending on the Python configuration." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is a whitespace character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is a lowercase character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is an uppercase character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is a titlecase character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is a linebreak character." +msgstr "" + +msgid "Return ``1`` or ``0`` depending on whether *ch* is a decimal character." +msgstr "" + +msgid "Return ``1`` or ``0`` depending on whether *ch* is a digit character." +msgstr "" + +msgid "Return ``1`` or ``0`` depending on whether *ch* is a numeric character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is an alphabetic character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is an alphanumeric character." +msgstr "" + +msgid "" +"Return ``1`` or ``0`` depending on whether *ch* is a printable character. " +"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`.)" +msgstr "" + +msgid "These APIs can be used for fast direct character conversions:" +msgstr "" + +msgid "Return the character *ch* converted to lower case." +msgstr "" + +msgid "This function uses simple case mappings." +msgstr "" + +msgid "Return the character *ch* converted to upper case." +msgstr "" + +msgid "Return the character *ch* converted to title case." +msgstr "" + +msgid "" +"Return the character *ch* converted to a decimal positive integer. Return " +"``-1`` if this is not possible. This macro does not raise exceptions." +msgstr "" + +msgid "" +"Return the character *ch* converted to a single digit integer. Return ``-1`` " +"if this is not possible. This macro does not raise exceptions." +msgstr "" + +msgid "" +"Return the character *ch* converted to a double. Return ``-1.0`` if this is " +"not possible. This macro does not raise exceptions." +msgstr "" + +msgid "These APIs can be used to work with surrogates:" +msgstr "" + +msgid "Check if *ch* is a surrogate (``0xD800 <= ch <= 0xDFFF``)." +msgstr "" + +msgid "Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``)." +msgstr "" + +msgid "Check if *ch* is a low surrogate (``0xDC00 <= ch <= 0xDFFF``)." +msgstr "" + +msgid "" +"Join two surrogate characters and return a single Py_UCS4 value. *high* and " +"*low* are respectively the leading and trailing surrogates in a surrogate " +"pair." +msgstr "" + +msgid "Creating and accessing Unicode strings" +msgstr "" + +msgid "" +"To create Unicode objects and access their basic sequence properties, use " +"these APIs:" +msgstr "" + +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." +msgstr "" + +msgid "" +"This is the recommended way to allocate a new Unicode object. Objects " +"created using this function are not resizable." +msgstr "" + +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." +msgstr "" + +msgid "" +"Create a Unicode object from the char buffer *u*. The bytes will be " +"interpreted as being UTF-8 encoded. The buffer is copied into the new " +"object. If the buffer is not ``NULL``, the return value might be a shared " +"object, i.e. modification of the data is not allowed." +msgstr "" + +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`, and will be removed " +"in Python 3.12." +msgstr "" + +msgid "" +"Create a Unicode object from a UTF-8 encoded null-terminated char buffer *u*." +msgstr "" + +msgid "" +"Take a C :c:func:`printf`\\ -style *format* string and a variable number of " +"arguments, calculate the size of the resulting Python Unicode string and " +"return a string with the values formatted into it. The variable arguments " +"must be C types and must correspond exactly to the format characters in the " +"*format* ASCII-encoded string. The following format characters are allowed:" +msgstr "" + +msgid "Format Characters" +msgstr "" + +msgid "Type" +msgstr "Typ" + +msgid "Comment" +msgstr "komentarz" + +msgid ":attr:`%%`" +msgstr "" + +msgid "*n/a*" +msgstr "*n/a*" + +msgid "The literal % character." +msgstr "" + +msgid ":attr:`%c`" +msgstr "" + +msgid "int" +msgstr "int" + +msgid "A single character, represented as a C int." +msgstr "" + +msgid ":attr:`%d`" +msgstr "" + +msgid "Equivalent to ``printf(\"%d\")``. [1]_" +msgstr "" + +msgid ":attr:`%u`" +msgstr "" + +msgid "unsigned int" +msgstr "nieoznaczony typ int" + +msgid "Equivalent to ``printf(\"%u\")``. [1]_" +msgstr "" + +msgid ":attr:`%ld`" +msgstr "" + +msgid "long" +msgstr "" + +msgid "Equivalent to ``printf(\"%ld\")``. [1]_" +msgstr "" + +msgid ":attr:`%li`" +msgstr "" + +msgid "Equivalent to ``printf(\"%li\")``. [1]_" +msgstr "" + +msgid ":attr:`%lu`" +msgstr "" + +msgid "unsigned long" +msgstr "nieoznaczony typ długi" + +msgid "Equivalent to ``printf(\"%lu\")``. [1]_" +msgstr "" + +msgid ":attr:`%lld`" +msgstr "" + +msgid "long long" +msgstr "" + +msgid "Equivalent to ``printf(\"%lld\")``. [1]_" +msgstr "" + +msgid ":attr:`%lli`" +msgstr "" + +msgid "Equivalent to ``printf(\"%lli\")``. [1]_" +msgstr "" + +msgid ":attr:`%llu`" +msgstr "" + +msgid "unsigned long long" +msgstr "" + +msgid "Equivalent to ``printf(\"%llu\")``. [1]_" +msgstr "" + +msgid ":attr:`%zd`" +msgstr "" + +msgid ":c:type:`\\ Py_ssize_t`" +msgstr ":c:type:`\\ Py_ssize_t`" + +msgid "Equivalent to ``printf(\"%zd\")``. [1]_" +msgstr "" + +msgid ":attr:`%zi`" +msgstr "" + +msgid "Equivalent to ``printf(\"%zi\")``. [1]_" +msgstr "" + +msgid ":attr:`%zu`" +msgstr "" + +msgid "size_t" +msgstr "size_t" + +msgid "Equivalent to ``printf(\"%zu\")``. [1]_" +msgstr "" + +msgid ":attr:`%i`" +msgstr "" + +msgid "Equivalent to ``printf(\"%i\")``. [1]_" +msgstr "" + +msgid ":attr:`%x`" +msgstr "" + +msgid "Equivalent to ``printf(\"%x\")``. [1]_" +msgstr "" + +msgid ":attr:`%s`" +msgstr "" + +msgid "const char\\*" +msgstr "" + +msgid "A null-terminated C character array." +msgstr "" + +msgid ":attr:`%p`" +msgstr "" + +msgid "const void\\*" +msgstr "" + +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." +msgstr "" + +msgid ":attr:`%A`" +msgstr "" + +msgid "PyObject\\*" +msgstr "" + +msgid "The result of calling :func:`ascii`." +msgstr "" + +msgid ":attr:`%U`" +msgstr "" + +msgid "A Unicode object." +msgstr "" + +msgid ":attr:`%V`" +msgstr "" + +msgid "PyObject\\*, const char\\*" +msgstr "" + +msgid "" +"A Unicode object (which may be ``NULL``) and a null-terminated C character " +"array as a second parameter (which will be used, if the first parameter is " +"``NULL``)." +msgstr "" + +msgid ":attr:`%S`" +msgstr "" + +msgid "The result of calling :c:func:`PyObject_Str`." +msgstr "" + +msgid ":attr:`%R`" +msgstr "" + +msgid "The result of calling :c:func:`PyObject_Repr`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The width formatter unit is number of characters rather than bytes. The " +"precision formatter unit is number of bytes for ``\"%s\"`` and ``\"%V\"`` " +"(if the ``PyObject*`` argument is ``NULL``), and a number of characters for " +"``\"%A\"``, ``\"%U\"``, ``\"%S\"``, ``\"%R\"`` and ``\"%V\"`` (if the " +"``PyObject*`` argument is not ``NULL``)." +msgstr "" + +msgid "" +"For integer specifiers (d, u, ld, li, lu, lld, lli, llu, zd, zi, zu, i, x): " +"the 0-conversion flag has effect even when a precision is given." +msgstr "" + +msgid "Support for ``\"%lld\"`` and ``\"%llu\"`` added." +msgstr "" + +msgid "Support for ``\"%li\"``, ``\"%lli\"`` and ``\"%zi\"`` added." +msgstr "" + +msgid "" +"Support width and precision formatter for ``\"%s\"``, ``\"%A\"``, " +"``\"%U\"``, ``\"%V\"``, ``\"%S\"``, ``\"%R\"`` added." +msgstr "" + +msgid "" +"Identical to :c:func:`PyUnicode_FromFormat` except that it takes exactly two " +"arguments." +msgstr "" + +msgid "Decode an encoded object *obj* to a Unicode object." +msgstr "" + +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 " +"interface use the default values (see :ref:`builtincodecs` for details)." +msgstr "" + +msgid "" +"All other objects, including Unicode objects, cause a :exc:`TypeError` to be " +"set." +msgstr "" + +msgid "" +"The API returns ``NULL`` if there was an error. The caller is responsible " +"for decref'ing the returned objects." +msgstr "" + +msgid "Return the length of the Unicode object, in code points." +msgstr "" + +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." +msgstr "" + +msgid "" +"Fill a string with a character: write *fill_char* into " +"``unicode[start:start+length]``." +msgstr "" + +msgid "" +"Fail if *fill_char* is bigger than the string maximum character, or if the " +"string has more than 1 reference." +msgstr "" + +msgid "" +"Return the number of written character, or return ``-1`` and raise an " +"exception on error." +msgstr "" + +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." +msgstr "" + +msgid "" +"This function checks that *unicode* is a Unicode object, that the index is " +"not out of bounds, and that the object can be modified safely (i.e. that it " +"its reference count is one)." +msgstr "" + +msgid "" +"Read a character from a string. This function checks that *unicode* is a " +"Unicode object and the index is not out of bounds, in contrast to the macro " +"version :c:func:`PyUnicode_READ_CHAR`." +msgstr "" + +msgid "" +"Return a substring of *str*, from character index *start* (included) to " +"character index *end* (excluded). Negative indices are not supported." +msgstr "" + +msgid "" +"Copy the string *u* into a UCS4 buffer, including a null character, if " +"*copy_null* is set. Returns ``NULL`` and sets an exception on error (in " +"particular, a :exc:`SystemError` if *buflen* is smaller than the length of " +"*u*). *buffer* is returned on success." +msgstr "" + +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." +msgstr "" + +msgid "Deprecated Py_UNICODE APIs" +msgstr "" + +msgid "" +"These API functions are deprecated with the implementation of :pep:`393`. " +"Extension modules can continue using them, as they will not be removed in " +"Python 3.x, but need to be aware that their use can now cause performance " +"and memory hits." +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." +msgstr "" + +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``." +msgstr "" + +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 " +"as :c:func:`PyUnicode_KIND`." +msgstr "" + +msgid "" +"Part of the old-style Unicode API, please migrate to " +"using :c:func:`PyUnicode_FromKindAndData`, :c:func:`PyUnicode_FromWideChar`, " +"or :c:func:`PyUnicode_New`." +msgstr "" + +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:expr:`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 "" + +msgid "" +"Part of the old-style Unicode API, please migrate to " +"using :c:func:`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsWideChar`, :c:func:`PyUnicode_ReadChar` " +"or similar new APIs." +msgstr "" + +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." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`Py_UNICODE_TODECIMAL`." +msgstr "" + +msgid "" +"Like :c:func:`PyUnicode_AsUnicode`, but also saves the :c:func:`Py_UNICODE` " +"array length (excluding the extra null terminator) in *size*. Note that the " +"resulting :c:expr:`Py_UNICODE*` string may contain embedded null code " +"points, which would cause the string to be truncated when used in most C " +"functions." +msgstr "" + +msgid "" +"Return the size of the deprecated :c:type:`Py_UNICODE` representation, in " +"code units (this includes surrogate pairs as 2 units)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Objects other than Unicode or its subtypes will cause a :exc:`TypeError`." +msgstr "" + +msgid "Locale Encoding" +msgstr "" + +msgid "" +"The current locale encoding can be used to decode text from the operating " +"system." +msgstr "" + +msgid "" +"Decode a string from UTF-8 on Android and VxWorks, or from the current " +"locale encoding 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 "" + +msgid "" +"Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` to decode a string " +"from :c:data:`Py_FileSystemDefaultEncoding` (the locale encoding read at " +"Python startup)." +msgstr "" + +msgid "This function ignores the :ref:`Python UTF-8 Mode `." +msgstr "" + +msgid "The :c:func:`Py_DecodeLocale` function." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Similar to :c:func:`PyUnicode_DecodeLocaleAndSize`, but compute the string " +"length using :c:func:`strlen`." +msgstr "" + +msgid "" +"Encode a Unicode object to UTF-8 on Android and VxWorks, or to the current " +"locale 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 "" + +msgid "" +"Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string " +"to :c:data:`Py_FileSystemDefaultEncoding` (the locale encoding read at " +"Python startup)." +msgstr "" + +msgid "The :c:func:`Py_EncodeLocale` function." +msgstr "" + +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``." +msgstr "" + +msgid "File System Encoding" +msgstr "" + +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:" +msgstr "" + +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:expr:`PyBytesObject*` which must be released " +"when it is no longer used." +msgstr "" + +msgid "Accepts a :term:`path-like object`." +msgstr "" + +msgid "" +"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 "" + +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` objects are " +"output as-is. *result* must be a :c:expr:`PyUnicodeObject*` which must be " +"released when it is no longer used." +msgstr "" + +msgid "Decode a string from the :term:`filesystem encoding and error handler`." +msgstr "" + +msgid "" +"If :c:data:`Py_FileSystemDefaultEncoding` is not set, fall back to the " +"locale encoding." +msgstr "" + +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`." +msgstr "" + +msgid "Use :c:data:`Py_FileSystemDefaultEncodeErrors` error handler." +msgstr "" + +msgid "" +"Decode a null-terminated string from the :term:`filesystem encoding and " +"error handler`." +msgstr "" + +msgid "" +"Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` if you know the string length." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "wchar_t Support" +msgstr "" + +msgid ":c:expr:`wchar_t` support for platforms which support it:" +msgstr "" + +msgid "" +"Create a Unicode object from the :c:expr:`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." +msgstr "" + +msgid "" +"Copy the Unicode object contents into the :c:expr:`wchar_t` buffer *w*. At " +"most *size* :c:expr:`wchar_t` characters are copied (excluding a possibly " +"trailing null termination character). Return the number " +"of :c:expr:`wchar_t` characters copied or ``-1`` in case of an error. Note " +"that the resulting :c:expr:`wchar_t*` string may or may not be null-" +"terminated. It is the responsibility of the caller to make sure that " +"the :c:expr:`wchar_t*` string is null-terminated in case this is required by " +"the application. Also, note that the :c:expr:`wchar_t*` string might contain " +"null characters, which would cause the string to be truncated when used with " +"most C functions." +msgstr "" + +msgid "" +"Convert the Unicode object to a wide character string. The output string " +"always ends with a null character. If *size* is not ``NULL``, write the " +"number of wide characters (excluding the trailing null termination " +"character) into *\\*size*. Note that the resulting :c:expr:`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:expr:`wchar_t*` string contains null characters a :exc:`ValueError` " +"is raised." +msgstr "" + +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 failed." +msgstr "" + +msgid "" +"Raises a :exc:`ValueError` if *size* is ``NULL`` and the :c:expr:`wchar_t*` " +"string contains null characters." +msgstr "" + +msgid "Built-in Codecs" +msgstr "" + +msgid "" +"Python provides a set of built-in codecs which are written in C for speed. " +"All of these codecs are directly usable via the following functions." +msgstr "" + +msgid "" +"Many of the following APIs take two arguments encoding and errors, and they " +"have the same semantics as the ones of the built-in :func:`str` string " +"object constructor." +msgstr "" + +msgid "" +"Setting encoding to ``NULL`` causes the default encoding to be used which is " +"UTF-8. 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 "" + +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)." +msgstr "" + +msgid "" +"The codecs all use a similar interface. Only deviations from the following " +"generic ones are documented for simplicity." +msgstr "" + +msgid "Generic Codecs" +msgstr "" + +msgid "These are the generic codec APIs:" +msgstr "" + +msgid "" +"Create a Unicode object by decoding *size* bytes of the encoded string *s*. " +"*encoding* and *errors* have the same meaning as the parameters of the same " +"name in the :func:`str` built-in function. The codec to be used is looked " +"up using the Python codec registry. Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +msgid "" +"Encode a Unicode object and return the result as Python bytes object. " +"*encoding* and *errors* have the same meaning as the parameters of the same " +"name in the Unicode :meth:`~str.encode` method. The codec to be used is " +"looked up using the Python codec registry. Return ``NULL`` if an exception " +"was raised by the codec." +msgstr "" + +msgid "" +"Encode the :c:type:`Py_UNICODE` buffer *s* of the given *size* and return a " +"Python bytes object. *encoding* and *errors* have the same meaning as the " +"parameters of the same name in the Unicode :meth:`~str.encode` method. The " +"codec to be used is looked up using the Python codec registry. Return " +"``NULL`` if an exception was raised by the codec." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "UTF-8 Codecs" +msgstr "" + +msgid "These are the UTF-8 codec APIs:" +msgstr "" + +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." +msgstr "" + +msgid "" +"If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF8`. If " +"*consumed* is not ``NULL``, trailing incomplete UTF-8 byte sequences will " +"not be treated as an error. Those bytes will not be decoded and the number " +"of bytes that have been decoded will be stored in *consumed*." +msgstr "" + +msgid "" +"Encode a Unicode object using UTF-8 and return the result as Python bytes " +"object. Error handling is \"strict\". Return ``NULL`` if an exception was " +"raised by the codec." +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*), " +"regardless of whether there are any other null code points." +msgstr "" + +msgid "" +"In the case of an error, ``NULL`` is returned with an exception set and no " +"*size* is stored." +msgstr "" + +msgid "" +"This caches the UTF-8 representation of the string in the Unicode object, " +"and subsequent calls will return a pointer to the same buffer. The caller " +"is not responsible for deallocating the buffer. The buffer is deallocated " +"and pointers to it become invalid when the Unicode object is garbage " +"collected." +msgstr "" + +msgid "The return type is now ``const char *`` rather of ``char *``." +msgstr "" + +msgid "This function is a part of the :ref:`limited API `." +msgstr "" + +msgid "As :c:func:`PyUnicode_AsUTF8AndSize`, but does not store the size." +msgstr "" + +msgid "" +"Encode the :c:type:`Py_UNICODE` buffer *s* of the given *size* using UTF-8 " +"and return a Python bytes object. Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +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`." +msgstr "" + +msgid "UTF-32 Codecs" +msgstr "" + +msgid "These are the UTF-32 codec APIs:" +msgstr "" + +msgid "" +"Decode *size* bytes from a UTF-32 encoded buffer string and return the " +"corresponding Unicode object. *errors* (if non-``NULL``) defines the error " +"handling. It defaults to \"strict\"." +msgstr "" + +msgid "" +"If *byteorder* is non-``NULL``, the decoder starts decoding using the given " +"byte order::" +msgstr "" + +msgid "" +"If ``*byteorder`` is zero, and the first four bytes of the input data are a " +"byte order mark (BOM), the decoder switches to this byte order and the BOM " +"is not copied into the resulting Unicode string. If ``*byteorder`` is " +"``-1`` or ``1``, any byte order mark is copied to the output." +msgstr "" + +msgid "" +"After completion, *\\*byteorder* is set to the current byte order at the end " +"of input data." +msgstr "" + +msgid "If *byteorder* is ``NULL``, the codec starts in native order mode." +msgstr "" + +msgid "Return ``NULL`` if an exception was raised by the codec." +msgstr "" + +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 " +"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 "" + +msgid "" +"Return a Python byte string using the UTF-32 encoding in native byte order. " +"The string always starts with a BOM mark. Error handling is \"strict\". " +"Return ``NULL`` if an exception was raised by the codec." +msgstr "" + +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::" +msgstr "" + +msgid "" +"If byteorder is ``0``, the output string will always start with the Unicode " +"BOM mark (U+FEFF). In the other two modes, no BOM mark is prepended." +msgstr "" + +msgid "" +"If ``Py_UNICODE_WIDE`` is not defined, surrogate pairs will be output as a " +"single code point." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsUTF32String` " +"or :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "UTF-16 Codecs" +msgstr "" + +msgid "These are the UTF-16 codec APIs:" +msgstr "" + +msgid "" +"Decode *size* bytes from a UTF-16 encoded buffer string and return the " +"corresponding Unicode object. *errors* (if non-``NULL``) defines the error " +"handling. It defaults to \"strict\"." +msgstr "" + +msgid "" +"If ``*byteorder`` is zero, and the first two bytes of the input data are a " +"byte order mark (BOM), the decoder switches to this byte order and the BOM " +"is not copied into the resulting Unicode string. If ``*byteorder`` is " +"``-1`` or ``1``, any byte order mark is copied to the output (where it will " +"result in either a ``\\ufeff`` or a ``\\ufffe`` character)." +msgstr "" + +msgid "" +"After completion, ``*byteorder`` is set to the current byte order at the end " +"of input data." +msgstr "" + +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 " +"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*." +msgstr "" + +msgid "" +"Return a Python byte string using the UTF-16 encoding in native byte order. " +"The string always starts with a BOM mark. Error handling is \"strict\". " +"Return ``NULL`` if an exception was raised by the codec." +msgstr "" + +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::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsUTF16String` " +"or :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "UTF-7 Codecs" +msgstr "" + +msgid "These are the UTF-7 codec APIs:" +msgstr "" + +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." +msgstr "" + +msgid "" +"If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF7`. If " +"*consumed* is not ``NULL``, trailing incomplete UTF-7 base-64 sections will " +"not be treated as an error. Those bytes will not be decoded and the number " +"of bytes that have been decoded will be stored in *consumed*." +msgstr "" + +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." +msgstr "" + +msgid "" +"If *base64SetO* is nonzero, \"Set O\" (punctuation that has no otherwise " +"special meaning) will be encoded in base-64. If *base64WhiteSpace* is " +"nonzero, whitespace will be encoded in base-64. Both are set to zero for " +"the Python \"utf-7\" codec." +msgstr "" + +msgid "Unicode-Escape Codecs" +msgstr "" + +msgid "These are the \"Unicode Escape\" codec APIs:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Encode a Unicode object using Unicode-Escape and return the result as a " +"bytes object. Error handling is \"strict\". Return ``NULL`` if an " +"exception was raised by the codec." +msgstr "" + +msgid "" +"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Unicode-" +"Escape and return a bytes object. Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsUnicodeEscapeString`." +msgstr "" + +msgid "Raw-Unicode-Escape Codecs" +msgstr "" + +msgid "These are the \"Raw Unicode Escape\" codec APIs:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Encode a Unicode object using Raw-Unicode-Escape and return the result as a " +"bytes object. Error handling is \"strict\". Return ``NULL`` if an " +"exception was raised by the codec." +msgstr "" + +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." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsRawUnicodeEscapeString` " +"or :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "Latin-1 Codecs" +msgstr "" + +msgid "" +"These are the Latin-1 codec APIs: Latin-1 corresponds to the first 256 " +"Unicode ordinals and only these are accepted by the codecs during encoding." +msgstr "" + +msgid "" +"Create a Unicode object by decoding *size* bytes of the Latin-1 encoded " +"string *s*. Return ``NULL`` if an exception was raised by the codec." +msgstr "" + +msgid "" +"Encode a Unicode object using Latin-1 and return the result as Python bytes " +"object. Error handling is \"strict\". Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +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." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsLatin1String` " +"or :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "ASCII Codecs" +msgstr "" + +msgid "" +"These are the ASCII codec APIs. Only 7-bit ASCII data is accepted. All " +"other codes generate errors." +msgstr "" + +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." +msgstr "" + +msgid "" +"Encode a Unicode object using ASCII and return the result as Python bytes " +"object. Error handling is \"strict\". Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +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." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsASCIIString` " +"or :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "Character Map Codecs" +msgstr "" + +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 mappings to " +"encode and decode characters. The mapping objects provided must support " +"the :meth:`__getitem__` mapping interface; dictionaries and sequences work " +"well." +msgstr "" + +msgid "These are the mapping codec APIs:" +msgstr "" + +msgid "" +"Create a Unicode object by decoding *size* bytes of the encoded string *s* " +"using the given *mapping* object. Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +msgid "" +"If *mapping* is ``NULL``, Latin-1 decoding will be applied. Else *mapping* " +"must map bytes ordinals (integers in the range from 0 to 255) to Unicode " +"strings, integers (which are then interpreted as Unicode ordinals) or " +"``None``. Unmapped data bytes -- ones which cause a :exc:`LookupError`, as " +"well as ones which get mapped to ``None``, ``0xFFFE`` or ``'\\ufffe'``, are " +"treated as undefined mappings and cause an error." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *mapping* object must map Unicode ordinal integers to bytes objects, " +"integers in the range from 0 to 255 or ``None``. Unmapped character " +"ordinals (ones which cause a :exc:`LookupError`) as well as mapped to " +"``None`` are treated as \"undefined mapping\" and cause an error." +msgstr "" + +msgid "" +"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using the given " +"*mapping* object and return the result as a bytes object. Return ``NULL`` " +"if an exception was raised by the codec." +msgstr "" + +msgid "" +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to " +"using :c:func:`PyUnicode_AsCharmapString` " +"or :c:func:`PyUnicode_AsEncodedString`." +msgstr "" + +msgid "The following codec API is special in that maps Unicode to Unicode." +msgstr "" + +msgid "" +"Translate a string by applying a character mapping table to it and return " +"the resulting Unicode object. Return ``NULL`` if an exception was raised by " +"the codec." +msgstr "" + +msgid "" +"The mapping table must map Unicode ordinal integers to Unicode ordinal " +"integers or ``None`` (causing deletion of the character)." +msgstr "" + +msgid "" +"Mapping tables need only provide the :meth:`__getitem__` interface; " +"dictionaries and sequences work well. Unmapped character ordinals (ones " +"which cause a :exc:`LookupError`) are left untouched and are copied as-is." +msgstr "" + +msgid "" +"*errors* has the usual meaning for codecs. It may be ``NULL`` which " +"indicates to use the default error handling." +msgstr "" + +msgid "" +"Translate a :c:type:`Py_UNICODE` buffer of the given *size* by applying a " +"character *mapping* table to it and return the resulting Unicode object. " +"Return ``NULL`` when an exception was raised by the codec." +msgstr "" + +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 "" + +msgid "MBCS codecs for Windows" +msgstr "" + +msgid "" +"These are the MBCS codec APIs. They are currently only available on Windows " +"and use the Win32 MBCS converters to implement the conversions. Note that " +"MBCS (or DBCS) is a class of encodings, not just one. The target encoding " +"is defined by the user settings on the machine running the codec." +msgstr "" + +msgid "" +"Create a Unicode object by decoding *size* bytes of the MBCS encoded string " +"*s*. Return ``NULL`` if an exception was raised by the codec." +msgstr "" + +msgid "" +"If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeMBCS`. If " +"*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeMBCSStateful` will not " +"decode trailing lead byte and the number of bytes that have been decoded " +"will be stored in *consumed*." +msgstr "" + +msgid "" +"Encode a Unicode object using MBCS and return the result as Python bytes " +"object. Error handling is \"strict\". Return ``NULL`` if an exception was " +"raised by the codec." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "Methods & Slots" +msgstr "" + +msgid "Methods and Slot Functions" +msgstr "" + +msgid "" +"The following APIs are capable of handling Unicode objects and strings on " +"input (we refer to them as strings in the descriptions) and return Unicode " +"objects or integers as appropriate." +msgstr "" + +msgid "They all return ``NULL`` or ``-1`` if an exception occurs." +msgstr "" + +msgid "Concat two strings giving a new Unicode string." +msgstr "" + +msgid "" +"Split a string giving a list of Unicode strings. If *sep* is ``NULL``, " +"splitting will be done at all whitespace substrings. Otherwise, splits " +"occur at the given separator. At most *maxsplit* splits will be done. If " +"negative, no limit is set. Separators are not included in the resulting " +"list." +msgstr "" + +msgid "" +"Split a Unicode string at line breaks, returning a list of Unicode strings. " +"CRLF is considered to be one line break. If *keepend* is ``0``, the line " +"break characters are not included in the resulting strings." +msgstr "" + +msgid "" +"Join a sequence of strings using the given *separator* and return the " +"resulting Unicode string." +msgstr "" + +msgid "" +"Return ``1`` if *substr* matches ``str[start:end]`` at the given tail end " +"(*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` a " +"suffix match), ``0`` otherwise. Return ``-1`` if an error occurred." +msgstr "" + +msgid "" +"Return the first position of *substr* in ``str[start:end]`` using the given " +"*direction* (*direction* == ``1`` means to do a forward search, *direction* " +"== ``-1`` a backward search). The return value is the index of the first " +"match; a value of ``-1`` indicates that no match was found, and ``-2`` " +"indicates that an error occurred and an exception has been set." +msgstr "" + +msgid "" +"Return the first position of the character *ch* in ``str[start:end]`` using " +"the given *direction* (*direction* == ``1`` means to do a forward search, " +"*direction* == ``-1`` a backward search). The return value is the index of " +"the first match; a value of ``-1`` indicates that no match was found, and " +"``-2`` indicates that an error occurred and an exception has been set." +msgstr "" + +msgid "*start* and *end* are now adjusted to behave like ``str[start:end]``." +msgstr "" + +msgid "" +"Return the number of non-overlapping occurrences of *substr* in " +"``str[start:end]``. Return ``-1`` if an error occurred." +msgstr "" + +msgid "" +"Replace at most *maxcount* occurrences of *substr* in *str* with *replstr* " +"and return the resulting Unicode object. *maxcount* == ``-1`` means replace " +"all occurrences." +msgstr "" + +msgid "" +"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, " +"and greater than, respectively." +msgstr "" + +msgid "" +"This function returns ``-1`` upon failure, so one should " +"call :c:func:`PyErr_Occurred` to check for errors." +msgstr "" + +msgid "" +"Compare a Unicode object, *uni*, with *string* and return ``-1``, ``0``, " +"``1`` for less than, equal, and greater than, respectively. It is best to " +"pass only ASCII-encoded strings, but the function interprets the input " +"string as ISO-8859-1 if it contains non-ASCII characters." +msgstr "" + +msgid "This function does not raise exceptions." +msgstr "" + +msgid "Rich compare two Unicode strings and return one of the following:" +msgstr "" + +msgid "``NULL`` in case an exception was raised" +msgstr "" + +msgid ":const:`Py_True` or :const:`Py_False` for successful comparisons" +msgstr "" + +msgid ":const:`Py_NotImplemented` in case the type combination is unknown" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Return a new string object from *format* and *args*; this is analogous to " +"``format % args``." +msgstr "" + +msgid "" +"Check whether *element* is contained in *container* and return true or false " +"accordingly." +msgstr "" + +msgid "" +"*element* has to coerce to a one element Unicode string. ``-1`` is returned " +"if there was an error." +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 (releasing the reference to the old string object and " +"creating a new :term:`strong reference` to the interned string object), " +"otherwise it leaves *\\*string* alone and interns it (creating a " +"new :term:`strong reference`). (Clarification: even though there is a lot of " +"talk about references, think of this function as reference-neutral; you own " +"the object after the call if and only if you owned it before the call.)" +msgstr "" + +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." +msgstr "" diff --git a/contents.po b/contents.po index 422beae7ca..a53f241887 100644 --- a/contents.po +++ b/contents.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Python Documentation contents" msgstr "Zawartość dokumentacji Pythona" diff --git a/copyright.po b/copyright.po index 5e13861ad8..81c73c3da8 100644 --- a/copyright.po +++ b/copyright.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Copyright" msgstr "Prawa autorskie" @@ -29,8 +29,10 @@ msgstr "Prawa autorskie" msgid "Python and this documentation is:" msgstr "Python i ta dokumentacja jest:" -msgid "Copyright © 2001-2022 Python Software Foundation. All rights reserved." +msgid "Copyright © 2001-2023 Python Software Foundation. All rights reserved." msgstr "" +"Prawa autorskie © 2001-2023 Python Software Foundation. Wszelkie prawa " +"zastrzeżone." msgid "Copyright © 2000 BeOpen.com. All rights reserved." msgstr "Copyright © 2000 BeOpen.com. Wszystkie prawa zastrzeżone." diff --git a/distributing/index.po b/distributing/index.po index 1426bf4840..b84f22711d 100644 --- a/distributing/index.po +++ b/distributing/index.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Wierzbicki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:50+0000\n" -"Last-Translator: Krzysztof Wierzbicki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Distributing Python Modules" msgstr "Dystrybucja modułów Pythona" @@ -102,11 +101,11 @@ msgstr "" 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 "" msgid "" @@ -200,7 +199,7 @@ msgid "How do I...?" msgstr "" msgid "These are quick answers or links for some common tasks." -msgstr "" +msgstr "Są to szybkie odpowiedzi lub linki do niektórych typowych zadań." msgid "... choose a name for my project?" msgstr "" @@ -235,6 +234,6 @@ msgid "" msgstr "" msgid "" -"`Python Packaging User Guide: Binary Extensions `__" +"`Python Packaging User Guide: Binary Extensions `__" msgstr "" diff --git a/distutils/_setuptools_disclaimer.po b/distutils/_setuptools_disclaimer.po index dfdfee7e44..8a6988cd2e 100644 --- a/distutils/_setuptools_disclaimer.po +++ b/distutils/_setuptools_disclaimer.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "" "This document is being retained solely until the ``setuptools`` " diff --git a/distutils/builtdist.po b/distutils/builtdist.po index 98c08846cc..d099c03ed1 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Creating Built Distributions" msgstr "Tworzenie Zbudowanych Dystrybucji" @@ -104,18 +104,18 @@ msgid "" "work.)" msgstr "" "wtedy Distutils buduje dystrybucję mojego modułu (samo Distutils w tym " -"przypadku), wykonuje \"fałszywą\" instalację (także w katalogu :file:" -"`build`), i tworzy domyślny rodzaj zbudowanej dystrybucji dla mojej maszyny/" -"środowiska. Domyślnym formatem dla zbudowanych dystrybucji jest \"durny\" " -"plik tar na Unix-ie, i prosty wykonywalny instalator w Windows. (Ten plik " -"tar jest uznawany za \"głupi\" gdyż musi zostać rozpakowany w szczególnym " -"miejscu aby mógł zadziałać.)" - -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 " +"przypadku), wykonuje \"fałszywą\" instalację (także w " +"katalogu :file:`build`), i tworzy domyślny rodzaj zbudowanej dystrybucji dla " +"mojej maszyny/środowiska. Domyślnym formatem dla zbudowanych dystrybucji " +"jest \"durny\" plik tar na Unix-ie, i prosty wykonywalny instalator w " +"Windows. (Ten plik tar jest uznawany za \"głupi\" gdyż musi zostać " +"rozpakowany w szczególnym miejscu aby mógł zadziałać.)" + +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}`.)" @@ -138,13 +138,13 @@ msgid "" "your distribution doesn't include any extensions." msgstr "" "Oczywiście, dla czystych dystrybucji języka pytonowskiego, to nie jest w " -"żaden sposób prostsze niż po prostu uruchomienie ``python setup.py install``" -"\\ ---ale dla dystrybucji \"nie\"-czystych, które zawierają rozszerzenia " -"które wymagają kompilacji, może to mieć znaczenie dla kogoś kto będzie mógł " -"użyć twoich rozszerzeń lub nie. Zaś tworzenie \"inteligentnie\" zbudowanych " -"dystrybucji, takich jak pakiet RPM lub instalator wykonywalny dla Windows, " -"jest dużo prostsze dla użytkowników nawet jeśli twoja dystrybucja nie " -"zawiera żadnych rozszerzeń." +"żaden sposób prostsze niż po prostu uruchomienie ``python setup.py " +"install``\\ ---ale dla dystrybucji \"nie\"-czystych, które zawierają " +"rozszerzenia które wymagają kompilacji, może to mieć znaczenie dla kogoś kto " +"będzie mógł użyć twoich rozszerzeń lub nie. Zaś tworzenie \"inteligentnie\" " +"zbudowanych dystrybucji, takich jak pakiet RPM lub instalator wykonywalny " +"dla Windows, jest dużo prostsze dla użytkowników nawet jeśli twoja " +"dystrybucja nie zawiera żadnych rozszerzeń." msgid "" "The :command:`bdist` command has a :option:`!--formats` option, similar to " @@ -157,9 +157,10 @@ msgid "" "---again, this archive would be unpacked from the root directory to install " "the Distutils." msgstr "" -"mogłoby gdy uruchomione na systemie Unix-owym, stworzyć plik :file:" -"`Distutils-1.0.{plat}.zip`\\---znów, to archiwum mogłoby być rozpakowane z " -"katalogu nadrzędnego systemu plików w celu zainstalowania Distutils." +"mogłoby gdy uruchomione na systemie Unix-owym, stworzyć " +"plik :file:`Distutils-1.0.{plat}.zip`\\---znów, to archiwum mogłoby być " +"rozpakowane z katalogu nadrzędnego systemu plików w celu zainstalowania " +"Distutils." msgid "The available formats for built distributions are:" msgstr "Dostępne formaty dla zbudowanych dystrybucji to:" @@ -198,7 +199,7 @@ msgid "``ztar``" msgstr "``ztar``" msgid "compressed tar file (:file:`.tar.Z`)" -msgstr "skompresowany plik tar (file`.tar.Z`)" +msgstr "skompresowany plik tar (:file:`.tar.Z`)" msgid "\\(3)" msgstr "\\(3)" @@ -264,9 +265,9 @@ msgid "" "requires either external :program:`zip` utility or :mod:`zipfile` module " "(part of the standard Python library since Python 1.6)" msgstr "" -"wymaga zewnętrznego programu użytkowego :program:`zip` lub modułu :mod:" -"`zipfile` (części standardowej biblioteki języka pytonowskiego od wersji 1.6 " -"języka pytonowskiego)" +"wymaga zewnętrznego programu użytkowego :program:`zip` lub " +"modułu :mod:`zipfile` (części standardowej biblioteki języka pytonowskiego " +"od wersji 1.6 języka pytonowskiego)" msgid "" "requires external :program:`rpm` utility, version 3.0.4 or better (use ``rpm " @@ -278,12 +279,12 @@ msgstr "" 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 "" msgid "Command" @@ -304,12 +305,21 @@ msgstr ":command:`bdist_rpm`" msgid "rpm, srpm" msgstr "rpm, srpm" +msgid ":command:`bdist_msi`" +msgstr ":command:`bdist_msi`" + +msgid "msi" +msgstr "msi" + +msgid "bdist_msi is deprecated since Python 3.9." +msgstr "" + msgid "" "The following sections give details on the individual :command:`bdist_\\*` " "commands." msgstr "" -"Następujące paragrafy opowiadają w szczegółach o poszczególnych poleceniach :" -"command:`bdist_\\*`" +"Następujące paragrafy opowiadają w szczegółach o poszczególnych " +"poleceniach :command:`bdist_\\*`" msgid "Creating RPM packages" msgstr "Tworzenie pakietów RPM" @@ -332,11 +342,11 @@ msgstr "" "RPMy, które współpracują z różnymi opartymi-o-RPM dystrybucjami." 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 "" "Zwykłym sposobem na utworzenie RPMu twojej dystrybucji modułu jest " -"uruchomienie polecenia :command:`bdist_rpm`:: " +"uruchomienie polecenia :command:`bdist_rpm`::" msgid "or the :command:`bdist` command with the :option:`!--format` option::" msgstr "" @@ -349,24 +359,25 @@ msgid "" msgstr "" "To pierwsze pozwala ci określić szczególne-dla-RPM opcje; to ostatnie " "pozwala Ci łatwo tworzyć wiele formatów za jednym zamachem. Jeśli " -"potrzebujesz zrobić obydwu, możesz jawnie wyszczególnić wiele poleceń :" -"command:`bdist_\\*` i ich opcji::" +"potrzebujesz zrobić obydwu, możesz jawnie wyszczególnić wiele " +"poleceń :command:`bdist_\\*` i ich opcji::" 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 " -"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:" +"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:" msgstr "" "Tworzenie pakietu RPM jest napędzane plikiem :file:`.spec`, tak jak używanie " "Distutils jest napędzane skryptem instalacyjnym. Aby ułatwić ci życie, " "polecenie :command:`bidst_rpm` zwykle tworzy plik :file:`.spec` oparte o " "informację którą mu dostarczasz w skrypcie instalacyjnym, w wierszu poleceń, " -"i w plikach konfiguracyjnych Distutils. Różne opcje i sekcje w pliku :file:`." -"spec` są pochodnymi po opcjach w skrypcie instalacyjnym w następujący " -"sposób: " +"i w plikach konfiguracyjnych Distutils. Różne opcje i sekcje w " +"pliku :file:`.spec` są pochodnymi po opcjach w skrypcie instalacyjnym w " +"następujący sposób:" msgid "RPM :file:`.spec` file option or section" msgstr "plik RPM :file:`.spec` opcja lub sekcja" @@ -515,8 +526,8 @@ msgid "" "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`." +"disable this file, you can pass the :option:`!--no-user-cfg` option " +"to :file:`setup.py`." msgstr "" msgid "" @@ -542,9 +553,9 @@ msgid "" "create the \"binary\" RPM (which may or may not contain binary code, " "depending on whether your module distribution contains Python extensions)" msgstr "" -"stwórz \"binarny\" pakiet RPM (który może zawierać lub może nie zawierać " -"kodu binarnego, w zależności od tego czy dystrybucja modułu zawiera " -"rozszerzenia języka pytonowskiego) " +"stwórz „binarny” pakiet RPM (który może zawierać lub może nie zawierać kodu " +"binarnego, w zależności od tego czy dystrybucja modułu zawiera rozszerzenia " +"Pythona)" msgid "" "Normally, RPM bundles the last two steps together; when you use the " @@ -554,13 +565,13 @@ msgstr "" "wszystkie trzy kroki są zwyczajowo zgromadzone razem." 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 "" msgid "Cross-compiling on Windows" @@ -689,8 +700,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 "" "To zadanie tworzy skrót. *cel* ( - z ang. - *target* ) jest ścieżką do " "programu do uruchomienia przez skrót. *description* jest opisem skrótu. " diff --git a/distutils/commandref.po b/distutils/commandref.po index 9153ccde2c..1af33da574 100644 --- a/distutils/commandref.po +++ b/distutils/commandref.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Command Reference" msgstr "Podręcznik poleceń" @@ -41,12 +41,13 @@ msgstr "Instalowanie modułów: rodzina poleceń :command:`install`" 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 "" "Polecenie install zapewnia, że polecenia budowy zostały uruchomione a potem " -"uruchamia podrzędne polecenia :command:`install_lib`, :command:" -"`install_data` i :command:`install_scripts`." +"uruchamia podrzędne " +"polecenia :command:`install_lib`, :command:`install_data` " +"i :command:`install_scripts`." msgid ":command:`install_data`" msgstr ":command:`install_data`" diff --git a/distutils/configfile.po b/distutils/configfile.po index b2a86fb7e0..c6087363dd 100644 --- a/distutils/configfile.po +++ b/distutils/configfile.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Writing the Setup Configuration File" msgstr "Pisanie pliku konfiguracyjnego instalacji" @@ -41,11 +41,11 @@ msgid "" "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." +"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 "" "Często nie jest możliwe zapisanie wszystkiego potrzebnego do zbudowania " "dystrybucji *a priori*: możesz potrzebować zdobyć pewne informacje od " @@ -69,8 +69,8 @@ msgid "" msgstr "" 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 "" "Instalatory mogą obejść część tego co umieścisz w pliku :file:`setup.py` " "przez edycję :file:`setup.cfg`" @@ -93,21 +93,21 @@ msgid "The basic syntax of the configuration file is simple:" msgstr "" 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 " -"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 " -"of the line. Long option values can be split across multiple lines simply " -"by indenting the continuation lines." +"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 of the line. Long option values can be split across " +"multiple lines simply by indenting the continuation lines." msgstr "" -"gdzie *command* jest jedną z komend Distutils (np. :command:`build_py`, :" -"command:`install`) i *option* jest jedną z opcji, którą komenda wspiera. " -"Dowolna liczba opci może być dostarczona do każdej komendy, i dowolna liczba " -"sekcji komend może być wewnątrz pliku. Puste linie są ignorowane, tak jak " -"komentarze, które zaczynają się od znaku ``'#'`` i ciągną aż do końca linii. " -"Długie wartości opcji mogą być dzielone pomiędzy kilka linii prosto przez " -"wcięcie linii kontynuacji." +"gdzie *command* jest jedną z komend Distutils " +"(np. :command:`build_py`, :command:`install`) i *option* jest jedną z opcji, " +"którą komenda wspiera. Dowolna liczba opci może być dostarczona do każdej " +"komendy, i dowolna liczba sekcji komend może być wewnątrz pliku. Puste linie " +"są ignorowane, tak jak komentarze, które zaczynają się od znaku ``'#'`` i " +"ciągną aż do końca linii. Długie wartości opcji mogą być dzielone pomiędzy " +"kilka linii prosto przez wcięcie linii kontynuacji." msgid "" "You can find out the list of options supported by a particular command with " diff --git a/distutils/examples.po b/distutils/examples.po index d51fdccdbc..a76cd7acee 100644 --- a/distutils/examples.po +++ b/distutils/examples.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Distutils Examples" msgstr "" @@ -122,9 +122,9 @@ msgstr "" 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 "" msgid "" @@ -134,8 +134,8 @@ msgstr "" 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 "" msgid "an appropriate setup script would be ::" @@ -156,8 +156,9 @@ 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::" +"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 "" msgid "then the corresponding setup script would be ::" @@ -182,8 +183,8 @@ msgid "If the extension actually belongs in a package, say :mod:`foopkg`, then" msgstr "" 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 "" msgid "Checking a package" @@ -229,19 +230,21 @@ msgid "" msgstr "" 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``." +"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 "" 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 "" msgid "" diff --git a/distutils/extending.po b/distutils/extending.po index a09a834c85..7968c7449d 100644 --- a/distutils/extending.po +++ b/distutils/extending.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Extending Distutils" msgstr "" @@ -52,9 +52,9 @@ msgid "" msgstr "" 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` " +"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 "" @@ -103,13 +103,14 @@ msgid "" "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`." +"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 "" msgid "Adding new distribution types" @@ -117,9 +118,9 @@ msgstr "" 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 "" diff --git a/distutils/index.po b/distutils/index.po index b01a39596a..6df9037b78 100644 --- a/distutils/index.po +++ b/distutils/index.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Wierzbicki , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Distributing Python Modules (Legacy version)" msgstr "" diff --git a/distutils/introduction.po b/distutils/introduction.po index a78ccf5024..00999ee3a0 100644 --- a/distutils/introduction.po +++ b/distutils/introduction.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "An Introduction to Distutils" msgstr "Wprowadzenie do Distutils" @@ -40,8 +39,8 @@ msgstr "" 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 "" "Ten dokument opisuje użycie Distutils do dystrybucji twoich modułów języka " "pytonowskiego koncentrując się na roli twórcy/dystrybutora: jeśli szukasz " @@ -49,7 +48,7 @@ msgstr "" "się do rozdziału :ref:`install-index`." msgid "Concepts & Terminology" -msgstr "Pojęcia i Terminy" +msgstr "Pojęcia i terminologia" msgid "" "Using the Distutils is quite simple, both for module developers and for " @@ -114,21 +113,20 @@ msgid "" "script may be run multiple times in the course of building and installing " "your module distribution." msgstr "" -"Skrypt instalacyjny jest zwykle raczej prosty, chociaż od kiedy jest pisany " -"w języku pytonowskim, nie ma odgórnych granic co można z nim zrobić, chociaż " -"powinieneś być ostrożny w umieszczaniu dowolnie kosztownych operacji w swoim " -"skrypcie instalacyjnym. W przeciwieństwie do dajmy na to skryptów " -"konfiguracyjnych w stylu Autoconf-a, skrypt instalacyjny może być " -"uruchamiany kilka razy w trakcie budowania i instalowania twojej dystrybucji " -"modułu. " +"Skrypt instalacyjny jest zwykle raczej prosty, chociaż jako że jest pisany w " +"Pythonie, nie ma odgórnych granic co można z nim zrobić, chociaż powinieneś " +"być ostrożny w umieszczaniu dowolnie kosztownych operacji w swoim skrypcie " +"instalacyjnym. W przeciwieństwie do dajmy na to skryptów konfiguracyjnych w " +"stylu Autoconf-a, skrypt instalacyjny może być uruchamiany kilka razy w " +"trakcie budowania i instalowania twojej dystrybucji modułu." 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::" msgstr "" -"Jeśli wszystkim czego chcesz dokonać jest dystrybuowanie modułu nazwanego :" -"mod:`foo` zawartego w pliku :file:`foo.py` wtedy twój plik skryptu " -"instalacyjnego może być tak prosty jak::" +"Jeśli wszystkim czego chcesz dokonać jest dystrybuowanie modułu " +"nazwanego :mod:`foo` zawartego w pliku :file:`foo.py` wtedy twój plik " +"skryptu instalacyjnego może być tak prosty jak::" msgid "Some observations:" msgstr "Pewne obserwacje" @@ -162,8 +160,8 @@ msgid "" "script` for an example)" msgstr "" "polecane jest abyś dostarczył nieco więcej informacji o danych, w " -"szczególności swoje imię, adres email i URL projektu (sięgnij do rozdziału :" -"ref:`setup-script` po przykład)" +"szczególności swoje imię, adres email i URL projektu (sięgnij do " +"rozdziału :ref:`setup-script` po przykład)" msgid "" "To create a source distribution for this module, you would create a setup " @@ -198,40 +196,41 @@ msgstr "" 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)." +"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 "" "Ten prosty przykład demonstruje pewne podstawowe pojęcia Distutils. Po " "pierwsze zarówno twórcy modułów jak i instalujący je mają ten sam podstawowy " "sprzęg użytkownika tj. skrypt instalacyjny. Różnica polega na tym, którego " -"*polecenia* ( - z ang. - *command* ) Distutils używają: polecenie :command:" -"`sdist` jest prawie wyłącznie dla twórców modułów, podczas gdy :command:" -"`install` jest częściej dla instalujących (chociaż większość twórców też " -"będzie chciała zainstalować swój własny kod czasami)." +"*polecenia* ( - z ang. - *command* ) Distutils używają: " +"polecenie :command:`sdist` jest prawie wyłącznie dla twórców modułów, " +"podczas gdy :command:`install` jest częściej dla instalujących (chociaż " +"większość twórców też będzie chciała zainstalować swój własny kod czasami)." 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`::" -msgstr "" -"Inne użyteczne formaty dystrybucji to RPMy, wypełnione przez polecenie :" -"command:`bdist_rpm`, program :program:`pkgtootl` Solarisa (:command:" -"`bdist_pkgtool`), i program swinstall` dla HP-UX (:command:`bdist_sdux`). Na " -"przykład, następujące polecenie utworzy plik RPM nazwany :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 "" +"Inne użyteczne formaty dystrybucji to RPMy, wypełnione przez " +"polecenie :command:`bdist_rpm`, program :program:`pkgtootl` Solarisa " +"(:command:`bdist_pkgtool`), i program swinstall` dla HP-UX " +"(:command:`bdist_sdux`). Na przykład, następujące polecenie utworzy plik RPM " +"nazwany :file:`foo-1.0.noarch.rpm`::" msgid "" "(The :command:`bdist_rpm` command uses the :command:`rpm` executable, " "therefore this has to be run on an RPM-based system such as Red Hat Linux, " "SuSE Linux, or Mandrake Linux.)" msgstr "" -"(Polecenie :command:`bdist_rpm` używa polecenia wykonywalnego :command:" -"`rpm`, zatem musi to być uruchamiane na opartym o RPMy systemie takim jak " -"Linux Red Hat, Linux SuSE, lub Linux Mandrake.) " +"(Polecenie :command:`bdist_rpm` używa polecenia " +"wykonywalnego :command:`rpm`, zatem musi to być uruchamiane na opartym o " +"RPMy systemie takim jak Linux Red Hat, Linux SuSE, lub Linux Mandrake.)" msgid "" "You can find out what distribution formats are available at any time by " @@ -255,7 +254,7 @@ msgstr "" "terminów języka pytonowskiego:" msgid "module" -msgstr "" +msgstr "moduł" msgid "" "the basic unit of code reusability in Python: a block of code imported by " @@ -287,18 +286,18 @@ msgid "" "(Note that currently, the Distutils only handles C/C++ extensions for " "Python.)" msgstr "" -"moduł napisany w niskopoziomowym języku wypełnienia języka pytonowskiego: C/C" -"++ dla języka pytonowskiego, Java dla języka Jytonowskiego. Typowo zawarty w " -"pojedynczym dynamicznie ładowalnym uprzednio skompilowanym pliku, np. plik " -"współdzielonych obiektów (- z ang. shared object - w skrócie so - :file:`." -"so`) dla rozszerzeń języka pytonowskiego dla Unix, i DLL (mając dane " -"rozszerzenie :file:`.pyd`) dla rozszerzeń języka pytonowskiego na Windowsie, " -"lub plik uogólnienia Javy dla języka rozszerzeń języka jytonowskiego. " -"(Zauważ, że obecnie, Distutils obsługuje tylko rozszerzenia C/C++ dla języka " -"pytonowskiego.)" +"moduł napisany w niskopoziomowym języku wypełnienia języka pytonowskiego: C/" +"C++ dla języka pytonowskiego, Java dla języka Jytonowskiego. Typowo zawarty " +"w pojedynczym dynamicznie ładowalnym uprzednio skompilowanym pliku, np. plik " +"współdzielonych obiektów (- z ang. shared object - w skrócie so " +"- :file:`.so`) dla rozszerzeń języka pytonowskiego dla Unix, i DLL (mając " +"dane rozszerzenie :file:`.pyd`) dla rozszerzeń języka pytonowskiego na " +"Windowsie, lub plik uogólnienia Javy dla języka rozszerzeń języka " +"jytonowskiego. (Zauważ, że obecnie, Distutils obsługuje tylko rozszerzenia C/" +"C++ dla języka pytonowskiego.)" msgid "package" -msgstr "" +msgstr "pakiet" msgid "" "a module that contains other modules; typically contained in a directory in " @@ -306,8 +305,8 @@ msgid "" "file :file:`__init__.py`." msgstr "" "moduł który zawiera inne moduły; typowo przechowywany w katalogu w systemie " -"plików i rozróżniany od innych katalogów przez obecność pliku :file:" -"`__init__.py`." +"plików i rozróżniany od innych katalogów przez obecność " +"pliku :file:`__init__.py`." msgid "root package" msgstr "" diff --git a/distutils/setupscript.po b/distutils/setupscript.po index 5020b6cde8..dbdab04b3d 100644 --- a/distutils/setupscript.po +++ b/distutils/setupscript.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Writing the Setup Script" msgstr "Pisanie Skryptu Instalacyjnego" @@ -43,18 +43,18 @@ msgid "" "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`." +"Distutils by the module developer is supplied as keyword arguments " +"to :func:`setup`." msgstr "" "Skrypt instalacyjny jest w centrum wszystkich czynności podczas budowania, " "rozprowadzania i instalowania modułów przy użyciu Distutils. Głównym " "zadaniem skryptu instalacyjnego jest opisanie dystrybucji twojego modułu dla " "Distutils, tak aby różne polecenia które operują na twoich modułach robiły " "to prawidłowo. Jak widzieliśmy w rozdziale :ref:`distutils-simple-example` " -"powyżej, skrypt instalacyjny składa się głównie z wywołania zadania :func:" -"`setup`, i większość informacji dostarczonych do Distutils przez twórcę " -"modułu jest dostarczonych jako parametrów kluczowych dla zadania :func:" -"`setup`." +"powyżej, skrypt instalacyjny składa się głównie z wywołania " +"zadania :func:`setup`, i większość informacji dostarczonych do Distutils " +"przez twórcę modułu jest dostarczonych jako parametrów kluczowych dla " +"zadania :func:`setup`." msgid "" "Here's a slightly more involved example, which we'll follow for the next " @@ -128,14 +128,14 @@ msgid "" "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." +"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 "" msgid "" @@ -161,9 +161,9 @@ msgstr "" "obietnicę że plik :file:`lib/foo/__init__.py` istnieje." 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 "" "Inną możliwą konwencją jest umieszczenie pakietu :mod:`foo` od razu w " "katalogu :file:`lib`, pakietu :mod:`foo.bar` w katalogu :file:`lib/bar` itd. " @@ -173,11 +173,11 @@ 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`` " -"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.)" +"'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.)" msgstr "" msgid "Listing individual modules" @@ -192,17 +192,17 @@ msgid "" msgstr "" "Dla małej dystrybucji modułu, mógłbyś chcieć wypisać wszystkie moduły " "zamiast wypisywać pakiety---szczególnie w przypadku pojedynczego modułu, " -"który wchodzi w skład \"nadrzędnego pakietu\" - z ang. - \"root package" -"\" (tj. żadnego pakietu wcale). Najprostszy przypadek został pokazany w " +"który wchodzi w skład \"nadrzędnego pakietu\" - z ang. - \"root package\" " +"(tj. żadnego pakietu wcale). Najprostszy przypadek został pokazany w " "sekcji :ref:`distutils-simple-example`; tutaj jest pokazany trochę bardziej " "zaangażowany przykład::" 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 "" @@ -228,12 +228,12 @@ msgstr "" 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 "" msgid "" @@ -241,10 +241,10 @@ msgid "" "along with :func:`setup`. Thus, the setup script for a module distribution " "that contains only this one extension and nothing else might be::" msgstr "" -"Uogólnienie :class:`Extension` może być importowane z modułu :mod:`distutils." -"core` razem z zadaniem :func:`setup`. Zatem skrypt instalacyjny dla " -"dystrybucji modułu, który zawiera tylko to rozszerzenie i nic więcej mógłby " -"wyglądać::" +"Uogólnienie :class:`Extension` może być importowane z " +"modułu :mod:`distutils.core` razem z zadaniem :func:`setup`. Zatem skrypt " +"instalacyjny dla dystrybucji modułu, który zawiera tylko to rozszerzenie i " +"nic więcej mógłby wyglądać::" msgid "" "The :class:`Extension` class (actually, the underlying extension-building " @@ -283,16 +283,16 @@ msgstr "" 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, ::" +"same base package), use the ``ext_package`` keyword argument " +"to :func:`setup`. For example, ::" msgstr "" 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 "" -"skompiluje plik :file:`foo.c` do rozszerzenia :mod:`pkg.foo`, i plik :file:" -"`bar.c` do :mod:`pkg.subpkg.bar`." +"skompiluje plik :file:`foo.c` do rozszerzenia :mod:`pkg.foo`, i " +"plik :file:`bar.c` do :mod:`pkg.subpkg.bar`." msgid "Extension source files" msgstr "pliki źródłowe rozszerzenia" @@ -330,14 +330,14 @@ msgstr "Lub w wierszu poleceń w następujący sposób::" 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 "" "Na niektórych maszynach/środowiskach, możesz załączyć nie-źródłowe pliki " "które są przetwarzane przez kompilator i załączane w twoim rozszerzeniu. " -"Obecnie, to po prostu oznacza pliki Windowsowych wiadomości tekstowych (:" -"file:`.mc`) i definicji zasobów (:file:`.rc`) dla Visual C++. Te będą " +"Obecnie, to po prostu oznacza pliki Windowsowych wiadomości tekstowych " +"(:file:`.mc`) i definicji zasobów (:file:`.rc`) dla Visual C++. Te będą " "skompilowane do plików zasobów binarnych (:file:`.res`) i połączonych w plik " "wykonywalny." @@ -389,8 +389,8 @@ msgstr "" 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 "" "Jeśli jednak musisz wstawić katalog załączeń :file:`Numerical` w całości do " "twojej ścieżki poszukiwań nagłówków, jednakże, możesz znaleźć ten katalog " @@ -526,11 +526,11 @@ msgid "It can obsolete packages or modules." msgstr "Może powodować że pakiety lub moduły staną się niepotrzebne." 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 "" -"Te relacje mogą być określane przy użyciu kluczowych parametrów zadania :" -"func:`distutils.core.setup`." +"Te relacje mogą być określane przy użyciu kluczowych parametrów " +"zadania :func:`distutils.core.setup`." msgid "" "Dependencies on other Python modules and packages can be specified by " @@ -539,9 +539,9 @@ msgid "" "optionally what versions are sufficient." msgstr "" "Zależności od innych modułów pytonowskich i pakietów mogą być określane " -"przez dostarczenie słowa kluczowego *requires* jako parametru do zadania :" -"func:`setup`. Wartość musi być listą ciągów znaków. Każdy ciąg znaków " -"określa pakiet, który jest wymagany, i opcjonalnie które wersje są " +"przez dostarczenie słowa kluczowego *requires* jako parametru do " +"zadania :func:`setup`. Wartość musi być listą ciągów znaków. Każdy ciąg " +"znaków określa pakiet, który jest wymagany, i opcjonalnie które wersje są " "wystarczające." msgid "" @@ -609,7 +609,7 @@ msgstr "" "Wartość tego słowa kluczowego jest listą ciągów znaków, z których każdy " "nazywa pytonowski moduł lub pakiet, i dodatkowo (nadobowiązkowo) określa " "wersję. Jeśli wersja nie jest określona, zakładana jest zgodność wersji z " -"wersją dystrybucji. " +"wersją dystrybucji." msgid "Some examples:" msgstr "Trochę przykładów:" @@ -671,9 +671,9 @@ msgid "" "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 "" msgid "" @@ -698,8 +698,8 @@ msgstr "" "Często dodatkowe pliki konieczne są do zainstalowania dla pakietu. Te pliki " "są często plikami danych które są blisko związane z wypełnieniem zadań " "pakietu, lub plikami tekstowymi zawierającymi dokumentację która może być " -"interesująca dla programisty używającego pakietu. Te pliki zwane są :dfn:" -"`danymi pakietu`." +"interesująca dla programisty używającego pakietu. Te pliki zwane " +"są :dfn:`danymi pakietu`." msgid "" "Package data can be added to packages using the ``package_data`` keyword " @@ -711,13 +711,13 @@ msgid "" "the source directories. They may contain glob patterns as well." msgstr "" "Dane pakietu mogą być dodawane do pakietów używając słowa kluczowego " -"``package_data`` - z ang. - ``danych pakietu`` parametru dla zadania :func:" -"`setup`. Wartość musi być mapowaniem z nazwy pakietu na listę odnoszących " -"się nazw ścieżek które powinny zostać skopiowane do pakietu. Ścieżki są " -"interpretowane jako względne do katalogu zawierającego pakiet (informacja z " -"mapowania ``package_dir`` jest używana jeśli jest to właściwe); to jest, " -"pliki oczekiwane są aby były częścią pakietu w katalogach źródłowych. Mogą " -"zawierać znaczniki \"globalne\" także." +"``package_data`` - z ang. - ``danych pakietu`` parametru dla " +"zadania :func:`setup`. Wartość musi być mapowaniem z nazwy pakietu na listę " +"odnoszących się nazw ścieżek które powinny zostać skopiowane do pakietu. " +"Ścieżki są interpretowane jako względne do katalogu zawierającego pakiet " +"(informacja z mapowania ``package_dir`` jest używana jeśli jest to " +"właściwe); to jest, pliki oczekiwane są aby były częścią pakietu w " +"katalogach źródłowych. Mogą zawierać znaczniki \"globalne\" także." msgid "" "The path names may contain directory portions; any necessary directories " @@ -779,10 +779,10 @@ msgstr "" 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 "" msgid "" @@ -959,10 +959,10 @@ msgid "" "option which is deprecated but still acts as an alias for ``license``." msgstr "" "Pole ``licencja`` - z ang. - ``license`` jest tekstem oznaczającym licencję " -"ochraniającą pakiet gdzie licencja nie jest wybrana z klasyfikacji \"Licencji" -"\" Znaleźnych. Zobacz pole ``Classifier`` - ``klasyfikator``. Zauważ, że " -"istnieje opcja dystrybucji ``licencji`` która choć jest przestarzała ale " -"wciąż służy jako synonim ``licencji``." +"ochraniającą pakiet gdzie licencja nie jest wybrana z klasyfikacji " +"\"Licencji\" Znaleźnych. Zobacz pole ``Classifier`` - ``klasyfikator``. " +"Zauważ, że istnieje opcja dystrybucji ``licencji`` która choć jest " +"przestarzała ale wciąż służy jako synonim ``licencji``." msgid "This field must be a list." msgstr "" @@ -987,8 +987,8 @@ msgid "'long string'" msgstr "" 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 "" msgid "'list of strings'" diff --git a/distutils/sourcedist.po b/distutils/sourcedist.po index 277cd9afd9..fa5a1f26d5 100644 --- a/distutils/sourcedist.po +++ b/distutils/sourcedist.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Creating a Source Distribution" msgstr "Tworzenie dystrybucji źródłowej" @@ -37,24 +37,25 @@ msgstr "" "tutaj zawarte." 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 "" -"Jak pokazano w rozdziale :ref:`distutils-simple-example`, używasz polecenia :" -"command:`sdist` aby utworzyć dystrybucję źródłową. W najprostszym " +"Jak pokazano w rozdziale :ref:`distutils-simple-example`, używasz " +"polecenia :command:`sdist` aby utworzyć dystrybucję źródłową. W najprostszym " "przypadku, ::" 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 "" "(zakładając że nie ustaliłeś żadnych opcji polecenia :command:`sdist`w " -"skrypcie instalacyjnym lub pliku konfiguracyjnym), polecenie :command:" -"`sdist` tworzy archiwum domyślnego formatu dla danej maszyny/środowiska. " -"Domyślnym formatem jest zgzipowany plik tar (:file:`.tar.gz`) na Unixie i " -"plik ZIP na Windows." +"skrypcie instalacyjnym lub pliku konfiguracyjnym), " +"polecenie :command:`sdist` tworzy archiwum domyślnego formatu dla danej " +"maszyny/środowiska. Domyślnym formatem jest zgzipowany plik tar " +"(:file:`.tar.gz`) na Unixie i plik ZIP na Windows." msgid "" "You can specify as many formats as you like using the :option:`!--formats` " @@ -110,7 +111,7 @@ msgid "``ztar``" msgstr "``ztar``" msgid "compressed tar file (:file:`.tar.Z`)" -msgstr "skompresowany plik tar (file`.tar.Z`)" +msgstr "skompresowany plik tar (:file:`.tar.Z`)" msgid "(4),(5)" msgstr "" @@ -137,9 +138,9 @@ msgid "" "requires either external :program:`zip` utility or :mod:`zipfile` module " "(part of the standard Python library since Python 1.6)" msgstr "" -"wymaga zewnętrznego programu użytkowego :program:`zip` lub modułu :mod:" -"`zipfile` (części standardowej biblioteki języka pytonowskiego od wersji 1.6 " -"języka pytonowskiego)" +"wymaga zewnętrznego programu użytkowego :program:`zip` lub " +"modułu :mod:`zipfile` (części standardowej biblioteki języka pytonowskiego " +"od wersji 1.6 języka pytonowskiego)" msgid "" "requires the :program:`compress` program. Notice that this format is now " @@ -150,8 +151,8 @@ msgstr "" "pytonowskiego." msgid "" -"deprecated by `PEP 527 `_; `PyPI `_ only accepts ``.zip`` and ``.tar.gz`` files." +"deprecated by `PEP 527 `_; `PyPI " +"`_ only accepts ``.zip`` and ``.tar.gz`` files." msgstr "" msgid "" @@ -203,8 +204,8 @@ msgstr "" "testowania dystrybucji modułów języka pytonowskiego)" 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 "" @@ -212,24 +213,24 @@ msgid "" "all files that matches the ``package_data`` metadata. See :ref:`distutils-" "installing-package-data`." msgstr "" -"wszystkie pliki które odpowiadają danym-o-danych ``package_data``. Zobacz :" -"ref:`distutils-installing-package-data`." +"wszystkie pliki które odpowiadają danym-o-danych ``package_data``. " +"Zobacz :ref:`distutils-installing-package-data`." msgid "" "all files that matches the ``data_files`` metadata. See :ref:`distutils-" "additional-files`." msgstr "" -"wszystkie pliki które odpowiadają danym-o-danych ``data_files``. Zobacz :ref:" -"`distutils-additional-files`." +"wszystkie pliki które odpowiadają danym-o-danych ``data_files``. " +"Zobacz :ref:`distutils-additional-files`." 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 " -"generates a manifest based on its instructions and what it finds in the " +"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 "" "Czasem to jest wystarczające, ale zwykle potrzebujesz określić dodatkowe " @@ -254,9 +255,9 @@ msgstr "" "przypadku." 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 "" msgid "" @@ -309,11 +310,13 @@ msgstr "" "wszystkie pliki w drzewie budowania Distutils (domyślne :file:`build/`)" 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 "" -"wszystkie pliki w katalogach nazwanych :file:`RCS`, :file:`CVS`, :file:`." -"svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` or :file:`_darcs`" +"wszystkie pliki w katalogach " +"nazwanych :file:`RCS`, :file:`CVS`, :file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` " +"or :file:`_darcs`" msgid "" "Now we have our complete list of files, which is written to the manifest for " @@ -325,24 +328,24 @@ msgstr "" 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 "" 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 "" -"Podążając za wzorem manifestu własnego Distutils, prześledźmy jak polecenie :" -"command:`sdist` buduje listę plików do załączenia w źródłowej dystrybucji " -"Distutils:" +"Podążając za wzorem manifestu własnego Distutils, prześledźmy jak " +"polecenie :command:`sdist` buduje listę plików do załączenia w źródłowej " +"dystrybucji Distutils:" 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 "" msgid "" @@ -356,8 +359,9 @@ msgid "include :file:`test/test\\*.py` (standard files)" msgstr "include :file:`test/test\\*.py` (standardowe pliki)" 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 "" "załącz pliki :file:`\\*.txt` w nadrzędnym katalogu dystrybucji (to odnajdzie " "plik :file:`README.txt` po raz drugi, ale takie nadmiarowości są " @@ -371,10 +375,10 @@ msgstr "" "poddrzewie pod :file:`examples`," msgid "" -"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" +"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 "" "wyłącz wszystkie pliki w poddrzewach pasujące do :file:`examples/sample?/" "build`\\ --- to może wyłączyć pliki załączone w poprzednich dwóch krokach, " @@ -382,12 +386,13 @@ msgstr "" "poleceniu ``recursive-include``" msgid "" -"exclude the entire :file:`build` tree, and any :file:`RCS`, :file:`CVS`, :" -"file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` and :file:`_darcs` " -"directories" +"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 "" -"wyłącz całe drzewo :file:`build`, i wszystkie katalogi :file:`RCS` :file:" -"`CVS`, :file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` i :file:`_darcs`" +"wyłącz całe drzewo :file:`build`, i wszystkie " +"katalogi :file:`RCS` :file:`CVS`, :file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` " +"i :file:`_darcs`" msgid "" "Just like in the setup script, file and directory names in the manifest " @@ -435,9 +440,9 @@ msgstr "" "dystrybucji źródłowej" 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 " -"\"include\" and \"exclude\" sets." +"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 "" msgid "" diff --git a/extending/embedding.po b/extending/embedding.po new file mode 100644 index 0000000000..8a96d4eb43 --- /dev/null +++ b/extending/embedding.po @@ -0,0 +1,290 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Embedding Python in Another Application" +msgstr "" + +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++ " +"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." +msgstr "" + +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 " +"occasionally call the Python interpreter to run some Python code." +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." +msgstr "" + +msgid "" +"There are several different ways to call the interpreter: you can pass a " +"string containing Python statements to :c:func:`PyRun_SimpleString`, or you " +"can pass a stdio file pointer and a file name (for identification in error " +"messages only) to :c:func:`PyRun_SimpleFile`. You can also call the lower-" +"level operations described in the previous chapters to construct and use " +"Python objects." +msgstr "" + +msgid ":ref:`c-api-index`" +msgstr ":ref:`c-api-index`" + +msgid "" +"The details of Python's C interface are given in this manual. A great deal " +"of necessary information can be found here." +msgstr "" + +msgid "Very High Level Embedding" +msgstr "" + +msgid "" +"The simplest form of embedding Python is the use of the very high level " +"interface. This interface is intended to execute a Python script without " +"needing to interact with the application directly. This can for example be " +"used to perform some operation on a file. ::" +msgstr "" + +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." +msgstr "" + +msgid "Beyond Very High Level Embedding: An overview" +msgstr "" + +msgid "" +"The high level interface gives you the ability to execute arbitrary pieces " +"of Python code from your application, but exchanging data values is quite " +"cumbersome to say the least. If you want that, you should use lower level " +"calls. At the cost of having to write more C code, you can achieve almost " +"anything." +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:" +msgstr "" + +msgid "Convert data values from Python to C," +msgstr "" + +msgid "Perform a function call to a C routine using the converted values, and" +msgstr "" + +msgid "Convert the data values from the call from C to Python." +msgstr "" + +msgid "When embedding Python, the interface code does:" +msgstr "" + +msgid "Convert data values from C to Python," +msgstr "" + +msgid "" +"Perform a function call to a Python interface routine using the converted " +"values, and" +msgstr "" + +msgid "Convert the data values from the call from Python to C." +msgstr "" + +msgid "" +"As you can see, the data conversion steps are simply swapped to accommodate " +"the different direction of the cross-language transfer. The only difference " +"is the routine that you call between both data conversions. When extending, " +"you call a C routine, when embedding, you call a Python routine." +msgstr "" + +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 " +"interpreter, you can refer to earlier chapters for the required information." +msgstr "" + +msgid "Pure Embedding" +msgstr "" + +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)." +msgstr "" + +msgid "The code to run a function defined in a Python script is:" +msgstr "" + +msgid "" +"This code loads a Python script using ``argv[1]``, and calls the function " +"named in ``argv[2]``. Its integer arguments are the other values of the " +"``argv`` array. If you :ref:`compile and link ` this program " +"(let's call the finished executable :program:`call`), and use it to execute " +"a Python script, such as:" +msgstr "" + +msgid "then the result should be:" +msgstr "" + +msgid "" +"Although the program is quite large for its functionality, most of the code " +"is for data conversion between Python and C, and for error reporting. The " +"interesting part with respect to embedding Python starts with ::" +msgstr "" + +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. ::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Upon return of the function, ``pValue`` is either ``NULL`` or it contains a " +"reference to the return value of the function. Be sure to release the " +"reference after examining the value." +msgstr "" + +msgid "Extending Embedded Python" +msgstr "" + +msgid "" +"Until now, the embedded Python interpreter had no access to functionality " +"from the application itself. The Python API allows this by extending the " +"embedded interpreter. That is, the embedded interpreter gets extended with " +"routines provided by the application. While it sounds complex, it is not so " +"bad. Simply forget for a while that the application starts the Python " +"interpreter. Instead, consider the application to be a set of subroutines, " +"and write some glue code that gives Python access to those routines, just " +"like you would write a normal Python extension. For example::" +msgstr "" + +msgid "" +"Insert the above code just above the :c:func:`main` function. Also, insert " +"the following two statements before the call to :c:func:`Py_Initialize`::" +msgstr "" + +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" +msgstr "" + +msgid "" +"In a real application, the methods will expose an API of the application to " +"Python." +msgstr "" + +msgid "Embedding Python in C++" +msgstr "" + +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+" +"+." +msgstr "" + +msgid "Compiling and Linking under Unix-like systems" +msgstr "" + +msgid "" +"It is not necessarily trivial to find the right flags to pass to your " +"compiler (and linker) in order to embed the Python interpreter into your " +"application, particularly because Python needs to load library modules " +"implemented as C dynamic extensions (:file:`.so` files) linked against it." +msgstr "" + +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 " +"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:" +msgstr "" + +msgid "" +"``pythonX.Y-config --cflags`` will give you the recommended flags when " +"compiling:" +msgstr "" + +msgid "" +"``pythonX.Y-config --ldflags --embed`` will give you the recommended flags " +"when linking:" +msgstr "" + +msgid "" +"To avoid confusion between several Python installations (and especially " +"between the system Python and your own compiled Python), it is recommended " +"that you use the absolute path to :file:`python{X.Y}-config`, as in the " +"above example." +msgstr "" + +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:" +msgstr "" diff --git a/extending/extending.po b/extending/extending.po index e5c09fa819..703fcb9211 100644 --- a/extending/extending.po +++ b/extending/extending.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Extending Python with C or C++" msgstr "Rozszerzanie Pythona za pomocą C lub C++" @@ -47,8 +47,8 @@ msgstr "" "Aby wspierać rozszerzenia, API Pythona (Application Programmers Interface) " "określa zbiór funkcji, makropoleceń i zmiennych, które dostarczają dostęp do " "większości aspektów systemu czasu-wykonania Pythona. API Pythona jest " -"załączane w źródłowym pliku C przez załączenie pliku nagłówkowego ``\"Python." -"h\"``." +"załączane w źródłowym pliku C przez załączenie pliku nagłówkowego " +"``\"Python.h\"``." msgid "" "The compilation of an extension module depends on its intended use as well " @@ -83,9 +83,9 @@ msgstr "" 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 "" "Zaczynając od stworzenia pliku :file:`spammodule.c` (Historycznie, jeśli " "moduł był nazwany ``spam``, plik C zawierający jego wypełnienie jest " @@ -108,8 +108,8 @@ msgid "" "any standard headers are included." msgstr "" "Jako że Python może definiować pewne definicje preprocesora, które wpływają " -"na pliki nagłówkowe na niektórych systemach, *musisz* załączyć plik :file:" -"`Python.h` przed jakimikolwiek standardowymi nagłówkami." +"na pliki nagłówkowe na niektórych systemach, *musisz* załączyć " +"plik :file:`Python.h` przed jakimikolwiek standardowymi nagłówkami." msgid "" "It is recommended to always define ``PY_SSIZE_T_CLEAN`` before including " @@ -119,11 +119,11 @@ msgstr "" 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." +"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 "" msgid "" @@ -205,18 +205,18 @@ msgstr "" 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." +"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 "" 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 "" msgid "" @@ -249,10 +249,11 @@ msgstr "" 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." +"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 "" msgid "" @@ -263,8 +264,8 @@ msgid "" msgstr "" 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 "" @@ -273,11 +274,12 @@ msgid "" "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." +"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 "" msgid "" @@ -289,8 +291,8 @@ msgstr "" "początku pliku::" 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 "" msgid "" @@ -304,10 +306,10 @@ 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." +"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 "" msgid "" @@ -360,8 +362,8 @@ msgstr "" msgid "" "If you have a C function that returns no useful argument (a function " "returning :c:expr:`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 "" msgid "" @@ -388,8 +390,9 @@ msgstr "" 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 "" msgid "" @@ -408,9 +411,9 @@ msgstr "" 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 "" msgid "" @@ -423,23 +426,24 @@ msgstr "" "środowisko, i dla C++ deklaruje zadanie jako ``extern \"C\"``." 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 " -"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``." +"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``." msgstr "" 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 "" msgid "" @@ -473,9 +477,10 @@ 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 "" "Są jeszcze dwie rzeczy które trzeba zrobić zanim będzie można użyć nowego " "rozszerzenia: skompilowanie go i podłączenie z systemem Pythona. Jeśli " @@ -501,12 +506,12 @@ msgid "" "running ':program:`make` Makefile'. (This is necessary each time you change " "the :file:`Setup` file.)" msgstr "" -"i przebuduj program interpretujący przez uruchomienie programu :program:" -"`make` w katalogu głównym instalacji. Możesz także uruchomić program :" -"program:`make` w podkatalogu :file:`Modules/`, ale wtedy musisz najpierw " -"przebudować plik :file:`Makefile` tam przez uruchomienie programu :program:" -"`make` Makefile'. To jest konieczne za każdym razem gdy zmieniasz plik :file:" -"`Setup`.)" +"i przebuduj program interpretujący przez uruchomienie " +"programu :program:`make` w katalogu głównym instalacji. Możesz także " +"uruchomić program :program:`make` w podkatalogu :file:`Modules/`, ale wtedy " +"musisz najpierw przebudować plik :file:`Makefile` tam przez uruchomienie " +"programu :program:`make` Makefile'. To jest konieczne za każdym razem gdy " +"zmieniasz plik :file:`Setup`.)" msgid "" "If your module requires additional libraries to link with, these can be " @@ -560,10 +565,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -574,22 +579,24 @@ msgid "" msgstr "" 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 "" 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." +"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 "" msgid "" @@ -629,9 +636,10 @@ msgid "" msgstr "" 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 "" msgid "Extracting Parameters in Extension Functions" @@ -679,20 +687,20 @@ msgid "" msgstr "" 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 "" 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 "" "Zagnieżdźone krotki nie mogą być wczytane gdy używane są parametry słów " "kluczowych! Parametry słów kluczowych przekazane do zadania które nie są " @@ -715,10 +723,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -749,16 +757,16 @@ msgstr "" 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. " -"This is called :dfn:`using freed memory`. It has the same bad consequences " -"as referencing uninitialized data --- core dumps, wrong results, mysterious " -"crashes." +"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." msgstr "" msgid "" @@ -842,9 +850,9 @@ msgstr "" 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 :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." msgstr "" msgid "Reference Counting in Python" @@ -852,12 +860,12 @@ msgstr "Zliczanie odniesień w języku pytonowskim" 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 " -"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 " -"object." +"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 object." msgstr "" msgid "" @@ -899,11 +907,11 @@ msgstr "" "pozbył się go." 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 "" msgid "Ownership Rules" @@ -923,19 +931,19 @@ msgid "" "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." +"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 "" 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 "" msgid "" @@ -948,10 +956,11 @@ 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.\")" +"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 "" msgid "" @@ -998,7 +1007,7 @@ msgid "" "Looks harmless, right? But it's not!" msgstr "" "To zadanie najpierw pożycza odniesienie do ``list[0]``, potem zamienia " -"``list[1] na wartość ``0``, i ostatecznie wypisuje pożyczone odniesienie. " +"``list[1]`` na wartość ``0``, i ostatecznie wypisuje pożyczone odniesienie. " "Wydaje się nieszkodliwe, czyż nie? A jednak jest!" msgid "" @@ -1070,8 +1079,8 @@ msgstr "" 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 "" msgid "" @@ -1159,19 +1168,18 @@ msgid "" msgstr "" "Na pierwszy rzut oka to wydaje się proste: napisać zadania (bez deklarowania " "ich jako ``statycznych``, oczywiście), dostarczyć odpowiedni plik " -"nagłówkowy, i udokumentować sprzęg programowania aplikacji (API) C. I " -"faktycznie to mogłoby zadziałać jeśli wszystkie rozszerzające moduły byłyby " -"zawsze złączone statycznie z programem interpretującym polecenia języka " -"pytonowskiego. Gdy moduły są używane jako współdzielone biblioteki, " +"nagłówkowy, i udokumentować API języka C. I faktycznie to mogłoby zadziałać " +"jeśli wszystkie rozszerzające moduły byłyby zawsze złączone statycznie z " +"interpreterem Pythona. Gdy moduły są używane jako współdzielone biblioteki, " "jednakże, symbole zdefiniowane w jednym module mogą nie być widoczne dla " "innych modułów. Szczegóły widoczności zależą od systemu operacyjnego; " -"niektóre systemy używają jednej nadrzędnej przestrzeni nazw dla programu " -"interpretującego polecenia języka pytonowskiego i wszystkich modułów " -"rozszerzających (dla Windows, na przykład), podczas gdy inne wymagają jawnej " -"listy importowanych symboli w czasie łączenia modułów (AIX jest jednym z " -"przykładów), lub oferują wybór różnych strategii (większość Unix-ów). I " -"nawet jeśli symbole są widoczne nadrzędnie, moduł którego zadania ktoś " -"chciałby uruchomić mogły nie zostać jeszcze załadowane! " +"niektóre systemy używają jednej nadrzędnej przestrzeni nazw dla interpretera " +"Pythona i wszystkich modułów rozszerzających (dla Windows, na przykład), " +"podczas gdy inne wymagają jawnej listy importowanych symboli w czasie " +"łączenia modułów (AIX jest jednym z przykładów), lub oferują wybór różnych " +"strategii (większość Unix-ów). I nawet jeśli symbole są widoczne nadrzędnie, " +"moduł którego zadania ktoś chciałby uruchomić mogły nie zostać jeszcze " +"załadowane!" msgid "" "Portability therefore requires not to make any assumptions about symbol " @@ -1295,13 +1303,13 @@ msgid "" "The bulk of the work is in the header file :file:`spammodule.h`, which looks " "like this::" msgstr "" -"Większa część pracy jest wykonywana w pliku nagłówkowym :file:`spammodule." -"h`, który wygląda następująco::" +"Większa część pracy jest wykonywana w pliku " +"nagłówkowym :file:`spammodule.h`, który wygląda następująco::" 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 "" msgid "" @@ -1326,15 +1334,15 @@ msgstr "" "które są szczególnie użyteczne dla umieszczania i zabierania miejsca w " "pamięci wskaźników zachowywanych w kapsule. Szczegóły są opisane w " "podręczniku użytkownika API Python/C w rozdziale :ref:`capsules` i w " -"wypełnieniu programowym kapsuł (plików :file:`Include/pycapsule.h` i :file:" -"`Objects/pycapsule.c` w dystrybucji źródłowej kodu Pythona)." +"wypełnieniu programowym kapsuł (plików :file:`Include/pycapsule.h` " +"i :file:`Objects/pycapsule.c` w dystrybucji źródłowej kodu Pythona)." msgid "Footnotes" msgstr "Przypisy" 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 "" "sprzęg dla tego zadania już istnieje w standardowym module :mod:`os` --- " "został on wybrany jako prosty i przejrzysty przykład." diff --git a/extending/index.po b/extending/index.po index 321ab51710..a381fae377 100644 --- a/extending/index.po +++ b/extending/index.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Extending and Embedding the Python Interpreter" msgstr "Rozszerzony i wbudowany interpreter Python" @@ -58,8 +57,8 @@ msgstr "" "w Pythonie) dające językowi duże pole zastosowań." 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 "" "Aby zapoznać się z dokładną instrukcją dla Python/C API, spójrz na :ref:`c-" "api-index`." @@ -70,14 +69,21 @@ msgstr "Rekomendowane zewnętrzne narzędzia." 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." +"cython.org/>`_, `cffi `_, `SWIG `_ and `Numba `_ offer both simpler " +"and more sophisticated approaches to creating C and C++ extensions for " +"Python." msgstr "" +"Ten przewodnik obejmuje jedynie podstawowe narzędzia do tworzenia rozszerzeń " +"w ramach tej wersji CPythona. Narzędzia innych firm, takie jak `Cython " +"`_, `cffi `_, `SWIG " +"`_ i `Numba `_ oferują " +"zarówno prostsze, jak i bardziej wyrafinowane podejścia do tworzenia " +"rozszerzeń C i C++ dla Python." msgid "" -"`Python Packaging User Guide: Binary Extensions `_" +"`Python Packaging User Guide: Binary Extensions `_" msgstr "" "Pakiety Pythona Podręcznik Użytkownika: Rozszerzenia Binarne\n" ", YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Defining Extension Types: Assorted Topics" msgstr "" @@ -62,9 +62,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 "" msgid "" @@ -92,8 +92,8 @@ msgid "" msgstr "" msgid "" -"If your type supports garbage collection, the destructor should call :c:func:" -"`PyObject_GC_UnTrack` before clearing any member fields::" +"If your type supports garbage collection, the destructor should " +"call :c:func:`PyObject_GC_UnTrack` before clearing any member fields::" msgstr "" msgid "" @@ -106,20 +106,22 @@ msgid "" "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::" +"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 "" 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 "" msgid "" @@ -136,13 +138,14 @@ msgstr "Prezentacja Przedmiotów" 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 "" "W Pythonie istnieją dwa sposoby aby wygenerować tekstową reprezentację " -"przedmiotu: funkcja :func:`repr`, i funkcja :func:`str`. (Zadanie :func:" -"`print` po prostu wywołuje zadanie :func:`str`.) Ta zadania obsługi są oba " -"opcjonalne." +"przedmiotu: funkcja :func:`repr`, i funkcja :func:`str`. " +"(Zadanie :func:`print` po prostu wywołuje zadanie :func:`str`.) Ta zadania " +"obsługi są oba opcjonalne." msgid "" "The :c:member:`~PyTypeObject.tp_repr` handler should return a string object " @@ -152,18 +155,19 @@ msgstr "" 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 "" 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 "" msgid "Here is a simple example::" @@ -184,9 +188,10 @@ 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:expr:" -"`char\\*`, while the other accepts a :c:expr:`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:expr:`char\\*`, while the other accepts a :c:expr:`PyObject*`. Each " +"type can use whichever pair makes more sense for the implementation's " +"convenience. ::" msgstr "" msgid "" @@ -237,9 +242,10 @@ msgid "" "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." +"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 "" msgid "The tables are declared as three fields of the type object::" @@ -254,8 +260,8 @@ msgstr "" 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``." +"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 "" msgid "" @@ -274,9 +280,9 @@ 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 "" "Dla każdego wpisu w tabeli zostanie skonstruowany :term:`descriptor` i " "dodany do typu, który będzie mógł wydobyć wartość ze struktury przykładu. " @@ -315,9 +321,10 @@ msgstr "" msgid "" ":const:`RESTRICTED`, :const:`READ_RESTRICTED` and :const:`WRITE_RESTRICTED` " -"are deprecated. However, :const:`READ_RESTRICTED` is an alias for :const:" -"`PY_AUDIT_READ`, so fields that specify either :const:`RESTRICTED` or :const:" -"`READ_RESTRICTED` will also raise an audit event." +"are deprecated. However, :const:`READ_RESTRICTED` is an alias " +"for :const:`PY_AUDIT_READ`, so fields that specify " +"either :const:`RESTRICTED` or :const:`READ_RESTRICTED` will also raise an " +"audit event." msgstr "" msgid "" @@ -325,8 +332,8 @@ msgid "" "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." +"the descriptor from the class object, and get the doc string using " +"its :attr:`__doc__` attribute." msgstr "" msgid "" @@ -339,8 +346,8 @@ msgstr "Szczególne-dla-typu-przedmiotu zarządzanie właściwościami" msgid "" "For simplicity, only the :c:expr:`char\\*` version will be demonstrated " -"here; the type of the name parameter is the only difference between the :c:" -"expr:`char\\*` and :c:expr:`PyObject*` flavors of the interface. This " +"here; the type of the name parameter is the only difference between " +"the :c:expr:`char\\*` and :c:expr:`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 " @@ -357,12 +364,12 @@ msgid "Here is an example::" msgstr "Tu jest przykład::" 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 " -"should be set to ``NULL``. ::" +"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 "" msgid "Object Comparison" @@ -371,8 +378,8 @@ msgstr "Porównywanie przedmiotów" 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 "" msgid "" @@ -419,8 +426,8 @@ 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. ::" @@ -454,16 +461,17 @@ msgid "" msgstr "" 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 "" 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." +"``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 "" msgid "Here is a toy ``tp_call`` implementation::" @@ -474,15 +482,16 @@ 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 "" 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 "" msgid "" @@ -493,23 +502,26 @@ msgstr "" 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." +"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 "" 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 "" msgid "Weak Reference Support" @@ -532,8 +544,8 @@ msgstr "" msgid "" "Include a :c:expr:`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`)." +"``NULL`` (which is automatic when using the " +"default :c:member:`~PyTypeObject.tp_alloc`)." msgstr "" msgid "" @@ -577,11 +589,11 @@ msgid "Download CPython source releases." msgstr "" msgid "https://www.python.org/downloads/source/" -msgstr "" +msgstr "https://www.python.org/downloads/source/" msgid "" "The CPython project on GitHub, where the CPython source code is developed." msgstr "" msgid "https://github.com/python/cpython" -msgstr "" +msgstr "https://github.com/python/cpython" diff --git a/extending/windows.po b/extending/windows.po index 41d9a3992b..b95c1e108a 100644 --- a/extending/windows.po +++ b/extending/windows.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Building C and C++ Extensions on Windows" msgstr "Tworzenie rozszerzeń C i C++ w Windowsie" @@ -103,15 +103,15 @@ msgstr "" 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 "" msgid "" @@ -119,9 +119,10 @@ msgid "" "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." +"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 "" msgid "" @@ -153,9 +154,9 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/faq/design.po b/faq/design.po index d062c371a8..8b9fd7bab7 100644 --- a/faq/design.po +++ b/faq/design.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Anna Prochasek, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Design and History FAQ" msgstr "Projekt i Historia FAQ" @@ -120,12 +118,13 @@ msgstr "" "liczbami zmiennoprzecinkowymi." 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 "" "Typ :class:`float` w CPython używa ``double`` z C do przechowywania. Wartość " "obiektu :class:`float` jest przechowywana w binarnej liczbie " @@ -148,9 +147,9 @@ msgid "" "value ``1.2``, but is not exactly equal to it. On a typical machine, the " "actual stored value is::" msgstr "" -"wartość przechowywane dla ``x`` jest (bardzo dobrym) przybliżeniem do " +"wartość przechowywana dla ``x`` jest (bardzo dobrym) przybliżeniem do " "dziesiętnej wartości ``1.2``, ale nie jest dokładnie jej równa. Na typowym " -"urządzeniu, faktycznie przechowywana wartość wynosi:: " +"urządzeniu, faktycznie przechowywana wartość wynosi::" msgid "which is exactly::" msgstr "która dokładnie równa się::" @@ -182,9 +181,9 @@ msgid "" "tuples and lists." msgstr "" "Jedną z nich jest wydajność: wiedząc, że string jest niezmienny, możemy dla " -"niego przypisać miejsce w trakcie tworzenia a wymagania dotyczące " +"niego przypisać miejsce w trakcie tworzenia a wymagania dotyczące " "przechowywania są stałe i nie ulegają zmianie. To jest również jeden z " -"powodów rozróżniania między krotkami a listami. " +"powodów rozróżniania między krotkami a listami." msgid "" "Another advantage is that strings in Python are considered as \"elemental\" " @@ -192,10 +191,10 @@ msgid "" "and in Python, no amount of activity will change the string \"eight\" to " "anything else." msgstr "" -"Inną zaletą jest to, że w Pythonie stringi są uważane za równie \"elementarne" -"\" co liczby. Żadna ilość czynności nie zmieni wartości 8 na cokolwiek " -"innego, a w Pythonie żadna ilość czynności nie zmieni stringu \"osiem\" na " -"cokolwiek innego." +"Inną zaletą jest to, że w Pythonie stringi są uważane za równie " +"\"elementarne\" co liczby. Żadna ilość czynności nie zmieni wartości 8 na " +"cokolwiek innego, a w Pythonie żadna ilość czynności nie zmieni stringu " +"\"osiem\" na cokolwiek innego." msgid "Why must 'self' be used explicitly in method definitions and calls?" msgstr "" @@ -247,18 +246,20 @@ msgid "" msgstr "" msgid "Why can't I use an assignment in an expression?" -msgstr "" +msgstr "Dlaczego nie mogę użyć przypisania w wyrażeniu?" msgid "Starting in Python 3.8, you can!" -msgstr "" +msgstr "Począwszy od Pythona 3.8 możesz!" msgid "" "Assignment expressions using the walrus operator ``:=`` assign a variable in " "an expression::" msgstr "" +"Przypisanie w wyrażeniu realizujesz poprzez walrus operator ``:=`` " +"przypisując zmienną w wyrażeniu::" msgid "See :pep:`572` for more information." -msgstr "" +msgstr "Zobacz :pep:`572` aby uzyskać więcej informacji." msgid "" "Why does Python use methods for some functionality (e.g. list.index()) but " @@ -279,16 +280,17 @@ msgstr "" 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." +"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 "" msgid "https://mail.python.org/pipermail/python-3000/2006-November/004643.html" msgstr "" +"https://mail.python.org/pipermail/python-3000/2006-November/004643.html" msgid "Why is join() a string method instead of a list or tuple method?" msgstr "" @@ -318,8 +320,9 @@ 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 "" msgid "" @@ -371,8 +374,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -612,8 +615,8 @@ 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 "" msgid "" @@ -654,11 +657,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -700,10 +703,10 @@ msgstr "" 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 "" msgid "" @@ -716,10 +719,10 @@ 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 "" msgid "" diff --git a/faq/extending.po b/faq/extending.po index 877e563d19..b84aaf67b9 100644 --- a/faq/extending.po +++ b/faq/extending.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Stefan Ocetkiewicz , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Extending/Embedding FAQ" msgstr "" @@ -34,8 +34,8 @@ msgstr "" 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 "" msgid "Most intermediate or advanced Python books will also cover this topic." @@ -45,8 +45,8 @@ msgid "Can I create my own functions in C++?" msgstr "" 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 "" @@ -60,21 +60,21 @@ msgid "" msgstr "" 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 "" 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 "" msgid "How can I execute arbitrary Python statements from C?" @@ -84,9 +84,9 @@ 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 " -"``Python/pythonrun.c``." +"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 "" msgid "How can I evaluate an arbitrary Python expression from C?" @@ -104,21 +104,21 @@ 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 "" 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 "" 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 "" msgid "" @@ -189,11 +189,11 @@ msgid "You can get a pointer to the module object as follows::" msgstr "" 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 "" msgid "" @@ -300,12 +300,12 @@ msgid "" msgstr "" 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 "" msgid "" -"The Boost Python Library (BPL, https://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, https://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 35af37308f..33d400103d 100644 --- a/faq/general.po +++ b/faq/general.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "General Python FAQ" msgstr "" @@ -68,8 +67,8 @@ msgstr "" 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 "" msgid "Are there copyright restrictions on the use of Python?" @@ -162,13 +161,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), " -"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." +"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." msgstr "" msgid "How does the Python version numbering scheme work?" @@ -295,15 +294,16 @@ 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 "" 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 "" @@ -317,9 +317,9 @@ msgstr "" 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." +"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 "" msgid "" @@ -331,8 +331,17 @@ msgid "How do I submit bug reports and patches for Python?" msgstr "" msgid "" -"To report a bug or submit a patch, use the issue tracker at https://github." -"com/python/cpython/issues." +"To report a bug or submit a patch, please use the Roundup installation at " +"https://bugs.python.org/." +msgstr "" + +msgid "" +"You must have a Roundup account to report bugs; this makes it possible for " +"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 `_." msgstr "" msgid "" @@ -347,8 +356,8 @@ msgid "It's probably best to cite your favorite book about Python." msgstr "" msgid "" -"The very first article about Python was written in 1991 and is now quite " -"outdated." +"The `very first article `_ about Python was " +"written in 1991 and is now quite outdated." msgstr "" msgid "" @@ -375,8 +384,8 @@ msgstr "" 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 "" msgid "Why is it called Python?" @@ -384,8 +393,8 @@ msgstr "" 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. " +"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 "" @@ -422,7 +431,7 @@ msgid "" "`_. 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 is not maintained anymore `_." +"`it is not maintained anymore `_." msgstr "" msgid "How many people are using Python?" @@ -449,34 +458,34 @@ msgstr "" 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 " +"Python. Consulting the proceedings for `past Python conferences `_ will reveal contributions from many " "different companies and organizations." msgstr "" 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 "" msgid "What new developments are expected for Python in the future?" msgstr "" msgid "" -"See https://peps.python.org/ for the Python Enhancement Proposals (PEPs). " -"PEPs are design documents describing a suggested new feature for Python, " -"providing a concise technical specification and a rationale. Look for a PEP " -"titled \"Python X.Y Release Schedule\", where X.Y is a version that hasn't " -"been publicly released yet." +"See https://www.python.org/dev/peps/ for the Python Enhancement Proposals " +"(PEPs). PEPs are design documents describing a suggested new feature for " +"Python, providing a concise technical specification and a rationale. Look " +"for a PEP titled \"Python X.Y Release Schedule\", where X.Y is a version " +"that hasn't been publicly released yet." msgstr "" msgid "" -"New development is discussed on `the python-dev mailing list `_." +"New development is discussed on `the python-dev mailing list `_." msgstr "" msgid "Is it reasonable to propose incompatible changes to Python?" diff --git a/faq/gui.po b/faq/gui.po index 04e2f7915d..ddc0a77227 100644 --- a/faq/gui.po +++ b/faq/gui.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# rmaster1211 , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: rmaster1211 , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Graphic User Interface FAQ" msgstr "FAQ Graficzny Interfejs Użytkownika" @@ -34,16 +33,24 @@ msgid "General GUI Questions" msgstr "Pytania ogólne o GUI" msgid "What GUI toolkits exist for Python?" -msgstr "" +msgstr "Jakie zestawy narzędzi GUI istnieją dla Pythona?" 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 macOS, Windows, and Unix platforms." +"including pointers to the source, see the `Tcl/Tk home page `_. Tcl/Tk is fully portable to the macOS, Windows, and Unix " +"platforms." msgstr "" +"Standardowe kompilacje Pythona zawierają obiektowy interfejs do zestawu " +"widżetów Tcl/Tk, zwany :ref:`tkinter `. Jest to prawdopodobnie " +"najłatwiejszy do zainstalowania (ponieważ jest dołączony do większości " +"`binarnych dystrybucji `_ Pythona) i " +"używania. Więcej informacji o Tk, w tym wskazówki do źródeł, można znaleźć " +"na `stronie domowej Tcl/Tk `_. Tcl/Tk jest w pełni " +"przenośny na platformy macOS, Windows i Unix." msgid "" "Depending on what platform(s) you are aiming at, there are also several " @@ -54,7 +61,7 @@ msgid "" msgstr "" msgid "Tkinter questions" -msgstr "" +msgstr "Pytania dotyczące Tkinter" msgid "How do I freeze Tkinter applications?" msgstr "" @@ -67,8 +74,8 @@ msgstr "" 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 "" msgid "" @@ -77,11 +84,16 @@ msgid "" "is SAM (stand-alone modules), which is part of the Tix distribution (https://" "tix.sourceforge.net/)." msgstr "" +"Aby uzyskać prawdziwie samodzielne aplikacje, skrypty Tcl tworzące " +"bibliotekę muszą być również zintegrowane z aplikacją. Jednym z narzędzi " +"wspierających ten proces jest SAM (stand-alone modules), który jest częścią " +"dystrybucji Tix (https://tix.sourceforge.net/)." 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 "" msgid "Can I have Tk events handled while waiting for I/O?" @@ -99,8 +111,8 @@ msgid "I can't get key bindings to work in Tkinter: why?" msgstr "" 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 "" diff --git a/faq/index.po b/faq/index.po index 07a16cb6f6..c600929eef 100644 --- a/faq/index.po +++ b/faq/index.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Python Frequently Asked Questions" msgstr "Często zadawane pytania odnośnie Pythona" diff --git a/faq/installed.po b/faq/installed.po index e841b671e5..86e58094f5 100644 --- a/faq/installed.po +++ b/faq/installed.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "\"Why is Python Installed on my Computer?\" FAQ" msgstr "" diff --git a/faq/library.po b/faq/library.po index 23a8f70ab4..bdce30a8b6 100644 --- a/faq/library.po +++ b/faq/library.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Library and Extension FAQ" msgstr "" @@ -44,8 +42,8 @@ msgid "" msgstr "" msgid "" -"For third-party packages, search the `Python Package Index `_ or try `Google `_ or another web search " +"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 "" @@ -56,9 +54,9 @@ msgstr "" 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 " -"Path)." +"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 "" msgid "There are (at least) three kinds of modules in Python:" @@ -271,10 +269,10 @@ msgstr "" 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 "" msgid "How do I parcel out work among a bunch of worker threads?" @@ -301,8 +299,8 @@ msgid "When run, this will produce the following output:" msgstr "" 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 "" msgid "What kinds of global value mutation are thread-safe?" @@ -333,10 +331,10 @@ msgid "These aren't::" msgstr "" 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 "" msgid "Can't we get rid of the Global Interpreter Lock?" @@ -363,19 +361,19 @@ msgstr "" 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 "" 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 "" msgid "" @@ -409,8 +407,9 @@ msgstr "Jak usunąć plik? (i inne plikowe pytania…)" 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 "" msgid "" @@ -427,14 +426,14 @@ msgstr "" 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 "" 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 "" msgid "How do I copy a file?" @@ -444,8 +443,8 @@ msgid "" "The :mod:`shutil` module contains a :func:`~shutil.copyfile` function. Note " "that on Windows NTFS volumes, it does not copy `alternate data streams " "`_ nor " -"`resource forks `__ on macOS HFS" -"+ volumes, though both are now rarely used. It also doesn't copy file " +"`resource forks `__ on macOS " +"HFS+ volumes, though both are now rarely used. It also doesn't copy file " "permissions and metadata, though using :func:`shutil.copy2` instead will " "preserve most (though not all) of it." msgstr "" @@ -454,9 +453,9 @@ msgid "How do I read (or write) binary data?" msgstr "" 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 "" msgid "" @@ -489,8 +488,8 @@ 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)``." +"function. Thus, to read *n* bytes from a pipe *p* created " +"with :func:`os.popen`, you need to use ``p.read(n)``." msgstr "" msgid "How do I access the serial (RS232) port?" @@ -506,7 +505,7 @@ msgid "For Unix, see a Usenet post by Mitch Chapman:" msgstr "" msgid "https://groups.google.com/groups?selm=34A04430.CF9@ohioee.com" -msgstr "" +msgstr "https://groups.google.com/groups?selm=34A04430.CF9@ohioee.com" msgid "Why doesn't closing sys.stdout (stdin, stderr) really close it?" msgstr "" @@ -559,8 +558,8 @@ msgstr "" msgid "" "Cameron Laird maintains a useful set of pages about Python web technologies " -"at https://web.archive.org/web/20210224183619/http://phaseit.net/claird/comp." -"lang.python/web_python." +"at https://web.archive.org/web/20210224183619/http://phaseit.net/claird/" +"comp.lang.python/web_python." msgstr "" msgid "How can I mimic CGI form submission (METHOD=POST)?" @@ -628,10 +627,10 @@ msgstr "" msgid "" "You can use the :meth:`socket.connect_ex` method to avoid creating an " -"exception. It will just return the errno value. To poll, you can call :" -"meth:`socket.connect_ex` again later -- ``0`` or ``errno.EISCONN`` indicate " -"that you're connected -- or you can pass this socket to :meth:`select." -"select` to check if it's writable." +"exception. It will just return the errno value. To poll, you can " +"call :meth:`socket.connect_ex` again later -- ``0`` or ``errno.EISCONN`` " +"indicate that you're connected -- or you can pass this socket " +"to :meth:`select.select` to check if it's writable." msgstr "" msgid "" @@ -652,9 +651,9 @@ msgstr "Tak" 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 " -"database." +"` are also included with standard Python. There is also " +"the :mod:`sqlite3` module, which provides a lightweight disk-based " +"relational database." msgstr "" msgid "" @@ -668,8 +667,8 @@ msgstr "" 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 "" diff --git a/faq/programming.po b/faq/programming.po index 19bf1c1cfa..e26abea08a 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -1,29 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2022 -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Blessing Oluronbi, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Programming FAQ" msgstr "FAQ - programowanie" @@ -45,9 +44,11 @@ msgid "Yes." msgstr "Tak" 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 "" +"Poniżej opisano kilka debuggerów dla języka Python, a wbudowana " +"funkcja :func:`breakpoint` umożliwia przejście do dowolnego z nich." msgid "" "The pdb module is a simple but adequate console-mode debugger for Python. It " @@ -55,6 +56,10 @@ msgid "" "Library Reference Manual `. You can also write your own debugger by " "using the code for pdb as an example." msgstr "" +"Moduł pdb jest prostym, ale wystarczającym debugerem działającym w trybie " +"konsolowym dla Pythona. Jest częścią standardowej biblioteki Pythona i " +"jest :mod:dokumentowany w podręczniku Library Reference Manual . Możesz też " +"napisać własny debuger, używając kodu modułu pdb jako przykładu." msgid "" "The IDLE interactive development environment, which is part of the standard " @@ -71,38 +76,55 @@ msgid "" "the `ActivePython `_ " "distribution." msgstr "" +"PythonWin to środowisko programistyczne Pythona, które zawiera graficzny " +"debuger oparty na pdb. Debuger PythonWin koloruje punkty przerwania i " +"oferuje kilka ciekawych funkcji, takich jak debugowanie programów innych niż " +"PythonWin. PythonWin jest dostępny jako część projektu `pywin32` oraz jako " +"część dystrybucji `ActivePython`." msgid "" "`Eric `_ is an IDE built on PyQt and " "the Scintilla editing component." msgstr "" +"`Eric `_ jest środowiskiem IDE " +"zbudowanym na bazie PyQt i komponentu edycyjnego Scintilla." msgid "" "`trepan3k `_ is a gdb-like " "debugger." msgstr "" +"`trepan3k `_ jest debuggerem typu " +"gdb." msgid "" "`Visual Studio Code `_ is an IDE with " "debugging tools that integrates with version-control software." msgstr "" +"`Visual Studio Code`_ to środowisko IDE z " +"narzędziami do debugowania, które integruje się z oprogramowaniem do " +"kontroli wersji." msgid "" "There are a number of commercial Python IDEs that include graphical " "debuggers. They include:" msgstr "" +"Istnieje wiele komercyjnych środowisk IDE dla Pythona, które zawierają " +"graficzne debugery. Należą do nich:" msgid "`Wing IDE `_" msgstr "" +"Skrzydło zintegrowane środowisko programistyczne`_" msgid "`Komodo IDE `_" -msgstr "" +msgstr "`Komodo IDE `_" msgid "`PyCharm `_" -msgstr "" +msgstr "`PyCharm `_" msgid "Are there tools to help find bugs or perform static analysis?" msgstr "" +"Czy istnieją narzędzia pomocne w znajdowaniu błędów lub wykonywaniu analizy " +"statycznej?" msgid "" "`Pylint `_ and `Pyflakes " @@ -117,7 +139,7 @@ msgid "" msgstr "" msgid "How can I create a stand-alone binary from a Python script?" -msgstr "" +msgstr "Jak mogę utworzyć samodzielny plik binarny ze skryptu Pythona?" msgid "" "You don't need the ability to compile Python to C code if all you want is a " @@ -126,6 +148,12 @@ 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 "" +"Nie potrzebujesz umiejętności kompilowania Pythona do kodu C, jeśli " +"potrzebujesz jedynie samodzielnego programu, który użytkownicy mogą pobrać i " +"uruchomić bez konieczności wcześniejszej instalacji dystrybucji Pythona. " +"Istnieje wiele narzędzi, które określają zestaw modułów wymaganych przez " +"program i łączą te moduły za pomocą pliku binarnego Pythona w celu " +"utworzenia pojedynczego pliku wykonywalnego." msgid "" "One is to use the freeze tool, which is included in the Python source tree " @@ -146,51 +174,72 @@ msgid "" "rest of the Python interpreter to form a self-contained binary which acts " "exactly like your script." msgstr "" +"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." msgid "" "The following packages can help with the creation of console and GUI " "executables:" msgstr "" +"Poniższe pakiety mogą pomóc w tworzeniu plików wykonywalnych konsoli i " +"interfejsu graficznego" msgid "`Nuitka `_ (Cross-platform)" -msgstr "" +msgstr "Nuitka `_ (Cross-platform)" msgid "`PyInstaller `_ (Cross-platform)" -msgstr "" +msgstr "`PyInstaller `_ (wieloplatformowy)" msgid "" "`PyOxidizer `_ (Cross-platform)" msgstr "" +"PyOxidizer `_ " +"(wieloplatformowy)" msgid "" "`cx_Freeze `_ (Cross-platform)" msgstr "" +"`cx_Freeze `_ (wieloplatformowy)" msgid "`py2app `_ (macOS only)" -msgstr "" +msgstr "py2app `_ (tylko macOS)" msgid "`py2exe `_ (Windows only)" -msgstr "" +msgstr "`py2exe `_ (tylko Windows)" msgid "Are there coding standards or a style guide for Python programs?" msgstr "" +"Czy istnieją standardy kodowania lub przewodnik stylistyczny dla programów w " +"Pythona?" msgid "" "Yes. The coding style required for standard library modules is documented " "as :pep:`8`." msgstr "" +"Tak. Styl kodowania wymagany dla standardowych modułów bibliotecznych jest " +"udokumentowany jako :pep:`8`" msgid "Core Language" msgstr "Rdzeń języka" msgid "Why am I getting an UnboundLocalError when the variable has a value?" -msgstr "" +msgstr "Dlaczego otrzymuję błąd UnboundLocalError, skoro zmienna ma wartość?" msgid "" "It can be a surprise to get the :exc:`UnboundLocalError` in previously " "working code when it is modified by adding an assignment statement somewhere " "in the body of a function." msgstr "" +"Można się zdziwić, gdy okaże się, :exc:`UnboundLocalError` że kod, który " +"wcześniej działał, został zmodyfikowany przez dodanie instrukcji przypisania " +"w dowolnym miejscu ciała funkcji." msgid "This code:" msgstr "Ten kod:" @@ -199,7 +248,7 @@ msgid "works, but this code:" msgstr "działa, ale ten kod:" msgid "results in an :exc:`!UnboundLocalError`:" -msgstr "" +msgstr "skutkuje :exc:`!UnboundLocalError`" msgid "" "This is because when you make an assignment to a variable in a scope, that " @@ -209,25 +258,38 @@ msgid "" "Consequently when the earlier ``print(x)`` attempts to print the " "uninitialized local variable and an error results." msgstr "" +"Dzieje się tak, ponieważ po przypisaniu zmiennej w zakresie, zmienna ta " +"staje się lokalna w tym zakresie i przesłania każdą zmienną o podobnej " +"nazwie w zakresie zewnętrznym. Ponieważ ostatnie polecenie w foo przypisuje " +"nową wartość zmiennej ``x``, kompilator rozpoznaje ją jako zmienną lokalną. " +"W rezultacie ``print(x)``, gdy poprzednia instrukcja próbuje wydrukować " +"niezainicjowaną zmienną lokalną, pojawia się błąd." msgid "" "In the example above you can access the outer scope variable by declaring it " "global:" msgstr "" +"W powyższym przykładzie możesz uzyskać dostęp do zmiennej zakresu " +"zewnętrznego, deklarując ją jako globalną:" 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:" msgstr "" +"Ta wyraźna deklaracja jest wymagana, aby przypomnieć, że (w przeciwieństwie " +"do pozornie analogicznej sytuacji ze zmiennymi klasowymi i instancyjnymi) w " +"rzeczywistości modyfikujesz wartość zmiennej w zakresie zewnętrznym:" msgid "" "You can do a similar thing in a nested scope using the :keyword:`nonlocal` " "keyword:" msgstr "" +"Można wykonać podobną czynność w zakresie zagnieżdżonym, używając " +"słowa :keyword:`nonlocal` kluczowego:" msgid "What are the rules for local and global variables in Python?" -msgstr "" +msgstr "Jakie są zasady dotyczące zmiennych lokalnych i globalnych w Pythonie?" msgid "" "In Python, variables that are only referenced inside a function are " @@ -235,6 +297,10 @@ msgid "" "function's body, it's assumed to be a local unless explicitly declared as " "global." msgstr "" +"W Pythonie zmienne, do których odwołuje się tylko funkcja, są domyślnie " +"globalne. Jeśli zmiennej zostanie przypisana wartość w dowolnym miejscu w " +"ciele funkcji, przyjmuje się, że jest lokalna, chyba że zostanie jawnie " +"zadeklarowana jako globalna." msgid "" "Though a bit surprising at first, a moment's consideration explains this. " @@ -245,11 +311,21 @@ msgid "" "a component of an imported module. This clutter would defeat the usefulness " "of the ``global`` declaration for identifying side-effects." msgstr "" +"Choć na początku może to być nieco zaskakujące, chwila namysłu wyjaśnia " +"sprawę. Z jednej strony, wymaganie :keyword:`global` dla przypisanych " +"zmiennych chroni przed niezamierzonymi efektami ubocznymi. Z drugiej strony, " +"gdyby ``global`` było wymagane dla wszystkich odwołań globalnych, " +"używalibyśmy ``global`` go cały czas. Trzeba by deklarować jako globalne " +"każde odwołanie do funkcja wbudowanej lub do komponentu importowanego " +"modułu. Ten bałagan zniweczyłby użyteczność deklaracji w ``global`` " +"identyfikowaniu efektów ubocznych." msgid "" "Why do lambdas defined in a loop with different values all return the same " "result?" msgstr "" +"Dlaczego wyrażenia lambda zdefiniowane w pętli z różnymi wartościami " +"zwracają ten sam wynik?" msgid "" "Assume you use a for loop to define a few different lambdas (or even plain " @@ -262,6 +338,9 @@ msgid "" "``1``, ``4``, ``9``, and ``16``. However, when you actually try you will " "see that they all return ``16``::" msgstr "" +"Daje to listę zawierającą 5 lambda obliczających . Można by się spodziewać, " +"że po wywołaniu zwracać odpowiednio``0``,``1`` ,``4`` ,``9`` , i ``16`` . " +"Jednak po próbie zobaczysz, że wszystkie zwracać ``16`` ::" msgid "" "This happens because ``x`` is not local to the lambdas, but is defined in " @@ -275,6 +354,8 @@ msgid "" "In order to avoid this, you need to save the values in variables local to " "the lambdas, so that they don't rely on the value of the global ``x``::" msgstr "" +"Aby tego uniknąć, należy zapisać wartości w zmiennych lokalnych dla lambd, " +"aby nie były one zależne od wartości zmiennej globalnej ``x``::" msgid "" "Here, ``n=x`` creates a new variable ``n`` local to the lambda and computed " @@ -283,14 +364,21 @@ msgid "" "the first lambda, ``1`` in the second, ``2`` in the third, and so on. " "Therefore each lambda will now return the correct result::" msgstr "" +"Tutaj, ``n=x`` tworzy nową zmienną ``n`` lokalną dla lambda i oblicza ją " +"podczas definiowania lambda, tak aby miała tę samą wartość ``x`` co w danym " +"punkcie pętli. Oznacza to, że wartość ``n``będzie``0`` w pierwszej " +"lambda,``1`` w drugiej, ``2``w trzeciej itd. W związku z tym każda lambda " +"zwróci teraz poprawny wynik:" msgid "" "Note that this behaviour is not peculiar to lambdas, but applies to regular " "functions too." msgstr "" +"Należy pamiętać, że takie zachowanie nie jest specyficzne dla wyrażeń " +"lambda, ale ma zastosowanie także do zwykłych funkcje." msgid "How do I share global variables across modules?" -msgstr "" +msgstr "Jak udostępniać zmienne globalne pomiędzy moduły?" msgid "" "The canonical way to share information across modules within a single " @@ -300,6 +388,12 @@ msgid "" "each module, any changes made to the module object get reflected " "everywhere. For example:" msgstr "" +"Kanonicznym sposobem udostępniania informacji między modułami w ramach " +"jednego programu jest utworzenie specjalnego modułu (często nazywanego " +"config lub cfg). Wystarczy zaimportować moduł config do wszystkich modułów " +"aplikacji; moduł staje się wówczas dostępny jako nazwa globalna. Ponieważ " +"istnieje tylko jedna instancja każdego modułu, wszelkie zmiany wprowadzone w " +"obiekcie modułu są odzwierciedlane wszędzie. Na przykład:" msgid "config.py::" msgstr "config.py::" @@ -314,15 +408,20 @@ msgid "" "Note that using a module is also the basis for implementing the singleton " "design pattern, for the same reason." msgstr "" +"Należy pamiętać, że używanie modułu jest również podstawą implementacji " +"wzorca projektowego singleton, z tego samego powodu." msgid "What are the \"best practices\" for using import in a module?" -msgstr "" +msgstr "Jakie są „najlepsze praktyki” dotyczące używania import w module?" msgid "" "In general, don't use ``from modulename import *``. Doing so clutters the " "importer's namespace, and makes it much harder for linters to detect " "undefined names." msgstr "" +"Ogólnie rzecz biorąc, nie należy używać from modulename import *. Powoduje " +"to zaśmiecanie przestrzeni nazw importującego modułu i znacznie utrudnia " +"narzędziom lintującym wykrywanie niezdefiniowanych nazw." msgid "" "Import modules at the top of a file. Doing so makes it clear what other " @@ -330,13 +429,18 @@ msgid "" "is in scope. Using one import per line makes it easy to add and delete " "module imports, but using multiple imports per line uses less screen space." msgstr "" +"Importuj moduły na początku pliku. Dzięki temu jasno widać, jakich innych " +"modułów wymaga Twój kod, i unika się wątpliwości, czy nazwa modułu znajduje " +"się w zakresie. Używanie jednego importu w wierszu ułatwia dodawanie i " +"usuwanie importów modułów, natomiast używanie wielu importów w jednym " +"wierszu zajmuje mniej miejsca na ekranie." msgid "It's good practice if you import modules in the following order:" -msgstr "" +msgstr "Dobrą praktyką jest importowanie modułów w następującej kolejności:" msgid "" -"standard library modules -- e.g. :mod:`sys`, :mod:`os`, :mod:`argparse`, :" -"mod:`re`" +"standard library modules -- " +"e.g. :mod:`sys`, :mod:`os`, :mod:`argparse`, :mod:`re`" msgstr "" msgid "" @@ -433,15 +537,24 @@ msgid "" "value is requested again. This is called \"memoizing\", and can be " "implemented like this::" msgstr "" +"Ta funkcjonalność może być przydatna. Gdy masz funkcję, której obliczenia są " +"czasochłonne, często stosowaną techniką jest buforowanie (cache’owanie) " +"parametrów oraz wyników każdego wywołania funkcji i zwracanie zapisanego " +"wyniku, jeśli ta sama wartość zostanie ponownie zażądana. Nazywa się to " +"„memoizacją” i można to zaimplementować w następujący sposób::" msgid "" "You could use a global variable containing a dictionary instead of the " "default value; it's a matter of taste." msgstr "" +"Można użyć zmiennej globalnej zawierającej słownik zamiast wartości " +"domyślnej; jest to kwestia gustu." msgid "" "How can I pass optional or keyword parameters from one function to another?" msgstr "" +"Jak można przekazać opcjonalne parametry lub argumenty nazwane z jednej " +"funkcji do innej funkcji?" msgid "" "Collect the arguments using the ``*`` and ``**`` specifiers in the " @@ -456,9 +569,9 @@ msgstr "Jaka jest różnica pomiędzy argumentami a parametrami?" 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 :term:" -"`kind of arguments ` a function can accept. For example, given " -"the function definition::" +"actually passed to a function when calling it. Parameters define " +"what :term:`kind of arguments ` a function can accept. For " +"example, given the function definition::" msgstr "" msgid "" @@ -470,17 +583,17 @@ msgid "the values ``42``, ``314``, and ``somevar`` are arguments." msgstr "" msgid "Why did changing list 'y' also change list 'x'?" -msgstr "" +msgstr "Dlaczego zmiana listy „y” spowodowała również zmianę listy „x”?" msgid "If you wrote code like::" -msgstr "" +msgstr "Jeśli napisałeś kod taki jak::" msgid "" "you might be wondering why appending an element to ``y`` changed ``x`` too." msgstr "" msgid "There are two factors that produce this result:" -msgstr "" +msgstr "Na ten wynik składają się dwa czynniki:" msgid "" "Variables are simply names that refer to objects. Doing ``y = x`` doesn't " @@ -491,7 +604,7 @@ msgstr "" msgid "" "Lists are :term:`mutable`, which means that you can change their content." -msgstr "" +msgstr "Listy są :term:mutable, co oznacza, że można zmieniać ich zawartość." msgid "" "After the call to :meth:`~list.append`, the content of the mutable object " @@ -531,6 +644,12 @@ msgid "" "mutates ``a_list``, whereas ``some_tuple += (1, 2, 3)`` and ``some_int += " "1`` create new objects)." msgstr "" +"Jednak istnieje jedna klasa operacji, w której ta sama operacja może " +"zachowywać się różnie w zależności od typu: operatory przypisania " +"rozszerzonego. Na przykład 1``+=`` modyfikuje listy, ale nie krotki ani " +"liczby całkowite (2``a_list`` += [1, 2, 3]`` jest równoważne " +"3``a_list``.extend([1, 2, 3`)``i modyfikuje 4``a_list``, natomiast " +"5``some_tuple += (1, 2, 3)`` oraz 6``some_int += 1`` tworzą nowe obiekty)." msgid "In other words:" msgstr "Innymi słowami:" @@ -630,8 +749,8 @@ msgid "" msgstr "" 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 "" msgid "Sequences can be copied by slicing::" @@ -799,8 +918,8 @@ msgid "How do I get int literal attribute instead of SyntaxError?" msgstr "" msgid "" -"Trying to lookup an ``int`` literal attribute in the normal manner gives a :" -"exc:`SyntaxError` because the period is seen as a decimal point::" +"Trying to lookup an ``int`` literal attribute in the normal manner gives " +"a :exc:`SyntaxError` because the period is seen as a decimal point::" msgstr "" msgid "" @@ -849,8 +968,8 @@ msgid "" "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'``." +"sections, e.g. ``\"{:04d}\".format(144)`` yields ``'0144'`` and ``\"{:.3f}" +"\".format(1.0/3.0)`` yields ``'0.333'``." msgstr "" msgid "How do I modify a string in place?" @@ -918,10 +1037,10 @@ msgstr "" 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`. :meth:`!split()` supports an optional \"sep\" " -"parameter which is useful if the line uses something other than whitespace " -"as a separator." +"string objects and then convert decimal strings to numeric values " +"using :func:`int` or :func:`float`. :meth:`!split()` supports an optional " +"\"sep\" parameter which is useful if the line uses something other than " +"whitespace as a separator." msgstr "" msgid "" @@ -935,6 +1054,39 @@ msgstr "" msgid "See the :ref:`unicode-howto`." msgstr "" +msgid "Can I end a raw string with an odd number of backslashes?" +msgstr "" + +msgid "" +"A raw string ending with an odd number of backslashes will escape the " +"string's quote::" +msgstr "" + +msgid "" +"There are several workarounds for this. One is to use regular strings and " +"double the backslashes::" +msgstr "" + +msgid "" +"Another is to concatenate a regular string containing an escaped backslash " +"to the raw string::" +msgstr "" + +msgid "" +"It is also possible to use :func:`os.path.join` to append a backslash on " +"Windows::" +msgstr "" + +msgid "" +"Note that while a backslash will \"escape\" a quote for the purposes of " +"determining where the raw string ends, no escaping occurs when interpreting " +"the value of the raw string. That is, the backslash remains present in the " +"value of the raw string::" +msgstr "" + +msgid "Also see the specification in the :ref:`language reference `." +msgstr "" + msgid "Performance" msgstr "Wydajność" @@ -993,9 +1145,9 @@ 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 " -"do sorting (and see the :ref:`sortinghowto` for examples of moderately " +"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 "" @@ -1107,7 +1259,7 @@ msgid "See the Python Cookbook for a long discussion of many ways to do this:" msgstr "" msgid "https://code.activestate.com/recipes/52560/" -msgstr "" +msgstr "https://code.activestate.com/recipes/52560/" msgid "" "If you don't mind reordering the list, sort it and then scan from the end of " @@ -1115,8 +1267,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1258,8 +1410,8 @@ msgid "" "augmented assignment is executed, and its return value is what gets used in " "the assignment statement; and (b) for lists, :meth:`!__iadd__` is equivalent " "to calling :meth:`~list.extend` on the list and returning the list. That's " -"why we say that for lists, ``+=`` is a \"shorthand\" for :meth:`!list." -"extend`::" +"why we say that for lists, ``+=`` is a \"shorthand\" for :meth:`!" +"list.extend`::" msgstr "" msgid "This is equivalent to::" @@ -1328,8 +1480,8 @@ msgid "What is a method?" msgstr "Co to jest metoda?" 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 " +"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 "" @@ -1361,8 +1513,8 @@ msgid "" msgstr "" msgid "" -"Note that :func:`isinstance` also checks for virtual inheritance from an :" -"term:`abstract base class`. So, the test will return ``True`` for a " +"Note that :func:`isinstance` also checks for virtual inheritance from " +"an :term:`abstract base class`. So, the test will return ``True`` for a " "registered class even if hasn't directly or indirectly inherited from it. " "To test for \"true inheritance\", scan the :term:`MRO` of the class:" msgstr "" @@ -1400,18 +1552,18 @@ msgstr "" 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 :meth:`~object." -"__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 :meth:`~object.__getattr__` method; consult :ref:`the language reference " +"` for more information about controlling attribute access." msgstr "" 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:" -"`~object.__setattr__` method too, and it must do so carefully. The basic " -"implementation of :meth:`!__setattr__` is roughly equivalent to the " +"attributes must be set as well as retrieved, the class must define " +"a :meth:`~object.__setattr__` method too, and it must do so carefully. The " +"basic implementation of :meth:`!__setattr__` is roughly equivalent to the " "following::" msgstr "" @@ -1536,9 +1688,9 @@ msgid "There are several possible reasons for this." msgstr "" msgid "" -"The :keyword:`del` statement does not necessarily call :meth:`~object." -"__del__` -- it simply decrements the object's reference count, and if this " -"reaches zero :meth:`!__del__` is called." +"The :keyword:`del` statement does not necessarily " +"call :meth:`~object.__del__` -- it simply decrements the object's reference " +"count, and if this reaches zero :meth:`!__del__` is called." msgstr "" msgid "" @@ -1676,8 +1828,8 @@ msgid "" msgstr "" msgid "" -"For example, here is the implementation of :meth:`collections.abc.Sequence." -"__contains__`::" +"For example, here is the implementation " +"of :meth:`collections.abc.Sequence.__contains__`::" msgstr "" msgid "" @@ -1703,9 +1855,10 @@ msgid "How do I cache method calls?" msgstr "" msgid "" -"The two principal tools for caching methods are :func:`functools." -"cached_property` and :func:`functools.lru_cache`. The former stores results " -"at the instance level and the latter at the class level." +"The two principal tools for caching methods " +"are :func:`functools.cached_property` and :func:`functools.lru_cache`. The " +"former stores results at the instance level and the latter at the class " +"level." msgstr "" msgid "" @@ -1722,9 +1875,9 @@ msgid "" msgstr "" msgid "" -"The *lru_cache* approach works with methods that have hashable arguments. " -"It creates a reference to the instance unless special efforts are made to " -"pass in weak references." +"The *lru_cache* approach works with methods that have :term:`hashable` " +"arguments. It creates a reference to the instance unless special efforts " +"are made to pass in weak references." msgstr "" msgid "" @@ -1743,9 +1896,9 @@ msgid "" msgstr "" msgid "" -"To make the *lru_cache* approach work when the *station_id* is mutable, the " -"class needs to define the :meth:`~object.__eq__` and :meth:`~object." -"__hash__` methods so that the cache can detect relevant attribute updates::" +"The *lru_cache* approach can be made to work, but the class needs to define " +"the *__eq__* and *__hash__* methods so the cache can detect relevant " +"attribute updates::" msgstr "" msgid "Modules" @@ -1781,18 +1934,18 @@ msgid "" msgstr "" 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 " +"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 "" 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 "" msgid "" @@ -1831,10 +1984,10 @@ msgid "Suppose you have the following modules:" msgstr "" msgid ":file:`foo.py`::" -msgstr "" +msgstr ":file:`foo.py`::" msgid ":file:`bar.py`::" -msgstr "" +msgstr ":file:`bar.py`::" msgid "The problem is that the interpreter will perform the following steps:" msgstr "" @@ -1881,11 +2034,11 @@ msgid "There are (at least) three possible workarounds for this problem." msgstr "" msgid "" -"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 " -"``.``." +"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 ``.``." msgstr "" msgid "" diff --git a/faq/windows.po b/faq/windows.po index f02b5ba6d3..78fb131a48 100644 --- a/faq/windows.po +++ b/faq/windows.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Python on Windows FAQ" msgstr "" @@ -92,19 +90,19 @@ msgstr "" 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." +"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 "" 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." +"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 "" msgid "" @@ -198,11 +196,12 @@ msgstr "" "następująco:" 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 " -"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." +"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 "" msgid "" @@ -227,8 +226,8 @@ msgid "" "If you use SWIG, it is easy to create a Python \"extension module\" that " "will make the app's data and methods available to Python. SWIG will handle " "just about all the grungy details for you. The result is C code that you " -"link *into* your .exe file (!) You do _not_ have to create a DLL file, and " -"this also simplifies linking." +"link *into* your .exe file (!) You do **not** have to create a DLL file, " +"and this also simplifies linking." msgstr "" msgid "" @@ -261,10 +260,10 @@ msgid "" msgstr "" msgid "" -"Problem 1: The so-called \"Very High Level\" functions that take FILE * " +"Problem 1: The so-called \"Very High Level\" functions that take ``FILE *`` " "arguments will not work in a multi-compiler environment because each " -"compiler's notion of a struct FILE will be different. From an " -"implementation standpoint these are very _low_ level functions." +"compiler's notion of a ``struct FILE`` will be different. From an " +"implementation standpoint these are very low level functions." msgstr "" msgid "" @@ -308,16 +307,16 @@ msgstr "" 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\" " -"set \"Tab size\" and \"Indent size\" to 4, and select the \"Insert spaces\" " -"radio button." +"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 "" 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 "" msgid "How do I check for a keypress without blocking?" diff --git a/glossary.po b/glossary.po index 40a62fa72d..3efd015642 100644 --- a/glossary.po +++ b/glossary.po @@ -1,32 +1,31 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Nikodem Łobodziński , 2021 -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Glossary" -msgstr "Słownik" +msgstr "Glosariusz" msgid "``>>>``" msgstr "``>>>``" @@ -37,7 +36,7 @@ msgid "" msgstr "" "Domyślny znak zachęty powłoki interaktywnej w języku Python. Często " "spotykane w przypadku przykładów kodu, które mogą być wykonywane w " -"interpreterze. " +"interpreterze." msgid "``...``" msgstr "``...``" @@ -75,28 +74,43 @@ msgid "" msgstr "" msgid "abstract base class" -msgstr "" +msgstr "abstrakcyjna klasa bazowa" 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` " -"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." -msgstr "" +"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." +msgstr "" +"Abstrakcyjne klasy bazowe uzupełniają :term:`duck-typing`, oferując sposób " +"definiowania interfejsów w sytuacjach, gdy inne techniki, takie " +"jak :func:`hasattr`, byłyby nieporęczne lub nieco błędne (na przykład w " +"przypadku :ref:`magicznych metod ` ). Abstrakcyjne klasy " +"bazowe wprowadzają wirtualne podklasy, czyli klasy, które nie dziedziczą po " +"żadnej klasie, ale są nadal rozpoznawane przez :func:`isinstance` " +"i :func:`issubclass`; zobacz dokumentację modułu :mod:`abc`. Python zawiera " +"wiele wbudowanych abstrakcyjnych klas bazowych dla struktur danych (w " +"module :mod:`collections.abc`), liczb (w module :mod:`numbers`), strumieni " +"(w module :mod:`io`), wyszukiwarek i loaderów importów (w " +"module :mod:`importlib.abc`). Możesz stworzyć własną abstrakcyjną klasę " +"bazową za pomocą modułu :mod:`abc`." msgid "annotation" -msgstr "" +msgstr "adnotacja" 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 "" +"Etykieta powiązana ze zmienną, atrybutem klasy lub parametrem funkcji lub " +"wartością zwracaną, używana zgodnie z konwencją jako :term:`type hint`." msgid "" "Annotations of local variables cannot be accessed at runtime, but " @@ -107,12 +121,12 @@ msgstr "" msgid "" "See :term:`variable annotation`, :term:`function annotation`, :pep:`484` " -"and :pep:`526`, which describe this functionality. Also see :ref:" -"`annotations-howto` for best practices on working with annotations." +"and :pep:`526`, which describe this functionality. Also " +"see :ref:`annotations-howto` for best practices on working with annotations." msgstr "" msgid "argument" -msgstr "" +msgstr "argument" msgid "" "A value passed to a :term:`function` (or :term:`method`) when calling the " @@ -183,10 +197,10 @@ msgid "An object created by a :term:`asynchronous generator` function." msgstr "" 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` " -"expression." +"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 "" msgid "" @@ -211,10 +225,10 @@ msgstr "" 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 "" msgid "attribute" @@ -228,60 +242,60 @@ msgstr "" msgid "" "It is possible to give an object an attribute whose name is not an " -"identifier as defined by :ref:`identifiers`, for example using :func:" -"`setattr`, if the object allows it. Such an attribute will not be accessible " -"using a dotted expression, and would instead need to be retrieved with :func:" -"`getattr`." +"identifier as defined by :ref:`identifiers`, for example " +"using :func:`setattr`, if the object allows it. Such an attribute will not " +"be accessible using a dotted expression, and would instead need to be " +"retrieved with :func:`getattr`." msgstr "" msgid "awaitable" msgstr "" 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 "" msgid "BDFL" -msgstr "" +msgstr "BDFL" 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 "" msgid "binary file" -msgstr "" +msgstr "plik binarny" 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 "" 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 "" msgid "borrowed reference" msgstr "" msgid "" -"In Python's C API, a borrowed reference is a reference to an object. It does " -"not modify the object reference count. It becomes a dangling pointer if the " -"object is destroyed. For example, a garbage collection can remove the last :" -"term:`strong reference` to the object and so destroy it." +"In Python's C API, a borrowed reference is a reference to an object, where " +"the code using the object does not own the reference. It becomes a dangling " +"pointer if the object is destroyed. For example, a garbage collection can " +"remove the last :term:`strong reference` to the object and so destroy it." msgstr "" msgid "" "Calling :c:func:`Py_INCREF` on the :term:`borrowed reference` is recommended " "to convert it to a :term:`strong reference` in-place, except when the object " -"cannot be destroyed before the last usage of the borrowed reference. The :c:" -"func:`Py_NewRef` function can be used to create a new :term:`strong " +"cannot be destroyed before the last usage of the borrowed reference. " +"The :c:func:`Py_NewRef` function can be used to create a new :term:`strong " "reference`." msgstr "" @@ -289,20 +303,20 @@ msgid "bytes-like object" msgstr "" 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 "" 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 " +"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 "" @@ -321,8 +335,8 @@ msgid "" msgstr "" 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 "" msgid "callable" @@ -348,7 +362,7 @@ msgid "" msgstr "" msgid "class" -msgstr "" +msgstr "klasa" msgid "" "A template for creating user-defined objects. Class definitions normally " @@ -363,9 +377,23 @@ msgid "" "level (i.e., not in an instance of the class)." msgstr "" -msgid "complex number" +msgid "coercion" msgstr "" +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 " +"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 "" + +msgid "complex number" +msgstr "liczba zespolona" + msgid "" "An extension of the familiar real number system in which all numbers are " "expressed as a sum of a real part and an imaginary part. Imaginary numbers " @@ -426,13 +454,13 @@ msgstr "" 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 "" msgid "CPython" -msgstr "" +msgstr "CPython" msgid "" "The canonical implementation of the Python programming language, as " @@ -442,7 +470,7 @@ msgid "" msgstr "" msgid "decorator" -msgstr "" +msgstr "dekorator" msgid "" "A function returning another function, usually applied as a function " @@ -462,11 +490,11 @@ msgid "" msgstr "" msgid "descriptor" -msgstr "" +msgstr "deskryptor" 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 " @@ -482,7 +510,7 @@ msgid "" msgstr "" msgid "dictionary" -msgstr "" +msgstr "słownik" msgid "" "An associative array, where arbitrary keys are mapped to values. The keys " @@ -504,15 +532,15 @@ msgid "dictionary view" msgstr "" 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 "" msgid "docstring" -msgstr "" +msgstr "docstring" msgid "" "A string literal which appears as the first expression in a class, function " @@ -531,14 +559,14 @@ msgid "" "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." +"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 "" msgid "EAFP" -msgstr "" +msgstr "EAFP" msgid "" "Easier to ask for forgiveness than permission. This common Python coding " @@ -550,7 +578,7 @@ msgid "" msgstr "" msgid "expression" -msgstr "" +msgstr "wyrażenie" msgid "" "A piece of syntax which can be evaluated to some value. In other words, an " @@ -571,7 +599,7 @@ msgid "" msgstr "" msgid "f-string" -msgstr "" +msgstr "f-string" msgid "" "String literals prefixed with ``'f'`` or ``'F'`` are commonly called \"f-" @@ -580,7 +608,7 @@ msgid "" msgstr "" msgid "file object" -msgstr "" +msgstr "obiekt plik" msgid "" "An object exposing a file-oriented API (with methods such as :meth:`read()` " @@ -620,23 +648,23 @@ msgid "" msgstr "" msgid "" -"The :func:`sys.getfilesystemencoding` and :func:`sys." -"getfilesystemencodeerrors` functions can be used to get the filesystem " -"encoding and error handler." +"The :func:`sys.getfilesystemencoding` " +"and :func:`sys.getfilesystemencodeerrors` functions can be used to get the " +"filesystem encoding and error handler." msgstr "" msgid "" "The :term:`filesystem encoding and error handler` are configured at Python " -"startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig." -"filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :" -"c:type:`PyConfig`." +"startup by the :c:func:`PyConfig_Read` function: " +"see :c:member:`~PyConfig.filesystem_encoding` " +"and :c:member:`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`." msgstr "" msgid "See also the :term:`locale encoding`." msgstr "" msgid "finder" -msgstr "" +msgstr "wyszukiwarka" msgid "" "An object that tries to find the :term:`loader` for a module that is being " @@ -664,13 +692,13 @@ msgid "" msgstr "" msgid "function" -msgstr "" +msgstr "funkcja" 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 "" msgid "function annotation" @@ -695,20 +723,20 @@ msgid "" msgstr "" msgid "__future__" -msgstr "" +msgstr "__future__" msgid "" "A :ref:`future statement `, ``from __future__ import ``, " "directs the compiler to compile the current module using syntax or semantics " -"that will become standard in a future release of Python. The :mod:" -"`__future__` module documents the possible values of *feature*. By " +"that will become standard in a future release of Python. " +"The :mod:`__future__` module documents the possible values of *feature*. By " "importing this module and evaluating its variables, you can see when a new " "feature was first added to the language and when it will (or did) become the " "default::" msgstr "" msgid "garbage collection" -msgstr "" +msgstr "zbieranie śmieci" msgid "" "The process of freeing memory when it is not used anymore. Python performs " @@ -718,7 +746,7 @@ msgid "" msgstr "" msgid "generator" -msgstr "" +msgstr "generator" msgid "" "A function which returns a :term:`generator iterator`. It looks like a " @@ -766,8 +794,8 @@ msgid "" msgstr "" 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 "" msgid "generic type" @@ -775,17 +803,18 @@ msgstr "" msgid "" "A :term:`type` that can be parameterized; typically a :ref:`container " -"class` such as :class:`list` or :class:`dict`. Used for :" -"term:`type hints ` and :term:`annotations `." +"class` such as :class:`list` or :class:`dict`. Used " +"for :term:`type hints ` and :term:`annotations `." msgstr "" msgid "" -"For more details, see :ref:`generic alias types`, :pep:" -"`483`, :pep:`484`, :pep:`585`, and the :mod:`typing` module." +"For more details, see :ref:`generic alias types`, :pep:`483`, :pep:`484`, :pep:`585`, and the :mod:`typing` " +"module." msgstr "" msgid "GIL" -msgstr "" +msgstr "GIL" msgid "See :term:`global interpreter lock`." msgstr "" @@ -852,7 +881,7 @@ msgid "" msgstr "" msgid "IDLE" -msgstr "" +msgstr "IDLE" msgid "" "An Integrated Development and Learning Environment for Python. :ref:`idle` " @@ -882,7 +911,7 @@ msgid "" msgstr "" msgid "importing" -msgstr "" +msgstr "import" msgid "" "The process by which Python code in one module is made available to Python " @@ -890,15 +919,15 @@ msgid "" msgstr "" msgid "importer" -msgstr "" +msgstr "importer" 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 "" msgid "interactive" -msgstr "" +msgstr "interaktywne" msgid "" "Python has an interactive interpreter which means you can enter statements " @@ -909,7 +938,7 @@ msgid "" msgstr "" msgid "interpreted" -msgstr "" +msgstr "zinterpretowane" msgid "" "Python is an interpreted language, as opposed to a compiled one, though the " @@ -926,12 +955,12 @@ msgstr "" 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)." +"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 "" msgid "" @@ -945,50 +974,52 @@ msgstr "" 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 "" 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 " -"unnamed variable to hold the iterator for the duration of the loop. See " -"also :term:`iterator`, :term:`sequence`, and :term:`generator`." +"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 "" msgid "iterator" -msgstr "" - -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 " -"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 "iterator" + +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 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 "" msgid "More information can be found in :ref:`typeiter`." msgstr "" msgid "" -"CPython does not consistently apply the requirement that an iterator define :" -"meth:`__iter__`." +"CPython does not consistently apply the requirement that an iterator " +"define :meth:`__iter__`." msgstr "" msgid "key function" @@ -1002,18 +1033,19 @@ msgstr "" 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`." +"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 "" 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` " -"expression such as ``lambda r: (r[0], r[2])``. Also, :func:`operator." -"attrgetter`, :func:`operator.itemgetter`, and :func:`operator.methodcaller` " -"are three key function constructors. See the :ref:`Sorting HOW TO " +"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 "" @@ -1021,10 +1053,10 @@ msgid "keyword argument" msgstr "" msgid "See :term:`argument`." -msgstr "" +msgstr "Zobacz :term:`argument`." msgid "lambda" -msgstr "" +msgstr "lambda" msgid "" "An anonymous inline function consisting of a single :term:`expression` which " @@ -1033,7 +1065,7 @@ msgid "" msgstr "" msgid "LBYL" -msgstr "" +msgstr "LBYL" msgid "" "Look before you leap. This coding style explicitly tests for pre-conditions " @@ -1054,25 +1086,25 @@ msgid "locale encoding" msgstr "" msgid "" -"On Unix, it is the encoding of the LC_CTYPE locale. It can be set with :func:" -"`locale.setlocale(locale.LC_CTYPE, new_locale) `." +"On Unix, it is the encoding of the LC_CTYPE locale. It can be set with " +"``locale.setlocale(locale.LC_CTYPE, new_locale)``." msgstr "" -msgid "On Windows, it is the ANSI code page (ex: ``\"cp1252\"``)." +msgid "On Windows, it is the ANSI code page (ex: ``cp1252``)." msgstr "" msgid "" -"On Android and VxWorks, Python uses ``\"utf-8\"`` as the locale encoding." -msgstr "" - -msgid "``locale.getencoding()`` can be used to get the locale encoding." +"``locale.getpreferredencoding(False)`` can be used to get the locale " +"encoding." msgstr "" -msgid "See also the :term:`filesystem encoding and error handler`." +msgid "" +"Python uses the :term:`filesystem encoding and error handler` to convert " +"between Unicode filenames and bytes filenames." msgstr "" msgid "list" -msgstr "" +msgstr "lista" msgid "" "A built-in Python :term:`sequence`. Despite its name it is more akin to an " @@ -1092,17 +1124,17 @@ msgid "" msgstr "" msgid "loader" -msgstr "" +msgstr "ładowarka" 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 "" msgid "magic method" -msgstr "" +msgstr "metoda magiczna" msgid "An informal synonym for :term:`special method`." msgstr "" @@ -1112,11 +1144,11 @@ msgstr "" 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 "" msgid "meta path finder" @@ -1134,7 +1166,7 @@ msgid "" msgstr "" msgid "metaclass" -msgstr "" +msgstr "metaklasa" msgid "" "The class of a class. Class definitions create a class name, a class " @@ -1152,13 +1184,13 @@ msgid "More information can be found in :ref:`metaclasses`." msgstr "" msgid "method" -msgstr "" +msgstr "metoda" 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`." +"first :term:`argument` (which is usually called ``self``). " +"See :term:`function` and :term:`nested scope`." msgstr "" msgid "method resolution order" @@ -1172,7 +1204,7 @@ msgid "" msgstr "" msgid "module" -msgstr "" +msgstr "moduł" msgid "" "An object that serves as an organizational unit of Python code. Modules " @@ -1192,7 +1224,7 @@ msgid "" msgstr "" msgid "MRO" -msgstr "" +msgstr "MRO" msgid "See :term:`method resolution order`." msgstr "" @@ -1201,12 +1233,12 @@ msgid "mutable" msgstr "" 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 "" msgid "named tuple" -msgstr "" +msgstr "nazwana krotka" msgid "" "The term \"named tuple\" applies to any type or class that inherits from " @@ -1215,18 +1247,19 @@ msgid "" msgstr "" 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 "" 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 " -"methods that may not be found in hand-written or built-in named tuples." +"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 "" msgid "namespace" @@ -1236,12 +1269,13 @@ 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." +"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 "" msgid "namespace package" @@ -1275,12 +1309,12 @@ msgstr "" 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 "" msgid "object" -msgstr "" +msgstr "obiekt" msgid "" "Any data with state (attributes or value) and defined behavior (methods). " @@ -1288,7 +1322,7 @@ msgid "" msgstr "" msgid "package" -msgstr "" +msgstr "pakiet" msgid "" "A Python :term:`module` which can contain submodules or recursively, " @@ -1353,8 +1387,8 @@ msgstr "" 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 "" msgid "path entry" @@ -1369,9 +1403,9 @@ msgid "path entry finder" msgstr "" 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 "" msgid "" @@ -1400,18 +1434,18 @@ msgid "path-like object" msgstr "" 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`." +"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 "" msgid "PEP" -msgstr "" +msgstr "PEP" msgid "" "Python Enhancement Proposal. A PEP is a design document providing " @@ -1429,10 +1463,10 @@ msgid "" msgstr "" msgid "See :pep:`1`." -msgstr "" +msgstr "Zob. :pep:`1`." msgid "portion" -msgstr "" +msgstr "część" msgid "" "A set of files in a single directory (possibly stored in a zip file) that " @@ -1474,7 +1508,7 @@ msgid "See :term:`provisional API`." msgstr "" msgid "Python 3000" -msgstr "" +msgstr "Python 3000" msgid "" "Nickname for the Python 3.x release line (coined long ago when the release " @@ -1483,7 +1517,7 @@ msgid "" msgstr "" msgid "Pythonic" -msgstr "" +msgstr "Pythoniczny" msgid "" "An idea or piece of code which closely follows the most common idioms of the " @@ -1509,8 +1543,8 @@ msgstr "" 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 "" msgid "reference count" @@ -1520,23 +1554,24 @@ msgid "" "The number of references to an object. When the reference count of an " "object drops to zero, it is deallocated. Reference counting is generally " "not visible to Python code, but it is a key element of the :term:`CPython` " -"implementation. Programmers can call the :func:`sys.getrefcount` function " -"to return the reference count for a particular object." +"implementation. The :mod:`sys` module defines a :func:`~sys.getrefcount` " +"function that programmers can call to return the reference count for a " +"particular object." msgstr "" msgid "regular package" msgstr "" 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 "" msgid "See also :term:`namespace package`." msgstr "" msgid "__slots__" -msgstr "" +msgstr "__slots__" msgid "" "A declaration inside a class that saves memory by pre-declaring space for " @@ -1547,24 +1582,26 @@ msgid "" msgstr "" msgid "sequence" -msgstr "" +msgstr "sekwencja" 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 "" 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.ABCMeta.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.ABCMeta.register`." msgstr "" msgid "set comprehension" @@ -1573,8 +1610,8 @@ msgstr "" msgid "" "A compact way to process all or part of the elements in an iterable and " "return a set with the results. ``results = {c for c in 'abracadabra' if c " -"not in 'abc'}`` generates the set of strings ``{'r', 'd'}``. See :ref:" -"`comprehensions`." +"not in 'abc'}`` generates the set of strings ``{'r', 'd'}``. " +"See :ref:`comprehensions`." msgstr "" msgid "single dispatch" @@ -1601,26 +1638,27 @@ msgstr "" 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 "" msgid "statement" -msgstr "" +msgstr "instrukcja" 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`." +"an :term:`expression` or one of several constructs with a keyword, such " +"as :keyword:`if`, :keyword:`while` or :keyword:`for`." msgstr "" msgid "strong reference" msgstr "" msgid "" -"In Python's C API, a strong reference is a reference to an object which " -"increments the object's reference count when it is created and decrements " -"the object's reference count when it is deleted." +"In Python's C API, a strong reference is a reference to an object which is " +"owned by the code holding the reference. The strong reference is taken by " +"calling :c:func:`Py_INCREF` when the reference is created and released " +"with :c:func:`Py_DECREF` when the reference is deleted." msgstr "" msgid "" @@ -1634,11 +1672,11 @@ msgid "See also :term:`borrowed reference`." msgstr "" msgid "text encoding" -msgstr "" +msgstr "kodowanie tekstu" msgid "" -"A string in Python is a sequence of Unicode code points (in range ``U" -"+0000``--``U+10FFFF``). To store or transfer a string, it needs to be " +"A string in Python is a sequence of Unicode code points (in range " +"``U+0000``--``U+10FFFF``). To store or transfer a string, it needs to be " "serialized as a sequence of bytes." msgstr "" @@ -1651,21 +1689,31 @@ msgid "" "There are a variety of different text serialization :ref:`codecs `, which are collectively referred to as \"text encodings\"." msgstr "" +"Istnieje wiele różnych serializacji tekstu :ref:`codecs `, które są zbiorczo określane jako \"kodowanie tekstu\"." msgid "text file" -msgstr "" +msgstr "plik tekstowy" 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 "" +":term:`Obiekt pliku ` może odczytywać i zapisywać " +"obiekty :class:`str`. Często plik tekstowy faktycznie uzyskuje dostęp do " +"strumienia danych zorientowanego na bajty i automatycznie " +"obsługuje :term:`kodowanie tekstu `. Przykładami plików " +"tekstowych są pliki otwierane w trybie tekstowym (``'r'`` lub " +"``'w'``), :data:`sys.stdin`, :data:`sys.stdout` i " +"instancje :class:`io.StringIO`." 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 "" msgid "triple-quoted string" @@ -1682,12 +1730,13 @@ msgid "" msgstr "" msgid "type" -msgstr "" +msgstr "typ" 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 "" msgid "type alias" @@ -1727,14 +1776,14 @@ msgid "" msgstr "" msgid "universal newlines" -msgstr "" +msgstr "uniwersalne nowe linie" 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." +"``'\\r'``. See :pep:`278` and :pep:`3116`, as well " +"as :func:`bytes.splitlines` for an additional use." msgstr "" msgid "variable annotation" diff --git a/howto/annotations.po b/howto/annotations.po index 0aefc53986..21320714e9 100644 --- a/howto/annotations.po +++ b/howto/annotations.po @@ -1,37 +1,37 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 +# Ciarbin , 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Ciarbin , 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Annotations Best Practices" -msgstr "" +msgstr "Najlepsze praktyki dotyczące adnotacji" msgid "author" msgstr "autor" msgid "Larry Hastings" -msgstr "" +msgstr "Larry Hastings" msgid "Abstract" msgstr "Streszczenie" @@ -42,6 +42,10 @@ msgid "" "``__annotations__`` on Python objects, we encourage you to follow the " "guidelines described below." msgstr "" +"Ten dokument ma na celu przedstawienie najlepszych praktyk dotyczących pracy " +"ze słownikami adnotacji. Jeśli piszesz kod w języku Python, który analizuje " +"``__annotations__`` na obiektach tego języka, zachęcamy do stosowania się do " +"wytycznych opisanych poniżej." msgid "" "The document is organized into four sections: best practices for accessing " @@ -54,37 +58,45 @@ msgstr "" msgid "" "Note that this document is specifically about working with " "``__annotations__``, not uses *for* annotations. If you're looking for " -"information on how to use \"type hints\" in your code, please see the :mod:" -"`typing` module." +"information on how to use \"type hints\" in your code, please see " +"the :mod:`typing` module." msgstr "" msgid "Accessing The Annotations Dict Of An Object In Python 3.10 And Newer" msgstr "" msgid "" -"Python 3.10 adds a new function to the standard library: :func:`inspect." -"get_annotations`. In Python versions 3.10 and newer, calling this function " -"is the best practice for accessing the annotations dict of any object that " -"supports annotations. This function can also \"un-stringize\" stringized " -"annotations for you." +"Python 3.10 adds a new function to the standard " +"library: :func:`inspect.get_annotations`. In Python versions 3.10 and " +"newer, calling this function is the best practice for accessing the " +"annotations dict of any object that supports annotations. This function can " +"also \"un-stringize\" stringized annotations for you." msgstr "" msgid "" "If for some reason :func:`inspect.get_annotations` isn't viable for your use " "case, you may access the ``__annotations__`` data member manually. Best " -"practice for this changed in Python 3.10 as well: as of Python 3.10, ``o." -"__annotations__`` is guaranteed to *always* work on Python functions, " +"practice for this changed in Python 3.10 as well: as of Python 3.10, " +"``o.__annotations__`` is guaranteed to *always* work on Python functions, " "classes, and modules. If you're certain the object you're examining is one " "of these three *specific* objects, you may simply use ``o.__annotations__`` " "to get at the object's annotations dict." msgstr "" msgid "" -"However, other types of callables--for example, callables created by :func:" -"`functools.partial`--may not have an ``__annotations__`` attribute defined. " -"When accessing the ``__annotations__`` of a possibly unknown object, best " -"practice in Python versions 3.10 and newer is to call :func:`getattr` with " -"three arguments, for example ``getattr(o, '__annotations__', None)``." +"However, other types of callables--for example, callables created " +"by :func:`functools.partial`--may not have an ``__annotations__`` attribute " +"defined. When accessing the ``__annotations__`` of a possibly unknown " +"object, best practice in Python versions 3.10 and newer is to " +"call :func:`getattr` with three arguments, for example ``getattr(o, " +"'__annotations__', None)``." +msgstr "" + +msgid "" +"Before Python 3.10, accessing ``__annotations__`` on a class that defines no " +"annotations but that has a parent class with annotations would return the " +"parent's ``__annotations__``. In Python 3.10 and newer, the child class's " +"annotations will be an empty dict instead." msgstr "" msgid "Accessing The Annotations Dict Of An Object In Python 3.9 And Older" @@ -132,8 +144,8 @@ msgstr "" msgid "" "After running this code, ``ann`` should be either a dictionary or ``None``. " -"You're encouraged to double-check the type of ``ann`` using :func:" -"`isinstance` before further examination." +"You're encouraged to double-check the type of ``ann`` " +"using :func:`isinstance` before further examination." msgstr "" msgid "" @@ -153,10 +165,11 @@ msgid "" msgstr "" msgid "" -"If you're using Python 3.9 or older, or if for some reason you can't use :" -"func:`inspect.get_annotations`, you'll need to duplicate its logic. You're " -"encouraged to examine the implementation of :func:`inspect.get_annotations` " -"in the current Python version and follow a similar approach." +"If you're using Python 3.9 or older, or if for some reason you can't " +"use :func:`inspect.get_annotations`, you'll need to duplicate its logic. " +"You're encouraged to examine the implementation " +"of :func:`inspect.get_annotations` in the current Python version and follow " +"a similar approach." msgstr "" msgid "" @@ -165,21 +178,22 @@ msgid "" msgstr "" msgid "" -"If ``o`` is a module, use ``o.__dict__`` as the ``globals`` when calling :" -"func:`eval`." +"If ``o`` is a module, use ``o.__dict__`` as the ``globals`` when " +"calling :func:`eval`." msgstr "" msgid "" "If ``o`` is a class, use ``sys.modules[o.__module__].__dict__`` as the " -"``globals``, and ``dict(vars(o))`` as the ``locals``, when calling :func:" -"`eval`." +"``globals``, and ``dict(vars(o))`` as the ``locals``, when " +"calling :func:`eval`." msgstr "" msgid "" -"If ``o`` is a wrapped callable using :func:`functools.update_wrapper`, :func:" -"`functools.wraps`, or :func:`functools.partial`, iteratively unwrap it by " -"accessing either ``o.__wrapped__`` or ``o.func`` as appropriate, until you " -"have found the root unwrapped function." +"If ``o`` is a wrapped callable " +"using :func:`functools.update_wrapper`, :func:`functools.wraps`, " +"or :func:`functools.partial`, iteratively unwrap it by accessing either " +"``o.__wrapped__`` or ``o.func`` as appropriate, until you have found the " +"root unwrapped function." msgstr "" msgid "" @@ -201,8 +215,8 @@ msgid "" msgstr "" msgid "" -"Definitions that aren't needed at runtime, only imported when :const:`typing." -"TYPE_CHECKING` is true." +"Definitions that aren't needed at runtime, only imported " +"when :const:`typing.TYPE_CHECKING` is true." msgstr "" msgid "" @@ -239,7 +253,7 @@ msgid "" msgstr "" msgid "``__annotations__`` Quirks" -msgstr "" +msgstr "``__annotations__`` Quirks" msgid "" "In all versions of Python 3, function objects lazy-create an annotations " diff --git a/howto/argparse.po b/howto/argparse.po index 489cad2e76..1262a315ee 100644 --- a/howto/argparse.po +++ b/howto/argparse.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Argparse Tutorial" msgstr "" @@ -39,9 +39,9 @@ msgstr "" 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." +"(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 "" msgid "Concepts" @@ -116,7 +116,7 @@ msgid "Introducing Positional arguments" msgstr "" msgid "An example::" -msgstr "" +msgstr "Przykład::" msgid "And running the code:" msgstr "" @@ -161,8 +161,8 @@ msgstr "" 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::" +"give it as strings, unless we tell it otherwise. So, let's " +"tell :mod:`argparse` to treat that input as an integer::" msgstr "" msgid "" @@ -190,8 +190,8 @@ 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." +"``None`` as a value, which is the reason it fails the truth test of " +"the :keyword:`if` statement." msgstr "" msgid "The help message is a bit different." @@ -212,8 +212,8 @@ 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``." +"This means that, if the option is specified, assign the value ``True`` " +"to :data:`args.verbose`. Not specifying it implies ``False``." msgstr "" msgid "" @@ -334,12 +334,12 @@ 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 "" msgid "And:" -msgstr "" +msgstr "I:" msgid "" "You can go quite far just with what we've learned so far, and we have only " @@ -368,12 +368,12 @@ msgid "Conflicting options" msgstr "" 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 "" msgid "" diff --git a/howto/clinic.po b/howto/clinic.po index 28821a185f..4353af9f34 100644 --- a/howto/clinic.po +++ b/howto/clinic.po @@ -1,37 +1,36 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:52+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Argument Clinic How-To" -msgstr "" +msgstr "Argument Clinic - jak to zrobić" msgid "author" msgstr "autor" msgid "Larry Hastings" -msgstr "" +msgstr "Larry Hastings" msgid "Abstract" msgstr "Streszczenie" @@ -110,8 +109,8 @@ msgid "Basic Concepts And Usage" msgstr "" 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 "" msgid "" @@ -206,9 +205,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -224,9 +224,9 @@ msgid "" msgstr "" 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." @@ -283,8 +283,8 @@ msgstr "" 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 "" msgid "" @@ -352,9 +352,9 @@ msgid "(``_pickle.Pickler.dump`` has neither, so our sample is unchanged.)" msgstr "" 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 "" msgid "" @@ -408,15 +408,15 @@ msgstr "" 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 "" 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 "" msgid "" @@ -439,8 +439,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -531,6 +531,11 @@ msgid "" "name of the module" msgstr "" +msgid "" +"In case you're curious, this is implemented in ``from_builtin()`` in ``Lib/" +"inspect.py``." +msgstr "" + msgid "" "(In the future, this may need to get even more elaborate, to allow full " "expressions like ``CONSTANT - 1``.)" @@ -579,11 +584,11 @@ msgid "Converting functions using PyArg_UnpackTuple" msgstr "" 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 "" msgid "" @@ -605,16 +610,16 @@ msgid "" msgstr "" 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 "" msgid "" @@ -731,17 +736,17 @@ msgstr "" 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 "" msgid "``annotation``" msgstr "" msgid "" -"The annotation value for this parameter. Not currently supported, because :" -"pep:`8` mandates that the Python library may not use annotations." +"The annotation value for this parameter. Not currently supported, " +"because :pep:`8` mandates that the Python library may not use annotations." msgstr "" msgid "" @@ -801,8 +806,8 @@ msgstr "" 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 "" msgid "``zeroes``" @@ -844,7 +849,7 @@ msgid "``unsigned_char``" msgstr "" msgid "``'c'``" -msgstr "" +msgstr "``'c'``" msgid "``char``" msgstr "" @@ -862,7 +867,7 @@ msgid "``double``" msgstr "" msgid "``'D'``" -msgstr "" +msgstr "``'D'``" msgid "``Py_complex``" msgstr "" @@ -915,7 +920,7 @@ msgid "``'i'``" msgstr "``'i'``" msgid "``int``" -msgstr "" +msgstr "``int``" msgid "``'I'``" msgstr "``'I'``" @@ -939,7 +944,7 @@ msgid "``'l'``" msgstr "``'I'``" msgid "``long``" -msgstr "" +msgstr "``long``" msgid "``'L'``" msgstr "``'L'``" @@ -948,7 +953,7 @@ msgid "``long long``" msgstr "" msgid "``'n'``" -msgstr "" +msgstr "``'n'``" msgid "``Py_ssize_t``" msgstr "" @@ -975,19 +980,19 @@ msgid "``'p'``" msgstr "" msgid "``bool``" -msgstr "" +msgstr "``bool``" msgid "``'S'``" -msgstr "" +msgstr "``'S'``" msgid "``PyBytesObject``" msgstr "" msgid "``'s'``" -msgstr "" +msgstr "``'s'``" msgid "``str``" -msgstr "" +msgstr "``str``" msgid "``'s#'``" msgstr "" @@ -1104,9 +1109,9 @@ msgstr "" 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)." +"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 "" msgid "Advanced converters" @@ -1350,9 +1355,9 @@ msgid "Here's the syntax for cloning a function::" msgstr "" 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 "" msgid "" @@ -1381,8 +1386,8 @@ msgstr "" 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 "" msgid "" @@ -1428,9 +1433,9 @@ msgid "" "Argument Clinic facilitates gaining access to the defining class of a " "method. This is useful for :ref:`heap type ` methods that need " "to fetch module level state. Use :c:func:`PyType_FromModuleAndSpec` to " -"associate a new heap type with a module. You can now use :c:func:" -"`PyType_GetModuleState` on the defining class to fetch the module state, for " -"example from a module method." +"associate a new heap type with a module. You can now " +"use :c:func:`PyType_GetModuleState` on the defining class to fetch the " +"module state, for example from a module method." msgstr "" msgid "" @@ -1462,10 +1467,10 @@ msgstr "" msgid "" "It is not possible to use ``defining_class`` with slot methods. In order to " -"fetch the module state from such methods, use :c:func:" -"`PyType_GetModuleByDef` to look up the module and then :c:func:" -"`PyModule_GetState` to fetch the module state. Example from the " -"``setattro`` slot method in ``Modules/_threadmodule.c``::" +"fetch the module state from such methods, use ``_PyType_GetModuleByDef`` to " +"look up the module and then :c:func:`PyModule_GetState` to fetch the module " +"state. Example from the ``setattro`` slot method in ``Modules/" +"_threadmodule.c``::" msgstr "" msgid "See also :pep:`573`." @@ -1563,16 +1568,16 @@ msgid "" msgstr "" 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 "" msgid "" "This block adds a converter to Argument Clinic named ``ssize_t``. " -"Parameters declared as ``ssize_t`` will be declared as type :c:type:" -"`Py_ssize_t`, and will be parsed by the ``'O&'`` format unit, which will " -"call the ``ssize_t_converter`` converter function. ``ssize_t`` variables " -"automatically support default values." +"Parameters declared as ``ssize_t`` will be declared as " +"type :c:type:`Py_ssize_t`, and will be parsed by the ``'O&'`` format unit, " +"which will call the ``ssize_t_converter`` converter function. ``ssize_t`` " +"variables automatically support default values." msgstr "" msgid "" @@ -1690,9 +1695,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 "" msgid "*destination*" @@ -1726,9 +1731,9 @@ msgstr "" 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``.)" +"``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 "" msgid "" diff --git a/howto/curses.po b/howto/curses.po index 4f02f4a524..94906c47be 100644 --- a/howto/curses.po +++ b/howto/curses.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Curses Programming with Python" msgstr "" @@ -37,7 +36,7 @@ msgid "Release" msgstr "wydanie" msgid "2.04" -msgstr "" +msgstr "2.04" msgid "Abstract" msgstr "Streszczenie" @@ -107,9 +106,9 @@ msgid "" "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." +"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 "" msgid "" @@ -147,9 +146,9 @@ 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 " "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 "" msgid "" @@ -158,9 +157,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -181,11 +180,11 @@ 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." +"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 "" msgid "Windows and Pads" @@ -201,9 +200,9 @@ 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 "" msgid "" @@ -216,25 +215,26 @@ msgid "" msgstr "" 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 "" 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 "" 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 " +"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 "" @@ -243,8 +243,9 @@ msgid "" "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." +"redrawn before pausing to wait for user input, by first calling " +"``stdscr.refresh()`` or the :meth:`refresh` method of some other relevant " +"window." msgstr "" msgid "" @@ -293,15 +294,16 @@ msgid "" "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." +"allows specifying a window to use instead of using ``stdscr`` by " +"default. :c:func:`mvwaddstr` allows specifying both a window and a " +"coordinate." msgstr "" 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 "" msgid "Form" @@ -349,7 +351,7 @@ msgid "" "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.getencoding`." +"encoding as returned by :func:`locale.getpreferredencoding`." msgstr "" msgid "" @@ -377,8 +379,8 @@ msgstr "" 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 "" @@ -403,40 +405,40 @@ msgid "" msgstr "" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid ":const:`A_BLINK`" -msgstr "" +msgstr ":const:`A_BLINK`" msgid "Blinking text" msgstr "" msgid ":const:`A_BOLD`" -msgstr "" +msgstr ":const:`A_BOLD`" msgid "Extra bright or bold text" msgstr "" msgid ":const:`A_DIM`" -msgstr "" +msgstr ":const:`A_DIM`" msgid "Half bright text" msgstr "" msgid ":const:`A_REVERSE`" -msgstr "" +msgstr ":const:`A_REVERSE`" msgid "Reverse-video text" msgstr "" msgid ":const:`A_STANDOUT`" -msgstr "" +msgstr ":const:`A_STANDOUT`" msgid "The best highlighting mode available" msgstr "" msgid ":const:`A_UNDERLINE`" -msgstr "" +msgstr ":const:`A_UNDERLINE`" msgid "Underlined text" msgstr "" @@ -466,10 +468,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 "" msgid "An example, which displays a line of text using color pair 1::" @@ -484,10 +486,10 @@ msgstr "" 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." +"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 "" msgid "" @@ -506,20 +508,20 @@ msgid "" "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 " -"your system's man pages for more information." +"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 "" msgid "User Input" msgstr "" 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 "" msgid "There are two methods for getting input from a window:" @@ -540,23 +542,25 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -569,18 +573,19 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -601,8 +606,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 "" msgid "" @@ -610,8 +615,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 "" msgid "" diff --git a/howto/descriptor.po b/howto/descriptor.po index a7b62130e9..ef26095e14 100644 --- a/howto/descriptor.po +++ b/howto/descriptor.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Descriptor HowTo Guide" msgstr "" @@ -70,8 +68,9 @@ msgstr "" msgid "" "The last section has pure Python equivalents for built-in descriptors that " "are written in C. Read this if you're curious about how functions turn into " -"bound methods or about the implementation of common tools like :func:" -"`classmethod`, :func:`staticmethod`, :func:`property`, and :term:`__slots__`." +"bound methods or about the implementation of common tools " +"like :func:`classmethod`, :func:`staticmethod`, :func:`property`, " +"and :term:`__slots__`." msgstr "" msgid "Primer" @@ -189,9 +188,9 @@ msgid "" msgstr "" msgid "" -"An interactive session shows that the :class:`Person` class has called :meth:" -"`__set_name__` so that the field names would be recorded. Here we call :" -"func:`vars` to look up the descriptor without triggering it:" +"An interactive session shows that the :class:`Person` class has " +"called :meth:`__set_name__` so that the field names would be recorded. Here " +"we call :func:`vars` to look up the descriptor without triggering it:" msgstr "" msgid "The new class now logs access to both *name* and *age*:" @@ -204,8 +203,8 @@ msgid "Closing thoughts" msgstr "" msgid "" -"A :term:`descriptor` is what we call any object that defines :meth:" -"`__get__`, :meth:`__set__`, or :meth:`__delete__`." +"A :term:`descriptor` is what we call any object that " +"defines :meth:`__get__`, :meth:`__set__`, or :meth:`__delete__`." msgstr "" msgid "" @@ -239,9 +238,9 @@ msgstr "" msgid "" "Descriptors are used throughout the language. It is how functions turn into " -"bound methods. Common tools like :func:`classmethod`, :func:" -"`staticmethod`, :func:`property`, and :func:`functools.cached_property` are " -"all implemented as descriptors." +"bound methods. Common tools " +"like :func:`classmethod`, :func:`staticmethod`, :func:`property`, " +"and :func:`functools.cached_property` are all implemented as descriptors." msgstr "" msgid "Complete Practical Example" @@ -268,8 +267,8 @@ msgid "" msgstr "" msgid "" -"Custom validators need to inherit from :class:`Validator` and must supply a :" -"meth:`validate` method to test various restrictions as needed." +"Custom validators need to inherit from :class:`Validator` and must supply " +"a :meth:`validate` method to test various restrictions as needed." msgstr "" msgid "Custom validators" @@ -283,9 +282,9 @@ msgid "" msgstr "" msgid "" -":class:`Number` verifies that a value is either an :class:`int` or :class:" -"`float`. Optionally, it verifies that a value is between a given minimum or " -"maximum." +":class:`Number` verifies that a value is either an :class:`int` " +"or :class:`float`. Optionally, it verifies that a value is between a given " +"minimum or maximum." msgstr "" msgid "" @@ -330,9 +329,10 @@ msgstr "" msgid "" "In general, a descriptor is an attribute value that has one of the methods " -"in the descriptor protocol. Those methods are :meth:`__get__`, :meth:" -"`__set__`, and :meth:`__delete__`. If any of those methods are defined for " -"an attribute, it is said to be a :term:`descriptor`." +"in the descriptor protocol. Those methods " +"are :meth:`__get__`, :meth:`__set__`, and :meth:`__delete__`. If any of " +"those methods are defined for an attribute, it is said to be " +"a :term:`descriptor`." msgstr "" msgid "" @@ -348,8 +348,8 @@ msgstr "" 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. Descriptors " +"mechanism behind properties, methods, static methods, class methods, " +"and :func:`super()`. They are used throughout Python itself. Descriptors " "simplify the underlying C code and offer a flexible set of new tools for " "everyday Python programs." msgstr "" @@ -388,18 +388,18 @@ msgid "" msgstr "" 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 " -"placeholder is enough to make it a data descriptor." +"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 "" msgid "Overview of descriptor invocation" msgstr "" msgid "" -"A descriptor can be called directly with ``desc.__get__(obj)`` or ``desc." -"__get__(None, cls)``." +"A descriptor can be called directly with ``desc.__get__(obj)`` or " +"``desc.__get__(None, cls)``." msgstr "" msgid "" @@ -430,8 +430,8 @@ msgid "" msgstr "" msgid "" -"If a descriptor is found for ``a.x``, then it is invoked with: ``desc." -"__get__(a, type(a))``." +"If a descriptor is found for ``a.x``, then it is invoked with: " +"``desc.__get__(a, type(a))``." msgstr "" msgid "" @@ -447,27 +447,27 @@ msgstr "" msgid "" "Instead, it is the dot operator and the :func:`getattr` function that are " -"responsible for invoking :meth:`__getattr__` whenever :meth:" -"`__getattribute__` raises an :exc:`AttributeError`. Their logic is " -"encapsulated in a helper function:" +"responsible for invoking :meth:`__getattr__` " +"whenever :meth:`__getattribute__` raises an :exc:`AttributeError`. Their " +"logic is encapsulated in a helper function:" msgstr "" msgid "Invocation from a class" msgstr "" msgid "" -"The logic for a dotted lookup such as ``A.x`` is in :meth:`type." -"__getattribute__`. The steps are similar to those for :meth:`object." -"__getattribute__` but the instance dictionary lookup is replaced by a search " -"through the class's :term:`method resolution order`." +"The logic for a dotted lookup such as ``A.x`` is " +"in :meth:`type.__getattribute__`. The steps are similar to those " +"for :meth:`object.__getattribute__` but the instance dictionary lookup is " +"replaced by a search through the class's :term:`method resolution order`." msgstr "" msgid "If a descriptor is found, it is invoked with ``desc.__get__(None, A)``." msgstr "" msgid "" -"The full C implementation can be found in :c:func:`type_getattro()` and :c:" -"func:`_PyType_Lookup()` in :source:`Objects/typeobject.c`." +"The full C implementation can be found in :c:func:`type_getattro()` " +"and :c:func:`_PyType_Lookup()` in :source:`Objects/typeobject.c`." msgstr "" msgid "Invocation from super" @@ -479,15 +479,15 @@ msgid "" msgstr "" msgid "" -"A dotted lookup such as ``super(A, obj).m`` searches ``obj.__class__." -"__mro__`` for the base class ``B`` immediately following ``A`` and then " -"returns ``B.__dict__['m'].__get__(obj, A)``. If not a descriptor, ``m`` is " -"returned unchanged." +"A dotted lookup such as ``super(A, obj).m`` searches " +"``obj.__class__.__mro__`` for the base class ``B`` immediately following " +"``A`` and then returns ``B.__dict__['m'].__get__(obj, A)``. If not a " +"descriptor, ``m`` is returned unchanged." msgstr "" msgid "" -"The full C implementation can be found in :c:func:`super_getattro()` in :" -"source:`Objects/typeobject.c`. A pure Python equivalent can be found in " +"The full C implementation can be found in :c:func:`super_getattro()` " +"in :source:`Objects/typeobject.c`. A pure Python equivalent can be found in " "`Guido's Tutorial `_." msgstr "" @@ -507,8 +507,8 @@ msgid "Descriptors are invoked by the :meth:`__getattribute__` method." msgstr "" msgid "" -"Classes inherit this machinery from :class:`object`, :class:`type`, or :func:" -"`super`." +"Classes inherit this machinery from :class:`object`, :class:`type`, " +"or :func:`super`." msgstr "" msgid "" @@ -542,8 +542,8 @@ msgid "" msgstr "" msgid "" -"The implementation details are in :c:func:`type_new()` and :c:func:" -"`set_names()` in :source:`Objects/typeobject.c`." +"The implementation details are in :c:func:`type_new()` " +"and :c:func:`set_names()` in :source:`Objects/typeobject.c`." msgstr "" msgid "" @@ -557,8 +557,8 @@ msgstr "" msgid "" "The following code is a simplified skeleton showing how data descriptors " -"could be used to implement an `object relational mapping `_." +"could be used to implement an `object relational mapping `_." msgstr "" msgid "" @@ -568,9 +568,9 @@ msgid "" msgstr "" msgid "" -"We can use the :class:`Field` class to define `models `_ that describe the schema for each table in a " -"database:" +"We can use the :class:`Field` class to define `models `_ that describe the schema for each " +"table in a database:" msgstr "" msgid "To use the models, first connect to the database::" @@ -587,8 +587,8 @@ msgstr "" msgid "" "The descriptor protocol is simple and offers exciting possibilities. " "Several use cases are so common that they have been prepackaged into built-" -"in tools. Properties, bound methods, static methods, class methods, and \\_" -"\\_slots\\_\\_ are all based on the descriptor protocol." +"in tools. Properties, bound methods, static methods, class methods, and " +"\\_\\_slots\\_\\_ are all based on the descriptor protocol." msgstr "" msgid "Properties" @@ -650,10 +650,10 @@ msgid "" msgstr "" msgid "" -"To support automatic creation of methods, functions include the :meth:" -"`__get__` method for binding methods during attribute access. This means " -"that functions are non-data descriptors that return bound methods during " -"dotted lookup from an instance. Here's how it works:" +"To support automatic creation of methods, functions include " +"the :meth:`__get__` method for binding methods during attribute access. " +"This means that functions are non-data descriptors that return bound methods " +"during dotted lookup from an instance. Here's how it works:" msgstr "" msgid "" @@ -666,8 +666,9 @@ msgid "" msgstr "" msgid "" -"Accessing the function through the class dictionary does not invoke :meth:" -"`__get__`. Instead, it just returns the underlying function object::" +"Accessing the function through the class dictionary does not " +"invoke :meth:`__get__`. Instead, it just returns the underlying function " +"object::" msgstr "" msgid "" @@ -701,8 +702,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 ``cls." -"f(*args)`` becomes ``f(*args)``." +"transforms an ``obj.f(*args)`` call into ``f(obj, *args)``. Calling " +"``cls.f(*args)`` becomes ``f(*args)``." msgstr "" msgid "This chart summarizes the binding and its two most useful variants:" @@ -718,13 +719,13 @@ msgid "Called from a class" msgstr "" msgid "function" -msgstr "" +msgstr "funkcja" msgid "f(obj, \\*args)" msgstr "" msgid "f(\\*args)" -msgstr "" +msgstr "f(\\*args)" msgid "staticmethod" msgstr "" @@ -743,10 +744,10 @@ msgstr "" 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 "" msgid "" @@ -771,8 +772,8 @@ msgid "" msgstr "" 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 "" msgid "Class methods" @@ -796,15 +797,15 @@ msgid "Now a new dictionary of unique keys can be constructed like this:" msgstr "" 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 "" msgid "" "The code path for ``hasattr(type(self.f), '__get__')`` was added in Python " "3.9 and makes it possible for :func:`classmethod` to support chained " "decorators. For example, a classmethod and property could be chained " -"together. In Python 3.11, this functionality was deprecated." +"together:" msgstr "" msgid "Member objects and __slots__" diff --git a/howto/functional.po b/howto/functional.po index 71c7d19f18..341a947322 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -1,31 +1,32 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 +# Ciarbin , 2026 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Functional Programming HOWTO" -msgstr "" +msgstr "Poradnik programowania funkcjonalnego" msgid "Author" msgstr "Autor" @@ -37,15 +38,20 @@ msgid "Release" msgstr "wydanie" msgid "0.32" -msgstr "" +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 "" +"W niniejszym dokumencie omówimy elementy języka Python, które nadają się do " +"tworzenia programów w stylu funkcyjnym. Po wprowadzeniu do koncepcji " +"programowania funkcyjnego przyjrzymy się takim elementom języka, " +"jak :term:`iterator`\\s i :term:`generator`\\s, a także odpowiednim modułom " +"bibliotecznym, takim jak :mod:`itertools` i :mod:`functools`." msgid "Introduction" msgstr "Wprowadzenie" @@ -55,16 +61,25 @@ msgid "" "just interested in learning about Python language features, skip to the next " "section on :ref:`functional-howto-iterators`." msgstr "" +"W tej sekcji wyjaśniono podstawowe pojęcia programowania funkcyjnego; jeśli " +"chcesz po prostu zapoznać się z elementami języka Python, przejdź do " +"następnej sekcji poświęconej :ref:`functional-howto-iterators`." msgid "" "Programming languages support decomposing problems in several different ways:" msgstr "" +"Języki programowania umożliwiają rozkładanie problemów na czynniki pierwsze " +"na kilka różnych sposobów:" 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." msgstr "" +"Większość języków programowania ma charakter **proceduralny**: programy są " +"listami instrukcji, które wskazują komputerowi, co ma zrobić z danymi " +"wejściowymi programu. Języki C, Pascal, a nawet powłoki systemu Unix są " +"językami proceduralnymi." msgid "" "In **declarative** languages, you write a specification that describes the " @@ -74,6 +89,13 @@ msgid "" "to retrieve, and the SQL engine decides whether to scan tables or use " "indexes, which subclauses should be performed first, etc." msgstr "" +"W językach **deklaratywnych** pisze się specyfikację opisującą problem, " +"który ma zostać rozwiązany, a implementacja języka sama ustala, jak " +"efektywnie przeprowadzić obliczenia. SQL jest językiem deklaratywnym, który " +"najprawdopodobniej znasz najlepiej; zapytanie SQL opisuje zbiór danych, " +"który chcesz pobrać, a silnik SQL decyduje, czy przeszukiwać tabele, czy " +"korzystać z indeksów, które podklauzule należy wykonać w pierwszej " +"kolejności itp." msgid "" "**Object-oriented** programs manipulate collections of objects. Objects " @@ -82,6 +104,11 @@ msgid "" "and Python are languages that support object-oriented programming, but don't " "force the use of object-oriented features." msgstr "" +"Programy **obiektowe** operują na zbiorach obiektów. Obiekty posiadają stan " +"wewnętrzny oraz metody, które w jakiś sposób sprawdzają lub modyfikują ten " +"stan. Smalltalk i Java to języki obiektowe. C++ i Python to języki, które " +"obsługują programowanie obiektowe, ale nie wymuszają stosowania funkcji " +"obiektowych." msgid "" "**Functional** programming decomposes a problem into a set of functions. " @@ -90,6 +117,11 @@ msgid "" "known functional languages include the ML family (Standard ML, OCaml, and " "other variants) and Haskell." msgstr "" +"Programowanie **funkcyjne** polega na rozłożeniu problemu na zbiór funkcji. " +"W idealnym przypadku funkcje przyjmują jedynie dane wejściowe i generują " +"wyniki, nie posiadając żadnego stanu wewnętrznego, który wpływałby na wynik " +"generowany dla danego wejścia. Do dobrze znanych języków funkcyjnych należą " +"języki z rodziny ML (Standard ML, OCaml i inne warianty) oraz Haskell." msgid "" "The designers of some computer languages choose to emphasize one particular " @@ -102,6 +134,15 @@ msgid "" "GUI might be object-oriented while the processing logic is procedural or " "functional, for example." msgstr "" +"Twórcy niektórych języków programowania decydują się na podkreślenie jednego " +"konkretnego podejścia do programowania. Często utrudnia to pisanie programów " +"wykorzystujących inne podejście. Inne języki są językami " +"wieloparadygmatycznymi, które obsługują kilka różnych podejść. Lisp, C++ i " +"Python są językami wieloparadygmatycznymi; we wszystkich tych językach można " +"pisać programy lub biblioteki, które są w dużej mierze proceduralne, " +"obiektowe lub funkcyjne. W dużym programie różne sekcje mogą być napisane z " +"wykorzystaniem różnych podejść; na przykład interfejs graficzny może być " +"obiektowy, podczas gdy logika przetwarzania jest proceduralna lub funkcyjna." msgid "" "In a functional program, input flows through a set of functions. Each " @@ -258,7 +299,7 @@ msgid "" msgstr "" msgid "Iterators" -msgstr "" +msgstr "Iteratory" msgid "" "I'll start by looking at a Python language feature that's an important " @@ -306,12 +347,13 @@ msgstr "" 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 " -"stream, the ``\"in\"`` and ``\"not in\"`` operators won't return either." +"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 "" msgid "" @@ -347,8 +389,9 @@ 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 "" msgid "" @@ -451,7 +494,7 @@ msgid "" msgstr "" msgid "Generators" -msgstr "" +msgstr "Generatory" msgid "" "Generators are a special class of functions that simplify the task of " @@ -543,9 +586,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -566,8 +609,9 @@ 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 "" msgid "" @@ -599,17 +643,17 @@ 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 "" 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 "" msgid "" @@ -626,7 +670,7 @@ msgid "" msgstr "" msgid "Built-in functions" -msgstr "" +msgstr "Wbudowane funkcje" msgid "" "Let's look in more detail at built-in functions often used with iterators." @@ -790,10 +834,11 @@ msgstr "" 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 "" msgid "" @@ -847,9 +892,10 @@ 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 "" msgid "" @@ -868,11 +914,11 @@ msgid "" msgstr "" 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 "" msgid "Grouping elements" @@ -903,10 +949,10 @@ msgid "The functools module" msgstr "" msgid "" -"The :mod:`functools` module 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." +"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." msgstr "" msgid "" @@ -932,14 +978,14 @@ 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. ::" +"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 "" msgid "" @@ -954,10 +1000,11 @@ msgid "" msgstr "" 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 "" msgid "The operator module" @@ -1116,12 +1163,12 @@ msgstr "" 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." +"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 "" msgid "" diff --git a/howto/index.po b/howto/index.po index fa405d897d..f98c1be75a 100644 --- a/howto/index.po +++ b/howto/index.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Python HOWTOs" msgstr "Pythonowe „Jak to zrobić?”" diff --git a/howto/instrumentation.po b/howto/instrumentation.po index f5a09cfedf..5379affe8a 100644 --- a/howto/instrumentation.po +++ b/howto/instrumentation.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Instrumenting CPython with DTrace and SystemTap" msgstr "" @@ -178,8 +177,8 @@ msgstr "" 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 "" msgid "" @@ -193,7 +192,7 @@ msgid "" msgstr "" msgid "``$arg3`` : ``int`` line number" -msgstr "" +msgstr "``$arg3`` : ``int`` line number" msgid "" "This marker is the converse of :c:func:`function__entry`, and indicates that " @@ -243,9 +242,9 @@ msgid "SystemTap Tapsets" msgstr "" 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 "" msgid "Here is a tapset file, based on a non-shared build of CPython:" diff --git a/howto/ipaddress.po b/howto/ipaddress.po index 092db0a38f..2fd4bad431 100644 --- a/howto/ipaddress.po +++ b/howto/ipaddress.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "An introduction to the ipaddress module" msgstr "" @@ -102,8 +101,8 @@ msgid "Defining Networks" msgstr "" msgid "" -"Host addresses are usually grouped together into IP networks, so :mod:" -"`ipaddress` provides a way to create, inspect and manipulate network " +"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 " @@ -152,11 +151,11 @@ msgid "" "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." +"``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 "" msgid "" @@ -169,8 +168,8 @@ msgstr "" 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." +"Interface) object, so you probably want to get information about " +"it. :mod:`ipaddress` tries to make doing this easy and intuitive." msgstr "" msgid "Extracting the IP version::" @@ -252,9 +251,9 @@ msgstr "" 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/isolating-extensions.po b/howto/isolating-extensions.po deleted file mode 100644 index 74133a211c..0000000000 --- a/howto/isolating-extensions.po +++ /dev/null @@ -1,542 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -# Translators: -# Maciej Olko , 2022 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.11\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2022-11-05 19:48+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" - -msgid "Isolating Extension Modules" -msgstr "" - -msgid "Abstract" -msgstr "Streszczenie" - -msgid "" -"Traditionally, state belonging to Python extension modules was kept in C " -"``static`` variables, which have process-wide scope. This document describes " -"problems of such per-process state and shows a safer way: per-module state." -msgstr "" - -msgid "" -"The document also describes how to switch to per-module state where " -"possible. This transition involves allocating space for that state, " -"potentially switching from static types to heap types, and—perhaps most " -"importantly—accessing per-module state from code." -msgstr "" - -msgid "Who should read this" -msgstr "" - -msgid "" -"This guide is written for maintainers of :ref:`C-API ` " -"extensions who would like to make that extension safer to use in " -"applications where Python itself is used as a library." -msgstr "" - -msgid "Background" -msgstr "" - -msgid "" -"An *interpreter* is the context in which Python code runs. It contains " -"configuration (e.g. the import path) and runtime state (e.g. the set of " -"imported modules)." -msgstr "" - -msgid "" -"Python supports running multiple interpreters in one process. There are two " -"cases to think about—users may run interpreters:" -msgstr "" - -msgid "" -"in sequence, with several :c:func:`Py_InitializeEx`/:c:func:`Py_FinalizeEx` " -"cycles, and" -msgstr "" - -msgid "" -"in parallel, managing \"sub-interpreters\" using :c:func:" -"`Py_NewInterpreter`/:c:func:`Py_EndInterpreter`." -msgstr "" - -msgid "" -"Both cases (and combinations of them) would be most useful when embedding " -"Python within a library. Libraries generally shouldn't make assumptions " -"about the application that uses them, which include assuming a process-wide " -"\"main Python interpreter\"." -msgstr "" - -msgid "" -"Historically, Python extension modules don't handle this use case well. Many " -"extension modules (and even some stdlib modules) use *per-process* global " -"state, because C ``static`` variables are extremely easy to use. Thus, data " -"that should be specific to an interpreter ends up being shared between " -"interpreters. Unless the extension developer is careful, it is very easy to " -"introduce edge cases that lead to crashes when a module is loaded in more " -"than one interpreter in the same process." -msgstr "" - -msgid "" -"Unfortunately, *per-interpreter* state is not easy to achieve. Extension " -"authors tend to not keep multiple interpreters in mind when developing, and " -"it is currently cumbersome to test the behavior." -msgstr "" - -msgid "Enter Per-Module State" -msgstr "" - -msgid "" -"Instead of focusing on per-interpreter state, Python's C API is evolving to " -"better support the more granular *per-module* state. This means that C-level " -"data is be attached to a *module object*. Each interpreter creates its own " -"module object, keeping the data separate. For testing the isolation, " -"multiple module objects corresponding to a single extension can even be " -"loaded in a single interpreter." -msgstr "" - -msgid "" -"Per-module state provides an easy way to think about lifetime and resource " -"ownership: the extension module will initialize when a module object is " -"created, and clean up when it's freed. In this regard, a module is just like " -"any other :c:expr:`PyObject *`; there are no \"on interpreter shutdown\" " -"hooks to think—or forget—about." -msgstr "" - -msgid "" -"Note that there are use cases for different kinds of \"globals\": per-" -"process, per-interpreter, per-thread or per-task state. With per-module " -"state as the default, these are still possible, but you should treat them as " -"exceptional cases: if you need them, you should give them additional care " -"and testing. (Note that this guide does not cover them.)" -msgstr "" - -msgid "Isolated Module Objects" -msgstr "" - -msgid "" -"The key point to keep in mind when developing an extension module is that " -"several module objects can be created from a single shared library. For " -"example:" -msgstr "" - -msgid "" -"As a rule of thumb, the two modules should be completely independent. All " -"objects and state specific to the module should be encapsulated within the " -"module object, not shared with other module objects, and cleaned up when the " -"module object is deallocated. Since this just is a rule of thumb, exceptions " -"are possible (see `Managing Global State`_), but they will need more thought " -"and attention to edge cases." -msgstr "" - -msgid "" -"While some modules could do with less stringent restrictions, isolated " -"modules make it easier to set clear expectations and guidelines that work " -"across a variety of use cases." -msgstr "" - -msgid "Surprising Edge Cases" -msgstr "" - -msgid "" -"Note that isolated modules do create some surprising edge cases. Most " -"notably, each module object will typically not share its classes and " -"exceptions with other similar modules. Continuing from the `example above " -"`__, note that ``old_binascii.Error`` and " -"``binascii.Error`` are separate objects. In the following code, the " -"exception is *not* caught:" -msgstr "" - -msgid "" -"This is expected. Notice that pure-Python modules behave the same way: it is " -"a part of how Python works." -msgstr "" - -msgid "" -"The goal is to make extension modules safe at the C level, not to make hacks " -"behave intuitively. Mutating ``sys.modules`` \"manually\" counts as a hack." -msgstr "" - -msgid "Making Modules Safe with Multiple Interpreters" -msgstr "" - -msgid "Managing Global State" -msgstr "" - -msgid "" -"Sometimes, the state associated with a Python module is not specific to that " -"module, but to the entire process (or something else \"more global\" than a " -"module). For example:" -msgstr "" - -msgid "The ``readline`` module manages *the* terminal." -msgstr "" - -msgid "" -"A module running on a circuit board wants to control *the* on-board LED." -msgstr "" - -msgid "" -"In these cases, the Python module should provide *access* to the global " -"state, rather than *own* it. If possible, write the module so that multiple " -"copies of it can access the state independently (along with other libraries, " -"whether for Python or other languages). If that is not possible, consider " -"explicit locking." -msgstr "" - -msgid "" -"If it is necessary to use process-global state, the simplest way to avoid " -"issues with multiple interpreters is to explicitly prevent a module from " -"being loaded more than once per process—see `Opt-Out: Limiting to One Module " -"Object per Process`_." -msgstr "" - -msgid "Managing Per-Module State" -msgstr "" - -msgid "" -"To use per-module state, use :ref:`multi-phase extension module " -"initialization `. This signals that your module " -"supports multiple interpreters correctly." -msgstr "" - -msgid "" -"Set ``PyModuleDef.m_size`` to a positive number to request that many bytes " -"of storage local to the module. Usually, this will be set to the size of " -"some module-specific ``struct``, which can store all of the module's C-level " -"state. In particular, it is where you should put pointers to classes " -"(including exceptions, but excluding static types) and settings (e.g. " -"``csv``'s :py:data:`~csv.field_size_limit`) which the C code needs to " -"function." -msgstr "" - -msgid "" -"Another option is to store state in the module's ``__dict__``, but you must " -"avoid crashing when users modify ``__dict__`` from Python code. This usually " -"means error- and type-checking at the C level, which is easy to get wrong " -"and hard to test sufficiently." -msgstr "" - -msgid "" -"However, if module state is not needed in C code, storing it in ``__dict__`` " -"only is a good idea." -msgstr "" - -msgid "" -"If the module state includes ``PyObject`` pointers, the module object must " -"hold references to those objects and implement the module-level hooks " -"``m_traverse``, ``m_clear`` and ``m_free``. These work like ``tp_traverse``, " -"``tp_clear`` and ``tp_free`` of a class. Adding them will require some work " -"and make the code longer; this is the price for modules which can be " -"unloaded cleanly." -msgstr "" - -msgid "" -"An example of a module with per-module state is currently available as " -"`xxlimited `__; example module initialization shown at the bottom of the file." -msgstr "" - -msgid "Opt-Out: Limiting to One Module Object per Process" -msgstr "" - -msgid "" -"A non-negative ``PyModuleDef.m_size`` signals that a module supports " -"multiple interpreters correctly. If this is not yet the case for your " -"module, you can explicitly make your module loadable only once per process. " -"For example::" -msgstr "" - -msgid "Module State Access from Functions" -msgstr "" - -msgid "" -"Accessing the state from module-level functions is straightforward. " -"Functions get the module object as their first argument; for extracting the " -"state, you can use ``PyModule_GetState``::" -msgstr "" - -msgid "" -"``PyModule_GetState`` may return ``NULL`` without setting an exception if " -"there is no module state, i.e. ``PyModuleDef.m_size`` was zero. In your own " -"module, you're in control of ``m_size``, so this is easy to prevent." -msgstr "" - -msgid "Heap Types" -msgstr "" - -msgid "" -"Traditionally, types defined in C code are *static*; that is, ``static " -"PyTypeObject`` structures defined directly in code and initialized using " -"``PyType_Ready()``." -msgstr "" - -msgid "" -"Such types are necessarily shared across the process. Sharing them between " -"module objects requires paying attention to any state they own or access. To " -"limit the possible issues, static types are immutable at the Python level: " -"for example, you can't set ``str.myattribute = 123``." -msgstr "" - -msgid "" -"Sharing truly immutable objects between interpreters is fine, as long as " -"they don't provide access to mutable objects. However, in CPython, every " -"Python object has a mutable implementation detail: the reference count. " -"Changes to the refcount are guarded by the GIL. Thus, code that shares any " -"Python objects across interpreters implicitly depends on CPython's current, " -"process-wide GIL." -msgstr "" - -msgid "" -"Because they are immutable and process-global, static types cannot access " -"\"their\" module state. If any method of such a type requires access to " -"module state, the type must be converted to a *heap-allocated type*, or " -"*heap type* for short. These correspond more closely to classes created by " -"Python's ``class`` statement." -msgstr "" - -msgid "For new modules, using heap types by default is a good rule of thumb." -msgstr "" - -msgid "Changing Static Types to Heap Types" -msgstr "" - -msgid "" -"Static types can be converted to heap types, but note that the heap type API " -"was not designed for \"lossless\" conversion from static types—that is, " -"creating a type that works exactly like a given static type. So, when " -"rewriting the class definition in a new API, you are likely to " -"unintentionally change a few details (e.g. pickleability or inherited " -"slots). Always test the details that are important to you." -msgstr "" - -msgid "" -"Watch out for the following two points in particular (but note that this is " -"not a comprehensive list):" -msgstr "" - -msgid "" -"Unlike static types, heap type objects are mutable by default. Use the :c:" -"data:`Py_TPFLAGS_IMMUTABLETYPE` flag to prevent mutability." -msgstr "" - -msgid "" -"Heap types inherit :c:member:`~PyTypeObject.tp_new` by default, so it may " -"become possible to instantiate them from Python code. You can prevent this " -"with the :c:data:`Py_TPFLAGS_DISALLOW_INSTANTIATION` flag." -msgstr "" - -msgid "Defining Heap Types" -msgstr "" - -msgid "" -"Heap types can be created by filling a :c:struct:`PyType_Spec` structure, a " -"description or \"blueprint\" of a class, and calling :c:func:" -"`PyType_FromModuleAndSpec` to construct a new class object." -msgstr "" - -msgid "" -"Other functions, like :c:func:`PyType_FromSpec`, can also create heap types, " -"but :c:func:`PyType_FromModuleAndSpec` associates the module with the class, " -"allowing access to the module state from methods." -msgstr "" - -msgid "" -"The class should generally be stored in *both* the module state (for safe " -"access from C) and the module's ``__dict__`` (for access from Python code)." -msgstr "" - -msgid "Garbage-Collection Protocol" -msgstr "" - -msgid "" -"Instances of heap types hold a reference to their type. This ensures that " -"the type isn't destroyed before all its instances are, but may result in " -"reference cycles that need to be broken by the garbage collector." -msgstr "" - -msgid "" -"To avoid memory leaks, instances of heap types must implement the garbage " -"collection protocol. That is, heap types should:" -msgstr "" - -msgid "Have the :c:data:`Py_TPFLAGS_HAVE_GC` flag." -msgstr "" - -msgid "" -"Define a traverse function using ``Py_tp_traverse``, which visits the type " -"(e.g. using :c:expr:`Py_VISIT(Py_TYPE(self))`)." -msgstr "" - -msgid "" -"Please refer to the :ref:`the documentation ` of :c:data:" -"`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse` for " -"additional considerations." -msgstr "" - -msgid "" -"If your traverse function delegates to the ``tp_traverse`` of its base class " -"(or another type), ensure that ``Py_TYPE(self)`` is visited only once. Note " -"that only heap type are expected to visit the type in ``tp_traverse``." -msgstr "" - -msgid "For example, if your traverse function includes::" -msgstr "" - -msgid "...and ``base`` may be a static type, then it should also include::" -msgstr "" - -msgid "" -"It is not necessary to handle the type's reference count in ``tp_new`` and " -"``tp_clear``." -msgstr "" - -msgid "Module State Access from Classes" -msgstr "" - -msgid "" -"If you have a type object defined with :c:func:`PyType_FromModuleAndSpec`, " -"you can call :c:func:`PyType_GetModule` to get the associated module, and " -"then :c:func:`PyModule_GetState` to get the module's state." -msgstr "" - -msgid "" -"To save a some tedious error-handling boilerplate code, you can combine " -"these two steps with :c:func:`PyType_GetModuleState`, resulting in::" -msgstr "" - -msgid "Module State Access from Regular Methods" -msgstr "" - -msgid "" -"Accessing the module-level state from methods of a class is somewhat more " -"complicated, but is possible thanks to API introduced in Python 3.9. To get " -"the state, you need to first get the *defining class*, and then get the " -"module state from it." -msgstr "" - -msgid "" -"The largest roadblock is getting *the class a method was defined in*, or " -"that method's \"defining class\" for short. The defining class can have a " -"reference to the module it is part of." -msgstr "" - -msgid "" -"Do not confuse the defining class with :c:expr:`Py_TYPE(self)`. If the " -"method is called on a *subclass* of your type, ``Py_TYPE(self)`` will refer " -"to that subclass, which may be defined in different module than yours." -msgstr "" - -msgid "" -"The following Python code can illustrate the concept. ``Base." -"get_defining_class`` returns ``Base`` even if ``type(self) == Sub``:" -msgstr "" - -msgid "" -"For a method to get its \"defining class\", it must use the :data:" -"`METH_METHOD | METH_FASTCALL | METH_KEYWORDS` :c:type:`calling convention " -"` and the corresponding :c:type:`PyCMethod` signature::" -msgstr "" - -msgid "" -"Once you have the defining class, call :c:func:`PyType_GetModuleState` to " -"get the state of its associated module." -msgstr "" - -msgid "For example::" -msgstr "Dla przykładu::" - -msgid "Module State Access from Slot Methods, Getters and Setters" -msgstr "" - -msgid "This is new in Python 3.11." -msgstr "" - -msgid "" -"Slot methods—the fast C equivalents for special methods, such as :c:member:" -"`~PyNumberMethods.nb_add` for :py:attr:`~object.__add__` or :c:member:" -"`~PyType.tp_new` for initialization—have a very simple API that doesn't " -"allow passing in the defining class, unlike with :c:type:`PyCMethod`. The " -"same goes for getters and setters defined with :c:type:`PyGetSetDef`." -msgstr "" - -msgid "" -"To access the module state in these cases, use the :c:func:" -"`PyType_GetModuleByDef` function, and pass in the module definition. Once " -"you have the module, call :c:func:`PyModule_GetState` to get the state::" -msgstr "" - -msgid "" -"``PyType_GetModuleByDef`` works by searching the :term:`method resolution " -"order` (i.e. all superclasses) for the first superclass that has a " -"corresponding module." -msgstr "" - -msgid "" -"In very exotic cases (inheritance chains spanning multiple modules created " -"from the same definition), ``PyType_GetModuleByDef`` might not return the " -"module of the true defining class. However, it will always return a module " -"with the same definition, ensuring a compatible C memory layout." -msgstr "" - -msgid "Lifetime of the Module State" -msgstr "" - -msgid "" -"When a module object is garbage-collected, its module state is freed. For " -"each pointer to (a part of) the module state, you must hold a reference to " -"the module object." -msgstr "" - -msgid "" -"Usually this is not an issue, because types created with :c:func:" -"`PyType_FromModuleAndSpec`, and their instances, hold a reference to the " -"module. However, you must be careful in reference counting when you " -"reference module state from other places, such as callbacks for external " -"libraries." -msgstr "" - -msgid "Open Issues" -msgstr "" - -msgid "Several issues around per-module state and heap types are still open." -msgstr "" - -msgid "" -"Discussions about improving the situation are best held on the `capi-sig " -"mailing list `__." -msgstr "" - -msgid "Per-Class Scope" -msgstr "" - -msgid "" -"It is currently (as of Python 3.11) not possible to attach state to " -"individual *types* without relying on CPython implementation details (which " -"may change in the future—perhaps, ironically, to allow a proper solution for " -"per-class scope)." -msgstr "" - -msgid "Lossless Conversion to Heap Types" -msgstr "" - -msgid "" -"The heap type API was not designed for \"lossless\" conversion from static " -"types; that is, creating a type that works exactly like a given static type." -msgstr "" diff --git a/howto/logging-cookbook.po b/howto/logging-cookbook.po new file mode 100644 index 0000000000..50d6dfec6f --- /dev/null +++ b/howto/logging-cookbook.po @@ -0,0 +1,1791 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Logging Cookbook" +msgstr "" + +msgid "Author" +msgstr "Autor" + +msgid "Vinay Sajip " +msgstr "" + +msgid "" +"This page contains a number of recipes related to logging, which have been " +"found useful in the past. For links to tutorial and reference information, " +"please see :ref:`cookbook-ref-links`." +msgstr "" + +msgid "Using logging in multiple modules" +msgstr "" + +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::" +msgstr "" + +msgid "Here is the auxiliary module::" +msgstr "" + +msgid "The output looks like this:" +msgstr "Wynik wygląda tak:" + +msgid "Logging from multiple threads" +msgstr "" + +msgid "" +"Logging from multiple threads requires no special effort. The following " +"example shows logging from the main (initial) thread and another thread::" +msgstr "" + +msgid "When run, the script should print something like the following:" +msgstr "" + +msgid "" +"This shows the logging output interspersed as one might expect. This " +"approach works for more threads than shown here, of course." +msgstr "" + +msgid "Multiple handlers and formatters" +msgstr "" + +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. " +"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 " +"example::" +msgstr "" + +msgid "" +"Notice that the 'application' code does not care about multiple handlers. " +"All that changed was the addition and configuration of a new handler named " +"*fh*." +msgstr "" + +msgid "" +"The ability to create new handlers with higher- or lower-severity filters " +"can be very helpful when writing and testing an application. Instead of " +"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 " +"debug." +msgstr "" + +msgid "Logging to multiple destinations" +msgstr "" + +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::" +msgstr "" + +msgid "When you run this, on the console you will see" +msgstr "" + +msgid "and in the file you will see something like" +msgstr "" + +msgid "" +"As you can see, the DEBUG message only shows up in the file. The other " +"messages are sent to both destinations." +msgstr "" + +msgid "" +"This example uses console and file handlers, but you can use any number and " +"combination of handlers you choose." +msgstr "" + +msgid "" +"Note that the above choice of log filename ``/tmp/myapp.log`` implies use of " +"a standard location for temporary files on POSIX systems. On Windows, you " +"may need to choose a different directory name for the log - just ensure that " +"the directory exists and that you have the permissions to create and update " +"files in it." +msgstr "" + +msgid "Custom handling of levels" +msgstr "" + +msgid "" +"Sometimes, you might want to do something slightly different from the " +"standard handling of levels in handlers, where all levels above a threshold " +"get processed by a handler. To do this, you need to use filters. Let's look " +"at a scenario where you want to arrange things as follows:" +msgstr "" + +msgid "Send messages of severity ``INFO`` and ``WARNING`` to ``sys.stdout``" +msgstr "" + +msgid "Send messages of severity ``ERROR`` and above to ``sys.stderr``" +msgstr "" + +msgid "Send messages of severity ``DEBUG`` and above to file ``app.log``" +msgstr "" + +msgid "Suppose you configure logging with the following JSON:" +msgstr "" + +msgid "" +"This configuration does *almost* what we want, except that ``sys.stdout`` " +"would show messages of severity ``ERROR`` and above as well as ``INFO`` and " +"``WARNING`` messages. To prevent this, we can set up a filter which excludes " +"those messages and add it to the relevant handler. This can be configured by " +"adding a ``filters`` section parallel to ``formatters`` and ``handlers``:" +msgstr "" + +msgid "and changing the section on the ``stdout`` handler to add it:" +msgstr "" + +msgid "" +"A filter is just a function, so we can define the ``filter_maker`` (a " +"factory function) as follows:" +msgstr "" + +msgid "" +"This converts the string argument passed in to a numeric level, and returns " +"a function which only returns ``True`` if the level of the passed in record " +"is at or below the specified level. Note that in this example I have defined " +"the ``filter_maker`` in a test script ``main.py`` that I run from the " +"command line, so its module will be ``__main__`` - hence the " +"``__main__.filter_maker`` in the filter configuration. You will need to " +"change that if you define it in a different module." +msgstr "" + +msgid "With the filter added, we can run ``main.py``, which in full is:" +msgstr "" + +msgid "And after running it like this:" +msgstr "" + +msgid "We can see the results are as expected:" +msgstr "" + +msgid "Configuration server example" +msgstr "" + +msgid "Here is an example of a module using the logging configuration server::" +msgstr "" + +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::" +msgstr "" + +msgid "Dealing with handlers that block" +msgstr "" + +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." +msgstr "" + +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)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "An example of using these two classes follows (imports omitted)::" +msgstr "" + +msgid "which, when run, will produce:" +msgstr "" + +msgid "" +"Although the earlier discussion wasn't specifically talking about async " +"code, but rather about slow logging handlers, it should be noted that when " +"logging from async code, network and even file handlers could lead to " +"problems (blocking the event loop) because some logging is done " +"from :mod:`asyncio` internals. It might be best, if any async code is used " +"in an application, to use the above approach for logging, so that any " +"blocking code runs only in the ``QueueListener`` thread." +msgstr "" + +msgid "" +"Prior to Python 3.5, the :class:`QueueListener` always passed every message " +"received from the queue to every handler it was initialized with. (This was " +"because it was assumed that level filtering was all done on the other side, " +"where the queue is filled.) From 3.5 onwards, this behaviour can be changed " +"by passing a keyword argument ``respect_handler_level=True`` to the " +"listener's constructor. When this is done, the listener compares the level " +"of each message with the handler's level, and only passes a message to a " +"handler if it's appropriate to do so." +msgstr "" + +msgid "Sending and receiving logging events across a network" +msgstr "" + +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::" +msgstr "" + +msgid "" +"At the receiving end, you can set up a receiver using " +"the :mod:`socketserver` module. Here is a basic working example::" +msgstr "" + +msgid "" +"First run the server, and then the client. On the client side, nothing is " +"printed on the console; on the server side, you should see something like:" +msgstr "" + +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." +msgstr "" + +msgid "Running a logging socket listener in production" +msgstr "" + +msgid "" +"To run a logging listener in production, you may need to use a process-" +"management tool such as `Supervisor `_. `Here is a " +"Gist `__ which provides the bare-bones files to run " +"the above functionality using Supervisor. It consists of the following files:" +msgstr "" + +msgid "File" +msgstr "" + +msgid "Purpose" +msgstr "" + +msgid ":file:`prepare.sh`" +msgstr ":file:`prepare.sh`" + +msgid "A Bash script to prepare the environment for testing" +msgstr "" + +msgid ":file:`supervisor.conf`" +msgstr ":file:`supervisor.conf`" + +msgid "" +"The Supervisor configuration file, which has entries for the listener and a " +"multi-process web application" +msgstr "" + +msgid ":file:`ensure_app.sh`" +msgstr ":file:`ensure_app.sh`" + +msgid "" +"A Bash script to ensure that Supervisor is running with the above " +"configuration" +msgstr "" + +msgid ":file:`log_listener.py`" +msgstr ":file:`log_listener.py`" + +msgid "" +"The socket listener program which receives log events and records them to a " +"file" +msgstr "" + +msgid ":file:`main.py`" +msgstr ":file:`main.py`" + +msgid "" +"A simple web application which performs logging via a socket connected to " +"the listener" +msgstr "" + +msgid ":file:`webapp.json`" +msgstr ":file:`webapp.json`" + +msgid "A JSON configuration file for the web application" +msgstr "" + +msgid ":file:`client.py`" +msgstr ":file:`client.py`" + +msgid "A Python script to exercise the web application" +msgstr "" + +msgid "" +"The web application uses `Gunicorn `_, which is a " +"popular web application server that starts multiple worker processes to " +"handle requests. This example setup shows how the workers can write to the " +"same log file without conflicting with one another --- they all go through " +"the socket listener." +msgstr "" + +msgid "To test these files, do the following in a POSIX environment:" +msgstr "" + +msgid "" +"Download `the Gist `__ as a ZIP archive using " +"the :guilabel:`Download ZIP` button." +msgstr "" + +msgid "Unzip the above files from the archive into a scratch directory." +msgstr "" + +msgid "" +"In the scratch directory, run ``bash prepare.sh`` to get things ready. This " +"creates a :file:`run` subdirectory to contain Supervisor-related and log " +"files, and a :file:`venv` subdirectory to contain a virtual environment into " +"which ``bottle``, ``gunicorn`` and ``supervisor`` are installed." +msgstr "" + +msgid "" +"Run ``bash ensure_app.sh`` to ensure that Supervisor is running with the " +"above configuration." +msgstr "" + +msgid "" +"Run ``venv/bin/python client.py`` to exercise the web application, which " +"will lead to records being written to the log." +msgstr "" + +msgid "" +"Inspect the log files in the :file:`run` subdirectory. You should see the " +"most recent log lines in files matching the pattern :file:`app.log*`. They " +"won't be in any particular order, since they have been handled concurrently " +"by different worker processes in a non-deterministic way." +msgstr "" + +msgid "" +"You can shut down the listener and the web application by running ``venv/bin/" +"supervisorctl -c supervisor.conf shutdown``." +msgstr "" + +msgid "" +"You may need to tweak the configuration files in the unlikely event that the " +"configured ports clash with something else in your test environment." +msgstr "" + +msgid "Adding contextual information to your logging output" +msgstr "" + +msgid "" +"Sometimes you want logging output to contain contextual information in " +"addition to the parameters passed to the logging call. For example, in a " +"networked application, it may be desirable to log client-specific " +"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` " +"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." +msgstr "" + +msgid "Using LoggerAdapters to impart contextual information" +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." +msgstr "" + +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`::" +msgstr "" + +msgid "" +"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 " +"message alone, but inserts an 'extra' key in the keyword argument whose " +"value is the dict-like object passed to the constructor. Of course, if you " +"had passed an 'extra' keyword argument in the call to the adapter, it will " +"be silently overwritten." +msgstr "" + +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::" +msgstr "" + +msgid "which you can use like this::" +msgstr "" + +msgid "" +"Then any events that you log to the adapter will have the value of " +"``some_conn_id`` prepended to the log messages." +msgstr "" + +msgid "Using objects other than dicts to pass contextual information" +msgstr "" + +msgid "" +"You don't need to pass an actual dict to a :class:`LoggerAdapter` - you " +"could pass an instance of a class which implements ``__getitem__`` and " +"``__iter__`` so that it looks like a dict to logging. This would be useful " +"if you want to generate values dynamically (whereas the values in a dict " +"would be constant)." +msgstr "" + +msgid "Using Filters to impart contextual information" +msgstr "" + +msgid "" +"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`." +msgstr "" + +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::" +msgstr "" + +msgid "which, when run, produces something like:" +msgstr "" + +msgid "Use of ``contextvars``" +msgstr "" + +msgid "" +"Since Python 3.7, the :mod:`contextvars` module has provided context-local " +"storage which works for both :mod:`threading` and :mod:`asyncio` processing " +"needs. This type of storage may thus be generally preferable to thread-" +"locals. The following example shows how, in a multi-threaded environment, " +"logs can populated with contextual information such as, for example, request " +"attributes handled by web applications." +msgstr "" + +msgid "" +"For the purposes of illustration, say that you have different web " +"applications, each independent of the other but running in the same Python " +"process and using a library common to them. How can each of these " +"applications have their own log, where all logging messages from the library " +"(and other request processing code) are directed to the appropriate " +"application's log file, while including in the log additional contextual " +"information such as client IP, HTTP request method and client username?" +msgstr "" + +msgid "Let's assume that the library can be simulated by the following code:" +msgstr "" + +msgid "" +"We can simulate the multiple web applications by means of two simple " +"classes, ``Request`` and ``WebApp``. These simulate how real threaded web " +"applications work - each request is handled by a thread:" +msgstr "" + +msgid "" +"If you run the above, you should find that roughly half the requests go " +"into :file:`app1.log` and the rest into :file:`app2.log`, and the all the " +"requests are logged to :file:`app.log`. Each webapp-specific log will " +"contain only log entries for only that webapp, and the request information " +"will be displayed consistently in the log (i.e. the information in each " +"dummy request will always appear together in a log line). This is " +"illustrated by the following shell output:" +msgstr "" + +msgid "Imparting contextual information in handlers" +msgstr "" + +msgid "" +"Each :class:`~Handler` has its own chain of filters. If you want to add " +"contextual information to a :class:`LogRecord` without leaking it to other " +"handlers, you can use a filter that returns a new :class:`~LogRecord` " +"instead of modifying it in-place, as shown in the following script::" +msgstr "" + +msgid "Logging to a single file from multiple processes" +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 " +"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 " +"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." +msgstr "" + +msgid "" +"You could also write your own handler which uses " +"the :class:`~multiprocessing.Lock` class from the :mod:`multiprocessing` " +"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 "" + +msgid "" +"Alternatively, you can use a ``Queue`` and a :class:`QueueHandler` to send " +"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 " +"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::" +msgstr "" + +msgid "" +"A variant of the above script keeps the logging in the main process, in a " +"separate thread::" +msgstr "" + +msgid "" +"This variant shows how you can e.g. apply configuration for particular " +"loggers - e.g. the ``foo`` logger has a special handler which stores all " +"events in the ``foo`` subsystem in a file ``mplog-foo.log``. This will be " +"used by the logging machinery in the main process (even though the logging " +"events are generated in the worker processes) to direct the messages to the " +"appropriate destinations." +msgstr "" + +msgid "Using concurrent.futures.ProcessPoolExecutor" +msgstr "" + +msgid "" +"If you want to use :class:`concurrent.futures.ProcessPoolExecutor` to start " +"your worker processes, you need to create the queue slightly differently. " +"Instead of" +msgstr "" + +msgid "you should use" +msgstr "" + +msgid "and you can then replace the worker creation from this::" +msgstr "" + +msgid "to this (remembering to first import :mod:`concurrent.futures`)::" +msgstr "" + +msgid "Deploying Web applications using Gunicorn and uWSGI" +msgstr "" + +msgid "" +"When deploying Web applications using `Gunicorn `_ or " +"`uWSGI `_ (or similar), " +"multiple worker processes are created to handle client requests. In such " +"environments, avoid creating file-based handlers directly in your web " +"application. Instead, use a :class:`SocketHandler` to log from the web " +"application to a listener in a separate process. This can be set up using a " +"process management tool such as Supervisor - see `Running a logging socket " +"listener in production`_ for more details." +msgstr "" + +msgid "Using file rotation" +msgstr "" + +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 " +"number of files and the size of the files both remain bounded. For this " +"usage pattern, the logging package provides " +"a :class:`~handlers.RotatingFileHandler`::" +msgstr "" + +msgid "" +"The result should be 6 separate files, each with part of the log history for " +"the application:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Obviously this example sets the log length much too small as an extreme " +"example. You would want to set *maxBytes* to an appropriate value." +msgstr "" + +msgid "Use of alternative formatting styles" +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)." +msgstr "" + +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 session to show the possibilities:" +msgstr "" + +msgid "" +"Note that the formatting of logging messages for final output to logs is " +"completely independent of how an individual logging message is constructed. " +"That can still use %-formatting, as shown here::" +msgstr "" + +msgid "" +"Logging calls (``logger.debug()``, ``logger.info()`` etc.) only take " +"positional parameters for the actual logging message itself, with keyword " +"parameters used only for determining options for how to handle the actual " +"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 strings." +msgstr "" + +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 " +"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::" +msgstr "" + +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\". 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 " +"used as a synonym/alias for :func:`gettext.gettext` or its brethren)." +msgstr "" + +msgid "" +"The above classes are not included in Python, though they're easy enough to " +"copy and paste into your own code. They can be used as follows (assuming " +"that they're declared in a module called ``wherever``):" +msgstr "" + +msgid "" +"While the above examples use ``print()`` to show how the formatting works, " +"you would of course use ``logger.debug()`` or similar to actually log using " +"this approach." +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, " +"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 "" + +msgid "" +"If you prefer, you can use a :class:`LoggerAdapter` to achieve a similar " +"effect to the above, as in the following example::" +msgstr "" + +msgid "" +"The above script should log the message ``Hello, world!`` when run with " +"Python 3.2 or later." +msgstr "" + +msgid "Customizing ``LogRecord``" +msgstr "" + +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:" +msgstr "" + +msgid "" +":meth:`Logger.makeRecord`, which is called in the normal process of logging " +"an event. This invoked :class:`LogRecord` directly to create an instance." +msgstr "" + +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`)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Add a :class:`Filter` to a logger or handler, which does the necessary " +"special manipulation you need when its :meth:`~Filter.filter` method is " +"called." +msgstr "" + +msgid "" +"The first approach would be a little unwieldy in the scenario where (say) " +"several different libraries wanted to do different things. Each would " +"attempt to set its own :class:`Logger` subclass, and the one which did this " +"last would win." +msgstr "" + +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 " +"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 ::" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +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-" +"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 "" + +msgid "Subclassing QueueHandler - a ZeroMQ example" +msgstr "" + +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 " +"socket is created separately and passed to the handler (as its 'queue')::" +msgstr "" + +msgid "" +"Of course there are other ways of organizing this, for example passing in " +"the data needed by the handler to create the socket::" +msgstr "" + +msgid "Subclassing QueueListener - a ZeroMQ example" +msgstr "" + +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::" +msgstr "" + +msgid "Module :mod:`logging`" +msgstr "" + +msgid "API reference for the logging module." +msgstr "" + +msgid "Module :mod:`logging.config`" +msgstr "" + +msgid "Configuration API for the logging module." +msgstr "" + +msgid "Module :mod:`logging.handlers`" +msgstr "" + +msgid "Useful handlers included with the logging module." +msgstr "" + +msgid ":ref:`A basic logging tutorial `" +msgstr "" + +msgid ":ref:`A more advanced logging tutorial `" +msgstr "" + +msgid "An example dictionary-based configuration" +msgstr "" + +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::" +msgstr "" + +msgid "" +"For more information about this configuration, you can see the `relevant " +"section `_ of the Django documentation." +msgstr "" + +msgid "Using a rotator and namer to customize log rotation processing" +msgstr "" + +msgid "" +"An example of how you can define a namer and rotator is given in the " +"following runnable script, which shows gzip compression of the log file::" +msgstr "" + +msgid "" +"After running this, you will see six new files, five of which are compressed:" +msgstr "" + +msgid "A more elaborate multiprocessing example" +msgstr "" + +msgid "" +"The following working example shows how logging can be used with " +"multiprocessing using configuration files. The configurations are fairly " +"simple, but serve to illustrate how more complex ones could be implemented " +"in a real multiprocessing scenario." +msgstr "" + +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 " +"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 " +"own scenario." +msgstr "" + +msgid "" +"Here's the script - the docstrings and the comments hopefully explain how it " +"works::" +msgstr "" + +msgid "Inserting a BOM into messages sent to a SysLogHandler" +msgstr "" + +msgid "" +":rfc:`5424` requires that a Unicode message be sent to a syslog daemon as a " +"set of bytes which have the following structure: an optional pure-ASCII " +"component, followed by a UTF-8 Byte Order Mark (BOM), followed by Unicode " +"encoded using UTF-8. (See the :rfc:`relevant section of the specification " +"<5424#section-6>`.)" +msgstr "" + +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 " +"incorrectly, with the BOM appearing at the beginning of the message and " +"hence not allowing any pure-ASCII component to appear before it." +msgstr "" + +msgid "" +"As this behaviour is broken, the incorrect BOM insertion code is being " +"removed from Python 3.2.4 and later. However, it is not being replaced, and " +"if you want to produce :rfc:`5424`-compliant messages which include a BOM, " +"an optional pure-ASCII sequence before it and arbitrary Unicode after it, " +"encoded using UTF-8, then you need to do the following:" +msgstr "" + +msgid "" +"Attach a :class:`~logging.Formatter` instance to " +"your :class:`~logging.handlers.SysLogHandler` instance, with a format string " +"such as::" +msgstr "" + +msgid "" +"The Unicode code point U+FEFF, when encoded using UTF-8, will be encoded as " +"a UTF-8 BOM -- the byte-string ``b'\\xef\\xbb\\xbf'``." +msgstr "" + +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)." +msgstr "" + +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." +msgstr "" + +msgid "" +"The formatted message *will* be encoded using UTF-8 encoding by " +"``SysLogHandler``. If you follow the above rules, you should be able to " +"produce :rfc:`5424`-compliant messages. If you don't, logging may not " +"complain, but your messages will not be RFC 5424-compliant, and your syslog " +"daemon may complain." +msgstr "" + +msgid "Implementing structured logging" +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 " +"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 " +"machine-parseable manner::" +msgstr "" + +msgid "If the above script is run, it prints:" +msgstr "" + +msgid "" +"Note that the order of items might be different according to the version of " +"Python used." +msgstr "" + +msgid "" +"If you need more specialised processing, you can use a custom JSON encoder, " +"as in the following complete example::" +msgstr "" + +msgid "When the above script is run, it prints:" +msgstr "" + +msgid "Customizing handlers with :func:`dictConfig`" +msgstr "" + +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 " +"customize handler creation using a plain function such as::" +msgstr "" + +msgid "" +"You can then specify, in a logging configuration passed " +"to :func:`dictConfig`, that a logging handler be created by calling this " +"function::" +msgstr "" + +msgid "" +"In this example I am setting the ownership using the ``pulse`` user and " +"group, just for the purposes of illustration. Putting it together into a " +"working script, ``chowntest.py``::" +msgstr "" + +msgid "To run this, you will probably need to run as ``root``:" +msgstr "" + +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`." +msgstr "" + +msgid "" +"In practice, the handler-creating function may be in a utility module " +"somewhere in your project. Instead of the line in the configuration::" +msgstr "" + +msgid "you could use e.g.::" +msgstr "" + +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." +msgstr "" + +msgid "" +"This example hopefully also points the way to how you could implement other " +"types of file change - e.g. setting specific POSIX permission bits - in the " +"same way, using :func:`os.chmod`." +msgstr "" + +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." +msgstr "" + +msgid "Using particular formatting styles throughout your application" +msgstr "" + +msgid "" +"In Python 3.2, the :class:`~logging.Formatter` gained a ``style`` keyword " +"parameter which, while defaulting to ``%`` for backward compatibility, " +"allowed the specification of ``{`` or ``$`` to support the formatting " +"approaches supported by :meth:`str.format` and :class:`string.Template`. " +"Note that this governs the formatting of logging messages for final output " +"to logs, and is completely orthogonal to how an individual logging message " +"is constructed." +msgstr "" + +msgid "" +"Logging calls (:meth:`~Logger.debug`, :meth:`~Logger.info` etc.) only take " +"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 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 "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Using LogRecord factories" +msgstr "" + +msgid "" +"In Python 3.2, along with the :class:`~logging.Formatter` changes mentioned " +"above, the logging package gained the ability to allow users to set their " +"own :class:`LogRecord` subclasses, using the :func:`setLogRecordFactory` " +"function. You can use this to set your own subclass of :class:`LogRecord`, " +"which does the Right Thing by overriding the :meth:`~LogRecord.getMessage` " +"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." +msgstr "" + +msgid "" +"Refer to the reference documentation on :func:`setLogRecordFactory` " +"and :class:`LogRecord` for more information." +msgstr "" + +msgid "Using custom message objects" +msgstr "" + +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 following two classes::" +msgstr "" + +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 " +"alias such as ``M`` or ``_`` for the message (or perhaps ``__``, if you are " +"using ``_`` for localization)." +msgstr "" + +msgid "" +"Examples of this approach are given below. Firstly, formatting " +"with :meth:`str.format`::" +msgstr "" + +msgid "Secondly, formatting with :class:`string.Template`::" +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, " +"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." +msgstr "" + +msgid "Configuring filters with :func:`dictConfig`" +msgstr "" + +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). " +"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::" +msgstr "" + +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 " +"above script will print:" +msgstr "" + +msgid "which shows that the filter is working as configured." +msgstr "" + +msgid "A couple of extra points to note:" +msgstr "" + +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 " +"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 " +"the above example." +msgstr "" + +msgid "" +"As well as for filters, this technique can also be used to configure custom " +"handlers and formatters. See :ref:`logging-config-dict-userdef` for more " +"information on how logging supports using user-defined objects in its " +"configuration, and see the other cookbook recipe :ref:`custom-handlers` " +"above." +msgstr "" + +msgid "Customized exception formatting" +msgstr "" + +msgid "" +"There might be times when you want to do customized exception formatting - " +"for argument's sake, let's say you want exactly one line per logged event, " +"even when exception information is present. You can do this with a custom " +"formatter class, as shown in the following example::" +msgstr "" + +msgid "When run, this produces a file with exactly two lines:" +msgstr "" + +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." +msgstr "" + +msgid "Speaking logging messages" +msgstr "" + +msgid "" +"There might be situations when it is desirable to have logging messages " +"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 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 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::" +msgstr "" + +msgid "" +"When run, this script should say \"Hello\" and then \"Goodbye\" in a female " +"voice." +msgstr "" + +msgid "" +"The above approach can, of course, be adapted to other TTS systems and even " +"other systems altogether which can process messages via external programs " +"run from a command line." +msgstr "" + +msgid "Buffering logging messages and outputting them conditionally" +msgstr "" + +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 " +"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 " +"debug information to be output as well as the error." +msgstr "" + +msgid "" +"Here is an example which shows how you could do this using a decorator for " +"your functions where you want logging to behave this way. It makes use of " +"the :class:`logging.handlers.MemoryHandler`, which allows buffering of " +"logged events until some condition occurs, at which point the buffered " +"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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"The script just arranges to decorate ``foo`` with a decorator which will do " +"the conditional logging that's required. The decorator takes a logger as a " +"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." +msgstr "" + +msgid "Here's the script::" +msgstr "" + +msgid "When this script is run, the following output should be observed:" +msgstr "" + +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." +msgstr "" + +msgid "You can of course use the conventional means of decoration::" +msgstr "" + +msgid "Sending logging messages to email, with buffering" +msgstr "" + +msgid "" +"To illustrate how you can send log messages via email, so that a set number " +"of messages are sent per email, you can " +"subclass :class:`~logging.handlers.BufferingHandler`. In the following " +"example, which you can adapt to suit your specific needs, a simple test " +"harness is provided which allows you to run the script with command line " +"arguments specifying what you typically need to send things via SMTP. (Run " +"the downloaded script with the ``-h`` argument to see the required and " +"optional arguments.)" +msgstr "" + +msgid "" +"If you run this script and your SMTP server is correctly set up, you should " +"find that it sends eleven emails to the addressee you specify. The first ten " +"emails will each have ten log messages, and the eleventh will have two " +"messages. That makes up 102 messages as specified in the script." +msgstr "" + +msgid "Formatting times using UTC (GMT) via configuration" +msgstr "" + +msgid "" +"Sometimes you want to format times using UTC, which can be done using a " +"class such as ``UTCFormatter``, shown below::" +msgstr "" + +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::" +msgstr "" + +msgid "When this script is run, it should print something like:" +msgstr "" + +msgid "" +"showing how the time is formatted both as local time and UTC, one for each " +"handler." +msgstr "" + +msgid "Using a context manager for selective logging" +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 " +"optionally change the logging level and add a logging handler purely in the " +"scope of the context manager::" +msgstr "" + +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." +msgstr "" + +msgid "" +"To illustrate how it works, we can add the following block of code to the " +"above::" +msgstr "" + +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)." +msgstr "" + +msgid "If we run the resulting script, the result is as follows:" +msgstr "" + +msgid "" +"If we run it again, but pipe ``stderr`` to ``/dev/null``, we see the " +"following, which is the only message written to ``stdout``:" +msgstr "" + +msgid "Once again, but piping ``stdout`` to ``/dev/null``, we get:" +msgstr "" + +msgid "" +"In this case, the message #5 printed to ``stdout`` doesn't appear, as " +"expected." +msgstr "" + +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." +msgstr "" + +msgid "A CLI application starter template" +msgstr "" + +msgid "Here's an example which shows how you can:" +msgstr "" + +msgid "Use a logging level based on command-line arguments" +msgstr "" + +msgid "" +"Dispatch to multiple subcommands in separate files, all logging at the same " +"level in a consistent way" +msgstr "" + +msgid "Make use of simple, minimal configuration" +msgstr "" + +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 "" + +msgid "" +"And the ``start``, ``stop`` and ``restart`` commands can be implemented in " +"separate modules, like so for starting::" +msgstr "" + +msgid "and thus for stopping::" +msgstr "" + +msgid "and similarly for restarting::" +msgstr "" + +msgid "" +"If we run this application with the default log level, we get output like " +"this:" +msgstr "" + +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 "" + +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 "" + +msgid "And if we want less:" +msgstr "" + +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 "" + +msgid "A Qt GUI for logging" +msgstr "" + +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 "" + +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 "" + +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 "" + +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 "" + +msgid "Logging to syslog with RFC5424 support" +msgstr "" + +msgid "" +"Although :rfc:`5424` dates from 2009, most syslog servers are configured by " +"detault to use the older :rfc:`3164`, which hails from 2001. When " +"``logging`` was added to Python in 2003, it supported the earlier (and only " +"existing) protocol at the time. Since RFC5424 came out, as there has not " +"been widespread deployment of it in syslog servers, " +"the :class:`~logging.handlers.SysLogHandler` functionality has not been " +"updated." +msgstr "" + +msgid "" +"RFC 5424 contains some useful features such as support for structured data, " +"and if you need to be able to log to a syslog server with support for it, " +"you can do so with a subclassed handler which looks something like this::" +msgstr "" + +msgid "" +"You'll need to be familiar with RFC 5424 to fully understand the above code, " +"and it may be that you have slightly different needs (e.g. for how you pass " +"structural data to the log). Nevertheless, the above should be adaptable to " +"your speciric needs. With the above handler, you'd pass structured data " +"using something like this::" +msgstr "" + +msgid "How to treat a logger like an output stream" +msgstr "" + +msgid "" +"Sometimes, you need to interface to a third-party API which expects a file-" +"like object to write to, but you want to direct the API's output to a " +"logger. You can do this using a class which wraps a logger with a file-like " +"API. Here's a short script illustrating such a class:" +msgstr "" + +msgid "When this script is run, it prints" +msgstr "" + +msgid "" +"You could also use ``LoggerWriter`` to redirect ``sys.stdout`` and " +"``sys.stderr`` by doing something like this:" +msgstr "" + +msgid "" +"You should do this *after* configuring logging for your needs. In the above " +"example, the :func:`~logging.basicConfig` call does this (using the " +"``sys.stderr`` value *before* it is overwritten by a ``LoggerWriter`` " +"instance). Then, you'd get this kind of result:" +msgstr "" + +msgid "" +"Of course, these above examples show output according to the format used " +"by :func:`~logging.basicConfig`, but you can use a different formatter when " +"you configure logging." +msgstr "" + +msgid "" +"Note that with the above scheme, you are somewhat at the mercy of buffering " +"and the sequence of write calls which you are intercepting. For example, " +"with the definition of ``LoggerWriter`` above, if you have the snippet" +msgstr "" + +msgid "then running the script results in" +msgstr "" + +msgid "" +"As you can see, this output isn't ideal. That's because the underlying code " +"which writes to ``sys.stderr`` makes mutiple writes, each of which results " +"in a separate logged line (for example, the last three lines above). To get " +"around this problem, you need to buffer things and only output log lines " +"when newlines are seen. Let's use a slghtly better implementation of " +"``LoggerWriter``:" +msgstr "" + +msgid "" +"This just buffers up stuff until a newline is seen, and then logs complete " +"lines. With this approach, you get better output:" +msgstr "" + +msgid "Patterns to avoid" +msgstr "" + +msgid "" +"Although the preceding sections have described ways of doing things you " +"might need to do or deal with, it is worth mentioning some usage patterns " +"which are *unhelpful*, and which should therefore be avoided in most cases. " +"The following sections are in no particular order." +msgstr "" + +msgid "Opening the same log file multiple times" +msgstr "" + +msgid "" +"On Windows, you will generally not be able to open the same file multiple " +"times as this will lead to a \"file is in use by another process\" error. " +"However, on POSIX platforms you'll not get any errors if you open the same " +"file multiple times. This could be done accidentally, for example by:" +msgstr "" + +msgid "" +"Adding a file handler more than once which references the same file (e.g. by " +"a copy/paste/forget-to-change error)." +msgstr "" + +msgid "" +"Opening two files that look different, as they have different names, but are " +"the same because one is a symbolic link to the other." +msgstr "" + +msgid "" +"Forking a process, following which both parent and child have a reference to " +"the same file. This might be through use of the :mod:`multiprocessing` " +"module, for example." +msgstr "" + +msgid "" +"Opening a file multiple times might *appear* to work most of the time, but " +"can lead to a number of problems in practice:" +msgstr "" + +msgid "" +"Logging output can be garbled because multiple threads or processes try to " +"write to the same file. Although logging guards against concurrent use of " +"the same handler instance by multiple threads, there is no such protection " +"if concurrent writes are attempted by two different threads using two " +"different handler instances which happen to point to the same file." +msgstr "" + +msgid "" +"An attempt to delete a file (e.g. during file rotation) silently fails, " +"because there is another reference pointing to it. This can lead to " +"confusion and wasted debugging time - log entries end up in unexpected " +"places, or are lost altogether. Or a file that was supposed to be moved " +"remains in place, and grows in size unexpectedly despite size-based rotation " +"being supposedly in place." +msgstr "" + +msgid "" +"Use the techniques outlined in :ref:`multiple-processes` to circumvent such " +"issues." +msgstr "" + +msgid "Using loggers as attributes in a class or passing them as parameters" +msgstr "" + +msgid "" +"While there might be unusual cases where you'll need to do this, in general " +"there is no point because loggers are singletons. Code can always access a " +"given logger instance by name using ``logging.getLogger(name)``, so passing " +"instances around and holding them as instance attributes is pointless. Note " +"that in other languages such as Java and C#, loggers are often static class " +"attributes. However, this pattern doesn't make sense in Python, where the " +"module (and not the class) is the unit of software decomposition." +msgstr "" + +msgid "" +"Adding handlers other than :class:`NullHandler` to a logger in a library" +msgstr "" + +msgid "" +"Configuring logging by adding handlers, formatters and filters is the " +"responsibility of the application developer, not the library developer. If " +"you are maintaining a library, ensure that you don't add handlers to any of " +"your loggers other than a :class:`~logging.NullHandler` instance." +msgstr "" + +msgid "Creating a lot of loggers" +msgstr "" + +msgid "" +"Loggers are singletons that are never freed during a script execution, and " +"so creating lots of loggers will use up memory which can't then be freed. " +"Rather than create a logger per e.g. file processed or network connection " +"made, use the :ref:`existing mechanisms ` for passing " +"contextual information into your logs and restrict the loggers created to " +"those describing areas within your application (generally modules, but " +"occasionally slightly more fine-grained than that)." +msgstr "" + +msgid "Other resources" +msgstr "Inne zasoby" + +msgid ":ref:`Basic Tutorial `" +msgstr "" + +msgid ":ref:`Advanced Tutorial `" +msgstr "" diff --git a/howto/logging.po b/howto/logging.po index f76dd1d707..893348b23c 100644 --- a/howto/logging.po +++ b/howto/logging.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Logging HOWTO" msgstr "" @@ -51,8 +50,8 @@ msgstr "" 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, " +"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 "" @@ -121,20 +120,20 @@ msgid "When it's used" msgstr "" msgid "``DEBUG``" -msgstr "" +msgstr "``DEBUG``" msgid "" "Detailed information, typically of interest only when diagnosing problems." msgstr "" msgid "``INFO``" -msgstr "" +msgstr "``INFO``" msgid "Confirmation that things are working as expected." msgstr "" msgid "``WARNING``" -msgstr "" +msgstr "``WARNING``" msgid "" "An indication that something unexpected happened, or indicative of some " @@ -143,7 +142,7 @@ msgid "" msgstr "" msgid "``ERROR``" -msgstr "" +msgstr "``ERROR``" msgid "" "Due to a more serious problem, the software has not been able to perform " @@ -151,7 +150,7 @@ msgid "" msgstr "" msgid "``CRITICAL``" -msgstr "" +msgstr "``CRITICAL``" msgid "" "A serious error, indicating that the program itself may be unable to " @@ -182,8 +181,8 @@ msgstr "" 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 " +"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 "" @@ -233,11 +232,11 @@ msgid "" msgstr "" msgid "" -"The call to :func:`basicConfig` should come *before* any calls to :func:" -"`debug`, :func:`info`, etc. Otherwise, those functions will call :func:" -"`basicConfig` for you with the default options. 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." +"The call to :func:`basicConfig` should come *before* any calls " +"to :func:`debug`, :func:`info`, etc. Otherwise, those functions will " +"call :func:`basicConfig` for you with the default options. 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 "" msgid "" @@ -325,17 +324,17 @@ msgid "which should print something like this:" msgstr "" 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, " -"provide a *datefmt* argument to ``basicConfig``, as in this example::" +"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 "" msgid "which would display something like this:" msgstr "" 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 "" msgid "Next Steps" @@ -353,8 +352,8 @@ 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 " "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 "" msgid "" @@ -414,10 +413,11 @@ msgstr "" 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 "" msgid "" @@ -433,12 +433,12 @@ 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 " -"displayed message before delegating to the root logger to do the actual " -"message output." +"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 "" msgid "The default format set by :func:`basicConfig` for messages is:" @@ -508,21 +508,22 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -580,8 +581,8 @@ msgstr "" 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 "" msgid "" @@ -611,10 +612,10 @@ msgid "" msgstr "" 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 "" msgid "Formatters" @@ -642,8 +643,8 @@ msgstr "" 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 " +"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`." @@ -685,8 +686,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -739,11 +740,11 @@ msgstr "" 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 "" msgid "" @@ -797,10 +798,10 @@ msgid "In Python 3.2 and later, the behaviour is as follows:" msgstr "" 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 " @@ -837,13 +838,13 @@ msgid "" msgstr "" 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 "" msgid "" @@ -853,22 +854,14 @@ msgid "" msgstr "" msgid "" -"It is strongly advised that you *do not log to the root logger* in your " -"library. Instead, use a logger with a unique and easily identifiable name, " -"such as the ``__name__`` for your library's top-level package or module. " -"Logging to the root logger will make it difficult or impossible for the " -"application developer to configure the logging verbosity or handlers of your " -"library as they wish." -msgstr "" - -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 "" msgid "Logging Levels" @@ -886,22 +879,22 @@ msgid "Numeric value" msgstr "" msgid "50" -msgstr "" +msgstr "50" msgid "40" -msgstr "" +msgstr "40" msgid "30" -msgstr "" +msgstr "30" msgid "20" -msgstr "" +msgstr "20" msgid "10" -msgstr "" +msgstr "10" msgid "``NOTSET``" -msgstr "" +msgstr "``NOTSET``" msgid "0" msgstr "0" @@ -917,33 +910,33 @@ msgstr "" 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." +"class. When a logger decides to actually log an event, " +"a :class:`~logging.LogRecord` instance is created from the logging message." msgstr "" msgid "" -"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 " -"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 " -"associated with all ancestors of the logger* are called to dispatch the " -"message (unless the *propagate* flag for a logger is set to a false value, " -"at which point the passing to ancestor handlers stops)." +"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 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 associated with all ancestors of the logger* are " +"called to dispatch the message (unless the *propagate* flag for a logger is " +"set to a false value, at which point the passing to ancestor handlers stops)." 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 "" msgid "Custom Levels" @@ -980,8 +973,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 "" msgid "" @@ -1015,8 +1008,8 @@ msgid "" msgstr "" msgid "" -":class:`~handlers.NTEventLogHandler` instances send messages to a Windows " -"NT/2000/XP event log." +":class:`~handlers.NTEventLogHandler` instances send messages to a Windows NT/" +"2000/XP event log." msgstr "" msgid "" @@ -1063,25 +1056,25 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" msgid "" @@ -1103,15 +1096,15 @@ msgstr "" 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 "" 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 "" msgid "" @@ -1127,12 +1120,12 @@ msgstr "" 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." +"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 "" msgid "Optimization" @@ -1142,15 +1135,15 @@ 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 "" 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 "" msgid "" @@ -1181,9 +1174,10 @@ msgid "Information about where calls were made from." msgstr "" 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`)." +"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`)." msgstr "" msgid "Threading information." diff --git a/howto/pyporting.po b/howto/pyporting.po index 0c6b31c80b..a187595fd0 100644 --- a/howto/pyporting.po +++ b/howto/pyporting.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Porting Python 2 Code to Python 3" msgstr "Przeportowywanie kodu Python 2 do Python 3" @@ -161,10 +159,10 @@ 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." +"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 "" msgid "" @@ -239,8 +237,8 @@ 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 " +"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." @@ -334,7 +332,7 @@ msgid "encode" msgstr "" msgid "format" -msgstr "" +msgstr "format" msgid "isdecimal" msgstr "" @@ -369,12 +367,12 @@ msgid "" "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 "" msgid "" @@ -396,8 +394,8 @@ msgid "" "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 "" msgid "To summarize:" diff --git a/howto/regex.po b/howto/regex.po index 6db7896243..9cb4b7a7b6 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Regular Expression HOWTO" msgstr "Wyrażenia regularne PORADNIK" @@ -104,12 +102,12 @@ msgid "" msgstr "" 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 " -"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." +"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 "" msgid "" @@ -136,12 +134,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -163,10 +161,10 @@ 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." +"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 "" msgid "" @@ -178,13 +176,13 @@ msgid "" msgstr "" msgid "``\\d``" -msgstr "" +msgstr "``\\d``" msgid "Matches any decimal digit; this is equivalent to the class ``[0-9]``." msgstr "" msgid "``\\D``" -msgstr "" +msgstr "``\\D``" msgid "" "Matches any non-digit character; this is equivalent to the class ``[^0-9]``." @@ -192,15 +190,15 @@ msgstr "" "Wyszukuje każdy nieliczbowy ciąg znaków , jest to zamiennik klasy ``[^0-9]``" msgid "``\\s``" -msgstr "" +msgstr "``\\s``" 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 "" msgid "``\\S``" -msgstr "" +msgstr "``\\S``" msgid "" "Matches any non-whitespace character; this is equivalent to the class ``[^ " @@ -208,7 +206,7 @@ msgid "" msgstr "" msgid "``\\w``" -msgstr "" +msgstr "``\\w``" msgid "" "Matches any alphanumeric character; this is equivalent to the class ``[a-zA-" @@ -216,7 +214,7 @@ msgid "" msgstr "" msgid "``\\W``" -msgstr "" +msgstr "``\\W``" msgid "" "Matches any non-alphanumeric character; this is equivalent to the class " @@ -231,9 +229,9 @@ msgstr "" 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 "" msgid "Repeating Things" @@ -286,7 +284,7 @@ msgid "1" msgstr "1" msgid "``a``" -msgstr "" +msgstr "``a``" msgid "The ``a`` in the RE matches." msgstr "" @@ -295,7 +293,7 @@ msgid "2" msgstr "2" msgid "``abcbd``" -msgstr "" +msgstr "``abcbd``" msgid "" "The engine matches ``[bcd]*``, going as far as it can, which is to the end " @@ -303,7 +301,7 @@ msgid "" msgstr "" msgid "3" -msgstr "" +msgstr "3" msgid "*Failure*" msgstr "" @@ -317,13 +315,13 @@ msgid "4" msgstr "4" msgid "``abcb``" -msgstr "" +msgstr "``abcb``" msgid "Back up, so that ``[bcd]*`` matches one less character." msgstr "" msgid "5" -msgstr "" +msgstr "5" msgid "" "Try ``b`` again, but the current position is at the last character, which is " @@ -331,10 +329,10 @@ msgid "" msgstr "" msgid "6" -msgstr "" +msgstr "6" msgid "``abc``" -msgstr "" +msgstr "``abc``" msgid "Back up again, so that ``[bcd]*`` is only matching ``bc``." msgstr "" @@ -363,18 +361,18 @@ msgid "" msgstr "" msgid "" -"There are two more repeating operators or quantifiers. 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'``." +"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 "" msgid "" -"The most complicated quantifier is ``{m,n}``, where *m* and *n* are decimal " -"integers. This quantifier 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." +"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." msgstr "" msgid "" @@ -384,7 +382,7 @@ msgid "" msgstr "" msgid "" -"Readers of a reductionist bent may notice that the three other quantifiers " +"Readers of a reductionist bent may notice that the three other qualifiers " "can all be expressed using this notation. ``{0,}`` is the same as ``*``, " "``{1,}`` is equivalent to ``+``, and ``{0,1}`` is the same as ``?``. It's " "better to use ``*``, ``+``, or ``?`` when you can, simply because they're " @@ -422,8 +420,8 @@ msgid "" "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 "" msgid "" @@ -459,19 +457,19 @@ msgid "Stage" msgstr "" msgid "``\\section``" -msgstr "" +msgstr "``\\section``" msgid "Text string to be matched" msgstr "" msgid "``\\\\section``" -msgstr "" +msgstr "``\\\\section``" msgid "Escaped backslash for :func:`re.compile`" msgstr "" msgid "``\"\\\\\\\\section\"``" -msgstr "" +msgstr "``\"\\\\\\\\section\"``" msgid "Escaped backslashes for a string literal" msgstr "" @@ -495,10 +493,10 @@ msgstr "" 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." +"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 "" msgid "Regular String" @@ -508,19 +506,19 @@ msgid "Raw string" msgstr "" msgid "``\"ab*\"``" -msgstr "" +msgstr "``\"ab*\"``" msgid "``r\"ab*\"``" -msgstr "" +msgstr "``r\"ab*\"``" msgid "``r\"\\\\section\"``" -msgstr "" +msgstr "``r\"\\\\section\"``" msgid "``\"\\\\w+\\\\s+\\\\1\"``" -msgstr "" +msgstr "``\"\\\\w+\\\\s+\\\\1\"``" msgid "``r\"\\w+\\s+\\1\"``" -msgstr "" +msgstr "``r\"\\w+\\s+\\1\"``" msgid "Performing Matches" msgstr "" @@ -533,35 +531,35 @@ msgid "" msgstr "" msgid "Method/Attribute" -msgstr "" +msgstr "Metoda/atrybut" msgid "Purpose" msgstr "" msgid "``match()``" -msgstr "" +msgstr "``match()``" msgid "Determine if the RE matches at the beginning of the string." msgstr "" msgid "``search()``" -msgstr "" +msgstr "``search()``" msgid "Scan through a string, looking for any location where this RE matches." msgstr "" msgid "``findall()``" -msgstr "" +msgstr "``findall()``" msgid "Find all substrings where the RE matches, and returns them as a list." msgstr "" msgid "``finditer()``" -msgstr "" +msgstr "``finditer()``" 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 "" msgid "" @@ -573,8 +571,8 @@ msgstr "" 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." @@ -606,25 +604,25 @@ msgid "" msgstr "" msgid "``group()``" -msgstr "" +msgstr "``group()``" msgid "Return the string matched by the RE" msgstr "" msgid "``start()``" -msgstr "" +msgstr "``start()``" msgid "Return the starting position of the match" msgstr "" msgid "``end()``" -msgstr "" +msgstr "``end()``" msgid "Return the ending position of the match" msgstr "" msgid "``span()``" -msgstr "" +msgstr "``span()``" msgid "Return a tuple containing the (start, end) positions of the match" msgstr "" @@ -633,11 +631,11 @@ msgid "Trying these methods will soon clarify their meaning::" msgstr "" 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. ::" @@ -650,35 +648,35 @@ msgid "" msgstr "" 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 "" 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`." +"in a :exc:`DeprecationWarning` and will eventually become " +"a :exc:`SyntaxError`. See :ref:`the-backslash-plague`." msgstr "" 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 "" msgid "Module-Level Functions" msgstr "" 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. " -"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. ::" +"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. ::" msgstr "" msgid "" @@ -701,12 +699,12 @@ msgstr "" 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." +"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 "" msgid "" @@ -721,7 +719,7 @@ msgid "Meaning" msgstr "Znaczenie" msgid ":const:`ASCII`, :const:`A`" -msgstr "" +msgstr ":const:`ASCII`, :const:`A`" msgid "" "Makes several escapes like ``\\w``, ``\\b``, ``\\s`` and ``\\d`` match only " @@ -729,28 +727,28 @@ msgid "" msgstr "" msgid ":const:`DOTALL`, :const:`S`" -msgstr "" +msgstr ":const:`DOTALL`, :const:`S`" msgid "Make ``.`` match any character, including newlines." msgstr "" msgid ":const:`IGNORECASE`, :const:`I`" -msgstr "" +msgstr ":const:`IGNORECASE`, :const:`I`" msgid "Do case-insensitive matches." msgstr "" msgid ":const:`LOCALE`, :const:`L`" -msgstr "" +msgstr ":const:`LOCALE`, :const:`L`" msgid "Do a locale-aware match." msgstr "" msgid ":const:`MULTILINE`, :const:`M`" -msgstr "" +msgstr ":const:`MULTILINE`, :const:`M`" msgid "Multi-line matching, affecting ``^`` and ``$``." -msgstr "" +msgstr "Multi-line matching, affecting ``^`` and ``$``." msgid ":const:`VERBOSE`, :const:`X` (for 'extended')" msgstr "" @@ -765,13 +763,13 @@ msgid "" "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." +"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 "" msgid "" @@ -877,7 +875,7 @@ msgid "" msgstr "" msgid "``|``" -msgstr "" +msgstr "``|``" msgid "" "Alternation, or the \"or\" operator. If *A* and *B* are regular " @@ -894,13 +892,13 @@ msgid "" msgstr "" msgid "``^``" -msgstr "" +msgstr "``^``" 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." +"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 "" msgid "" @@ -912,7 +910,7 @@ msgid "To match a literal ``'^'``, use ``\\^``." msgstr "" msgid "``$``" -msgstr "" +msgstr "``$``" msgid "" "Matches at the end of a line, which is defined as either the end of the " @@ -925,7 +923,7 @@ msgid "" msgstr "" msgid "``\\A``" -msgstr "" +msgstr "``\\A``" msgid "" "Matches only at the start of the string. When not in :const:`MULTILINE` " @@ -936,13 +934,13 @@ msgid "" msgstr "" msgid "``\\Z``" -msgstr "" +msgstr "``\\Z``" msgid "Matches only at the end of the string." msgstr "" msgid "``\\b``" -msgstr "" +msgstr "``\\b``" msgid "" "Word boundary. This is a zero-width assertion that matches only at the " @@ -959,21 +957,21 @@ msgstr "" 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 "" 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 "" msgid "``\\B``" -msgstr "" +msgstr "``\\B``" msgid "" "Another zero-width assertion, this is the opposite of ``\\b``, only matching " @@ -1001,20 +999,20 @@ 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 quantifier, 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 "" 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 "" msgid "" @@ -1068,8 +1066,8 @@ msgstr "" 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 ``[&]``." @@ -1132,14 +1130,14 @@ msgid "" msgstr "" msgid "" -"Additionally, you can retrieve named groups as a dictionary with :meth:`~re." -"Match.groupdict`::" +"Additionally, you can retrieve named groups as a dictionary " +"with :meth:`~re.Match.groupdict`::" msgstr "" 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 "" msgid "" @@ -1153,8 +1151,8 @@ msgid "" "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 "" msgid "Lookahead Assertions" @@ -1167,7 +1165,7 @@ msgid "" msgstr "" msgid "``(?=...)``" -msgstr "" +msgstr "``(?=...)``" msgid "" "Positive lookahead assertion. This succeeds if the contained regular " @@ -1197,7 +1195,7 @@ msgid "The pattern to match this is quite simple:" msgstr "" msgid "``.*[.].*$``" -msgstr "" +msgstr "``.*[.].*$``" msgid "" "Notice that the ``.`` needs to be treated specially because it's a " @@ -1220,20 +1218,20 @@ msgid "" msgstr "" msgid "``.*[.]([^b]..|.[^a].|..[^t])$``" -msgstr "" +msgstr "``.*[.]([^b]..|.[^a].|..[^t])$``" 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 "" msgid "``.*[.]([^b].?.?|.[^a]?.?|..?[^t]?)$``" -msgstr "" +msgstr "``.*[.]([^b].?.?|.[^a]?.?|..?[^t]?)$``" msgid "" "In the third attempt, the second and third letters are all made optional in " @@ -1253,11 +1251,11 @@ msgstr "" 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." +"``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 "" msgid "" @@ -1267,7 +1265,7 @@ msgid "" msgstr "" msgid "``.*[.](?!bat$|exe$)[^.]*$``" -msgstr "" +msgstr "``.*[.](?!bat$|exe$)[^.]*$``" msgid "Modifying Strings" msgstr "" @@ -1380,9 +1378,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 "" @@ -1440,13 +1438,13 @@ msgstr "Użyj metod string" 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 "" msgid "" @@ -1457,8 +1455,8 @@ msgid "" "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.)" +"``word`` have a word boundary on either side. This takes the job " +"beyond :meth:`!replace`'s abilities.)" msgstr "" msgid "" @@ -1492,14 +1490,15 @@ msgid "" msgstr "" 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." +"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 "" msgid "" @@ -1529,7 +1528,7 @@ msgid "" msgstr "" msgid "" -"In this case, the solution is to use the non-greedy quantifiers ``*?``, ``+?" +"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, " diff --git a/howto/sockets.po b/howto/sockets.po index e132967a5d..7f565678b3 100644 --- a/howto/sockets.po +++ b/howto/sockets.po @@ -1,28 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Socket Programming HOWTO" msgstr "" @@ -46,7 +46,7 @@ msgid "" msgstr "" msgid "Sockets" -msgstr "" +msgstr "Sockets" msgid "" "I'm only going to talk about INET (i.e. IPv4) sockets, but they account for " @@ -70,7 +70,7 @@ msgid "" msgstr "" msgid "History" -msgstr "" +msgstr "Historia" msgid "" "Of the various forms of :abbr:`IPC (Inter Process Communication)`, sockets " @@ -108,11 +108,11 @@ msgstr "" 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 "" msgid "" @@ -149,7 +149,7 @@ msgid "" msgstr "" msgid "IPC" -msgstr "" +msgstr "IPC" msgid "" "If you need fast IPC between two processes on one machine, you should look " @@ -288,10 +288,10 @@ msgstr "" msgid "" "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." +"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 "" msgid "" diff --git a/howto/sorting.po b/howto/sorting.po index 5757ca4901..b1274dc1d4 100644 --- a/howto/sorting.po +++ b/howto/sorting.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Sorting HOW TO" msgstr "" @@ -104,9 +102,10 @@ msgstr "" 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 "" msgid "Using those functions, the above examples become simpler and faster:" @@ -157,7 +156,7 @@ msgid "" "ordering already present in a dataset." msgstr "" -msgid "Decorate-Sort-Undecorate" +msgid "The Old Way Using Decorate-Sort-Undecorate" msgstr "" msgid "This idiom is called Decorate-Sort-Undecorate after its three steps:" @@ -206,9 +205,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -216,43 +215,52 @@ msgid "" "needed." msgstr "" -msgid "Comparison Functions" +msgid "The Old Way Using the *cmp* Parameter" msgstr "" msgid "" -"Unlike key functions that return an absolute value for sorting, a comparison " -"function computes the relative ordering for two inputs." +"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 "" msgid "" -"For example, a `balance scale `_ compares two samples giving a " -"relative ordering: lighter, equal, or heavier. Likewise, a comparison " -"function such as ``cmp(a, b)`` will return a negative value for less-than, " -"zero if the inputs are equal, or a positive value for greater-than." +"In Py3.0, the *cmp* parameter was removed entirely (as part of a larger " +"effort to simplify and unify the language, eliminating the conflict between " +"rich comparisons and the :meth:`__cmp__` magic method)." msgstr "" msgid "" -"It is common to encounter comparison functions when translating algorithms " -"from other languages. Also, some libraries provide comparison functions as " -"part of their API. For example, :func:`locale.strcoll` is a comparison " -"function." +"In Py2.x, sort allowed an optional function which can be called for doing " +"the comparisons. That function should take two arguments to be compared and " +"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 "" + +msgid "Or you can reverse the order of comparison with:" +msgstr "Lub możesz odwrócić kolejność porównania za pomocą:" + +msgid "" +"When porting code from Python 2.x to 3.x, the situation can arise when you " +"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 "" + +msgid "To convert to a key function, just wrap the old comparison function:" msgstr "" msgid "" -"To accommodate those situations, Python provides :class:`functools." -"cmp_to_key` to wrap the comparison function to make it usable as a key " -"function::" +"In Python 3.2, the :func:`functools.cmp_to_key` function was added to " +"the :mod:`functools` module in the standard library." msgstr "" -msgid "Odds and Ends" +msgid "Odd and Ends" msgstr "" msgid "" -"For locale aware sorting, use :func:`locale.strxfrm` for a key function or :" -"func:`locale.strcoll` for a comparison function. This is necessary because " -"\"alphabetical\" sort orderings can vary across cultures even if the " -"underlying alphabet is the same." +"For locale aware sorting, use :func:`locale.strxfrm` for a key function " +"or :func:`locale.strcoll` for a comparison function." msgstr "" msgid "" @@ -264,13 +272,13 @@ msgstr "" msgid "" "The sort routines use ``<`` 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:" +"it is easy to add a standard sort order to a class by defining " +"an :meth:`__lt__` method:" msgstr "" msgid "" -"However, note that ``<`` can fall back to using :meth:`__gt__` if :meth:" -"`__lt__` is not implemented (see :func:`object.__lt__`)." +"However, note that ``<`` can fall back to using :meth:`__gt__` " +"if :meth:`__lt__` is not implemented (see :func:`object.__lt__`)." msgstr "" msgid "" diff --git a/howto/unicode.po b/howto/unicode.po new file mode 100644 index 0000000000..4ea3e34022 --- /dev/null +++ b/howto/unicode.po @@ -0,0 +1,757 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Unicode HOWTO" +msgstr "" + +msgid "Release" +msgstr "wydanie" + +msgid "1.12" +msgstr "1.12" + +msgid "" +"This HOWTO discusses Python's support for the Unicode specification for " +"representing textual data, and explains various problems that people " +"commonly encounter when trying to work with Unicode." +msgstr "" + +msgid "Introduction to Unicode" +msgstr "" + +msgid "Definitions" +msgstr "" + +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 " +"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 " +"different possible characters." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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, the `actual number assigned `_ is less than that). 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)." +msgstr "" + +msgid "" +"The Unicode standard contains a lot of tables listing characters and their " +"corresponding code points:" +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 " +"and characters will sometimes be forgotten." +msgstr "" + +msgid "" +"A character is represented on a screen or on paper by a set of graphical " +"elements that's called a **glyph**. The glyph for an uppercase A, for " +"example, is two diagonal strokes and a horizontal stroke, though the exact " +"details will depend on the font being used. Most Python code doesn't need " +"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 "" + +msgid "Encodings" +msgstr "" + +msgid "" +"To summarize the previous section: a Unicode string is a sequence of code " +"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**." +msgstr "" + +msgid "" +"The first encoding you might think of is using 32-bit integers as the code " +"unit, and then using the CPU's representation of 32-bit integers. In this " +"representation, the string \"Python\" might look like this:" +msgstr "" + +msgid "" +"This representation is straightforward but using it presents a number of " +"problems." +msgstr "" + +msgid "It's not portable; different processors order the bytes differently." +msgstr "" + +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 " +"``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 " +"that large), but expanding our usage of disk and network bandwidth by a " +"factor of 4 is intolerable." +msgstr "" + +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." +msgstr "" + +msgid "" +"Therefore this encoding isn't used very much, and people instead choose " +"other encodings that are more efficient and convenient, such as UTF-8." +msgstr "" + +msgid "" +"UTF-8 is one of the most commonly used encodings, and Python often defaults " +"to using it. UTF stands for \"Unicode Transformation Format\", and the '8' " +"means that 8-bit values are used in the encoding. (There are also UTF-16 " +"and UTF-32 encodings, but they are less frequently used than UTF-8.) UTF-8 " +"uses the following rules:" +msgstr "" + +msgid "" +"If the code point is < 128, it's represented by the corresponding byte value." +msgstr "" + +msgid "" +"If the code point is >= 128, it's turned into a sequence of two, three, or " +"four bytes, where each byte of the sequence is between 128 and 255." +msgstr "" + +msgid "UTF-8 has several convenient properties:" +msgstr "" + +msgid "It can handle any Unicode code point." +msgstr "" + +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." +msgstr "" + +msgid "A string of ASCII text is also valid UTF-8 text." +msgstr "" + +msgid "" +"UTF-8 is fairly compact; the majority of commonly used characters can be " +"represented with one or two bytes." +msgstr "" + +msgid "" +"If bytes are corrupted or lost, it's possible to determine the start of the " +"next UTF-8-encoded code point and resynchronize. It's also unlikely that " +"random 8-bit data will look like valid UTF-8." +msgstr "" + +msgid "" +"UTF-8 is a byte oriented encoding. The encoding specifies that each " +"character is represented by a specific sequence of one or more bytes. This " +"avoids the byte-ordering issues that can occur with integer and word " +"oriented encodings, like UTF-16 and UTF-32, where the sequence of bytes " +"varies depending on the hardware on which the string was encoded." +msgstr "" + +msgid "References" +msgstr "" + +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." +msgstr "" + +msgid "" +"On the Computerphile Youtube channel, Tom Scott briefly `discusses the " +"history of Unicode and UTF-8 `_ " +"(9 minutes 36 seconds)." +msgstr "" + +msgid "" +"To help understand the standard, Jukka Korpela has written `an introductory " +"guide `_ to reading the Unicode " +"character tables." +msgstr "" + +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." +msgstr "" + +msgid "" +"Wikipedia entries are often helpful; see the entries for \"`character " +"encoding `_\" and `UTF-8 " +"`_, for example." +msgstr "" + +msgid "Python's Unicode Support" +msgstr "" + +msgid "" +"Now that you've learned the rudiments of Unicode, we can look at Python's " +"Unicode features." +msgstr "" + +msgid "The String Type" +msgstr "" + +msgid "" +"Since Python 3.0, the language's :class:`str` type contains Unicode " +"characters, meaning any string created using ``\"unicode rocks!\"``, " +"``'unicode rocks!'``, or the triple-quoted string syntax is stored as " +"Unicode." +msgstr "" + +msgid "" +"The default encoding for Python source code is UTF-8, so you can simply " +"include a Unicode character in a string literal::" +msgstr "" + +msgid "" +"Side note: Python 3 also supports using Unicode characters in identifiers::" +msgstr "" + +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.) ::" +msgstr "" + +msgid "" +"In addition, one can create a string using the :func:`~bytes.decode` method " +"of :class:`bytes`. This method takes an *encoding* argument, such as " +"``UTF-8``, and optionally an *errors* argument." +msgstr "" + +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), " +"``'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 " +"examples show the differences::" +msgstr "" + +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 " +"names; for example, ``'latin-1'``, ``'iso_8859_1'`` and ``'8859``' are all " +"synonyms for the same encoding." +msgstr "" + +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::" +msgstr "" + +msgid "Converting to Bytes" +msgstr "" + +msgid "" +"The opposite method of :meth:`bytes.decode` is :meth:`str.encode`, which " +"returns a :class:`bytes` representation of the Unicode string, encoded in " +"the requested *encoding*." +msgstr "" + +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), " +"``backslashreplace`` (inserts a ``\\uNNNN`` escape sequence) and " +"``namereplace`` (inserts a ``\\N{...}`` escape sequence)." +msgstr "" + +msgid "The following example shows the different results::" +msgstr "" + +msgid "" +"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 " +"module won't be covered in this HOWTO." +msgstr "" + +msgid "Unicode Literals in Python Source Code" +msgstr "" + +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 " +"code point. The ``\\U`` escape sequence is similar, but expects eight hex " +"digits, not four::" +msgstr "" + +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 " +"language. You can also assemble strings using the :func:`chr` built-in " +"function, but this is even more tedious." +msgstr "" + +msgid "" +"Ideally, you'd want to be able to write literals in your language's natural " +"encoding. You could then edit Python source code with your favorite editor " +"which would display the accented characters naturally, and have the right " +"characters used at runtime." +msgstr "" + +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::" +msgstr "" + +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 " +"'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." +msgstr "" + +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." +msgstr "" + +msgid "Unicode Properties" +msgstr "" + +msgid "" +"The Unicode specification includes a database of information about code " +"points. For each defined code point, the information includes the " +"character's name, its category, the numeric value if applicable (for " +"characters representing numeric concepts such as the Roman numerals, " +"fractions such as one-third and four-fifths, etc.). There are also display-" +"related properties, such as how to use the code point in bidirectional text." +msgstr "" + +msgid "" +"The following program displays some information about several characters, " +"and prints the numeric value of one particular character::" +msgstr "" + +msgid "When run, this prints:" +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "Comparing Strings" +msgstr "" + +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." +msgstr "" + +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 " +"handling for characters such as the German letter 'ß' (code point U+00DF), " +"which becomes the pair of lowercase letters 'ss'." +msgstr "" + +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:" +msgstr "" + +msgid "When run, this outputs:" +msgstr "" + +msgid "" +"The first argument to the :func:`~unicodedata.normalize` function is a " +"string giving the desired normalization form, which can be one of 'NFC', " +"'NFKC', 'NFD', and 'NFKD'." +msgstr "" + +msgid "The Unicode Standard also specifies how to do caseless comparisons::" +msgstr "" + +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 " +"string, so the result needs to be normalized again. See section 3.13 of the " +"Unicode Standard for a discussion and an example.)" +msgstr "" + +msgid "Unicode Regular Expressions" +msgstr "" + +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." +msgstr "" + +msgid "" +"The string in this example has the number 57 written in both Thai and Arabic " +"numerals::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Similarly, ``\\w`` matches a wide variety of Unicode characters but only " +"``[a-zA-Z0-9_]`` in bytes or if :const:`re.ASCII` is supplied, and ``\\s`` " +"will match either Unicode whitespace characters or ``[ \\t\\n\\r\\f\\v]``." +msgstr "" + +msgid "Some good alternative discussions of Python's Unicode support are:" +msgstr "" + +msgid "" +"`Processing Text Files in Python 3 `_, " +"by Nick Coghlan." +msgstr "" + +msgid "" +"`Pragmatic Unicode `_, a PyCon " +"2012 presentation by Ned Batchelder." +msgstr "" + +msgid "" +"The :class:`str` type is described in the Python library reference " +"at :ref:`textseq`." +msgstr "" + +msgid "The documentation for the :mod:`unicodedata` module." +msgstr "" + +msgid "The documentation for the :mod:`codecs` module." +msgstr "" + +msgid "" +"Marc-André Lemburg gave `a presentation titled \"Python and Unicode\" (PDF " +"slides) `_ at " +"EuroPython 2002. The slides are an excellent overview of the design of " +"Python 2's Unicode features (where the Unicode string type is called " +"``unicode`` and literals start with ``u``)." +msgstr "" + +msgid "Reading and Writing Unicode Data" +msgstr "" + +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?" +msgstr "" + +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 " +"Unicode data, for example. Many relational databases also support Unicode-" +"valued columns and can return Unicode values from an SQL query." +msgstr "" + +msgid "" +"Unicode data is usually converted to a particular encoding before it gets " +"written to disk or sent over a socket. It's possible to do all the work " +"yourself: open a file, read an 8-bit bytes object from it, and convert the " +"bytes with ``bytes.decode(encoding)``. However, the manual approach is not " +"recommended." +msgstr "" + +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.)" +msgstr "" + +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` " +"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`." +msgstr "" + +msgid "Reading Unicode from a file is therefore simple::" +msgstr "" + +msgid "" +"It's also possible to open files in update mode, allowing both reading and " +"writing::" +msgstr "" + +msgid "" +"The Unicode character ``U+FEFF`` is used as a byte-order mark (BOM), and is " +"often written as the first character of a file in order to assist with " +"autodetection of the file's byte ordering. Some encodings, such as UTF-16, " +"expect a BOM to be present at the start of a file; when such an encoding is " +"used, the BOM will be automatically written as the first character and will " +"be silently dropped when the file is read. There are variants of these " +"encodings, such as 'utf-16-le' and 'utf-16-be' for little-endian and big-" +"endian encodings, that specify one particular byte ordering and don't skip " +"the BOM." +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." +msgstr "" + +msgid "Unicode filenames" +msgstr "" + +msgid "" +"Most of the operating systems in common use today support filenames that " +"contain arbitrary Unicode characters. Usually this is implemented by " +"converting the Unicode string into some encoding that varies depending on " +"the system. Today Python is converging on using UTF-8: Python on MacOS has " +"used UTF-8 for several versions, and Python 3.6 switched to using UTF-8 on " +"Windows as well. On Unix systems, there will only be a :term:`filesystem " +"encoding `. if you've set the " +"``LANG`` or ``LC_CTYPE`` environment variables; if you haven't, the default " +"encoding is again UTF-8." +msgstr "" + +msgid "" +"The :func:`sys.getfilesystemencoding` function returns the encoding to use " +"on your current system, in case you want to do the encoding manually, but " +"there's not much reason to bother. When opening a file for reading or " +"writing, you can usually just provide the Unicode string as the filename, " +"and it will be automatically converted to the right encoding for you::" +msgstr "" + +msgid "" +"Functions in the :mod:`os` module such as :func:`os.stat` will also accept " +"Unicode filenames." +msgstr "" + +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, " +"assuming the default :term:`filesystem encoding ` is UTF-8, running the following program::" +msgstr "" + +msgid "will produce the following output:" +msgstr "" + +msgid "" +"The first list contains UTF-8-encoded filenames, and the second list " +"contains the Unicode versions." +msgstr "" + +msgid "" +"Note that on most occasions, you should can just stick with using Unicode " +"with these APIs. The bytes APIs should only be used on systems where " +"undecodable file names can be present; that's pretty much only Unix systems " +"now." +msgstr "" + +msgid "Tips for Writing Unicode-aware Programs" +msgstr "" + +msgid "" +"This section provides some suggestions on writing software that deals with " +"Unicode." +msgstr "" + +msgid "The most important tip is:" +msgstr "" + +msgid "" +"Software should only work with Unicode strings internally, decoding the " +"input data as soon as possible and encoding the output only at the end." +msgstr "" + +msgid "" +"If you attempt to write processing functions that accept both Unicode and " +"byte strings, you will find your program vulnerable to bugs wherever you " +"combine the two different kinds of strings. There is no automatic encoding " +"or decoding: if you do e.g. ``str + bytes``, a :exc:`TypeError` will be " +"raised." +msgstr "" + +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 " +"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 " +"true if the input data also specifies the encoding, since the attacker can " +"then choose a clever way to hide malicious text in the encoded bytestream." +msgstr "" + +msgid "Converting Between File Encodings" +msgstr "" + +msgid "" +"The :class:`~codecs.StreamRecoder` class can transparently convert between " +"encodings, taking a stream that returns data in encoding #1 and behaving " +"like a stream returning data in encoding #2." +msgstr "" + +msgid "" +"For example, if you have an input file *f* that's in Latin-1, you can wrap " +"it with a :class:`~codecs.StreamRecoder` to return bytes encoded in UTF-8::" +msgstr "" + +msgid "Files in an Unknown Encoding" +msgstr "" + +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 " +"``surrogateescape`` error handler::" +msgstr "" + +msgid "" +"The ``surrogateescape`` error handler will decode any non-ASCII bytes as " +"code points in a special range running from U+DC80 to U+DCFF. These code " +"points will then turn back into the same bytes when the ``surrogateescape`` " +"error handler is used to encode the data and write it back out." +msgstr "" + +msgid "" +"One section of `Mastering Python 3 Input/Output `_, a PyCon 2010 talk by David " +"Beazley, discusses text processing and binary data handling." +msgstr "" + +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 " +"application. These slides cover Python 2.x only." +msgstr "" + +msgid "" +"`The Guts of Unicode in Python `_ is a PyCon 2013 talk by Benjamin Peterson that " +"discusses the internal Unicode representation in Python 3.3." +msgstr "" + +msgid "Acknowledgements" +msgstr "" + +msgid "" +"The initial draft of this document was written by Andrew Kuchling. It has " +"since been revised further by Alexander Belopolsky, Georg Brandl, Andrew " +"Kuchling, and Ezio Melotti." +msgstr "" + +msgid "" +"Thanks to the following people who have noted errors or offered suggestions " +"on this article: Éric Araujo, Nicholas Bastin, Nick Coghlan, Marius " +"Gedminas, Kent Johnson, Ken Krugler, Marc-André Lemburg, Martin von Löwis, " +"Terry J. Reedy, Serhiy Storchaka, Eryk Sun, Chad Whitacre, Graham Wideman." +msgstr "" diff --git a/howto/urllib2.po b/howto/urllib2.po index aa613ffe93..6c31f57de0 100644 --- a/howto/urllib2.po +++ b/howto/urllib2.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "HOWTO Fetch Internet Resources Using The urllib Package" msgstr "" @@ -36,8 +34,8 @@ msgstr "" msgid "" "There is a French translation of an earlier revision of this HOWTO, " -"available at `urllib2 - Le Manuel manquant `_." msgstr "" @@ -50,8 +48,8 @@ msgid "" msgstr "" msgid "" -"`Basic Authentication `_" +"`Basic Authentication `_" msgstr "" msgid "A tutorial on *Basic Authentication*, with examples in Python." @@ -93,8 +91,8 @@ msgstr "" 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 "" msgid "" @@ -123,12 +121,12 @@ 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 about the " -"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 "" msgid "Data" -msgstr "" +msgstr "Dane" msgid "" "Sometimes you want to send data to a URL (often the URL will refer to a CGI " @@ -199,8 +197,8 @@ msgstr "Obsługa wyjątków" 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)." +"usual with Python APIs, built-in exceptions such " +"as :exc:`ValueError`, :exc:`TypeError` etc. may also be raised)." msgstr "" msgid "" @@ -212,7 +210,7 @@ msgid "The exception classes are exported from the :mod:`urllib.error` module." msgstr "" msgid "URLError" -msgstr "" +msgstr "URLError" msgid "" "Often, URLError is raised because there is no network connection (no route " @@ -225,7 +223,7 @@ msgid "e.g. ::" msgstr "" msgid "HTTPError" -msgstr "" +msgstr "HTTPError" msgid "" "Every HTTP response from the server contains a numeric \"status code\". " @@ -234,8 +232,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 "" msgid "" @@ -294,8 +292,8 @@ msgstr "" 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 "" msgid "" @@ -307,8 +305,8 @@ msgstr "" 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 "" msgid "" @@ -338,8 +336,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -422,10 +420,10 @@ msgstr "" 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 "" @@ -444,8 +442,8 @@ msgstr "" 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 "" msgid "" @@ -465,9 +463,9 @@ 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 ::" +"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 "" msgid "Footnotes" diff --git a/install/index.po b/install/index.po index 5da1fa8303..285d70dd4a 100644 --- a/install/index.po +++ b/install/index.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:53+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Installing Python Modules (Legacy version)" msgstr "" @@ -41,7 +40,7 @@ msgid "" msgstr "" msgid ":ref:`installing-index`" -msgstr "" +msgstr ":ref:`installing-index`" msgid "" "The up to date module installation documentation. For regular Python usage, " @@ -101,18 +100,19 @@ 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 " "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 "" 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 "" msgid "" @@ -147,9 +147,9 @@ 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::" +"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 "" msgid "Splitting the job up" @@ -190,10 +190,11 @@ msgstr "" 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 "" msgid "" @@ -211,11 +212,11 @@ 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 "" msgid "" @@ -229,10 +230,10 @@ msgstr "" 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 "" msgid "" @@ -246,7 +247,7 @@ msgid "" msgstr "" msgid "Platform" -msgstr "" +msgstr "Platforma" msgid "Standard installation location" msgstr "" @@ -261,7 +262,7 @@ msgid "Unix (pure)" msgstr "" msgid ":file:`{prefix}/lib/python{X.Y}/site-packages`" -msgstr "" +msgstr ":file:`{prefix}/lib/python{X.Y}/site-packages`" msgid ":file:`/usr/local/lib/python{X.Y}/site-packages`" msgstr "" @@ -276,10 +277,10 @@ msgid ":file:`{exec-prefix}/lib/python{X.Y}/site-packages`" msgstr "" msgid "Windows" -msgstr "" +msgstr "Windows" msgid ":file:`{prefix}\\\\Lib\\\\site-packages`" -msgstr "" +msgstr ":file:`{prefix}\\\\Lib\\\\site-packages`" msgid ":file:`C:\\\\Python{XY}\\\\Lib\\\\site-packages`" msgstr "" @@ -299,22 +300,22 @@ msgid "" msgstr "" 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 "" 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 " -"macOS. 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}`:" +"macOS. 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 "" msgid "" @@ -378,8 +379,8 @@ msgstr "" 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 macOS:" +"modules and extension modules in the same location (also known " +"as :data:`site.USER_SITE`). Here are the values for UNIX, including macOS:" msgstr "" msgid "Type of file" @@ -392,19 +393,19 @@ msgid "modules" msgstr "" msgid ":file:`{userbase}/lib/python{X.Y}/site-packages`" -msgstr "" +msgstr ":file:`{userbase}/lib/python{X.Y}/site-packages`" msgid "scripts" msgstr "" msgid ":file:`{userbase}/bin`" -msgstr "" +msgstr ":file:`{userbase}/bin`" msgid "data" msgstr "" msgid ":file:`{userbase}`" -msgstr "" +msgstr ":file:`{userbase}`" msgid "C headers" msgstr "" @@ -416,10 +417,10 @@ msgid "And here are the values used on Windows:" msgstr "" msgid ":file:`{userbase}\\\\Python{XY}\\\\site-packages`" -msgstr "" +msgstr ":file:`{userbase}\\\\Python{XY}\\\\site-packages`" msgid ":file:`{userbase}\\\\Python{XY}\\\\Scripts`" -msgstr "" +msgstr ":file:`{userbase}\\\\Python{XY}\\\\Scripts`" msgid ":file:`{userbase}\\\\Python{XY}\\\\Include\\\\{distname}`" msgstr "" @@ -428,15 +429,15 @@ 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 "" 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 "" msgid "Alternate installation: the home scheme" @@ -446,8 +447,8 @@ 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 " +"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 "" @@ -456,15 +457,15 @@ msgstr "" 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 "" 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 "" msgid "" @@ -474,13 +475,13 @@ msgid "" msgstr "" msgid ":file:`{home}/lib/python`" -msgstr "" +msgstr ":file:`{home}/lib/python`" msgid ":file:`{home}/bin`" -msgstr "" +msgstr ":file:`{home}/bin`" msgid ":file:`{home}`" -msgstr "" +msgstr ":file:`{home}`" msgid ":file:`{home}/include/python/{distname}`" msgstr "" @@ -536,10 +537,10 @@ msgid "extension modules" msgstr "" msgid ":file:`{prefix}/bin`" -msgstr "" +msgstr ":file:`{prefix}/bin`" msgid ":file:`{prefix}`" -msgstr "" +msgstr ":file:`{prefix}`" msgid ":file:`{prefix}/include/python{X.Y}{abiflags}/{distname}`" msgstr "" @@ -553,9 +554,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 "" @@ -578,9 +579,9 @@ msgstr "" 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 "" msgid "" @@ -589,14 +590,14 @@ msgid "" msgstr "" msgid "" -"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:" +"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 "" msgid ":file:`{prefix}\\\\Scripts`" -msgstr "" +msgstr ":file:`{prefix}\\\\Scripts`" msgid ":file:`{prefix}\\\\Include\\\\{distname}`" msgstr "" @@ -605,10 +606,10 @@ msgid "Custom Installation" msgstr "" 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 " -"just one or two directories while keeping everything under the same base " -"directory, or you might want to completely redefine the installation " +"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*." msgstr "" @@ -679,10 +680,10 @@ msgstr "" 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 " -"installation directory---you just have to remember that there are two types " -"of modules to worry about, Python and extension modules, which can " +"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::" msgstr "" @@ -771,10 +772,10 @@ 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." +"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 "" msgid "" @@ -789,16 +790,16 @@ msgstr "" 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 "" 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 " -"simply edit :file:`site.py` and add two lines to it:" +"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 "" msgid "" @@ -809,20 +810,20 @@ msgid "" msgstr "" 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 "" 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.)" +"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 "" msgid "" @@ -900,16 +901,16 @@ msgstr "" 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 " +"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 "" 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 "" msgid "" @@ -928,10 +929,10 @@ msgid "" msgstr "" 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 " -"Distutils." +"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 "" msgid "Syntax of config files" @@ -960,8 +961,8 @@ msgid "" msgstr "" 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 "" @@ -977,13 +978,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -1075,11 +1076,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 "" msgid "" @@ -1100,13 +1101,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 "" 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 "" @@ -1144,8 +1146,8 @@ msgid "" msgstr "" msgid "" -"`Creating Python Extensions Using Borland's Free Compiler `_" +"`Creating Python Extensions Using Borland's Free Compiler `_" msgstr "" msgid "" @@ -1211,9 +1213,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1223,8 +1225,8 @@ msgid "" msgstr "" msgid "" -"`Building Python modules on MS Windows platform with MinGW `_" +"`Building Python modules on MS Windows platform with MinGW `_" msgstr "" msgid "" @@ -1243,6 +1245,6 @@ msgid "Check https://www.sourceware.org/cygwin/ for more information" msgstr "" 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 da32ee2580..57dbae1173 100644 --- a/installing/index.po +++ b/installing/index.po @@ -1,28 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Wierzbicki , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Krzysztof Wierzbicki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Installing Python Modules" msgstr "Instalacja modułów Pythona" @@ -56,8 +56,8 @@ msgstr "" 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 "" "Ta część przewodnika dotyczy procesu instalacji. O tworzeniu i dzieleniu się " "własnymi projektami w Pythonie przeczytasz więcej w :ref:`Przewodniku " @@ -116,6 +116,9 @@ msgid "" "The `Python Package Index `__ is a public repository of " "open source licensed packages made available for use by other Python users." msgstr "" +"`Python Package Index `__ jest publicznym repozytorium " +"paczek z licencją open-source, udostępnionych do wykorzystania przez innych " +"użytkowników Pythona." msgid "" "the `Python Packaging Authority `__ is the group of " @@ -134,23 +137,36 @@ msgid "" "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 "" +"``distutils`` to oryginalny system kompilacji i dystrybucji po raz pierwszy " +"dodany do biblioteki standardowej Pythona w 1998 roku. Podczas gdy " +"bezpośrednie korzystanie z ``distutils`` jest stopniowo wycofywane, nadal " +"stanowi podstawę dla obecnej infrastruktury pakowania i dystrybucji, i nie " +"tylko pozostaje częścią biblioteki standardowej, ale jego nazwa żyje na inne " +"sposoby (takie jak nazwa listy mailingowej używanej do koordynowania rozwoju " +"standardów pakowania Python)." msgid "" "The use of ``venv`` is now recommended for creating virtual environments." msgstr "" +"Korzystanie z ``venv`` jest obecnie zalecane do tworzenia środowisk " +"wirtualnych." msgid "" "`Python Packaging User Guide: Creating and using virtual environments " "`__" msgstr "" +"`Python Packaging User Guide: Creating and using virtual environments " +"`__" msgid "Basic usage" -msgstr "" +msgstr "Podstawowe użycie" msgid "" "The standard packaging tools are all designed to be used from the command " "line." msgstr "" +"Wszystkie standardowe narzędzia do pakowania są przeznaczone do użycia z " +"wiersza poleceń." msgid "" "The following command will install the latest version of a module and its " @@ -161,12 +177,18 @@ msgid "" "For POSIX users (including macOS and Linux users), the examples in this " "guide assume the use of a :term:`virtual environment`." msgstr "" +"W przypadku użytkowników systemu POSIX (w tym użytkowników systemów macOS i " +"Linux) przykłady zawarte w niniejszym przewodniku zakładają korzystanie " +"z :term:`środowisko wirtualne`." msgid "" "For Windows users, the examples in this guide assume that the option to " "adjust the system PATH environment variable was selected when installing " "Python." msgstr "" +"W przypadku użytkowników systemu Windows przykłady zawarte w niniejszym " +"przewodniku zakładają, że podczas instalacji Pythona wybrano opcję " +"dostosowania systemowej zmiennej środowiskowej PATH." msgid "" "It's also possible to specify an exact or minimum version directly on the " @@ -174,12 +196,19 @@ msgid "" "other special character which get interpreted by shell, the package name and " "the version should be enclosed within double quotes::" msgstr "" +"Można również podać dokładną lub minimalną wersję bezpośrednio w wierszu " +"poleceń. W przypadku stosowania operatorów porównania, takich jak ``>``, " +"``<`` lub innych znaków specjalnych, które są interpretowane przez powłokę, " +"nazwa pakietu oraz wersja powinny być ujęte w podwójne cudzysłowy::" msgid "" "Normally, if a suitable module is already installed, attempting to install " "it again will have no effect. Upgrading existing modules must be requested " "explicitly::" msgstr "" +"Zazwyczaj, jeśli odpowiedni moduł jest już zainstalowany, próba ponownej " +"instalacji nie przyniesie żadnego efektu. Aby zaktualizować istniejący " +"moduł, należy wyraźnie zgłosić taką prośbę::" msgid "" "More information and resources regarding ``pip`` and its capabilities can be " @@ -196,15 +225,18 @@ msgid "" "`Python Packaging User Guide: Installing Python Distribution Packages " "`__" msgstr "" +"`Python Packaging User Guide: Installing Python Distribution Packages " +"`__" msgid "How do I ...?" -msgstr "" +msgstr "Jak ...?" msgid "These are quick answers or links for some common tasks." -msgstr "" +msgstr "Są to szybkie odpowiedzi lub linki do niektórych typowych zadań." msgid "... install ``pip`` in versions of Python prior to Python 3.4?" msgstr "" +"... zainstalować ``pip`` w wersjach Python wcześniejszych niż Python 3.4?" msgid "" "Python only started bundling ``pip`` with Python 3.4. For earlier versions, " @@ -218,15 +250,18 @@ msgid "" msgstr "" msgid "... install packages just for the current user?" -msgstr "" +msgstr "... zainstalować pakiety tylko dla bieżącego użytkownika?" msgid "" "Passing the ``--user`` option to ``python -m pip install`` will install a " "package just for the current user, rather than for all users of the system." msgstr "" +"Przekazanie opcji ``--user`` do polecenia ``python -m pip install`` " +"zainstaluje pakiet wyłącznie dla bieżącego użytkownika, a nie dla wszystkich " +"użytkowników systemu." msgid "... install scientific Python packages?" -msgstr "" +msgstr "... zainstalować naukowe pakiety Pythona?" msgid "" "A number of scientific Python packages have complex binary dependencies, and " @@ -240,9 +275,11 @@ msgid "" "`Python Packaging User Guide: Installing Scientific Packages `__" msgstr "" +"`Python Packaging User Guide: Installing Scientific Packages `__" msgid "... work with multiple versions of Python installed in parallel?" -msgstr "" +msgstr "... pracować z wieloma wersjami Pythona zainstalowanymi równolegle?" msgid "" "On Linux, macOS, and other POSIX systems, use the versioned Python commands " @@ -262,7 +299,7 @@ msgid "Common installation issues" msgstr "" msgid "Installing into the system Python on Linux" -msgstr "" +msgstr "Instalacja w Pythonie systemowym w systemie Linux" msgid "" "On Linux systems, a Python installation will typically be included as part " @@ -286,9 +323,9 @@ msgid "" msgstr "" msgid "" -"There are also additional resources for `installing pip. `__" +"There are also additional resources for `installing pip. `__" msgstr "" msgid "Installing binary extensions" @@ -309,13 +346,15 @@ msgid "" msgstr "" 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 "" msgid "" -"`Python Packaging User Guide: Binary Extensions `__" +"`Python Packaging User Guide: Binary Extensions `__" msgstr "" +"` Python Packaging User Guide: Rozszerzenia binarne `__" diff --git a/language-switcher-progress.svg b/language-switcher-progress.svg index 854465e9c5..32eb4c5246 100644 --- a/language-switcher-progress.svg +++ b/language-switcher-progress.svg @@ -6,11 +6,11 @@ - 2022-11-04T23:58:03.401105 + 2025-09-20T12:56:36.196078 image/svg+xml - Matplotlib v3.6.2, https://matplotlib.org/ + Matplotlib v3.10.6, https://matplotlib.org/ @@ -40,23 +40,23 @@ z - + - - + - - + + - - - - - - - - + + + - + - + - - + + - - - - - - - + + + - + - + - - - - - + + - - - - - - + + + - + - + - - + + + + + - - - - - - + + + - + - + - - + + + + + - - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - + + + - + +" clip-path="url(#p90957f4422)" style="fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square"/> - + - - + - - - + + + - - - - + - - + + - + - + - - - - - - - - + + + + + + - - + + - + - + - - - - - - - - + + + + + + - - + + - + - + - - - + + + - - - - - - + + + - - + + - + - + - - - + + + - - - - - - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1361,7 +1535,7 @@ L 414.72 41.472 - + diff --git a/library/__future__.po b/library/__future__.po new file mode 100644 index 0000000000..f494797a7d --- /dev/null +++ b/library/__future__.po @@ -0,0 +1,223 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`__future__` --- Future statement definitions" +msgstr "" + +msgid "**Source code:** :source:`Lib/__future__.py`" +msgstr "**Kod źródłowy:** :source:`Lib/__future__.py`" + +msgid ":mod:`__future__` is a real module, and serves three purposes:" +msgstr "" + +msgid "" +"To avoid confusing existing tools that analyze import statements and expect " +"to find the modules they're importing." +msgstr "" +"Aby uniknąć pomyłek z istniejącymi narzędziami, które analizują instrukcje " +"importowania i oczekują znalezienia modułów, które importują." + +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)." +msgstr "" + +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." +msgstr "" + +msgid "Each statement in :file:`__future__.py` is of the form::" +msgstr "" + +msgid "" +"where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both " +"are 5-tuples of the same form as :data:`sys.version_info`::" +msgstr "" + +msgid "" +"*OptionalRelease* records the first release in which the feature was " +"accepted." +msgstr "" + +msgid "" +"In the case of a *MandatoryRelease* that has not yet occurred, " +"*MandatoryRelease* predicts the release in which the feature will become " +"part of the language." +msgstr "" + +msgid "" +"Else *MandatoryRelease* records when the feature became part of the " +"language; in releases at or after that, modules no longer need a future " +"statement to use the feature in question, but may continue to use such " +"imports." +msgstr "" + +msgid "" +"*MandatoryRelease* may also be ``None``, meaning that a planned feature got " +"dropped." +msgstr "" + +msgid "" +"Instances of class :class:`_Feature` have two corresponding " +"methods, :meth:`getOptionalRelease` and :meth:`getMandatoryRelease`." +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." +msgstr "" + +msgid "" +"No feature description will ever be deleted from :mod:`__future__`. Since " +"its introduction in Python 2.1 the following features have found their way " +"into the language using this mechanism:" +msgstr "" + +msgid "feature" +msgstr "cecha" + +msgid "optional in" +msgstr "opcjonalne w" + +msgid "mandatory in" +msgstr "obowiązkowe w" + +msgid "effect" +msgstr "" + +msgid "nested_scopes" +msgstr "nested_scopes" + +msgid "2.1.0b1" +msgstr "2.1.0b1" + +msgid "2.2" +msgstr "2.2" + +msgid ":pep:`227`: *Statically Nested Scopes*" +msgstr "" + +msgid "generators" +msgstr "generatory" + +msgid "2.2.0a1" +msgstr "2.2.0a1" + +msgid "2.3" +msgstr "2.3" + +msgid ":pep:`255`: *Simple Generators*" +msgstr "" + +msgid "division" +msgstr "podział" + +msgid "2.2.0a2" +msgstr "2.2.0a2" + +msgid "3.0" +msgstr "3.0" + +msgid ":pep:`238`: *Changing the Division Operator*" +msgstr ":pep:`238`: *Zmiana operatora podziału*" + +msgid "absolute_import" +msgstr "absolute_import" + +msgid "2.5.0a1" +msgstr "2.5.0a1" + +msgid ":pep:`328`: *Imports: Multi-Line and Absolute/Relative*" +msgstr "" + +msgid "with_statement" +msgstr "with_statement" + +msgid "2.6" +msgstr "2.6" + +msgid ":pep:`343`: *The \"with\" Statement*" +msgstr "" + +msgid "print_function" +msgstr "print_function" + +msgid "2.6.0a2" +msgstr "2.6.0a2" + +msgid ":pep:`3105`: *Make print a function*" +msgstr "" + +msgid "unicode_literals" +msgstr "unicode_literals" + +msgid ":pep:`3112`: *Bytes literals in Python 3000*" +msgstr "" + +msgid "generator_stop" +msgstr "generator_stop" + +msgid "3.5.0b1" +msgstr "3.5.0b1" + +msgid "3.7" +msgstr "3.7" + +msgid ":pep:`479`: *StopIteration handling inside generators*" +msgstr "" + +msgid "annotations" +msgstr "adnotacje typów" + +msgid "3.7.0b1" +msgstr "3.7.0b1" + +msgid "TBD [1]_" +msgstr "TBD [1]_" + +msgid ":pep:`563`: *Postponed evaluation of annotations*" +msgstr "" + +msgid "" +"``from __future__ import annotations`` was previously scheduled to become " +"mandatory in Python 3.10, but the Python Steering Council twice decided to " +"delay the change (`announcement for Python 3.10 `__; `announcement for Python 3.11 `__). No " +"final decision has been made yet. See also :pep:`563` and :pep:`649`." +msgstr "" + +msgid ":ref:`future`" +msgstr ":ref:`future`" + +msgid "How the compiler treats future imports." +msgstr "Jak kompilator traktuje przyszłe importy." diff --git a/library/__main__.po b/library/__main__.po new file mode 100644 index 0000000000..cca74ded89 --- /dev/null +++ b/library/__main__.po @@ -0,0 +1,317 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`__main__` --- Top-level code environment" +msgstr "" + +msgid "" +"In Python, the special name ``__main__`` is used for two important " +"constructs:" +msgstr "" + +msgid "" +"the name of the top-level environment of the program, which can be checked " +"using the ``__name__ == '__main__'`` expression; and" +msgstr "" + +msgid "the ``__main__.py`` file in Python packages." +msgstr "" + +msgid "" +"Both of these mechanisms are related to Python modules; how users interact " +"with them and how they interact with each other. They are explained in " +"detail below. If you're new to Python modules, see the tutorial " +"section :ref:`tut-modules` for an introduction." +msgstr "" + +msgid "``__name__ == '__main__'``" +msgstr "``__name__ == '__main__'``" + +msgid "" +"When a Python module or package is imported, ``__name__`` is set to the " +"module's name. Usually, this is the name of the Python file itself without " +"the ``.py`` extension::" +msgstr "" + +msgid "" +"If the file is part of a package, ``__name__`` will also include the parent " +"package's path::" +msgstr "" + +msgid "" +"However, if the module is executed in the top-level code environment, its " +"``__name__`` is set to the string ``'__main__'``." +msgstr "" + +msgid "What is the \"top-level code environment\"?" +msgstr "" + +msgid "" +"``__main__`` is the name of the environment where top-level code is run. " +"\"Top-level code\" is the first user-specified Python module that starts " +"running. It's \"top-level\" because it imports all other modules that the " +"program needs. Sometimes \"top-level code\" is called an *entry point* to " +"the application." +msgstr "" + +msgid "The top-level code environment can be:" +msgstr "" + +msgid "the scope of an interactive prompt::" +msgstr "" + +msgid "the Python module passed to the Python interpreter as a file argument:" +msgstr "" + +msgid "" +"the Python module or package passed to the Python interpreter with " +"the :option:`-m` argument:" +msgstr "" + +msgid "Python code read by the Python interpreter from standard input:" +msgstr "" + +msgid "" +"Python code passed to the Python interpreter with the :option:`-c` argument:" +msgstr "" + +msgid "" +"In each of these situations, the top-level module's ``__name__`` is set to " +"``'__main__'``." +msgstr "" + +msgid "" +"As a result, a module can discover whether or not it is running in the top-" +"level environment by checking its own ``__name__``, which allows a common " +"idiom for conditionally executing code when the module is not initialized " +"from an import statement::" +msgstr "" + +msgid "" +"For a more detailed look at how ``__name__`` is set in all situations, see " +"the tutorial section :ref:`tut-modules`." +msgstr "" + +msgid "Idiomatic Usage" +msgstr "" + +msgid "" +"Some modules contain code that is intended for script use only, like parsing " +"command-line arguments or fetching data from standard input. If a module " +"like this was imported from a different module, for example to unit test it, " +"the script code would unintentionally execute as well." +msgstr "" + +msgid "" +"This is where using the ``if __name__ == '__main__'`` code block comes in " +"handy. Code within this block won't run unless the module is executed in the " +"top-level environment." +msgstr "" + +msgid "" +"Putting as few statements as possible in the block below ``if __name___ == " +"'__main__'`` can improve code clarity and correctness. Most often, a " +"function named ``main`` encapsulates the program's primary behavior::" +msgstr "" + +msgid "" +"Note that if the module didn't encapsulate code inside the ``main`` function " +"but instead put it directly within the ``if __name__ == '__main__'`` block, " +"the ``phrase`` variable would be global to the entire module. This is error-" +"prone as other functions within the module could be unintentionally using " +"the global variable instead of a local name. A ``main`` function solves " +"this problem." +msgstr "" + +msgid "" +"Using a ``main`` function has the added benefit of the ``echo`` function " +"itself being isolated and importable elsewhere. When ``echo.py`` is " +"imported, the ``echo`` and ``main`` functions will be defined, but neither " +"of them will be called, because ``__name__ != '__main__'``." +msgstr "" + +msgid "Packaging Considerations" +msgstr "" + +msgid "" +"``main`` functions are often used to create command-line tools by specifying " +"them as entry points for console scripts. When this is done, `pip `_ inserts the function call into a template script, where the " +"return value of ``main`` is passed into :func:`sys.exit`. For example::" +msgstr "" + +msgid "" +"Since the call to ``main`` is wrapped in :func:`sys.exit`, the expectation " +"is that your function will return some value acceptable as an input " +"to :func:`sys.exit`; typically, an integer or ``None`` (which is implicitly " +"returned if your function does not have a return statement)." +msgstr "" + +msgid "" +"By proactively following this convention ourselves, our module will have the " +"same behavior when run directly (i.e. ``python3 echo.py``) as it will have " +"if we later package it as a console script entry-point in a pip-installable " +"package." +msgstr "" + +msgid "" +"In particular, be careful about returning strings from your ``main`` " +"function. :func:`sys.exit` will interpret a string argument as a failure " +"message, so your program will have an exit code of ``1``, indicating " +"failure, and the string will be written to :data:`sys.stderr`. The " +"``echo.py`` example from earlier exemplifies using the ``sys.exit(main())`` " +"convention." +msgstr "" + +msgid "" +"`Python Packaging User Guide `_ contains a " +"collection of tutorials and references on how to distribute and install " +"Python packages with modern tools." +msgstr "" + +msgid "``__main__.py`` in Python Packages" +msgstr "" + +msgid "" +"If you are not familiar with Python packages, see section :ref:`tut-" +"packages` of the tutorial. Most commonly, the ``__main__.py`` file is used " +"to provide a command-line interface for a package. Consider the following " +"hypothetical package, \"bandclass\":" +msgstr "" + +msgid "" +"``__main__.py`` will be executed when the package itself is invoked directly " +"from the command line using the :option:`-m` flag. For example:" +msgstr "" + +msgid "" +"This command will cause ``__main__.py`` to run. How you utilize this " +"mechanism will depend on the nature of the package you are writing, but in " +"this hypothetical case, it might make sense to allow the teacher to search " +"for students::" +msgstr "" + +msgid "" +"Note that ``from .student import search_students`` is an example of a " +"relative import. This import style can be used when referencing modules " +"within a package. For more details, see :ref:`intra-package-references` in " +"the :ref:`tut-modules` section of the tutorial." +msgstr "" + +msgid "" +"The contents of ``__main__.py`` typically isn't fenced with ``if __name__ == " +"'__main__'`` blocks. Instead, those files are kept short, functions to " +"execute from other modules. Those other modules can then be easily unit-" +"tested and are properly reusable." +msgstr "" + +msgid "" +"If used, an ``if __name__ == '__main__'`` block will still work as expected " +"for a ``__main__.py`` file within a package, because its ``__name__`` " +"attribute will include the package's path if imported::" +msgstr "" + +msgid "" +"This won't work for ``__main__.py`` files in the root directory of a .zip " +"file though. Hence, for consistency, minimal ``__main__.py`` like " +"the :mod:`venv` one mentioned below are preferred." +msgstr "" + +msgid "" +"See :mod:`venv` for an example of a package with a minimal ``__main__.py`` " +"in the standard library. It doesn't contain a ``if __name__ == '__main__'`` " +"block. You can invoke it with ``python -m venv [directory]``." +msgstr "" + +msgid "" +"See :mod:`runpy` for more details on the :option:`-m` flag to the " +"interpreter executable." +msgstr "" + +msgid "" +"See :mod:`zipapp` for how to run applications packaged as *.zip* files. In " +"this case Python looks for a ``__main__.py`` file in the root directory of " +"the archive." +msgstr "" + +msgid "``import __main__``" +msgstr "``import __main__``" + +msgid "" +"Regardless of which module a Python program was started with, other modules " +"running within that same program can import the top-level environment's " +"scope (:term:`namespace`) by importing the ``__main__`` module. This " +"doesn't import a ``__main__.py`` file but rather whichever module that " +"received the special name ``'__main__'``." +msgstr "" + +msgid "Here is an example module that consumes the ``__main__`` namespace::" +msgstr "" + +msgid "Example usage of this module could be as follows::" +msgstr "" + +msgid "Now, if we started our program, the result would look like this:" +msgstr "" + +msgid "" +"The exit code of the program would be 1, indicating an error. Uncommenting " +"the line with ``my_name = \"Dinsdale\"`` fixes the program and now it exits " +"with status code 0, indicating success:" +msgstr "" + +msgid "" +"Note that importing ``__main__`` doesn't cause any issues with " +"unintentionally running top-level code meant for script use which is put in " +"the ``if __name__ == \"__main__\"`` block of the ``start`` module. Why does " +"this work?" +msgstr "" + +msgid "" +"Python inserts an empty ``__main__`` module in :attr:`sys.modules` at " +"interpreter startup, and populates it by running top-level code. In our " +"example this is the ``start`` module which runs line by line and imports " +"``namely``. In turn, ``namely`` imports ``__main__`` (which is really " +"``start``). That's an import cycle! Fortunately, since the partially " +"populated ``__main__`` module is present in :attr:`sys.modules`, Python " +"passes that to ``namely``. See :ref:`Special considerations for __main__ " +"` in the import system's reference for details on how " +"this works." +msgstr "" + +msgid "" +"The Python REPL is another example of a \"top-level environment\", so " +"anything defined in the REPL becomes part of the ``__main__`` scope::" +msgstr "" + +msgid "" +"Note that in this case the ``__main__`` scope doesn't contain a ``__file__`` " +"attribute as it's interactive." +msgstr "" + +msgid "" +"The ``__main__`` scope is used in the implementation of :mod:`pdb` " +"and :mod:`rlcompleter`." +msgstr "" diff --git a/library/abc.po b/library/abc.po index 7e077109e5..58a5e682bd 100644 --- a/library/abc.po +++ b/library/abc.po @@ -1,47 +1,48 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`abc` --- Abstract Base Classes" -msgstr "moduł :mod:`abc` --- abstrakcyjne podstawowe uogólnienia " +msgstr ":mod:`abc` --- abstrakcyjne klasy bazowe" msgid "**Source code:** :source:`Lib/abc.py`" -msgstr "" +msgstr "**Kod źródłowy:**. :source:`Lib/abc.py`" 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.)" +"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 "" 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 :term:`hashable` or if it is a mapping." msgstr "" msgid "" @@ -85,12 +86,12 @@ msgstr "" "(nawet wbudowane uogólnienia) i niezwiązane abstrakcyjne uogólnienia " "podstawowe jako \"sztuczne podrzędne uogólnienia\" -- te uogólnienia i " "pochodne po nich będą uznawane za podrzędne uogólnienia rejestrowanego " -"uogólnienia podstawowego abstrakcyjnego przez wbudowane zadanie :func:" -"`issubclass`, ale rejestrowanie abstrakcyjnego uogólnienia bazowego nie " -"pokaże się w ich sposobie rozwiązywania sposobów postępowania (w skr. MRO - " -"z ang. - Method Resolution Order) ani też wypełnienia sposobów postępowania " -"określone przez rejestrowanie abstrakcyjnych bazowych uogólnień nie będą " -"wywoływalne (nawet nie przez użycie :func:`super`). [#]_" +"uogólnienia podstawowego abstrakcyjnego przez wbudowane " +"zadanie :func:`issubclass`, ale rejestrowanie abstrakcyjnego uogólnienia " +"bazowego nie pokaże się w ich sposobie rozwiązywania sposobów postępowania " +"(w skr. MRO - z ang. - Method Resolution Order) ani też wypełnienia sposobów " +"postępowania określone przez rejestrowanie abstrakcyjnych bazowych uogólnień " +"nie będą wywoływalne (nawet nie przez użycie :func:`super`). [#]_" msgid "" "Classes created with a metaclass of :class:`ABCMeta` have the following " @@ -133,8 +134,9 @@ msgstr "" "zachowanie ``issubclass``, dalej bez konieczności wzywania sposobu " "postępowania :meth:`register` w każdym uogólnieniu które chcesz uważać za " "podrzędne uogólnienie względem tego abstrakcyjnego uogólnienia podstawowego. " -"(Ten sposób postępowania uogólnienia jest wzywany ze sposobu postępowania :" -"meth:`__subclasscheck__` tego abstrakcyjnego uogólnienia podstawowego.)" +"(Ten sposób postępowania uogólnienia jest wzywany ze sposobu " +"postępowania :meth:`__subclasscheck__` tego abstrakcyjnego uogólnienia " +"podstawowego.)" msgid "" "This method should return ``True``, ``False`` or ``NotImplemented``. If it " @@ -159,25 +161,27 @@ msgstr "" "abstrakcyjnego uogólnienia podstawowego::" 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 "" 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 "" 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`` " +"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 "" @@ -189,20 +193,20 @@ msgstr "Dekorator wskazujący abstrakcyjne sposoby postępowania." 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." +"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 "" 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 only " -"supported using the :func:`update_abstractmethods` function. The :func:" -"`abstractmethod` only affects subclasses derived using regular inheritance; " -"\"virtual subclasses\" registered with the ABC's :meth:`register` method are " -"not affected." +"supported using the :func:`update_abstractmethods` function. " +"The :func:`abstractmethod` only affects subclasses derived using regular " +"inheritance; \"virtual subclasses\" registered with the " +"ABC's :meth:`register` method are not affected." msgstr "" msgid "" @@ -213,10 +217,10 @@ msgstr "" 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 "" msgid "" @@ -228,10 +232,10 @@ msgid "" msgstr "" "W przeciwieństwie do abstrakcyjnych sposobów postępowania Javy, te " "abstrakcyjne sposoby postępowania mogą mieć swoje wypełnienie. To " -"wypełnienie może być wzywane przez mechanizm odwołań do zadania :func:" -"`super`, z uogólnienia które przesłania taki sposób postępowania. To może " -"być użyteczne jako punkt końcowy super-wywołania w ramach udogodnienia które " -"używa współpracującego wielokrotnego-dziedziczenia." +"wypełnienie może być wzywane przez mechanizm odwołań do " +"zadania :func:`super`, z uogólnienia które przesłania taki sposób " +"postępowania. To może być użyteczne jako punkt końcowy super-wywołania w " +"ramach udogodnienia które używa współpracującego wielokrotnego-dziedziczenia." msgid "The :mod:`abc` module also supports the following legacy decorators:" msgstr "" @@ -267,9 +271,10 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/argparse.po b/library/argparse.po index 97708e37ec..4599a325f2 100644 --- a/library/argparse.po +++ b/library/argparse.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "" ":mod:`argparse` --- Parser for command-line options, arguments and sub-" @@ -29,144 +29,28 @@ msgid "" msgstr "" msgid "**Source code:** :source:`Lib/argparse.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/argparse.py`" msgid "Tutorial" msgstr "Tutorial" 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 "" 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. " -"The module will also issue errors when users give the program invalid " -"arguments." -msgstr "" - -msgid "Core Functionality" -msgstr "" - -msgid "" -"The :mod:`argparse` module's support for command-line interfaces is built " -"around an instance of :class:`argparse.ArgumentParser`. It is a container " -"for argument specifications and has options that apply the parser as whole::" -msgstr "" - -msgid "" -"The :meth:`ArgumentParser.add_argument` method attaches individual argument " -"specifications to the parser. It supports positional arguments, options " -"that accept values, and on/off flags::" -msgstr "" - -msgid "" -"The :meth:`ArgumentParser.parse_args` method runs the parser and places the " -"extracted data in a :class:`argparse.Namespace` object::" -msgstr "" - -msgid "Quick Links for add_argument()" -msgstr "" - -msgid "Name" -msgstr "Nazwa" - -msgid "Description" -msgstr "Opis" - -msgid "Values" -msgstr "" - -msgid "action_" -msgstr "" - -msgid "Specify how an argument should be handled" -msgstr "" - -msgid "" -"``'store'``, ``'store_const'``, ``'store_true'``, ``'append'``, " -"``'append_const'``, ``'count'``, ``'help'``, ``'version'``" -msgstr "" - -msgid "choices_" -msgstr "" - -msgid "Limit values to a specific set of choices" -msgstr "" - -msgid "" -"``['foo', 'bar']``, ``range(1, 10)``, or :class:`~collections.abc.Container` " -"instance" -msgstr "" - -msgid "const_" -msgstr "" - -msgid "Store a constant value" -msgstr "" - -msgid "default_" -msgstr "" - -msgid "Default value used when an argument is not provided" -msgstr "" - -msgid "Defaults to ``None``" -msgstr "" - -msgid "dest_" -msgstr "" - -msgid "Specify the attribute name used in the result namespace" -msgstr "" - -msgid "help_" -msgstr "" - -msgid "Help message for an argument" -msgstr "" - -msgid "metavar_" -msgstr "" - -msgid "Alternate display name for the argument as shown in help" -msgstr "" - -msgid "nargs_" -msgstr "" - -msgid "Number of times the argument can be used" -msgstr "" - -msgid ":class:`int`, ``'?'``, ``'*'``, ``'+'``, or ``argparse.REMAINDER``" -msgstr "" - -msgid "required_" -msgstr "" - -msgid "Indicate whether an argument is required or optional" -msgstr "" - -msgid "``True`` or ``False``" -msgstr "" - -msgid "type_" -msgstr "" - -msgid "Automatically convert an argument to the given type" -msgstr "" - -msgid "" -":class:`int`, :class:`float`, ``argparse.FileType('w')``, or callable " -"function" +"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 "" msgid "Example" -msgstr "" +msgstr "Przykład" msgid "" "The following code is a Python program that takes a list of integers and " @@ -174,8 +58,8 @@ msgid "" msgstr "" msgid "" -"Assuming the above Python code is saved into a file called ``prog.py``, it " -"can be run at the command line and it provides useful help messages:" +"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 "" msgid "" @@ -183,7 +67,7 @@ msgid "" "of the command-line integers:" msgstr "" -msgid "If invalid arguments are passed in, an error will be displayed:" +msgid "If invalid arguments are passed in, it will issue an error:" msgstr "" msgid "The following sections walk you through this example." @@ -193,8 +77,8 @@ msgid "Creating a parser" msgstr "" 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 "" msgid "" @@ -217,20 +101,21 @@ msgstr "" 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 integers, 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." +"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 "" msgid "Parsing arguments" msgstr "Parsowanie argumentów" 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 "" msgid "" @@ -401,11 +286,11 @@ msgstr "" 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 "" msgid "" @@ -421,7 +306,7 @@ msgid "" msgstr "" msgid "formatter_class" -msgstr "" +msgstr "formatter_class" msgid "" ":class:`ArgumentParser` objects allow the help formatting to be customized " @@ -431,9 +316,9 @@ msgstr "" 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 "" msgid "" @@ -480,18 +365,18 @@ msgid "fromfile_prefix_chars" msgstr "" msgid "" -"Sometimes, when dealing with a particularly long argument list, 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 list, " +"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 "" 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']``." @@ -503,26 +388,27 @@ msgid "" msgstr "" msgid "argument_default" -msgstr "" +msgstr "argument_default" 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 "" msgid "allow_abbrev" msgstr "" 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 "" msgid "This feature can be disabled by setting ``allow_abbrev`` to ``False``::" @@ -568,8 +454,8 @@ msgstr "" 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 "" msgid "" @@ -583,9 +469,9 @@ msgid "exit_on_error" msgstr "" msgid "" -"Normally, when you pass an invalid argument list to the :meth:" -"`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`, it will " -"exit with error info." +"Normally, when you pass an invalid argument list to " +"the :meth:`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`, " +"it will exit with error info." msgstr "" msgid "" @@ -627,7 +513,7 @@ msgid "" "type_ - The type to which the command-line argument should be converted." msgstr "" -msgid "choices_ - A container of the allowable values for the argument." +msgid "choices_ - A sequence of the allowable values for the argument." msgstr "" msgid "" @@ -642,8 +528,8 @@ msgid "metavar_ - A name for the argument in usage messages." msgstr "" 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 "" msgid "name or flags" @@ -652,12 +538,10 @@ 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." -msgstr "" - -msgid "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 "" msgid "while a positional argument could be created like::" @@ -688,9 +572,8 @@ msgstr "" msgid "" "``'store_const'`` - This stores the value specified by the const_ keyword " -"argument; note that the const_ keyword argument defaults to ``None``. The " -"``'store_const'`` action is most commonly used with optional arguments that " -"specify some sort of flag. For example::" +"argument. The ``'store_const'`` action is most commonly used with optional " +"arguments that specify some sort of flag. For example::" msgstr "" msgid "" @@ -702,16 +585,14 @@ msgstr "" msgid "" "``'append'`` - This stores a list, and appends each argument value to the " -"list. It is useful to allow an option to be specified multiple times. If the " -"default value is non-empty, the default elements will be present in the " -"parsed value for the option, with any values from the command line appended " -"after those default values. Example usage::" +"list. This is useful to allow an option to be specified multiple times. " +"Example usage::" msgstr "" 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 " +"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::" msgstr "" @@ -732,9 +613,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -828,10 +709,9 @@ msgstr "" 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. If " -"``const`` is not provided to :meth:`~ArgumentParser.add_argument`, it will " -"receive a default value of ``None``." +"the ``const`` value to one of the attributes of the object returned " +"by :meth:`~ArgumentParser.parse_args`. See the action_ description for " +"examples." msgstr "" msgid "" @@ -840,12 +720,12 @@ msgid "" "argument that can be followed by zero or one command-line arguments. When " "parsing the command line, if the option string is encountered with no " "command-line argument following it, the value of ``const`` will be assumed " -"to be ``None`` instead. See the nargs_ description for examples." +"instead. See the nargs_ description for examples." msgstr "" msgid "" -"``const=None`` by default, including when ``action='append_const'`` or " -"``action='store_const'``." +"With the ``'store_const'`` and ``'append_const'`` actions, the ``const`` " +"keyword argument must be given. For other actions, it defaults to ``None``." msgstr "" msgid "default" @@ -853,11 +733,11 @@ msgstr "" 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 "" msgid "" @@ -868,8 +748,9 @@ msgstr "" 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 "" msgid "" @@ -883,7 +764,7 @@ msgid "" msgstr "" msgid "type" -msgstr "" +msgstr "typ" msgid "" "By default, the parser reads command-line arguments in as simple strings. " @@ -900,9 +781,9 @@ msgstr "" msgid "" "The argument to ``type`` can be any callable that accepts a single string. " -"If the function raises :exc:`ArgumentTypeError`, :exc:`TypeError`, or :exc:" -"`ValueError`, the exception is caught and a nicely formatted error message " -"is displayed. No other exception types are handled." +"If the function raises :exc:`ArgumentTypeError`, :exc:`TypeError`, " +"or :exc:`ValueError`, the exception is caught and a nicely formatted error " +"message is displayed. No other exception types are handled." msgstr "" msgid "Common built-in types and functions can be used as type converters:" @@ -926,9 +807,9 @@ msgstr "" msgid "" "For example, JSON or YAML conversions have complex error cases that require " -"better reporting than can be given by the ``type`` keyword. A :exc:`~json." -"JSONDecodeError` would not be well formatted and a :exc:`FileNotFound` " -"exception would not be handled at all." +"better reporting than can be given by the ``type`` keyword. " +"A :exc:`~json.JSONDecodeError` would not be well formatted and " +"a :exc:`FileNotFound` exception would not be handled at all." msgstr "" msgid "" @@ -949,21 +830,21 @@ msgstr "" 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* " +"values. These can be handled by passing a sequence object as the *choices* " "keyword argument to :meth:`~ArgumentParser.add_argument`. When the command " "line is parsed, argument values will be checked, and an error message will " "be displayed if the argument was not one of the acceptable values::" msgstr "" msgid "" -"Note that inclusion in the *choices* container is checked after any type_ " +"Note that inclusion in the *choices* sequence is checked after any type_ " "conversions have been performed, so the type of the objects in the *choices* " -"container should match the type_ specified::" +"sequence should match the type_ specified::" msgstr "" msgid "" -"Any container can be passed as the *choices* value, so :class:`list` " -"objects, :class:`set` objects, and custom containers are all supported." +"Any sequence can be passed as the *choices* value, so :class:`list` " +"objects, :class:`tuple` objects, and custom sequences are all supported." msgstr "" msgid "" @@ -972,7 +853,7 @@ msgid "" msgstr "" msgid "" -"Formatted choices override the default *metavar* which is normally derived " +"Formatted choices overrides the default *metavar* which is normally derived " "from *dest*. This is usually what you want because the user never sees the " "*dest* parameter. If this display isn't desirable (perhaps because there " "are many choices), just specify an explicit metavar_." @@ -989,9 +870,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1000,7 +881,7 @@ msgid "" msgstr "" msgid "help" -msgstr "" +msgstr "pomoc" msgid "" "The ``help`` value is a string containing a brief description of the " @@ -1013,8 +894,8 @@ 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.::" +"arguments to :meth:`~ArgumentParser.add_argument`, e.g. ``%(default)s``, ``%" +"(type)s``, etc.::" msgstr "" msgid "" @@ -1062,10 +943,10 @@ msgstr "" 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 "" msgid "" @@ -1115,9 +996,9 @@ msgid "``parser`` - The ArgumentParser object which contains this action." msgstr "" 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 "" msgid "" @@ -1153,18 +1034,18 @@ msgstr "" 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 "" 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 "" 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 "" msgid "Option value syntax" @@ -1282,10 +1163,10 @@ msgid "" "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." +"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 "" msgid "Description of parameters:" @@ -1392,10 +1273,10 @@ msgstr "" 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)::" +"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 "" msgid "" @@ -1414,18 +1295,18 @@ 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 "" 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 " -"separate group for help messages. The :meth:`add_argument_group` method " -"accepts *title* and *description* arguments which can be used to customize " -"this display::" +"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 "" msgid "" @@ -1433,13 +1314,6 @@ msgid "" "the usual \"positional arguments\" and \"optional arguments\" sections." msgstr "" -msgid "" -"Calling :meth:`add_argument_group` on an argument group is deprecated. This " -"feature was never supported and does not always work correctly. The function " -"exists on the API by accident through inheritance and will be removed in the " -"future." -msgstr "" - msgid "Mutual exclusion" msgstr "" @@ -1457,24 +1331,17 @@ msgstr "" msgid "" "Note that currently mutually exclusive argument groups do not support the " -"*title* and *description* arguments of :meth:`~ArgumentParser." -"add_argument_group`." -msgstr "" - -msgid "" -"Calling :meth:`add_argument_group` or :meth:`add_mutually_exclusive_group` " -"on a mutually exclusive group is deprecated. These features were never " -"supported and do not always work correctly. The functions exist on the API " -"by accident through inheritance and will be removed in the future." +"*title* and *description* arguments " +"of :meth:`~ArgumentParser.add_argument_group`." msgstr "" msgid "Parser defaults" msgstr "" msgid "" -"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 " +"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 "" @@ -1490,8 +1357,9 @@ msgid "" msgstr "" 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 "" msgid "Printing help" @@ -1521,8 +1389,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1544,10 +1412,10 @@ msgid "" msgstr "" 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 "" msgid "Customizing file parsing" @@ -1603,10 +1471,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1656,21 +1525,21 @@ msgid "A partial upgrade path from :mod:`optparse` to :mod:`argparse`:" msgstr "" 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 "" 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 "" 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 "" msgid "" @@ -1684,8 +1553,9 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/array.po b/library/array.po index 9b30c5f17e..59b2d4e8d3 100644 --- a/library/array.po +++ b/library/array.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`array` --- Efficient arrays of numeric values" msgstr ":mod:`array` --- Efektywne tablice wartości numerycznych" @@ -43,16 +43,16 @@ msgstr "" "typów są określone:" msgid "Type code" -msgstr "Kod typu" +msgstr "kod typu" msgid "C Type" -msgstr "typ języka C " +msgstr "typ języka C" msgid "Python Type" msgstr "typ Pythona" msgid "Minimum size in bytes" -msgstr "Minimalny rozmiar w bajtach" +msgstr "minimalny rozmiar w bajtach" msgid "Notes" msgstr "Notatki" @@ -130,7 +130,7 @@ msgid "unsigned long" msgstr "nieoznaczony typ długi" msgid "``'q'``" -msgstr "" +msgstr "``'q'``" msgid "signed long long" msgstr "" @@ -139,7 +139,7 @@ msgid "8" msgstr "8" msgid "``'Q'``" -msgstr "" +msgstr "``'Q'``" msgid "unsigned long long" msgstr "" @@ -171,11 +171,14 @@ msgstr "" msgid "" "The actual representation of values is determined by the machine " "architecture (strictly speaking, by the C implementation). The actual size " -"can be accessed through the :attr:`itemsize` attribute." +"can be accessed through the :attr:`array.itemsize` attribute." msgstr "" -"Aktualna reprezentacja wartości jest określana przez architekturę maszyny " -"(ściśle mówiąc przez wypełnienie C). Konkretny rozmiar może być dostępny " -"przez właściwość :attr:`itemsize`" + +msgid "The module defines the following item:" +msgstr "" + +msgid "A string with all available type codes." +msgstr "Ciąg ze wszystkimi dostępnymi kodami typów." msgid "The module defines the following type:" msgstr "Moduł definiuje następujący typ:" @@ -187,20 +190,12 @@ msgid "" msgstr "" 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 " -"below) to add initial items to the array. Otherwise, the iterable " +"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 "" -msgid "" -"Raises an :ref:`auditing event ` ``array.__new__`` with arguments " -"``typecode``, ``initializer``." -msgstr "" - -msgid "A string with all available type codes." -msgstr "Ciąg ze wszystkimi dostępnymi kodami typów." - msgid "" "Array objects support the ordinary sequence operations of indexing, slicing, " "concatenation, and multiplication. When using slice assignment, the " @@ -210,9 +205,10 @@ msgid "" "object>` are supported." msgstr "" -msgid "The following data items and methods are also supported:" +msgid "" +"Raises an :ref:`auditing event ` ``array.__new__`` with arguments " +"``typecode``, ``initializer``." msgstr "" -"Następujące elementy danych i sposobów postępowania są także wspierane:" msgid "The typecode character used to create the array." msgstr "Znak kodujący typ używany do tworzenia tabeli." @@ -231,7 +227,7 @@ msgid "" "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 " +"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 "" @@ -252,24 +248,24 @@ msgstr "" 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 " -"written on a machine with a different byte order." +"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 "" -"\"Zamień miejscami kęsy\" - z ang. - \"Byteswap\" wszystkie elementy " -"tablicy. To jest wspierane tylko dla wartości które są 1, 2, 4, lub 8 w " -"rozmiarze; dla innych typów wartości wyjątek :exc:`RuntimeError` jest " -"zgłaszany. Jest to użyteczne gdy wczytuje się dane z pliku zapisanym na " -"maszynie o odmiennym porządku bajtów." +"Zmienia kolejność bajtów wszystkich elementów tablicy. Wspierane tylko dla " +"wartości których rozmiar to 1, 2, 4, lub 8 bajtów; dla innych typów wartości " +"zgłaszany jest wyjątek :exc:`RuntimeError`. Jest to użyteczne gdy wczytuje " +"się dane z pliku zapisanego na maszynie o odmiennym porządku bajtów." msgid "Return the number of occurrences of *x* in the array." msgstr "Zwróć liczbę wystąpień *x* w tablicy." 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 "" "Przyklej elementy z przedmiotu *iterowalnego* na koniec tablicy. Jeśli " "*iterowalny* jest kolejną tablicą, musi mieć *dokładnie* ten sam typ kodu; " @@ -279,30 +275,30 @@ msgstr "" 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 "" "Dokleja elementy z ciągu znaków, interpretując ciąg jako tablicę wartości " "maszynowych (tak jakby były one wszytane z pliku używając sposobu " "postępowania :meth:`fromfile`)." -msgid ":meth:`fromstring` is renamed to :meth:`frombytes` for clarity." +msgid ":meth:`!fromstring` is renamed to :meth:`frombytes` for clarity." msgstr "" 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 " -"inserted into the array." +"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." msgstr "" 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 "" "Doklej elementy z listy. To jest równoważne z ``for x in list: a.append(x)`` " "z wyjątkiem tego, że jeśli wystąpi błąd typu, tablica pozostanie " -"niezmieniona. " +"niezmieniona." msgid "" "Extends this array with data from the given unicode string. The array must " @@ -314,8 +310,8 @@ msgstr "" msgid "" "Return the smallest *i* such that *i* is the index of the first occurrence " "of *x* in the array. The optional arguments *start* and *stop* can be " -"specified to search for *x* within a subsection of the array. Raise :exc:" -"`ValueError` if *x* is not found." +"specified to search for *x* within a subsection of the array. " +"Raise :exc:`ValueError` if *x* is not found." msgstr "" msgid "Added optional *start* and *stop* parameters." @@ -349,7 +345,7 @@ msgid "" "by the :meth:`tofile` method.)" msgstr "" -msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity." +msgid ":meth:`!tostring` is renamed to :meth:`tobytes` for clarity." msgstr "" msgid "Write all items (as machine values) to the :term:`file object` *f*." @@ -360,8 +356,9 @@ msgstr "Zamień tabelę na zwykłą listę o tych samych elementach." 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 "" msgid "" @@ -369,9 +366,9 @@ msgid "" "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 "" msgid "Module :mod:`struct`" @@ -392,7 +389,7 @@ msgstr "" "wywoływania procedur." msgid "`NumPy `_" -msgstr "" +msgstr "`NumPy `_" msgid "The NumPy package defines another array type." msgstr "" diff --git a/library/asynchat.po b/library/asynchat.po index 86ba37913a..1895ec87d5 100644 --- a/library/asynchat.po +++ b/library/asynchat.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`asynchat` --- Asynchronous socket command/response handler" msgstr ":mod:`asynchat` --- Asynchroniczna obsługa gniazda komend/odpowiedzi." @@ -30,8 +30,8 @@ msgid "**Source code:** :source:`Lib/asynchat.py`" msgstr "" msgid "" -"The :mod:`asynchat` module is deprecated (see :pep:`PEP 594 <594#asynchat>` " -"for details). Please use :mod:`asyncio` instead." +":mod:`asynchat` will be removed in Python 3.12 (see :pep:`PEP 594 " +"<594#asynchat>` for details). Please use :mod:`asyncio` instead." msgstr "" msgid "" @@ -45,35 +45,28 @@ msgid "" "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 " +"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 "" "Ten moduł buduje na infrastrukturze modułu :mod:`asyncore`, upraszczając " "klientów i serwery asynchroniczne i czyniąc łatwiejszym obsługę protokołów " "których elementy są zakańczane przez zadane ciągi znaków, lub są zmiennej " -"długości. Moduł :mod:`asynchat` określa abstrakcyjne uogólnienie :class:" -"`async_chat` które możesz dostosować tworząc własne podrzędne uogólnienie, " -"dostarczając wypełnień sposobów postępowania :meth:`collect_incoming_data` " -"i :meth:`found_terminator`. Używa tej samej asynchronicznej pętli co moduł :" -"mod:`asyncore`, i dwóch rodzajów kanałów, - :class:`asyncore.dispatcher` i :" -"class:`asynchat.async_chat`, mogą być dowolnie być mieszane w mapie kanałów. " -"Typowo kanał serwera :class:`asyncore.dispatcher` generuje nowe obiekty " +"długości. Moduł :mod:`asynchat` określa abstrakcyjne " +"uogólnienie :class:`async_chat` które możesz dostosować tworząc własne " +"podrzędne uogólnienie, dostarczając wypełnień sposobów " +"postępowania :meth:`collect_incoming_data` i :meth:`found_terminator`. Używa " +"tej samej asynchronicznej pętli co moduł :mod:`asyncore`, i dwóch rodzajów " +"kanałów, - :class:`asyncore.dispatcher` i :class:`asynchat.async_chat`, " +"mogą być dowolnie być mieszane w mapie kanałów. Typowo kanał " +"serwera :class:`asyncore.dispatcher` generuje nowe obiekty " "kanałów :class:`asynchat.async_chat` gdy otrzymuje wchodzące zapytania o " "połączenie." -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "" "This class is an abstract subclass of :class:`asyncore.dispatcher`. To make " "practical use of the code you must subclass :class:`async_chat`, providing " @@ -84,17 +77,18 @@ msgstr "" "To uogólnienie jest abstrakcyjnym uogólnieniem podrzędnym względem " "uogólnienia :class:`asyncore.dispatcher`. Aby praktycznie użyć kodu musisz " "dostosować podrzędne uogólnienie względem uogólnienia :class:`async_chat`, " -"dostarczając sensownego wypełnienia sposobu postępowania :meth:" -"`collect_incoming_data` i sposobu postępowania :meth:`found_terminator`. " -"Sposoby postępowania uogólnienia :class:`asyncore.dispatcher` mogą być " -"używane, chociaż nie wszystkie mają sens w kontekście wiadomość/odpowiedź." +"dostarczając sensownego wypełnienia sposobu " +"postępowania :meth:`collect_incoming_data` i sposobu " +"postępowania :meth:`found_terminator`. Sposoby postępowania " +"uogólnienia :class:`asyncore.dispatcher` mogą być używane, chociaż nie " +"wszystkie mają sens w kontekście wiadomość/odpowiedź." 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 "" msgid "" @@ -127,16 +121,16 @@ msgid "" msgstr "" msgid "" -"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." +"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 "" -"Aby zbudować funkcjonujące podrzędne uogólnienia względem uogólnienia :class:" -"`async_chat`, twoje sposoby postępowania wprowadzania :meth:" -"`collect_incoming_data` i :meth:`found_terminator` muszą obsługiwać dane " -"które kanał otrzymuje asynchronicznie. Sposoby postępowania są opisane " -"poniżej." +"Aby zbudować funkcjonujące podrzędne uogólnienia względem " +"uogólnienia :class:`async_chat`, twoje sposoby postępowania " +"wprowadzania :meth:`collect_incoming_data` i :meth:`found_terminator` muszą " +"obsługiwać dane które kanał otrzymuje asynchronicznie. Sposoby postępowania " +"są opisane poniżej." msgid "" "Pushes a ``None`` on to the producer queue. When this producer is popped off " @@ -145,8 +139,8 @@ msgstr "" 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 "" "Wywoływany z *danymi* przechowując określoną ilość otrzymanych danych. " "Domyślny sposób postępowania, który musi zostać przesłonięty, zgłasza " @@ -165,9 +159,9 @@ msgid "" msgstr "" "Wywoływana gdy przychodzący strumień danych odpowiada warunkowi zakończenia " "ustawionemu przez sposób postępowania :meth:`set_terminator`. Domyślny " -"sposób postępowania, który musi być przesłonięty, zgłasza wyjątek :exc:" -"`NotImplementedError`. Dane wejściowe z przestrzeni wymiany powinny być " -"dostępne przez właściwość przykładu." +"sposób postępowania, który musi być przesłonięty, zgłasza " +"wyjątek :exc:`NotImplementedError`. Dane wejściowe z przestrzeni wymiany " +"powinny być dostępne przez właściwość przykładu." msgid "Returns the current terminator for the channel." msgstr "Zwraca obecne zakończenie dla kanału." @@ -231,31 +225,32 @@ msgid "" "the channel after :meth:`found_terminator` is called." msgstr "" "Zauważ że dowolne dane następujące po terminatorze będą dostępne dla " -"przeczytania przez kanał po tym jak sposób postępowania :meth:" -"`found_terminator` zostanie wywołany." +"przeczytania przez kanał po tym jak sposób " +"postępowania :meth:`found_terminator` zostanie wywołany." msgid "asynchat Example" msgstr "Przykład asynchat" 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 "" "Następujący częściowy przykład pokazuje jak zapytania HTTP mogą być wczytane " -"za pomocą :class:`async_chat`. Serwer sieci może tworzyć obiekt :class:" -"`http_request_handler` dla każdego przychodzącego połączenia klienckiego. " -"Zauważ że początkowo zakończenie kanału jest ustalone aby odpowiadało pustej " -"linii na końcu nagłówka HTTP, i flaga wskazująca że nagłówki są wczytywane." +"za pomocą :class:`async_chat`. Serwer sieci może tworzyć " +"obiekt :class:`http_request_handler` dla każdego przychodzącego połączenia " +"klienckiego. Zauważ że początkowo zakończenie kanału jest ustalone aby " +"odpowiadało pustej linii na końcu nagłówka HTTP, i flaga wskazująca że " +"nagłówki są wczytywane." 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 "" "Gdy już nagłówki zostaną wczytane, jeśli zapytanie jest typu POST (wskazując " "na to że dalsze dane są obecne w strumieniu wejściowym) wtedy nagłówek " diff --git a/library/asyncio-api-index.po b/library/asyncio-api-index.po index a28f48628d..1b1f210e6d 100644 --- a/library/asyncio-api-index.po +++ b/library/asyncio-api-index.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "High-level API Index" msgstr "" @@ -39,93 +38,73 @@ msgid "" msgstr "" msgid ":func:`run`" -msgstr "" +msgstr ":func:`run`" msgid "Create event loop, run a coroutine, close the loop." msgstr "" -msgid ":class:`Runner`" -msgstr "" - -msgid "A context manager that simplifies multiple async function calls." -msgstr "" - -msgid ":class:`Task`" -msgstr "" - -msgid "Task object." -msgstr "" - -msgid ":class:`TaskGroup`" -msgstr "" - -msgid "" -"A context manager that holds a group of tasks. Provides a convenient and " -"reliable way to wait for all tasks in the group to finish." -msgstr "" - msgid ":func:`create_task`" -msgstr "" +msgstr ":func:`create_task`" -msgid "Start an asyncio Task, then returns it." -msgstr "" - -msgid ":func:`current_task`" -msgstr "" - -msgid "Return the current Task." -msgstr "" - -msgid ":func:`all_tasks`" -msgstr "" - -msgid "Return all tasks that are not yet finished for an event loop." +msgid "Start an asyncio Task." msgstr "" msgid "``await`` :func:`sleep`" -msgstr "" +msgstr "``await`` :func:`sleep`" msgid "Sleep for a number of seconds." msgstr "" msgid "``await`` :func:`gather`" -msgstr "" +msgstr "``await`` :func:`gather`" msgid "Schedule and wait for things concurrently." msgstr "" msgid "``await`` :func:`wait_for`" -msgstr "" +msgstr "``await`` :func:`wait_for`" msgid "Run with a timeout." msgstr "" msgid "``await`` :func:`shield`" -msgstr "" +msgstr "``await`` :func:`shield`" msgid "Shield from cancellation." msgstr "" msgid "``await`` :func:`wait`" -msgstr "" +msgstr "``await`` :func:`wait`" msgid "Monitor for completion." msgstr "" -msgid ":func:`timeout`" +msgid ":func:`current_task`" +msgstr ":func:`current_task`" + +msgid "Return the current Task." msgstr "" -msgid "Run with a timeout. Useful in cases when ``wait_for`` is not suitable." +msgid ":func:`all_tasks`" +msgstr ":func:`all_tasks`" + +msgid "Return all tasks for an event loop." msgstr "" -msgid ":func:`to_thread`" +msgid ":class:`Task`" +msgstr ":class:`Task`" + +msgid "Task object." msgstr "" +msgid ":func:`to_thread`" +msgstr ":func:`to_thread`" + msgid "Asynchronously run a function in a separate OS thread." msgstr "" msgid ":func:`run_coroutine_threadsafe`" -msgstr "" +msgstr ":func:`run_coroutine_threadsafe`" msgid "Schedule a coroutine from another OS thread." msgstr "" @@ -167,19 +146,19 @@ msgid "" msgstr "" msgid ":class:`Queue`" -msgstr "" +msgstr ":class:`Queue`" msgid "A FIFO queue." msgstr "" msgid ":class:`PriorityQueue`" -msgstr "" +msgstr ":class:`PriorityQueue`" msgid "A priority queue." msgstr "" msgid ":class:`LifoQueue`" -msgstr "" +msgstr ":class:`LifoQueue`" msgid "A LIFO queue." msgstr "" @@ -199,13 +178,13 @@ msgid "Utilities to spawn subprocesses and run shell commands." msgstr "" msgid "``await`` :func:`create_subprocess_exec`" -msgstr "" +msgstr "``await`` :func:`create_subprocess_exec`" msgid "Create a subprocess." msgstr "" msgid "``await`` :func:`create_subprocess_shell`" -msgstr "" +msgstr "``await`` :func:`create_subprocess_shell`" msgid "Run a shell command." msgstr "" @@ -223,37 +202,37 @@ msgid "High-level APIs to work with network IO." msgstr "" msgid "``await`` :func:`open_connection`" -msgstr "" +msgstr "``await`` :func:`open_connection`" msgid "Establish a TCP connection." msgstr "" msgid "``await`` :func:`open_unix_connection`" -msgstr "" +msgstr "``await`` :func:`open_unix_connection`" msgid "Establish a Unix socket connection." msgstr "" msgid "``await`` :func:`start_server`" -msgstr "" +msgstr "``await`` :func:`start_server`" msgid "Start a TCP server." msgstr "" msgid "``await`` :func:`start_unix_server`" -msgstr "" +msgstr "``await`` :func:`start_unix_server`" msgid "Start a Unix socket server." msgstr "" msgid ":class:`StreamReader`" -msgstr "" +msgstr ":class:`StreamReader`" msgid "High-level async/await object to receive network data." msgstr "" msgid ":class:`StreamWriter`" -msgstr "" +msgstr ":class:`StreamWriter`" msgid "High-level async/await object to send network data." msgstr "" @@ -271,47 +250,38 @@ msgid "Threading-like synchronization primitives that can be used in Tasks." msgstr "" msgid ":class:`Lock`" -msgstr "" +msgstr ":class:`Lock`" msgid "A mutex lock." msgstr "" msgid ":class:`Event`" -msgstr "" +msgstr ":class:`Event`" msgid "An event object." msgstr "" msgid ":class:`Condition`" -msgstr "" +msgstr ":class:`Condition`" msgid "A condition object." msgstr "" msgid ":class:`Semaphore`" -msgstr "" +msgstr ":class:`Semaphore`" msgid "A semaphore." msgstr "" msgid ":class:`BoundedSemaphore`" -msgstr "" +msgstr ":class:`BoundedSemaphore`" msgid "A bounded semaphore." msgstr "" -msgid ":class:`Barrier`" -msgstr "" - -msgid "A barrier object." -msgstr "" - msgid ":ref:`Using asyncio.Event `." msgstr "" -msgid ":ref:`Using asyncio.Barrier `." -msgstr "" - msgid "" "See also the documentation of asyncio :ref:`synchronization primitives " "`." @@ -320,16 +290,19 @@ msgstr "" msgid "Exceptions" msgstr "Wyjątki" -msgid ":exc:`asyncio.CancelledError`" +msgid ":exc:`asyncio.TimeoutError`" msgstr "" -msgid "Raised when a Task is cancelled. See also :meth:`Task.cancel`." +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 "" -msgid ":exc:`asyncio.BrokenBarrierError`" -msgstr "" +msgid ":exc:`asyncio.CancelledError`" +msgstr ":exc:`asyncio.CancelledError`" -msgid "Raised when a Barrier is broken. See also :meth:`Barrier.wait`." +msgid "Raised when a Task is cancelled. See also :meth:`Task.cancel`." msgstr "" msgid "" diff --git a/library/asyncio-dev.po b/library/asyncio-dev.po new file mode 100644 index 0000000000..31e34a8620 --- /dev/null +++ b/library/asyncio-dev.po @@ -0,0 +1,225 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Developing with asyncio" +msgstr "" + +msgid "" +"Asynchronous programming is different from classic \"sequential\" " +"programming." +msgstr "" + +msgid "" +"This page lists common mistakes and traps and explains how to avoid them." +msgstr "" + +msgid "Debug Mode" +msgstr "" + +msgid "" +"By default asyncio runs in production mode. In order to ease the " +"development asyncio has a *debug mode*." +msgstr "" + +msgid "There are several ways to enable asyncio debug mode:" +msgstr "" + +msgid "Setting the :envvar:`PYTHONASYNCIODEBUG` environment variable to ``1``." +msgstr "" + +msgid "Using the :ref:`Python Development Mode `." +msgstr "" + +msgid "Passing ``debug=True`` to :func:`asyncio.run`." +msgstr "" + +msgid "Calling :meth:`loop.set_debug`." +msgstr "" + +msgid "In addition to enabling the debug mode, consider also:" +msgstr "" + +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::" +msgstr "" + +msgid "" +"configuring the :mod:`warnings` module to display :exc:`ResourceWarning` " +"warnings. One way of doing that is by using the :option:`-W` ``default`` " +"command line option." +msgstr "" + +msgid "When the debug mode is enabled:" +msgstr "" + +msgid "" +"asyncio checks for :ref:`coroutines that were not awaited ` and logs them; this mitigates the \"forgotten await\" " +"pitfall." +msgstr "" + +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." +msgstr "" + +msgid "" +"The execution time of the I/O selector is logged if it takes too long to " +"perform an I/O operation." +msgstr "" + +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\"." +msgstr "" + +msgid "Concurrency and Multithreading" +msgstr "" + +msgid "" +"An event loop runs in a thread (typically the main thread) and executes all " +"callbacks and Tasks in its thread. While a Task is running in the event " +"loop, no other Tasks can run in the same thread. When a Task executes an " +"``await`` expression, the running Task gets suspended, and the event loop " +"executes the next Task." +msgstr "" + +msgid "" +"To schedule a :term:`callback` from another OS thread, " +"the :meth:`loop.call_soon_threadsafe` method should be used. Example::" +msgstr "" + +msgid "" +"Almost all asyncio objects are not thread safe, which is typically not a " +"problem unless there is code that works with them from outside of a Task or " +"a callback. If there's a need for such code to call a low-level asyncio " +"API, the :meth:`loop.call_soon_threadsafe` method should be used, e.g.::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"To handle signals and to execute subprocesses, the event loop must be run in " +"the main thread." +msgstr "" + +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." +msgstr "" + +msgid "" +"There is currently no way to schedule coroutines or callbacks directly from " +"a different process (such as one started with :mod:`multiprocessing`). " +"The :ref:`asyncio-event-loop-methods` section lists APIs that can read from " +"pipes and watch file descriptors without blocking the event loop. In " +"addition, asyncio's :ref:`Subprocess ` APIs provide a " +"way to start a process and communicate with it from the event loop. Lastly, " +"the aforementioned :meth:`loop.run_in_executor` method can also be used with " +"a :class:`concurrent.futures.ProcessPoolExecutor` to execute code in a " +"different process." +msgstr "" + +msgid "Running Blocking Code" +msgstr "" + +msgid "" +"Blocking (CPU-bound) code should not be called directly. For example, if a " +"function performs a CPU-intensive calculation for 1 second, all concurrent " +"asyncio Tasks and IO operations would be delayed by 1 second." +msgstr "" + +msgid "" +"An executor can be used to run a task in a different thread or even in a " +"different process to avoid blocking the OS thread with the event loop. See " +"the :meth:`loop.run_in_executor` method for more details." +msgstr "" + +msgid "Logging" +msgstr "Logowanie" + +msgid "" +"asyncio uses the :mod:`logging` module and all logging is performed via the " +"``\"asyncio\"`` logger." +msgstr "" + +msgid "" +"The default log level is :py:data:`logging.INFO`, which can be easily " +"adjusted::" +msgstr "" + +msgid "" +"Network logging can block the event loop. It is recommended to use a " +"separate thread for handling logs or use non-blocking IO. For example, " +"see :ref:`blocking-handlers`." +msgstr "" + +msgid "Detect never-awaited coroutines" +msgstr "" + +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`::" +msgstr "" + +msgid "Output::" +msgstr "" + +msgid "Output in debug mode::" +msgstr "" + +msgid "" +"The usual fix is to either await the coroutine or call " +"the :meth:`asyncio.create_task` function::" +msgstr "" + +msgid "Detect never-retrieved exceptions" +msgstr "" + +msgid "" +"If a :meth:`Future.set_exception` is called but the Future object is never " +"awaited on, the exception would never be propagated to the user code. In " +"this case, asyncio would emit a log message when the Future object is " +"garbage collected." +msgstr "" + +msgid "Example of an unhandled exception::" +msgstr "" + +msgid "" +":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 new file mode 100644 index 0000000000..2e607b6da3 --- /dev/null +++ b/library/asyncio-eventloop.po @@ -0,0 +1,1711 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Event Loop" +msgstr "" + +msgid "" +"**Source code:** :source:`Lib/asyncio/events.py`, :source:`Lib/asyncio/" +"base_events.py`" +msgstr "" +"**Kod źródłowy:** :source:`Lib/asyncio/events.py`, :source:`Lib/asyncio/" +"base_events.py`" + +msgid "Preface" +msgstr "" + +msgid "" +"The event loop is the core of every asyncio application. Event loops run " +"asynchronous tasks and callbacks, perform network IO operations, and run " +"subprocesses." +msgstr "" + +msgid "" +"Application developers should typically use the high-level asyncio " +"functions, such as :func:`asyncio.run`, and should rarely need to reference " +"the loop object or call its methods. This section is intended mostly for " +"authors of lower-level code, libraries, and frameworks, who need finer " +"control over the event loop behavior." +msgstr "" + +msgid "Obtaining the Event Loop" +msgstr "" + +msgid "" +"The following low-level functions can be used to get, set, or create an " +"event loop:" +msgstr "" + +msgid "Return the running event loop in the current OS thread." +msgstr "" + +msgid "Raise a :exc:`RuntimeError` if there is no running event loop." +msgstr "" + +msgid "This function can only be called from a coroutine or a callback." +msgstr "" + +msgid "Get the current event loop." +msgstr "" + +msgid "" +"When called from a coroutine or a callback (e.g. scheduled with call_soon or " +"similar API), this function will always return the running event loop." +msgstr "" + +msgid "" +"If there is no running event loop set, the function will return the result " +"of the ``get_event_loop_policy().get_event_loop()`` call." +msgstr "" + +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." +msgstr "" + +msgid "" +"As noted above, consider using the higher-level :func:`asyncio.run` " +"function, instead of using these lower level functions to manually create " +"and close an event loop." +msgstr "" + +msgid "" +"In Python versions 3.10.0--3.10.8 and 3.11.0 this function (and other " +"functions which use it implicitly) emitted a :exc:`DeprecationWarning` if " +"there was no running event loop, even if the current loop was set on the " +"policy. In Python versions 3.10.9, 3.11.1 and 3.12 they emit " +"a :exc:`DeprecationWarning` if there is no running event loop and no current " +"loop is set. In some future Python release this will become an error." +msgstr "" + +msgid "Set *loop* as the current event loop for the current OS thread." +msgstr "" + +msgid "Create and return a new event loop object." +msgstr "" + +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 "" + +msgid "Contents" +msgstr "Zawartość" + +msgid "This documentation page contains the following sections:" +msgstr "" + +msgid "" +"The `Event Loop Methods`_ section is the reference documentation of the " +"event loop APIs;" +msgstr "" + +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`;" +msgstr "" + +msgid "" +"The `Server Objects`_ section documents types returned from event loop " +"methods like :meth:`loop.create_server`;" +msgstr "" + +msgid "" +"The `Event Loop Implementations`_ section documents " +"the :class:`SelectorEventLoop` and :class:`ProactorEventLoop` classes;" +msgstr "" + +msgid "" +"The `Examples`_ section showcases how to work with some event loop APIs." +msgstr "" + +msgid "Event Loop Methods" +msgstr "" + +msgid "Event loops have **low-level** APIs for the following:" +msgstr "" + +msgid "Running and stopping the loop" +msgstr "" + +msgid "Run until the *future* (an instance of :class:`Future`) has completed." +msgstr "" + +msgid "" +"If the argument is a :ref:`coroutine object ` it is implicitly " +"scheduled to run as a :class:`asyncio.Task`." +msgstr "" + +msgid "Return the Future's result or raise its exception." +msgstr "" + +msgid "Run the event loop until :meth:`stop` is called." +msgstr "" + +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." +msgstr "" + +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 " +"callbacks scheduled by callbacks will not run in this case; instead, they " +"will run the next time :meth:`run_forever` or :meth:`run_until_complete` is " +"called." +msgstr "" + +msgid "Stop the event loop." +msgstr "" + +msgid "Return ``True`` if the event loop is currently running." +msgstr "" + +msgid "Return ``True`` if the event loop was closed." +msgstr "" + +msgid "Close the event loop." +msgstr "" + +msgid "" +"The loop must not be running when this function is called. Any pending " +"callbacks will be discarded." +msgstr "" + +msgid "" +"This method clears all queues and shuts down the executor, but does not wait " +"for the executor to finish." +msgstr "" + +msgid "" +"This method is idempotent and irreversible. No other methods should be " +"called after the event loop is closed." +msgstr "" + +msgid "" +"Schedule all currently open :term:`asynchronous generator` objects to close " +"with an :meth:`~agen.aclose()` call. After calling this method, the event " +"loop will issue a warning if a new asynchronous generator is iterated. This " +"should be used to reliably finalize all scheduled asynchronous generators." +msgstr "" + +msgid "" +"Note that there is no need to call this function when :func:`asyncio.run` is " +"used." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "" +"Schedule the closure of the default executor and wait for it to join all of " +"the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once " +"this method has been called, using the default executor " +"with :meth:`loop.run_in_executor` will raise a :exc:`RuntimeError`." +msgstr "" + +msgid "" +"Do not call this method when using :func:`asyncio.run`, as the latter " +"handles default executor shutdown automatically." +msgstr "" + +msgid "Scheduling callbacks" +msgstr "" + +msgid "" +"Schedule the *callback* :term:`callback` to be called with *args* arguments " +"at the next iteration of the event loop." +msgstr "" + +msgid "" +"Return an instance of :class:`asyncio.Handle`, which can be used later to " +"cancel the callback." +msgstr "" + +msgid "" +"Callbacks are called in the order in which they are registered. Each " +"callback will be called exactly once." +msgstr "" + +msgid "" +"The optional keyword-only *context* argument specifies a " +"custom :class:`contextvars.Context` for the *callback* to run in. Callbacks " +"use the current context when no *context* is provided." +msgstr "" + +msgid "Unlike :meth:`call_soon_threadsafe`, this method is not thread-safe." +msgstr "" + +msgid "" +"A thread-safe variant of :meth:`call_soon`. When scheduling callbacks from " +"another thread, this function *must* be used, since :meth:`call_soon` is not " +"thread-safe." +msgstr "" + +msgid "" +"Raises :exc:`RuntimeError` if called on a loop that's been closed. This can " +"happen on a secondary thread when the main application is shutting down." +msgstr "" + +msgid "" +"See the :ref:`concurrency and multithreading ` " +"section of the documentation." +msgstr "" + +msgid "" +"The *context* keyword-only parameter was added. See :pep:`567` for more " +"details." +msgstr "" + +msgid "" +"Most :mod:`asyncio` scheduling functions don't allow passing keyword " +"arguments. To do that, use :func:`functools.partial`::" +msgstr "" + +msgid "" +"Using partial objects is usually more convenient than using lambdas, as " +"asyncio can render partial objects better in debug and error messages." +msgstr "" + +msgid "Scheduling delayed callbacks" +msgstr "" + +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." +msgstr "" + +msgid "" +"Schedule *callback* to be called after the given *delay* number of seconds " +"(can be either an int or a float)." +msgstr "" + +msgid "" +"An instance of :class:`asyncio.TimerHandle` is returned which can be used to " +"cancel the callback." +msgstr "" + +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 "" + +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`." +msgstr "" + +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 "" + +msgid "" +"In Python 3.7 and earlier with the default event loop implementation, the " +"*delay* could not exceed one day. This has been fixed in Python 3.8." +msgstr "" + +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 "" + +msgid "This method's behavior is the same as :meth:`call_later`." +msgstr "" + +msgid "" +"In Python 3.7 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.8." +msgstr "" + +msgid "" +"Return the current time, as a :class:`float` value, according to the event " +"loop's internal monotonic clock." +msgstr "" + +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 "" + +msgid "The :func:`asyncio.sleep` function." +msgstr "" + +msgid "Creating Futures and Tasks" +msgstr "" + +msgid "Create an :class:`asyncio.Future` object attached to the event loop." +msgstr "" + +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 "" + +msgid "" +"Schedule the execution of :ref:`coroutine ` *coro*. Return " +"a :class:`Task` object." +msgstr "" + +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`." +msgstr "" + +msgid "" +"If the *name* argument is provided and not ``None``, it is set as the name " +"of the task using :meth:`Task.set_name`." +msgstr "" + +msgid "Added the *name* parameter." +msgstr "" + +msgid "Set a task factory that will be used by :meth:`loop.create_task`." +msgstr "" + +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." +msgstr "" + +msgid "Return a task factory or ``None`` if the default one is in use." +msgstr "" + +msgid "Opening network connections" +msgstr "" + +msgid "" +"Open a streaming transport connection to a given address specified by *host* " +"and *port*." +msgstr "" + +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)." +msgstr "" + +msgid "The socket type will be :py:data:`~socket.SOCK_STREAM`." +msgstr "" + +msgid "" +"*protocol_factory* must be a callable returning an :ref:`asyncio protocol " +"` implementation." +msgstr "" + +msgid "" +"This method will try to establish the connection in the background. When " +"successful, it returns a ``(transport, protocol)`` pair." +msgstr "" + +msgid "The chronological synopsis of the underlying operation is as follows:" +msgstr "" + +msgid "" +"The connection is established and a :ref:`transport ` is " +"created for it." +msgstr "" + +msgid "" +"*protocol_factory* is called without arguments and is expected to return " +"a :ref:`protocol ` instance." +msgstr "" + +msgid "" +"The protocol instance is coupled with the transport by calling " +"its :meth:`~BaseProtocol.connection_made` method." +msgstr "" + +msgid "A ``(transport, protocol)`` tuple is returned on success." +msgstr "" + +msgid "" +"The created transport is an implementation-dependent bidirectional stream." +msgstr "" + +msgid "Other arguments:" +msgstr "" + +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." +msgstr "" + +msgid ":ref:`SSL/TLS security considerations `" +msgstr "" + +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 " +"``None``. By default the value of the *host* argument is used. If *host* " +"is empty, there is no default and you must pass a value for " +"*server_hostname*. If *server_hostname* is an empty string, hostname " +"matching is disabled (which is a serious security risk, allowing for " +"potential man-in-the-middle attacks)." +msgstr "" + +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 " +"constants." +msgstr "" + +msgid "" +"*happy_eyeballs_delay*, if given, enables Happy Eyeballs for this " +"connection. It should be a floating-point number representing the amount of " +"time in seconds to wait for a connection attempt to complete, before " +"starting the next attempt in parallel. This is the \"Connection Attempt " +"Delay\" as defined in :rfc:`8305`. A sensible default value recommended by " +"the RFC is ``0.25`` (250 milliseconds)." +msgstr "" + +msgid "" +"*interleave* controls address reordering when a host name resolves to " +"multiple IP addresses. If ``0`` or unspecified, no reordering is done, and " +"addresses are tried in the order returned by :meth:`getaddrinfo`. If a " +"positive integer is specified, the addresses are interleaved by address " +"family, and the given integer is interpreted as \"First Address Family " +"Count\" as defined in :rfc:`8305`. The default is ``0`` if " +"*happy_eyeballs_delay* is not specified, and ``1`` if it is." +msgstr "" + +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*, " +"*happy_eyeballs_delay*, *interleave* and *local_addr* should be specified." +msgstr "" + +msgid "" +"The *sock* argument transfers ownership of the socket to the transport " +"created. To close the socket, call the " +"transport's :meth:`~asyncio.BaseTransport.close` method." +msgstr "" + +msgid "" +"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " +"the socket locally. The *local_host* and *local_port* are looked up using " +"``getaddrinfo()``, similarly to *host* and *port*." +msgstr "" + +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 "" + +msgid "Added support for SSL/TLS in :class:`ProactorEventLoop`." +msgstr "" + +msgid "" +"The socket option :py:data:`~socket.TCP_NODELAY` is set by default for all " +"TCP connections." +msgstr "" + +msgid "Added the *ssl_handshake_timeout* parameter." +msgstr "" + +msgid "Added the *happy_eyeballs_delay* and *interleave* parameters." +msgstr "" + +msgid "" +"Happy Eyeballs Algorithm: Success with Dual-Stack Hosts. When a server's " +"IPv4 path and protocol are working, but the server's IPv6 path and protocol " +"are not working, a dual-stack client application experiences significant " +"connection delay compared to an IPv4-only client. This is undesirable " +"because it causes the dual-stack client to have a worse user experience. " +"This document specifies requirements for algorithms that reduce this user-" +"visible delay and provides an algorithm." +msgstr "" + +msgid "For more information: https://tools.ietf.org/html/rfc6555" +msgstr "" + +msgid "" +"Raises a ``DeprecationWarning`` if ``ssl.check_hostname`` is ``True`` and " +"``server_hostname`` is not supplied. In Python 3.13 and later a " +"``ValueError`` is raised instead." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "" +"When multiple processes with differing UIDs assign sockets to an identical " +"UDP socket address with ``SO_REUSEADDR``, incoming packets can become " +"randomly distributed among the sockets." +msgstr "" + +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 "" + +msgid "Create a datagram connection." +msgstr "" + +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)." +msgstr "" + +msgid "The socket type will be :py:data:`~socket.SOCK_DGRAM`." +msgstr "" + +msgid "" +"*protocol_factory* must be a callable returning a :ref:`protocol ` implementation." +msgstr "" + +msgid "A tuple of ``(transport, protocol)`` is returned on success." +msgstr "" + +msgid "" +"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " +"the socket locally. The *local_host* and *local_port* are looked up " +"using :meth:`getaddrinfo`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"*family*, *proto*, *flags* are the optional address family, protocol and " +"flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If " +"given, these should all be integers from the corresponding :mod:`socket` " +"module constants." +msgstr "" + +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 " +"Unixes. If the :py:data:`~socket.SO_REUSEPORT` constant is not defined then " +"this capability is unsupported." +msgstr "" + +msgid "" +"*allow_broadcast* tells the kernel to allow this endpoint to send messages " +"to the broadcast address." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"See :ref:`UDP echo client protocol ` " +"and :ref:`UDP echo server protocol ` " +"examples." +msgstr "" + +msgid "" +"The *family*, *proto*, *flags*, *reuse_address*, *reuse_port, " +"*allow_broadcast*, and *sock* parameters were added." +msgstr "" + +msgid "" +"The *reuse_address* parameter is no longer supported due to security " +"concerns." +msgstr "" + +msgid "Added support for Windows." +msgstr "Dodane wsparcie dla Windowsa." + +msgid "Create a Unix connection." +msgstr "" + +msgid "" +"The socket family will be :py:data:`~socket.AF_UNIX`; socket type will " +"be :py:data:`~socket.SOCK_STREAM`." +msgstr "" + +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." +msgstr "" + +msgid "" +"See the documentation of the :meth:`loop.create_connection` method for " +"information about arguments to this method." +msgstr "" + +msgid ":ref:`Availability `: Unix." +msgstr "" + +msgid "" +"Added the *ssl_handshake_timeout* parameter. The *path* parameter can now be " +"a :term:`path-like object`." +msgstr "" + +msgid "Creating network servers" +msgstr "" + +msgid "" +"Create a TCP server (socket type :data:`~socket.SOCK_STREAM`) listening on " +"*port* of the *host* address." +msgstr "" + +msgid "Returns a :class:`Server` object." +msgstr "" + +msgid "Arguments:" +msgstr "" + +msgid "" +"The *host* parameter can be set to several types which determine where the " +"server would be listening:" +msgstr "" + +msgid "" +"If *host* is a string, the TCP server is bound to a single network interface " +"specified by *host*." +msgstr "" + +msgid "" +"If *host* is a sequence of strings, the TCP server is bound to all network " +"interfaces specified by the sequence." +msgstr "" + +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 "" + +msgid "" +"The *port* parameter can be set to specify which port the server should " +"listen on. If ``0`` or ``None`` (the default), a random unused port will be " +"selected (note that if *host* resolves to multiple network interfaces, a " +"different random port will be selected for each interface)." +msgstr "" + +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`)." +msgstr "" + +msgid "*flags* is a bitmask for :meth:`getaddrinfo`." +msgstr "" + +msgid "" +"*sock* can optionally be specified in order to use a preexisting socket " +"object. If specified, *host* and *port* must not be specified." +msgstr "" + +msgid "" +"The *sock* argument transfers ownership of the socket to the server created. " +"To close the socket, call the server's :meth:`~asyncio.Server.close` method." +msgstr "" + +msgid "" +"*backlog* is the maximum number of queued connections passed " +"to :meth:`~socket.socket.listen` (defaults to 100)." +msgstr "" + +msgid "" +"*ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over " +"the accepted connections." +msgstr "" + +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 "" + +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 "" + +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 "" + +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." +msgstr "" + +msgid "The *host* parameter can be a sequence of strings." +msgstr "" + +msgid "" +"Added *ssl_handshake_timeout* and *start_serving* parameters. The socket " +"option :py:data:`~socket.TCP_NODELAY` is set by default for all TCP " +"connections." +msgstr "" + +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 "" + +msgid "" +"Similar to :meth:`loop.create_server` but works with " +"the :py:data:`~socket.AF_UNIX` socket family." +msgstr "" + +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." +msgstr "" + +msgid "" +"See the documentation of the :meth:`loop.create_server` method for " +"information about arguments to this method." +msgstr "" + +msgid "" +"Added the *ssl_handshake_timeout* and *start_serving* parameters. The *path* " +"parameter can now be a :class:`~pathlib.Path` object." +msgstr "" + +msgid "Wrap an already accepted connection into a transport/protocol pair." +msgstr "" + +msgid "" +"This method can be used by servers that accept connections outside of " +"asyncio but that use asyncio to handle them." +msgstr "" + +msgid "Parameters:" +msgstr "" + +msgid "" +"*sock* is a preexisting socket object returned from :meth:`socket.accept " +"`." +msgstr "" + +msgid "" +"*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the " +"accepted connections." +msgstr "" + +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 "" + +msgid "Returns a ``(transport, protocol)`` pair." +msgstr "" + +msgid "Transferring files" +msgstr "" + +msgid "" +"Send a *file* over a *transport*. Return the total number of bytes sent." +msgstr "" + +msgid "The method uses high-performance :meth:`os.sendfile` if available." +msgstr "" + +msgid "*file* must be a regular file object opened in binary mode." +msgstr "" + +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 " +"obtain the actual number of bytes sent." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Raise :exc:`SendfileNotAvailableError` if the system does not support the " +"*sendfile* syscall and *fallback* is ``False``." +msgstr "" + +msgid "TLS Upgrade" +msgstr "" + +msgid "Upgrade an existing transport-based connection to TLS." +msgstr "" + +msgid "" +"Create a TLS coder/decoder instance and insert it between the *transport* " +"and the *protocol*. The coder/decoder implements both *transport*-facing " +"protocol and *protocol*-facing transport." +msgstr "" + +msgid "" +"Return the created two-interface instance. After *await*, the *protocol* " +"must stop using the original *transport* and communicate with the returned " +"object only because the coder caches *protocol*-side data and sporadically " +"exchanges extra TLS session packets with *transport*." +msgstr "" + +msgid "" +"In some situations (e.g. when the passed transport is already closing) this " +"may return ``None``." +msgstr "" + +msgid "" +"*transport* and *protocol* instances that methods " +"like :meth:`~loop.create_server` and :meth:`~loop.create_connection` return." +msgstr "" + +msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`." +msgstr "" + +msgid "" +"*server_side* pass ``True`` when a server-side connection is being upgraded " +"(like the one created by :meth:`~loop.create_server`)." +msgstr "" + +msgid "" +"*server_hostname*: sets or overrides the host name that the target server's " +"certificate will be matched against." +msgstr "" + +msgid "Watching file descriptors" +msgstr "" + +msgid "" +"Start monitoring the *fd* file descriptor for read availability and invoke " +"*callback* with the specified arguments once *fd* is available for reading." +msgstr "" + +msgid "" +"Stop monitoring the *fd* file descriptor for read availability. Returns " +"``True`` if *fd* was previously being monitored for reads." +msgstr "" + +msgid "" +"Start monitoring the *fd* file descriptor for write availability and invoke " +"*callback* with the specified arguments once *fd* is available for writing." +msgstr "" + +msgid "" +"Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *callback*." +msgstr "" + +msgid "" +"Stop monitoring the *fd* file descriptor for write availability. Returns " +"``True`` if *fd* was previously being monitored for writes." +msgstr "" + +msgid "" +"See also :ref:`Platform Support ` section for some " +"limitations of these methods." +msgstr "" + +msgid "Working with socket objects directly" +msgstr "" + +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." +msgstr "" + +msgid "" +"Receive up to *nbytes* from *sock*. Asynchronous version " +"of :meth:`socket.recv() `." +msgstr "" + +msgid "Return the received data as a bytes object." +msgstr "" + +msgid "*sock* must be a non-blocking socket." +msgstr "" + +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." +msgstr "" + +msgid "" +"Receive data from *sock* into the *buf* buffer. Modeled after the " +"blocking :meth:`socket.recv_into() ` method." +msgstr "" + +msgid "Return the number of bytes written to the buffer." +msgstr "" + +msgid "" +"Send *data* to the *sock* socket. Asynchronous version " +"of :meth:`socket.sendall() `." +msgstr "" + +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 " +"error, an exception is raised. Additionally, there is no way to determine " +"how much data, if any, was successfully processed by the receiving end of " +"the connection." +msgstr "" + +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 "" + +msgid "Connect *sock* to a remote socket at *address*." +msgstr "" + +msgid "" +"Asynchronous version of :meth:`socket.connect() `." +msgstr "" + +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*." +msgstr "" + +msgid "" +":meth:`loop.create_connection` and :func:`asyncio.open_connection() " +"`." +msgstr "" + +msgid "" +"Accept a connection. Modeled after the blocking :meth:`socket.accept() " +"` method." +msgstr "" + +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 " +"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 "" + +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 "" + +msgid ":meth:`loop.create_server` and :func:`start_server`." +msgstr "" + +msgid "" +"Send a file using high-performance :mod:`os.sendfile` if possible. Return " +"the total number of bytes sent." +msgstr "" + +msgid "" +"Asynchronous version of :meth:`socket.sendfile() `." +msgstr "" + +msgid "" +"*sock* must be a non-" +"blocking :const:`socket.SOCK_STREAM` :class:`~socket.socket`." +msgstr "" + +msgid "*file* must be a regular file object open in binary mode." +msgstr "" + +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 "" + +msgid "" +"Raise :exc:`SendfileNotAvailableError` if the system does not support " +"*sendfile* syscall and *fallback* is ``False``." +msgstr "" + +msgid "DNS" +msgstr "" + +msgid "Asynchronous version of :meth:`socket.getaddrinfo`." +msgstr "" + +msgid "Asynchronous version of :meth:`socket.getnameinfo`." +msgstr "" + +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 coroutines." +msgstr "" + +msgid "Working with pipes" +msgstr "" + +msgid "Register the read end of *pipe* in the event loop." +msgstr "" + +msgid "*pipe* is a :term:`file-like object `." +msgstr "" + +msgid "" +"Return pair ``(transport, protocol)``, where *transport* supports " +"the :class:`ReadTransport` interface and *protocol* is an object " +"instantiated by the *protocol_factory*." +msgstr "" + +msgid "" +"With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-" +"blocking mode." +msgstr "" + +msgid "Register the write end of *pipe* in the event loop." +msgstr "" + +msgid "*pipe* is :term:`file-like object `." +msgstr "" + +msgid "" +"Return pair ``(transport, protocol)``, where *transport* " +"supports :class:`WriteTransport` interface and *protocol* is an object " +"instantiated by the *protocol_factory*." +msgstr "" + +msgid "" +":class:`SelectorEventLoop` does not support the above methods on Windows. " +"Use :class:`ProactorEventLoop` instead for Windows." +msgstr "" + +msgid "" +"The :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` methods." +msgstr "" + +msgid "Unix signals" +msgstr "" + +msgid "Set *callback* as the handler for the *signum* signal." +msgstr "" + +msgid "" +"The callback will be invoked by *loop*, along with other queued callbacks " +"and runnable coroutines of that event loop. Unlike signal handlers " +"registered using :func:`signal.signal`, a callback registered with this " +"function is allowed to interact with the event loop." +msgstr "" + +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 "" + +msgid "" +"Like :func:`signal.signal`, this function must be invoked in the main thread." +msgstr "" + +msgid "Remove the handler for the *sig* signal." +msgstr "" + +msgid "" +"Return ``True`` if the signal handler was removed, or ``False`` if no " +"handler was set for the given signal." +msgstr "" + +msgid "The :mod:`signal` module." +msgstr "" + +msgid "Executing code in thread or process pools" +msgstr "" + +msgid "Arrange for *func* to be called in the specified executor." +msgstr "" + +msgid "" +"The *executor* argument should be an :class:`concurrent.futures.Executor` " +"instance. The default executor is used if *executor* is ``None``." +msgstr "" + +msgid "" +"Note that the entry point guard (``if __name__ == '__main__'``) is required " +"for option 3 due to the peculiarities of :mod:`multiprocessing`, which is " +"used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe " +"importing of main module `." +msgstr "" + +msgid "This method returns a :class:`asyncio.Future` object." +msgstr "" + +msgid "" +"Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *func*." +msgstr "" + +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 " +"executor (:class:`~concurrent.futures.ThreadPoolExecutor`) to set the " +"default." +msgstr "" + +msgid "" +"Set *executor* as the default executor used by :meth:`run_in_executor`. " +"*executor* should be an instance " +"of :class:`~concurrent.futures.ThreadPoolExecutor`." +msgstr "" + +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." +msgstr "" + +msgid "" +"*executor* must be an instance " +"of :class:`concurrent.futures.ThreadPoolExecutor`." +msgstr "" + +msgid "Error Handling API" +msgstr "" + +msgid "Allows customizing how exceptions are handled in the event loop." +msgstr "" + +msgid "Set *handler* as the new event loop exception handler." +msgstr "" + +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 " +"``context`` is a ``dict`` object containing the details of the exception " +"(see :meth:`call_exception_handler` documentation for details about context)." +msgstr "" + +msgid "" +"Return the current exception handler, or ``None`` if no custom exception " +"handler was set." +msgstr "" + +msgid "Default exception handler." +msgstr "" + +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 "" + +msgid "" +"*context* parameter has the same meaning as " +"in :meth:`call_exception_handler`." +msgstr "" + +msgid "Call the current event loop exception handler." +msgstr "" + +msgid "" +"*context* is a ``dict`` object containing the following keys (new keys may " +"be introduced in future Python versions):" +msgstr "" + +msgid "'message': Error message;" +msgstr "" + +msgid "'exception' (optional): Exception object;" +msgstr "" + +msgid "'future' (optional): :class:`asyncio.Future` instance;" +msgstr "" + +msgid "'task' (optional): :class:`asyncio.Task` instance;" +msgstr "" + +msgid "'handle' (optional): :class:`asyncio.Handle` instance;" +msgstr "" + +msgid "'protocol' (optional): :ref:`Protocol ` instance;" +msgstr "" + +msgid "'transport' (optional): :ref:`Transport ` instance;" +msgstr "" + +msgid "'socket' (optional): :class:`socket.socket` instance;" +msgstr "" + +msgid "'asyncgen' (optional): Asynchronous generator that caused" +msgstr "" + +msgid "the exception." +msgstr "" + +msgid "" +"This method should not be overloaded in subclassed event loops. For custom " +"exception handling, use the :meth:`set_exception_handler()` method." +msgstr "" + +msgid "Enabling debug mode" +msgstr "" + +msgid "Get the debug mode (:class:`bool`) of the event loop." +msgstr "" + +msgid "" +"The default value is ``True`` if the environment " +"variable :envvar:`PYTHONASYNCIODEBUG` is set to a non-empty string, " +"``False`` otherwise." +msgstr "" + +msgid "Set the debug mode of the event loop." +msgstr "" + +msgid "" +"The new :ref:`Python Development Mode ` can now also be used to " +"enable the debug mode." +msgstr "" + +msgid "The :ref:`debug mode of asyncio `." +msgstr "" + +msgid "Running Subprocesses" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"On Windows, the default event loop :class:`ProactorEventLoop` supports " +"subprocesses, whereas :class:`SelectorEventLoop` does not. " +"See :ref:`Subprocess Support on Windows ` for " +"details." +msgstr "" + +msgid "" +"Create a subprocess from one or more string arguments specified by *args*." +msgstr "" + +msgid "*args* must be a list of strings represented by:" +msgstr "" + +msgid ":class:`str`;" +msgstr ":class:`str`;" + +msgid "" +"or :class:`bytes`, encoded to the :ref:`filesystem encoding `." +msgstr "" + +msgid "" +"The first string specifies the program executable, and the remaining strings " +"specify the arguments. Together, string arguments form the ``argv`` of the " +"program." +msgstr "" + +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 " +"argument; however, where :class:`~subprocess.Popen` takes a single argument " +"which is list of strings, *subprocess_exec* takes multiple string arguments." +msgstr "" + +msgid "" +"The *protocol_factory* must be a callable returning a subclass of " +"the :class:`asyncio.SubprocessProtocol` class." +msgstr "" + +msgid "Other parameters:" +msgstr "" + +msgid "*stdin* can be any of these:" +msgstr "" + +msgid "" +"a file-like object representing a pipe to be connected to the subprocess's " +"standard input stream using :meth:`~loop.connect_write_pipe`" +msgstr "" + +msgid "" +"the :const:`subprocess.PIPE` constant (default) which will create a new pipe " +"and connect it," +msgstr "" + +msgid "" +"the value ``None`` which will make the subprocess inherit the file " +"descriptor from this process" +msgstr "" + +msgid "" +"the :const:`subprocess.DEVNULL` constant which indicates that the " +"special :data:`os.devnull` file will be used" +msgstr "" + +msgid "*stdout* can be any of these:" +msgstr "" + +msgid "" +"a file-like object representing a pipe to be connected to the subprocess's " +"standard output stream using :meth:`~loop.connect_write_pipe`" +msgstr "" + +msgid "*stderr* can be any of these:" +msgstr "" + +msgid "" +"a file-like object representing a pipe to be connected to the subprocess's " +"standard error stream using :meth:`~loop.connect_write_pipe`" +msgstr "" + +msgid "" +"the :const:`subprocess.STDOUT` constant which will connect the standard " +"error stream to the process' standard output stream" +msgstr "" + +msgid "" +"All other keyword arguments are passed to :class:`subprocess.Popen` without " +"interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, " +"*encoding* and *errors*, which should not be specified at all." +msgstr "" + +msgid "" +"The ``asyncio`` subprocess API does not support decoding the streams as " +"text. :func:`bytes.decode` can be used to convert the bytes returned from " +"the stream to text." +msgstr "" + +msgid "" +"See the constructor of the :class:`subprocess.Popen` class for documentation " +"on other arguments." +msgstr "" + +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 "" + +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 "" + +msgid "" +"This is similar to the standard library :class:`subprocess.Popen` class " +"called with ``shell=True``." +msgstr "" + +msgid "" +"The *protocol_factory* must be a callable returning a subclass of " +"the :class:`SubprocessProtocol` class." +msgstr "" + +msgid "" +"See :meth:`~loop.subprocess_exec` for more details about the remaining " +"arguments." +msgstr "" + +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 "" + +msgid "" +"It is the application's responsibility to ensure that all whitespace and " +"special characters are quoted appropriately to avoid `shell injection " +"`_ " +"vulnerabilities. The :func:`shlex.quote` function can be used to properly " +"escape whitespace and special characters in strings that are going to be " +"used to construct shell commands." +msgstr "" + +msgid "Callback Handles" +msgstr "" + +msgid "" +"A callback wrapper object returned " +"by :meth:`loop.call_soon`, :meth:`loop.call_soon_threadsafe`." +msgstr "" + +msgid "" +"Cancel the callback. If the callback has already been canceled or executed, " +"this method has no effect." +msgstr "" + +msgid "Return ``True`` if the callback was cancelled." +msgstr "" + +msgid "" +"A callback wrapper object returned by :meth:`loop.call_later`, " +"and :meth:`loop.call_at`." +msgstr "" + +msgid "This class is a subclass of :class:`Handle`." +msgstr "" + +msgid "Return a scheduled callback time as :class:`float` seconds." +msgstr "" + +msgid "" +"The time is an absolute timestamp, using the same time reference " +"as :meth:`loop.time`." +msgstr "" + +msgid "Server Objects" +msgstr "" + +msgid "" +"Server objects are created " +"by :meth:`loop.create_server`, :meth:`loop.create_unix_server`, :func:`start_server`, " +"and :func:`start_unix_server` functions." +msgstr "" + +msgid "Do not instantiate the class directly." +msgstr "" + +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 " +"accepting new connections when the ``async with`` statement is completed::" +msgstr "" + +msgid "Server object is an asynchronous context manager since Python 3.7." +msgstr "" + +msgid "" +"Stop serving: close listening sockets and set the :attr:`sockets` attribute " +"to ``None``." +msgstr "" + +msgid "" +"The sockets that represent existing incoming client connections are left " +"open." +msgstr "" + +msgid "" +"The server is closed asynchronously, use the :meth:`wait_closed` coroutine " +"to wait until the server is closed." +msgstr "" + +msgid "Return the event loop associated with the server object." +msgstr "" + +msgid "Start accepting connections." +msgstr "" + +msgid "" +"This method is idempotent, so it can be called when the server is already " +"being serving." +msgstr "" + +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 " +"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 "" + +msgid "" +"Start accepting connections until the coroutine is cancelled. Cancellation " +"of ``serve_forever`` task causes the server to be closed." +msgstr "" + +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 "" + +msgid "Return ``True`` if the server is accepting new connections." +msgstr "" + +msgid "Wait until the :meth:`close` method completes." +msgstr "" + +msgid "List of :class:`socket.socket` objects the server is listening on." +msgstr "" + +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 "" + +msgid "Event Loop Implementations" +msgstr "" + +msgid "" +"asyncio ships with two different event loop " +"implementations: :class:`SelectorEventLoop` and :class:`ProactorEventLoop`." +msgstr "" + +msgid "" +"By default asyncio is configured to use :class:`SelectorEventLoop` on Unix " +"and :class:`ProactorEventLoop` on Windows." +msgstr "" + +msgid "An event loop based on the :mod:`selectors` module." +msgstr "" + +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 "" + +msgid ":ref:`Availability `: Unix, Windows." +msgstr "" + +msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" + +msgid "" +"`MSDN documentation on I/O Completion Ports `_." +msgstr "" + +msgid "Abstract base class for asyncio-compliant event loops." +msgstr "" + +msgid "" +"The :ref:`asyncio-event-loop-methods` section lists all methods that an " +"alternative implementation of ``AbstractEventLoop`` should have defined." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +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`." +msgstr "" + +msgid "Hello World with call_soon()" +msgstr "" + +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 "" + +msgid "" +"A similar :ref:`Hello World ` example created with a coroutine " +"and the :func:`run` function." +msgstr "" + +msgid "Display the current date with call_later()" +msgstr "" + +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 "" + +msgid "" +"A similar :ref:`current date ` example created with a " +"coroutine and the :func:`run` function." +msgstr "" + +msgid "Watch a file descriptor for read events" +msgstr "" + +msgid "" +"Wait until a file descriptor received some data using " +"the :meth:`loop.add_reader` method and then close the event loop::" +msgstr "" + +msgid "" +"A similar :ref:`example ` using " +"transports, protocols, and the :meth:`loop.create_connection` method." +msgstr "" + +msgid "" +"Another similar :ref:`example ` " +"using the high-level :func:`asyncio.open_connection` function and streams." +msgstr "" + +msgid "Set signal handlers for SIGINT and SIGTERM" +msgstr "" + +msgid "(This ``signals`` example only works on Unix.)" +msgstr "" + +msgid "" +"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-exceptions.po b/library/asyncio-exceptions.po index f67c977f7a..46bc5e345b 100644 --- a/library/asyncio-exceptions.po +++ b/library/asyncio-exceptions.po @@ -1,40 +1,39 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:54+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Exceptions" msgstr "Wyjątki" msgid "**Source code:** :source:`Lib/asyncio/exceptions.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/exceptions.py`" -msgid "" -"A deprecated alias of :exc:`TimeoutError`, raised when the operation has " -"exceeded the given deadline." +msgid "The operation has exceeded the given deadline." msgstr "" -msgid "This class was made an alias of :exc:`TimeoutError`." +msgid "" +"This exception is different from the builtin :exc:`TimeoutError` exception." msgstr "" msgid "The operation has been cancelled." diff --git a/library/asyncio-future.po b/library/asyncio-future.po new file mode 100644 index 0000000000..777a41137e --- /dev/null +++ b/library/asyncio-future.po @@ -0,0 +1,292 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Futures" +msgstr "" + +msgid "" +"**Source code:** :source:`Lib/asyncio/futures.py`, :source:`Lib/asyncio/" +"base_futures.py`" +msgstr "" +"**Kod źródłowy:** :source:`Lib/asyncio/futures.py`, :source:`Lib/asyncio/" +"base_futures.py`" + +msgid "" +"*Future* objects are used to bridge **low-level callback-based code** with " +"high-level async/await code." +msgstr "" + +msgid "Future Functions" +msgstr "" + +msgid "Return ``True`` if *obj* is either of:" +msgstr "" + +msgid "an instance of :class:`asyncio.Future`," +msgstr "" + +msgid "an instance of :class:`asyncio.Task`," +msgstr "" + +msgid "a Future-like object with a ``_asyncio_future_blocking`` attribute." +msgstr "" + +msgid "Return:" +msgstr "" + +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 "" + +msgid "" +"a :class:`Task` object wrapping *obj*, if *obj* is a coroutine " +"(:func:`iscoroutine` is used for the test); in this case the coroutine will " +"be scheduled by ``ensure_future()``." +msgstr "" + +msgid "" +"a :class:`Task` object that would await on *obj*, if *obj* is an awaitable " +"(:func:`inspect.isawaitable` is used for the test.)" +msgstr "" + +msgid "If *obj* is neither of the above a :exc:`TypeError` is raised." +msgstr "" + +msgid "" +"See also the :func:`create_task` function which is the preferred way for " +"creating new Tasks." +msgstr "" + +msgid "" +"Save a reference to the result of this function, to avoid a task " +"disappearing mid-execution." +msgstr "" + +msgid "The function accepts any :term:`awaitable` object." +msgstr "" + +msgid "" +"Deprecation warning is emitted if *obj* is not a Future-like object and " +"*loop* is not specified and there is no running event loop." +msgstr "" + +msgid "" +"Wrap a :class:`concurrent.futures.Future` object in " +"a :class:`asyncio.Future` object." +msgstr "" + +msgid "" +"Deprecation warning is emitted if *future* is not a Future-like object and " +"*loop* is not specified and there is no running event loop." +msgstr "" + +msgid "Future Object" +msgstr "" + +msgid "" +"A Future represents an eventual result of an asynchronous operation. Not " +"thread-safe." +msgstr "" + +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. A Future can be awaited multiple times and the result is same." +msgstr "" + +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 "" + +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.create_future`. This way alternative event loop " +"implementations can inject their own optimized implementations of a Future " +"object." +msgstr "" + +msgid "Added support for the :mod:`contextvars` module." +msgstr "" + +msgid "" +"Deprecation warning is emitted if *loop* is not specified and there is no " +"running event loop." +msgstr "" + +msgid "Return the result of the Future." +msgstr "" + +msgid "" +"If the Future is *done* and has a result set by the :meth:`set_result` " +"method, the result value is returned." +msgstr "" + +msgid "" +"If the Future is *done* and has an exception set by " +"the :meth:`set_exception` method, this method raises the exception." +msgstr "" + +msgid "" +"If the Future has been *cancelled*, this method raises " +"a :exc:`CancelledError` exception." +msgstr "" + +msgid "" +"If the Future's result isn't yet available, this method raises " +"a :exc:`InvalidStateError` exception." +msgstr "" + +msgid "Mark the Future as *done* and set its result." +msgstr "" + +msgid "" +"Raises a :exc:`InvalidStateError` error if the Future is already *done*." +msgstr "" + +msgid "Mark the Future as *done* and set an exception." +msgstr "" + +msgid "Return ``True`` if the Future is *done*." +msgstr "" + +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 "" + +msgid "Return ``True`` if the Future was *cancelled*." +msgstr "" + +msgid "" +"The method is usually used to check if a Future is not *cancelled* before " +"setting a result or an exception for it::" +msgstr "" + +msgid "Add a callback to be run when the Future is *done*." +msgstr "" + +msgid "The *callback* is called with the Future object as its only argument." +msgstr "" + +msgid "" +"If the Future is already *done* when this method is called, the callback is " +"scheduled with :meth:`loop.call_soon`." +msgstr "" + +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 "" + +msgid "" +":func:`functools.partial` can be used to pass parameters to the callback, " +"e.g.::" +msgstr "" + +msgid "" +"The *context* keyword-only parameter was added. See :pep:`567` for more " +"details." +msgstr "" + +msgid "Remove *callback* from the callbacks list." +msgstr "" + +msgid "" +"Returns the number of callbacks removed, which is typically 1, unless a " +"callback was added more than once." +msgstr "" + +msgid "Cancel the Future and schedule callbacks." +msgstr "" + +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 "" + +msgid "Added the *msg* parameter." +msgstr "" + +msgid "Return the exception that was set on this Future." +msgstr "" + +msgid "" +"The exception (or ``None`` if no exception was set) is returned only if the " +"Future is *done*." +msgstr "" + +msgid "" +"If the Future isn't *done* yet, this method raises " +"an :exc:`InvalidStateError` exception." +msgstr "" + +msgid "Return the event loop the Future object is bound to." +msgstr "" + +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 "" + +msgid "" +"The Future object was designed to mimic :class:`concurrent.futures.Future`. " +"Key differences include:" +msgstr "" + +msgid "" +"unlike asyncio Futures, :class:`concurrent.futures.Future` instances cannot " +"be awaited." +msgstr "" + +msgid "" +":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` do not " +"accept the *timeout* argument." +msgstr "" + +msgid "" +":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` raise " +"an :exc:`InvalidStateError` exception when the Future is not *done*." +msgstr "" + +msgid "" +"Callbacks registered with :meth:`asyncio.Future.add_done_callback` are not " +"called immediately. They are scheduled with :meth:`loop.call_soon` instead." +msgstr "" + +msgid "" +"asyncio Future is not compatible with the :func:`concurrent.futures.wait` " +"and :func:`concurrent.futures.as_completed` functions." +msgstr "" + +msgid "" +":meth:`asyncio.Future.cancel` accepts an optional ``msg`` argument, " +"but :func:`concurrent.futures.cancel` does not." +msgstr "" diff --git a/library/asyncio-llapi-index.po b/library/asyncio-llapi-index.po new file mode 100644 index 0000000000..b4f1cf5154 --- /dev/null +++ b/library/asyncio-llapi-index.po @@ -0,0 +1,780 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Low-level API Index" +msgstr "" + +msgid "This page lists all low-level asyncio APIs." +msgstr "" + +msgid "Obtaining the Event Loop" +msgstr "" + +msgid ":func:`asyncio.get_running_loop`" +msgstr ":func:`asyncio.get_running_loop`" + +msgid "The **preferred** function to get the running event loop." +msgstr "" + +msgid ":func:`asyncio.get_event_loop`" +msgstr ":func:`asyncio.get_event_loop`" + +msgid "Get an event loop instance (running or current via the current policy)." +msgstr "" + +msgid ":func:`asyncio.set_event_loop`" +msgstr ":func:`asyncio.set_event_loop`" + +msgid "Set the event loop as current via the current policy." +msgstr "" + +msgid ":func:`asyncio.new_event_loop`" +msgstr ":func:`asyncio.new_event_loop`" + +msgid "Create a new event loop." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid ":ref:`Using asyncio.get_running_loop() `." +msgstr "" + +msgid "Event Loop Methods" +msgstr "" + +msgid "" +"See also the main documentation section about the :ref:`asyncio-event-loop-" +"methods`." +msgstr "" + +msgid "Lifecycle" +msgstr "" + +msgid ":meth:`loop.run_until_complete`" +msgstr ":meth:`loop.run_until_complete`" + +msgid "Run a Future/Task/awaitable until complete." +msgstr "" + +msgid ":meth:`loop.run_forever`" +msgstr ":meth:`loop.run_forever`" + +msgid "Run the event loop forever." +msgstr "" + +msgid ":meth:`loop.stop`" +msgstr ":meth:`loop.stop`" + +msgid "Stop the event loop." +msgstr "" + +msgid ":meth:`loop.close`" +msgstr ":meth:`loop.close`" + +msgid "Close the event loop." +msgstr "" + +msgid ":meth:`loop.is_running()`" +msgstr "" + +msgid "Return ``True`` if the event loop is running." +msgstr "" + +msgid ":meth:`loop.is_closed()`" +msgstr "" + +msgid "Return ``True`` if the event loop is closed." +msgstr "" + +msgid "``await`` :meth:`loop.shutdown_asyncgens`" +msgstr "``await`` :meth:`loop.shutdown_asyncgens`" + +msgid "Close asynchronous generators." +msgstr "" + +msgid "Debugging" +msgstr "" + +msgid ":meth:`loop.set_debug`" +msgstr ":meth:`loop.set_debug`" + +msgid "Enable or disable the debug mode." +msgstr "" + +msgid ":meth:`loop.get_debug`" +msgstr ":meth:`loop.get_debug`" + +msgid "Get the current debug mode." +msgstr "" + +msgid "Scheduling Callbacks" +msgstr "" + +msgid ":meth:`loop.call_soon`" +msgstr ":meth:`loop.call_soon`" + +msgid "Invoke a callback soon." +msgstr "" + +msgid ":meth:`loop.call_soon_threadsafe`" +msgstr ":meth:`loop.call_soon_threadsafe`" + +msgid "A thread-safe variant of :meth:`loop.call_soon`." +msgstr "" + +msgid ":meth:`loop.call_later`" +msgstr ":meth:`loop.call_later`" + +msgid "Invoke a callback *after* the given time." +msgstr "" + +msgid ":meth:`loop.call_at`" +msgstr ":meth:`loop.call_at`" + +msgid "Invoke a callback *at* the given time." +msgstr "" + +msgid "Thread/Process Pool" +msgstr "" + +msgid "``await`` :meth:`loop.run_in_executor`" +msgstr "``await`` :meth:`loop.run_in_executor`" + +msgid "" +"Run a CPU-bound or other blocking function in a :mod:`concurrent.futures` " +"executor." +msgstr "" + +msgid ":meth:`loop.set_default_executor`" +msgstr ":meth:`loop.set_default_executor`" + +msgid "Set the default executor for :meth:`loop.run_in_executor`." +msgstr "" + +msgid "Tasks and Futures" +msgstr "" + +msgid ":meth:`loop.create_future`" +msgstr ":meth:`loop.create_future`" + +msgid "Create a :class:`Future` object." +msgstr "" + +msgid ":meth:`loop.create_task`" +msgstr ":meth:`loop.create_task`" + +msgid "Schedule coroutine as a :class:`Task`." +msgstr "" + +msgid ":meth:`loop.set_task_factory`" +msgstr ":meth:`loop.set_task_factory`" + +msgid "" +"Set a factory used by :meth:`loop.create_task` to create :class:`Tasks " +"`." +msgstr "" + +msgid ":meth:`loop.get_task_factory`" +msgstr ":meth:`loop.get_task_factory`" + +msgid "" +"Get the factory :meth:`loop.create_task` uses to create :class:`Tasks " +"`." +msgstr "" + +msgid "DNS" +msgstr "" + +msgid "``await`` :meth:`loop.getaddrinfo`" +msgstr "``await`` :meth:`loop.getaddrinfo`" + +msgid "Asynchronous version of :meth:`socket.getaddrinfo`." +msgstr "" + +msgid "``await`` :meth:`loop.getnameinfo`" +msgstr "``await`` :meth:`loop.getnameinfo`" + +msgid "Asynchronous version of :meth:`socket.getnameinfo`." +msgstr "" + +msgid "Networking and IPC" +msgstr "" + +msgid "``await`` :meth:`loop.create_connection`" +msgstr "``await`` :meth:`loop.create_connection`" + +msgid "Open a TCP connection." +msgstr "" + +msgid "``await`` :meth:`loop.create_server`" +msgstr "``await`` :meth:`loop.create_server`" + +msgid "Create a TCP server." +msgstr "" + +msgid "``await`` :meth:`loop.create_unix_connection`" +msgstr "``await`` :meth:`loop.create_unix_connection`" + +msgid "Open a Unix socket connection." +msgstr "" + +msgid "``await`` :meth:`loop.create_unix_server`" +msgstr "``await`` :meth:`loop.create_unix_server`" + +msgid "Create a Unix socket server." +msgstr "" + +msgid "``await`` :meth:`loop.connect_accepted_socket`" +msgstr "``await`` :meth:`loop.connect_accepted_socket`" + +msgid "Wrap a :class:`~socket.socket` into a ``(transport, protocol)`` pair." +msgstr "" + +msgid "``await`` :meth:`loop.create_datagram_endpoint`" +msgstr "``await`` :meth:`loop.create_datagram_endpoint`" + +msgid "Open a datagram (UDP) connection." +msgstr "" + +msgid "``await`` :meth:`loop.sendfile`" +msgstr "``await`` :meth:`loop.sendfile`" + +msgid "Send a file over a transport." +msgstr "" + +msgid "``await`` :meth:`loop.start_tls`" +msgstr "``await`` :meth:`loop.start_tls`" + +msgid "Upgrade an existing connection to TLS." +msgstr "" + +msgid "``await`` :meth:`loop.connect_read_pipe`" +msgstr "``await`` :meth:`loop.connect_read_pipe`" + +msgid "Wrap a read end of a pipe into a ``(transport, protocol)`` pair." +msgstr "" + +msgid "``await`` :meth:`loop.connect_write_pipe`" +msgstr "``await`` :meth:`loop.connect_write_pipe`" + +msgid "Wrap a write end of a pipe into a ``(transport, protocol)`` pair." +msgstr "" + +msgid "Sockets" +msgstr "Sockets" + +msgid "``await`` :meth:`loop.sock_recv`" +msgstr "``await`` :meth:`loop.sock_recv`" + +msgid "Receive data from the :class:`~socket.socket`." +msgstr "" + +msgid "``await`` :meth:`loop.sock_recv_into`" +msgstr "``await`` :meth:`loop.sock_recv_into`" + +msgid "Receive data from the :class:`~socket.socket` into a buffer." +msgstr "" + +msgid "``await`` :meth:`loop.sock_sendall`" +msgstr "``await`` :meth:`loop.sock_sendall`" + +msgid "Send data to the :class:`~socket.socket`." +msgstr "" + +msgid "``await`` :meth:`loop.sock_connect`" +msgstr "``await`` :meth:`loop.sock_connect`" + +msgid "Connect the :class:`~socket.socket`." +msgstr "" + +msgid "``await`` :meth:`loop.sock_accept`" +msgstr "``await`` :meth:`loop.sock_accept`" + +msgid "Accept a :class:`~socket.socket` connection." +msgstr "" + +msgid "``await`` :meth:`loop.sock_sendfile`" +msgstr "``await`` :meth:`loop.sock_sendfile`" + +msgid "Send a file over the :class:`~socket.socket`." +msgstr "" + +msgid ":meth:`loop.add_reader`" +msgstr ":meth:`loop.add_reader`" + +msgid "Start watching a file descriptor for read availability." +msgstr "" + +msgid ":meth:`loop.remove_reader`" +msgstr ":meth:`loop.remove_reader`" + +msgid "Stop watching a file descriptor for read availability." +msgstr "" + +msgid ":meth:`loop.add_writer`" +msgstr ":meth:`loop.add_writer`" + +msgid "Start watching a file descriptor for write availability." +msgstr "" + +msgid ":meth:`loop.remove_writer`" +msgstr ":meth:`loop.remove_writer`" + +msgid "Stop watching a file descriptor for write availability." +msgstr "" + +msgid "Unix Signals" +msgstr "" + +msgid ":meth:`loop.add_signal_handler`" +msgstr ":meth:`loop.add_signal_handler`" + +msgid "Add a handler for a :mod:`signal`." +msgstr "" + +msgid ":meth:`loop.remove_signal_handler`" +msgstr ":meth:`loop.remove_signal_handler`" + +msgid "Remove a handler for a :mod:`signal`." +msgstr "" + +msgid "Subprocesses" +msgstr "" + +msgid ":meth:`loop.subprocess_exec`" +msgstr ":meth:`loop.subprocess_exec`" + +msgid "Spawn a subprocess." +msgstr "" + +msgid ":meth:`loop.subprocess_shell`" +msgstr ":meth:`loop.subprocess_shell`" + +msgid "Spawn a subprocess from a shell command." +msgstr "" + +msgid "Error Handling" +msgstr "Przechwytywanie błędów" + +msgid ":meth:`loop.call_exception_handler`" +msgstr ":meth:`loop.call_exception_handler`" + +msgid "Call the exception handler." +msgstr "" + +msgid ":meth:`loop.set_exception_handler`" +msgstr ":meth:`loop.set_exception_handler`" + +msgid "Set a new exception handler." +msgstr "" + +msgid ":meth:`loop.get_exception_handler`" +msgstr ":meth:`loop.get_exception_handler`" + +msgid "Get the current exception handler." +msgstr "" + +msgid ":meth:`loop.default_exception_handler`" +msgstr ":meth:`loop.default_exception_handler`" + +msgid "The default exception handler implementation." +msgstr "" + +msgid "" +":ref:`Using asyncio.get_event_loop() and loop.run_forever() " +"`." +msgstr "" + +msgid ":ref:`Using loop.call_later() `." +msgstr "" + +msgid "" +"Using ``loop.create_connection()`` to implement :ref:`an echo-client " +"`." +msgstr "" + +msgid "" +"Using ``loop.create_connection()`` to :ref:`connect a socket " +"`." +msgstr "" + +msgid "" +":ref:`Using add_reader() to watch an FD for read events " +"`." +msgstr "" + +msgid ":ref:`Using loop.add_signal_handler() `." +msgstr "" + +msgid ":ref:`Using loop.subprocess_exec() `." +msgstr "" + +msgid "Transports" +msgstr "" + +msgid "All transports implement the following methods:" +msgstr "" + +msgid ":meth:`transport.close() `" +msgstr ":meth:`transport.close() `" + +msgid "Close the transport." +msgstr "" + +msgid ":meth:`transport.is_closing() `" +msgstr ":meth:`transport.is_closing() `" + +msgid "Return ``True`` if the transport is closing or is closed." +msgstr "" + +msgid ":meth:`transport.get_extra_info() `" +msgstr ":meth:`transport.get_extra_info() `" + +msgid "Request for information about the transport." +msgstr "" + +msgid ":meth:`transport.set_protocol() `" +msgstr ":meth:`transport.set_protocol() `" + +msgid "Set a new protocol." +msgstr "" + +msgid ":meth:`transport.get_protocol() `" +msgstr ":meth:`transport.get_protocol() `" + +msgid "Return the current protocol." +msgstr "" + +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 "" + +msgid "Read Transports" +msgstr "" + +msgid ":meth:`transport.is_reading() `" +msgstr ":meth:`transport.is_reading() `" + +msgid "Return ``True`` if the transport is receiving." +msgstr "" + +msgid ":meth:`transport.pause_reading() `" +msgstr ":meth:`transport.pause_reading() `" + +msgid "Pause receiving." +msgstr "" + +msgid ":meth:`transport.resume_reading() `" +msgstr ":meth:`transport.resume_reading() `" + +msgid "Resume receiving." +msgstr "" + +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 "" + +msgid "Write Transports" +msgstr "" + +msgid ":meth:`transport.write() `" +msgstr ":meth:`transport.write() `" + +msgid "Write data to the transport." +msgstr "" + +msgid ":meth:`transport.writelines() `" +msgstr ":meth:`transport.writelines() `" + +msgid "Write buffers to the transport." +msgstr "" + +msgid ":meth:`transport.can_write_eof() `" +msgstr ":meth:`transport.can_write_eof() `" + +msgid "Return :const:`True` if the transport supports sending EOF." +msgstr "" + +msgid ":meth:`transport.write_eof() `" +msgstr ":meth:`transport.write_eof() `" + +msgid "Close and send EOF after flushing buffered data." +msgstr "" + +msgid ":meth:`transport.abort() `" +msgstr ":meth:`transport.abort() `" + +msgid "Close the transport immediately." +msgstr "" + +msgid "" +":meth:`transport.get_write_buffer_size() " +"`" +msgstr "" +":meth:`transport.get_write_buffer_size() " +"`" + +msgid "Return the current size of the output buffer." +msgstr "" + +msgid "" +":meth:`transport.get_write_buffer_limits() " +"`" +msgstr "" + +msgid "Return high and low water marks for write flow control." +msgstr "" + +msgid "" +":meth:`transport.set_write_buffer_limits() " +"`" +msgstr "" +":meth:`transport.set_write_buffer_limits() " +"`" + +msgid "Set new high and low water marks for write flow control." +msgstr "" + +msgid "Transports returned by :meth:`loop.create_datagram_endpoint`:" +msgstr "" + +msgid "Datagram Transports" +msgstr "" + +msgid ":meth:`transport.sendto() `" +msgstr ":meth:`transport.sendto() `" + +msgid "Send data to the remote peer." +msgstr "" + +msgid ":meth:`transport.abort() `" +msgstr ":meth:`transport.abort() `" + +msgid "" +"Low-level transport abstraction over subprocesses. Returned " +"by :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell`:" +msgstr "" + +msgid "Subprocess Transports" +msgstr "" + +msgid ":meth:`transport.get_pid() `" +msgstr ":meth:`transport.get_pid() `" + +msgid "Return the subprocess process id." +msgstr "" + +msgid "" +":meth:`transport.get_pipe_transport() " +"`" +msgstr "" +":meth:`transport.get_pipe_transport() " +"`" + +msgid "" +"Return the transport for the requested communication pipe (*stdin*, " +"*stdout*, or *stderr*)." +msgstr "" + +msgid ":meth:`transport.get_returncode() `" +msgstr "" +":meth:`transport.get_returncode() `" + +msgid "Return the subprocess return code." +msgstr "" + +msgid ":meth:`transport.kill() `" +msgstr ":meth:`transport.kill() `" + +msgid "Kill the subprocess." +msgstr "" + +msgid ":meth:`transport.send_signal() `" +msgstr ":meth:`transport.send_signal() `" + +msgid "Send a signal to the subprocess." +msgstr "" + +msgid ":meth:`transport.terminate() `" +msgstr ":meth:`transport.terminate() `" + +msgid "Stop the subprocess." +msgstr "" + +msgid ":meth:`transport.close() `" +msgstr ":meth:`transport.close() `" + +msgid "Kill the subprocess and close all pipes." +msgstr "" + +msgid "Protocols" +msgstr "" + +msgid "Protocol classes can implement the following **callback methods**:" +msgstr "" + +msgid "``callback`` :meth:`connection_made() `" +msgstr "``callback`` :meth:`connection_made() `" + +msgid "Called when a connection is made." +msgstr "" + +msgid "``callback`` :meth:`connection_lost() `" +msgstr "``callback`` :meth:`connection_lost() `" + +msgid "Called when the connection is lost or closed." +msgstr "" + +msgid "``callback`` :meth:`pause_writing() `" +msgstr "``callback`` :meth:`pause_writing() `" + +msgid "Called when the transport's buffer goes over the high water mark." +msgstr "" + +msgid "``callback`` :meth:`resume_writing() `" +msgstr "``callback`` :meth:`resume_writing() `" + +msgid "Called when the transport's buffer drains below the low water mark." +msgstr "" + +msgid "Streaming Protocols (TCP, Unix Sockets, Pipes)" +msgstr "" + +msgid "``callback`` :meth:`data_received() `" +msgstr "``callback`` :meth:`data_received() `" + +msgid "Called when some data is received." +msgstr "" + +msgid "``callback`` :meth:`eof_received() `" +msgstr "``callback`` :meth:`eof_received() `" + +msgid "Called when an EOF is received." +msgstr "" + +msgid "Buffered Streaming Protocols" +msgstr "" + +msgid "``callback`` :meth:`get_buffer() `" +msgstr "``callback`` :meth:`get_buffer() `" + +msgid "Called to allocate a new receive buffer." +msgstr "" + +msgid "``callback`` :meth:`buffer_updated() `" +msgstr "" +"``callback`` :meth:`buffer_updated() `" + +msgid "Called when the buffer was updated with the received data." +msgstr "" + +msgid "``callback`` :meth:`eof_received() `" +msgstr "``callback`` :meth:`eof_received() `" + +msgid "Datagram Protocols" +msgstr "" + +msgid "" +"``callback`` :meth:`datagram_received() `" +msgstr "" +"``callback`` :meth:`datagram_received() `" + +msgid "Called when a datagram is received." +msgstr "" + +msgid "``callback`` :meth:`error_received() `" +msgstr "" +"``callback`` :meth:`error_received() `" + +msgid "" +"Called when a previous send or receive operation raises an :class:`OSError`." +msgstr "" + +msgid "Subprocess Protocols" +msgstr "" + +msgid "" +"``callback`` :meth:`pipe_data_received() " +"`" +msgstr "" + +msgid "" +"Called when the child process writes data into its *stdout* or *stderr* pipe." +msgstr "" + +msgid "" +"``callback`` :meth:`pipe_connection_lost() " +"`" +msgstr "" + +msgid "" +"Called when one of the pipes communicating with the child process is closed." +msgstr "" + +msgid "" +"``callback`` :meth:`process_exited() `" +msgstr "" +"``callback`` :meth:`process_exited() `" + +msgid "Called when the child process has exited." +msgstr "" + +msgid "Event Loop Policies" +msgstr "" + +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 "" + +msgid "Accessing Policies" +msgstr "" + +msgid ":meth:`asyncio.get_event_loop_policy`" +msgstr ":meth:`asyncio.get_event_loop_policy`" + +msgid "Return the current process-wide policy." +msgstr "" + +msgid ":meth:`asyncio.set_event_loop_policy`" +msgstr ":meth:`asyncio.set_event_loop_policy`" + +msgid "Set a new process-wide policy." +msgstr "" + +msgid ":class:`AbstractEventLoopPolicy`" +msgstr ":class:`AbstractEventLoopPolicy`" + +msgid "Base class for policy objects." +msgstr "" diff --git a/library/asyncio-platforms.po b/library/asyncio-platforms.po new file mode 100644 index 0000000000..97da1135e9 --- /dev/null +++ b/library/asyncio-platforms.po @@ -0,0 +1,139 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Platform Support" +msgstr "" + +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 "" + +msgid "All Platforms" +msgstr "" + +msgid "" +":meth:`loop.add_reader` and :meth:`loop.add_writer` cannot be used to " +"monitor file I/O." +msgstr "" + +msgid "Windows" +msgstr "Windows" + +msgid "" +"**Source code:** :source:`Lib/asyncio/proactor_events.py`, :source:`Lib/" +"asyncio/windows_events.py`, :source:`Lib/asyncio/windows_utils.py`" +msgstr "" +"**Kod źródłowy:** :source:`Lib/asyncio/proactor_events.py`, :source:`Lib/" +"asyncio/windows_events.py`, :source:`Lib/asyncio/windows_utils.py`" + +msgid "On Windows, :class:`ProactorEventLoop` is now the default event loop." +msgstr "" + +msgid "All event loops on Windows do not support the following methods:" +msgstr "" + +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 "" + +msgid "" +":meth:`loop.add_signal_handler` and :meth:`loop.remove_signal_handler` are " +"not supported." +msgstr "" + +msgid ":class:`SelectorEventLoop` has the following limitations:" +msgstr "" + +msgid "" +":class:`~selectors.SelectSelector` is used to wait on socket events: it " +"supports sockets and is limited to 512 sockets." +msgstr "" + +msgid "" +":meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket " +"handles (e.g. pipe file descriptors are not supported)." +msgstr "" + +msgid "" +"Pipes are not supported, so the :meth:`loop.connect_read_pipe` " +"and :meth:`loop.connect_write_pipe` methods are not implemented." +msgstr "" + +msgid "" +":ref:`Subprocesses ` are not supported, " +"i.e. :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` methods " +"are not implemented." +msgstr "" + +msgid ":class:`ProactorEventLoop` has the following limitations:" +msgstr "" + +msgid "" +"The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not " +"supported." +msgstr "" + +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." +msgstr "" + +msgid "Subprocess Support on Windows" +msgstr "" + +msgid "" +"On Windows, the default event loop :class:`ProactorEventLoop` supports " +"subprocesses, whereas :class:`SelectorEventLoop` does not." +msgstr "" + +msgid "" +"The :meth:`policy.set_child_watcher() " +"` function is also not supported, " +"as :class:`ProactorEventLoop` has a different mechanism to watch child " +"processes." +msgstr "" + +msgid "macOS" +msgstr "macOS" + +msgid "Modern macOS versions are fully supported." +msgstr "" + +msgid "macOS <= 10.8" +msgstr "" + +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 versions. The :class:`SelectorEventLoop` can be manually " +"configured to use :class:`~selectors.SelectSelector` " +"or :class:`~selectors.PollSelector` to support character devices on these " +"older versions of macOS. Example::" +msgstr "" diff --git a/library/asyncio-protocol.po b/library/asyncio-protocol.po index ff48bde8c2..1435c429e2 100644 --- a/library/asyncio-protocol.po +++ b/library/asyncio-protocol.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Transports and Protocols" msgstr "" @@ -73,11 +71,11 @@ msgid "" msgstr "" 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 "" msgid "Contents" @@ -87,15 +85,15 @@ msgid "This documentation page contains the following sections:" msgstr "" 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 "" 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 "" msgid "" @@ -107,7 +105,7 @@ msgid "Transports" msgstr "" msgid "**Source code:** :source:`Lib/asyncio/transports.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/transports.py`" msgid "" "Transports are classes provided by :mod:`asyncio` in order to abstract " @@ -140,18 +138,18 @@ msgid "A base transport for write-only connections." msgstr "" 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 "" msgid "A base transport for read-only connections." msgstr "" 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 "" msgid "" @@ -166,8 +164,8 @@ msgstr "" 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`, " +"methods " +"like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.create_server`, :meth:`loop.sendfile`, " "etc." msgstr "" @@ -175,8 +173,8 @@ msgid "A transport for datagram (UDP) connections." msgstr "" 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 "" msgid "" @@ -240,8 +238,8 @@ msgid "``'socket'``: :class:`socket.socket` instance" msgstr "" 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 "" msgid "SSL socket:" @@ -249,8 +247,8 @@ msgstr "" 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 "" msgid "" @@ -264,7 +262,7 @@ msgid "" msgstr "" msgid "``'sslcontext'``: :class:`ssl.SSLContext` instance" -msgstr "" +msgstr "``'sslcontext'``: :class:`ssl.SSLContext` instance" msgid "" "``'ssl_object'``: :class:`ssl.SSLObject` or :class:`ssl.SSLSocket` instance" @@ -280,7 +278,7 @@ msgid "subprocess:" msgstr "" msgid "``'subprocess'``: :class:`subprocess.Popen` instance" -msgstr "" +msgstr "``'subprocess'``: :class:`subprocess.Popen` instance" msgid "Set a new protocol." msgstr "" @@ -332,8 +330,8 @@ msgid "" msgstr "" 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 "" msgid "Return the current size of the output buffer used by the transport." @@ -351,18 +349,18 @@ msgid "Set the *high* and *low* watermarks for write flow control." msgstr "" 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 " -"called. If specified, the low watermark must be less than or equal to the " -"high watermark. Neither *high* nor *low* can be negative." +"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 "" 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 "" msgid "" @@ -370,10 +368,10 @@ msgid "" "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 " -"opportunities for doing I/O and computation concurrently." +"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 "" msgid "Use :meth:`~WriteTransport.get_write_buffer_limits` to get the limits." @@ -431,18 +429,18 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" msgid "other *fd*: :const:`None`" @@ -466,8 +464,8 @@ msgid "See also :meth:`subprocess.Popen.kill`." msgstr "" 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 "" msgid "Stop the subprocess." @@ -493,7 +491,7 @@ msgid "Protocols" msgstr "" msgid "**Source code:** :source:`Lib/asyncio/protocols.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/protocols.py`" msgid "" "asyncio provides a set of abstract base classes that should be used to " @@ -583,8 +581,9 @@ msgid "Called when the transport's buffer drains below the low watermark." msgstr "" 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 "" msgid "" @@ -597,11 +596,10 @@ msgid "Streaming Protocols" msgstr "" 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 "" msgid "" @@ -693,16 +691,16 @@ msgid "*nbytes* is the total number of bytes that were written to the buffer." msgstr "" msgid "" -"See the documentation of the :meth:`protocol.eof_received() ` method." +"See the documentation of the :meth:`protocol.eof_received() " +"` method." msgstr "" 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 "" msgid "Datagram Protocols" @@ -720,8 +718,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -737,10 +735,10 @@ msgid "" msgstr "" 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 "" msgid "Subprocess Protocols" @@ -827,8 +825,8 @@ msgstr "" 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 "" msgid "" diff --git a/library/asyncio-queue.po b/library/asyncio-queue.po index 3b0b4cf691..9622b296b7 100644 --- a/library/asyncio-queue.po +++ b/library/asyncio-queue.po @@ -1,34 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Queues" msgstr "" msgid "**Source code:** :source:`Lib/asyncio/queues.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/queues.py`" msgid "" "asyncio queues are designed to be similar to classes of the :mod:`queue` " @@ -37,8 +36,8 @@ msgid "" msgstr "" 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 "" msgid "See also the `Examples`_ section below." @@ -77,8 +76,8 @@ msgid "Return ``True`` if there are :attr:`maxsize` items in the queue." msgstr "" 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 "" msgid "" @@ -95,10 +94,10 @@ msgstr "" 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 "" msgid "" diff --git a/library/asyncio-stream.po b/library/asyncio-stream.po index b0b707a297..9c42c52c12 100644 --- a/library/asyncio-stream.po +++ b/library/asyncio-stream.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Streams" msgstr "" msgid "**Source code:** :source:`Lib/asyncio/streams.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/streams.py`" msgid "" "Streams are high-level async/await-ready primitives to work with network " @@ -55,24 +55,25 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" msgid "" -"The *sock* argument transfers ownership of the socket to the :class:" -"`StreamWriter` created. To close the socket, call its :meth:`~asyncio." -"StreamWriter.close` method." +"The *sock* argument transfers ownership of the socket to " +"the :class:`StreamWriter` created. To close the socket, call " +"its :meth:`~asyncio.StreamWriter.close` method." msgstr "" msgid "Added the *ssl_handshake_timeout* parameter." @@ -152,23 +153,31 @@ msgstr "" msgid "" "Represents a reader object that provides APIs to read data from the IO " -"stream. As an :term:`asynchronous iterable`, the object supports the :" -"keyword:`async for` statement." +"stream. As an :term:`asynchronous iterable`, the object supports " +"the :keyword:`async for` statement." msgstr "" 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 "" + +msgid "Read up to *n* bytes from the stream." msgstr "" msgid "" -"Read up to *n* bytes. If *n* is not provided, or set to ``-1``, read until " -"EOF and return all read bytes." +"If *n* is not provided or set to ``-1``, read until EOF, then return all " +"read :class:`bytes`. If EOF was received and the internal buffer is empty, " +"return an empty ``bytes`` object." +msgstr "" + +msgid "If *n* is ``0``, return an empty ``bytes`` object immediately." msgstr "" msgid "" -"If EOF was received and the internal buffer is empty, return an empty " -"``bytes`` object." +"If *n* is positive, return at most *n* available ``bytes`` as soon as at " +"least 1 byte is available in the internal buffer. If EOF is received before " +"any byte is read, return an empty ``bytes`` object." msgstr "" msgid "" @@ -203,15 +212,15 @@ msgid "" msgstr "" 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 "" msgid "" -"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 " +"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 "" @@ -226,8 +235,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -248,7 +257,9 @@ msgstr "" msgid "The method closes the stream and the underlying socket." msgstr "" -msgid "The method should be used along with the ``wait_closed()`` method::" +msgid "" +"The method should be used, though not mandatory, along with the " +"``wait_closed()`` method::" msgstr "" msgid "" @@ -264,8 +275,8 @@ msgid "Return the underlying asyncio transport." msgstr "" 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 "" msgid "Wait until it is appropriate to resume writing to the stream. Example::" @@ -275,28 +286,8 @@ 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." -msgstr "" - -msgid "Upgrade an existing stream-based connection to TLS." -msgstr "" - -msgid "Parameters:" -msgstr "" - -msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`." -msgstr "" - -msgid "" -"*server_hostname*: sets or overrides the host name that the target server's " -"certificate will be matched against." -msgstr "" - -msgid "" -"*ssl_handshake_timeout* is the time in seconds to wait for the TLS handshake " -"to complete before aborting the connection. ``60.0`` seconds if ``None`` " -"(default)." +"writing can be resumed. When there is nothing to wait for, " +"the :meth:`drain` returns immediately." msgstr "" msgid "" @@ -308,7 +299,8 @@ msgstr "" msgid "" "Should be called after :meth:`close` to wait until the underlying connection " -"is closed." +"is closed, ensuring that all data has been flushed before e.g. exiting the " +"program." msgstr "" msgid "Examples" @@ -322,8 +314,8 @@ msgstr "" 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 "" msgid "TCP echo server using streams" @@ -334,8 +326,8 @@ msgstr "" msgid "" "The :ref:`TCP echo server protocol " -"` example uses the :meth:`loop." -"create_server` method." +"` example uses " +"the :meth:`loop.create_server` method." msgstr "" msgid "Get HTTP headers" @@ -355,8 +347,8 @@ msgid "Register an open socket to wait for data using streams" msgstr "" 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 "" msgid "" @@ -367,6 +359,6 @@ msgstr "" 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 55c7e7c1ca..41f61900ec 100644 --- a/library/asyncio-subprocess.po +++ b/library/asyncio-subprocess.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Michał Biliński , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Michał Biliński , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Subprocesses" msgstr "" @@ -31,6 +30,8 @@ msgid "" "**Source code:** :source:`Lib/asyncio/subprocess.py`, :source:`Lib/asyncio/" "base_subprocess.py`" msgstr "" +"**Kod źródłowy:** :source:`Lib/asyncio/subprocess.py`, :source:`Lib/asyncio/" +"base_subprocess.py`" msgid "" "This section describes high-level async/await asyncio APIs to create and " @@ -63,8 +64,8 @@ msgstr "" 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 "" msgid "Return a :class:`~asyncio.subprocess.Process` instance." @@ -100,11 +101,10 @@ msgid "" msgstr "" 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 "" msgid "Constants" @@ -114,16 +114,16 @@ msgid "Can be passed to the *stdin*, *stdout* or *stderr* parameters." msgstr "" 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 "" 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 "" msgid "" @@ -133,8 +133,8 @@ msgstr "" 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." +"to process creation functions. It indicates that the special " +"file :data:`os.devnull` will be used for the corresponding subprocess stream." msgstr "" msgid "Interacting with Subprocesses" @@ -148,24 +148,25 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" 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:`~asyncio.wait_for` function;" msgstr "" msgid "" @@ -324,8 +325,8 @@ msgid "" msgstr "" msgid "" -"On UNIX *child watchers* are used for subprocess finish waiting, see :ref:" -"`asyncio-watchers` for more info." +"On UNIX *child watchers* are used for subprocess finish waiting, " +"see :ref:`asyncio-watchers` for more info." msgstr "" msgid "" @@ -334,8 +335,8 @@ msgid "" msgstr "" msgid "" -"Spawning a subprocess with *inactive* current child watcher raises :exc:" -"`RuntimeError`." +"Spawning a subprocess with *inactive* current child watcher " +"raises :exc:`RuntimeError`." msgstr "" msgid "" diff --git a/library/asyncio-sync.po b/library/asyncio-sync.po index 77b31967b2..a6d4999675 100644 --- a/library/asyncio-sync.po +++ b/library/asyncio-sync.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Synchronization Primitives" msgstr "" msgid "**Source code:** :source:`Lib/asyncio/locks.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/locks.py`" msgid "" "asyncio synchronization primitives are designed to be similar to those of " @@ -49,22 +49,19 @@ msgid "asyncio has the following basic synchronization primitives:" msgstr "" msgid ":class:`Lock`" -msgstr "" +msgstr ":class:`Lock`" msgid ":class:`Event`" -msgstr "" +msgstr ":class:`Event`" msgid ":class:`Condition`" -msgstr "" +msgstr ":class:`Condition`" msgid ":class:`Semaphore`" -msgstr "" +msgstr ":class:`Semaphore`" msgid ":class:`BoundedSemaphore`" -msgstr "" - -msgid ":class:`Barrier`" -msgstr "" +msgstr ":class:`BoundedSemaphore`" msgid "Lock" msgstr "" @@ -128,14 +125,14 @@ msgid "" msgstr "" 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:`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:`clear` " "method. The :meth:`~Event.wait` method blocks until the flag is set to " "*true*. The flag is set to *false* initially." msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "Wait until the event is set." msgstr "" @@ -155,8 +152,8 @@ msgid "Clear (unset) the event." msgstr "" msgid "" -"Tasks awaiting on :meth:`~Event.wait` will now block until the :meth:`~Event." -"set` method is called again." +"Tasks awaiting on :meth:`~Event.wait` will now block until " +"the :meth:`~Event.set` method is called again." msgstr "" msgid "Return ``True`` if the event is set." @@ -174,11 +171,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -228,8 +225,8 @@ msgid "Wait until notified." msgstr "" 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 "" msgid "" @@ -253,16 +250,16 @@ msgid "A Semaphore object. Not thread-safe." msgstr "" 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 "" 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 "" msgid "" @@ -298,91 +295,13 @@ msgid "A bounded semaphore object. Not thread-safe." msgstr "" 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*." -msgstr "" - -msgid "Barrier" -msgstr "" - -msgid "A barrier object. Not thread-safe." -msgstr "" - -msgid "" -"A barrier is a simple synchronization primitive that allows to block until " -"*parties* number of tasks are waiting on it. Tasks can wait on the :meth:" -"`~Barrier.wait` method and would be blocked until the specified number of " -"tasks end up waiting on :meth:`~Barrier.wait`. At that point all of the " -"waiting tasks would unblock simultaneously." -msgstr "" - -msgid "" -":keyword:`async with` can be used as an alternative to awaiting on :meth:" -"`~Barrier.wait`." -msgstr "" - -msgid "The barrier can be reused any number of times." -msgstr "" - -msgid "Result of this example is::" -msgstr "" - -msgid "" -"Pass the barrier. When all the tasks party to the barrier have called this " -"function, they are all unblocked simultaneously." -msgstr "" - -msgid "" -"When a waiting or blocked task in the barrier is cancelled, this task exits " -"the barrier which stays in the same state. If the state of the barrier is " -"\"filling\", the number of waiting task decreases by 1." -msgstr "" - -msgid "" -"The return value is an integer in the range of 0 to ``parties-1``, different " -"for each task. This can be used to select a task to do some special " -"housekeeping, e.g.::" -msgstr "" - -msgid "" -"This method may raise a :class:`BrokenBarrierError` exception if the barrier " -"is broken or reset while a task is waiting. It could raise a :exc:" -"`CancelledError` if a task is cancelled." -msgstr "" - -msgid "" -"Return the barrier to the default, empty state. Any tasks waiting on it " -"will receive the :class:`BrokenBarrierError` exception." -msgstr "" - -msgid "" -"If a barrier is broken it may be better to just leave it and create a new " -"one." -msgstr "" - -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 tasks needs to abort, to avoid infinite waiting tasks." -msgstr "" - -msgid "The number of tasks required to pass the barrier." -msgstr "" - -msgid "The number of tasks currently waiting in the barrier while filling." -msgstr "" - -msgid "A boolean that is ``True`` if the barrier is in the broken state." -msgstr "" - -msgid "" -"This exception, a subclass of :exc:`RuntimeError`, is raised when the :class:" -"`Barrier` object is reset or broken." +"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 "" msgid "" -"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or :keyword:" -"`with` statement (``with await lock``, ``with (yield from lock)``) was " -"removed. 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)``) was removed. Use ``async with lock`` instead." msgstr "" diff --git a/library/asyncio-task.po b/library/asyncio-task.po index 98ba75ecfa..1e0162b195 100644 --- a/library/asyncio-task.po +++ b/library/asyncio-task.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Coroutines and Tasks" msgstr "" @@ -34,6 +34,9 @@ msgstr "" msgid "Coroutines" msgstr "" +msgid "**Source code:** :source:`Lib/asyncio/coroutines.py`" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/coroutines.py`" + msgid "" ":term:`Coroutines ` declared with the async/await syntax is the " "preferred way of writing asyncio applications. For example, the following " @@ -80,8 +83,8 @@ msgid "Awaitables" msgstr "" 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 "" @@ -119,8 +122,9 @@ msgid "*Tasks* are used to schedule coroutines *concurrently*." msgstr "" 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 "" msgid "Futures" @@ -152,8 +156,8 @@ msgid "" msgstr "" 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 "" msgid "Running an asyncio Program" @@ -182,7 +186,7 @@ msgid "" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "Updated to use :meth:`loop.shutdown_default_executor`." msgstr "" @@ -195,19 +199,23 @@ msgstr "" msgid "Creating Tasks" msgstr "" +msgid "**Source code:** :source:`Lib/asyncio/tasks.py`" +msgstr "**Kod źródłowy:** :source:`Lib/asyncio/tasks.py`" + msgid "" "Wrap the *coro* :ref:`coroutine ` into a :class:`Task` and " "schedule its execution. Return the Task object." msgstr "" msgid "" -"If *name* is not ``None``, it is set as the name of the task using :meth:" -"`Task.set_name`." +"If *name* is not ``None``, it is set as the name of the task " +"using :meth:`Task.set_name`." msgstr "" 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 "" msgid "" @@ -321,8 +329,8 @@ msgid "Shielding From Cancellation" msgstr "" msgid "" -"Protect an :ref:`awaitable object ` from being :meth:" -"`cancelled `." +"Protect an :ref:`awaitable object ` from " +"being :meth:`cancelled `." msgstr "" msgid "If *aw* is a coroutine it is automatically scheduled as a Task." @@ -338,8 +346,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 "" msgid "" @@ -379,13 +387,13 @@ msgid "" msgstr "" 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 "" msgid "" -"To avoid the task :meth:`cancellation `, wrap it in :func:" -"`shield`." +"To avoid the task :meth:`cancellation `, wrap it " +"in :func:`shield`." msgstr "" msgid "" @@ -452,8 +460,8 @@ msgstr "" 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 "" msgid ":const:`ALL_COMPLETED`" @@ -627,13 +635,13 @@ msgstr "" 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." +"returns ``True`` if the wrapped coroutine did not suppress " +"the :exc:`CancelledError` exception and was actually cancelled." msgstr "" 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 "" msgid "" @@ -661,10 +669,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 "" msgid "Added the *msg* parameter." @@ -679,9 +687,9 @@ msgid "Return ``True`` if the Task is *cancelled*." msgstr "" 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 "" msgid "Return ``True`` if the Task is *done*." @@ -706,8 +714,8 @@ msgid "" msgstr "" 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 "" msgid "Return the exception of the Task." @@ -778,7 +786,7 @@ msgstr "" msgid "" "The *file* argument is an I/O stream to which the output is written; by " -"default output is written to :data:`sys.stderr`." +"default output is written to :data:`sys.stdout`." msgstr "" msgid "Return the coroutine object wrapped by the :class:`Task`." @@ -800,8 +808,8 @@ msgid "" msgstr "" msgid "" -"In the default Task implementation, the name will be visible in the :func:" -"`repr` output of a task object." +"In the default Task implementation, the name will be visible in " +"the :func:`repr` output of a task object." msgstr "" msgid "Generator-based Coroutines" @@ -819,8 +827,9 @@ msgid "" msgstr "" 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 "" msgid "Decorator to mark generator-based coroutines." @@ -850,6 +859,6 @@ msgstr "" msgid "" "This method is different from :func:`inspect.iscoroutinefunction` because it " -"returns ``True`` for generator-based coroutine functions decorated with :" -"func:`@coroutine `." +"returns ``True`` for generator-based coroutine functions decorated " +"with :func:`@coroutine `." msgstr "" diff --git a/library/asyncio.po b/library/asyncio.po new file mode 100644 index 0000000000..bfe4782a17 --- /dev/null +++ b/library/asyncio.po @@ -0,0 +1,128 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Rafael Fontenelle , 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "High-level APIs" +msgstr "Wysokopoziomowe interfejsy API" + +msgid "Low-level APIs" +msgstr "niskopoziomowe interfejsy API" + +msgid "Guides and Tutorials" +msgstr "Przewodniki i samouczki" + +msgid ":mod:`asyncio` --- Asynchronous I/O" +msgstr "" + +msgid "Hello World!" +msgstr "Hello World!" + +msgid "" +"asyncio is a library to write **concurrent** code using the **async/await** " +"syntax." +msgstr "" +"asyncio jest biblioteką do pisania **równoległego** kodu przy użyciu składni " +"**async/await**." + +msgid "" +"asyncio is used as a foundation for multiple Python asynchronous frameworks " +"that provide high-performance network and web-servers, database connection " +"libraries, distributed task queues, etc." +msgstr "" +"asyncio jest używane jako podstawa dla wielu asynchronicznych framework'ów " +"Pythona, które zapewniają wysoką wydajność sieci i serwerów internetowych, " +"bibliotek połączeń z bazami danych, rozproszonych kolejek zadań itp." + +msgid "" +"asyncio is often a perfect fit for IO-bound and high-level **structured** " +"network code." +msgstr "" +" asyncio często idealnie nadaje się do kodu związanego z operacjami wejścia/" +"wyjścia, inaczej IO-bound. oraz do wysokopoziomowego, **strukturalnego** " +"kodu sieciowego." + +msgid "asyncio provides a set of **high-level** APIs to:" +msgstr "asyncio zapewnia zestaw **wysopoziomowych** interfejsów API do:" + +msgid "" +":ref:`run Python coroutines ` concurrently and have full control " +"over their execution;" +msgstr "" +":ref:`uruchamiania równoległych korutyn Pythona` oraz pełnej " +"kontroli nad ich wykonywaniem;" + +msgid "perform :ref:`network IO and IPC `;" +msgstr "" + +msgid "control :ref:`subprocesses `;" +msgstr "" + +msgid "distribute tasks via :ref:`queues `;" +msgstr "" + +msgid ":ref:`synchronize ` concurrent code;" +msgstr "" + +msgid "" +"Additionally, there are **low-level** APIs for *library and framework " +"developers* to:" +msgstr "" + +msgid "" +"create and manage :ref:`event loops `, which provide " +"asynchronous APIs for :meth:`networking `, " +"running :meth:`subprocesses `, handling :meth:`OS " +"signals `, etc;" +msgstr "" + +msgid "" +"implement efficient protocols using :ref:`transports `;" +msgstr "" + +msgid "" +":ref:`bridge ` callback-based libraries and code with async/" +"await syntax." +msgstr "" + +msgid "asyncio REPL" +msgstr "" + +msgid "You can experiment with an ``asyncio`` concurrent context in the REPL:" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_stdin`` with no " +"arguments." +msgstr "" + +msgid "(also 3.9.20, and 3.8.20) Emits audit events." +msgstr "" + +msgid "Reference" +msgstr "Dokumentacja" + +msgid "The source code for asyncio can be found in :source:`Lib/asyncio/`." +msgstr "" diff --git a/library/asyncore.po b/library/asyncore.po index a7c3fdf908..9e77e12660 100644 --- a/library/asyncore.po +++ b/library/asyncore.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`asyncore` --- Asynchronous socket handler" msgstr "Moduł :mod:`asyncore` --- Asynchroniczna obsługa gniazda" @@ -30,8 +30,8 @@ msgid "**Source code:** :source:`Lib/asyncore.py`" msgstr "" msgid "" -"The :mod:`asyncore` module is deprecated (see :pep:`PEP 594 <594#asyncore>` " -"for details). Please use :mod:`asyncio` instead." +":mod:`asyncore` will be removed in Python 3.12 (see :pep:`PEP 594 " +"<594#asyncore>` for details). Please use :mod:`asyncio` instead." msgstr "" msgid "" @@ -46,15 +46,6 @@ msgstr "" "Ten moduł dostarcza podstawową infrastrukturę do pisania asynchronicznych " "klientów i serwerów usługi gniazd." -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "" "There are only two ways to have a program on a single processor do \"more " "than one thing at a time.\" Multi-threaded programming is the simplest and " @@ -90,16 +81,16 @@ msgstr "" 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 "" "Podstawowym pomysłem stojącym za oboma modułami jest stworzenie jednego lub " -"więcej *kanałów*, przykładów uogólnienia :class:`asyncore.dispatcher` i :" -"class:`asynchat.async_chat`. Utworzenie kanałów dodaje je do globalnej mapy, " -"używanej przez funkcję :func:`loop` jeśli dostarczysz jej swojej własnej " -"*mapy*." +"więcej *kanałów*, przykładów uogólnienia :class:`asyncore.dispatcher` " +"i :class:`asynchat.async_chat`. Utworzenie kanałów dodaje je do globalnej " +"mapy, używanej przez funkcję :func:`loop` jeśli dostarczysz jej swojej " +"własnej *mapy*." msgid "" "Once the initial channel(s) is(are) created, calling the :func:`loop` " @@ -107,9 +98,9 @@ msgid "" "(including any that have been added to the map during asynchronous service) " "is closed." msgstr "" -"Gdy początkowy(e) kanał(y) jest(są) tworzony(e), wywołanie funkcji :func:" -"`loop` aktywuje usługę kanału, która kontynuuje zanim ostatni kanał " -"(włączając w to jakiekolwiek które zostały dodane do mapy podczas " +"Gdy początkowy(e) kanał(y) jest(są) tworzony(e), wywołanie " +"funkcji :func:`loop` aktywuje usługę kanału, która kontynuuje zanim ostatni " +"kanał (włączając w to jakiekolwiek które zostały dodane do mapy podczas " "asynchronicznej usługi) nie zostanie zamknięty." msgid "" @@ -126,15 +117,15 @@ 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 "" "Parametr *map* jest słownikiem którego elementami są kanały do oglądania. " "Gdy kanały są zamykane są one kasowane z ich mapy. Jeśli *mapa* jest " -"pominięta, nadrzędna mapa jest używana. Kanały (przykłady uogólnienia :class:" -"`asyncore.dispatcher` i :class:`asynchat.async_chat` i podrzędne uogólnienia " -"tychże) mogą dowolnie być mieszane wewnątrz mapy." +"pominięta, nadrzędna mapa jest używana. Kanały (przykłady " +"uogólnienia :class:`asyncore.dispatcher` i :class:`asynchat.async_chat` i " +"podrzędne uogólnienia tychże) mogą dowolnie być mieszane wewnątrz mapy." msgid "" "The :class:`dispatcher` class is a thin wrapper around a low-level socket " @@ -190,10 +181,10 @@ msgid "Implied by a read event on a listening socket" msgstr "Domyślne przy zdarzeniu czytania na nasłuchującym gnieździe" 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 "" msgid "" @@ -250,8 +241,8 @@ 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 "" msgid "" @@ -325,9 +316,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -342,17 +333,17 @@ msgstr "" 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 "" "Połącz gniazdo z *adresem*. Gniazdo nie może być już połączone z adresem. " -"(Format *adresu* zależy od rodziny adresów --- zajrzyj do dokumentacji :mod:" -"`socket` po więcej informacji.) Aby oznaczyć gniazdo jako możliwe do " -"ponownego użycia - z ang. - re-usable (ustawiając opcję :const:" -"`SO_REUSEADDR`), wywołaj sposób postępowania :meth:`set_reuse_addr` obiektu :" -"class:`dispatcher`." +"(Format *adresu* zależy od rodziny adresów --- zajrzyj do " +"dokumentacji :mod:`socket` po więcej informacji.) Aby oznaczyć gniazdo jako " +"możliwe do ponownego użycia - z ang. - re-usable (ustawiając " +"opcję :const:`SO_REUSEADDR`), wywołaj sposób " +"postępowania :meth:`set_reuse_addr` obiektu :class:`dispatcher`." msgid "" "Accept a connection. The socket must be bound to an address and listening " @@ -376,16 +367,16 @@ msgstr "" msgid "" "A :class:`dispatcher` subclass which adds simple buffered output capability, " -"useful for simple clients. For more sophisticated usage use :class:`asynchat." -"async_chat`." +"useful for simple clients. For more sophisticated usage " +"use :class:`asynchat.async_chat`." msgstr "" 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 "" msgid ":ref:`Availability `: Unix." @@ -405,8 +396,8 @@ msgid "" "Here is a very basic HTTP client that uses the :class:`dispatcher` class to " "implement its socket handling::" msgstr "" -"Tu jest bardzo podstawowy klient HTTP który używa uogólnienia :class:" -"`dispatcher` do wypełnienia jego obsługi gniazda::" +"Tu jest bardzo podstawowy klient HTTP który używa " +"uogólnienia :class:`dispatcher` do wypełnienia jego obsługi gniazda::" msgid "asyncore Example basic echo server" msgstr "" diff --git a/library/audit_events.po b/library/audit_events.po new file mode 100644 index 0000000000..0f8d554680 --- /dev/null +++ b/library/audit_events.po @@ -0,0 +1,102 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Audit events table" +msgstr "" + +msgid "" +"This table contains all events raised by :func:`sys.audit` " +"or :c:func:`PySys_Audit` calls throughout the CPython runtime and the " +"standard library. These calls were added in 3.8.0 or later (see :pep:`578`)." +msgstr "" + +msgid "" +"See :func:`sys.addaudithook` and :c:func:`PySys_AddAuditHook` for " +"information on handling these events." +msgstr "" + +msgid "" +"This table is generated from the CPython documentation, and may not " +"represent events raised by other implementations. See your runtime specific " +"documentation for actual events raised." +msgstr "" + +msgid "" +"The following events are raised internally and do not correspond to any " +"public API of CPython:" +msgstr "" + +msgid "Audit event" +msgstr "" + +msgid "Arguments" +msgstr "" + +msgid "_winapi.CreateFile" +msgstr "_winapi.CreateFile" + +msgid "" +"``file_name``, ``desired_access``, ``share_mode``, ``creation_disposition``, " +"``flags_and_attributes``" +msgstr "" + +msgid "_winapi.CreateJunction" +msgstr "_winapi.CreateJunction" + +msgid "``src_path``, ``dst_path``" +msgstr "" + +msgid "_winapi.CreateNamedPipe" +msgstr "_winapi.CreateNamedPipe" + +msgid "``name``, ``open_mode``, ``pipe_mode``" +msgstr "" + +msgid "_winapi.CreatePipe" +msgstr "_winapi.CreatePipe" + +msgid "_winapi.CreateProcess" +msgstr "_winapi.CreateProcess" + +msgid "``application_name``, ``command_line``, ``current_directory``" +msgstr "" + +msgid "_winapi.OpenProcess" +msgstr "_winapi.OpenProcess" + +msgid "``process_id``, ``desired_access``" +msgstr "" + +msgid "_winapi.TerminateProcess" +msgstr "_winapi.TerminateProcess" + +msgid "``handle``, ``exit_code``" +msgstr "" + +msgid "ctypes.PyObj_FromPtr" +msgstr "ctypes.PyObj_FromPtr" + +msgid "``obj``" +msgstr "``obj``" diff --git a/library/base64.po b/library/base64.po index e6328fb573..9935acadc2 100644 --- a/library/base64.po +++ b/library/base64.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:55+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`base64` --- Base16, Base32, Base64, Base85 Data Encodings" msgstr "" msgid "**Source code:** :source:`Lib/base64.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/base64.py`" msgid "" "This module provides functions for encoding binary data to printable ASCII " @@ -40,16 +40,17 @@ msgstr "" msgid "" "The :rfc:`4648` encodings are suitable for encoding binary data so that it " "can be 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." +"an HTTP POST request. The encoding algorithm is not the same as " +"the :program:`uuencode` program." msgstr "" 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 ` " -"or strings containing ASCII to :class:`bytes`. Both base-64 alphabets " -"defined in :rfc:`4648` (normal, and URL- and filesystem-safe) are supported." +"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:`4648` (normal, and URL- and filesystem-safe) are " +"supported." msgstr "" msgid "" @@ -57,8 +58,8 @@ 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 "" msgid "" @@ -81,11 +82,17 @@ msgid "" msgstr "" 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. " -"generate URL or filesystem safe Base64 strings. The default is ``None``, " -"for which the standard Base64 alphabet is used." +"Optional *altchars* must be a :term:`bytes-like object` of length 2 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 "" + +msgid "" +"May assert or raise a :exc:`ValueError` if the length of *altchars* is not " +"2. Raises a :exc:`TypeError` if *altchars* is not a :term:`bytes-like " +"object`." msgstr "" msgid "" @@ -95,8 +102,8 @@ msgstr "" msgid "" "Optional *altchars* must be a :term:`bytes-like object` or ASCII string of " -"at least length 2 (additional characters are ignored) which specifies the " -"alternative alphabet used instead of the ``+`` and ``/`` characters." +"length 2 which specifies the alternative alphabet used instead of the ``+`` " +"and ``/`` characters." msgstr "" msgid "" @@ -111,8 +118,7 @@ msgid "" msgstr "" msgid "" -"For more information about the strict base64 check, see :func:`binascii." -"a2b_base64`" +"May assert or raise a :exc:`ValueError` if the length of *altchars* is not 2." msgstr "" msgid "" @@ -135,8 +141,8 @@ msgstr "" 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`." +"instead of ``/`` in the standard Base64 alphabet, and return the " +"decoded :class:`bytes`." msgstr "" msgid "" @@ -279,11 +285,12 @@ msgstr "" 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 "" msgid "" diff --git a/library/binhex.po b/library/binhex.po index d42c12557e..75a680ea07 100644 --- a/library/binhex.po +++ b/library/binhex.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:56+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`binhex` --- Encode and decode binhex4 files" msgstr ":mod:`binhex` --- Koduj i dekoduj pliki binhex4" diff --git a/library/bisect.po b/library/bisect.po index 6ce1fb19eb..5d9fee7517 100644 --- a/library/bisect.po +++ b/library/bisect.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:56+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`bisect` --- Array bisection algorithm" msgstr ":mod:`bisect` --- algorytm bisekcji tablicy" msgid "**Source code:** :source:`Lib/bisect.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/bisect.py`" msgid "" "This module provides support for maintaining a list in sorted order without " @@ -145,10 +145,10 @@ msgid "" "The search functions are stateless and discard key function results after " "they are used. Consequently, if the search functions are used in a loop, " "the key function may be called again and again on the same array elements. " -"If the key function isn't fast, consider wrapping it with :func:`functools." -"cache` to avoid duplicate computations. Alternatively, consider searching " -"an array of precomputed keys to locate the insertion point (as shown in the " -"examples section below)." +"If the key function isn't fast, consider wrapping it " +"with :func:`functools.cache` to avoid duplicate computations. " +"Alternatively, consider searching an array of precomputed keys to locate the " +"insertion point (as shown in the examples section below)." msgstr "" msgid "" diff --git a/library/bz2.po b/library/bz2.po new file mode 100644 index 0000000000..a4ea97538a --- /dev/null +++ b/library/bz2.po @@ -0,0 +1,327 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`bz2` --- Support for :program:`bzip2` compression" +msgstr "" + +msgid "**Source code:** :source:`Lib/bz2.py`" +msgstr "**Kod źródłowy:** :source:`Lib/bz2.py`" + +msgid "" +"This module provides a comprehensive interface for compressing and " +"decompressing data using the bzip2 compression algorithm." +msgstr "" + +msgid "The :mod:`bz2` module contains:" +msgstr "" + +msgid "" +"The :func:`.open` function and :class:`BZ2File` class for reading and " +"writing compressed files." +msgstr "" + +msgid "" +"The :class:`BZ2Compressor` and :class:`BZ2Decompressor` classes for " +"incremental (de)compression." +msgstr "" + +msgid "" +"The :func:`compress` and :func:`decompress` functions for one-shot " +"(de)compression." +msgstr "" + +msgid "(De)compression of files" +msgstr "" + +msgid "" +"Open a bzip2-compressed file in binary or text mode, returning a :term:`file " +"object`." +msgstr "" + +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." +msgstr "" + +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'``." +msgstr "" + +msgid "" +"The *compresslevel* argument is an integer from 1 to 9, as for " +"the :class:`BZ2File` constructor." +msgstr "" + +msgid "" +"For binary mode, this function is equivalent to the :class:`BZ2File` " +"constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In " +"this case, the *encoding*, *errors* and *newline* arguments must not be " +"provided." +msgstr "" + +msgid "" +"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 "" + +msgid "The ``'x'`` (exclusive creation) mode was added." +msgstr "" + +msgid "Accepts a :term:`path-like object`." +msgstr "" + +msgid "Open a bzip2-compressed file in binary mode." +msgstr "" + +msgid "" +"If *filename* is a :class:`str` or :class:`bytes` object, open the named " +"file directly. Otherwise, *filename* should be a :term:`file object`, which " +"will be used to read or write the compressed data." +msgstr "" + +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." +msgstr "" + +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'``." +msgstr "" + +msgid "" +"If *mode* is ``'w'`` or ``'a'``, *compresslevel* can be an integer between " +"``1`` and ``9`` specifying the level of compression: ``1`` produces the " +"least compression, and ``9`` (default) produces the most compression." +msgstr "" + +msgid "" +"If *mode* is ``'r'``, the input file may be the concatenation of multiple " +"compressed streams." +msgstr "" + +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." +msgstr "" + +msgid ":class:`BZ2File` also provides the following method:" +msgstr "" + +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." +msgstr "" + +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 *filename*)." +msgstr "" + +msgid "Support for the :keyword:`with` statement was added." +msgstr "" + +msgid "" +"The :meth:`fileno`, :meth:`readable`, :meth:`seekable`, :meth:`writable`, :meth:`read1` " +"and :meth:`readinto` methods were added." +msgstr "" + +msgid "" +"Support was added for *filename* being a :term:`file object` instead of an " +"actual filename." +msgstr "" + +msgid "" +"The ``'a'`` (append) mode was added, along with support for reading multi-" +"stream files." +msgstr "" + +msgid "" +"The :meth:`~io.BufferedIOBase.read` method now accepts an argument of " +"``None``." +msgstr "" + +msgid "" +"The *buffering* parameter has been removed. It was ignored and deprecated " +"since Python 3.0. Pass an open file object to control how the file is opened." +msgstr "" + +msgid "The *compresslevel* parameter became keyword-only." +msgstr "" + +msgid "" +"This class is thread unsafe in the face of multiple simultaneous readers or " +"writers, just like its equivalent classes in :mod:`gzip` and :mod:`lzma` " +"have always been." +msgstr "" + +msgid "Incremental (de)compression" +msgstr "" + +msgid "" +"Create a new compressor object. This object may be used to compress data " +"incrementally. For one-shot compression, use the :func:`compress` function " +"instead." +msgstr "" + +msgid "" +"*compresslevel*, if given, must be an integer between ``1`` and ``9``. The " +"default is ``9``." +msgstr "" + +msgid "" +"Provide data to the compressor object. Returns a chunk of compressed data if " +"possible, or an empty byte string otherwise." +msgstr "" + +msgid "" +"When you have finished providing data to the compressor, call " +"the :meth:`flush` method to finish the compression process." +msgstr "" + +msgid "" +"Finish the compression process. Returns the compressed data left in internal " +"buffers." +msgstr "" + +msgid "" +"The compressor object may not be used after this method has been called." +msgstr "" + +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." +msgstr "" + +msgid "" +"This class does not transparently handle inputs containing multiple " +"compressed streams, unlike :func:`decompress` and :class:`BZ2File`. If you " +"need to decompress a multi-stream input with :class:`BZ2Decompressor`, you " +"must use a new decompressor for each stream." +msgstr "" + +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 " +"output of any previous calls to :meth:`decompress`." +msgstr "" + +msgid "" +"If *max_length* is nonnegative, returns at most *max_length* bytes of " +"decompressed data. If this limit is reached and further output can be " +"produced, the :attr:`~.needs_input` attribute will be set to ``False``. In " +"this case, the next call to :meth:`~.decompress` may provide *data* as " +"``b''`` to obtain more of the output." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Attempting to decompress data after the end of stream is reached raises " +"an :exc:`EOFError`. Any data found after the end of the stream is ignored " +"and saved in the :attr:`~.unused_data` attribute." +msgstr "" + +msgid "Added the *max_length* parameter." +msgstr "" + +msgid "``True`` if the end-of-stream marker has been reached." +msgstr "" + +msgid "Data found after the end of the compressed stream." +msgstr "" + +msgid "" +"If this attribute is accessed before the end of the stream has been reached, " +"its value will be ``b''``." +msgstr "" + +msgid "" +"``False`` if the :meth:`.decompress` method can provide more decompressed " +"data before requiring new uncompressed input." +msgstr "" + +msgid "One-shot (de)compression" +msgstr "" + +msgid "Compress *data*, a :term:`bytes-like object `." +msgstr "" + +msgid "For incremental compression, use a :class:`BZ2Compressor` instead." +msgstr "" + +msgid "Decompress *data*, a :term:`bytes-like object `." +msgstr "" + +msgid "" +"If *data* is the concatenation of multiple compressed streams, decompress " +"all of the streams." +msgstr "" + +msgid "For incremental decompression, use a :class:`BZ2Decompressor` instead." +msgstr "" + +msgid "Support for multi-stream inputs was added." +msgstr "" + +msgid "Examples of usage" +msgstr "Przykłady użycia" + +msgid "Below are some examples of typical usage of the :mod:`bz2` module." +msgstr "" + +msgid "" +"Using :func:`compress` and :func:`decompress` to demonstrate round-trip " +"compression:" +msgstr "" + +msgid "Using :class:`BZ2Compressor` for incremental compression:" +msgstr "" + +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, " +"repetitive data usually yields a high compression ratio." +msgstr "" + +msgid "Writing and reading a bzip2-compressed file in binary mode:" +msgstr "" diff --git a/library/calendar.po b/library/calendar.po new file mode 100644 index 0000000000..572182428b --- /dev/null +++ b/library/calendar.po @@ -0,0 +1,379 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`calendar` --- General calendar-related functions" +msgstr "" + +msgid "**Source code:** :source:`Lib/calendar.py`" +msgstr "**Kod źródłowy:** :source:`Lib/calendar.py`" + +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. " +"Parameters that specify dates are given as integers. For related " +"functionality, see also the :mod:`datetime` and :mod:`time` modules." +msgstr "" + +msgid "" +"The functions and classes defined in this module use an idealized calendar, " +"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, " +"and so on." +msgstr "" + +msgid "" +"Creates a :class:`Calendar` object. *firstweekday* is an integer specifying " +"the first day of the week. :const:`MONDAY` is ``0`` (the " +"default), :const:`SUNDAY` is ``6``." +msgstr "" + +msgid "" +"A :class:`Calendar` object provides several methods that can be used for " +"preparing the calendar data for formatting. This class doesn't do any " +"formatting itself. This is the job of subclasses." +msgstr "" + +msgid ":class:`Calendar` instances have the following methods:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Return an iterator for the month *month* (1--12) in the year *year*. This " +"iterator will return all days (as :class:`datetime.date` objects) for the " +"month and all days before the start of the month or after the end of the " +"month that are required to get a complete week." +msgstr "" + +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``." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a list of the weeks in the month *month* of the *year* as full " +"weeks. Weeks are lists of seven day numbers." +msgstr "" + +msgid "" +"Return the data for the specified year ready for formatting. The return " +"value is a list of month rows. Each month row contains up to *width* months " +"(defaulting to 3). Each month contains between 4 and 6 weeks and each week " +"contains 1--7 days. Days are :class:`datetime.date` objects." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"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 "" + +msgid "This class can be used to generate plain text calendars." +msgstr "" + +msgid ":class:`TextCalendar` instances have the following methods:" +msgstr "" + +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." +msgstr "" + +msgid "Print a month's calendar as returned by :meth:`formatmonth`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Print the calendar for an entire year as returned by :meth:`formatyear`." +msgstr "" + +msgid "This class can be used to generate HTML calendars." +msgstr "" + +msgid ":class:`!HTMLCalendar` instances have the following methods:" +msgstr "" + +msgid "" +"Return a month's calendar as an HTML table. If *withyear* is true the year " +"will be included in the header, otherwise just the month name will be used." +msgstr "" + +msgid "" +"Return a year's calendar as an HTML table. *width* (defaulting to 3) " +"specifies the number of months per row." +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 " +"(defaulting to the system default encoding)." +msgstr "" + +msgid "" +":class:`!HTMLCalendar` has the following attributes you can override to " +"customize the CSS classes used by the calendar:" +msgstr "" + +msgid "" +"A list of CSS classes used for each weekday. The default class list is::" +msgstr "" + +msgid "more styles can be added for each day::" +msgstr "" + +msgid "Note that the length of this list must be seven items." +msgstr "" + +msgid "The CSS class for a weekday occurring in the previous or coming month." +msgstr "" + +msgid "" +"A list of CSS classes used for weekday names in the header row. The default " +"is the same as :attr:`cssclasses`." +msgstr "" + +msgid "" +"The month's head CSS class (used by :meth:`formatmonthname`). The default " +"value is ``\"month\"``." +msgstr "" + +msgid "" +"The CSS class for the whole month's table (used by :meth:`formatmonth`). The " +"default value is ``\"month\"``." +msgstr "" + +msgid "" +"The CSS class for the whole year's table of tables (used " +"by :meth:`formatyear`). The default value is ``\"year\"``." +msgstr "" + +msgid "" +"The CSS class for the table head for the whole year (used " +"by :meth:`formatyear`). The default value is ``\"year\"``." +msgstr "" + +msgid "" +"Note that although the naming for the above described class attributes is " +"singular (e.g. ``cssclass_month`` ``cssclass_noday``), one can replace the " +"single CSS class with a space separated list of CSS classes, for example::" +msgstr "" + +msgid "Here is an example how :class:`!HTMLCalendar` can be customized::" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :meth:`formatweekday` and :meth:`formatmonthname` methods of these two " +"classes temporarily change the current locale to the given *locale*. " +"Because the current locale is a process-wide setting, they are not thread-" +"safe." +msgstr "" + +msgid "For simple text calendars this module provides the following functions." +msgstr "" + +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::" +msgstr "" + +msgid "Returns the current setting for the weekday to start each week." +msgstr "" + +msgid "" +"Returns :const:`True` if *year* is a leap year, otherwise :const:`False`." +msgstr "" + +msgid "" +"Returns the number of leap years in the range from *y1* to *y2* (exclusive), " +"where *y1* and *y2* are years." +msgstr "" + +msgid "This function works for ranges spanning a century change." +msgstr "" + +msgid "" +"Returns the day of the week (``0`` is Monday) for *year* (``1970``--...), " +"*month* (``1``--``12``), *day* (``1``--``31``)." +msgstr "" + +msgid "" +"Return a header containing abbreviated weekday names. *n* specifies the " +"width in characters for one weekday." +msgstr "" + +msgid "" +"Returns weekday of first day of the month and number of days in month, for " +"the specified *year* and *month*." +msgstr "" + +msgid "" +"Returns a matrix representing a month's calendar. Each row represents a " +"week; days outside of the month are represented by zeros. Each week begins " +"with Monday unless set by :func:`setfirstweekday`." +msgstr "" + +msgid "Prints a month's calendar as returned by :func:`month`." +msgstr "" + +msgid "" +"Returns a month's calendar in a multi-line string using " +"the :meth:`formatmonth` of the :class:`TextCalendar` class." +msgstr "" + +msgid "" +"Prints the calendar for an entire year as returned by :func:`calendar`." +msgstr "" + +msgid "" +"Returns a 3-column calendar for an entire year as a multi-line string using " +"the :meth:`formatyear` of the :class:`TextCalendar` class." +msgstr "" + +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." +msgstr "" + +msgid "The :mod:`calendar` module exports the following data attributes:" +msgstr "" + +msgid "An array that represents the days of the week in the current locale." +msgstr "" + +msgid "" +"An array that represents the abbreviated days of the week in the current " +"locale." +msgstr "" + +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 " +"length of 13 and ``month_name[0]`` is the empty string." +msgstr "" + +msgid "" +"An array that represents the abbreviated 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_abbr[0]`` is the empty string." +msgstr "" + +msgid "" +"Aliases for day numbers, where ``MONDAY`` is ``0`` and ``SUNDAY`` is ``6``." +msgstr "" + +msgid "Module :mod:`datetime`" +msgstr "" + +msgid "" +"Object-oriented interface to dates and times with similar functionality to " +"the :mod:`time` module." +msgstr "" + +msgid "Module :mod:`time`" +msgstr "" + +msgid "Low-level time related functions." +msgstr "" diff --git a/library/cgi.po b/library/cgi.po index 3d39e16fb0..0a09f80eb5 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:56+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`cgi` --- Common Gateway Interface support" msgstr "" @@ -37,14 +36,6 @@ msgid "" "details and alternatives)." msgstr "" -msgid "" -"The :class:`FieldStorage` class can typically be replaced with :func:`urllib." -"parse.parse_qsl` for ``GET`` and ``HEAD`` requests, and the :mod:`email." -"message` module or `multipart `_ for " -"``POST`` and ``PUT``. Most :ref:`utility functions ` have replacements." -msgstr "" - msgid "Support module for Common Gateway Interface (CGI) scripts." msgstr "Wspierający moduł dla skryptów sprzęgu wspólnej bramki (z ang. CGI)." @@ -55,22 +46,6 @@ msgstr "" "Ten moduł definiuje pewną liczbę użyteczności dla użycia przez skrypty CGI " "napisane w języku pytonowskim." -msgid "" -"The global variable ``maxlen`` can be set to an integer indicating the " -"maximum size of a POST request. POST requests larger than this size will " -"result in a :exc:`ValueError` being raised during parsing. The default value " -"of this variable is ``0``, meaning the request size is unlimited." -msgstr "" - -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "Introduction" msgstr "Wprowadzenie" @@ -177,18 +152,20 @@ 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 "" 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 "" -"Dla przykładu, następujący kod (który zakłada, że nagłówek :mailheader:" -"`Content-Type` i puste linie zostały już wydrukowane) sprawdza czy pola " -"``nazwa`` i ``addr`` zostały oba ustawione na nie-pusty ciąg znaków::" +"Dla przykładu, następujący kod (który zakłada, że " +"nagłówek :mailheader:`Content-Type` i puste linie zostały już wydrukowane) " +"sprawdza czy pola ``nazwa`` i ``addr`` zostały oba ustawione na nie-pusty " +"ciąg znaków::" msgid "" "Here the fields, accessed through ``form[key]``, are themselves instances " @@ -201,26 +178,27 @@ msgstr "" 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 " -"username fields, separated by commas::" +"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 "" 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 "" msgid "" @@ -238,19 +216,21 @@ 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 "" "Standard ładowania pliku przewiduje możliwość załadowania wielu plików z " "jednego pola (używając rekursywnego kodowania :mimetype:`multipart/\\*`). " -"Gdy to się zdarzy, element będzie słowniko-podobnym elementem :class:" -"`FieldStorage`. To może być określone przez sprawdzenie właściwości :attr:`!" -"type`, która powinna być :mimetype:`multipart/form-data` (lub byćmoże inny " -"typ MIME pasujący do :mimetype:`multipart/\\*`). W tym przypadku może być on " -"iterowany rekursywnie tak, jak przedmiot formularza nadrzędnego poziomu." +"Gdy to się zdarzy, element będzie słowniko-podobnym " +"elementem :class:`FieldStorage`. To może być określone przez sprawdzenie " +"właściwości :attr:`!type`, która powinna być :mimetype:`multipart/form-data` " +"(lub byćmoże inny typ MIME pasujący do :mimetype:`multipart/\\*`). W tym " +"przypadku może być on iterowany rekursywnie tak, jak przedmiot formularza " +"nadrzędnego poziomu." msgid "" "When a form is submitted in the \"old\" format (as the query string or as a " @@ -261,17 +241,17 @@ msgid "" msgstr "" "Gdy formularz jest podawany w \"starym\" formacie (jako ciąg zapytania lub " "pojedyncza część danych typu :mimetype:`application/x-www-form-urlencoded`), " -"wszystkie elementy właściwie będą przykładami uogólnienia :class:" -"`MiniFieldStorage`. W tym przypadku, właściwości :attr:`!list`, :attr:`!" -"file`, i :attr:`filename` są zawsze ``None``." +"wszystkie elementy właściwie będą przykładami " +"uogólnienia :class:`MiniFieldStorage`. W tym przypadku, właściwości :attr:`!" +"list`, :attr:`!file`, i :attr:`filename` są zawsze ``None``." 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 "" "Formularz podany przez sposób postępowania POST który także zawiera ciąg " -"zapytania będzie zawierał zarówno elementy :class:`FieldStorage` jak i :" -"class:`MiniFieldStorage`." +"zapytania będzie zawierał zarówno elementy :class:`FieldStorage` jak " +"i :class:`MiniFieldStorage`." msgid "" "The :attr:`~FieldStorage.file` attribute is automatically closed upon the " @@ -279,20 +259,20 @@ msgid "" msgstr "" 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 "" msgid "Higher Level Interface" msgstr "Sprzęg Wyższego Poziomu (Higher Level Interface)" 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 "" "Poprzednia sekcja wyjaśnia jak czytać dane z formularza CGI używając " "uogólnienia :class:`FieldStorage`. Ten rozdział opisuje sprzęg wyższego " @@ -364,9 +344,9 @@ msgstr "" "listą wartości. To jest irytujące i prowadzi do mniej czytelnych skryptów." 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 "" msgid "" @@ -412,18 +392,11 @@ msgstr "" "niektóre z algorytmów wypełnionych w tym module w innych przypadkach." msgid "" -"Parse a query in the environment or from a file (the file defaults to ``sys." -"stdin``). The *keep_blank_values*, *strict_parsing* and *separator* " +"Parse a query in the environment or from a file (the file defaults to " +"``sys.stdin``). The *keep_blank_values*, *strict_parsing* and *separator* " "parameters are passed to :func:`urllib.parse.parse_qs` unchanged." msgstr "" -msgid "" -"This function, like the rest of the :mod:`cgi` module, is deprecated. It can " -"be replaced by calling :func:`urllib.parse.parse_qs` directly on the desired " -"query string (except for ``multipart/form-data`` input, which can be handled " -"as described for :func:`parse_multipart`)." -msgstr "" - msgid "" "Parse input of type :mimetype:`multipart/form-data` (for file uploads). " "Arguments are *fp* for the input file, *pdict* for a dictionary containing " @@ -451,14 +424,6 @@ msgstr "" msgid "Added the *separator* parameter." msgstr "" -msgid "" -"This function, like the rest of the :mod:`cgi` module, is deprecated. It can " -"be replaced with the functionality in the :mod:`email` package (e.g. :class:" -"`email.message.EmailMessage`/:class:`email.message.Message`) which " -"implements the same MIME RFCs, or with the `multipart `__ PyPI project." -msgstr "" - msgid "" "Parse a MIME header (such as :mailheader:`Content-Type`) into a main value " "and a dictionary of parameters." @@ -466,15 +431,6 @@ msgstr "" "Wczytaj nagłówek MIME (taki, jak :mailheader:`Content-Type`) do głównej " "wartości i słownika parametrów." -msgid "" -"This function, like the rest of the :mod:`cgi` module, is deprecated. It can " -"be replaced with the functionality in the :mod:`email` package, which " -"implements the same MIME RFCs." -msgstr "" - -msgid "For example, with :class:`email.message.EmailMessage`::" -msgstr "" - msgid "" "Robust test CGI script, usable as main program. Writes minimal HTTP headers " "and formats all information provided to the script in HTML format." @@ -498,13 +454,13 @@ msgid "Caring about security" msgstr "Troska o bezpieczeństwo" msgid "" -"There's one important rule: if you invoke an external program (via :func:`os." -"system`, :func:`os.popen` or other functions 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 invoke arbitrary " -"shell commands. Even parts of the URL or field names cannot be trusted, " -"since the request doesn't have to come from your form!" +"There's one important rule: if you invoke an external program " +"(via :func:`os.system`, :func:`os.popen` or other functions 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 " +"invoke arbitrary shell commands. Even parts of the URL or field names " +"cannot be trusted, since the request doesn't have to come from your form!" msgstr "" msgid "" @@ -556,13 +512,13 @@ msgid "" "(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." +"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 "" "Upewnij się, że jakiekolwiek pliki które twój skrypt chce odczytać lub " "zapisać są czytelne i możliwe do zapisania odpowiednio, przez \"innych\" --- " -"ich tryb powinien być ``0o644`` dla czytelnych i 0o666`` dla możliwych do " +"ich tryb powinien być ``0o644`` dla czytelnych i ``0o666`` dla możliwych do " "zapisania. To jest ponieważ z powodów bezpieczeństwa, serwer HTTP wykonuje " "twój skrypt jako użytkownik \"nikt\" - z ang. - \"nobody\" bez żadnych " "szczególnych przywilejów. Może tylko wczytywać (zapisywać, wykonywać) pliki " @@ -651,21 +607,22 @@ msgstr "" "istnieje problem instalacji który powinieneś naprawić zanim spróbujesz iść " "dalej. Jeśli otrzymujesz ładnie sformatowany wypis środowiska i zawartości " "formularza (w tym przypadku, pola powinny być wypisane jako \"addr\" z " -"wartością \"At Home\" i \"name\" z wartością \"Joe Blow\"), plik skryptu :" -"file:`cgi.py` zostały zainstalowane poprawnie. Jeśli wykonasz tę samą " -"procedurę dla twojego własnego skryptu, powinieneś móc go teraz odpluskwiać." +"wartością \"At Home\" i \"name\" z wartością \"Joe Blow\"), plik " +"skryptu :file:`cgi.py` zostały zainstalowane poprawnie. Jeśli wykonasz tę " +"samą procedurę dla twojego własnego skryptu, powinieneś móc go teraz " +"odpluskwiać." 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 ::" msgstr "" -"Następnym krokiem mogłoby być wezwanie zadania :func:`test` modułu :mod:" -"`cgi` z twojego skryptu: zamiana jej głównego kodu na pojedyncze " +"Następnym krokiem mogłoby być wezwanie zadania :func:`test` " +"modułu :mod:`cgi` z twojego skryptu: zamiana jej głównego kodu na pojedyncze " "stwierdzenie::" 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 "" "To powinno dać te same wyniki jak te otrzymane z zainstalowania samego " "pliku :file:`cgi.py`." @@ -688,8 +645,8 @@ msgstr "" 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 "" msgid "" diff --git a/library/chunk.po b/library/chunk.po index 0174dff92a..b76800abf0 100644 --- a/library/chunk.po +++ b/library/chunk.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:56+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`chunk` --- Read IFF chunked data" msgstr ":mod:`chunk` --- Wczytaj pokawałkowane dane IFF" @@ -120,17 +119,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 "" msgid "A :class:`Chunk` object supports the following methods:" @@ -154,9 +153,9 @@ msgstr "" "pliku." 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 "" msgid "Returns ``False``." diff --git a/library/cmath.po b/library/cmath.po index 8b6638e77e..1a706d4d6e 100644 --- a/library/cmath.po +++ b/library/cmath.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Michał Biliński , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:56+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`cmath` --- Mathematical functions for complex numbers" msgstr ":mod:`cmath` --- Matematyczne funkcje dla liczb zespolonych" @@ -39,17 +38,31 @@ msgstr "" "Ten moduł zapewnia dostęp do funkcji matematycznych dla liczb zespolonych. " "Funkcje w tym module akceptują liczby całkowite, liczby zmiennoprzecinkowe " "lub liczby zespolone jako argumenty. Funkcje w tym module zaakceptują " -"również obiekty Python które zawierają metody :meth:`__complex__` lub :meth:" -"`__float__`: te metody są używane do konwertowania obiektów do liczb " -"zmiennoprzecinkowych lub zespolonych, odpowiednio, a funkcje używają później " -"wyników konwersji." +"również obiekty Python które zawierają metody :meth:`__complex__` " +"lub :meth:`__float__`: te metody są używane do konwertowania obiektów do " +"liczb zmiennoprzecinkowych lub zespolonych, odpowiednio, a funkcje używają " +"później wyników konwersji." 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 " -"specified below." +"For functions involving branch cuts, we have the problem of deciding how to " +"define those functions on the cut itself. Following Kahan's \"Branch cuts " +"for complex elementary functions\" paper, as well as Annex G of C99 and " +"later C standards, we use the sign of zero to distinguish one side of the " +"branch cut from the other: for a branch cut along (a portion of) the real " +"axis we look at the sign of the imaginary part, while for a branch cut along " +"the imaginary axis we look at the sign of the real part." +msgstr "" + +msgid "" +"For example, the :func:`cmath.sqrt` function has a branch cut along the " +"negative real axis. An argument of ``complex(-2.0, -0.0)`` is treated as " +"though it lies *below* the branch cut, and so gives a result on the negative " +"imaginary axis::" +msgstr "" + +msgid "" +"But an argument of ``complex(-2.0, 0.0)`` is treated as though it lies above " +"the branch cut::" msgstr "" msgid "Conversions to and from polar coordinates" @@ -57,8 +70,8 @@ msgstr "" 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 "" msgid "" @@ -76,13 +89,11 @@ msgid "" msgstr "" msgid "" -"Return the phase of *x* (also known as the *argument* of *x*), as a float. " +"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 " -"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::" +"along the negative real axis. The sign of the result is the same as the " +"sign of ``x.imag``, even when ``x.imag`` is zero::" msgstr "" msgid "" @@ -113,12 +124,12 @@ msgstr "" msgid "" "Returns the logarithm of *x* to the given *base*. If the *base* is not " "specified, returns the natural logarithm of *x*. There is one branch cut, " -"from 0 along the negative real axis to -∞, continuous from above." +"from 0 along the negative real axis to -∞." msgstr "" 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 "" msgid "" @@ -130,8 +141,8 @@ msgstr "" msgid "" "Return the arc cosine of *x*. There are two branch cuts: One extends right " -"from 1 along the real axis to ∞, continuous from below. The other extends " -"left from -1 along the real axis to -∞, continuous from above." +"from 1 along the real axis to ∞. The other extends left from -1 along the " +"real axis to -∞." msgstr "" msgid "" @@ -140,9 +151,8 @@ msgstr "" msgid "" "Return the arc tangent of *x*. There are two branch cuts: One extends from " -"``1j`` along the imaginary axis to ``∞j``, continuous from the right. The " -"other extends from ``-1j`` along the imaginary axis to ``-∞j``, continuous " -"from the left." +"``1j`` along the imaginary axis to ``∞j``. The other extends from ``-1j`` " +"along the imaginary axis to ``-∞j``." msgstr "" msgid "Return the cosine of *x*." @@ -159,25 +169,23 @@ msgstr "" msgid "" "Return the inverse hyperbolic cosine of *x*. There is one branch cut, " -"extending left from 1 along the real axis to -∞, continuous from above." +"extending left from 1 along the real axis to -∞." msgstr "" msgid "" "Return the inverse hyperbolic sine of *x*. There are two branch cuts: One " -"extends from ``1j`` along the imaginary axis to ``∞j``, continuous from the " -"right. The other extends from ``-1j`` along the imaginary axis to ``-∞j``, " -"continuous from the left." +"extends from ``1j`` along the imaginary axis to ``∞j``. The other extends " +"from ``-1j`` along the imaginary axis to ``-∞j``." msgstr "" 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 " -"above." +"extends from ``1`` along the real axis to ``∞``. The other extends from " +"``-1`` along the real axis to ``-∞``." msgstr "" msgid "Return the hyperbolic cosine of *x*." -msgstr "Zwraca cosinus hiperboliczny z *x*." +msgstr "Zwraca cosinus hiperboliczny z *x*." msgid "Return the hyperbolic sine of *x*." msgstr "Zwraca sinus hiperboliczny z *x*." @@ -192,29 +200,29 @@ msgid "" "Return ``True`` if both the real and imaginary parts of *x* are finite, and " "``False`` otherwise." msgstr "" -"Zwraca 1 ``True`` jeżeli obie rzeczywista i urojona część *x* są skończone, " -"i 2``False`` w innym wypadku." +"Zwraca ``True`` jeżeli obie rzeczywista i urojona część *x* są skończone, i " +"``False`` w przeciwnym wypadku." msgid "" "Return ``True`` if either the real or the imaginary part of *x* is an " "infinity, and ``False`` otherwise." msgstr "" -" Zwraca 1 ``True`` jeżeli rzeczywista lub urojona część *x* jest skończona, " -"i 2``False`` w innym wypadku." +"Zwraca ``True`` jeżeli rzeczywista lub urojona część *x* jest skończona, i " +"``False`` w przeciwnym wypadku." msgid "" "Return ``True`` if either the real or the imaginary part of *x* is a NaN, " "and ``False`` otherwise." msgstr "" -" Zwraca 1 ``True`` jeżeli rzeczywista lub urojona część *x* jest NaN, i " -"2``False`` w innym wypadku." +"Zwraca ``True`` jeżeli rzeczywista lub urojona część *x* jest NaN, i " +"``False`` w przeciwnym wypadku." msgid "" "Return ``True`` if the values *a* and *b* are close to each other and " "``False`` otherwise." msgstr "" -"Zwraca 1``True`` jeżeli wartości *a* i *b* są zbliżone do siebie i " -"2``False`` w innym wypadku." +"Zwraca ``True`` jeżeli wartości *a* i *b* są zbliżone do siebie i ``False`` " +"w przeciwnym wypadku." msgid "" "Whether or not two values are considered close is determined according to " @@ -240,8 +248,8 @@ msgid "" "If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * " "max(abs(a), abs(b)), abs_tol)``." msgstr "" -"Jeżeli nie wystąpi żaden błąd wynikiem będzie: ``abs(a-b) <= max(rel_tol * " -"max(abs(a), abs(b)), abs_tol)``." +"Jeżeli nie wystąpi żaden błąd wynikiem będzie:\n" +" ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)``." msgid "" "The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be " @@ -288,10 +296,10 @@ msgid "" "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)." +"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 "" msgid "" diff --git a/library/cmd.po b/library/cmd.po new file mode 100644 index 0000000000..03ec8e2ff4 --- /dev/null +++ b/library/cmd.po @@ -0,0 +1,272 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`cmd` --- Support for line-oriented command interpreters" +msgstr "" + +msgid "**Source code:** :source:`Lib/cmd.py`" +msgstr "**Kod źródłowy:** :source:`Lib/cmd.py`" + +msgid "" +"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 "" + +msgid "" +"A :class:`Cmd` instance or subclass instance is a line-oriented interpreter " +"framework. There is no good reason to instantiate :class:`Cmd` itself; " +"rather, it's useful as a superclass of an interpreter class you define " +"yourself in order to inherit :class:`Cmd`'s methods and encapsulate action " +"methods." +msgstr "" + +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 automatically." +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`." +msgstr "" + +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 ignored." +msgstr "" + +msgid "Cmd Objects" +msgstr "" + +msgid "A :class:`Cmd` instance has the following methods:" +msgstr "" + +msgid "" +"Repeatedly issue a prompt, accept input, parse an initial prefix off the " +"received input, and dispatch to action methods, passing them the remainder " +"of the line as argument." +msgstr "" + +msgid "" +"The optional argument is a banner or intro string to be issued before the " +"first prompt (this overrides the :attr:`intro` class attribute)." +msgstr "" + +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.)." +msgstr "" + +msgid "An end-of-file on input is passed back as the string ``'EOF'``." +msgstr "" + +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 " +"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)." +msgstr "" + +msgid "" +"This method will return when the :meth:`postcmd` method returns a true " +"value. The *stop* argument to :meth:`postcmd` is the return value from the " +"command's corresponding :meth:`do_\\*` method." +msgstr "" + +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 " +"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 " +"could be used to provide different completion depending upon which position " +"the argument is in." +msgstr "" + +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." +msgstr "" + +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 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 " +"return value from the :meth:`default` method is returned." +msgstr "" + +msgid "" +"Method called when an empty line is entered in response to the prompt. If " +"this method is not overridden, it repeats the last nonempty command entered." +msgstr "" + +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." +msgstr "" + +msgid "" +"Method called to complete an input line when no command-" +"specific :meth:`complete_\\*` method is available. By default, it returns " +"an empty list." +msgstr "" + +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; " +"the :meth:`precmd` implementation may re-write the command or simply return " +"*line* unchanged." +msgstr "" + +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." +msgstr "" + +msgid "" +"Hook method executed once when :meth:`cmdloop` is called. This method is a " +"stub in :class:`Cmd`; it exists to be overridden by subclasses." +msgstr "" + +msgid "" +"Hook method executed once when :meth:`cmdloop` is about to return. This " +"method is a stub in :class:`Cmd`; it exists to be overridden by subclasses." +msgstr "" + +msgid "" +"Instances of :class:`Cmd` subclasses have some public instance variables:" +msgstr "" + +msgid "The prompt issued to solicit input." +msgstr "" + +msgid "The string of characters accepted for the command prefix." +msgstr "" + +msgid "The last nonempty command prefix seen." +msgstr "" + +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." +msgstr "" + +msgid "" +"A string to issue as an intro or banner. May be overridden by giving " +"the :meth:`cmdloop` method an argument." +msgstr "" + +msgid "" +"The header to issue if the help output has a section for documented commands." +msgstr "" + +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)." +msgstr "" + +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)." +msgstr "" + +msgid "" +"The character used to draw separator lines under the help-message headers. " +"If empty, no ruler line is drawn. It defaults to ``'='``." +msgstr "" + +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.)" +msgstr "" + +msgid "Cmd Example" +msgstr "" + +msgid "" +"The :mod:`cmd` module is mainly useful for building custom shells that let a " +"user work with a program interactively." +msgstr "" + +msgid "" +"This section presents a simple example of how to build a shell around a few " +"of the commands in the :mod:`turtle` module." +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +msgid "" +"Here is a sample session with the turtle shell showing the help functions, " +"using blank lines to repeat commands, and the simple record and playback " +"facility:" +msgstr "" diff --git a/library/code.po b/library/code.po new file mode 100644 index 0000000000..06bc27aa42 --- /dev/null +++ b/library/code.po @@ -0,0 +1,211 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`code` --- Interpreter base classes" +msgstr "" + +msgid "**Source code:** :source:`Lib/code.py`" +msgstr "**Kod źródłowy:** :source:`Lib/code.py`" + +msgid "" +"The ``code`` module provides facilities to implement read-eval-print loops " +"in Python. Two classes and convenience functions are included which can be " +"used to build applications which provide an interactive interpreter prompt." +msgstr "" + +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 " +"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 "" + +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." +msgstr "" + +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 " +"discarded after use." +msgstr "" + +msgid "Added *exitmsg* parameter." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"*source* is the source string; *filename* is the optional filename from " +"which source was read, defaulting to ``''``; and *symbol* is the " +"optional grammar start symbol, which should be ``'single'`` (the default), " +"``'eval'`` or ``'exec'``." +msgstr "" + +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; " +"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." +msgstr "" + +msgid "Interactive Interpreter Objects" +msgstr "" + +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 of several things can happen:" +msgstr "" + +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``." +msgstr "" + +msgid "" +"The input is incomplete, and more input is required; :func:`compile_command` " +"returned ``None``. :meth:`runsource` returns ``True``." +msgstr "" + +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 " +"``False``." +msgstr "" + +msgid "" +"The return value can be used to decide whether to use ``sys.ps1`` or " +"``sys.ps2`` to prompt the next line." +msgstr "" + +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." +msgstr "" + +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 " +"deal with it." +msgstr "" + +msgid "" +"Display the syntax error that just occurred. This does not display a stack " +"trace because there isn't one for syntax errors. If *filename* is given, it " +"is stuffed into the exception instead of the default filename provided by " +"Python's parser, because it always uses ``''`` when reading from a " +"string. The output is written by the :meth:`write` method." +msgstr "" + +msgid "" +"Display the exception that just occurred. We remove the first stack item " +"because it is within the interpreter object implementation. The output is " +"written by the :meth:`write` method." +msgstr "" + +msgid "" +"The full chained traceback is displayed instead of just the primary " +"traceback." +msgstr "" + +msgid "" +"Write a string to the standard error stream (``sys.stderr``). Derived " +"classes should override this to provide the appropriate output handling as " +"needed." +msgstr "" + +msgid "Interactive Console Objects" +msgstr "" + +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." +msgstr "" + +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!)." +msgstr "" + +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." +msgstr "" + +msgid "To suppress printing any banner, pass an empty string." +msgstr "" + +msgid "Print an exit message when exiting." +msgstr "" + +msgid "" +"Push a line of source text to the interpreter. The line should not have a " +"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`)." +msgstr "" + +msgid "Remove any unhandled source text from the input buffer." +msgstr "" + +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." +msgstr "" diff --git a/library/codecs.po b/library/codecs.po new file mode 100644 index 0000000000..1883aa3251 --- /dev/null +++ b/library/codecs.po @@ -0,0 +1,2143 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`codecs` --- Codec registry and base classes" +msgstr "" + +msgid "**Source code:** :source:`Lib/codecs.py`" +msgstr "**Kod źródłowy:** :source:`Lib/codecs.py`" + +msgid "" +"This module defines base classes for standard Python codecs (encoders and " +"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 (and " +"decode bytes to text), 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 be used " +"specifically with :term:`text encodings ` or with codecs that " +"encode to :class:`bytes`." +msgstr "" + +msgid "" +"The module defines the following functions for encoding and decoding with " +"any codec:" +msgstr "" + +msgid "Encodes *obj* using the codec registered for *encoding*." +msgstr "" + +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 " +"information on codec error handling." +msgstr "" + +msgid "Decodes *obj* using the codec registered for *encoding*." +msgstr "" + +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 " +"information on codec error handling." +msgstr "" + +msgid "The full details for each codec can also be looked up directly:" +msgstr "" + +msgid "" +"Looks up the codec info in the Python codec registry and returns " +"a :class:`CodecInfo` object as defined below." +msgstr "" + +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." +msgstr "" + +msgid "" +"Codec details when looking up the codec registry. The constructor arguments " +"are stored in attributes of the same name:" +msgstr "" + +msgid "The name of the encoding." +msgstr "" + +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." +msgstr "" + +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. Incremental codecs can maintain state." +msgstr "" + +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." +msgstr "" + +msgid "" +"To simplify access to the various codec components, the module provides " +"these additional functions which use :func:`lookup` for the codec lookup:" +msgstr "" + +msgid "" +"Look up the codec for the given encoding and return its encoder function." +msgstr "" + +msgid "Raises a :exc:`LookupError` in case the encoding cannot be found." +msgstr "" + +msgid "" +"Look up the codec for the given encoding and return its decoder function." +msgstr "" + +msgid "" +"Look up the codec for the given encoding and return its incremental encoder " +"class or factory function." +msgstr "" + +msgid "" +"Raises a :exc:`LookupError` in case the encoding cannot be found or the " +"codec doesn't support an incremental encoder." +msgstr "" + +msgid "" +"Look up the codec for the given encoding and return its incremental decoder " +"class or factory function." +msgstr "" + +msgid "" +"Raises a :exc:`LookupError` in case the encoding cannot be found or the " +"codec doesn't support an incremental decoder." +msgstr "" + +msgid "" +"Look up the codec for the given encoding and return " +"its :class:`StreamReader` class or factory function." +msgstr "" + +msgid "" +"Look up the codec for the given encoding and return " +"its :class:`StreamWriter` class or factory function." +msgstr "" + +msgid "" +"Custom codecs are made available by registering a suitable codec search " +"function:" +msgstr "" + +msgid "" +"Register a codec search function. Search functions are expected to take one " +"argument, being the encoding name in all lower case letters with hyphens and " +"spaces converted to underscores, and return a :class:`CodecInfo` object. In " +"case a search function cannot find a given encoding, it should return " +"``None``." +msgstr "" + +msgid "Hyphens and spaces are converted to underscore." +msgstr "" + +msgid "" +"Unregister a codec search function and clear the registry's cache. If the " +"search function is not registered, do nothing." +msgstr "" + +msgid "" +"While the builtin :func:`open` and the associated :mod:`io` module are the " +"recommended approach for working with encoded text files, this module " +"provides additional utility functions and classes that allow the use of a " +"wider range of codecs when working with binary files:" +msgstr "" + +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." +msgstr "" + +msgid "" +"If *encoding* is not ``None``, then the 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." +msgstr "" + +msgid "" +"*encoding* specifies the encoding which is to be used for the file. Any " +"encoding that encodes to and decodes from bytes is allowed, and the data " +"types supported by the file methods depend on the codec used." +msgstr "" + +msgid "" +"*errors* may be given to define the error handling. It defaults to " +"``'strict'`` which causes a :exc:`ValueError` to be raised in case an " +"encoding error occurs." +msgstr "" + +msgid "" +"*buffering* has the same meaning as for the built-in :func:`open` function. " +"It defaults to -1 which means that the default buffer size will be used." +msgstr "" + +msgid "" +"Return a :class:`StreamRecoder` instance, a wrapped version of *file* which " +"provides transparent transcoding. The original file is closed when the " +"wrapped version is closed." +msgstr "" + +msgid "" +"Data written to the wrapped file is decoded according to the given " +"*data_encoding* and then written to the original file as bytes using " +"*file_encoding*. Bytes read from the original file are decoded according to " +"*file_encoding*, and the result is encoded using *data_encoding*." +msgstr "" + +msgid "If *file_encoding* is not given, it defaults to *data_encoding*." +msgstr "" + +msgid "" +"*errors* may be given to define the error handling. It defaults to " +"``'strict'``, which causes :exc:`ValueError` to be raised in case an " +"encoding error occurs." +msgstr "" + +msgid "" +"Uses an incremental encoder to iteratively encode the input provided by " +"*iterator*. This function is a :term:`generator`. The *errors* argument (as " +"well as any other keyword argument) is passed through to the incremental " +"encoder." +msgstr "" + +msgid "" +"This function requires that the codec accept text :class:`str` objects to " +"encode. Therefore it does not support bytes-to-bytes encoders such as " +"``base64_codec``." +msgstr "" + +msgid "" +"Uses an incremental decoder to iteratively decode the input provided by " +"*iterator*. This function is a :term:`generator`. The *errors* argument (as " +"well as any other keyword argument) is passed through to the incremental " +"decoder." +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`." +msgstr "" + +msgid "" +"The module also provides the following constants which are useful for " +"reading and writing to platform dependent files:" +msgstr "" + +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." +msgstr "" + +msgid "Codec Base Classes" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Error Handlers" +msgstr "" + +msgid "" +"To simplify and standardize error handling, codecs may implement different " +"error handling schemes by accepting the *errors* string argument:" +msgstr "" + +msgid "" +"The following error handlers can be used with all Python :ref:`standard-" +"encodings` codecs:" +msgstr "" + +msgid "Value" +msgstr "Wartość" + +msgid "Meaning" +msgstr "Znaczenie" + +msgid "``'strict'``" +msgstr "``'strict'``" + +msgid "" +"Raise :exc:`UnicodeError` (or a subclass), this is the default. Implemented " +"in :func:`strict_errors`." +msgstr "" + +msgid "``'ignore'``" +msgstr "``'ignore'``" + +msgid "" +"Ignore the malformed data and continue without further notice. Implemented " +"in :func:`ignore_errors`." +msgstr "" + +msgid "``'replace'``" +msgstr "``'replace'``" + +msgid "" +"Replace with a replacement marker. On encoding, use ``?`` (ASCII character). " +"On decoding, use ``�`` (U+FFFD, the official REPLACEMENT CHARACTER). " +"Implemented in :func:`replace_errors`." +msgstr "" + +msgid "``'backslashreplace'``" +msgstr "``'backslashreplace'``" + +msgid "" +"Replace with backslashed escape sequences. On encoding, use hexadecimal form " +"of Unicode code point with formats ``\\xhh`` ``\\uxxxx`` ``\\Uxxxxxxxx``. On " +"decoding, use hexadecimal form of byte value with format ``\\xhh``. " +"Implemented in :func:`backslashreplace_errors`." +msgstr "" + +msgid "``'surrogateescape'``" +msgstr "``'surrogateescape'``" + +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.)" +msgstr "" + +msgid "" +"The following error handlers are only applicable to encoding " +"(within :term:`text encodings `):" +msgstr "" + +msgid "``'xmlcharrefreplace'``" +msgstr "``'xmlcharrefreplace'``" + +msgid "" +"Replace with XML/HTML numeric character reference, which is a decimal form " +"of Unicode code point with format ``&#num;`` Implemented " +"in :func:`xmlcharrefreplace_errors`." +msgstr "" + +msgid "``'namereplace'``" +msgstr "``'namereplace'``" + +msgid "" +"Replace with ``\\N{...}`` escape sequences, what appears in the braces is " +"the Name property from Unicode Character Database. Implemented " +"in :func:`namereplace_errors`." +msgstr "" + +msgid "" +"In addition, the following error handler is specific to the given codecs:" +msgstr "" + +msgid "Codecs" +msgstr "" + +msgid "``'surrogatepass'``" +msgstr "``'surrogatepass'``" + +msgid "utf-8, utf-16, utf-32, utf-16-be, utf-16-le, utf-32-be, utf-32-le" +msgstr "utf-8, utf-16, utf-32, utf-16-be, utf-16-le, utf-32-be, utf-32-le" + +msgid "" +"Allow encoding and decoding surrogate code point (``U+D800`` - ``U+DFFF``) " +"as normal code point. Otherwise these codecs treat the presence of surrogate " +"code point in :class:`str` as an error." +msgstr "" + +msgid "The ``'surrogateescape'`` and ``'surrogatepass'`` error handlers." +msgstr "" + +msgid "" +"The ``'surrogatepass'`` error handler now works with utf-16\\* and utf-32\\* " +"codecs." +msgstr "" + +msgid "The ``'namereplace'`` error handler." +msgstr "" + +msgid "" +"The ``'backslashreplace'`` error handler now works with decoding and " +"translating." +msgstr "" + +msgid "" +"The set of allowed values can be extended by registering a new named error " +"handler:" +msgstr "" + +msgid "" +"Register the error handling function *error_handler* under the name *name*. " +"The *error_handler* argument will be called during encoding and decoding in " +"case of an error, when *name* is specified as the errors parameter." +msgstr "" + +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." +msgstr "" + +msgid "" +"Decoding and translating works similarly, except :exc:`UnicodeDecodeError` " +"or :exc:`UnicodeTranslateError` will be passed to the handler and that the " +"replacement from the error handler will be put into the output directly." +msgstr "" + +msgid "" +"Previously registered error handlers (including the standard error handlers) " +"can be looked up by name:" +msgstr "" + +msgid "Return the error handler previously registered under the name *name*." +msgstr "" + +msgid "Raises a :exc:`LookupError` in case the handler cannot be found." +msgstr "" + +msgid "" +"The following standard error handlers are also made available as module " +"level functions:" +msgstr "" + +msgid "Implements the ``'strict'`` error handling." +msgstr "" + +msgid "Each encoding or decoding error raises a :exc:`UnicodeError`." +msgstr "" + +msgid "Implements the ``'ignore'`` error handling." +msgstr "" + +msgid "" +"Malformed data is ignored; encoding or decoding is continued without further " +"notice." +msgstr "" + +msgid "Implements the ``'replace'`` error handling." +msgstr "" + +msgid "" +"Substitutes ``?`` (ASCII character) for encoding errors or ``�`` (U+FFFD, " +"the official REPLACEMENT CHARACTER) for decoding errors." +msgstr "" + +msgid "Implements the ``'backslashreplace'`` error handling." +msgstr "" + +msgid "" +"Malformed data is replaced by a backslashed escape sequence. On encoding, " +"use the hexadecimal form of Unicode code point with formats ``\\xhh`` " +"``\\uxxxx`` ``\\Uxxxxxxxx``. On decoding, use the hexadecimal form of byte " +"value with format ``\\xhh``." +msgstr "" + +msgid "Works with decoding and translating." +msgstr "" + +msgid "" +"Implements the ``'xmlcharrefreplace'`` error handling (for encoding " +"within :term:`text encoding` only)." +msgstr "" + +msgid "" +"The unencodable character is replaced by an appropriate XML/HTML numeric " +"character reference, which is a decimal form of Unicode code point with " +"format ``&#num;`` ." +msgstr "" + +msgid "" +"Implements the ``'namereplace'`` error handling (for encoding " +"within :term:`text encoding` only)." +msgstr "" + +msgid "" +"The unencodable character is replaced by a ``\\N{...}`` escape sequence. The " +"set of characters that appear in the braces is the Name property from " +"Unicode Character Database. For example, the German lowercase letter ``'ß'`` " +"will be converted to byte sequence ``\\N{LATIN SMALL LETTER SHARP S}`` ." +msgstr "" + +msgid "Stateless Encoding and Decoding" +msgstr "" + +msgid "" +"The base :class:`Codec` class defines these methods which also define the " +"function interfaces of the stateless encoder and decoder:" +msgstr "" + +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``)." +msgstr "" + +msgid "" +"The *errors* argument defines the error handling to apply. It defaults to " +"``'strict'`` handling." +msgstr "" + +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." +msgstr "" + +msgid "" +"The encoder must be able to handle zero length input and return an empty " +"object of the output object type in this situation." +msgstr "" + +msgid "" +"Decodes the object *input* and returns a tuple (output object, length " +"consumed). For instance, for a :term:`text encoding`, decoding converts a " +"bytes object encoded using a particular character set encoding to a string " +"object." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The decoder must be able to handle zero length input and return an empty " +"object of the output object type in this situation." +msgstr "" + +msgid "Incremental Encoding and Decoding" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "IncrementalEncoder Objects" +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." +msgstr "" + +msgid "Constructor for an :class:`IncrementalEncoder` instance." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :class:`IncrementalEncoder` may implement different error handling " +"schemes by providing the *errors* keyword argument. See :ref:`error-" +"handlers` for possible values." +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." +msgstr "" + +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)." +msgstr "" + +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 " +"necessary, to reset the encoder and to get the output." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"Set the state of the encoder to *state*. *state* must be an encoder state " +"returned by :meth:`getstate`." +msgstr "" + +msgid "IncrementalDecoder Objects" +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." +msgstr "" + +msgid "Constructor for an :class:`IncrementalDecoder` instance." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :class:`IncrementalDecoder` may implement different error handling " +"schemes by providing the *errors* keyword argument. See :ref:`error-" +"handlers` for possible values." +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." +msgstr "" + +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)." +msgstr "" + +msgid "Reset the decoder to the initial state." +msgstr "" + +msgid "" +"Return the current state of the decoder. This must be a tuple with two " +"items, the first must be the buffer containing the still undecoded input. " +"The second must be an integer and can be additional state info. (The " +"implementation should make sure that ``0`` is the most common additional " +"state info.) If this additional state info is ``0`` it must be possible to " +"set the decoder to the state which has no input buffered and ``0`` as the " +"additional state info, so that feeding the previously buffered input to the " +"decoder returns it to the previous state without producing any output. " +"(Additional state info that is more complicated than integers can be " +"converted into an integer by marshaling/pickling the info and encoding the " +"bytes of the resulting string into an integer.)" +msgstr "" + +msgid "" +"Set the state of the decoder to *state*. *state* must be a decoder state " +"returned by :meth:`getstate`." +msgstr "" + +msgid "Stream Encoding and Decoding" +msgstr "" + +msgid "" +"The :class:`StreamWriter` and :class:`StreamReader` classes provide generic " +"working interfaces which can be used to implement new encoding submodules " +"very easily. See :mod:`encodings.utf_8` for an example of how this is done." +msgstr "" + +msgid "StreamWriter Objects" +msgstr "" + +msgid "" +"The :class:`StreamWriter` class is a subclass of :class:`Codec` and defines " +"the following methods which every stream writer must define in order to be " +"compatible with the Python codec registry." +msgstr "" + +msgid "Constructor for a :class:`StreamWriter` instance." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *stream* argument must be a file-like object open for writing text or " +"binary data, as appropriate for the specific codec." +msgstr "" + +msgid "" +"The :class:`StreamWriter` may implement different error handling schemes by " +"providing the *errors* keyword argument. See :ref:`error-handlers` for the " +"standard error handlers the underlying stream codec may support." +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:`StreamWriter` " +"object." +msgstr "" + +msgid "Writes the object's contents encoded to the stream." +msgstr "" + +msgid "" +"Writes the concatenated iterable of strings to the stream (possibly by " +"reusing the :meth:`write` method). Infinite or very large iterables are not " +"supported. The standard bytes-to-bytes codecs do not support this method." +msgstr "" + +msgid "Resets the codec buffers used for keeping internal state." +msgstr "" + +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." +msgstr "" + +msgid "" +"In addition to the above methods, the :class:`StreamWriter` must also " +"inherit all other methods and attributes from the underlying stream." +msgstr "" + +msgid "StreamReader Objects" +msgstr "" + +msgid "" +"The :class:`StreamReader` class is a subclass of :class:`Codec` and defines " +"the following methods which every stream reader must define in order to be " +"compatible with the Python codec registry." +msgstr "" + +msgid "Constructor for a :class:`StreamReader` instance." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *stream* argument must be a file-like object open for reading text or " +"binary data, as appropriate for the specific codec." +msgstr "" + +msgid "" +"The :class:`StreamReader` may implement different error handling schemes by " +"providing the *errors* keyword argument. See :ref:`error-handlers` for the " +"standard error handlers the underlying stream codec may support." +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:`StreamReader` " +"object." +msgstr "" + +msgid "" +"The set of allowed values for the *errors* argument can be extended " +"with :func:`register_error`." +msgstr "" + +msgid "Decodes data from the stream and returns the resulting object." +msgstr "" + +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." +msgstr "" + +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 " +"huge files in one step." +msgstr "" + +msgid "" +"The *firstline* flag indicates that it would be sufficient to only return " +"the first line, if there are decoding errors on later lines." +msgstr "" + +msgid "" +"The method should use a greedy read strategy meaning that it should read as " +"much data as is allowed within the definition of the encoding and the given " +"size, e.g. if optional encoding endings or state markers are available on " +"the stream, these should be read too." +msgstr "" + +msgid "Read one line from the input stream and return the decoded data." +msgstr "" + +msgid "" +"*size*, if given, is passed as size argument to the stream's :meth:`read` " +"method." +msgstr "" + +msgid "" +"If *keepends* is false line-endings will be stripped from the lines returned." +msgstr "" + +msgid "" +"Read all lines available on the input stream and return them as a list of " +"lines." +msgstr "" + +msgid "" +"Line-endings are implemented using the codec's :meth:`decode` method and are " +"included in the list entries if *keepends* is true." +msgstr "" + +msgid "" +"*sizehint*, if given, is passed as the *size* argument to the " +"stream's :meth:`read` method." +msgstr "" + +msgid "" +"Note that no stream repositioning should take place. This method is " +"primarily intended to be able to recover from decoding errors." +msgstr "" + +msgid "" +"In addition to the above methods, the :class:`StreamReader` must also " +"inherit all other methods and attributes from the underlying stream." +msgstr "" + +msgid "StreamReaderWriter Objects" +msgstr "" + +msgid "" +"The :class:`StreamReaderWriter` is a convenience class that allows wrapping " +"streams which work in both read and write modes." +msgstr "" + +msgid "" +"The design is such that one can use the factory functions returned by " +"the :func:`lookup` function to construct the instance." +msgstr "" + +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." +msgstr "" + +msgid "" +":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 "" + +msgid "StreamRecoder Objects" +msgstr "" + +msgid "" +"The :class:`StreamRecoder` translates data from one encoding to another, " +"which is sometimes useful when dealing with different encoding environments." +msgstr "" + +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* " +"work on the backend — the data in *stream*." +msgstr "" + +msgid "" +"You can use these objects to do transparent transcodings, e.g., from Latin-1 " +"to UTF-8 and back." +msgstr "" + +msgid "The *stream* argument must be a file-like object." +msgstr "" + +msgid "" +"The *encode* and *decode* arguments must adhere to the :class:`Codec` " +"interface. *Reader* and *Writer* must be factory functions or classes " +"providing objects of the :class:`StreamReader` and :class:`StreamWriter` " +"interface respectively." +msgstr "" + +msgid "" +"Error handling is done in the same way as defined for the stream readers and " +"writers." +msgstr "" + +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." +msgstr "" + +msgid "Encodings and Unicode" +msgstr "" + +msgid "" +"Strings are stored internally as sequences of code points in range " +"``U+0000``--``U+10FFFF``. (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 "" + +msgid "" +"The simplest text encoding (called ``'latin-1'`` or ``'iso-8859-1'``) maps " +"the code points 0--255 to the bytes ``0x0``--``0xff``, which means that a " +"string object that contains code points above ``U+00FF`` can't be encoded " +"with this codec. Doing so will raise a :exc:`UnicodeEncodeError` that looks " +"like the following (although the details of the error message may differ): " +"``UnicodeEncodeError: 'latin-1' codec can't encode character '\\u1234' in " +"position 3: ordinal not in range(256)``." +msgstr "" + +msgid "" +"There's another group of encodings (the so called charmap encodings) that " +"choose a different subset of all Unicode code points and how these code " +"points are mapped to the bytes ``0x0``--``0xff``. To see how this is done " +"simply open e.g. :file:`encodings/cp1252.py` (which is an encoding that is " +"used primarily on Windows). There's a string constant with 256 characters " +"that shows you which character is mapped to which byte value." +msgstr "" + +msgid "" +"All of these encodings can only encode 256 of the 1114112 code points " +"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 " +"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 " +"swapped version of this character (``0xFFFE``) is an illegal character that " +"may not appear in a Unicode text. So when the first character in a " +"``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 " +"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 " +"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." +msgstr "" + +msgid "" +"There's another encoding that is able to encode 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`` " +"bit. Unicode characters are encoded like this (with x being payload bits, " +"which when concatenated give the Unicode character):" +msgstr "" + +msgid "Range" +msgstr "" + +msgid "Encoding" +msgstr "" + +msgid "``U-00000000`` ... ``U-0000007F``" +msgstr "``U-00000000`` ... ``U-0000007F``" + +msgid "0xxxxxxx" +msgstr "0xxxxxxx" + +msgid "``U-00000080`` ... ``U-000007FF``" +msgstr "``U-00000080`` ... ``U-000007FF``" + +msgid "110xxxxx 10xxxxxx" +msgstr "110xxxxx 10xxxxxx" + +msgid "``U-00000800`` ... ``U-0000FFFF``" +msgstr "``U-00000800`` ... ``U-0000FFFF``" + +msgid "1110xxxx 10xxxxxx 10xxxxxx" +msgstr "1110xxxx 10xxxxxx 10xxxxxx" + +msgid "``U-00010000`` ... ``U-0010FFFF``" +msgstr "``U-00010000`` ... ``U-0010FFFF``" + +msgid "11110xxx 10xxxxxx 10xxxxxx 10xxxxxx" +msgstr "11110xxx 10xxxxxx 10xxxxxx 10xxxxxx" + +msgid "" +"The least significant bit of the Unicode character is the rightmost x bit." +msgstr "" + +msgid "" +"As UTF-8 is an 8-bit encoding no BOM is required and any ``U+FEFF`` " +"character in the decoded string (even if it's the first character) is " +"treated as a ``ZERO WIDTH NO-BREAK SPACE``." +msgstr "" + +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 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 "" + +msgid "LATIN SMALL LETTER I WITH DIAERESIS" +msgstr "LATIN SMALL LETTER I WITH DIAERESIS" + +msgid "RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK" +msgstr "RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK" + +msgid "INVERTED QUESTION MARK" +msgstr "INVERTED QUESTION MARK" + +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 " +"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 " +"three bytes if they appear as the first three bytes in the file. In UTF-8, " +"the use of the BOM is discouraged and should generally be avoided." +msgstr "" + +msgid "Standard Encodings" +msgstr "" + +msgid "" +"Python comes with a number of codecs built-in, either implemented as C " +"functions or with dictionaries as mapping tables. The following table lists " +"the codecs by name, together with a few common aliases, and the languages " +"for which the encoding is likely used. Neither the list of aliases nor the " +"list of languages is meant to be exhaustive. Notice that spelling " +"alternatives that only differ in case or use a hyphen instead of an " +"underscore are also valid aliases; therefore, e.g. ``'utf-8'`` is a valid " +"alias for the ``'utf_8'`` codec." +msgstr "" + +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." +msgstr "" + +msgid "Optimization opportunity recognized for us-ascii." +msgstr "" + +msgid "" +"Many of the character sets support the same languages. They vary in " +"individual characters (e.g. whether the EURO SIGN is supported or not), and " +"in the assignment of characters to code positions. For the European " +"languages in particular, the following variants typically exist:" +msgstr "" + +msgid "an ISO 8859 codeset" +msgstr "" + +msgid "" +"a Microsoft Windows code page, which is typically derived from an 8859 " +"codeset, but replaces control characters with additional graphic characters" +msgstr "" + +msgid "an IBM EBCDIC code page" +msgstr "" + +msgid "an IBM PC code page, which is ASCII compatible" +msgstr "" + +msgid "Codec" +msgstr "" + +msgid "Aliases" +msgstr "" + +msgid "Languages" +msgstr "" + +msgid "ascii" +msgstr "ascii" + +msgid "646, us-ascii" +msgstr "646, us-ascii" + +msgid "English" +msgstr "" + +msgid "big5" +msgstr "big5" + +msgid "big5-tw, csbig5" +msgstr "big5-tw, csbig5" + +msgid "Traditional Chinese" +msgstr "" + +msgid "big5hkscs" +msgstr "big5hkscs" + +msgid "big5-hkscs, hkscs" +msgstr "big5-hkscs, hkscs" + +msgid "cp037" +msgstr "cp037" + +msgid "IBM037, IBM039" +msgstr "IBM037, IBM039" + +msgid "cp273" +msgstr "cp273" + +msgid "273, IBM273, csIBM273" +msgstr "273, IBM273, csIBM273" + +msgid "German" +msgstr "" + +msgid "cp424" +msgstr "cp424" + +msgid "EBCDIC-CP-HE, IBM424" +msgstr "EBCDIC-CP-HE, IBM424" + +msgid "Hebrew" +msgstr "" + +msgid "cp437" +msgstr "cp437" + +msgid "437, IBM437" +msgstr "437, IBM437" + +msgid "cp500" +msgstr "cp500" + +msgid "EBCDIC-CP-BE, EBCDIC-CP-CH, IBM500" +msgstr "EBCDIC-CP-BE, EBCDIC-CP-CH, IBM500" + +msgid "Western Europe" +msgstr "" + +msgid "cp720" +msgstr "cp720" + +msgid "Arabic" +msgstr "" + +msgid "cp737" +msgstr "cp737" + +msgid "Greek" +msgstr "" + +msgid "cp775" +msgstr "cp775" + +msgid "IBM775" +msgstr "IBM775" + +msgid "Baltic languages" +msgstr "" + +msgid "cp850" +msgstr "cp850" + +msgid "850, IBM850" +msgstr "850, IBM850" + +msgid "cp852" +msgstr "cp852" + +msgid "852, IBM852" +msgstr "852, IBM852" + +msgid "Central and Eastern Europe" +msgstr "" + +msgid "cp855" +msgstr "cp855" + +msgid "855, IBM855" +msgstr "855, IBM855" + +msgid "Bulgarian, Byelorussian, Macedonian, Russian, Serbian" +msgstr "" + +msgid "cp856" +msgstr "cp856" + +msgid "cp857" +msgstr "cp857" + +msgid "857, IBM857" +msgstr "857, IBM857" + +msgid "Turkish" +msgstr "" + +msgid "cp858" +msgstr "cp858" + +msgid "858, IBM858" +msgstr "858, IBM858" + +msgid "cp860" +msgstr "cp860" + +msgid "860, IBM860" +msgstr "860, IBM860" + +msgid "Portuguese" +msgstr "" + +msgid "cp861" +msgstr "cp861" + +msgid "861, CP-IS, IBM861" +msgstr "861, CP-IS, IBM861" + +msgid "Icelandic" +msgstr "" + +msgid "cp862" +msgstr "cp862" + +msgid "862, IBM862" +msgstr "862, IBM862" + +msgid "cp863" +msgstr "cp863" + +msgid "863, IBM863" +msgstr "863, IBM863" + +msgid "Canadian" +msgstr "" + +msgid "cp864" +msgstr "cp864" + +msgid "IBM864" +msgstr "IBM864" + +msgid "cp865" +msgstr "cp865" + +msgid "865, IBM865" +msgstr "865, IBM865" + +msgid "Danish, Norwegian" +msgstr "" + +msgid "cp866" +msgstr "cp866" + +msgid "866, IBM866" +msgstr "866, IBM866" + +msgid "Russian" +msgstr "" + +msgid "cp869" +msgstr "cp869" + +msgid "869, CP-GR, IBM869" +msgstr "869, CP-GR, IBM869" + +msgid "cp874" +msgstr "cp874" + +msgid "Thai" +msgstr "" + +msgid "cp875" +msgstr "cp875" + +msgid "cp932" +msgstr "cp932" + +msgid "932, ms932, mskanji, ms-kanji" +msgstr "" + +msgid "Japanese" +msgstr "" + +msgid "cp949" +msgstr "cp949" + +msgid "949, ms949, uhc" +msgstr "949, ms949, uhc" + +msgid "Korean" +msgstr "" + +msgid "cp950" +msgstr "cp950" + +msgid "950, ms950" +msgstr "950, ms950" + +msgid "cp1006" +msgstr "cp1006" + +msgid "Urdu" +msgstr "" + +msgid "cp1026" +msgstr "cp1026" + +msgid "ibm1026" +msgstr "ibm1026" + +msgid "cp1125" +msgstr "cp1125" + +msgid "1125, ibm1125, cp866u, ruscii" +msgstr "1125, ibm1125, cp866u, ruscii" + +msgid "Ukrainian" +msgstr "" + +msgid "cp1140" +msgstr "cp1140" + +msgid "ibm1140" +msgstr "ibm1140" + +msgid "cp1250" +msgstr "cp1250" + +msgid "windows-1250" +msgstr "windows-1250" + +msgid "cp1251" +msgstr "cp1251" + +msgid "windows-1251" +msgstr "windows-1251" + +msgid "cp1252" +msgstr "cp1252" + +msgid "windows-1252" +msgstr "windows-1252" + +msgid "cp1253" +msgstr "cp1253" + +msgid "windows-1253" +msgstr "windows-1253" + +msgid "cp1254" +msgstr "cp1254" + +msgid "windows-1254" +msgstr "windows-1254" + +msgid "cp1255" +msgstr "cp1255" + +msgid "windows-1255" +msgstr "windows-1255" + +msgid "cp1256" +msgstr "cp1256" + +msgid "windows-1256" +msgstr "windows-1256" + +msgid "cp1257" +msgstr "cp1257" + +msgid "windows-1257" +msgstr "windows-1257" + +msgid "cp1258" +msgstr "cp1258" + +msgid "windows-1258" +msgstr "windows-1258" + +msgid "Vietnamese" +msgstr "" + +msgid "euc_jp" +msgstr "euc_jp" + +msgid "eucjp, ujis, u-jis" +msgstr "eucjp, ujis, u-jis" + +msgid "euc_jis_2004" +msgstr "euc_jis_2004" + +msgid "jisx0213, eucjis2004" +msgstr "jisx0213, eucjis2004" + +msgid "euc_jisx0213" +msgstr "euc_jisx0213" + +msgid "eucjisx0213" +msgstr "eucjisx0213" + +msgid "euc_kr" +msgstr "euc_kr" + +msgid "euckr, korean, ksc5601, ks_c-5601, ks_c-5601-1987, ksx1001, ks_x-1001" +msgstr "euckr, korean, ksc5601, ks_c-5601, ks_c-5601-1987, ksx1001, ks_x-1001" + +msgid "gb2312" +msgstr "gb2312" + +msgid "" +"chinese, csiso58gb231280, euc-cn, euccn, eucgb2312-cn, gb2312-1980, " +"gb2312-80, iso-ir-58" +msgstr "" +"chinese, csiso58gb231280, euc-cn, euccn, eucgb2312-cn, gb2312-1980, " +"gb2312-80, iso-ir-58" + +msgid "Simplified Chinese" +msgstr "" + +msgid "gbk" +msgstr "gbk" + +msgid "936, cp936, ms936" +msgstr "936, cp936, ms936" + +msgid "Unified Chinese" +msgstr "" + +msgid "gb18030" +msgstr "gb18030" + +msgid "gb18030-2000" +msgstr "gb18030-2000" + +msgid "hz" +msgstr "hz" + +msgid "hzgb, hz-gb, hz-gb-2312" +msgstr "hzgb, hz-gb, hz-gb-2312" + +msgid "iso2022_jp" +msgstr "iso2022_jp" + +msgid "csiso2022jp, iso2022jp, iso-2022-jp" +msgstr "csiso2022jp, iso2022jp, iso-2022-jp" + +msgid "iso2022_jp_1" +msgstr "iso2022_jp_1" + +msgid "iso2022jp-1, iso-2022-jp-1" +msgstr "iso2022jp-1, iso-2022-jp-1" + +msgid "iso2022_jp_2" +msgstr "iso2022_jp_2" + +msgid "iso2022jp-2, iso-2022-jp-2" +msgstr "iso2022jp-2, iso-2022-jp-2" + +msgid "Japanese, Korean, Simplified Chinese, Western Europe, Greek" +msgstr "" + +msgid "iso2022_jp_2004" +msgstr "iso2022_jp_2004" + +msgid "iso2022jp-2004, iso-2022-jp-2004" +msgstr "iso2022jp-2004, iso-2022-jp-2004" + +msgid "iso2022_jp_3" +msgstr "iso2022_jp_3" + +msgid "iso2022jp-3, iso-2022-jp-3" +msgstr "iso2022jp-3, iso-2022-jp-3" + +msgid "iso2022_jp_ext" +msgstr "iso2022_jp_ext" + +msgid "iso2022jp-ext, iso-2022-jp-ext" +msgstr "iso2022jp-ext, iso-2022-jp-ext" + +msgid "iso2022_kr" +msgstr "iso2022_kr" + +msgid "csiso2022kr, iso2022kr, iso-2022-kr" +msgstr "csiso2022kr, iso2022kr, iso-2022-kr" + +msgid "latin_1" +msgstr "latin_1" + +msgid "iso-8859-1, iso8859-1, 8859, cp819, latin, latin1, L1" +msgstr "iso-8859-1, iso8859-1, 8859, cp819, latin, latin1, L1" + +msgid "iso8859_2" +msgstr "iso8859_2" + +msgid "iso-8859-2, latin2, L2" +msgstr "iso-8859-2, latin2, L2" + +msgid "iso8859_3" +msgstr "iso8859_3" + +msgid "iso-8859-3, latin3, L3" +msgstr "iso-8859-3, latin3, L3" + +msgid "Esperanto, Maltese" +msgstr "" + +msgid "iso8859_4" +msgstr "iso8859_4" + +msgid "iso-8859-4, latin4, L4" +msgstr "iso-8859-4, latin4, L4" + +msgid "iso8859_5" +msgstr "iso8859_5" + +msgid "iso-8859-5, cyrillic" +msgstr "iso-8859-5, cyrillic" + +msgid "iso8859_6" +msgstr "iso8859_6" + +msgid "iso-8859-6, arabic" +msgstr "iso-8859-6, arabic" + +msgid "iso8859_7" +msgstr "iso8859_7" + +msgid "iso-8859-7, greek, greek8" +msgstr "iso-8859-7, greek, greek8" + +msgid "iso8859_8" +msgstr "iso8859_8" + +msgid "iso-8859-8, hebrew" +msgstr "iso-8859-8, hebrew" + +msgid "iso8859_9" +msgstr "iso8859_9" + +msgid "iso-8859-9, latin5, L5" +msgstr "iso-8859-9, latin5, L5" + +msgid "iso8859_10" +msgstr "iso8859_10" + +msgid "iso-8859-10, latin6, L6" +msgstr "iso-8859-10, latin6, L6" + +msgid "Nordic languages" +msgstr "" + +msgid "iso8859_11" +msgstr "iso8859_11" + +msgid "iso-8859-11, thai" +msgstr "iso-8859-11, thai" + +msgid "Thai languages" +msgstr "" + +msgid "iso8859_13" +msgstr "iso8859_13" + +msgid "iso-8859-13, latin7, L7" +msgstr "iso-8859-13, latin7, L7" + +msgid "iso8859_14" +msgstr "iso8859_14" + +msgid "iso-8859-14, latin8, L8" +msgstr "iso-8859-14, latin8, L8" + +msgid "Celtic languages" +msgstr "" + +msgid "iso8859_15" +msgstr "iso8859_15" + +msgid "iso-8859-15, latin9, L9" +msgstr "iso-8859-15, latin9, L9" + +msgid "iso8859_16" +msgstr "iso8859_16" + +msgid "iso-8859-16, latin10, L10" +msgstr "iso-8859-16, latin10, L10" + +msgid "South-Eastern Europe" +msgstr "" + +msgid "johab" +msgstr "johab" + +msgid "cp1361, ms1361" +msgstr "cp1361, ms1361" + +msgid "koi8_r" +msgstr "koi8_r" + +msgid "koi8_t" +msgstr "koi8_t" + +msgid "Tajik" +msgstr "" + +msgid "koi8_u" +msgstr "koi8_u" + +msgid "kz1048" +msgstr "kz1048" + +msgid "kz_1048, strk1048_2002, rk1048" +msgstr "kz_1048, strk1048_2002, rk1048" + +msgid "Kazakh" +msgstr "" + +msgid "mac_cyrillic" +msgstr "mac_cyrillic" + +msgid "maccyrillic" +msgstr "maccyrillic" + +msgid "mac_greek" +msgstr "mac_greek" + +msgid "macgreek" +msgstr "" + +msgid "mac_iceland" +msgstr "mac_iceland" + +msgid "maciceland" +msgstr "maciceland" + +msgid "mac_latin2" +msgstr "mac_latin2" + +msgid "maclatin2, maccentraleurope, mac_centeuro" +msgstr "maclatin2, maccentraleurope, mac_centeuro" + +msgid "mac_roman" +msgstr "mac_roman" + +msgid "macroman, macintosh" +msgstr "macroman, macintosh" + +msgid "mac_turkish" +msgstr "mac_turkish" + +msgid "macturkish" +msgstr "macturkish" + +msgid "ptcp154" +msgstr "ptcp154" + +msgid "csptcp154, pt154, cp154, cyrillic-asian" +msgstr "csptcp154, pt154, cp154, cyrillic-asian" + +msgid "shift_jis" +msgstr "shift_jis" + +msgid "csshiftjis, shiftjis, sjis, s_jis" +msgstr "csshiftjis, shiftjis, sjis, s_jis" + +msgid "shift_jis_2004" +msgstr "shift_jis_2004" + +msgid "shiftjis2004, sjis_2004, sjis2004" +msgstr "shiftjis2004, sjis_2004, sjis2004" + +msgid "shift_jisx0213" +msgstr "shift_jisx0213" + +msgid "shiftjisx0213, sjisx0213, s_jisx0213" +msgstr "shiftjisx0213, sjisx0213, s_jisx0213" + +msgid "utf_32" +msgstr "utf_32" + +msgid "U32, utf32" +msgstr "U32, utf32" + +msgid "all languages" +msgstr "" + +msgid "utf_32_be" +msgstr "utf_32_be" + +msgid "UTF-32BE" +msgstr "UTF-32BE" + +msgid "utf_32_le" +msgstr "utf_32_le" + +msgid "UTF-32LE" +msgstr "UTF-32LE" + +msgid "utf_16" +msgstr "utf_16" + +msgid "U16, utf16" +msgstr "U16, utf16" + +msgid "utf_16_be" +msgstr "utf_16_be" + +msgid "UTF-16BE" +msgstr "UTF-16BE" + +msgid "utf_16_le" +msgstr "utf_16_le" + +msgid "UTF-16LE" +msgstr "UTF-16LE" + +msgid "utf_7" +msgstr "utf_7" + +msgid "U7, unicode-1-1-utf-7" +msgstr "U7, unicode-1-1-utf-7" + +msgid "utf_8" +msgstr "utf_8" + +msgid "U8, UTF, utf8, cp65001" +msgstr "U8, UTF, utf8, cp65001" + +msgid "utf_8_sig" +msgstr "utf_8_sig" + +msgid "" +"The utf-16\\* and utf-32\\* encoders no longer allow surrogate code points " +"(``U+D800``--``U+DFFF``) to be encoded. The utf-32\\* decoders no longer " +"decode byte sequences that correspond to surrogate code points." +msgstr "" + +msgid "``cp65001`` is now an alias to ``utf_8``." +msgstr "" + +msgid "Python Specific Encodings" +msgstr "" + +msgid "" +"A number of predefined codecs are specific to Python, so their codec names " +"have no meaning outside Python. These are listed in the tables below based " +"on the expected input and output types (note that while text encodings are " +"the most common use case for codecs, the underlying codec infrastructure " +"supports arbitrary data transforms rather than just text encodings). For " +"asymmetric codecs, the stated meaning describes the encoding direction." +msgstr "" + +msgid "Text Encodings" +msgstr "" + +msgid "" +"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 "" + +msgid "idna" +msgstr "idna" + +msgid "" +"Implement :rfc:`3490`, see also :mod:`encodings.idna`. Only " +"``errors='strict'`` is supported." +msgstr "" + +msgid "mbcs" +msgstr "mbcs" + +msgid "ansi, dbcs" +msgstr "ansi, dbcs" + +msgid "" +"Windows only: Encode the operand according to the ANSI codepage (CP_ACP)." +msgstr "" + +msgid "oem" +msgstr "oem" + +msgid "" +"Windows only: Encode the operand according to the OEM codepage (CP_OEMCP)." +msgstr "" + +msgid "palmos" +msgstr "palmos" + +msgid "Encoding of PalmOS 3.5." +msgstr "" + +msgid "punycode" +msgstr "punycode" + +msgid "Implement :rfc:`3492`. Stateful codecs are not supported." +msgstr "" + +msgid "raw_unicode_escape" +msgstr "raw_unicode_escape" + +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 " +"pickle protocol." +msgstr "" + +msgid "undefined" +msgstr "" + +msgid "" +"Raise an exception for all conversions, even empty strings. The error " +"handler is ignored." +msgstr "" + +msgid "unicode_escape" +msgstr "unicode_escape" + +msgid "" +"Encoding suitable as the contents of a Unicode literal in ASCII-encoded " +"Python source code, except that quotes are not escaped. Decode from Latin-1 " +"source code. Beware that Python source code actually uses UTF-8 by default." +msgstr "" + +msgid "\"unicode_internal\" codec is removed." +msgstr "" + +msgid "Binary Transforms" +msgstr "" + +msgid "" +"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 "" + +msgid "Encoder / decoder" +msgstr "" + +msgid "base64_codec [#b64]_" +msgstr "base64_codec [#b64]_" + +msgid "base64, base_64" +msgstr "base64, base_64" + +msgid "" +"Convert the operand to multiline MIME base64 (the result always includes a " +"trailing ``'\\n'``)." +msgstr "" + +msgid "" +"accepts any :term:`bytes-like object` as input for encoding and decoding" +msgstr "" + +msgid ":meth:`base64.encodebytes` / :meth:`base64.decodebytes`" +msgstr ":meth:`base64.encodebytes` / :meth:`base64.decodebytes`" + +msgid "bz2_codec" +msgstr "bz2_codec" + +msgid "bz2" +msgstr "bz2" + +msgid "Compress the operand using bz2." +msgstr "" + +msgid ":meth:`bz2.compress` / :meth:`bz2.decompress`" +msgstr ":meth:`bz2.compress` / :meth:`bz2.decompress`" + +msgid "hex_codec" +msgstr "hex_codec" + +msgid "hex" +msgstr "hex" + +msgid "" +"Convert the operand to hexadecimal representation, with two digits per byte." +msgstr "" + +msgid ":meth:`binascii.b2a_hex` / :meth:`binascii.a2b_hex`" +msgstr ":meth:`binascii.b2a_hex` / :meth:`binascii.a2b_hex`" + +msgid "quopri_codec" +msgstr "quopri_codec" + +msgid "quopri, quotedprintable, quoted_printable" +msgstr "quopri, quotedprintable, quoted_printable" + +msgid "Convert the operand to MIME quoted printable." +msgstr "" + +msgid ":meth:`quopri.encode` with ``quotetabs=True`` / :meth:`quopri.decode`" +msgstr "" + +msgid "uu_codec" +msgstr "uu_codec" + +msgid "uu" +msgstr "uu" + +msgid "Convert the operand using uuencode." +msgstr "" + +msgid ":meth:`uu.encode` / :meth:`uu.decode`" +msgstr "" + +msgid "zlib_codec" +msgstr "zlib_codec" + +msgid "zip, zlib" +msgstr "zip, zlib" + +msgid "Compress the operand using gzip." +msgstr "" + +msgid ":meth:`zlib.compress` / :meth:`zlib.decompress`" +msgstr ":meth:`zlib.compress` / :meth:`zlib.decompress`" + +msgid "" +"In addition to :term:`bytes-like objects `, " +"``'base64_codec'`` also accepts ASCII-only instances of :class:`str` for " +"decoding" +msgstr "" + +msgid "Restoration of the binary transforms." +msgstr "" + +msgid "Restoration of the aliases for the binary transforms." +msgstr "" + +msgid "Text Transforms" +msgstr "" + +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 produces :class:`bytes` output)." +msgstr "" + +msgid "rot_13" +msgstr "rot_13" + +msgid "rot13" +msgstr "rot13" + +msgid "Return the Caesar-cypher encryption of the operand." +msgstr "" + +msgid "Restoration of the ``rot_13`` text transform." +msgstr "" + +msgid "Restoration of the ``rot13`` alias." +msgstr "" + +msgid "" +":mod:`encodings.idna` --- Internationalized Domain Names in Applications" +msgstr "" + +msgid "" +"This module implements :rfc:`3490` (Internationalized Domain Names in " +"Applications) and :rfc:`3492` (Nameprep: A Stringprep Profile for " +"Internationalized Domain Names (IDN)). It builds upon the ``punycode`` " +"encoding and :mod:`stringprep`." +msgstr "" + +msgid "" +"If you need the IDNA 2008 standard from :rfc:`5891` and :rfc:`5895`, use the " +"third-party `idna module `_." +msgstr "" + +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." +msgstr "" + +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)." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The module :mod:`encodings.idna` also implements the nameprep procedure, " +"which performs certain normalizations on host names, to achieve case-" +"insensitivity of international domain names, and to unify similar " +"characters. The nameprep functions can be used directly if desired." +msgstr "" + +msgid "" +"Return the nameprepped version of *label*. The implementation currently " +"assumes query strings, so ``AllowUnassigned`` is true." +msgstr "" + +msgid "" +"Convert a label to ASCII, as specified in :rfc:`3490`. ``UseSTD3ASCIIRules`` " +"is assumed to be false." +msgstr "" + +msgid "Convert a label to Unicode, as specified in :rfc:`3490`." +msgstr "" + +msgid ":mod:`encodings.mbcs` --- Windows ANSI codepage" +msgstr "" + +msgid "This module implements the ANSI codepage (CP_ACP)." +msgstr "" + +msgid ":ref:`Availability `: Windows only." +msgstr "" + +msgid "Support any error handler." +msgstr "" + +msgid "" +"Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used " +"to encode, and ``'ignore'`` to decode." +msgstr "" + +msgid ":mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature" +msgstr "" + +msgid "" +"This module implements a variant of the UTF-8 codec. On encoding, a UTF-8 " +"encoded BOM will be prepended to the UTF-8 encoded bytes. For the stateful " +"encoder this is only done once (on the first write to the byte stream). On " +"decoding, an optional UTF-8 encoded BOM at the start of the data will be " +"skipped." +msgstr "" diff --git a/library/codeop.po b/library/codeop.po new file mode 100644 index 0000000000..29011cdea7 --- /dev/null +++ b/library/codeop.po @@ -0,0 +1,104 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`codeop` --- Compile Python code" +msgstr "" + +msgid "**Source code:** :source:`Lib/codeop.py`" +msgstr "**Kod źródłowy:** :source:`Lib/codeop.py`" + +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." +msgstr "" + +msgid "There are two parts to this job:" +msgstr "" + +msgid "" +"Being able to tell if a line of input completes a Python statement: in " +"short, telling whether to print '``>>>``' or '``...``' next." +msgstr "" + +msgid "" +"Remembering which future statements the user has entered, so subsequent " +"input can be compiled with these in effect." +msgstr "" + +msgid "" +"The :mod:`codeop` module provides a way of doing each of these things, and a " +"way of doing them both." +msgstr "" + +msgid "To do just the former:" +msgstr "" + +msgid "" +"Tries to compile *source*, which should be a string of Python code and " +"return a code object if *source* is valid Python code. In that case, the " +"filename attribute of the code object will be *filename*, which defaults to " +"``''``. Returns ``None`` if *source* is *not* valid Python code, but " +"is a prefix of valid Python code." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *symbol* argument determines whether *source* is compiled as a statement " +"(``'single'``, the default), as a sequence of :term:`statement` (``'exec'``) " +"or as an :term:`expression` (``'eval'``). Any other value will " +"cause :exc:`ValueError` to be raised." +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. " +"This will be fixed once the API for the parser is better." +msgstr "" + +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." +msgstr "" + +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 :mod:`__future__` statement, the instance " +"'remembers' and compiles all subsequent program texts with the statement in " +"force." +msgstr "" diff --git a/library/collections.po b/library/collections.po new file mode 100644 index 0000000000..c49ba110d2 --- /dev/null +++ b/library/collections.po @@ -0,0 +1,1112 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`collections` --- Container datatypes" +msgstr "" + +msgid "**Source code:** :source:`Lib/collections/__init__.py`" +msgstr "**Kod źródłowy:** :source:`Lib/collections/__init__.py`" + +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`." +msgstr "" + +msgid ":func:`namedtuple`" +msgstr ":func:`namedtuple`" + +msgid "factory function for creating tuple subclasses with named fields" +msgstr "" + +msgid ":class:`deque`" +msgstr ":class:`deque`" + +msgid "list-like container with fast appends and pops on either end" +msgstr "" + +msgid ":class:`ChainMap`" +msgstr ":class:`ChainMap`" + +msgid "dict-like class for creating a single view of multiple mappings" +msgstr "" + +msgid ":class:`Counter`" +msgstr ":class:`Counter`" + +msgid "dict subclass for counting :term:`hashable` objects" +msgstr "" + +msgid ":class:`OrderedDict`" +msgstr ":class:`OrderedDict`" + +msgid "dict subclass that remembers the order entries were added" +msgstr "" + +msgid ":class:`defaultdict`" +msgstr ":class:`defaultdict`" + +msgid "dict subclass that calls a factory function to supply missing values" +msgstr "" + +msgid ":class:`UserDict`" +msgstr ":class:`UserDict`" + +msgid "wrapper around dictionary objects for easier dict subclassing" +msgstr "" + +msgid ":class:`UserList`" +msgstr ":class:`UserList`" + +msgid "wrapper around list objects for easier list subclassing" +msgstr "" + +msgid ":class:`UserString`" +msgstr ":class:`UserString`" + +msgid "wrapper around string objects for easier string subclassing" +msgstr "" + +msgid ":class:`ChainMap` objects" +msgstr ":class:`ChainMap` przedmioty" + +msgid "" +"A :class:`ChainMap` class is provided for quickly linking a number of " +"mappings so they can be treated as a single unit. It is often much faster " +"than creating a new dictionary and running multiple :meth:`~dict.update` " +"calls." +msgstr "" + +msgid "" +"The class can be used to simulate nested scopes and is useful in templating." +msgstr "" + +msgid "" +"A :class:`ChainMap` groups multiple dicts or other mappings together to " +"create a single, updateable view. If no *maps* are specified, a single " +"empty dictionary is provided so that a new chain always has at least one " +"mapping." +msgstr "" + +msgid "" +"The underlying mappings are stored in a list. That list is public and can " +"be accessed or updated using the *maps* attribute. There is no other state." +msgstr "" + +msgid "" +"Lookups search the underlying mappings successively until a key is found. " +"In contrast, writes, updates, and deletions only operate on the first " +"mapping." +msgstr "" + +msgid "" +"A :class:`ChainMap` incorporates the underlying mappings by reference. So, " +"if one of the underlying mappings gets updated, those changes will be " +"reflected in :class:`ChainMap`." +msgstr "" + +msgid "" +"All of the usual dictionary methods are supported. In addition, there is a " +"*maps* attribute, a method for creating new subcontexts, and a property for " +"accessing all but the first mapping:" +msgstr "" + +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." +msgstr "" + +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 " +"used, so that a call to ``d.new_child()`` is equivalent to: ``ChainMap({}, " +"*d.maps)``. If any keyword arguments are specified, they update passed map " +"or new empty dict. This method is used for creating subcontexts that can be " +"updated without altering values in any of the parent mappings." +msgstr "" + +msgid "The optional ``m`` parameter was added." +msgstr "" + +msgid "Keyword arguments support was added." +msgstr "" + +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:])``." +msgstr "" + +msgid "" +"Note, the iteration order of a :class:`ChainMap()` is determined by scanning " +"the mappings last to first::" +msgstr "" + +msgid "" +"This gives the same ordering as a series of :meth:`dict.update` calls " +"starting with the last mapping::" +msgstr "" + +msgid "Added support for ``|`` and ``|=`` operators, specified in :pep:`584`." +msgstr "" + +msgid "" +"The `MultiContext class `_ in the Enthought `CodeTools package " +"`_ has options to support writing to " +"any mapping in the chain." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"A `greatly simplified read-only version of Chainmap `_." +msgstr "" + +msgid ":class:`ChainMap` Examples and Recipes" +msgstr "" + +msgid "This section shows various approaches to working with chained maps." +msgstr "" + +msgid "Example of simulating Python's internal lookup chain::" +msgstr "" + +msgid "" +"Example of letting user specified command-line arguments take precedence " +"over environment variables which in turn take precedence over default " +"values::" +msgstr "" + +msgid "" +"Example patterns for using the :class:`ChainMap` class to simulate nested " +"contexts::" +msgstr "" + +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. " +"However, if deep writes and deletions are desired, it is easy to make a " +"subclass that updates keys found deeper in the chain::" +msgstr "" + +msgid ":class:`Counter` objects" +msgstr ":class:`Counter` przedmioty" + +msgid "" +"A counter tool is provided to support convenient and rapid tallies. For " +"example::" +msgstr "" + +msgid "" +"A :class:`Counter` is a :class:`dict` subclass for counting :term:`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." +msgstr "" + +msgid "" +"Elements are counted from an *iterable* or initialized from another " +"*mapping* (or counter):" +msgstr "" + +msgid "" +"Counter objects have a dictionary interface except that they return a zero " +"count for missing items instead of raising a :exc:`KeyError`:" +msgstr "" + +msgid "" +"Setting a count to zero does not remove an element from a counter. Use " +"``del`` to remove it entirely:" +msgstr "" + +msgid "" +"As a :class:`dict` subclass, :class:`Counter` inherited the capability to " +"remember insertion order. Math operations on *Counter* objects also " +"preserve order. Results are ordered according to when an element is first " +"encountered in the left operand and then by the order encountered in the " +"right operand." +msgstr "" + +msgid "" +"Counter objects support additional methods beyond those available for all " +"dictionaries:" +msgstr "" + +msgid "" +"Return an iterator over elements repeating each as many times as its count. " +"Elements are returned in the order first encountered. If an element's count " +"is less than one, :meth:`elements` will ignore it." +msgstr "" + +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` " +"returns *all* elements in the counter. Elements with equal counts are " +"ordered in the order first encountered:" +msgstr "" + +msgid "" +"Elements are subtracted from an *iterable* or from another *mapping* (or " +"counter). Like :meth:`dict.update` but subtracts counts instead of " +"replacing them. Both inputs and outputs may be zero or negative." +msgstr "" + +msgid "Compute the sum of the counts." +msgstr "" + +msgid "" +"The usual dictionary methods are available for :class:`Counter` objects " +"except for two which work differently for counters." +msgstr "" + +msgid "This class method is not implemented for :class:`Counter` objects." +msgstr "" + +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." +msgstr "" + +msgid "" +"Counters support rich comparison operators for equality, subset, and " +"superset relationships: ``==``, ``!=``, ``<``, ``<=``, ``>``, ``>=``. All of " +"those tests treat missing elements as having zero counts so that " +"``Counter(a=1) == Counter(a=1, b=0)`` returns true." +msgstr "" + +msgid "Rich comparison operations were added." +msgstr "" + +msgid "" +"In equality tests, missing elements are treated as having zero counts. " +"Formerly, ``Counter(a=3)`` and ``Counter(a=3, b=0)`` were considered " +"distinct." +msgstr "" + +msgid "Common patterns for working with :class:`Counter` objects::" +msgstr "" + +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. Equality and inclusion compare " +"corresponding counts. Each operation can accept inputs with signed counts, " +"but the output will exclude results with counts of zero or less." +msgstr "" + +msgid "" +"Unary addition and subtraction are shortcuts for adding an empty counter or " +"subtracting from an empty counter." +msgstr "" + +msgid "" +"Added support for unary plus, unary minus, and in-place multiset operations." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :class:`Counter` class itself is a dictionary subclass with no " +"restrictions on its keys and values. The values are intended to be numbers " +"representing counts, but you *could* store anything in the value field." +msgstr "" + +msgid "" +"The :meth:`~Counter.most_common` method requires only that the values be " +"orderable." +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." +msgstr "" + +msgid "" +"The multiset methods are designed only for use cases with positive values. " +"The inputs may be negative or zero, but only outputs with positive values " +"are created. There are no type restrictions, but the value type needs to " +"support addition, subtraction, and comparison." +msgstr "" + +msgid "" +"The :meth:`~Counter.elements` method requires integer counts. It ignores " +"zero and negative counts." +msgstr "" + +msgid "" +"`Bag class `_ in Smalltalk." +msgstr "" + +msgid "" +"Wikipedia entry for `Multisets `_." +msgstr "" + +msgid "" +"`C++ multisets `_ tutorial with examples." +msgstr "" + +msgid "" +"For mathematical operations on multisets and their use cases, see *Knuth, " +"Donald. The Art of Computer Programming Volume II, Section 4.6.3, Exercise " +"19*." +msgstr "" + +msgid "" +"To enumerate all distinct multisets of a given size over a given set of " +"elements, see :func:`itertools.combinations_with_replacement`::" +msgstr "" + +msgid ":class:`deque` objects" +msgstr ":class:`deque` przedmioty" + +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." +msgstr "" + +msgid "" +"Deques are a generalization of stacks and queues (the name is pronounced " +"\"deck\" and is short for \"double-ended queue\"). Deques support thread-" +"safe, memory efficient appends and pops from either side of the deque with " +"approximately the same O(1) performance in either direction." +msgstr "" + +msgid "" +"Though :class:`list` objects support similar operations, they are optimized " +"for fast fixed-length operations and incur O(n) memory movement costs for " +"``pop(0)`` and ``insert(0, v)`` operations which change both the size and " +"position of the underlying data representation." +msgstr "" + +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. " +"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." +msgstr "" + +msgid "Deque objects support the following methods:" +msgstr "" + +msgid "Add *x* to the right side of the deque." +msgstr "" + +msgid "Add *x* to the left side of the deque." +msgstr "" + +msgid "Remove all elements from the deque leaving it with length 0." +msgstr "" + +msgid "Create a shallow copy of the deque." +msgstr "" + +msgid "Count the number of deque elements equal to *x*." +msgstr "" + +msgid "" +"Extend the right side of the deque by appending elements from the iterable " +"argument." +msgstr "" + +msgid "" +"Extend the left side of the deque by appending elements from *iterable*. " +"Note, the series of left appends results in reversing the order of elements " +"in the iterable argument." +msgstr "" + +msgid "" +"Return the position of *x* in the deque (at or after index *start* and " +"before index *stop*). Returns the first match or raises :exc:`ValueError` " +"if not found." +msgstr "" + +msgid "Insert *x* into the deque at position *i*." +msgstr "" + +msgid "" +"If the insertion would cause a bounded deque to grow beyond *maxlen*, " +"an :exc:`IndexError` is raised." +msgstr "" + +msgid "" +"Remove and return an element from the right side of the deque. If no " +"elements are present, raises an :exc:`IndexError`." +msgstr "" + +msgid "" +"Remove and return an element from the left side of the deque. If no elements " +"are present, raises an :exc:`IndexError`." +msgstr "" + +msgid "" +"Remove the first occurrence of *value*. If not found, raises " +"a :exc:`ValueError`." +msgstr "" + +msgid "Reverse the elements of the deque in-place and then return ``None``." +msgstr "" + +msgid "" +"Rotate the deque *n* steps to the right. If *n* is negative, rotate to the " +"left." +msgstr "" + +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 " +"to ``d.append(d.popleft())``." +msgstr "" + +msgid "Deque objects also provide one read-only attribute:" +msgstr "" + +msgid "Maximum size of a deque or ``None`` if unbounded." +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[0]`` " +"to access the first element. Indexed access is O(1) at both ends but slows " +"to O(n) in the middle. For fast random access, use lists instead." +msgstr "" + +msgid "" +"Starting in version 3.5, deques support ``__add__()``, ``__mul__()``, and " +"``__imul__()``." +msgstr "" + +msgid "Example:" +msgstr "Przykład:" + +msgid ":class:`deque` Recipes" +msgstr ":class:`deque` Przepisy" + +msgid "This section shows various approaches to working with deques." +msgstr "" + +msgid "" +"Bounded length deques provide functionality similar to the ``tail`` filter " +"in Unix::" +msgstr "" + +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::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"The :meth:`~deque.rotate` method provides a way to implement :class:`deque` " +"slicing and deletion. For example, a pure Python implementation of ``del " +"d[n]`` relies on the ``rotate()`` method to position elements to be popped::" +msgstr "" + +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``." +msgstr "" + +msgid ":class:`defaultdict` objects" +msgstr ":class:`defaultdict` przedmioty" + +msgid "" +"Return 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 "" + +msgid "" +"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 "" + +msgid "" +":class:`defaultdict` objects support the following method in addition to the " +"standard :class:`dict` operations:" +msgstr "" + +msgid "" +"If the :attr:`default_factory` attribute is ``None``, this raises " +"a :exc:`KeyError` exception with the *key* as argument." +msgstr "" + +msgid "" +"If :attr:`default_factory` is not ``None``, it is called without arguments " +"to provide a default value for the given *key*, this value is inserted in " +"the dictionary for the *key*, and returned." +msgstr "" + +msgid "" +"If calling :attr:`default_factory` raises an exception this exception is " +"propagated unchanged." +msgstr "" + +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__`." +msgstr "" + +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`." +msgstr "" + +msgid ":class:`defaultdict` objects support the following instance variable:" +msgstr "" + +msgid "" +"This attribute is used by the :meth:`__missing__` method; it is initialized " +"from the first argument to the constructor, if present, or to ``None``, if " +"absent." +msgstr "" + +msgid "" +"Added merge (``|``) and update (``|=``) operators, specified in :pep:`584`." +msgstr "" + +msgid ":class:`defaultdict` Examples" +msgstr ":class:`defaultdict` Przykłady" + +msgid "" +"Using :class:`list` as the :attr:`~defaultdict.default_factory`, it is easy " +"to group a sequence of key-value pairs into a dictionary of lists:" +msgstr "" + +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`:" +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +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 " +"functions is to use a lambda function which can supply any constant value " +"(not just zero):" +msgstr "" + +msgid "" +"Setting the :attr:`~defaultdict.default_factory` to :class:`set` makes " +"the :class:`defaultdict` useful for building a dictionary of sets:" +msgstr "" + +msgid ":func:`namedtuple` Factory Function for Tuples with Named Fields" +msgstr "" + +msgid "" +"Named tuples assign meaning to each position in a tuple and allow for more " +"readable, self-documenting code. They can be used wherever regular tuples " +"are used, and they add the ability to access fields by name instead of " +"position index." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *field_names* are a sequence of strings such as ``['x', 'y']``. " +"Alternatively, *field_names* can be a single string with each fieldname " +"separated by whitespace and/or commas, for example ``'x y'`` or ``'x, y'``." +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*." +msgstr "" + +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``." +msgstr "" + +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 " +"``x`` will be a required argument, ``y`` will default to ``1``, and ``z`` " +"will default to ``2``." +msgstr "" + +msgid "" +"If *module* is defined, the ``__module__`` attribute of the named tuple is " +"set to that value." +msgstr "" + +msgid "" +"Named tuple instances do not have per-instance dictionaries, so they are " +"lightweight and require no more memory than regular tuples." +msgstr "" + +msgid "" +"To support pickling, the named tuple class should be assigned to a variable " +"that matches *typename*." +msgstr "" + +msgid "Added support for *rename*." +msgstr "" + +msgid "" +"The *verbose* and *rename* parameters became :ref:`keyword-only arguments " +"`." +msgstr "" + +msgid "Added the *module* parameter." +msgstr "Dodany parametr *module*." + +msgid "Removed the *verbose* parameter and the :attr:`_source` attribute." +msgstr "" + +msgid "" +"Added the *defaults* parameter and the :attr:`_field_defaults` attribute." +msgstr "" + +msgid "" +"Named tuples are especially useful for assigning field names to result " +"tuples returned by the :mod:`csv` or :mod:`sqlite3` modules::" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Class method that makes a new instance from an existing sequence or iterable." +msgstr "" + +msgid "" +"Return a new :class:`dict` which maps field names to their corresponding " +"values:" +msgstr "" + +msgid "Returns an :class:`OrderedDict` instead of a regular :class:`dict`." +msgstr "" + +msgid "" +"Returns a regular :class:`dict` instead of an :class:`OrderedDict`. As of " +"Python 3.7, regular dicts are guaranteed to be ordered. If the extra " +"features of :class:`OrderedDict` are required, the suggested remediation is " +"to cast the result to the desired type: ``OrderedDict(nt._asdict())``." +msgstr "" + +msgid "" +"Return a new instance of the named tuple replacing specified fields with new " +"values::" +msgstr "" + +msgid "" +"Tuple of strings listing the field names. Useful for introspection and for " +"creating new named tuple types from existing named tuples." +msgstr "" + +msgid "Dictionary mapping field names to default values." +msgstr "" + +msgid "" +"To retrieve a field whose name is stored in a string, use " +"the :func:`getattr` function:" +msgstr "" + +msgid "" +"To convert a dictionary to a named tuple, use the double-star-operator (as " +"described in :ref:`tut-unpacking-arguments`):" +msgstr "" + +msgid "" +"Since a named tuple is a regular Python class, it is easy to add or change " +"functionality with a subclass. Here is how to add a calculated field and a " +"fixed-width print format:" +msgstr "" + +msgid "" +"The subclass shown above sets ``__slots__`` to an empty tuple. This helps " +"keep memory requirements low by preventing the creation of instance " +"dictionaries." +msgstr "" + +msgid "" +"Subclassing is not useful for adding new, stored fields. Instead, simply " +"create a new named tuple type from the :attr:`~somenamedtuple._fields` " +"attribute:" +msgstr "" + +msgid "" +"Docstrings can be customized by making direct assignments to the ``__doc__`` " +"fields:" +msgstr "" + +msgid "Property docstrings became writeable." +msgstr "" + +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::" +msgstr "" + +msgid "" +"See :meth:`types.SimpleNamespace` for a mutable namespace based on an " +"underlying dictionary instead of a tuple." +msgstr "" + +msgid "" +"The :mod:`dataclasses` module provides a decorator and functions for " +"automatically adding generated special methods to user-defined classes." +msgstr "" + +msgid ":class:`OrderedDict` objects" +msgstr ":class:`OrderedDict` przedmioty" + +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)." +msgstr "" + +msgid "Some differences from :class:`dict` still remain:" +msgstr "" + +msgid "" +"The regular :class:`dict` was designed to be very good at mapping " +"operations. Tracking insertion order was secondary." +msgstr "" + +msgid "" +"The :class:`OrderedDict` was designed to be good at reordering operations. " +"Space efficiency, iteration speed, and the performance of update operations " +"were secondary." +msgstr "" + +msgid "" +"The :class:`OrderedDict` algorithm can handle frequent reordering operations " +"better than :class:`dict`. As shown in the recipes below, this makes it " +"suitable for implementing various kinds of LRU caches." +msgstr "" + +msgid "" +"The equality operation for :class:`OrderedDict` checks for matching order." +msgstr "" + +msgid "" +"A regular :class:`dict` can emulate the order sensitive equality test with " +"``p == q and all(k1 == k2 for k1, k2 in zip(p, q))``." +msgstr "" + +msgid "" +"The :meth:`popitem` method of :class:`OrderedDict` has a different " +"signature. It accepts an optional argument to specify which item is popped." +msgstr "" + +msgid "" +"A regular :class:`dict` can emulate OrderedDict's ``od.popitem(last=True)`` " +"with ``d.popitem()`` which is guaranteed to pop the rightmost (last) item." +msgstr "" + +msgid "" +"A regular :class:`dict` can emulate OrderedDict's ``od.popitem(last=False)`` " +"with ``(k := next(iter(d)), d.pop(k))`` which will return and remove the " +"leftmost (first) item if it exists." +msgstr "" + +msgid "" +":class:`OrderedDict` has a :meth:`move_to_end` method to efficiently " +"reposition an element to an endpoint." +msgstr "" + +msgid "" +"A regular :class:`dict` can emulate OrderedDict's ``od.move_to_end(k, " +"last=True)`` with ``d[k] = d.pop(k)`` which will move the key and its " +"associated value to the rightmost (last) position." +msgstr "" + +msgid "" +"A regular :class:`dict` does not have an efficient equivalent for " +"OrderedDict's ``od.move_to_end(k, last=False)`` which moves the key and its " +"associated value to the leftmost (first) position." +msgstr "" + +msgid "Until Python 3.8, :class:`dict` lacked a :meth:`__reversed__` method." +msgstr "" + +msgid "" +"Return an instance of a :class:`dict` subclass that has methods specialized " +"for rearranging dictionary order." +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." +msgstr "" + +msgid "" +"Move an existing *key* to either end of an ordered dictionary. The item is " +"moved to the right end if *last* is true (the default) or to the beginning " +"if *last* is false. Raises :exc:`KeyError` if the *key* does not exist:" +msgstr "" + +msgid "" +"In addition to the usual mapping methods, ordered dictionaries also support " +"reverse iteration using :func:`reversed`." +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." +msgstr "" + +msgid "" +"The items, keys, and values :term:`views ` " +"of :class:`OrderedDict` now support reverse iteration using :func:`reversed`." +msgstr "" + +msgid "" +"With the acceptance of :pep:`468`, order is retained for keyword arguments " +"passed to the :class:`OrderedDict` constructor and its :meth:`update` method." +msgstr "" + +msgid ":class:`OrderedDict` Examples and Recipes" +msgstr "" + +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 " +"existing entry, the original insertion position is changed and moved to the " +"end::" +msgstr "" + +msgid "" +"An :class:`OrderedDict` would also be useful for implementing variants " +"of :func:`functools.lru_cache`:" +msgstr "" + +msgid ":class:`UserDict` objects" +msgstr ":class:`UserDict` przedmioty" + +msgid "" +"The class, :class:`UserDict` acts as a wrapper around dictionary objects. " +"The need for this class has been partially supplanted by the ability to " +"subclass directly from :class:`dict`; however, this class can be easier to " +"work with because the underlying dictionary is accessible as an attribute." +msgstr "" + +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 initialized with its contents; note that a reference to *initialdata* " +"will not be kept, allowing it to be used for other purposes." +msgstr "" + +msgid "" +"In addition to supporting the methods and operations of " +"mappings, :class:`UserDict` instances provide the following attribute:" +msgstr "" + +msgid "" +"A real dictionary used to store the contents of the :class:`UserDict` class." +msgstr "" + +msgid ":class:`UserList` objects" +msgstr ":class:`UserList` przedmioty" + +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." +msgstr "" + +msgid "" +"The need for this class has been partially supplanted by the ability to " +"subclass directly from :class:`list`; however, this class can be easier to " +"work with because the underlying list is accessible as an attribute." +msgstr "" + +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." +msgstr "" + +msgid "" +"In addition to supporting the methods and operations of mutable " +"sequences, :class:`UserList` instances provide the following attribute:" +msgstr "" + +msgid "" +"A real :class:`list` object used to store the contents of " +"the :class:`UserList` class." +msgstr "" + +msgid "" +"**Subclassing requirements:** Subclasses of :class:`UserList` are expected " +"to offer a constructor which can be called with either no arguments or one " +"argument. List operations which return a new sequence attempt to create an " +"instance of the actual implementation class. To do so, it assumes that the " +"constructor can be called with a single parameter, which is a sequence " +"object used as a data source." +msgstr "" + +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 " +"consult the sources for information about the methods which need to be " +"provided in that case." +msgstr "" + +msgid ":class:`UserString` objects" +msgstr ":class:`UserString` przedmioty" + +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 " +"because the underlying string is accessible as an attribute." +msgstr "" + +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 " +"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 "" + +msgid "" +"In addition to supporting the methods and operations of " +"strings, :class:`UserString` instances provide the following attribute:" +msgstr "" + +msgid "" +"A real :class:`str` object used to store the contents of " +"the :class:`UserString` class." +msgstr "" + +msgid "" +"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, " +"``isprintable``, and ``maketrans``." +msgstr "" diff --git a/library/collections_abc.po b/library/collections_abc.po new file mode 100644 index 0000000000..9167caa172 --- /dev/null +++ b/library/collections_abc.po @@ -0,0 +1,512 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`collections.abc` --- Abstract Base Classes for Containers" +msgstr "" + +msgid "Formerly, this module was part of the :mod:`collections` module." +msgstr "" + +msgid "**Source code:** :source:`Lib/_collections_abc.py`" +msgstr "**Kod źródłowy:** :source:`Lib/_collections_abc.py`" + +msgid "" +"This module provides :term:`abstract base classes ` " +"that can be used to test whether a class provides a particular interface; " +"for example, whether it is :term:`hashable` or whether it is a mapping." +msgstr "" + +msgid "" +"An :func:`issubclass` or :func:`isinstance` test for an interface works in " +"one of three ways." +msgstr "" + +msgid "" +"1) A newly written class can inherit directly from one of the abstract base " +"classes. The class must supply the required abstract methods. The " +"remaining mixin methods come from inheritance and can be overridden if " +"desired. Other methods may be added as needed:" +msgstr "" + +msgid "" +"2) Existing classes and built-in classes can be registered as \"virtual " +"subclasses\" of the ABCs. Those classes should define the full API " +"including all of the abstract methods and all of the mixin methods. This " +"lets users rely on :func:`issubclass` or :func:`isinstance` tests to " +"determine whether the full interface is supported. The exception to this " +"rule is for methods that are automatically inferred from the rest of the API:" +msgstr "" + +msgid "" +"In this example, class :class:`D` does not need to define ``__contains__``, " +"``__iter__``, and ``__reversed__`` because the :ref:`in-operator " +"`, the :term:`iteration ` logic, and " +"the :func:`reversed` function automatically fall back to using " +"``__getitem__`` and ``__len__``." +msgstr "" + +msgid "" +"3) Some simple interfaces are directly recognizable by the presence of the " +"required methods (unless those methods have been set to :const:`None`):" +msgstr "" + +msgid "" +"Complex interfaces do not support this last technique because an interface " +"is more than just the presence of method names. Interfaces specify " +"semantics and relationships between methods that cannot be inferred solely " +"from the presence of specific method names. For example, knowing that a " +"class supplies ``__getitem__``, ``__len__``, and ``__iter__`` is " +"insufficient for distinguishing a :class:`Sequence` from a :class:`Mapping`." +msgstr "" + +msgid "" +"These abstract classes now support ``[]``. See :ref:`types-genericalias` " +"and :pep:`585`." +msgstr "" + +msgid "Collections Abstract Base Classes" +msgstr "" + +msgid "" +"The collections module offers the following :term:`ABCs `:" +msgstr "" + +msgid "ABC" +msgstr "" + +msgid "Inherits from" +msgstr "" + +msgid "Abstract Methods" +msgstr "" + +msgid "Mixin Methods" +msgstr "" + +msgid ":class:`Container` [1]_" +msgstr ":class:`Container` [1]_" + +msgid "``__contains__``" +msgstr "``__contains__``" + +msgid ":class:`Hashable` [1]_" +msgstr ":class:`Hashable` [1]_" + +msgid "``__hash__``" +msgstr "``__hash__``" + +msgid ":class:`Iterable` [1]_ [2]_" +msgstr "" + +msgid "``__iter__``" +msgstr "``__iter__``" + +msgid ":class:`Iterator` [1]_" +msgstr ":class:`Iterator` [1]_" + +msgid ":class:`Iterable`" +msgstr ":class:`Iterable`" + +msgid "``__next__``" +msgstr "``__next__``" + +msgid ":class:`Reversible` [1]_" +msgstr ":class:`Reversible` [1]_" + +msgid "``__reversed__``" +msgstr "``__reversed__``" + +msgid ":class:`Generator` [1]_" +msgstr ":class:`Generator` [1]_" + +msgid ":class:`Iterator`" +msgstr ":class:`Iterator`" + +msgid "``send``, ``throw``" +msgstr "" + +msgid "``close``, ``__iter__``, ``__next__``" +msgstr "``close``, ``__iter__``, ``__next__``" + +msgid ":class:`Sized` [1]_" +msgstr ":class:`Sized` [1]_" + +msgid "``__len__``" +msgstr "``__len__``" + +msgid ":class:`Callable` [1]_" +msgstr ":class:`Callable` [1]_" + +msgid "``__call__``" +msgstr "``__call__``" + +msgid ":class:`Collection` [1]_" +msgstr ":class:`Collection` [1]_" + +msgid ":class:`Sized`, :class:`Iterable`, :class:`Container`" +msgstr ":class:`Sized`, :class:`Iterable`, :class:`Container`" + +msgid "``__contains__``, ``__iter__``, ``__len__``" +msgstr "``__contains__``, ``__iter__``, ``__len__``" + +msgid ":class:`Sequence`" +msgstr ":class:`Sequence`" + +msgid ":class:`Reversible`, :class:`Collection`" +msgstr ":class:`Reversible`, :class:`Collection`" + +msgid "``__getitem__``, ``__len__``" +msgstr "``__getitem__``, ``__len__``" + +msgid "" +"``__contains__``, ``__iter__``, ``__reversed__``, ``index``, and ``count``" +msgstr "" + +msgid ":class:`MutableSequence`" +msgstr ":class:`MutableSequence`" + +msgid "" +"``__getitem__``, ``__setitem__``, ``__delitem__``, ``__len__``, ``insert``" +msgstr "" + +msgid "" +"Inherited :class:`Sequence` methods and ``append``, ``reverse``, ``extend``, " +"``pop``, ``remove``, and ``__iadd__``" +msgstr "" + +msgid ":class:`ByteString`" +msgstr ":class:`ByteString`" + +msgid "Inherited :class:`Sequence` methods" +msgstr "" + +msgid ":class:`Set`" +msgstr ":class:`Set`" + +msgid ":class:`Collection`" +msgstr ":class:`Collection`" + +msgid "" +"``__le__``, ``__lt__``, ``__eq__``, ``__ne__``, ``__gt__``, ``__ge__``, " +"``__and__``, ``__or__``, ``__sub__``, ``__xor__``, and ``isdisjoint``" +msgstr "" + +msgid ":class:`MutableSet`" +msgstr ":class:`MutableSet`" + +msgid "``__contains__``, ``__iter__``, ``__len__``, ``add``, ``discard``" +msgstr "" + +msgid "" +"Inherited :class:`Set` methods and ``clear``, ``pop``, ``remove``, " +"``__ior__``, ``__iand__``, ``__ixor__``, and ``__isub__``" +msgstr "" + +msgid ":class:`Mapping`" +msgstr ":class:`Mapping`" + +msgid "``__getitem__``, ``__iter__``, ``__len__``" +msgstr "``__getitem__``, ``__iter__``, ``__len__``" + +msgid "" +"``__contains__``, ``keys``, ``items``, ``values``, ``get``, ``__eq__``, and " +"``__ne__``" +msgstr "" + +msgid ":class:`MutableMapping`" +msgstr ":class:`MutableMapping`" + +msgid "" +"``__getitem__``, ``__setitem__``, ``__delitem__``, ``__iter__``, ``__len__``" +msgstr "" + +msgid "" +"Inherited :class:`Mapping` methods and ``pop``, ``popitem``, ``clear``, " +"``update``, and ``setdefault``" +msgstr "" + +msgid ":class:`MappingView`" +msgstr ":class:`MappingView`" + +msgid ":class:`Sized`" +msgstr ":class:`Sized`" + +msgid ":class:`ItemsView`" +msgstr ":class:`ItemsView`" + +msgid ":class:`MappingView`, :class:`Set`" +msgstr ":class:`MappingView`, :class:`Set`" + +msgid "``__contains__``, ``__iter__``" +msgstr "``__contains__``, ``__iter__``" + +msgid ":class:`KeysView`" +msgstr ":class:`KeysView`" + +msgid ":class:`ValuesView`" +msgstr ":class:`ValuesView`" + +msgid ":class:`MappingView`, :class:`Collection`" +msgstr ":class:`MappingView`, :class:`Collection`" + +msgid ":class:`Awaitable` [1]_" +msgstr ":class:`Awaitable` [1]_" + +msgid "``__await__``" +msgstr "``__await__``" + +msgid ":class:`Coroutine` [1]_" +msgstr ":class:`Coroutine` [1]_" + +msgid ":class:`Awaitable`" +msgstr ":class:`Awaitable`" + +msgid "``close``" +msgstr "``close``" + +msgid ":class:`AsyncIterable` [1]_" +msgstr ":class:`AsyncIterable` [1]_" + +msgid "``__aiter__``" +msgstr "``__aiter__``" + +msgid ":class:`AsyncIterator` [1]_" +msgstr ":class:`AsyncIterator` [1]_" + +msgid ":class:`AsyncIterable`" +msgstr ":class:`AsyncIterable`" + +msgid "``__anext__``" +msgstr "``__anext__``" + +msgid ":class:`AsyncGenerator` [1]_" +msgstr ":class:`AsyncGenerator` [1]_" + +msgid ":class:`AsyncIterator`" +msgstr ":class:`AsyncIterator`" + +msgid "``asend``, ``athrow``" +msgstr "" + +msgid "``aclose``, ``__aiter__``, ``__anext__``" +msgstr "``aclose``, ``__aiter__``, ``__anext__``" + +msgid "Footnotes" +msgstr "Przypisy" + +msgid "" +"These ABCs override :meth:`object.__subclasshook__` to support testing an " +"interface by verifying the required methods are present and have not been " +"set to :const:`None`. This only works for simple interfaces. More complex " +"interfaces require registration or direct subclassing." +msgstr "" + +msgid "" +"Checking ``isinstance(obj, Iterable)`` detects classes that are registered " +"as :class:`Iterable` or that have an :meth:`__iter__` method, but it does " +"not detect classes that iterate with the :meth:`__getitem__` method. The " +"only reliable way to determine whether an object is :term:`iterable` is to " +"call ``iter(obj)``." +msgstr "" + +msgid "Collections Abstract Base Classes -- Detailed Descriptions" +msgstr "" + +msgid "ABC for classes that provide the :meth:`__contains__` method." +msgstr "" + +msgid "ABC for classes that provide the :meth:`__hash__` method." +msgstr "" + +msgid "ABC for classes that provide the :meth:`__len__` method." +msgstr "" + +msgid "ABC for classes that provide the :meth:`__call__` method." +msgstr "" + +msgid "ABC for classes that provide the :meth:`__iter__` method." +msgstr "" + +msgid "" +"Checking ``isinstance(obj, Iterable)`` detects classes that are registered " +"as :class:`Iterable` or that have an :meth:`__iter__` method, but it does " +"not detect classes that iterate with the :meth:`__getitem__` method. The " +"only reliable way to determine whether an object is :term:`iterable` is to " +"call ``iter(obj)``." +msgstr "" + +msgid "ABC for sized iterable container classes." +msgstr "" + +msgid "" +"ABC for classes that provide the :meth:`~iterator.__iter__` " +"and :meth:`~iterator.__next__` methods. See also the definition " +"of :term:`iterator`." +msgstr "" + +msgid "" +"ABC for iterable classes that also provide the :meth:`__reversed__` method." +msgstr "" + +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`." +msgstr "" + +msgid "ABCs for read-only and mutable :term:`sequences `." +msgstr "" + +msgid "" +"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 "" + +msgid "The index() method added support for *stop* and *start* arguments." +msgstr "" + +msgid "ABCs for read-only and mutable sets." +msgstr "" + +msgid "ABCs for read-only and mutable :term:`mappings `." +msgstr "" + +msgid "" +"ABCs for mapping, items, keys, and values :term:`views `." +msgstr "" + +msgid "" +"ABC for :term:`awaitable` objects, which can be used in :keyword:`await` " +"expressions. Custom implementations must provide the :meth:`__await__` " +"method." +msgstr "" + +msgid "" +":term:`Coroutine ` objects and instances of " +"the :class:`~collections.abc.Coroutine` ABC are all instances of this ABC." +msgstr "" + +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." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "" +"ABC for classes that provide ``__aiter__`` method. See also the definition " +"of :term:`asynchronous iterable`." +msgstr "" + +msgid "" +"ABC for classes that provide ``__aiter__`` and ``__anext__`` methods. See " +"also the definition of :term:`asynchronous iterator`." +msgstr "" + +msgid "" +"ABC for asynchronous generator classes that implement the protocol defined " +"in :pep:`525` and :pep:`492`." +msgstr "" + +msgid "Examples and Recipes" +msgstr "" + +msgid "" +"ABCs allow us to ask classes or instances if they provide particular " +"functionality, for example::" +msgstr "" + +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`::" +msgstr "" + +msgid "Notes on using :class:`Set` and :class:`MutableSet` as a mixin:" +msgstr "" + +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 or regular method that can construct new instances from an " +"iterable argument." +msgstr "" + +msgid "" +"To override the comparisons (presumably for speed, as the semantics are " +"fixed), redefine :meth:`__le__` and :meth:`__ge__`, then the other " +"operations will automatically follow suit." +msgstr "" + +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 :term:`hashable` or immutable. To add set hashability using " +"mixins, inherit from both :meth:`Set` and :meth:`Hashable`, then define " +"``__hash__ = Set._hash``." +msgstr "" + +msgid "" +"`OrderedSet recipe `_ for an " +"example built on :class:`MutableSet`." +msgstr "" + +msgid "For more about ABCs, see the :mod:`abc` module and :pep:`3119`." +msgstr "" diff --git a/library/colorsys.po b/library/colorsys.po new file mode 100644 index 0000000000..11d114a892 --- /dev/null +++ b/library/colorsys.po @@ -0,0 +1,70 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`colorsys` --- Conversions between color systems" +msgstr "" + +msgid "**Source code:** :source:`Lib/colorsys.py`" +msgstr "**Kod źródłowy:** :source:`Lib/colorsys.py`" + +msgid "" +"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 " +"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 "" + +msgid "" +"More information about color spaces can be found at https://poynton.ca/" +"ColorFAQ.html and https://www.cambridgeincolour.com/tutorials/color-" +"spaces.htm." +msgstr "" + +msgid "The :mod:`colorsys` module defines the following functions:" +msgstr "" + +msgid "Convert the color from RGB coordinates to YIQ coordinates." +msgstr "" + +msgid "Convert the color from YIQ coordinates to RGB coordinates." +msgstr "" + +msgid "Convert the color from RGB coordinates to HLS coordinates." +msgstr "" + +msgid "Convert the color from HLS coordinates to RGB coordinates." +msgstr "" + +msgid "Convert the color from RGB coordinates to HSV coordinates." +msgstr "" + +msgid "Convert the color from HSV coordinates to RGB coordinates." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" diff --git a/library/compileall.po b/library/compileall.po new file mode 100644 index 0000000000..081674a50d --- /dev/null +++ b/library/compileall.po @@ -0,0 +1,329 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Rafael Fontenelle , 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Rafael Fontenelle , 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`compileall` --- Byte-compile Python libraries" +msgstr "" + +msgid "**Source code:** :source:`Lib/compileall.py`" +msgstr "**Kod źródłowy:** :source:`Lib/compileall.py`" + +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 " +"installation time, which makes them available for use even by users who " +"don't have write permission to the library directories." +msgstr "" + +msgid "Command-line use" +msgstr "" + +msgid "" +"This module can work as a script (using :program:`python -m compileall`) to " +"compile Python sources." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Do not recurse into subdirectories, only compile source code files directly " +"contained in the named or implied directories." +msgstr "" + +msgid "Force rebuild even if timestamps are up-to-date." +msgstr "" + +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." +msgstr "" + +msgid "" +"Directory prepended to the path to each file being compiled. This will " +"appear in compilation time tracebacks, and is also compiled in to the byte-" +"code file, where it will be used in tracebacks and other messages in cases " +"where the source file does not exist at the time the byte-code file is " +"executed." +msgstr "" + +msgid "" +"Remove (``-s``) or append (``-p``) the given prefix of paths recorded in the " +"``.pyc`` files. Cannot be combined with ``-d``." +msgstr "" + +msgid "" +"regex is used to search the full path to each file considered for " +"compilation, and if the regex produces a match, the file is skipped." +msgstr "" + +msgid "" +"Read the file ``list`` and add each line that it contains to the list of " +"files and directories to compile. If ``list`` is ``-``, read lines from " +"``stdin``." +msgstr "" + +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 " +"byte-code files from multiple versions of Python to coexist." +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`." +msgstr "" + +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." +msgstr "" + +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-" +"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." +msgstr "" + +msgid "" +"Compile with the given optimization level. May be used multiple times to " +"compile for multiple levels at a time (for example, ``compileall -o 1 -o " +"2``)." +msgstr "" + +msgid "Ignore symlinks pointing outside the given directory." +msgstr "" + +msgid "" +"If two ``.pyc`` files with different optimization level have the same " +"content, use hard links to consolidate duplicate files." +msgstr "" + +msgid "Added the ``-i``, ``-b`` and ``-h`` options." +msgstr "" + +msgid "" +"Added the ``-j``, ``-r``, and ``-qq`` options. ``-q`` option was changed " +"to a multilevel value. ``-b`` will always produce a byte-code file ending " +"in ``.pyc``, never ``.pyo``." +msgstr "" + +msgid "Added the ``--invalidation-mode`` option." +msgstr "" + +msgid "" +"Added the ``-s``, ``-p``, ``-e`` and ``--hardlink-dupes`` options. Raised " +"the default recursion limit from 10 to :py:func:`sys.getrecursionlimit()`. " +"Added the possibility to specify the ``-o`` option multiple times." +msgstr "" + +msgid "" +"There is no command-line option to control the optimization level used by " +"the :func:`compile` function, because the Python interpreter itself already " +"provides the option: :program:`python -O -m compileall`." +msgstr "" + +msgid "" +"Similarly, the :func:`compile` function respects " +"the :attr:`sys.pycache_prefix` setting. The generated bytecode cache will " +"only be useful if :func:`compile` is run with the " +"same :attr:`sys.pycache_prefix` (if any) that will be used at runtime." +msgstr "" + +msgid "Public functions" +msgstr "" + +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." +msgstr "" + +msgid "" +"The *maxlevels* parameter is used to limit the depth of the recursion; it " +"defaults to ``sys.getrecursionlimit()``." +msgstr "" + +msgid "" +"If *ddir* is given, it is prepended to the path to each file being compiled " +"for use in compilation time tracebacks, and is also compiled in to the byte-" +"code file, where it will be used in tracebacks and other messages in cases " +"where the source file does not exist at the time the byte-code file is " +"executed." +msgstr "" + +msgid "" +"If *force* is true, modules are re-compiled even if the timestamps are up to " +"date." +msgstr "" + +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. This can be used to exclude files matching a regular " +"expression, given as a :ref:`re.Pattern ` object." +msgstr "" + +msgid "" +"If *quiet* is ``False`` or ``0`` (the default), the filenames and other " +"information are printed to standard out. Set to ``1``, only errors are " +"printed. Set to ``2``, all output is suppressed." +msgstr "" + +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 " +"names, which allows byte-code files from multiple versions of Python to " +"coexist." +msgstr "" + +msgid "" +"*optimize* specifies the optimization level for the compiler. It is passed " +"to the built-in :func:`compile` function. Accepts also a sequence of " +"optimization levels which lead to multiple compilations of one :file:`.py` " +"file in one call." +msgstr "" + +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 0, the number of " +"cores in the system is used. If *workers* is lower than ``0``, " +"a :exc:`ValueError` will be raised." +msgstr "" + +msgid "" +"*invalidation_mode* should be a member of " +"the :class:`py_compile.PycInvalidationMode` enum and controls how the " +"generated pycs are invalidated at runtime." +msgstr "" + +msgid "" +"The *stripdir*, *prependdir* and *limit_sl_dest* arguments correspond to the " +"``-s``, ``-p`` and ``-e`` options described above. They may be specified as " +"``str`` or :py:class:`os.PathLike`." +msgstr "" + +msgid "" +"If *hardlink_dupes* is true and two ``.pyc`` files with different " +"optimization level have the same content, use hard links to consolidate " +"duplicate files." +msgstr "" + +msgid "Added the *legacy* and *optimize* parameter." +msgstr "" + +msgid "Added the *workers* parameter." +msgstr "" + +msgid "*quiet* parameter was changed to a multilevel value." +msgstr "" + +msgid "" +"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no " +"matter what the value of *optimize* is." +msgstr "" + +msgid "Accepts a :term:`path-like object`." +msgstr "" + +msgid "The *invalidation_mode* parameter was added." +msgstr "" + +msgid "The *invalidation_mode* parameter's default value is updated to None." +msgstr "" + +msgid "Setting *workers* to 0 now chooses the optimal number of cores." +msgstr "" + +msgid "" +"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* " +"arguments. Default value of *maxlevels* was changed from ``10`` to " +"``sys.getrecursionlimit()``" +msgstr "" + +msgid "" +"Compile the file with path *fullname*. Return a true value if the file " +"compiled successfully, and a false value otherwise." +msgstr "" + +msgid "" +"If *ddir* is given, it is prepended to the path to the file being compiled " +"for use in compilation time tracebacks, and is also compiled in to the byte-" +"code file, where it will be used in tracebacks and other messages in cases " +"where the source file does not exist at the time the byte-code file is " +"executed." +msgstr "" + +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. This can be used to exclude files " +"matching a regular expression, given as a :ref:`re.Pattern ` " +"object." +msgstr "" + +msgid "" +"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* " +"arguments." +msgstr "" + +msgid "" +"Byte-compile all the :file:`.py` files found along ``sys.path``. Return a " +"true value if all the files compiled successfully, and a false value " +"otherwise." +msgstr "" + +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``." +msgstr "" + +msgid "" +"To force a recompile of all the :file:`.py` files in the :file:`Lib/` " +"subdirectory and all its subdirectories::" +msgstr "" + +msgid "Module :mod:`py_compile`" +msgstr "moduł :mod:`py_compile`" + +msgid "Byte-compile a single source file." +msgstr "" diff --git a/library/concurrent_futures.po b/library/concurrent_futures.po index f91d992b57..73a42d45a4 100644 --- a/library/concurrent_futures.po +++ b/library/concurrent_futures.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:57+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`concurrent.futures` --- Launching parallel tasks" msgstr "" @@ -37,19 +37,10 @@ msgid "" msgstr "" 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." -msgstr "" - -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." +"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 "" msgid "Executor Objects" @@ -78,11 +69,11 @@ msgid "" msgstr "" msgid "" -"The returned iterator raises a :exc:`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." +"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." msgstr "" msgid "" @@ -104,9 +95,9 @@ msgstr "" 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 "" msgid "" @@ -132,9 +123,10 @@ msgid "" msgstr "" 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 "" msgid "Added *cancel_futures*." @@ -180,16 +172,16 @@ msgstr "" 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 "" 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 " -"easier debugging." +"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 "" msgid "Added the *initializer* and *initargs* arguments." @@ -215,11 +207,11 @@ msgstr "" 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." +"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 "" msgid "" @@ -255,18 +247,8 @@ msgid "" msgstr "" msgid "" -"*max_tasks_per_child* is an optional argument that specifies the maximum " -"number of tasks a single process can execute before it will exit and be " -"replaced with a fresh worker process. By default *max_tasks_per_child* is " -"``None`` which means worker processes will live as long as the pool. When a " -"max is specified, the \"spawn\" multiprocessing start method will be used by " -"default in absence of a *mp_context* parameter. This feature is incompatible " -"with the \"fork\" start method." -msgstr "" - -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 "" @@ -276,11 +258,6 @@ msgid "" "start_method for worker processes created by the pool." msgstr "" -msgid "" -"The *max_tasks_per_child* argument was added to allow users to control the " -"lifetime of workers in the pool." -msgstr "" - msgid "ProcessPoolExecutor Example" msgstr "" @@ -320,9 +297,9 @@ msgstr "" 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:`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." +"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 "" msgid "" @@ -337,9 +314,10 @@ 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:`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 "" msgid "If the call completed without raising, ``None`` is returned." @@ -365,8 +343,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -376,8 +354,8 @@ msgid "" msgstr "" msgid "" -"If the method returns ``False`` then the :class:`Future` was cancelled, i." -"e. :meth:`Future.cancel` was called and returned ``True``. Any threads " +"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 "" @@ -389,8 +367,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -403,26 +382,26 @@ msgid "" msgstr "" msgid "" -"This method raises :exc:`concurrent.futures.InvalidStateError` if the :class:" -"`Future` is already done." +"This method raises :exc:`concurrent.futures.InvalidStateError` if " +"the :class:`Future` is already done." msgstr "" 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 "" msgid "Module Functions" msgstr "" msgid "" -"Wait for the :class:`Future` instances (possibly created by different :class:" -"`Executor` instances) given by *fs* to complete. Duplicate futures given to " -"*fs* are removed and will be returned only once. 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. Duplicate " +"futures given to *fs* are removed and will be returned only once. 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 "" msgid "" @@ -453,8 +432,8 @@ msgstr "" 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 "" msgid ":const:`ALL_COMPLETED`" @@ -469,10 +448,11 @@ msgid "" "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:`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." +"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 "" msgid ":pep:`3148` -- futures - execute computations asynchronously" @@ -489,12 +469,7 @@ msgstr "" msgid "Raised when a future is cancelled." msgstr "" -msgid "" -"A deprecated alias of :exc:`TimeoutError`, raised when a future operation " -"exceeds the given timeout." -msgstr "" - -msgid "This class was made an alias of :exc:`TimeoutError`." +msgid "Raised when a future operation exceeds the given timeout." msgstr "" msgid "" @@ -515,8 +490,8 @@ msgid "" msgstr "" 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/configparser.po b/library/configparser.po index 930c2cae09..9e570d1b31 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -1,34 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 00:57+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`configparser` --- Configuration file parser" msgstr "" msgid "**Source code:** :source:`Lib/configparser.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/configparser.py`" msgid "" "This module provides the :class:`ConfigParser` class which implements a " @@ -42,28 +41,20 @@ msgid "" "the Windows Registry extended version of INI syntax." msgstr "" -msgid "Module :mod:`tomllib`" -msgstr "" - -msgid "" -"TOML is a well-specified format for application configuration files. It is " -"specifically designed to be an improved version of INI." -msgstr "" - msgid "Module :mod:`shlex`" -msgstr "" +msgstr "moduł :mod:`shlex`" msgid "" -"Support for creating Unix shell-like mini-languages which can also be used " -"for application configuration files." +"Support for creating Unix shell-like mini-languages which can be used as an " +"alternate format for application configuration files." msgstr "" msgid "Module :mod:`json`" -msgstr "" +msgstr "moduł :mod:`json`" msgid "" -"The ``json`` module implements a subset of JavaScript syntax which is " -"sometimes used for configuration, but does not support comments." +"The json module implements a subset of JavaScript syntax which can also be " +"used for this purpose." msgstr "" msgid "Quick Start" @@ -99,10 +90,10 @@ msgid "" msgstr "" msgid "" -"It is possible to read several configurations into a single :class:" -"`ConfigParser`, where the most recently added configuration has the highest " -"priority. Any conflicting keys are taken from the more recent configuration " -"while the previously existing keys are retained." +"It is possible to read several configurations into a " +"single :class:`ConfigParser`, where the most recently added configuration " +"has the highest priority. Any conflicting keys are taken from the more " +"recent configuration while the previously existing keys are retained." msgstr "" msgid "" @@ -148,7 +139,7 @@ msgid "" "Please note that default values have precedence over fallback values. For " "instance, in our example the ``'CompressionLevel'`` key was specified only " "in the ``'DEFAULT'`` section. If we try to get it from the section " -"``'topsecret.server.com'``, we will always get the default, even if we " +"``'topsecret.server.example'``, we will always get the default, even if we " "specify a fallback:" msgstr "" @@ -160,9 +151,9 @@ msgid "" msgstr "" 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 "" msgid "Supported INI File Structure" @@ -192,7 +183,7 @@ msgid "" msgstr "" msgid "For example:" -msgstr "" +msgstr "Na przykład::" msgid "Interpolation of values" msgstr "" @@ -220,8 +211,8 @@ msgid "" msgstr "" 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/" +"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 "" @@ -229,9 +220,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 "" msgid "" @@ -247,8 +238,8 @@ msgstr "" 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 "" @@ -262,9 +253,9 @@ msgstr "" 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 "" msgid "" @@ -276,8 +267,8 @@ msgid "" msgstr "" 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 " @@ -305,10 +296,10 @@ 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 "" msgid "" @@ -344,8 +335,8 @@ msgid "" msgstr "" 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 "" msgid "*dict_type*, default value: :class:`dict`" @@ -389,8 +380,8 @@ msgid "" msgstr "" msgid "" -"See also the *space_around_delimiters* argument to :meth:`ConfigParser." -"write`." +"See also the *space_around_delimiters* argument " +"to :meth:`ConfigParser.write`." msgstr "" msgid "*comment_prefixes*, default value: ``('#', ';')``" @@ -427,9 +418,9 @@ msgstr "" 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 " -"parsers in new applications." +"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 "" msgid "" @@ -458,8 +449,8 @@ msgid "" msgstr "" msgid "" -"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: ``" -"\"DEFAULT\"``)" +"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: " +"``\"DEFAULT\"``)" msgstr "" msgid "" @@ -467,12 +458,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 "" msgid "*interpolation*, default value: ``configparser.BasicInterpolation``" @@ -483,8 +474,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 "" msgid "*converters*, default value: not set" @@ -496,9 +487,9 @@ msgid "" "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 "" @@ -602,13 +593,13 @@ 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 "" msgid "" @@ -627,11 +618,11 @@ msgid "" msgstr "" msgid "" -"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." +"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." msgstr "" msgid "" @@ -691,9 +682,9 @@ msgid "Return a list of options available in the specified *section*." msgstr "" msgid "" -"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." +"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 "" msgid "" @@ -714,8 +705,8 @@ 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 "" msgid "" @@ -806,9 +797,9 @@ 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 " -"*fallback*." +"insensitive manner. Any other value will cause it to " +"raise :exc:`ValueError`. See :meth:`get` for explanation of *raw*, *vars* " +"and *fallback*." msgstr "" msgid "" @@ -818,8 +809,8 @@ msgstr "" 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 "" msgid "" @@ -893,8 +884,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -932,9 +923,9 @@ msgstr "" 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 "" @@ -962,8 +953,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -985,8 +976,8 @@ msgstr "" 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 "" msgid "" diff --git a/library/constants.po b/library/constants.po new file mode 100644 index 0000000000..1068d60a2f --- /dev/null +++ b/library/constants.po @@ -0,0 +1,154 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Rafael Fontenelle , 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Rafael Fontenelle , 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Built-in Constants" +msgstr "Wbudowane stałe" + +msgid "A small number of constants live in the built-in namespace. They are:" +msgstr "We wbudowanej przestrzeni nazw znajduje się kilka stałych. Są to:" + +msgid "" +"The false value of the :class:`bool` type. Assignments to ``False`` are " +"illegal and raise a :exc:`SyntaxError`." +msgstr "" +"Wartość \"fałsz\" typu :class:`bool`. Przypisania do ``False`` są " +"niedozwolone i rzucają wyjątkiem :exc:`SyntaxError`." + +msgid "" +"The true value of the :class:`bool` type. Assignments to ``True`` are " +"illegal and raise a :exc:`SyntaxError`." +msgstr "" +"Wartość \"prawda\" typu :class:`bool`. Przypisania do ``True`` są " +"niedozwolone i rzucają wyjątkiem :exc:`SyntaxError`." + +msgid "" +"An object 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`. ``None`` is the sole instance of " +"the :data:`NoneType` type." +msgstr "" + +msgid "" +"A 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. It " +"should not be evaluated in a boolean context. ``NotImplemented`` is the sole " +"instance of the :data:`types.NotImplementedType` type." +msgstr "" + +msgid "" +"When a binary (or in-place) method returns ``NotImplemented`` the " +"interpreter will try the reflected operation on the other type (or some " +"other fallback, depending on the operator). If all attempts return " +"``NotImplemented``, the interpreter will raise an appropriate exception. " +"Incorrectly returning ``NotImplemented`` will result in a misleading error " +"message or the ``NotImplemented`` value being returned to Python code." +msgstr "" + +msgid "See :ref:`implementing-the-arithmetic-operations` for examples." +msgstr "Zobacz przykłady w :ref:`implementing-the-arithmetic-operations`." + +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." +msgstr "" + +msgid "" +"Evaluating ``NotImplemented`` in a boolean context is deprecated. While it " +"currently evaluates as true, it will emit a :exc:`DeprecationWarning`. It " +"will raise a :exc:`TypeError` in a future version of Python." +msgstr "" + +msgid "" +"The same as the ellipsis literal \"``...``\". Special value used mostly in " +"conjunction with extended slicing syntax for user-defined container data " +"types. ``Ellipsis`` is the sole instance of the :data:`types.EllipsisType` " +"type." +msgstr "" +"To samo co literalny zapis wielokropka \"``...``\". Wartość specjalna " +"używana głównie w połączeniu z rozszerzoną składnią krojenia typów danych " +"kontenerów zdefiniowanych przez użytkownika. ``Ellipsis`` jest jedyną " +"instancją typu :data:`types.EllipsisType`." + +msgid "" +"This constant is true if Python was not started with an :option:`-O` option. " +"See also the :keyword:`assert` statement." +msgstr "" +"Ta stała ma wartość True jeśli Python nie został uruchomiony z " +"opcją :option:`-O`. Zobacz także deklarację :keyword:`assert`." + +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." +msgstr "" +"Nazwy :data:`None`, :data:`False`, :data:`True` oraz :data:`__debug__` nie " +"mogą być przypisane ponownie (przypisania do nich, nawet jako nazwa " +"atrybutu, rzucają :exc:`SyntaxError`), więc mogą być uważane za „prawdziwe” " +"stałe." + +msgid "Constants added by the :mod:`site` module" +msgstr "Stałe dodane przez moduł :mod:`site`" + +msgid "" +"The :mod:`site` module (which is imported automatically during startup, " +"except if the :option:`-S` command-line option is given) adds several " +"constants to the built-in namespace. They are useful for the interactive " +"interpreter shell and should not be used in programs." +msgstr "" +"Moduł :mod:`site` (który jest importowany automatycznie podczas " +"uruchamiania, z wyjątkiem sytuacji, gdy podano opcję wiersza " +"poleceń :option:`-S`) dodaje kilka stałych do wbudowanej przestrzeni nazw. " +"Są one przydatne w interaktywnej powłoce interpretera i nie powinny być " +"używane w programach." + +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." +msgstr "" +"Obiekty, które, gdy ich nazwa zostanie wpisana w powłoce - wyświetlają " +"wiadomość w formie \"Use quit() or Ctrl-D (i.e. EOF) to exit\", a gdy " +"wywołane - rzucą wyjątek :exc:`SystemExit` z podanym kodem wyjścia." + +msgid "" +"Objects that when printed or called, print the text of copyright or credits, " +"respectively." +msgstr "" +"Obiekty, które, gdy wypisane lub wywołane - wyświetlają treść odpowiednio " +"praw autorskich i słów uznania." + +msgid "" +"Object that when printed, prints the message \"Type license() to see the " +"full license text\", and when called, displays the full license text in a " +"pager-like fashion (one screen at a time)." +msgstr "" +"Obiekt, który, gdy jego nazwa zostanie wpisana w powłoce - wyświetla " +"wiadomość \"Type license() to see the full license text\", a gdy wywołany - " +"wyświetla pełny tekst licencji w sposób podobny do pagera (jeden ekran na " +"raz)." diff --git a/library/contextlib.po b/library/contextlib.po new file mode 100644 index 0000000000..d4b29f72bc --- /dev/null +++ b/library/contextlib.po @@ -0,0 +1,691 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "" +":mod:`!contextlib` --- Utilities for :keyword:`!with`\\ -statement contexts" +msgstr "" + +msgid "**Source code:** :source:`Lib/contextlib.py`" +msgstr "**Kod źródłowy:** :source:`Lib/contextlib.py`" + +msgid "" +"This module provides utilities for common tasks involving " +"the :keyword:`with` statement. For more information see " +"also :ref:`typecontextmanager` and :ref:`context-managers`." +msgstr "" + +msgid "Utilities" +msgstr "" + +msgid "Functions and classes provided:" +msgstr "" + +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`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"This function is a :term:`decorator` that can be used to define a factory " +"function for :keyword:`with` statement context managers, without needing to " +"create a class or separate :meth:`__enter__` and :meth:`__exit__` methods." +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``" +msgstr "" + +msgid "" +"An abstract example would be the following to ensure correct resource " +"management::" +msgstr "" + +msgid "The function can then be used like this::" +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." +msgstr "" + +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` 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 reraise that exception. Otherwise the generator context " +"manager will indicate to the :keyword:`!with` statement that the exception " +"has been handled, and execution will resume with the statement immediately " +"following the :keyword:`!with` statement." +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\" " +"context managers created by :func:`contextmanager` to meet the requirement " +"that context managers support multiple invocations in order to be used as " +"decorators)." +msgstr "" + +msgid "Use of :class:`ContextDecorator`." +msgstr "" + +msgid "" +"Similar to :func:`~contextlib.contextmanager`, but creates " +"an :ref:`asynchronous context manager `." +msgstr "" + +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." +msgstr "" + +msgid "A simple example::" +msgstr "" + +msgid "" +"Context managers defined with :func:`asynccontextmanager` can be used either " +"as decorators or with :keyword:`async with` statements::" +msgstr "" + +msgid "" +"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:`asynccontextmanager` to meet the requirement that context " +"managers support multiple invocations in order to be used as decorators." +msgstr "" + +msgid "" +"Async context managers created with :func:`asynccontextmanager` can be used " +"as decorators." +msgstr "" + +msgid "" +"Return a context manager that closes *thing* upon completion of the block. " +"This is basically equivalent to::" +msgstr "" + +msgid "And lets you write code like this::" +msgstr "" + +msgid "" +"without needing to explicitly close ``page``. Even if an error occurs, " +"``page.close()`` will be called when the :keyword:`with` block is exited." +msgstr "" + +msgid "" +"Return an async context manager that calls the ``aclose()`` method of " +"*thing* upon completion of the block. This is basically equivalent to::" +msgstr "" + +msgid "" +"Significantly, ``aclosing()`` supports deterministic cleanup of async " +"generators when they happen to exit early by :keyword:`break` or an " +"exception. For example::" +msgstr "" + +msgid "" +"This pattern ensures that the generator's async exit code is executed in the " +"same context as its iterations (so that exceptions and context variables " +"work as expected, and the exit code isn't run after the lifetime of some " +"task it depends on)." +msgstr "" + +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 " +"optional context manager, for example::" +msgstr "" + +msgid "An example using *enter_result*::" +msgstr "" + +msgid "" +"It can also be used as a stand-in for :ref:`asynchronous context managers " +"`::" +msgstr "" + +msgid ":term:`asynchronous context manager` support was added." +msgstr "" + +msgid "" +"Return a context manager that suppresses any of the specified exceptions if " +"they occur in the body of a :keyword:`!with` statement and then resumes " +"execution with the first statement following the end of the :keyword:`!with` " +"statement." +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." +msgstr "" + +msgid "For example::" +msgstr "Dla przykładu::" + +msgid "This code is equivalent to::" +msgstr "" + +msgid "This context manager is :ref:`reentrant `." +msgstr "" + +msgid "" +"Context manager for temporarily redirecting :data:`sys.stdout` to another " +"file or file-like object." +msgstr "" + +msgid "" +"This tool adds flexibility to existing functions or classes whose output is " +"hardwired to stdout." +msgstr "" + +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. The replacement stream is returned from the " +"``__enter__`` method and so is available as the target of " +"the :keyword:`with` statement::" +msgstr "" + +msgid "" +"To send the output of :func:`help` to a file on disk, redirect the output to " +"a regular file::" +msgstr "" + +msgid "To send the output of :func:`help` to *sys.stderr*::" +msgstr "" + +msgid "" +"Note that the global side effect on :data:`sys.stdout` means that this " +"context manager is not suitable for use in library code and most threaded " +"applications. It also has no effect on the output of subprocesses. However, " +"it is still a useful approach for many utility scripts." +msgstr "" + +msgid "" +"Similar to :func:`~contextlib.redirect_stdout` but " +"redirecting :data:`sys.stderr` to another file or file-like object." +msgstr "" + +msgid "" +"A base class that enables a context manager to also be used as a decorator." +msgstr "" + +msgid "" +"Context managers inheriting from ``ContextDecorator`` have to implement " +"``__enter__`` and ``__exit__`` as normal. ``__exit__`` retains its optional " +"exception handling even when used as a decorator." +msgstr "" + +msgid "" +"``ContextDecorator`` is used by :func:`contextmanager`, so you get this " +"functionality automatically." +msgstr "" + +msgid "Example of ``ContextDecorator``::" +msgstr "" + +msgid "The class can then be used like this::" +msgstr "" + +msgid "" +"This change is just syntactic sugar for any construct of the following form::" +msgstr "" + +msgid "``ContextDecorator`` lets you instead write::" +msgstr "" + +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)." +msgstr "" + +msgid "" +"Existing context managers that already have a base class can be extended by " +"using ``ContextDecorator`` as a mixin class::" +msgstr "" + +msgid "" +"As the decorated function must be able to be called multiple times, the " +"underlying context manager must support use in multiple :keyword:`with` " +"statements. If this is not the case, then the original construct with the " +"explicit :keyword:`!with` statement inside the function should be used." +msgstr "" + +msgid "" +"Similar to :class:`ContextDecorator` but only for asynchronous functions." +msgstr "" + +msgid "Example of ``AsyncContextDecorator``::" +msgstr "" + +msgid "" +"A context manager that is designed to make it easy to programmatically " +"combine other context managers and cleanup functions, especially those that " +"are optional or otherwise driven by input data." +msgstr "" + +msgid "" +"For example, a set of files may easily be handled in a single with statement " +"as follows::" +msgstr "" + +msgid "" +"The :meth:`__enter__` method returns the :class:`ExitStack` instance, and " +"performs no additional operations." +msgstr "" + +msgid "" +"Each instance maintains a stack of registered callbacks that are called in " +"reverse order when the instance is closed (either explicitly or implicitly " +"at the end of a :keyword:`with` statement). Note that callbacks are *not* " +"invoked implicitly when the context stack instance is garbage collected." +msgstr "" + +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." +msgstr "" + +msgid "" +"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 " +"updated state." +msgstr "" + +msgid "" +"This is a relatively low level API that takes care of the details of " +"correctly unwinding the stack of exit callbacks. It provides a suitable " +"foundation for higher level context managers that manipulate the exit stack " +"in application specific ways." +msgstr "" + +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." +msgstr "" + +msgid "" +"These context managers may suppress exceptions just as they normally would " +"if used directly as part of a :keyword:`with` statement." +msgstr "" + +msgid "Adds a context manager's :meth:`__exit__` method to the callback stack." +msgstr "" + +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." +msgstr "" + +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__` " +"method and adds it directly to the callback stack." +msgstr "" + +msgid "" +"By returning true values, these callbacks can suppress exceptions the same " +"way context manager :meth:`__exit__` methods can." +msgstr "" + +msgid "" +"The passed in object is returned from the function, allowing this method to " +"be used as a function decorator." +msgstr "" + +msgid "" +"Accepts an arbitrary callback function and arguments and adds it to the " +"callback stack." +msgstr "" + +msgid "" +"Unlike the other methods, callbacks added this way cannot suppress " +"exceptions (as they are never passed the exception details)." +msgstr "" + +msgid "" +"The passed in callback is returned from the function, allowing this method " +"to be used as a function decorator." +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)." +msgstr "" + +msgid "" +"For example, a group of files can be opened as an \"all or nothing\" " +"operation as follows::" +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :meth:`close` method is not implemented, :meth:`aclose` must be used " +"instead." +msgstr "" + +msgid "" +"Similar to :meth:`enter_context` but expects an asynchronous context manager." +msgstr "" + +msgid "" +"Similar to :meth:`push` but expects either an asynchronous context manager " +"or a coroutine function." +msgstr "" + +msgid "Similar to :meth:`callback` but expects a coroutine function." +msgstr "" + +msgid "Similar to :meth:`close` but properly handles awaitables." +msgstr "" + +msgid "Continuing the example for :func:`asynccontextmanager`::" +msgstr "" + +msgid "Examples and Recipes" +msgstr "" + +msgid "" +"This section describes some examples and recipes for making effective use of " +"the tools provided by :mod:`contextlib`." +msgstr "" + +msgid "Supporting a variable number of context managers" +msgstr "" + +msgid "" +"The primary use case for :class:`ExitStack` is the one given in the class " +"documentation: supporting a variable number of context managers and other " +"cleanup operations in a single :keyword:`with` statement. The variability " +"may come from the number of context managers needed being driven by user " +"input (such as opening a user specified collection of files), or from some " +"of the context managers being optional::" +msgstr "" + +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 " +"context management protocol." +msgstr "" + +msgid "Catching exceptions from ``__enter__`` methods" +msgstr "" + +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::" +msgstr "" + +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 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." +msgstr "" + +msgid "Cleaning up in an ``__enter__`` implementation" +msgstr "" + +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." +msgstr "" + +msgid "" +"Here's an example of doing this for a context manager that accepts resource " +"acquisition and release functions, along with an optional validation " +"function, and maps them to the context management protocol::" +msgstr "" + +msgid "Replacing any use of ``try-finally`` and flag variables" +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::" +msgstr "" + +msgid "" +"As with any ``try`` statement based code, this can cause problems for " +"development and review, because the setup code and the cleanup code can end " +"up being separated by arbitrarily long sections of code." +msgstr "" + +msgid "" +":class:`ExitStack` makes it possible to instead register a callback for " +"execution at the end of a ``with`` statement, and then later decide to skip " +"executing that callback::" +msgstr "" + +msgid "" +"This allows the intended cleanup up behaviour to be made explicit up front, " +"rather than requiring a separate flag variable." +msgstr "" + +msgid "" +"If a particular application uses this pattern a lot, it can be simplified " +"even further by means of a small helper class::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Due to the way the decorator protocol works, a callback function declared " +"this way cannot take any parameters. Instead, any resources to be released " +"must be accessed as closure variables." +msgstr "" + +msgid "Using a context manager as a function decorator" +msgstr "" + +msgid "" +":class:`ContextDecorator` makes it possible to use a context manager in both " +"an ordinary ``with`` statement and also as a function decorator." +msgstr "" + +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::" +msgstr "" + +msgid "Instances of this class can be used as both a context manager::" +msgstr "" + +msgid "And also as a function decorator::" +msgstr "" + +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." +msgstr "" + +msgid ":pep:`343` - The \"with\" statement" +msgstr "" + +msgid "" +"The specification, background, and examples for the Python :keyword:`with` " +"statement." +msgstr "" + +msgid "Single use, reusable and reentrant context managers" +msgstr "" + +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." +msgstr "" + +msgid "" +"This common limitation means that it is generally advisable to create " +"context managers directly in the header of the :keyword:`with` statement " +"where they are used (as shown in all of the usage examples above)." +msgstr "" + +msgid "" +"Files are an example of effectively single use context managers, since the " +"first :keyword:`with` statement will close the file, preventing any further " +"IO operations using that file object." +msgstr "" + +msgid "" +"Context managers created using :func:`contextmanager` are also single use " +"context managers, and will complain about the underlying generator failing " +"to yield if an attempt is made to use them a second time::" +msgstr "" + +msgid "Reentrant context managers" +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." +msgstr "" + +msgid "" +":class:`threading.RLock` is an example of a reentrant context manager, as " +"are :func:`suppress` and :func:`redirect_stdout`. Here's a very simple " +"example of reentrant use::" +msgstr "" + +msgid "" +"Real world examples of reentrancy are more likely to involve multiple " +"functions calling each other and hence be far more complicated than this " +"example." +msgstr "" + +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." +msgstr "" + +msgid "Reusable context managers" +msgstr "" + +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." +msgstr "" + +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)." +msgstr "" + +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::" +msgstr "" + +msgid "" +"As the output from the example shows, reusing a single stack object across " +"multiple with statements works correctly, but attempting to nest them will " +"cause the stack to be cleared at the end of the innermost with statement, " +"which is unlikely to be desirable behaviour." +msgstr "" + +msgid "" +"Using separate :class:`ExitStack` instances instead of reusing a single " +"instance avoids that problem::" +msgstr "" diff --git a/library/contextvars.po b/library/contextvars.po index a36c370c0d..d9f55b5e5a 100644 --- a/library/contextvars.po +++ b/library/contextvars.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:57+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`contextvars` --- Context Variables" msgstr "" @@ -35,9 +35,9 @@ msgid "" msgstr "" 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." +"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 "" msgid "See also :pep:`567` for additional details." @@ -54,9 +54,9 @@ msgid "" msgstr "" 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." +"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 "" msgid "" @@ -103,8 +103,8 @@ msgid "" msgstr "" msgid "" -"Reset the context variable to the value it had before the :meth:`ContextVar." -"set` that created the *token* was used." +"Reset the context variable to the value it had before " +"the :meth:`ContextVar.set` that created the *token* was used." msgstr "" msgid "For example::" @@ -122,9 +122,9 @@ msgid "" msgstr "" 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` if the variable was not set before the call." +"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` if the variable was not set before the call." msgstr "" msgid "A marker object used by :attr:`Token.old_value`." @@ -154,6 +154,13 @@ msgid "" "of the current context use the :func:`~contextvars.copy_context` function." msgstr "" +msgid "" +"Every thread will have a different top-level :class:`~contextvars.Context` " +"object. This means that a :class:`ContextVar` object behaves in a similar " +"fashion to :func:`threading.local()` when values are assigned in different " +"threads." +msgstr "" + msgid "Context implements the :class:`collections.abc.Mapping` interface." msgstr "" diff --git a/library/copy.po b/library/copy.po new file mode 100644 index 0000000000..3bcec48fda --- /dev/null +++ b/library/copy.po @@ -0,0 +1,135 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`copy` --- Shallow and deep copy operations" +msgstr "" + +msgid "**Source code:** :source:`Lib/copy.py`" +msgstr "**Kod źródłowy:** :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 " +"operations (explained below)." +msgstr "" + +msgid "Interface summary:" +msgstr "Podsumowanie interfejsu:" + +msgid "Return a shallow copy of *x*." +msgstr "" + +msgid "Return a deep copy of *x*." +msgstr "" + +msgid "Raised for module specific errors." +msgstr "" + +msgid "" +"The difference between shallow and deep copying is only relevant for " +"compound objects (objects that contain other objects, like lists or class " +"instances):" +msgstr "" + +msgid "" +"A *shallow copy* constructs a new compound object and then (to the extent " +"possible) inserts *references* into it to the objects found in the original." +msgstr "" + +msgid "" +"A *deep copy* constructs a new compound object and then, recursively, " +"inserts *copies* into it of the objects found in the original." +msgstr "" + +msgid "" +"Two problems often exist with deep copy operations that don't exist with " +"shallow copy operations:" +msgstr "" + +msgid "" +"Recursive objects (compound objects that, directly or indirectly, contain a " +"reference to themselves) may cause a recursive loop." +msgstr "" + +msgid "" +"Because deep copy copies everything it may copy too much, such as data which " +"is intended to be shared between copies." +msgstr "" + +msgid "The :func:`deepcopy` function avoids these problems by:" +msgstr "" + +msgid "" +"keeping a ``memo`` dictionary of objects already copied during the current " +"copying pass; and" +msgstr "" + +msgid "" +"letting user-defined classes override the copying operation or the set of " +"components copied." +msgstr "" + +msgid "" +"This module does not copy types like module, method, stack trace, stack " +"frame, file, socket, window, 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." +msgstr "" + +msgid "" +"Shallow copies of dictionaries can be made using :meth:`dict.copy`, and of " +"lists by assigning a slice of the entire list, for example, ``copied_list = " +"original_list[:]``." +msgstr "" + +msgid "" +"Classes can use the same interfaces to control copying that they use to " +"control pickling. See the description of module :mod:`pickle` for " +"information on these methods. In fact, the :mod:`copy` module uses the " +"registered pickle functions from the :mod:`copyreg` module." +msgstr "" + +msgid "" +"In order for a class to define its own copy implementation, it can define " +"special methods :meth:`__copy__` and :meth:`__deepcopy__`. The former is " +"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 dictionary as second argument. The memo dictionary should be treated as " +"an opaque object." +msgstr "" + +msgid "Module :mod:`pickle`" +msgstr "moduł :mod:`pickle`" + +msgid "" +"Discussion of the special methods used to support object state retrieval and " +"restoration." +msgstr "" diff --git a/library/copyreg.po b/library/copyreg.po new file mode 100644 index 0000000000..5d5f660200 --- /dev/null +++ b/library/copyreg.po @@ -0,0 +1,70 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`copyreg` --- Register :mod:`pickle` support functions" +msgstr "" + +msgid "**Source code:** :source:`Lib/copyreg.py`" +msgstr "**Kod źródłowy:** :source:`Lib/copyreg.py`" + +msgid "" +"The :mod:`copyreg` module offers a way to define functions used while " +"pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use " +"those functions when pickling/copying those objects. The module provides " +"configuration information about object constructors which are not classes. " +"Such constructors may be factory functions or class instances." +msgstr "" + +msgid "" +"Declares *object* to be a valid constructor. If *object* is not callable " +"(and hence not valid as a constructor), raises :exc:`TypeError`." +msgstr "" + +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. See " +"the :attr:`~pickle.Pickler.dispatch_table` for more details on the interface " +"of *function*." +msgstr "" + +msgid "" +"The *constructor_ob* parameter is a legacy feature and is now ignored, but " +"if passed it must be a callable." +msgstr "" + +msgid "" +"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 "" + +msgid "Example" +msgstr "Przykład" + +msgid "" +"The example below would like to show how to register a pickle function and " +"how it will be used:" +msgstr "" diff --git a/library/crypt.po b/library/crypt.po index be0c007135..f615a87834 100644 --- a/library/crypt.po +++ b/library/crypt.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:03+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`crypt` --- Function to check Unix passwords" msgstr "" @@ -50,16 +50,7 @@ msgid "" "be available on this module." msgstr "" -msgid ":ref:`Availability `: Unix, not VxWorks." -msgstr "" - -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." +msgid ":ref:`Availability `: Unix. Not available on VxWorks." msgstr "" msgid "Hashing Methods" @@ -125,11 +116,11 @@ msgid "" msgstr "" 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 " +"*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" -"$``." +"Z0-9]``, with the exception of Modular Crypt Format which prefixes a " +"``$digit$``." msgstr "" msgid "" @@ -152,8 +143,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -161,8 +152,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 "" msgid "Added the *rounds* parameter." @@ -173,8 +164,8 @@ msgstr "Przykłady" 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 "" msgid "" diff --git a/library/csv.po b/library/csv.po index f83919b367..c4baff27b9 100644 --- a/library/csv.po +++ b/library/csv.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:03+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`csv` --- CSV File Reading and Writing" msgstr "" msgid "**Source code:** :source:`Lib/csv.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/csv.py`" msgid "" "The so-called CSV (Comma Separated Values) format is the most common import " @@ -72,16 +72,16 @@ msgstr "" 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 " -"*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`." +"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 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`." msgstr "" msgid "" @@ -100,17 +100,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 dialects and formatting parameters, see the :ref:`csv-fmt-" -"params` section. 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 dialects and formatting parameters, " +"see the :ref:`csv-fmt-params` section. 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 "" msgid "" @@ -122,8 +122,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -165,8 +165,8 @@ msgid "" msgstr "" 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 "" msgid "Returned rows are now of type :class:`OrderedDict`." @@ -186,8 +186,8 @@ 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 "" msgid "" @@ -199,8 +199,8 @@ msgid "" "The :class:`Dialect` class is a container class whose attributes contain " "information for how to handle doublequotes, whitespace, delimiters, etc. Due " "to the lack of a strict CSV specification, different applications produce " -"subtly different CSV data. :class:`Dialect` instances define how :class:" -"`reader` and :class:`writer` instances behave." +"subtly different CSV data. :class:`Dialect` instances define " +"how :class:`reader` and :class:`writer` instances behave." msgstr "" msgid "" @@ -239,10 +239,10 @@ msgid "" msgstr "" 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. Inspecting " -"each column, one of two key criteria will be considered to estimate if the " -"sample contains a header:" +"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. Inspecting each column, one of two key criteria will be considered " +"to estimate if the sample contains a header:" msgstr "" msgid "the second through n-th rows contain numeric values" @@ -326,14 +326,14 @@ msgstr "" 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 "" 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 "" msgid "" @@ -344,9 +344,6 @@ msgid "" "escaping." msgstr "" -msgid "An empty *escapechar* is not allowed." -msgstr "" - msgid "" "The string used to terminate lines produced by the :class:`writer`. It " "defaults to ``'\\r\\n'``." @@ -364,9 +361,6 @@ msgid "" "characters. It defaults to ``'\"'``." msgstr "" -msgid "An empty *quotechar* is not allowed." -msgstr "" - 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 " @@ -387,8 +381,8 @@ msgid "Reader Objects" msgstr "" 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 "" msgid "" @@ -462,8 +456,8 @@ msgid "" msgstr "" msgid "" -":meth:`writeheader` now also returns the value returned by the :meth:" -"`csvwriter.writerow` method it uses internally." +":meth:`writeheader` now also returns the value returned by " +"the :meth:`csvwriter.writerow` method it uses internally." msgstr "" msgid "Examples" @@ -480,9 +474,9 @@ msgstr "" 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.getencoding`). To decode a file using a different encoding, use the " -"``encoding`` argument of open::" +"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 "" msgid "" @@ -510,6 +504,6 @@ 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 11216c35d4..e781e44586 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -1,31 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:03+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`ctypes` --- A foreign function library for Python" msgstr "" +msgid "**Source code:** :source:`Lib/ctypes`" +msgstr "**Kod źródłowy:** :source:`Lib/ctypes`" + msgid "" ":mod:`ctypes` is a foreign function library for Python. It provides C " "compatible data types, and allows calling functions in DLLs or shared " @@ -43,9 +46,10 @@ msgstr "" 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 "" msgid "Loading dynamic link libraries" @@ -67,8 +71,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -119,8 +123,8 @@ msgstr "" 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 "" msgid "" @@ -171,10 +175,10 @@ 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:expr:" -"`char *` or :c:expr:`wchar_t *`). Python integers are passed as the " -"platforms default C :c:expr:`int` type, their value is masked to fit into " -"the C type." +"are passed as pointer to the memory block that contains their data " +"(:c:expr:`char *` or :c:expr:`wchar_t *`). Python integers are passed as " +"the platforms default C :c:expr:`int` type, their value is masked to fit " +"into the C type." msgstr "" msgid "" @@ -198,25 +202,25 @@ msgid "Python type" msgstr "" msgid ":class:`c_bool`" -msgstr "" +msgstr ":class:`c_bool`" msgid ":c:expr:`_Bool`" -msgstr "" +msgstr ":c:expr:`_Bool`" msgid "bool (1)" msgstr "" msgid ":class:`c_char`" -msgstr "" +msgstr ":class:`c_char`" msgid ":c:expr:`char`" -msgstr "" +msgstr ":c:expr:`char`" msgid "1-character bytes object" msgstr "" msgid ":class:`c_wchar`" -msgstr "" +msgstr ":class:`c_wchar`" msgid ":c:expr:`wchar_t`" msgstr "" @@ -225,100 +229,100 @@ msgid "1-character string" msgstr "" msgid ":class:`c_byte`" -msgstr "" +msgstr ":class:`c_byte`" msgid "int" msgstr "int" msgid ":class:`c_ubyte`" -msgstr "" +msgstr ":class:`c_ubyte`" msgid ":c:expr:`unsigned char`" -msgstr "" +msgstr ":c:expr:`unsigned char`" msgid ":class:`c_short`" -msgstr "" +msgstr ":class:`c_short`" msgid ":c:expr:`short`" -msgstr "" +msgstr ":c:expr:`short`" msgid ":class:`c_ushort`" -msgstr "" +msgstr ":class:`c_ushort`" msgid ":c:expr:`unsigned short`" -msgstr "" +msgstr ":c:expr:`unsigned short`" msgid ":class:`c_int`" -msgstr "" +msgstr ":class:`c_int`" msgid ":c:expr:`int`" -msgstr "" +msgstr ":c:expr:`int`" msgid ":class:`c_uint`" -msgstr "" +msgstr ":class:`c_uint`" msgid ":c:expr:`unsigned int`" -msgstr "" +msgstr ":c:expr:`unsigned int`" msgid ":class:`c_long`" -msgstr "" +msgstr ":class:`c_long`" msgid ":c:expr:`long`" -msgstr "" +msgstr ":c:expr:`long`" msgid ":class:`c_ulong`" -msgstr "" +msgstr ":class:`c_ulong`" msgid ":c:expr:`unsigned long`" -msgstr "" +msgstr ":c:expr:`unsigned long`" msgid ":class:`c_longlong`" -msgstr "" +msgstr ":class:`c_longlong`" msgid ":c:expr:`__int64` or :c:expr:`long long`" msgstr "" msgid ":class:`c_ulonglong`" -msgstr "" +msgstr ":class:`c_ulonglong`" msgid ":c:expr:`unsigned __int64` or :c:expr:`unsigned long long`" msgstr "" msgid ":class:`c_size_t`" -msgstr "" +msgstr ":class:`c_size_t`" msgid ":c:expr:`size_t`" msgstr "" msgid ":class:`c_ssize_t`" -msgstr "" +msgstr ":class:`c_ssize_t`" msgid ":c:expr:`ssize_t` or :c:expr:`Py_ssize_t`" msgstr "" msgid ":class:`c_float`" -msgstr "" +msgstr ":class:`c_float`" msgid ":c:expr:`float`" -msgstr "" +msgstr ":c:expr:`float`" msgid "float" msgstr "typ (float) zmiennoprzecinkowy pojedynczej precyzji" msgid ":class:`c_double`" -msgstr "" +msgstr ":class:`c_double`" msgid ":c:expr:`double`" -msgstr "" +msgstr ":c:expr:`double`" msgid ":class:`c_longdouble`" -msgstr "" +msgstr ":class:`c_longdouble`" msgid ":c:expr:`long double`" -msgstr "" +msgstr ":c:expr:`long double`" msgid ":class:`c_char_p`" -msgstr "" +msgstr ":class:`c_char_p`" msgid ":c:expr:`char *` (NUL terminated)" msgstr "" @@ -327,7 +331,7 @@ msgid "bytes object or ``None``" msgstr "" msgid ":class:`c_wchar_p`" -msgstr "" +msgstr ":class:`c_wchar_p`" msgid ":c:expr:`wchar_t *` (NUL terminated)" msgstr "" @@ -336,10 +340,10 @@ msgid "string or ``None``" msgstr "" msgid ":class:`c_void_p`" -msgstr "" +msgstr ":class:`c_void_p`" msgid ":c:expr:`void *`" -msgstr "" +msgstr ":c:expr:`void *`" msgid "int or ``None``" msgstr "" @@ -357,35 +361,36 @@ msgid "" msgstr "" 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 " -"Python bytes objects are immutable)::" +"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 "" 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. " -"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::" +"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::" msgstr "" msgid "" -"The :func:`create_string_buffer` function replaces the old :func:`c_buffer` " -"function (which is still available as an alias). To create a mutable memory " -"block containing unicode characters of the C type :c:expr:`wchar_t`, use " -"the :func:`create_unicode_buffer` function." +"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:expr:`wchar_t` use the :func:`create_unicode_buffer` function." msgstr "" msgid "Calling functions, continued" msgstr "" 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 "" msgid "" @@ -394,6 +399,27 @@ msgid "" "so that they can be converted to the required C data type::" msgstr "" +msgid "Calling variadic functions" +msgstr "" + +msgid "" +"On a lot of platforms calling variadic functions through ctypes is exactly " +"the same as calling functions with a fixed number of parameters. On some " +"platforms, and in particular ARM64 for Apple Platforms, the calling " +"convention for variadic functions is different than that for regular " +"functions." +msgstr "" + +msgid "" +"On those platforms it is required to specify the *argtypes* attribute for " +"the regular, non-variadic, function arguments:" +msgstr "" + +msgid "" +"Because specifying the attribute does inhibit portability it is advised to " +"always specify ``argtypes`` for all variadic functions." +msgstr "" + msgid "Calling functions with your own custom data types" msgstr "" @@ -458,9 +484,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -496,20 +522,21 @@ msgstr "" 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 "" msgid "Structures and unions" msgstr "" 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 "" msgid "" @@ -555,18 +582,18 @@ msgstr "" 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 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." +"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 "" 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 "" msgid "Bit fields in structures and unions" @@ -611,8 +638,8 @@ msgid "Pointers" msgstr "" 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 "" msgid "" @@ -725,8 +752,8 @@ msgstr "" 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 "" msgid "" @@ -762,9 +789,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -787,7 +815,7 @@ msgid "" msgstr "" msgid "The result::" -msgstr "" +msgstr "Wynik::" msgid "Now we can actually compare the two items and return a useful result::" msgstr "" @@ -1035,13 +1063,14 @@ msgstr "" msgid "" "On Windows creating a :class:`CDLL` instance may fail even if the DLL name " -"exists. When a dependent DLL of the loaded DLL is not found, a :exc:" -"`OSError` error is raised with the message *\"[WinError 126] The specified " -"module could not be found\".* This error message does not contain the name " -"of the missing DLL because the Windows API does not return this information " -"making this error hard to diagnose. To resolve this error and determine " -"which DLL is not found, you need to find the list of dependent DLLs and " -"determine which one is not found using Windows debugging and tracing tools." +"exists. When a dependent DLL of the loaded DLL is not found, " +"a :exc:`OSError` error is raised with the message *\"[WinError 126] The " +"specified module could not be found\".* This error message does not contain " +"the name of the missing DLL because the Windows API does not return this " +"information making this error hard to diagnose. To resolve this error and " +"determine which DLL is not found, you need to find the list of dependent " +"DLLs and determine which one is not found using Windows debugging and " +"tracing tools." msgstr "" msgid "" @@ -1052,10 +1081,11 @@ msgstr "" 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." +"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 "" msgid ":exc:`WindowsError` used to be raised." @@ -1100,11 +1130,12 @@ msgstr "" 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." +"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 "" msgid "" @@ -1115,10 +1146,11 @@ msgstr "" 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` " -"and :func:`ctypes.set_last_error` are used to request and change the ctypes " -"private copy of the windows error code." +"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 "" msgid "" @@ -1175,8 +1207,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1212,9 +1244,9 @@ msgstr "" 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:expr:" -"`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:expr:`int`, which is of course not always the truth, so you have to " +"assign the correct :attr:`restype` attribute to use these functions." msgstr "" msgid "" @@ -1234,9 +1266,9 @@ msgid "" msgstr "" msgid "" -"Accessing a function on a loaded library raises an auditing event ``ctypes." -"dlsym`` with arguments ``library`` (the library object) and ``name`` (the " -"symbol's name as a string or integer)." +"Accessing a function on a loaded library raises an auditing event " +"``ctypes.dlsym`` with arguments ``library`` (the library object) and " +"``name`` (the symbol's name as a string or integer)." msgstr "" msgid "" @@ -1297,12 +1329,12 @@ msgid "" msgstr "" 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, " -"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." +"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." msgstr "" msgid "" @@ -1318,8 +1350,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1351,9 +1383,9 @@ msgstr "" msgid "" "On Windows, when a foreign function call raises a system exception (for " "example, due to an access violation), it will be captured and replaced with " -"a suitable Python exception. Further, an auditing event ``ctypes." -"seh_exception`` with argument ``code`` will be raised, allowing an audit " -"hook to replace the exception with its own." +"a suitable Python exception. Further, an auditing event " +"``ctypes.seh_exception`` with argument ``code`` will be raised, allowing an " +"audit hook to replace the exception with its own." msgstr "" msgid "" @@ -1383,9 +1415,10 @@ msgstr "" 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 "" msgid "" @@ -1648,8 +1681,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1768,9 +1801,9 @@ msgstr "" 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 "" @@ -1783,8 +1816,8 @@ msgid "" "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 "" msgid "" @@ -1810,8 +1843,9 @@ msgid "" msgstr "" msgid "" -"This method, and others that indirectly call this method, raises an :ref:" -"`auditing event ` ``ctypes.cdata`` with argument ``address``." +"This method, and others that indirectly call this method, raises " +"an :ref:`auditing event ` ``ctypes.cdata`` with argument " +"``address``." msgstr "" msgid "" @@ -1838,9 +1872,9 @@ msgstr "" 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 "" msgid "" @@ -1858,8 +1892,8 @@ msgstr "" 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 " +"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 "" @@ -1940,8 +1974,8 @@ msgid "" msgstr "" msgid "" -"Represents the C 8-bit :c:expr:`signed int` datatype. Usually an alias for :" -"class:`c_byte`." +"Represents the C 8-bit :c:expr:`signed int` datatype. Usually an alias " +"for :class:`c_byte`." msgstr "" msgid "" @@ -2062,9 +2096,9 @@ msgstr "" 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." +"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 "" msgid "Structured data types" @@ -2073,12 +2107,6 @@ msgstr "" msgid "Abstract base class for unions in native byte order." msgstr "" -msgid "Abstract base class for unions in *big endian* byte order." -msgstr "" - -msgid "Abstract base class for unions in *little endian* byte order." -msgstr "" - msgid "Abstract base class for structures in *big endian* byte order." msgstr "" @@ -2086,8 +2114,8 @@ msgid "Abstract base class for structures in *little endian* byte order." msgstr "" msgid "" -"Structures and unions 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 "" msgid "Abstract base class for structures in *native* byte order." @@ -2095,9 +2123,9 @@ msgstr "" 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 "" msgid "" @@ -2138,20 +2166,20 @@ msgstr "" 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 "" 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 "" 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 " -"accessing the nested fields directly, without the need to create the " +"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 "" @@ -2169,9 +2197,9 @@ msgstr "" 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 "" msgid "" @@ -2190,9 +2218,9 @@ msgid "Abstract base class for arrays." msgstr "" msgid "" -"The recommended way to create concrete array types is by multiplying any :" -"mod:`ctypes` data type with a non-negative integer. Alternatively, you can " -"subclass this type and define :attr:`_length_` and :attr:`_type_` class " +"The recommended way to create concrete array types is by multiplying " +"any :mod:`ctypes` data type with a non-negative 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`." @@ -2200,8 +2228,8 @@ msgstr "" 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 "" msgid "Specifies the type of each element in the array." @@ -2222,10 +2250,10 @@ msgstr "" 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 "" msgid "Specifies the type pointed to." diff --git a/library/curses.po b/library/curses.po new file mode 100644 index 0000000000..64dba7f3b6 --- /dev/null +++ b/library/curses.po @@ -0,0 +1,2560 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Stan Ulbrych, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Stan Ulbrych, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`curses` --- Terminal handling for character-cell displays" +msgstr "" + +msgid "**Source code:** :source:`Lib/curses`" +msgstr "**Kod źródłowy:** :source:`Lib/curses`" + +msgid "" +"The :mod:`curses` module provides an interface to the curses library, the de-" +"facto standard for portable advanced terminal handling." +msgstr "" + +msgid "" +"While curses is most widely used in the Unix environment, versions are " +"available for Windows, DOS, and possibly other systems as well. This " +"extension module is designed to match the API of ncurses, an open-source " +"curses library hosted on Linux and the BSD variants of Unix." +msgstr "" + +msgid "" +"Whenever the documentation mentions a *character* it can be specified as an " +"integer, a one-character Unicode string or a one-byte byte string." +msgstr "" + +msgid "" +"Whenever the documentation mentions a *character string* it can be specified " +"as a Unicode string or a byte string." +msgstr "" + +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 default encoding::" +msgstr "" + +msgid "Then use *code* as the encoding for :meth:`str.encode` calls." +msgstr "" + +msgid "Module :mod:`curses.ascii`" +msgstr "moduł :mod:`curses.ascii`" + +msgid "" +"Utilities for working with ASCII characters, regardless of your locale " +"settings." +msgstr "" + +msgid "Module :mod:`curses.panel`" +msgstr "moduł :mod:`curses.panel`" + +msgid "A panel stack extension that adds depth to curses windows." +msgstr "" + +msgid "Module :mod:`curses.textpad`" +msgstr "moduł :mod:`curses.textpad`" + +msgid "" +"Editable text widget for curses supporting :program:`Emacs`\\ -like " +"bindings." +msgstr "" + +msgid ":ref:`curses-howto`" +msgstr ":ref:`curses-howto`" + +msgid "" +"Tutorial material on using curses with Python, by Andrew Kuchling and Eric " +"Raymond." +msgstr "" + +msgid "" +"The :source:`Tools/demo/` directory in the Python source distribution " +"contains some example programs using the curses bindings provided by this " +"module." +msgstr "" + +msgid "Functions" +msgstr "Zadania" + +msgid "The module :mod:`curses` defines the following exception:" +msgstr "" + +msgid "Exception raised when a curses library function returns an error." +msgstr "" + +msgid "" +"Whenever *x* or *y* arguments to a function or a method are optional, they " +"default to the current cursor location. Whenever *attr* is optional, it " +"defaults to :const:`A_NORMAL`." +msgstr "" + +msgid "The module :mod:`curses` defines the following functions:" +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." +msgstr "" + +msgid "Emit a short attention sound." +msgstr "" + +msgid "" +"Return ``True`` or ``False``, depending on whether the programmer can change " +"the colors displayed by the terminal." +msgstr "" + +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, " +"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." +msgstr "" + +msgid "" +"Return the intensity of the red, green, and blue (RGB) components in the " +"color *color_number*, which must be between ``0`` and ``COLORS - 1``. " +"Return a 3-tuple, containing the R,G,B values for the given color, which " +"will be between ``0`` (no component) and ``1000`` (maximum amount of " +"component)." +msgstr "" + +msgid "" +"Return the attribute value for displaying text in the specified color pair. " +"Only the first 256 color pairs are supported. 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 "" + +msgid "" +"Set the cursor state. *visibility* can be set to ``0``, ``1``, or ``2``, " +"for invisible, normal, or very visible. If the terminal supports the " +"visibility requested, return the previous cursor state; otherwise raise an " +"exception. On many terminals, the \"visible\" mode is an underline cursor " +"and the \"very visible\" mode is a block cursor." +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." +msgstr "" + +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." +msgstr "" + +msgid "Insert an *ms* millisecond pause in output." +msgstr "" + +msgid "" +"Update the physical screen. The curses library keeps two data structures, " +"one representing the current physical screen contents and a virtual screen " +"representing the desired next state. The :func:`doupdate` ground updates " +"the physical screen to match the virtual screen." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Enter echo mode. In echo mode, each character input is echoed to the screen " +"as it is entered." +msgstr "" + +msgid "De-initialize the library, and return terminal to normal status." +msgstr "" + +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 " +"curses program, and is not set by the curses library itself." +msgstr "" + +msgid "" +"The :func:`.filter` routine, if used, must be called before :func:`initscr` " +"is called. The effect is that, during those calls, :envvar:`LINES` is set " +"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." +msgstr "" + +msgid "" +"Flash the screen. That is, change it to reverse-video and then change it " +"back in a short interval. Some people prefer such as 'visible bell' to the " +"audible attention signal produced by :func:`beep`." +msgstr "" + +msgid "" +"Flush all input buffers. This throws away any typeahead that has been " +"typed by the user and has not yet been processed by the program." +msgstr "" + +msgid "" +"After :meth:`~window.getch` returns :const:`KEY_MOUSE` to signal a mouse " +"event, this method should be called 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 " +"of one or more of the following constants, where *n* is the button number " +"from 1 to " +"5: :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 "" + +msgid "" +"The ``BUTTON5_*`` constants are now exposed if they are provided by the " +"underlying curses library." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +"Return ``True`` if the terminal can display colors; otherwise, return " +"``False``." +msgstr "" + +msgid "" +"Return ``True`` if the module supports extended colors; otherwise, return " +"``False``. Extended color support allows more than 256 color pairs for " +"terminals that support more than 16 colors (e.g. xterm-256color)." +msgstr "" + +msgid "Extended color support requires ncurses version 6.1 or later." +msgstr "" + +msgid "" +"Return ``True`` if the terminal has insert- and delete-character " +"capabilities. This function is included for historical reasons only, as all " +"modern software terminal emulators have such capabilities." +msgstr "" + +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." +msgstr "" + +msgid "" +"Take a key value *ch*, and return ``True`` if the current terminal type " +"recognizes a key with that value." +msgstr "" + +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 " +"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." +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 " +"``COLORS - 1``. 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 "" + +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 " +"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 " +"``0`` and ``COLORS - 1``, or, after calling :func:`use_default_colors`, " +"``-1``. If the color-pair was previously initialized, the screen is " +"refreshed and all occurrences of that color-pair are changed to the new " +"definition." +msgstr "" + +msgid "" +"Initialize the library. Return a :ref:`window ` " +"object which represents the whole screen." +msgstr "" + +msgid "" +"If there is an error opening the terminal, the underlying curses library may " +"cause the interpreter to exit." +msgstr "" + +msgid "" +"Return ``True`` if :func:`resize_term` would modify the window structure, " +"``False`` otherwise." +msgstr "" + +msgid "" +"Return ``True`` if :func:`endwin` has been called (that is, the curses " +"library has been deinitialized)." +msgstr "" + +msgid "" +"Return the name of the key numbered *k* as a bytes object. The name of a " +"key generating printable ASCII character is the key's character. The name " +"of a control-key combination is a two-byte bytes object consisting of a " +"caret (``b'^'``) followed by the corresponding printable ASCII character. " +"The name of an alt-key combination (128--255) is a bytes object consisting " +"of the prefix ``b'M-'`` followed by the name of the corresponding ASCII " +"character." +msgstr "" + +msgid "" +"Return the user's current line kill 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 "" + +msgid "" +"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 "" + +msgid "" +"If *flag* is ``True``, allow 8-bit characters to be input. If *flag* is " +"``False``, allow only 7-bit chars." +msgstr "" + +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 " +"second." +msgstr "" + +msgid "" +"Set the mouse events to be reported, and return a tuple ``(availmask, " +"oldmask)``. *availmask* indicates which of the specified mouse events can " +"be reported; on complete failure it returns ``0``. *oldmask* is the " +"previous value of the given window's mouse event mask. If this function is " +"never called, no mouse events are ever reported." +msgstr "" + +msgid "Sleep for *ms* milliseconds." +msgstr "" + +msgid "" +"Create and return a pointer to a new pad data structure with the given " +"number of lines and columns. Return a pad as a window object." +msgstr "" + +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. " +"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." +msgstr "" + +msgid "" +"Return a new :ref:`window `, whose left-upper corner " +"is at ``(begin_y, begin_x)``, and whose height/width is *nlines*/*ncols*." +msgstr "" + +msgid "" +"By default, the window will extend from the specified position to the lower " +"right corner of the screen." +msgstr "" + +msgid "" +"Enter newline mode. This mode translates the return key into newline on " +"input, and translates newline into return and line-feed on output. Newline " +"mode is initially on." +msgstr "" + +msgid "" +"Leave cbreak mode. Return to normal \"cooked\" mode with line buffering." +msgstr "" + +msgid "Leave echo mode. Echoing of input characters is turned off." +msgstr "" + +msgid "" +"Leave newline mode. Disable translation of return into newline on input, " +"and disable low-level translation of newline into newline/return on output " +"(but this does not change the behavior of ``addch('\\n')``, which always " +"does the equivalent of return and line feed on the virtual screen). With " +"translation off, curses can sometimes speed up vertical motion a little; " +"also, it will be able to detect the return key on input." +msgstr "" + +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 " +"handler if you want output to continue as though the interrupt had not " +"occurred, after the handler exits." +msgstr "" + +msgid "Leave raw mode. Return to normal \"cooked\" mode with line buffering." +msgstr "" + +msgid "" +"Return a tuple ``(fg, bg)`` containing the colors for the requested color " +"pair. The value of *pair_number* must be between ``0`` and ``COLOR_PAIRS - " +"1``." +msgstr "" + +msgid "" +"Return the number of the color-pair set by the attribute value " +"*attr*. :func:`color_pair` is the counterpart to this function." +msgstr "" + +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." +msgstr "" + +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 " +"flushed when these control characters are read." +msgstr "" + +msgid "" +"Enter raw mode. In raw mode, normal line buffering and processing of " +"interrupt, quit, suspend, and flow control keys are turned off; characters " +"are presented to curses input functions one by one." +msgstr "" + +msgid "" +"Restore the terminal to \"program\" mode, as previously saved " +"by :func:`def_prog_mode`." +msgstr "" + +msgid "" +"Restore the terminal to \"shell\" mode, as previously saved " +"by :func:`def_shell_mode`." +msgstr "" + +msgid "" +"Restore the state of the terminal modes to what it was at the last call " +"to :func:`savetty`." +msgstr "" + +msgid "" +"Backend function used by :func:`resizeterm`, performing most of the work; " +"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." +msgstr "" + +msgid "" +"Resize the standard and current windows to the specified dimensions, and " +"adjusts other bookkeeping data used by the curses library that record the " +"window dimensions (in particular the SIGWINCH handler)." +msgstr "" + +msgid "" +"Save the current state of the terminal modes in a buffer, usable " +"by :func:`resetty`." +msgstr "" + +msgid "Retrieves the value set by :func:`set_escdelay`." +msgstr "" + +msgid "" +"Sets the number of milliseconds to wait after reading an escape character, " +"to distinguish between an individual escape character entered on the " +"keyboard from escape sequences sent by cursor and function keys." +msgstr "" + +msgid "Retrieves the value set by :func:`set_tabsize`." +msgstr "" + +msgid "" +"Sets the number of columns used by the curses library when converting a tab " +"character to spaces as it adds the tab to a window." +msgstr "" + +msgid "" +"Set the virtual screen cursor to *y*, *x*. If *y* and *x* are both ``-1``, " +"then :meth:`leaveok ` is set ``True``." +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 " +"descriptor for ``sys.stdout`` will be used." +msgstr "" + +msgid "" +"Must be called if the programmer wants to use colors, and before any other " +"color manipulation routine is called. It is good practice to call this " +"routine right after :func:`initscr`." +msgstr "" + +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 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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the value of the environment variable :envvar:`TERM`, as a bytes " +"object, truncated to 14 characters." +msgstr "" + +msgid "" +"Return the value of the Boolean capability corresponding to the terminfo " +"capability name *capname* as an integer. Return the value ``-1`` if " +"*capname* is not a Boolean capability, or ``0`` if it is canceled or absent " +"from the terminal description." +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." +msgstr "" + +msgid "" +"Return the value of the string capability corresponding to the terminfo " +"capability name *capname* as a bytes object. Return ``None`` if *capname* " +"is not a terminfo \"string capability\", or is canceled or absent from the " +"terminal description." +msgstr "" + +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 " +"exact result depending on terminal type." +msgstr "" + +msgid "" +"Specify that the file descriptor *fd* be used for typeahead checking. If " +"*fd* is ``-1``, then no typeahead checking is done." +msgstr "" + +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 " +"doupdate is called again, allowing faster response to commands typed in " +"advance. This function allows specifying a different file descriptor for " +"typeahead checking." +msgstr "" + +msgid "" +"Return a bytes object which is a printable representation of the character " +"*ch*. Control characters are represented as a caret followed by the " +"character, for example as ``b'^C'``. Printing characters are left as they " +"are." +msgstr "" + +msgid "Push *ch* so the next :meth:`~window.getch` will return it." +msgstr "" + +msgid "Only one *ch* can be pushed before :meth:`!getch` is called." +msgstr "" + +msgid "" +"Update :envvar:`LINES` and :envvar:`COLS`. Useful for detecting manual " +"screen resize." +msgstr "" + +msgid "Push *ch* so the next :meth:`~window.get_wch` will return it." +msgstr "" + +msgid "Only one *ch* can be pushed before :meth:`!get_wch` is called." +msgstr "" + +msgid "" +"Push a :const:`KEY_MOUSE` event onto the input queue, associating the given " +"state data with it." +msgstr "" + +msgid "" +"If used, this function should be called before :func:`initscr` or newterm " +"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)." +msgstr "" + +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." +msgstr "" + +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 " +"*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." +msgstr "" + +msgid "Window Objects" +msgstr "" + +msgid "" +"Window objects, as returned by :func:`initscr` and :func:`newwin` above, " +"have the following methods and attributes:" +msgstr "" + +msgid "" +"Paint character *ch* at ``(y, x)`` with attributes *attr*, overwriting any " +"character previously painted at that location. By default, the character " +"position and attributes are the current settings for the window object." +msgstr "" + +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." +msgstr "" + +msgid "" +"Paint at most *n* characters of the character string *str* at ``(y, x)`` " +"with attributes *attr*, overwriting anything previously on the display." +msgstr "" + +msgid "" +"Paint the character string *str* at ``(y, x)`` with attributes *attr*, " +"overwriting anything previously on the display." +msgstr "" + +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." +msgstr "" + +msgid "" +"A `bug in ncurses `_, the backend for " +"this Python module, can cause SegFaults when resizing windows. This is fixed " +"in ncurses-6.1-20190511. If you are stuck with an earlier ncurses, you can " +"avoid triggering this if you do not call :func:`addstr` with a *str* that " +"has embedded newlines. Instead, call :func:`addstr` separately for each " +"line." +msgstr "" + +msgid "" +"Remove attribute *attr* from the \"background\" set applied to all writes to " +"the current window." +msgstr "" + +msgid "" +"Add attribute *attr* from the \"background\" set applied to all writes to " +"the current window." +msgstr "" + +msgid "" +"Set the \"background\" set of attributes to *attr*. This set is initially " +"``0`` (no attributes)." +msgstr "" + +msgid "" +"Set the background property of the window to the character *ch*, with " +"attributes *attr*. The change is then applied to every character position " +"in that window:" +msgstr "" + +msgid "" +"The attribute of every character in the window is changed to the new " +"background attribute." +msgstr "" + +msgid "" +"Wherever the former background character appears, it is changed to the new " +"background character." +msgstr "" + +msgid "" +"Set the window's background. A window's background consists of a character " +"and any combination of attributes. The attribute part of the background is " +"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." +msgstr "" + +msgid "" +"Draw a border around the edges of the window. Each parameter specifies the " +"character to use for a specific part of the border; see the table below for " +"more details." +msgstr "" + +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:" +msgstr "" + +msgid "Parameter" +msgstr "" + +msgid "Description" +msgstr "Opis" + +msgid "Default value" +msgstr "" + +msgid "*ls*" +msgstr "" + +msgid "Left side" +msgstr "" + +msgid ":const:`ACS_VLINE`" +msgstr ":const:`ACS_VLINE`" + +msgid "*rs*" +msgstr "" + +msgid "Right side" +msgstr "" + +msgid "*ts*" +msgstr "" + +msgid "Top" +msgstr "" + +msgid ":const:`ACS_HLINE`" +msgstr ":const:`ACS_HLINE`" + +msgid "*bs*" +msgstr "" + +msgid "Bottom" +msgstr "" + +msgid "*tl*" +msgstr "" + +msgid "Upper-left corner" +msgstr "" + +msgid ":const:`ACS_ULCORNER`" +msgstr ":const:`ACS_ULCORNER`" + +msgid "*tr*" +msgstr "" + +msgid "Upper-right corner" +msgstr "" + +msgid ":const:`ACS_URCORNER`" +msgstr ":const:`ACS_URCORNER`" + +msgid "*bl*" +msgstr "" + +msgid "Bottom-left corner" +msgstr "" + +msgid ":const:`ACS_LLCORNER`" +msgstr ":const:`ACS_LLCORNER`" + +msgid "*br*" +msgstr "" + +msgid "Bottom-right corner" +msgstr "" + +msgid ":const:`ACS_LRCORNER`" +msgstr ":const:`ACS_LRCORNER`" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Like :meth:`erase`, but also cause the whole window to be repainted upon " +"next call to :meth:`refresh`." +msgstr "" + +msgid "" +"If *flag* is ``True``, the next call to :meth:`refresh` will clear the " +"window completely." +msgstr "" + +msgid "" +"Erase from cursor to the end of the window: all lines below the cursor are " +"deleted, and then the equivalent of :meth:`clrtoeol` is performed." +msgstr "" + +msgid "Erase from cursor to the end of the line." +msgstr "" + +msgid "" +"Update the current cursor position of all the ancestors of the window to " +"reflect the current cursor position of the window." +msgstr "" + +msgid "Delete any character at ``(y, x)``." +msgstr "" + +msgid "" +"Delete the line under the cursor. All following lines are moved up by one " +"line." +msgstr "" + +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." +msgstr "" + +msgid "" +"Add character *ch* with attribute *attr*, and immediately " +"call :meth:`refresh` on the window." +msgstr "" + +msgid "" +"Test whether the given pair of screen-relative character-cell coordinates " +"are enclosed by the given window, returning ``True`` or ``False``. It is " +"useful for determining what subset of the screen windows enclose the " +"location of a mouse event." +msgstr "" + +msgid "Previously it returned ``1`` or ``0`` instead of ``True`` or ``False``." +msgstr "" + +msgid "" +"Encoding used to encode method arguments (Unicode strings and characters). " +"The encoding attribute is inherited from the parent window when a subwindow " +"is created, for example with :meth:`window.subwin`. By default, the locale " +"encoding is used (see :func:`locale.getpreferredencoding`)." +msgstr "" + +msgid "Clear the window." +msgstr "" + +msgid "Return a tuple ``(y, x)`` of co-ordinates of upper-left corner." +msgstr "" + +msgid "Return the given window's current background character/attribute pair." +msgstr "" + +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, " +"otherwise wait until a key is pressed." +msgstr "" + +msgid "" +"Get a wide character. Return a character for most keys, or an integer for " +"function keys, keypad keys, and other special keys. In no-delay mode, raise " +"an exception if there is no input." +msgstr "" + +msgid "" +"Get a character, returning a string instead of an integer, as :meth:`getch` " +"does. Function keys, keypad keys and other special keys return a multibyte " +"string containing the key name. In no-delay mode, raise an exception if " +"there is no input." +msgstr "" + +msgid "Return a tuple ``(y, x)`` of the height and width of the window." +msgstr "" + +msgid "" +"Return the beginning coordinates of this window relative to its parent " +"window as a tuple ``(y, x)``. Return ``(-1, -1)`` if this window has no " +"parent." +msgstr "" + +msgid "" +"Read a bytes object from the user, with primitive line editing capacity." +msgstr "" + +msgid "" +"Return a tuple ``(y, x)`` of current cursor position relative to the " +"window's upper-left corner." +msgstr "" + +msgid "" +"Display a horizontal line starting at ``(y, x)`` with length *n* consisting " +"of the character *ch*." +msgstr "" + +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 " +"initialized, use of character insert/delete is enabled by default." +msgstr "" + +msgid "" +"If *flag* is ``True``, :mod:`curses` will try and use hardware line editing " +"facilities. Otherwise, line insertion/deletion are disabled." +msgstr "" + +msgid "" +"If *flag* is ``True``, any change in the window image automatically causes " +"the window to be refreshed; you no longer have to call :meth:`refresh` " +"yourself. However, it may degrade performance considerably, due to repeated " +"calls to wrefresh. This option is disabled by default." +msgstr "" + +msgid "" +"Return the character at the given position in the window. The bottom 8 bits " +"are the character proper, and upper bits are the attributes." +msgstr "" + +msgid "" +"Paint character *ch* at ``(y, x)`` with attributes *attr*, moving the line " +"from position *x* right by one character." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "" +"Insert a blank line under the cursor. All following lines are moved down by " +"one line." +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 " +"being lost. The cursor position does not change (after moving to *y*, *x*, " +"if specified)." +msgstr "" + +msgid "" +"Insert a character string (as many characters as will fit on the line) " +"before the character under the cursor. 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 "" + +msgid "" +"Return a bytes object of characters, extracted from the window starting at " +"the current cursor position, or at *y*, *x* if specified. Attributes are " +"stripped from the characters. If *n* is specified, :meth:`instr` returns a " +"string at most *n* characters long (exclusive of the trailing NUL)." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Return ``True`` if the specified window was modified since the last call " +"to :meth:`refresh`; otherwise return ``False``." +msgstr "" + +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." +msgstr "" + +msgid "" +"If *flag* is ``True``, cursor is left where it is on update, instead of " +"being at \"cursor position.\" This reduces cursor movement where possible. " +"If possible the cursor will be made invisible." +msgstr "" + +msgid "" +"If *flag* is ``False``, cursor will always be at \"cursor position\" after " +"an update." +msgstr "" + +msgid "Move cursor to ``(new_y, new_x)``." +msgstr "" + +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." +msgstr "" + +msgid "Move the window so its upper-left corner is at ``(new_y, new_x)``." +msgstr "" + +msgid "If *flag* is ``True``, :meth:`getch` will be non-blocking." +msgstr "" + +msgid "If *flag* is ``True``, escape sequences will not be timed out." +msgstr "" + +msgid "" +"If *flag* is ``False``, after a few milliseconds, an escape sequence will " +"not be interpreted, and will be left in the input stream as is." +msgstr "" + +msgid "" +"Mark for refresh but wait. This function updates the data structure " +"representing the desired state of the window, but does not force an update " +"of the physical screen. To accomplish that, call :func:`doupdate`." +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*." +msgstr "" + +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 " +"coordinates of the source window, and the other variables mark a rectangle " +"in the destination window." +msgstr "" + +msgid "" +"Overwrite the window on top of *destwin*. The windows need not be the same " +"size, in which case only the overlapping region is copied. This copy is " +"destructive, which means that the current background character overwrites " +"the old contents of *destwin*." +msgstr "" + +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 " +"coordinates of the source window, the other variables mark a rectangle in " +"the destination window." +msgstr "" + +msgid "" +"Write all data associated with the window into the provided file object. " +"This information can be later retrieved using the :func:`getwin` function." +msgstr "" + +msgid "" +"Indicate that the *num* screen lines, starting at line *beg*, are corrupted " +"and should be completely redrawn on the next :meth:`refresh` call." +msgstr "" + +msgid "" +"Touch the entire window, causing it to be completely redrawn on the " +"next :meth:`refresh` call." +msgstr "" + +msgid "" +"Update the display immediately (sync actual screen with previous drawing/" +"deleting methods)." +msgstr "" + +msgid "" +"The 6 optional arguments can only be specified when the window is a pad " +"created with :func:`newpad`. The additional parameters are needed to " +"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. " +"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." +msgstr "" + +msgid "" +"Reallocate storage for a curses window to adjust its dimensions to the " +"specified values. If either dimension is larger than the current values, " +"the window's data is filled with blanks that have the current background " +"rendition (as set by :meth:`bkgdset`) merged into them." +msgstr "" + +msgid "Scroll the screen or scrolling region upward by *lines* lines." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Set the scrolling region from line *top* to line *bottom*. All scrolling " +"actions will take place in this region." +msgstr "" + +msgid "" +"Turn off the standout attribute. On some terminals this has the side effect " +"of turning off all attributes." +msgstr "" + +msgid "Turn on attribute *A_STANDOUT*." +msgstr "" + +msgid "" +"Return a sub-window, whose upper-left corner is at ``(begin_y, begin_x)``, " +"and whose width/height is *ncols*/*nlines*." +msgstr "" + +msgid "" +"By default, the sub-window will extend from the specified position to the " +"lower right corner of the window." +msgstr "" + +msgid "" +"Touch each location in the window that has been touched in any of its " +"ancestor windows. This routine is called by :meth:`refresh`, so it should " +"almost never be necessary to call it manually." +msgstr "" + +msgid "" +"If *flag* is ``True``, then :meth:`syncup` is called automatically whenever " +"there is a change in the window." +msgstr "" + +msgid "" +"Touch all locations in ancestors of the window that have been changed in " +"the window." +msgstr "" + +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." +msgstr "" + +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*\\ " +"``=False``)." +msgstr "" + +msgid "" +"Pretend the whole window has been changed, for purposes of drawing " +"optimizations." +msgstr "" + +msgid "" +"Mark all lines in the window as unchanged since the last call " +"to :meth:`refresh`." +msgstr "" + +msgid "" +"Display a vertical line starting at ``(y, x)`` with length *n* consisting of " +"the character *ch* with attributes *attr*." +msgstr "" + +msgid "Constants" +msgstr "Stały" + +msgid "The :mod:`curses` module defines the following data members:" +msgstr "" + +msgid "" +"Some curses routines that return an integer, such " +"as :meth:`~window.getch`, return :const:`ERR` upon failure." +msgstr "" + +msgid "" +"Some curses routines that return an integer, such as :func:`napms`, " +"return :const:`OK` upon success." +msgstr "" + +msgid "" +"A bytes object representing the current version of the module. Also " +"available as :const:`__version__`." +msgstr "" + +msgid "" +"A named tuple containing the three components of the ncurses library " +"version: *major*, *minor*, and *patch*. All values are integers. The " +"components can also be accessed by name, so ``curses.ncurses_version[0]`` " +"is equivalent to ``curses.ncurses_version.major`` and so on." +msgstr "" + +msgid "Availability: if the ncurses library is used." +msgstr "" + +msgid "" +"Some constants are available to specify character cell attributes. The exact " +"constants available are system dependent." +msgstr "" + +msgid "Attribute" +msgstr "atrybut" + +msgid "Meaning" +msgstr "Znaczenie" + +msgid "``A_ALTCHARSET``" +msgstr "" + +msgid "Alternate character set mode" +msgstr "" + +msgid "``A_BLINK``" +msgstr "" + +msgid "Blink mode" +msgstr "" + +msgid "``A_BOLD``" +msgstr "" + +msgid "Bold mode" +msgstr "" + +msgid "``A_DIM``" +msgstr "" + +msgid "Dim mode" +msgstr "" + +msgid "``A_INVIS``" +msgstr "" + +msgid "Invisible or blank mode" +msgstr "" + +msgid "``A_ITALIC``" +msgstr "" + +msgid "Italic mode" +msgstr "" + +msgid "``A_NORMAL``" +msgstr "" + +msgid "Normal attribute" +msgstr "" + +msgid "``A_PROTECT``" +msgstr "" + +msgid "Protected mode" +msgstr "" + +msgid "``A_REVERSE``" +msgstr "" + +msgid "Reverse background and foreground colors" +msgstr "" + +msgid "``A_STANDOUT``" +msgstr "" + +msgid "Standout mode" +msgstr "" + +msgid "``A_UNDERLINE``" +msgstr "" + +msgid "Underline mode" +msgstr "" + +msgid "``A_HORIZONTAL``" +msgstr "" + +msgid "Horizontal highlight" +msgstr "" + +msgid "``A_LEFT``" +msgstr "" + +msgid "Left highlight" +msgstr "" + +msgid "``A_LOW``" +msgstr "" + +msgid "Low highlight" +msgstr "" + +msgid "``A_RIGHT``" +msgstr "" + +msgid "Right highlight" +msgstr "" + +msgid "``A_TOP``" +msgstr "" + +msgid "Top highlight" +msgstr "" + +msgid "``A_VERTICAL``" +msgstr "" + +msgid "Vertical highlight" +msgstr "" + +msgid "``A_CHARTEXT``" +msgstr "" + +msgid "Bit-mask to extract a character" +msgstr "" + +msgid "``A_ITALIC`` was added." +msgstr "" + +msgid "" +"Several constants are available to extract corresponding attributes returned " +"by some methods." +msgstr "" + +msgid "Bit-mask" +msgstr "" + +msgid "``A_ATTRIBUTES``" +msgstr "" + +msgid "Bit-mask to extract attributes" +msgstr "" + +msgid "``A_COLOR``" +msgstr "" + +msgid "Bit-mask to extract color-pair field information" +msgstr "" + +msgid "" +"Keys are referred to by integer constants with names starting with " +"``KEY_``. The exact keycaps available are system dependent." +msgstr "" + +msgid "Key constant" +msgstr "" + +msgid "Key" +msgstr "" + +msgid "``KEY_MIN``" +msgstr "" + +msgid "Minimum key value" +msgstr "" + +msgid "``KEY_BREAK``" +msgstr "" + +msgid "Break key (unreliable)" +msgstr "" + +msgid "``KEY_DOWN``" +msgstr "" + +msgid "Down-arrow" +msgstr "" + +msgid "``KEY_UP``" +msgstr "" + +msgid "Up-arrow" +msgstr "" + +msgid "``KEY_LEFT``" +msgstr "" + +msgid "Left-arrow" +msgstr "" + +msgid "``KEY_RIGHT``" +msgstr "" + +msgid "Right-arrow" +msgstr "" + +msgid "``KEY_HOME``" +msgstr "" + +msgid "Home key (upward+left arrow)" +msgstr "" + +msgid "``KEY_BACKSPACE``" +msgstr "" + +msgid "Backspace (unreliable)" +msgstr "" + +msgid "``KEY_F0``" +msgstr "" + +msgid "Function keys. Up to 64 function keys are supported." +msgstr "" + +msgid "``KEY_Fn``" +msgstr "" + +msgid "Value of function key *n*" +msgstr "" + +msgid "``KEY_DL``" +msgstr "" + +msgid "Delete line" +msgstr "" + +msgid "``KEY_IL``" +msgstr "" + +msgid "Insert line" +msgstr "" + +msgid "``KEY_DC``" +msgstr "" + +msgid "Delete character" +msgstr "" + +msgid "``KEY_IC``" +msgstr "" + +msgid "Insert char or enter insert mode" +msgstr "" + +msgid "``KEY_EIC``" +msgstr "" + +msgid "Exit insert char mode" +msgstr "" + +msgid "``KEY_CLEAR``" +msgstr "" + +msgid "Clear screen" +msgstr "" + +msgid "``KEY_EOS``" +msgstr "" + +msgid "Clear to end of screen" +msgstr "" + +msgid "``KEY_EOL``" +msgstr "" + +msgid "Clear to end of line" +msgstr "" + +msgid "``KEY_SF``" +msgstr "" + +msgid "Scroll 1 line forward" +msgstr "" + +msgid "``KEY_SR``" +msgstr "" + +msgid "Scroll 1 line backward (reverse)" +msgstr "" + +msgid "``KEY_NPAGE``" +msgstr "" + +msgid "Next page" +msgstr "" + +msgid "``KEY_PPAGE``" +msgstr "" + +msgid "Previous page" +msgstr "" + +msgid "``KEY_STAB``" +msgstr "" + +msgid "Set tab" +msgstr "" + +msgid "``KEY_CTAB``" +msgstr "" + +msgid "Clear tab" +msgstr "" + +msgid "``KEY_CATAB``" +msgstr "" + +msgid "Clear all tabs" +msgstr "" + +msgid "``KEY_ENTER``" +msgstr "" + +msgid "Enter or send (unreliable)" +msgstr "" + +msgid "``KEY_SRESET``" +msgstr "" + +msgid "Soft (partial) reset (unreliable)" +msgstr "" + +msgid "``KEY_RESET``" +msgstr "" + +msgid "Reset or hard reset (unreliable)" +msgstr "" + +msgid "``KEY_PRINT``" +msgstr "" + +msgid "Print" +msgstr "" + +msgid "``KEY_LL``" +msgstr "" + +msgid "Home down or bottom (lower left)" +msgstr "" + +msgid "``KEY_A1``" +msgstr "" + +msgid "Upper left of keypad" +msgstr "" + +msgid "``KEY_A3``" +msgstr "" + +msgid "Upper right of keypad" +msgstr "" + +msgid "``KEY_B2``" +msgstr "" + +msgid "Center of keypad" +msgstr "" + +msgid "``KEY_C1``" +msgstr "" + +msgid "Lower left of keypad" +msgstr "" + +msgid "``KEY_C3``" +msgstr "" + +msgid "Lower right of keypad" +msgstr "" + +msgid "``KEY_BTAB``" +msgstr "" + +msgid "Back tab" +msgstr "" + +msgid "``KEY_BEG``" +msgstr "" + +msgid "Beg (beginning)" +msgstr "" + +msgid "``KEY_CANCEL``" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "``KEY_CLOSE``" +msgstr "" + +msgid "Close" +msgstr "" + +msgid "``KEY_COMMAND``" +msgstr "" + +msgid "Cmd (command)" +msgstr "" + +msgid "``KEY_COPY``" +msgstr "" + +msgid "Copy" +msgstr "Kopiuj" + +msgid "``KEY_CREATE``" +msgstr "" + +msgid "Create" +msgstr "" + +msgid "``KEY_END``" +msgstr "" + +msgid "End" +msgstr "" + +msgid "``KEY_EXIT``" +msgstr "" + +msgid "Exit" +msgstr "" + +msgid "``KEY_FIND``" +msgstr "" + +msgid "Find" +msgstr "" + +msgid "``KEY_HELP``" +msgstr "" + +msgid "Help" +msgstr "" + +msgid "``KEY_MARK``" +msgstr "" + +msgid "Mark" +msgstr "" + +msgid "``KEY_MESSAGE``" +msgstr "" + +msgid "Message" +msgstr "" + +msgid "``KEY_MOVE``" +msgstr "" + +msgid "Move" +msgstr "" + +msgid "``KEY_NEXT``" +msgstr "" + +msgid "Next" +msgstr "" + +msgid "``KEY_OPEN``" +msgstr "" + +msgid "Open" +msgstr "" + +msgid "``KEY_OPTIONS``" +msgstr "" + +msgid "Options" +msgstr "" + +msgid "``KEY_PREVIOUS``" +msgstr "" + +msgid "Prev (previous)" +msgstr "" + +msgid "``KEY_REDO``" +msgstr "" + +msgid "Redo" +msgstr "" + +msgid "``KEY_REFERENCE``" +msgstr "" + +msgid "Ref (reference)" +msgstr "" + +msgid "``KEY_REFRESH``" +msgstr "" + +msgid "Refresh" +msgstr "" + +msgid "``KEY_REPLACE``" +msgstr "" + +msgid "Replace" +msgstr "" + +msgid "``KEY_RESTART``" +msgstr "" + +msgid "Restart" +msgstr "" + +msgid "``KEY_RESUME``" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "``KEY_SAVE``" +msgstr "" + +msgid "Save" +msgstr "" + +msgid "``KEY_SBEG``" +msgstr "" + +msgid "Shifted Beg (beginning)" +msgstr "" + +msgid "``KEY_SCANCEL``" +msgstr "" + +msgid "Shifted Cancel" +msgstr "" + +msgid "``KEY_SCOMMAND``" +msgstr "" + +msgid "Shifted Command" +msgstr "" + +msgid "``KEY_SCOPY``" +msgstr "" + +msgid "Shifted Copy" +msgstr "" + +msgid "``KEY_SCREATE``" +msgstr "" + +msgid "Shifted Create" +msgstr "" + +msgid "``KEY_SDC``" +msgstr "" + +msgid "Shifted Delete char" +msgstr "" + +msgid "``KEY_SDL``" +msgstr "" + +msgid "Shifted Delete line" +msgstr "" + +msgid "``KEY_SELECT``" +msgstr "" + +msgid "Select" +msgstr "" + +msgid "``KEY_SEND``" +msgstr "" + +msgid "Shifted End" +msgstr "" + +msgid "``KEY_SEOL``" +msgstr "" + +msgid "Shifted Clear line" +msgstr "" + +msgid "``KEY_SEXIT``" +msgstr "" + +msgid "Shifted Exit" +msgstr "" + +msgid "``KEY_SFIND``" +msgstr "" + +msgid "Shifted Find" +msgstr "" + +msgid "``KEY_SHELP``" +msgstr "" + +msgid "Shifted Help" +msgstr "" + +msgid "``KEY_SHOME``" +msgstr "" + +msgid "Shifted Home" +msgstr "" + +msgid "``KEY_SIC``" +msgstr "" + +msgid "Shifted Input" +msgstr "" + +msgid "``KEY_SLEFT``" +msgstr "" + +msgid "Shifted Left arrow" +msgstr "" + +msgid "``KEY_SMESSAGE``" +msgstr "" + +msgid "Shifted Message" +msgstr "" + +msgid "``KEY_SMOVE``" +msgstr "" + +msgid "Shifted Move" +msgstr "" + +msgid "``KEY_SNEXT``" +msgstr "" + +msgid "Shifted Next" +msgstr "" + +msgid "``KEY_SOPTIONS``" +msgstr "" + +msgid "Shifted Options" +msgstr "" + +msgid "``KEY_SPREVIOUS``" +msgstr "" + +msgid "Shifted Prev" +msgstr "" + +msgid "``KEY_SPRINT``" +msgstr "" + +msgid "Shifted Print" +msgstr "" + +msgid "``KEY_SREDO``" +msgstr "" + +msgid "Shifted Redo" +msgstr "" + +msgid "``KEY_SREPLACE``" +msgstr "" + +msgid "Shifted Replace" +msgstr "" + +msgid "``KEY_SRIGHT``" +msgstr "" + +msgid "Shifted Right arrow" +msgstr "" + +msgid "``KEY_SRSUME``" +msgstr "" + +msgid "Shifted Resume" +msgstr "" + +msgid "``KEY_SSAVE``" +msgstr "" + +msgid "Shifted Save" +msgstr "" + +msgid "``KEY_SSUSPEND``" +msgstr "" + +msgid "Shifted Suspend" +msgstr "" + +msgid "``KEY_SUNDO``" +msgstr "" + +msgid "Shifted Undo" +msgstr "" + +msgid "``KEY_SUSPEND``" +msgstr "" + +msgid "Suspend" +msgstr "" + +msgid "``KEY_UNDO``" +msgstr "" + +msgid "Undo" +msgstr "" + +msgid "``KEY_MOUSE``" +msgstr "" + +msgid "Mouse event has occurred" +msgstr "" + +msgid "``KEY_RESIZE``" +msgstr "" + +msgid "Terminal resize event" +msgstr "" + +msgid "``KEY_MAX``" +msgstr "" + +msgid "Maximum key value" +msgstr "" + +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:" +msgstr "" + +msgid "Keycap" +msgstr "" + +msgid "Constant" +msgstr "Stała" + +msgid ":kbd:`Insert`" +msgstr ":kbd:`Insert`" + +msgid "KEY_IC" +msgstr "" + +msgid ":kbd:`Delete`" +msgstr ":kbd:`Delete`" + +msgid "KEY_DC" +msgstr "" + +msgid ":kbd:`Home`" +msgstr ":kbd:`Home`" + +msgid "KEY_HOME" +msgstr "" + +msgid ":kbd:`End`" +msgstr ":kbd:`End`" + +msgid "KEY_END" +msgstr "" + +msgid ":kbd:`Page Up`" +msgstr ":kbd:`Page Up`" + +msgid "KEY_PPAGE" +msgstr "" + +msgid ":kbd:`Page Down`" +msgstr ":kbd:`Page Down`" + +msgid "KEY_NPAGE" +msgstr "" + +msgid "" +"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 "" + +msgid "These are available only after :func:`initscr` has been called." +msgstr "" + +msgid "ACS code" +msgstr "" + +msgid "``ACS_BBSS``" +msgstr "" + +msgid "alternate name for upper right corner" +msgstr "" + +msgid "``ACS_BLOCK``" +msgstr "" + +msgid "solid square block" +msgstr "" + +msgid "``ACS_BOARD``" +msgstr "" + +msgid "board of squares" +msgstr "" + +msgid "``ACS_BSBS``" +msgstr "" + +msgid "alternate name for horizontal line" +msgstr "" + +msgid "``ACS_BSSB``" +msgstr "" + +msgid "alternate name for upper left corner" +msgstr "" + +msgid "``ACS_BSSS``" +msgstr "" + +msgid "alternate name for top tee" +msgstr "" + +msgid "``ACS_BTEE``" +msgstr "" + +msgid "bottom tee" +msgstr "" + +msgid "``ACS_BULLET``" +msgstr "" + +msgid "bullet" +msgstr "" + +msgid "``ACS_CKBOARD``" +msgstr "" + +msgid "checker board (stipple)" +msgstr "" + +msgid "``ACS_DARROW``" +msgstr "" + +msgid "arrow pointing down" +msgstr "" + +msgid "``ACS_DEGREE``" +msgstr "" + +msgid "degree symbol" +msgstr "" + +msgid "``ACS_DIAMOND``" +msgstr "" + +msgid "diamond" +msgstr "" + +msgid "``ACS_GEQUAL``" +msgstr "" + +msgid "greater-than-or-equal-to" +msgstr "" + +msgid "``ACS_HLINE``" +msgstr "" + +msgid "horizontal line" +msgstr "" + +msgid "``ACS_LANTERN``" +msgstr "" + +msgid "lantern symbol" +msgstr "" + +msgid "``ACS_LARROW``" +msgstr "" + +msgid "left arrow" +msgstr "" + +msgid "``ACS_LEQUAL``" +msgstr "" + +msgid "less-than-or-equal-to" +msgstr "" + +msgid "``ACS_LLCORNER``" +msgstr "" + +msgid "lower left-hand corner" +msgstr "" + +msgid "``ACS_LRCORNER``" +msgstr "" + +msgid "lower right-hand corner" +msgstr "" + +msgid "``ACS_LTEE``" +msgstr "" + +msgid "left tee" +msgstr "" + +msgid "``ACS_NEQUAL``" +msgstr "" + +msgid "not-equal sign" +msgstr "" + +msgid "``ACS_PI``" +msgstr "" + +msgid "letter pi" +msgstr "" + +msgid "``ACS_PLMINUS``" +msgstr "" + +msgid "plus-or-minus sign" +msgstr "" + +msgid "``ACS_PLUS``" +msgstr "" + +msgid "big plus sign" +msgstr "" + +msgid "``ACS_RARROW``" +msgstr "" + +msgid "right arrow" +msgstr "" + +msgid "``ACS_RTEE``" +msgstr "" + +msgid "right tee" +msgstr "" + +msgid "``ACS_S1``" +msgstr "" + +msgid "scan line 1" +msgstr "" + +msgid "``ACS_S3``" +msgstr "" + +msgid "scan line 3" +msgstr "" + +msgid "``ACS_S7``" +msgstr "" + +msgid "scan line 7" +msgstr "" + +msgid "``ACS_S9``" +msgstr "" + +msgid "scan line 9" +msgstr "" + +msgid "``ACS_SBBS``" +msgstr "" + +msgid "alternate name for lower right corner" +msgstr "" + +msgid "``ACS_SBSB``" +msgstr "" + +msgid "alternate name for vertical line" +msgstr "" + +msgid "``ACS_SBSS``" +msgstr "" + +msgid "alternate name for right tee" +msgstr "" + +msgid "``ACS_SSBB``" +msgstr "" + +msgid "alternate name for lower left corner" +msgstr "" + +msgid "``ACS_SSBS``" +msgstr "" + +msgid "alternate name for bottom tee" +msgstr "" + +msgid "``ACS_SSSB``" +msgstr "" + +msgid "alternate name for left tee" +msgstr "" + +msgid "``ACS_SSSS``" +msgstr "" + +msgid "alternate name for crossover or big plus" +msgstr "" + +msgid "``ACS_STERLING``" +msgstr "" + +msgid "pound sterling" +msgstr "" + +msgid "``ACS_TTEE``" +msgstr "" + +msgid "top tee" +msgstr "" + +msgid "``ACS_UARROW``" +msgstr "" + +msgid "up arrow" +msgstr "" + +msgid "``ACS_ULCORNER``" +msgstr "" + +msgid "upper left corner" +msgstr "" + +msgid "``ACS_URCORNER``" +msgstr "" + +msgid "upper right corner" +msgstr "" + +msgid "``ACS_VLINE``" +msgstr "" + +msgid "vertical line" +msgstr "" + +msgid "The following table lists the predefined colors:" +msgstr "" + +msgid "Color" +msgstr "" + +msgid "``COLOR_BLACK``" +msgstr "" + +msgid "Black" +msgstr "" + +msgid "``COLOR_BLUE``" +msgstr "" + +msgid "Blue" +msgstr "" + +msgid "``COLOR_CYAN``" +msgstr "" + +msgid "Cyan (light greenish blue)" +msgstr "" + +msgid "``COLOR_GREEN``" +msgstr "" + +msgid "Green" +msgstr "" + +msgid "``COLOR_MAGENTA``" +msgstr "" + +msgid "Magenta (purplish red)" +msgstr "" + +msgid "``COLOR_RED``" +msgstr "" + +msgid "Red" +msgstr "" + +msgid "``COLOR_WHITE``" +msgstr "" + +msgid "White" +msgstr "" + +msgid "``COLOR_YELLOW``" +msgstr "" + +msgid "Yellow" +msgstr "" + +msgid ":mod:`curses.textpad` --- Text input widget for curses programs" +msgstr "" + +msgid "" +"The :mod:`curses.textpad` module provides a :class:`Textbox` class that " +"handles elementary text editing in a curses window, supporting a set of " +"keybindings resembling those of Emacs (thus, also of Netscape Navigator, " +"BBedit 6.x, FrameMaker, and many other programs). The module also provides " +"a rectangle-drawing function useful for framing text boxes or for other " +"purposes." +msgstr "" + +msgid "The module :mod:`curses.textpad` defines the following function:" +msgstr "" + +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 " +"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 " +"using VT100/IBM PC forms characters on terminals that make this possible " +"(including xterm and most other software terminal emulators). Otherwise it " +"will be drawn with ASCII dashes, vertical bars, and plus signs." +msgstr "" + +msgid "Textbox objects" +msgstr "" + +msgid "You can instantiate a :class:`Textbox` object as follows:" +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid ":class:`Textbox` objects have the following methods:" +msgstr "" + +msgid "" +"This is the entry point you will normally use. It accepts editing " +"keystrokes until one of the termination keystrokes is entered. If " +"*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." +msgstr "" + +msgid "" +"Process a single command keystroke. Here are the supported special " +"keystrokes:" +msgstr "" + +msgid "Keystroke" +msgstr "" + +msgid "Action" +msgstr "" + +msgid ":kbd:`Control-A`" +msgstr ":kbd:`Control-A`" + +msgid "Go to left edge of window." +msgstr "" + +msgid ":kbd:`Control-B`" +msgstr ":kbd:`Control-B`" + +msgid "Cursor left, wrapping to previous line if appropriate." +msgstr "" + +msgid ":kbd:`Control-D`" +msgstr ":kbd:`Control-D`" + +msgid "Delete character under cursor." +msgstr "" + +msgid ":kbd:`Control-E`" +msgstr ":kbd:`Control-E`" + +msgid "Go to right edge (stripspaces off) or end of line (stripspaces on)." +msgstr "" + +msgid ":kbd:`Control-F`" +msgstr ":kbd:`Control-F`" + +msgid "Cursor right, wrapping to next line when appropriate." +msgstr "" + +msgid ":kbd:`Control-G`" +msgstr ":kbd:`Control-G`" + +msgid "Terminate, returning the window contents." +msgstr "" + +msgid ":kbd:`Control-H`" +msgstr ":kbd:`Control-H`" + +msgid "Delete character backward." +msgstr "" + +msgid ":kbd:`Control-J`" +msgstr ":kbd:`Control-J`" + +msgid "Terminate if the window is 1 line, otherwise insert newline." +msgstr "" + +msgid ":kbd:`Control-K`" +msgstr ":kbd:`Control-K`" + +msgid "If line is blank, delete it, otherwise clear to end of line." +msgstr "" + +msgid ":kbd:`Control-L`" +msgstr ":kbd:`Control-L`" + +msgid "Refresh screen." +msgstr "" + +msgid ":kbd:`Control-N`" +msgstr ":kbd:`Control-N`" + +msgid "Cursor down; move down one line." +msgstr "" + +msgid ":kbd:`Control-O`" +msgstr ":kbd:`Control-O`" + +msgid "Insert a blank line at cursor location." +msgstr "" + +msgid ":kbd:`Control-P`" +msgstr ":kbd:`Control-P`" + +msgid "Cursor up; move up one line." +msgstr "" + +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:" +msgstr "" + +msgid ":const:`KEY_LEFT`" +msgstr "" + +msgid ":const:`KEY_RIGHT`" +msgstr "" + +msgid ":const:`KEY_UP`" +msgstr "" + +msgid ":const:`KEY_DOWN`" +msgstr "" + +msgid ":const:`KEY_BACKSPACE`" +msgstr "" + +msgid ":kbd:`Control-h`" +msgstr ":kbd:`Control-h`" + +msgid "" +"All other keystrokes are treated as a command to insert the given character " +"and move right (with line wrapping)." +msgstr "" + +msgid "" +"Return the window contents as a string; whether blanks in the window are " +"included is affected by the :attr:`stripspaces` member." +msgstr "" + +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." +msgstr "" diff --git a/library/curses_ascii.po b/library/curses_ascii.po index 81ee6d353c..9db32cb509 100644 --- a/library/curses_ascii.po +++ b/library/curses_ascii.po @@ -1,31 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:03+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`curses.ascii` --- Utilities for ASCII characters" msgstr "" +msgid "**Source code:** :source:`Lib/curses/ascii.py`" +msgstr "**Kod źródłowy:** :source:`Lib/curses/ascii.py`" + msgid "" "The :mod:`curses.ascii` module supplies name constants for ASCII characters " "and functions to test membership in various ASCII character classes. The " @@ -310,8 +313,8 @@ msgid "Checks for an ASCII uppercase letter." msgstr "" 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 "" msgid "Checks for an ASCII control character (ordinal values 0 to 31)." @@ -322,8 +325,8 @@ msgstr "" 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`." +"argument is a string, it is first converted using the built-in " +"function :func:`ord`." msgstr "" msgid "" diff --git a/library/curses_panel.po b/library/curses_panel.po index ca8defe142..f980f70a91 100644 --- a/library/curses_panel.po +++ b/library/curses_panel.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:03+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`curses.panel` --- A panel stack extension for curses" msgstr "" diff --git a/library/dataclasses.po b/library/dataclasses.po index 0f00f1adb7..4ad82bad00 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -19,9 +19,9 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`dataclasses` --- Data Classes" msgstr "" @@ -31,14 +31,14 @@ msgstr "" msgid "" "This module provides a decorator and functions for automatically adding " -"generated :term:`special method`\\s such as :meth:`__init__` and :meth:" -"`__repr__` to user-defined classes. It was originally described in :pep:" -"`557`." +"generated :term:`special method`\\s such as :meth:`__init__` " +"and :meth:`__repr__` to user-defined classes. It was originally described " +"in :pep:`557`." msgstr "" msgid "" -"The member variables to use in these generated methods are defined using :" -"pep:`526` type annotations. For example, this code::" +"The member variables to use in these generated methods are defined " +"using :pep:`526` type annotations. For example, this code::" msgstr "" msgid "will add, among other things, a :meth:`__init__` that looks like::" @@ -53,15 +53,15 @@ msgid "Module-level decorators, classes, and functions" msgstr "" msgid "" -"This function is a :term:`decorator` that is used to add generated :term:" -"`special method`\\s to classes, as described below." +"This function is a :term:`decorator` that is used to add " +"generated :term:`special method`\\s to classes, as described below." msgstr "" msgid "" "The :func:`dataclass` decorator examines the class to find ``field``\\s. A " "``field`` is defined as a 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." +"`. With two exceptions described below, nothing " +"in :func:`dataclass` examines the type specified in the variable annotation." msgstr "" msgid "" @@ -117,16 +117,18 @@ msgid "If the class already defines :meth:`__eq__`, this parameter is ignored." msgstr "" msgid "" -"``order``: If true (the default is ``False``), :meth:`__lt__`, :meth:" -"`__le__`, :meth:`__gt__`, and :meth:`__ge__` methods will be generated. " -"These compare the class as if it were a tuple of its fields, in order. Both " -"instances in the comparison must be of the identical type. If ``order`` is " -"true and ``eq`` is false, a :exc:`ValueError` is raised." +"``order``: If true (the default is " +"``False``), :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, " +"and :meth:`__ge__` methods will be generated. These compare the class as if " +"it were a tuple of its fields, in order. Both instances in the comparison " +"must be of the identical type. If ``order`` is true and ``eq`` is false, " +"a :exc:`ValueError` is raised." msgstr "" msgid "" -"If the class already defines any of :meth:`__lt__`, :meth:`__le__`, :meth:" -"`__gt__`, or :meth:`__ge__`, then :exc:`TypeError` is raised." +"If the class already defines any " +"of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, or :meth:`__ge__`, " +"then :exc:`TypeError` is raised." msgstr "" msgid "" @@ -136,11 +138,11 @@ msgstr "" 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:" -"`__hash__` implies that instances of the class are immutable. Mutability is " -"a complicated property that depends on the programmer's intent, the " -"existence and behavior of :meth:`__eq__`, and the values of the ``eq`` and " -"``frozen`` flags in the :func:`dataclass` decorator." +"added to hashed collections such as dictionaries and sets. Having " +"a :meth:`__hash__` implies that instances of the class are immutable. " +"Mutability is a complicated property that depends on the programmer's " +"intent, the existence and behavior of :meth:`__eq__`, and the values of the " +"``eq`` and ``frozen`` flags in the :func:`dataclass` decorator." msgstr "" msgid "" @@ -154,34 +156,34 @@ msgstr "" msgid "" "If :meth:`__hash__` is not explicitly defined, or if it is set to ``None``, " "then :func:`dataclass` *may* add an implicit :meth:`__hash__` method. " -"Although not recommended, you can force :func:`dataclass` to create a :meth:" -"`__hash__` method with ``unsafe_hash=True``. This might be the case if your " -"class is logically immutable but can nonetheless be mutated. This is a " -"specialized use case and should be considered carefully." +"Although not recommended, you can force :func:`dataclass` to create " +"a :meth:`__hash__` method with ``unsafe_hash=True``. This might be the case " +"if your class is logically immutable but can nonetheless be mutated. This is " +"a specialized use case and should be considered carefully." msgstr "" msgid "" "Here are the rules governing implicit creation of a :meth:`__hash__` " "method. Note that you cannot both have an explicit :meth:`__hash__` method " -"in your dataclass and set ``unsafe_hash=True``; this will result in a :exc:" -"`TypeError`." +"in your dataclass and set ``unsafe_hash=True``; this will result in " +"a :exc:`TypeError`." msgstr "" 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 " "``frozen`` is false, :meth:`__hash__` will be set to ``None``, marking it " -"unhashable (which it is, since it is mutable). If ``eq`` is false, :meth:" -"`__hash__` will be left untouched meaning the :meth:`__hash__` method of the " -"superclass will be used (if the superclass is :class:`object`, this means it " -"will fall back to id-based hashing)." +"unhashable (which it is, since it is mutable). If ``eq`` is " +"false, :meth:`__hash__` will be left untouched meaning the :meth:`__hash__` " +"method of the superclass will be used (if the superclass is :class:`object`, " +"this means it will fall back to id-based hashing)." msgstr "" msgid "" "``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." +"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 "" msgid "" @@ -190,8 +192,8 @@ msgid "" msgstr "" msgid "" -"In this example, both ``a`` and ``b`` will be included in the added :meth:" -"`__init__` method, which will be defined as::" +"In this example, both ``a`` and ``b`` will be included in the " +"added :meth:`__init__` method, which will be defined as::" msgstr "" msgid "" @@ -302,8 +304,8 @@ msgstr "" msgid "" "``default``, ``default_factory``, ``init``, ``repr``, ``hash``, ``compare``, " -"and ``metadata`` have the identical meaning and values as they do in the :" -"func:`field` declaration." +"and ``metadata`` have the identical meaning and values as they do in " +"the :func:`field` declaration." msgstr "" msgid "" @@ -344,15 +346,15 @@ msgid "" "elements are each either ``name``, ``(name, type)``, or ``(name, type, " "Field)``. If just ``name`` is supplied, ``typing.Any`` is used for " "``type``. The values of ``init``, ``repr``, ``eq``, ``order``, " -"``unsafe_hash``, and ``frozen`` have the same meaning as they do in :func:" -"`dataclass`." +"``unsafe_hash``, and ``frozen`` have the same meaning as they do " +"in :func:`dataclass`." msgstr "" msgid "" "This function is not strictly required, because any Python mechanism for " -"creating a new class with ``__annotations__`` can then apply the :func:" -"`dataclass` function to convert that class to a dataclass. This function is " -"provided as a convenience. For example::" +"creating a new class with ``__annotations__`` can then apply " +"the :func:`dataclass` function to convert that class to a dataclass. This " +"function is provided as a convenience. For example::" msgstr "" msgid "Is equivalent to::" @@ -360,9 +362,9 @@ msgstr "" msgid "" "Creates a new object of the same type as ``instance``, replacing fields with " -"values from ``changes``. If ``instance`` is not a Data Class, raises :exc:" -"`TypeError`. If values in ``changes`` do not specify fields, raises :exc:" -"`TypeError`." +"values from ``changes``. If ``instance`` is not a Data Class, " +"raises :exc:`TypeError`. If values in ``changes`` do not specify fields, " +"raises :exc:`TypeError`." msgstr "" msgid "" @@ -373,8 +375,8 @@ msgstr "" 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__`." +"on the call to :func:`replace` so that they can be passed " +"to :meth:`__init__` and :meth:`__post_init__`." msgstr "" msgid "" @@ -383,11 +385,11 @@ msgid "" msgstr "" 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 " -"initialized in :meth:`__post_init__`, if they're initialized at all. It is " -"expected that ``init=False`` fields will be rarely and judiciously used. If " -"they are used, it might be wise to have alternate class constructors, or " +"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 initialized in :meth:`__post_init__`, if they're initialized at all. It " +"is expected that ``init=False`` fields will be rarely and judiciously used. " +"If they are used, it might be wise to have alternate class constructors, or " "perhaps a custom ``replace()`` (or similarly named) method which handles " "instance copying." msgstr "" @@ -407,12 +409,13 @@ msgid "Post-init processing" msgstr "" 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 " -"normally be called as ``self.__post_init__()``. However, if any ``InitVar`` " -"fields are defined, they will also be passed to :meth:`__post_init__` in the " -"order they were defined in the class. If no :meth:`__init__` method is " -"generated, then :meth:`__post_init__` will not automatically be called." +"The generated :meth:`__init__` code will call a method " +"named :meth:`__post_init__`, if :meth:`__post_init__` is defined on the " +"class. It will normally be called as ``self.__post_init__()``. However, if " +"any ``InitVar`` fields are defined, they will also be passed " +"to :meth:`__post_init__` in the order they were defined in the class. If " +"no :meth:`__init__` method is generated, then :meth:`__post_init__` will not " +"automatically be called." msgstr "" msgid "" @@ -422,9 +425,9 @@ msgstr "" msgid "" "The :meth:`__init__` method generated by :func:`dataclass` does not call " -"base class :meth:`__init__` methods. If the base class has an :meth:" -"`__init__` method that has to be called, it is common to call this method in " -"a :meth:`__post_init__` method::" +"base class :meth:`__init__` methods. If the base class has " +"an :meth:`__init__` method that has to be called, it is common to call this " +"method in a :meth:`__post_init__` method::" msgstr "" msgid "" @@ -434,8 +437,8 @@ msgid "" msgstr "" 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` " +"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 "" @@ -444,11 +447,12 @@ msgstr "" 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:" -"`526`. It does this by checking if the type of the field is ``typing." -"ClassVar``. If a field is a ``ClassVar``, it is excluded from consideration " -"as a field and is ignored by the dataclass mechanisms. Such ``ClassVar`` " -"pseudo-fields are not returned by the module-level :func:`fields` function." +"field is to determine if a field is a class variable as defined " +"in :pep:`526`. It does this by checking if the type of the field is " +"``typing.ClassVar``. If a field is a ``ClassVar``, it is excluded from " +"consideration as a field and is ignored by the dataclass mechanisms. Such " +"``ClassVar`` pseudo-fields are not returned by the module-" +"level :func:`fields` function." msgstr "" msgid "Init-only variables" @@ -459,10 +463,11 @@ msgid "" "determine if a field is an init-only variable. It does this by seeing if " "the type of a field is of type ``dataclasses.InitVar``. If a field is an " "``InitVar``, it is considered a pseudo-field called an init-only field. As " -"it is not a true field, it is not returned by the module-level :func:" -"`fields` function. Init-only fields are added as parameters to the " -"generated :meth:`__init__` method, and are passed to the optional :meth:" -"`__post_init__` method. They are not otherwise used by dataclasses." +"it is not a true field, it is not returned by the module-" +"level :func:`fields` function. Init-only fields are added as parameters to " +"the generated :meth:`__init__` method, and are passed to the " +"optional :meth:`__post_init__` method. They are not otherwise used by " +"dataclasses." msgstr "" msgid "" @@ -481,15 +486,15 @@ msgstr "" msgid "" "It is not possible to create truly immutable Python objects. However, by " "passing ``frozen=True`` to the :meth:`dataclass` decorator you can emulate " -"immutability. In that case, dataclasses will add :meth:`__setattr__` and :" -"meth:`__delattr__` methods to the class. These methods will raise a :exc:" -"`FrozenInstanceError` when invoked." +"immutability. In that case, dataclasses will add :meth:`__setattr__` " +"and :meth:`__delattr__` methods to the class. These methods will raise " +"a :exc:`FrozenInstanceError` when invoked." msgstr "" 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__`." +"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 "" msgid "Inheritance" diff --git a/library/datatypes.po b/library/datatypes.po index 7e44442caf..107fbfa1c8 100644 --- a/library/datatypes.po +++ b/library/datatypes.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Data Types" msgstr "Typy danych" @@ -37,16 +36,17 @@ msgstr "" "enumeratory." 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 "" -"Python posiada również wbudowane typy danych, w szczególności :class:" -"`dict`, :class:`list`, :class:`set` i :class:`frozenset`, i :class:`tuple`. " -"Klasa :class:`str` jest używana do trzymania ciągu znaków unicode, zaś " -"klasy :class:`bytes` i :class:`bytearray` są używane do trzymania danych w " -"formacie binarnym." +"Python posiada również wbudowane typy danych, w " +"szczególności :class:`dict`, :class:`list`, :class:`set` " +"i :class:`frozenset`, i :class:`tuple`. Klasa :class:`str` jest używana do " +"trzymania ciągu znaków unicode, zaś klasy :class:`bytes` " +"i :class:`bytearray` są używane do trzymania danych w formacie binarnym." msgid "The following modules are documented in this chapter:" msgstr "Poszczególne moduły są opisane w rodziale:" diff --git a/library/datetime.po b/library/datetime.po index 16f8aba26b..19e80e86d5 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -1,35 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Michał Biliński , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Michał Biliński , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`datetime` --- Basic date and time types" msgstr "" msgid "**Source code:** :source:`Lib/datetime.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/datetime.py`" msgid "" "The :mod:`datetime` module supplies classes for manipulating dates and times." @@ -91,12 +89,12 @@ msgid "" msgstr "" 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." +"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." msgstr "" msgid "" @@ -125,34 +123,33 @@ msgid "" "object. :const:`MAXYEAR` is ``9999``." msgstr "" -msgid "Alias for the UTC timezone singleton :attr:`datetime.timezone.utc`." -msgstr "" - msgid "Available Types" msgstr "" 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`." +"and always will be, in effect. Attributes: :attr:`year`, :attr:`month`, " +"and :attr:`day`." msgstr "" 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 "" 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 "" 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 "" msgid "" @@ -182,8 +179,8 @@ msgid "" msgstr "" msgid "" -"Objects of these types are hashable, meaning that they can be used as " -"dictionary keys." +"Objects of these types are :term:`hashable`, meaning that they can be used " +"as dictionary keys." msgstr "" msgid "" @@ -289,8 +286,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -323,7 +320,7 @@ msgid "Instance attributes (read-only):" msgstr "" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Value" msgstr "Wartość" @@ -394,8 +391,8 @@ msgid "``f = t2 / t3``" msgstr "" 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 "" msgid "``t1 = t2 / f or t1 = t2 / i``" @@ -415,7 +412,7 @@ msgid "" msgstr "" msgid "``t1 = t2 % t3``" -msgstr "" +msgstr "``t1 = t2 % t3``" msgid "The remainder is computed as a :class:`timedelta` object. (3)" msgstr "" @@ -429,21 +426,21 @@ msgid "" msgstr "" msgid "``+t1``" -msgstr "" +msgstr "``+t1``" msgid "Returns a :class:`timedelta` object with the same value. (2)" msgstr "" msgid "``-t1``" -msgstr "" +msgstr "``-t1``" 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 "" msgid "``abs(t)``" -msgstr "" +msgstr "``abs(t)``" msgid "" "equivalent to +\\ *t* when ``t.days >= 0``, and to -*t* when ``t.days < 0``. " @@ -451,7 +448,7 @@ msgid "" msgstr "" msgid "``str(t)``" -msgstr "" +msgstr "``str(t)``" msgid "" "Returns a string in the form ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, where D is " @@ -459,7 +456,7 @@ msgid "" msgstr "" msgid "``repr(t)``" -msgstr "" +msgstr "``repr(t)``" msgid "" "Returns a string representation of the :class:`timedelta` object as a " @@ -495,15 +492,15 @@ msgstr "" 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 "" 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 "" msgid "" @@ -516,9 +513,9 @@ msgid "" msgstr "" msgid "" -"For all other comparisons (such as ``<`` and ``>``), when a :class:" -"`timedelta` object is compared to an object of a different type, :exc:" -"`TypeError` is raised::" +"For all other comparisons (such as ``<`` and ``>``), when " +"a :class:`timedelta` object is compared to an object of a different " +"type, :exc:`TypeError` is raised::" msgstr "" msgid "" @@ -597,18 +594,18 @@ msgstr "" msgid "" "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`." +"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 "" 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 "" msgid "" @@ -622,17 +619,19 @@ msgid "" msgstr "" msgid "" -"Return a :class:`date` corresponding to a *date_string* given in any valid " -"ISO 8601 format, except ordinal dates (e.g. ``YYYY-DDD``)::" +"Return a :class:`date` corresponding to a *date_string* given in the format " +"``YYYY-MM-DD``::" msgstr "" -msgid "Previously, this method only supported the format ``YYYY-MM-DD``." +msgid "" +"This is the inverse of :meth:`date.isoformat`. It only supports the format " +"``YYYY-MM-DD``." msgstr "" msgid "" "Return a :class:`date` corresponding to the ISO calendar date specified by " -"year, week and day. This is the inverse of the function :meth:`date." -"isocalendar`." +"year, week and day. This is the inverse of the " +"function :meth:`date.isocalendar`." msgstr "" msgid "The earliest representable date, ``date(MINYEAR, 1, 1)``." @@ -674,7 +673,7 @@ msgid "\\(3)" msgstr "\\(3)" msgid "``date1 < date2``" -msgstr "" +msgstr "``date1 < date2``" msgid "" "*date1* is considered less than *date2* when *date1* precedes *date2* in " @@ -684,29 +683,29 @@ 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 "" msgid "``timedelta.seconds`` and ``timedelta.microseconds`` are ignored." msgstr "" 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 "" 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." +"is ``==`` or ``!=``. The latter cases return :const:`False` " +"or :const:`True`, respectively." msgstr "" msgid "" @@ -719,11 +718,11 @@ msgid "" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "" -"Return a :class:`time.struct_time` such as returned by :func:`time." -"localtime`." +"Return a :class:`time.struct_time` such as returned " +"by :func:`time.localtime`." msgstr "" msgid "The hours, minutes and seconds are 0, and the DST flag is -1." @@ -739,20 +738,20 @@ msgstr "" 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 "" 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`." +"For example, ``date(2002, 12, 4).weekday() == 2``, a Wednesday. See " +"also :meth:`isoweekday`." msgstr "" 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`." +"For example, ``date(2002, 12, 4).isoweekday() == 3``, a Wednesday. See " +"also :meth:`weekday`, :meth:`isocalendar`." msgstr "" msgid "" @@ -784,6 +783,9 @@ msgid "" "Return a string representing the date in ISO 8601 format, ``YYYY-MM-DD``::" msgstr "" +msgid "This is the inverse of :meth:`date.fromisoformat`." +msgstr "" + msgid "For a date *d*, ``str(d)`` is equivalent to ``d.isoformat()``." msgstr "" @@ -794,9 +796,9 @@ msgid "``d.ctime()`` is equivalent to::" msgstr "" msgid "" -"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." +"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 "" msgid "" @@ -877,7 +879,7 @@ msgid "Return the current local datetime, with :attr:`.tzinfo` ``None``." msgstr "" msgid "Equivalent to::" -msgstr "" +msgstr "Odpowiednik::" msgid "See also :meth:`now`, :meth:`fromtimestamp`." msgstr "" @@ -891,10 +893,11 @@ msgid "Return the current local date and time." msgstr "" msgid "" -"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)." +"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)." msgstr "" msgid "" @@ -936,20 +939,20 @@ msgstr "" 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 " -"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. This method is " -"preferred over :meth:`utcfromtimestamp`." +"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. This " +"method is preferred over :meth:`utcfromtimestamp`." msgstr "" 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 "" msgid ":meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1." @@ -962,9 +965,9 @@ msgstr "" msgid "" "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." +"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 "" msgid "To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::" @@ -976,8 +979,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -991,8 +994,8 @@ msgstr "" 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 "" msgid "" @@ -1012,8 +1015,8 @@ msgid "" msgstr "" 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 "" @@ -1021,35 +1024,32 @@ msgid "Added the *tzinfo* argument." msgstr "" msgid "" -"Return a :class:`.datetime` corresponding to a *date_string* in any valid " -"ISO 8601 format, with the following exceptions:" +"Return a :class:`.datetime` corresponding to a *date_string* in one of the " +"formats emitted by :meth:`date.isoformat` and :meth:`datetime.isoformat`." msgstr "" -msgid "Time zone offsets may have fractional seconds." +msgid "Specifically, this function supports strings in the format:" msgstr "" -msgid "The ``T`` separator may be replaced by any single unicode character." +msgid "where ``*`` can match any single character." msgstr "" -msgid "Ordinal dates are not currently supported." -msgstr "" - -msgid "Fractional hours and minutes are not supported." +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 `__." msgstr "" msgid "Examples::" -msgstr "" - -msgid "" -"Previously, this method only supported formats that could be emitted by :" -"meth:`date.isoformat()` or :meth:`datetime.isoformat()`." -msgstr "" +msgstr "Przykłady::" msgid "" "Return a :class:`.datetime` corresponding to the ISO calendar date specified " "by year, week and day. The non-date components of the datetime are populated " -"with their normal default values. This is the inverse of the function :meth:" -"`datetime.isocalendar`." +"with their normal default values. This is the inverse of the " +"function :meth:`datetime.isocalendar`." msgstr "" msgid "" @@ -1083,13 +1083,13 @@ msgid "" msgstr "" msgid "In ``range(24)``." -msgstr "" +msgstr "In ``range(24)``." msgid "In ``range(60)``." -msgstr "" +msgstr "In ``range(60)``." msgid "In ``range(1000000)``." -msgstr "" +msgstr "In ``range(1000000)``." msgid "" "The object passed as the *tzinfo* argument to the :class:`.datetime` " @@ -1120,7 +1120,7 @@ msgid "``timedelta = datetime1 - datetime2``" msgstr "" msgid "``datetime1 < datetime2``" -msgstr "" +msgstr "``datetime1 < datetime2``" msgid "Compares :class:`.datetime` to :class:`.datetime`. (4)" msgstr "" @@ -1149,18 +1149,19 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -1179,8 +1180,8 @@ msgid "" "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 "" msgid "" @@ -1190,14 +1191,15 @@ msgstr "" 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 "" msgid "Return :class:`date` object with same year, month and day." @@ -1258,9 +1260,9 @@ msgid "" msgstr "" 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 "" msgid "*tz* now can be omitted." @@ -1272,78 +1274,81 @@ msgid "" msgstr "" 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 "" msgid "The UTC offset is not restricted to a whole number of minutes." msgstr "" 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 "" msgid "The DST offset is not restricted to a whole number of minutes." msgstr "" 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 "" msgid "" "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``." +"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 "" 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 "" 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 "" msgid "" "Because naive ``datetime`` objects are treated by many ``datetime`` methods " "as local times, it is preferred to use aware datetimes to represent times in " -"UTC; as a result, using ``utcfromtimetuple`` may give misleading results. If " -"you have a naive ``datetime`` representing UTC, use ``datetime." -"replace(tzinfo=timezone.utc)`` to make it aware, at which point you can use :" -"meth:`.datetime.timetuple`." +"UTC; as a result, using :meth:`datetime.utctimetuple` may give misleading " +"results. If you have a naive ``datetime`` representing UTC, use " +"``datetime.replace(tzinfo=timezone.utc)`` to make it aware, at which point " +"you can use :meth:`.datetime.timetuple`." msgstr "" 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 "" 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`." +"return value is a :class:`float` similar to that returned " +"by :func:`time.time`." msgstr "" 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 "" msgid "" @@ -1356,10 +1361,10 @@ msgid "" msgstr "" 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 " -"the POSIX timestamp by supplying ``tzinfo=timezone.utc``::" +"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 "" msgid "or by calculating the timestamp directly::" @@ -1372,8 +1377,8 @@ msgstr "" 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`." +"The same as ``self.date().isoweekday()``. See " +"also :meth:`weekday`, :meth:`isocalendar`." msgstr "" msgid "" @@ -1450,8 +1455,8 @@ msgid "Added the *timespec* argument." msgstr "" 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 "" msgid "Return a string representing the date and time::" @@ -1463,15 +1468,15 @@ msgid "" msgstr "" msgid "" -"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." +"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 "" 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 "" msgid "" @@ -1505,8 +1510,8 @@ msgid "" msgstr "" 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 "" @@ -1523,8 +1528,8 @@ msgstr "" 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 "" msgid "" @@ -1533,24 +1538,24 @@ msgid "" msgstr "" msgid "" -":class:`.time` objects support 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." +":class:`.time` objects support 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." msgstr "" 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`, " -"respectively." +"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 "" msgid "" @@ -1573,23 +1578,14 @@ msgid "Other constructor:" msgstr "" msgid "" -"Return a :class:`.time` corresponding to a *time_string* in any valid ISO " -"8601 format, with the following exceptions:" -msgstr "" - -msgid "" -"The leading ``T``, normally required in cases where there may be ambiguity " -"between a date and a time, is not required." -msgstr "" - -msgid "" -"Fractional seconds may have any number of digits (anything beyond 6 will be " -"truncated)." +"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:" msgstr "" msgid "" -"Previously, this method only supported formats that could be emitted by :" -"meth:`time.isoformat()`." +"This does *not* support parsing arbitrary ISO 8601 strings. It is only " +"intended as the inverse operation of :meth:`time.isoformat`." msgstr "" msgid "" @@ -1614,8 +1610,8 @@ msgid "" msgstr "" msgid "" -"``HH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0 and :meth:" -"`utcoffset` does not return ``None``" +"``HH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0 " +"and :meth:`utcoffset` does not return ``None``" msgstr "" msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument." @@ -1638,21 +1634,23 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" msgid "Examples of Usage: :class:`.time`" @@ -1673,32 +1671,32 @@ msgstr "" 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." +"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 "" msgid "" "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 provides :class:" -"`timezone`, a simple concrete subclass of :class:`tzinfo` which can " -"represent timezones with fixed offset from UTC such as UTC itself or North " -"American EST and EDT." +"implementations of the standard :class:`tzinfo` methods needed by " +"the :class:`.datetime` methods you use. The :mod:`datetime` module " +"provides :class:`timezone`, a simple concrete subclass of :class:`tzinfo` " +"which can represent timezones with fixed offset from UTC such as UTC itself " +"or North American EST and EDT." msgstr "" msgid "" -"Special requirement for pickling: A :class:`tzinfo` subclass must have an :" -"meth:`__init__` method that can be called with no arguments, otherwise it " -"can be pickled but possibly not unpickled again. This is a technical " +"Special requirement for pickling: A :class:`tzinfo` subclass must have " +"an :meth:`__init__` method that can be called with no arguments, otherwise " +"it can be pickled but possibly not unpickled again. This is a technical " "requirement that may be relaxed in the future." msgstr "" 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 "" msgid "" @@ -1707,13 +1705,14 @@ msgid "" msgstr "" msgid "" -"This represents 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 ``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::" +"This represents 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 " +"``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::" msgstr "" msgid "" @@ -1722,8 +1721,8 @@ msgid "" msgstr "" msgid "" -"The default implementation of :meth:`utcoffset` raises :exc:" -"`NotImplementedError`." +"The default implementation of :meth:`utcoffset` " +"raises :exc:`NotImplementedError`." msgstr "" msgid "" @@ -1735,12 +1734,12 @@ msgid "" "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." +"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 "" msgid "" @@ -1749,18 +1748,18 @@ msgid "" msgstr "" msgid "``tz.utcoffset(dt) - tz.dst(dt)``" -msgstr "" +msgstr "``tz.utcoffset(dt) - tz.dst(dt)``" 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 "" msgid "" @@ -1777,9 +1776,9 @@ msgstr "" 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 " -"particular. For example, \"GMT\", \"UTC\", \"-500\", \"-5:00\", \"EDT\", " +"*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 fixed " "string primarily because some :class:`tzinfo` subclasses will wish to return " @@ -1788,8 +1787,8 @@ msgid "" msgstr "" msgid "" -"The default implementation of :meth:`tzname` raises :exc:" -"`NotImplementedError`." +"The default implementation of :meth:`tzname` " +"raises :exc:`NotImplementedError`." msgstr "" msgid "" @@ -1797,8 +1796,8 @@ msgid "" "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 "" msgid "" @@ -1810,12 +1809,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1832,16 +1831,17 @@ msgid "" msgstr "" 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` " -"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." +"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." msgstr "" msgid "" @@ -1850,16 +1850,16 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -1891,15 +1891,15 @@ msgstr "" 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 "" msgid ":mod:`zoneinfo`" -msgstr "" +msgstr ":mod:`zoneinfo`" msgid "" "The :mod:`datetime` module has a basic :class:`timezone` class (for handling " @@ -1976,8 +1976,8 @@ msgid "Always returns ``None``." msgstr "" 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 "" msgid "The UTC timezone, ``timezone(timedelta(0))``." @@ -1993,24 +1993,24 @@ msgid "" msgstr "" 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." msgstr "" msgid "" -"The table below provides a high-level comparison of :meth:`strftime` versus :" -"meth:`strptime`:" +"The table below provides a high-level comparison of :meth:`strftime` " +"versus :meth:`strptime`:" msgstr "" msgid "``strftime``" -msgstr "" +msgstr "``strftime``" msgid "``strptime``" -msgstr "" +msgstr "``strptime``" msgid "Usage" -msgstr "" +msgstr "Użytek" msgid "Convert object to a string according to a given format" msgstr "" @@ -2035,16 +2035,16 @@ msgid ":class:`date`; :class:`.datetime`; :class:`.time`" msgstr "" msgid ":class:`.datetime`" -msgstr "" +msgstr ":class:`.datetime`" msgid "Signature" msgstr "" msgid "``strftime(format)``" -msgstr "" +msgstr "``strftime(format)``" msgid "``strptime(date_string, format)``" -msgstr "" +msgstr "``strptime(date_string, format)``" msgid ":meth:`strftime` and :meth:`strptime` Format Codes" msgstr "" @@ -2061,13 +2061,13 @@ msgid "Meaning" msgstr "Znaczenie" msgid "Example" -msgstr "" +msgstr "Przykład" msgid "Notes" msgstr "Notatki" msgid "``%a``" -msgstr "" +msgstr "``%a``" msgid "Weekday as locale's abbreviated name." msgstr "" @@ -2079,7 +2079,7 @@ msgid "So, Mo, ..., Sa (de_DE)" msgstr "" msgid "``%A``" -msgstr "" +msgstr "``%A``" msgid "Weekday as locale's full name." msgstr "" @@ -2091,7 +2091,7 @@ msgid "Sonntag, Montag, ..., Samstag (de_DE)" msgstr "" msgid "``%w``" -msgstr "" +msgstr "``%w``" msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." msgstr "" @@ -2100,7 +2100,7 @@ msgid "0, 1, ..., 6" msgstr "" msgid "``%d``" -msgstr "" +msgstr "``%d``" msgid "Day of the month as a zero-padded decimal number." msgstr "" @@ -2109,10 +2109,10 @@ msgid "01, 02, ..., 31" msgstr "" msgid "\\(9)" -msgstr "" +msgstr "\\(9)" msgid "``%b``" -msgstr "" +msgstr "``%b``" msgid "Month as locale's abbreviated name." msgstr "" @@ -2124,7 +2124,7 @@ msgid "Jan, Feb, ..., Dez (de_DE)" msgstr "" msgid "``%B``" -msgstr "" +msgstr "``%B``" msgid "Month as locale's full name." msgstr "" @@ -2136,7 +2136,7 @@ msgid "Januar, Februar, ..., Dezember (de_DE)" msgstr "" msgid "``%m``" -msgstr "" +msgstr "``%m``" msgid "Month as a zero-padded decimal number." msgstr "" @@ -2145,7 +2145,7 @@ msgid "01, 02, ..., 12" msgstr "" msgid "``%y``" -msgstr "" +msgstr "``%y``" msgid "Year without century as a zero-padded decimal number." msgstr "" @@ -2154,7 +2154,7 @@ msgid "00, 01, ..., 99" msgstr "" msgid "``%Y``" -msgstr "" +msgstr "``%Y``" msgid "Year with century as a decimal number." msgstr "" @@ -2163,7 +2163,7 @@ msgid "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" msgstr "" msgid "``%H``" -msgstr "" +msgstr "``%H``" msgid "Hour (24-hour clock) as a zero-padded decimal number." msgstr "" @@ -2172,13 +2172,13 @@ msgid "00, 01, ..., 23" msgstr "" msgid "``%I``" -msgstr "" +msgstr "``%I``" msgid "Hour (12-hour clock) as a zero-padded decimal number." msgstr "" msgid "``%p``" -msgstr "" +msgstr "``%p``" msgid "Locale's equivalent of either AM or PM." msgstr "" @@ -2193,7 +2193,7 @@ msgid "\\(1), \\(3)" msgstr "" msgid "``%M``" -msgstr "" +msgstr "``%M``" msgid "Minute as a zero-padded decimal number." msgstr "" @@ -2202,7 +2202,7 @@ msgid "00, 01, ..., 59" msgstr "" msgid "``%S``" -msgstr "" +msgstr "``%S``" msgid "Second as a zero-padded decimal number." msgstr "" @@ -2211,7 +2211,7 @@ msgid "\\(4), \\(9)" msgstr "" msgid "``%f``" -msgstr "" +msgstr "``%f``" msgid "Microsecond as a decimal number, zero-padded to 6 digits." msgstr "" @@ -2223,7 +2223,7 @@ msgid "\\(5)" msgstr "\\(5)" msgid "``%z``" -msgstr "" +msgstr "``%z``" msgid "" "UTC offset in the form ``±HHMM[SS[.ffffff]]`` (empty string if the object is " @@ -2234,10 +2234,10 @@ msgid "(empty), +0000, -0400, +1030, +063415, -030712.345216" msgstr "" msgid "\\(6)" -msgstr "" +msgstr "\\(6)" msgid "``%Z``" -msgstr "" +msgstr "``%Z``" msgid "Time zone name (empty string if the object is naive)." msgstr "" @@ -2246,7 +2246,7 @@ msgid "(empty), UTC, GMT" msgstr "" msgid "``%j``" -msgstr "" +msgstr "``%j``" msgid "Day of the year as a zero-padded decimal number." msgstr "" @@ -2255,7 +2255,7 @@ msgid "001, 002, ..., 366" msgstr "" msgid "``%U``" -msgstr "" +msgstr "``%U``" msgid "" "Week number of the year (Sunday as the first day of the week) as a zero-" @@ -2270,7 +2270,7 @@ msgid "\\(7), \\(9)" msgstr "" msgid "``%W``" -msgstr "" +msgstr "``%W``" msgid "" "Week number of the year (Monday as the first day of the week) as a zero-" @@ -2279,7 +2279,7 @@ msgid "" msgstr "" msgid "``%c``" -msgstr "" +msgstr "``%c``" msgid "Locale's appropriate date and time representation." msgstr "" @@ -2291,7 +2291,7 @@ msgid "Di 16 Aug 21:30:00 1988 (de_DE)" msgstr "" msgid "``%x``" -msgstr "" +msgstr "``%x``" msgid "Locale's appropriate date representation." msgstr "" @@ -2306,25 +2306,25 @@ msgid "16.08.1988 (de_DE)" msgstr "" msgid "``%X``" -msgstr "" +msgstr "``%X``" msgid "Locale's appropriate time representation." msgstr "" msgid "21:30:00 (en_US);" -msgstr "" +msgstr "21:30:00 (en_US);" msgid "21:30:00 (de_DE)" -msgstr "" +msgstr "21:30:00 (de_DE)" msgid "``%%``" -msgstr "" +msgstr "``%%``" msgid "A literal ``'%'`` character." msgstr "" msgid "%" -msgstr "" +msgstr "%" msgid "" "Several additional directives not required by the C89 standard are included " @@ -2332,7 +2332,7 @@ msgid "" msgstr "" msgid "``%G``" -msgstr "" +msgstr "``%G``" msgid "" "ISO 8601 year with century representing the year that contains the greater " @@ -2340,10 +2340,10 @@ msgid "" msgstr "" msgid "\\(8)" -msgstr "" +msgstr "\\(8)" msgid "``%u``" -msgstr "" +msgstr "``%u``" msgid "ISO 8601 weekday as a decimal number where 1 is Monday." msgstr "" @@ -2352,7 +2352,7 @@ msgid "1, 2, ..., 7" msgstr "" msgid "``%V``" -msgstr "" +msgstr "``%V``" msgid "" "ISO 8601 week as a decimal number with Monday as the first day of the week. " @@ -2366,11 +2366,11 @@ msgid "\\(8), \\(9)" msgstr "" msgid "" -"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 "" msgid "" @@ -2390,8 +2390,8 @@ msgstr "" msgid "" "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." +"``time.strftime(fmt, d.timetuple())`` although not all objects support " +"a :meth:`timetuple` method." msgstr "" msgid "" @@ -2426,8 +2426,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 "" msgid "" @@ -2481,16 +2481,16 @@ msgid "For an aware object:" msgstr "" 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 "" msgid "" @@ -2535,14 +2535,14 @@ msgstr "" 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 "" msgid "" "When used with the :meth:`strptime` method, the leading zero is optional " -"for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``, " +"for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%j``, ``%U``, " "``%W``, and ``%V``. Format ``%y`` does require a leading zero." msgstr "" diff --git a/library/dbm.po b/library/dbm.po index 27c449ad54..67d99b2283 100644 --- a/library/dbm.po +++ b/library/dbm.po @@ -1,40 +1,40 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`dbm` --- Interfaces to Unix \"databases\"" msgstr "" msgid "**Source code:** :source:`Lib/dbm/__init__.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/dbm/__init__.py`" 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 "" msgid "" @@ -56,9 +56,6 @@ msgid "" "name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'``." msgstr "" -msgid "Accepts :term:`path-like object` for filename." -msgstr "" - msgid "Open the database file *file* and return a corresponding object." msgstr "" @@ -78,25 +75,25 @@ msgid "Meaning" msgstr "Znaczenie" msgid "``'r'``" -msgstr "" +msgstr "``'r'``" msgid "Open existing database for reading only (default)" msgstr "" msgid "``'w'``" -msgstr "" +msgstr "``'w'``" msgid "Open existing database for reading and writing" msgstr "" msgid "``'c'``" -msgstr "" +msgstr "``'c'``" msgid "Open database for reading and writing, creating it if it doesn't exist" msgstr "" msgid "``'n'``" -msgstr "" +msgstr "``'n'``" msgid "Always create a new, empty database, open for reading and writing" msgstr "" @@ -123,9 +120,6 @@ msgid "" "error instead of :exc:`KeyError`." msgstr "" -msgid "Accepts :term:`path-like object` for file." -msgstr "" - msgid "" "Key and values are always stored as bytes. This means that when strings are " "used they are implicitly converted to the default encoding before being " @@ -160,7 +154,7 @@ msgid ":mod:`dbm.gnu` --- GNU's reinterpretation of dbm" msgstr "" msgid "**Source code:** :source:`Lib/dbm/gnu.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/dbm/gnu.py`" msgid "" "This module is quite similar to the :mod:`dbm` module, but uses the GNU " @@ -178,9 +172,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -202,7 +196,7 @@ msgid "" msgstr "" msgid "``'s'``" -msgstr "" +msgstr "``'s'``" msgid "" "Synchronized mode. This will cause changes to the database to be immediately " @@ -216,9 +210,9 @@ msgid "Do not lock database." msgstr "" 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 "" msgid "" @@ -264,7 +258,7 @@ msgid ":mod:`dbm.ndbm` --- Interface based on ndbm" msgstr "" msgid "**Source code:** :source:`Lib/dbm/ndbm.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/dbm/ndbm.py`" msgid "" "The :mod:`dbm.ndbm` module provides an interface to the Unix \"(n)dbm\" " @@ -282,9 +276,9 @@ msgid "" msgstr "" 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 "" msgid "Name of the ``ndbm`` implementation library used." @@ -311,29 +305,29 @@ msgid ":mod:`dbm.dumb` --- Portable DBM implementation" msgstr "" msgid "**Source code:** :source:`Lib/dbm/dumb.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/dbm/dumb.py`" 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 "" 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 "" msgid "The module defines the following:" msgstr "" 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 "" msgid "" @@ -360,9 +354,9 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/debug.po b/library/debug.po index 2505cff281..f849a91548 100644 --- a/library/debug.po +++ b/library/debug.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Stefan Ocetkiewicz , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Debugging and Profiling" msgstr "Debugowanie i profilowanie" diff --git a/library/decimal.po b/library/decimal.po new file mode 100644 index 0000000000..c4f760410f --- /dev/null +++ b/library/decimal.po @@ -0,0 +1,1701 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`decimal` --- Decimal fixed point and floating point arithmetic" +msgstr "" + +msgid "**Source code:** :source:`Lib/decimal.py`" +msgstr "**Kod źródłowy:** :source:`Lib/decimal.py`" + +msgid "" +"The :mod:`decimal` module provides support for fast correctly rounded " +"decimal floating point arithmetic. It offers several advantages over " +"the :class:`float` datatype:" +msgstr "" + +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 " +"people learn at school.\" -- excerpt from the decimal arithmetic " +"specification." +msgstr "" + +msgid "" +"Decimal numbers can be represented exactly. In contrast, numbers like " +"``1.1`` and ``2.2`` do not have exact representations in binary floating " +"point. End users typically would not expect ``1.1 + 2.2`` to display as " +"``3.3000000000000003`` as it does with binary floating point." +msgstr "" + +msgid "" +"The exactness carries over into arithmetic. In decimal floating point, " +"``0.1 + 0.1 + 0.1 - 0.3`` is exactly equal to zero. In binary floating " +"point, the result is ``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." +msgstr "" + +msgid "" +"The decimal module incorporates a notion of significant places so that " +"``1.30 + 1.20`` is ``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 ``1.56`` while ``1.30 * " +"1.20`` gives ``1.5600``." +msgstr "" + +msgid "" +"Unlike hardware based binary floating point, the decimal module has a user " +"alterable precision (defaulting to 28 places) which can be as large as " +"needed for a given problem:" +msgstr "" + +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 " +"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 "" + +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." +msgstr "" + +msgid "" +"The module design is centered around three concepts: the decimal number, " +"the context for arithmetic, and signals." +msgstr "" + +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 ``Infinity``, " +"``-Infinity``, and ``NaN``. The standard also differentiates ``-0`` from " +"``+0``." +msgstr "" + +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 "" + +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 "" + +msgid "" +"For each signal there is a flag and a trap enabler. When a signal is " +"encountered, its flag is set to one, then, if the trap enabler is set to " +"one, an exception is raised. Flags are sticky, so the user needs to reset " +"them before monitoring a calculation." +msgstr "" + +msgid "" +"IBM's General Decimal Arithmetic Specification, `The General Decimal " +"Arithmetic Specification `_." +msgstr "" + +msgid "Quick-start Tutorial" +msgstr "" + +msgid "" +"The usual start to using decimals is importing the module, viewing the " +"current context with :func:`getcontext` and, if necessary, setting new " +"values for precision, rounding, or enabled traps::" +msgstr "" + +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 " +"values such as ``NaN`` which stands for \"Not a number\", positive and " +"negative ``Infinity``, and ``-0``::" +msgstr "" + +msgid "" +"If the :exc:`FloatOperation` signal is trapped, accidental mixing of " +"decimals and floats in constructors or ordering comparisons raises an " +"exception::" +msgstr "" + +msgid "" +"The significance of a new Decimal is determined solely by the number of " +"digits input. Context precision and rounding only come into play during " +"arithmetic operations." +msgstr "" + +msgid "" +"If the internal limits of the C version are exceeded, constructing a decimal " +"raises :class:`InvalidOperation`::" +msgstr "" + +msgid "" +"Decimals interact well with much of the rest of Python. Here is a small " +"decimal floating point flying circus:" +msgstr "" + +msgid "And some mathematical functions are also available to Decimal:" +msgstr "" + +msgid "" +"The :meth:`~Decimal.quantize` method rounds a number to a fixed exponent. " +"This method is useful for monetary applications that often round results to " +"a fixed number of places:" +msgstr "" + +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 " +"most applications." +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid "" +"Contexts also have signal flags for monitoring exceptional conditions " +"encountered during computations. The flags remain set until explicitly " +"cleared, so it is best to clear the flags before each set of monitored " +"computations by using the :meth:`~Context.clear_flags` method. ::" +msgstr "" + +msgid "" +"The *flags* entry shows that the rational approximation to pi was rounded " +"(digits beyond the context precision were thrown away) and that the result " +"is inexact (some of the discarded digits were non-zero)." +msgstr "" + +msgid "" +"Individual traps are set using the dictionary in the :attr:`~Context.traps` " +"attribute of a context:" +msgstr "" + +msgid "" +"Most programs adjust the current context only once, at the beginning of the " +"program. And, in many applications, data is converted to :class:`Decimal` " +"with a single cast inside a loop. With context set and decimals created, " +"the bulk of the program manipulates the data no differently than with other " +"Python numeric types." +msgstr "" + +msgid "Decimal objects" +msgstr "" + +msgid "Construct a new :class:`Decimal` object based from *value*." +msgstr "" + +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::" +msgstr "" + +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'``." +msgstr "" + +msgid "" +"If *value* is a :class:`tuple`, it should have three components, a sign " +"(``0`` for positive or ``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 "" + +msgid "" +"If *value* is a :class:`float`, the binary floating point value is " +"losslessly converted to its exact decimal equivalent. This conversion can " +"often require 53 or more digits of precision. For example, " +"``Decimal(float('1.1'))`` converts to " +"``Decimal('1.100000000000000088817841970012523233890533447265625')``." +msgstr "" + +msgid "" +"The *context* precision does not affect how many digits are stored. That is " +"determined exclusively by the number of digits in *value*. For example, " +"``Decimal('3.00000')`` records all five zeros even if the context precision " +"is only three." +msgstr "" + +msgid "" +"The purpose of the *context* argument is determining what to do if *value* " +"is a malformed string. If the context traps :const:`InvalidOperation`, an " +"exception is raised; otherwise, the constructor returns a new Decimal with " +"the value of ``NaN``." +msgstr "" + +msgid "Once constructed, :class:`Decimal` objects are immutable." +msgstr "" + +msgid "" +"The argument to the constructor is now permitted to be a :class:`float` " +"instance." +msgstr "" + +msgid "" +":class:`float` arguments raise an exception if the :exc:`FloatOperation` " +"trap is set. By default the trap is off." +msgstr "" + +msgid "" +"Underscores are allowed for grouping, as with integral and floating-point " +"literals in code." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"There are some small differences between arithmetic on Decimal objects and " +"arithmetic on integers and floats. When the remainder operator ``%`` is " +"applied to Decimal objects, the sign of the result is the sign of the " +"*dividend* rather than the sign of the divisor::" +msgstr "" + +msgid "" +"The integer division operator ``//`` behaves analogously, returning the " +"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 "" + +msgid "" +"The ``%`` and ``//`` operators implement the ``remainder`` and ``divide-" +"integer`` operations (respectively) as described in the specification." +msgstr "" + +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 "" + +msgid "" +"Mixed-type comparisons between :class:`Decimal` instances and other numeric " +"types are now fully supported." +msgstr "" + +msgid "" +"In addition to the standard numeric properties, decimal floating point " +"objects also have a number of specialized methods:" +msgstr "" + +msgid "" +"Return the adjusted exponent after shifting out the coefficient's rightmost " +"digits until only the lead digit remains: ``Decimal('321e+5').adjusted()`` " +"returns seven. Used for determining the position of the most significant " +"digit with respect to the decimal point." +msgstr "" + +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::" +msgstr "" + +msgid "" +"The conversion is exact. Raise OverflowError on infinities and ValueError " +"on NaNs." +msgstr "" + +msgid "" +"Return a :term:`named tuple` representation of the number: " +"``DecimalTuple(sign, digits, exponent)``." +msgstr "" + +msgid "" +"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 "" + +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 "" + +msgid "" +"This operation is identical to the :meth:`compare` method, except that all " +"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 "" + +msgid "" +"Compare two operands using their abstract representation rather than their " +"numerical value. Similar to the :meth:`compare` method, but the result " +"gives a total ordering on :class:`Decimal` instances. Two :class:`Decimal` " +"instances with the same numeric value but different representations compare " +"unequal in this ordering:" +msgstr "" + +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 " +"in the total order than the second operand. See the specification for " +"details of the total order." +msgstr "" + +msgid "" +"This operation is unaffected by context and is quiet: no flags are changed " +"and no rounding is performed. As an exception, the C version may raise " +"InvalidOperation if the second operand cannot be converted exactly." +msgstr "" + +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())``." +msgstr "" + +msgid "" +"Just returns self, this method is only to comply with the Decimal " +"Specification." +msgstr "" + +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 "" + +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 "" + +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 "" + +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." +msgstr "" + +msgid "" +"Alternative constructor that only accepts instances of :class:`float` " +"or :class:`int`." +msgstr "" + +msgid "" +"Note ``Decimal.from_float(0.1)`` is not the same as ``Decimal('0.1')``. " +"Since 0.1 is not exactly representable in binary floating point, the value " +"is stored as the nearest representable value which is " +"``0x1.999999999999ap-4``. That equivalent value in decimal is " +"``0.1000000000000000055511151231257827021181583404541015625``." +msgstr "" + +msgid "" +"From Python 3.2 onwards, a :class:`Decimal` instance can also be constructed " +"directly from a :class:`float`." +msgstr "" + +msgid "" +"Fused multiply-add. Return self*other+third with no rounding of the " +"intermediate product self*other." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is canonical and :const:`False` " +"otherwise. Currently, a :class:`Decimal` instance is always canonical, so " +"this operation always returns :const:`True`." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is a finite number, and :const:`False` " +"if the argument is an infinity or a NaN." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is either positive or negative infinity " +"and :const:`False` otherwise." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is a (quiet or signaling) NaN " +"and :const:`False` otherwise." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is a quiet NaN, and :const:`False` " +"otherwise." +msgstr "" + +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 "" + +msgid "" +"Return :const:`True` if the argument is a signaling NaN and :const:`False` " +"otherwise." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is subnormal, and :const:`False` " +"otherwise." +msgstr "" + +msgid "" +"Return :const:`True` if the argument is a (positive or negative) zero " +"and :const:`False` otherwise." +msgstr "" + +msgid "" +"Return the natural (base e) logarithm of the operand. The result is " +"correctly rounded using the :const:`ROUND_HALF_EVEN` rounding mode." +msgstr "" + +msgid "" +"Return the base ten logarithm of the operand. The result is correctly " +"rounded using the :const:`ROUND_HALF_EVEN` rounding mode." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +":meth:`logical_invert` is a logical operation. The result is the digit-wise " +"inversion of the operand." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Like ``max(self, other)`` except that the context rounding rule is applied " +"before returning and that ``NaN`` values are either signaled or ignored " +"(depending on the context and whether they are signaling or quiet)." +msgstr "" + +msgid "" +"Similar to the :meth:`.max` method, but the comparison is done using the " +"absolute values of the operands." +msgstr "" + +msgid "" +"Like ``min(self, other)`` except that the context rounding rule is applied " +"before returning and that ``NaN`` values are either signaled or ignored " +"(depending on the context and whether they are signaling or quiet)." +msgstr "" + +msgid "" +"Similar to the :meth:`.min` method, but the comparison is done using the " +"absolute values of the operands." +msgstr "" + +msgid "" +"Return the largest number representable in the given context (or in the " +"current thread's context if no context is given) that is smaller than the " +"given operand." +msgstr "" + +msgid "" +"Return the smallest number representable in the given context (or in the " +"current thread's context if no context is given) that is larger than the " +"given operand." +msgstr "" + +msgid "" +"If the two operands are unequal, return the number closest to the first " +"operand in the direction of the second operand. If both operands are " +"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 "" + +msgid "" +"Normalize the number by stripping the rightmost trailing zeros and " +"converting any result equal to ``Decimal('0')`` to ``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 "" + +msgid "" +"Return a string describing the *class* of the operand. The returned value " +"is one of the following ten strings." +msgstr "" + +msgid "``\"-Infinity\"``, indicating that the operand is negative infinity." +msgstr "" + +msgid "" +"``\"-Normal\"``, indicating that the operand is a negative normal number." +msgstr "" + +msgid "" +"``\"-Subnormal\"``, indicating that the operand is negative and subnormal." +msgstr "" + +msgid "``\"-Zero\"``, indicating that the operand is a negative zero." +msgstr "" + +msgid "``\"+Zero\"``, indicating that the operand is a positive zero." +msgstr "" + +msgid "" +"``\"+Subnormal\"``, indicating that the operand is positive and subnormal." +msgstr "" + +msgid "" +"``\"+Normal\"``, indicating that the operand is a positive normal number." +msgstr "" + +msgid "``\"+Infinity\"``, indicating that the operand is positive infinity." +msgstr "" + +msgid "``\"NaN\"``, indicating that the operand is a quiet NaN (Not a Number)." +msgstr "" + +msgid "``\"sNaN\"``, indicating that the operand is a signaling NaN." +msgstr "" + +msgid "" +"Return a value equal to the first operand after rounding and having the " +"exponent of the second operand." +msgstr "" + +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." +msgstr "" + +msgid "" +"Also unlike other operations, quantize never signals Underflow, even if the " +"result is subnormal and inexact." +msgstr "" + +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 " +"context is used." +msgstr "" + +msgid "" +"An error is returned whenever the resulting exponent is greater " +"than :attr:`~Context.Emax` or less than :meth:`~Context.Etiny`." +msgstr "" + +msgid "" +"Return ``Decimal(10)``, the radix (base) in which the :class:`Decimal` class " +"does all its arithmetic. Included for compatibility with the specification." +msgstr "" + +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." +msgstr "" + +msgid "If the result is zero then its sign will be the sign of *self*." +msgstr "" + +msgid "" +"Return the result of rotating the digits of the first operand by an amount " +"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 rotate. If the second operand is " +"positive then rotation is to the left; otherwise rotation is to the right. " +"The coefficient of the first operand is padded on the left with zeros to " +"length precision if necessary. The sign and exponent of the first operand " +"are unchanged." +msgstr "" + +msgid "" +"Test whether self and other have the same exponent or whether both are " +"``NaN``." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Return the result of shifting the digits of the first operand by an amount " +"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 "" + +msgid "Return the square root of the argument to full precision." +msgstr "" + +msgid "" +"Convert to a string, using engineering notation if an exponent is needed." +msgstr "" + +msgid "" +"Engineering notation has an exponent which is a multiple of 3. This can " +"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 "" + +msgid "" +"For example, this converts ``Decimal('123E+1')`` to ``Decimal('1.23E+3')``." +msgstr "" + +msgid "" +"Identical to the :meth:`to_integral_value` method. The ``to_integral`` name " +"has been kept for compatibility with older versions." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "Logical operands" +msgstr "" + +msgid "" +"The :meth:`~Decimal.logical_and`, :meth:`~Decimal.logical_invert`, :meth:`~Decimal.logical_or`, " +"and :meth:`~Decimal.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 ``0`` " +"or ``1``." +msgstr "" + +msgid "Context objects" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Each thread has its own current context which is accessed or changed using " +"the :func:`getcontext` and :func:`setcontext` functions:" +msgstr "" + +msgid "Return the current context for the active thread." +msgstr "" + +msgid "Set the current context for the active thread to *c*." +msgstr "" + +msgid "" +"You can also use the :keyword:`with` statement and the :func:`localcontext` " +"function to temporarily change the active context." +msgstr "" + +msgid "" +"Return a context manager that will set the current context for the active " +"thread to a copy of *ctx* on entry to the with-statement and restore the " +"previous context when exiting the with-statement. If no context is " +"specified, a copy of the current context is used." +msgstr "" + +msgid "" +"For example, the following code sets the current decimal precision to 42 " +"places, performs a calculation, and then automatically restores the previous " +"context::" +msgstr "" + +msgid "" +"New contexts can also be created using the :class:`Context` constructor " +"described below. In addition, the module provides three pre-made contexts:" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Because many of the traps are enabled, this context is useful for debugging." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Because the traps are disabled, this context is useful for applications that " +"prefer to have result value of ``NaN`` or ``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 "" + +msgid "" +"This context is used by the :class:`Context` constructor as a prototype for " +"new contexts. Changing a field (such a precision) has the effect of " +"changing the default for new contexts created by the :class:`Context` " +"constructor." +msgstr "" + +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." +msgstr "" + +msgid "" +"In single threaded environments, it is preferable to not use this context at " +"all. Instead, simply create contexts explicitly as described below." +msgstr "" + +msgid "" +"The default values are :attr:`Context.prec`\\ =\\ " +"``28``, :attr:`Context.rounding`\\ =\\ :const:`ROUND_HALF_EVEN`, and enabled " +"traps for :class:`Overflow`, :class:`InvalidOperation`, " +"and :class:`DivisionByZero`." +msgstr "" + +msgid "" +"In addition to the three supplied contexts, new contexts can be created with " +"the :class:`Context` constructor." +msgstr "" + +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." +msgstr "" + +msgid "" +"*prec* is an integer in the range [``1``, :const:`MAX_PREC`] that sets the " +"precision for arithmetic operations in the context." +msgstr "" + +msgid "" +"The *rounding* option is one of the constants listed in the section " +"`Rounding Modes`_." +msgstr "" + +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 "" + +msgid "" +"The *Emin* and *Emax* fields are integers specifying the outer limits " +"allowable for exponents. *Emin* must be in the range [:const:`MIN_EMIN`, " +"``0``], *Emax* in the range [``0``, :const:`MAX_EMAX`]." +msgstr "" + +msgid "" +"The *capitals* field is either ``0`` or ``1`` (the default). If set to " +"``1``, exponents are printed with a capital ``E``; otherwise, a lowercase " +"``e`` is used: ``Decimal('6.02e+23')``." +msgstr "" + +msgid "" +"The *clamp* field is either ``0`` (the default) or ``1``. If set to ``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 ``0`` then a weaker condition holds: the adjusted " +"exponent of the :class:`Decimal` instance is at most :attr:`~Context.Emax`. " +"When *clamp* is ``1``, a large normal number will, where possible, have its " +"exponent reduced and a corresponding number of zeros added to its " +"coefficient, in order to fit the exponent constraints; this preserves the " +"value of the number but loses information about significant trailing zeros. " +"For example::" +msgstr "" + +msgid "" +"A *clamp* value of ``1`` allows compatibility with the fixed-width decimal " +"interchange formats specified in IEEE 754." +msgstr "" + +msgid "" +"The :class:`Context` class defines several general purpose methods as well " +"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:`~Decimal.adjusted` " +"and :meth:`~Decimal.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` method accepts a " +"Python integer (an instance of :class:`int`) anywhere that a Decimal " +"instance is accepted." +msgstr "" + +msgid "Resets all of the flags to ``0``." +msgstr "" + +msgid "Resets all of the traps to ``0``." +msgstr "" + +msgid "Return a duplicate of the context." +msgstr "" + +msgid "Return a copy of the Decimal instance num." +msgstr "" + +msgid "" +"Creates a new Decimal instance from *num* but using *self* as context. " +"Unlike the :class:`Decimal` constructor, the context precision, rounding " +"method, flags, and traps are applied to the conversion." +msgstr "" + +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 " +"the following example, using unrounded inputs means that adding zero to a " +"sum can change the result:" +msgstr "" + +msgid "" +"This method implements the to-number operation of the IBM specification. If " +"the argument is a string, no leading or trailing whitespace or underscores " +"are permitted." +msgstr "" + +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 " +"context precision, rounding method, flags, and traps are applied to the " +"conversion." +msgstr "" + +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`." +msgstr "" + +msgid "Returns a value equal to ``Emax - prec + 1``." +msgstr "" + +msgid "" +"The usual approach to working with decimals is to create :class:`Decimal` " +"instances and then apply arithmetic operations which take place within the " +"current context for the active thread. An alternative approach is to use " +"context methods for calculating within a specific context. The methods are " +"similar to those for the :class:`Decimal` class and are only briefly " +"recounted here." +msgstr "" + +msgid "Returns the absolute value of *x*." +msgstr "" + +msgid "Return the sum of *x* and *y*." +msgstr "" + +msgid "Returns the same Decimal object *x*." +msgstr "" + +msgid "Compares *x* and *y* numerically." +msgstr "" + +msgid "Compares the values of the two operands numerically." +msgstr "" + +msgid "Compares two operands using their abstract representation." +msgstr "" + +msgid "" +"Compares two operands using their abstract representation, ignoring sign." +msgstr "" + +msgid "Returns a copy of *x* with the sign set to 0." +msgstr "" + +msgid "Returns a copy of *x* with the sign inverted." +msgstr "" + +msgid "Copies the sign from *y* to *x*." +msgstr "" + +msgid "Return *x* divided by *y*." +msgstr "" + +msgid "Return *x* divided by *y*, truncated to an integer." +msgstr "" + +msgid "Divides two numbers and returns the integer part of the result." +msgstr "" + +msgid "Returns ``e ** x``." +msgstr "" + +msgid "Returns *x* multiplied by *y*, plus *z*." +msgstr "" + +msgid "Returns ``True`` if *x* is canonical; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is finite; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is infinite; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is a qNaN or sNaN; otherwise returns ``False``." +msgstr "" + +msgid "" +"Returns ``True`` if *x* is a normal number; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is a quiet NaN; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is negative; otherwise returns ``False``." +msgstr "" + +msgid "" +"Returns ``True`` if *x* is a signaling NaN; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is subnormal; otherwise returns ``False``." +msgstr "" + +msgid "Returns ``True`` if *x* is a zero; otherwise returns ``False``." +msgstr "" + +msgid "Returns the natural (base e) logarithm of *x*." +msgstr "" + +msgid "Returns the base 10 logarithm of *x*." +msgstr "" + +msgid "Returns the exponent of the magnitude of the operand's MSD." +msgstr "" + +msgid "Applies the logical operation *and* between each operand's digits." +msgstr "" + +msgid "Invert all the digits in *x*." +msgstr "" + +msgid "Applies the logical operation *or* between each operand's digits." +msgstr "" + +msgid "Applies the logical operation *xor* between each operand's digits." +msgstr "" + +msgid "Compares two values numerically and returns the maximum." +msgstr "" + +msgid "Compares the values numerically with their sign ignored." +msgstr "" + +msgid "Compares two values numerically and returns the minimum." +msgstr "" + +msgid "Minus corresponds to the unary prefix minus operator in Python." +msgstr "" + +msgid "Return the product of *x* and *y*." +msgstr "" + +msgid "Returns the largest representable number smaller than *x*." +msgstr "" + +msgid "Returns the smallest representable number larger than *x*." +msgstr "" + +msgid "Returns the number closest to *x*, in direction towards *y*." +msgstr "" + +msgid "Reduces *x* to its simplest form." +msgstr "" + +msgid "Returns an indication of the class of *x*." +msgstr "" + +msgid "" +"Plus corresponds to the unary prefix plus operator in Python. This " +"operation applies the context precision and rounding, so it is *not* an " +"identity operation." +msgstr "" + +msgid "Return ``x`` to the power of ``y``, reduced modulo ``modulo`` if given." +msgstr "" + +msgid "" +"With two arguments, compute ``x**y``. If ``x`` is negative then ``y`` must " +"be integral. The result will be inexact unless ``y`` is integral and the " +"result is finite and can be expressed exactly in 'precision' digits. The " +"rounding mode of the context is used. Results are always correctly rounded " +"in the Python version." +msgstr "" + +msgid "" +"``Decimal(0) ** Decimal(0)`` results in ``InvalidOperation``, and if " +"``InvalidOperation`` is not trapped, then results in ``Decimal('NaN')``." +msgstr "" + +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\"." +msgstr "" + +msgid "" +"With three arguments, compute ``(x**y) % modulo``. For the three argument " +"form, the following restrictions on the arguments hold:" +msgstr "" + +msgid "all three arguments must be integral" +msgstr "" + +msgid "``y`` must be nonnegative" +msgstr "" + +msgid "at least one of ``x`` or ``y`` must be nonzero" +msgstr "" + +msgid "``modulo`` must be nonzero and have at most 'precision' digits" +msgstr "" + +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 " +"result is always exact." +msgstr "" + +msgid "Returns a value equal to *x* (rounded), having the exponent of *y*." +msgstr "" + +msgid "Just returns 10, as this is Decimal, :)" +msgstr "" + +msgid "Returns the remainder from integer division." +msgstr "" + +msgid "" +"The sign of the result, if non-zero, is the same as that of the original " +"dividend." +msgstr "" + +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 "" + +msgid "Returns a rotated copy of *x*, *y* times." +msgstr "" + +msgid "Returns ``True`` if the two operands have the same exponent." +msgstr "" + +msgid "Returns the first operand after adding the second value its exp." +msgstr "" + +msgid "Returns a shifted copy of *x*, *y* times." +msgstr "" + +msgid "Square root of a non-negative number to context precision." +msgstr "" + +msgid "Return the difference between *x* and *y*." +msgstr "" + +msgid "Rounds to an integer." +msgstr "" + +msgid "Converts a number to a string using scientific notation." +msgstr "" + +msgid "Constants" +msgstr "Stały" + +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 "" + +msgid "32-bit" +msgstr "32-bit" + +msgid "64-bit" +msgstr "64-bit" + +msgid "``425000000``" +msgstr "``425000000``" + +msgid "``999999999999999999``" +msgstr "``999999999999999999``" + +msgid "``-425000000``" +msgstr "``-425000000``" + +msgid "``-999999999999999999``" +msgstr "``-999999999999999999``" + +msgid "``-849999999``" +msgstr "``-849999999``" + +msgid "``-1999999999999999997``" +msgstr "``-1999999999999999997``" + +msgid "" +"The value is ``True``. Deprecated, because Python now always has threads." +msgstr "" + +msgid "" +"The default value is ``True``. If Python is :option:`configured using the --" +"without-decimal-contextvar option <--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 "" + +msgid "backported to 3.7 and 3.8." +msgstr "" + +msgid "Rounding modes" +msgstr "" + +msgid "Round towards ``Infinity``." +msgstr "" + +msgid "Round towards zero." +msgstr "" + +msgid "Round towards ``-Infinity``." +msgstr "" + +msgid "Round to nearest with ties going towards zero." +msgstr "" + +msgid "Round to nearest with ties going to nearest even integer." +msgstr "" + +msgid "Round to nearest with ties going away from zero." +msgstr "" + +msgid "Round away from zero." +msgstr "" + +msgid "" +"Round away from zero if last digit after rounding towards zero would have " +"been 0 or 5; otherwise round towards zero." +msgstr "" + +msgid "Signals" +msgstr "" + +msgid "" +"Signals represent conditions that arise during computation. Each corresponds " +"to one context flag and one context trap enabler." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "Altered an exponent to fit representation constraints." +msgstr "" + +msgid "" +"Typically, clamping occurs when an exponent falls outside the " +"context's :attr:`~Context.Emin` and :attr:`~Context.Emax` limits. If " +"possible, the exponent is reduced to fit by adding zeros to the coefficient." +msgstr "" + +msgid "Base class for other signals and a subclass of :exc:`ArithmeticError`." +msgstr "" + +msgid "Signals the division of a non-infinite number by zero." +msgstr "" + +msgid "" +"Can occur with division, modulo division, or when raising a number to a " +"negative power. If this signal is not trapped, returns ``Infinity`` or ``-" +"Infinity`` with the sign determined by the inputs to the calculation." +msgstr "" + +msgid "Indicates that rounding occurred and the result is not exact." +msgstr "" + +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 "" + +msgid "An invalid operation was performed." +msgstr "" + +msgid "" +"Indicates that an operation was requested that does not make sense. If not " +"trapped, returns ``NaN``. Possible causes include::" +msgstr "" + +msgid "Numerical overflow." +msgstr "" + +msgid "" +"Indicates the exponent is larger than :attr:`Context.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 ``Infinity``. In either case, :class:`Inexact` " +"and :class:`Rounded` are also signaled." +msgstr "" + +msgid "Rounding occurred though possibly no information was lost." +msgstr "" + +msgid "" +"Signaled whenever rounding discards digits; even if those digits are zero " +"(such as rounding ``5.00`` to ``5.0``). If not trapped, returns the result " +"unchanged. This signal is used to detect loss of significant digits." +msgstr "" + +msgid "Exponent was lower than :attr:`~Context.Emin` prior to rounding." +msgstr "" + +msgid "" +"Occurs when an operation result is subnormal (the exponent is too small). If " +"not trapped, returns the result unchanged." +msgstr "" + +msgid "Numerical underflow with result rounded to zero." +msgstr "" + +msgid "" +"Occurs when a subnormal result is pushed to zero by " +"rounding. :class:`Inexact` and :class:`Subnormal` are also signaled." +msgstr "" + +msgid "Enable stricter semantics for mixing floats and Decimals." +msgstr "" + +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 "" + +msgid "" +"Otherwise (the signal is trapped), only equality comparisons and explicit " +"conversions are silent. All other mixed operations " +"raise :exc:`FloatOperation`." +msgstr "" + +msgid "The following table summarizes the hierarchy of signals::" +msgstr "" + +msgid "Floating Point Notes" +msgstr "" + +msgid "Mitigating round-off error with increased precision" +msgstr "" + +msgid "" +"The use of decimal floating point eliminates decimal representation error " +"(making it possible to represent ``0.1`` exactly); however, some operations " +"can still incur round-off error when non-zero digits exceed the fixed " +"precision." +msgstr "" + +msgid "" +"The effects of round-off error can be amplified by the addition or " +"subtraction of nearly offsetting quantities resulting in loss of " +"significance. Knuth provides two instructive examples where rounded " +"floating point arithmetic with insufficient precision causes the breakdown " +"of the associative and distributive properties of addition:" +msgstr "" + +msgid "" +"The :mod:`decimal` module makes it possible to restore the identities by " +"expanding the precision sufficiently to avoid loss of significance:" +msgstr "" + +msgid "Special values" +msgstr "" + +msgid "" +"The number system for the :mod:`decimal` module provides special values " +"including ``NaN``, ``sNaN``, ``-Infinity``, ``Infinity``, and two zeros, " +"``+0`` and ``-0``." +msgstr "" + +msgid "" +"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 "" + +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 "" + +msgid "" +"Some operations are indeterminate and return ``NaN``, or if " +"the :exc:`InvalidOperation` signal is trapped, raise an exception. For " +"example, ``0/0`` returns ``NaN`` which means \"not a number\". This variety " +"of ``NaN`` is quiet and, once created, will flow through other computations " +"always resulting in another ``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 "" + +msgid "" +"A variant is ``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." +msgstr "" + +msgid "" +"The behavior of Python's comparison operators can be a little surprising " +"where a ``NaN`` is involved. A test for equality where one of the operands " +"is a quiet or signaling ``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 ``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 ``NaN`` were taken from " +"the IEEE 854 standard (see Table 3 in section 5.7). To ensure strict " +"standards-compliance, use the :meth:`~Decimal.compare` " +"and :meth:`~Decimal.compare_signal` methods instead." +msgstr "" + +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 "" + +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 " +"value. This takes a bit of getting used to. For an eye accustomed to " +"normalized floating point representations, it is not immediately obvious " +"that the following calculation returns a value equal to zero:" +msgstr "" + +msgid "Working with threads" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Likewise, the :func:`setcontext` function automatically assigns its target " +"to the current thread." +msgstr "" + +msgid "" +"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 "" + +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 " +"throughout the application, directly modify the *DefaultContext* object. " +"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 "" + +msgid "Recipes" +msgstr "" + +msgid "" +"Here are a few recipes that serve as utility functions and that demonstrate " +"ways to work with the :class:`Decimal` class::" +msgstr "" + +msgid "Decimal FAQ" +msgstr "" + +msgid "" +"Q. It is cumbersome to type ``decimal.Decimal('1234.5')``. Is there a way " +"to minimize typing when using the interactive interpreter?" +msgstr "" + +msgid "A. Some users abbreviate the constructor to just a single letter:" +msgstr "" + +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 "" + +msgid "" +"A. The :meth:`~Decimal.quantize` method rounds to a fixed number of decimal " +"places. If the :const:`Inexact` trap is set, it is also useful for " +"validation:" +msgstr "" + +msgid "" +"Q. Once I have valid two place inputs, how do I maintain that invariant " +"throughout an application?" +msgstr "" + +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:`~Decimal.quantize` step:" +msgstr "" + +msgid "" +"In developing fixed-point applications, it is convenient to define functions " +"to handle the :meth:`~Decimal.quantize` step:" +msgstr "" + +msgid "" +"Q. There are many ways to express the same value. The numbers ``200``, " +"``200.000``, ``2E2``, and ``.02E+4`` all have the same value at various " +"precisions. Is there a way to transform them to a single recognizable " +"canonical value?" +msgstr "" + +msgid "" +"A. The :meth:`~Decimal.normalize` method maps all equivalent values to a " +"single representative:" +msgstr "" + +msgid "" +"Q. Some decimal values always print with exponential notation. Is there a " +"way to get a non-exponential representation?" +msgstr "" + +msgid "" +"A. For some values, exponential notation is the only way to express the " +"number of significant places in the coefficient. For example, expressing " +"``5.0E+3`` as ``5000`` keeps the value constant but cannot show the " +"original's two-place significance." +msgstr "" + +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 "" + +msgid "Q. Is there a way to convert a regular float to a :class:`Decimal`?" +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"issues, ill-conditioned inputs, or a numerically unstable algorithm." +msgstr "" + +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 "" + +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 " +"advantage for inputs is that \"what you type is what you get\". A " +"disadvantage is that the results can look odd if you forget that the inputs " +"haven't been rounded:" +msgstr "" + +msgid "" +"The solution is either to increase precision or to force rounding of inputs " +"using the unary plus operation:" +msgstr "" + +msgid "" +"Alternatively, inputs can be rounded upon creation using " +"the :meth:`Context.create_decimal` method:" +msgstr "" + +msgid "Q. Is the CPython implementation fast for large numbers?" +msgstr "" + +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." +msgstr "" + +msgid "" +"The context must be adapted for exact arbitrary precision " +"arithmetic. :attr:`~Context.Emin` and :attr:`~Context.Emax` should always be " +"set to the maximum values, :attr:`~Context.clamp` should always be 0 (the " +"default). Setting :attr:`~Context.prec` requires some care." +msgstr "" + +msgid "" +"The easiest approach for trying out bignum arithmetic is to use the maximum " +"value for :attr:`~Context.prec` as well [#]_::" +msgstr "" + +msgid "" +"For inexact results, :attr:`MAX_PREC` is far too large on 64-bit platforms " +"and the available memory will be insufficient::" +msgstr "" + +msgid "" +"On systems with overallocation (e.g. Linux), a more sophisticated approach " +"is to adjust :attr:`~Context.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 "" + +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 "" + +msgid "" +"This approach now works for all exact results except for non-integer powers." +msgstr "" diff --git a/library/devmode.po b/library/devmode.po new file mode 100644 index 0000000000..18c6ac58ad --- /dev/null +++ b/library/devmode.po @@ -0,0 +1,247 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Python Development Mode" +msgstr "" + +msgid "" +"The Python Development Mode introduces additional runtime checks that are " +"too expensive to be enabled by default. It should not be more verbose than " +"the default if the code is correct; new warnings are only emitted when an " +"issue is detected." +msgstr "" + +msgid "" +"It can be enabled using the :option:`-X dev <-X>` command line option or by " +"setting the :envvar:`PYTHONDEVMODE` environment variable to ``1``." +msgstr "" + +msgid "See also :ref:`Python debug build `." +msgstr "" + +msgid "Effects of the Python Development Mode" +msgstr "" + +msgid "" +"Enabling the Python Development Mode is similar to the following command, " +"but with additional effects described below::" +msgstr "" + +msgid "Effects of the Python Development Mode:" +msgstr "" + +msgid "" +"Add ``default`` :ref:`warning filter `. The " +"following warnings are shown:" +msgstr "" + +msgid ":exc:`DeprecationWarning`" +msgstr ":exc:`DeprecationWarning`" + +msgid ":exc:`ImportWarning`" +msgstr ":exc:`ImportWarning`" + +msgid ":exc:`PendingDeprecationWarning`" +msgstr ":exc:`PendingDeprecationWarning`" + +msgid ":exc:`ResourceWarning`" +msgstr ":exc:`ResourceWarning`" + +msgid "" +"Normally, the above warnings are filtered by the default :ref:`warning " +"filters `." +msgstr "" + +msgid "" +"It behaves as if the :option:`-W default <-W>` command line option is used." +msgstr "" + +msgid "" +"Use the :option:`-W error <-W>` command line option or set " +"the :envvar:`PYTHONWARNINGS` environment variable to ``error`` to treat " +"warnings as errors." +msgstr "" + +msgid "Install debug hooks on memory allocators to check for:" +msgstr "" + +msgid "Buffer underflow" +msgstr "" + +msgid "Buffer overflow" +msgstr "" + +msgid "Memory allocator API violation" +msgstr "" + +msgid "Unsafe usage of the GIL" +msgstr "" + +msgid "See the :c:func:`PyMem_SetupDebugHooks` C function." +msgstr "" + +msgid "" +"It behaves as if the :envvar:`PYTHONMALLOC` environment variable is set to " +"``debug``." +msgstr "" + +msgid "" +"To enable the Python Development Mode without installing debug hooks on " +"memory allocators, set the :envvar:`PYTHONMALLOC` environment variable to " +"``default``." +msgstr "" + +msgid "" +"Call :func:`faulthandler.enable` at Python startup to install handlers for " +"the :const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` " +"and :const:`SIGILL` signals to dump the Python traceback on a crash." +msgstr "" + +msgid "" +"It behaves as if the :option:`-X faulthandler <-X>` command line option is " +"used or if the :envvar:`PYTHONFAULTHANDLER` environment variable is set to " +"``1``." +msgstr "" + +msgid "" +"Enable :ref:`asyncio debug mode `. For " +"example, :mod:`asyncio` checks for coroutines that were not awaited and logs " +"them." +msgstr "" + +msgid "" +"It behaves as if the :envvar:`PYTHONASYNCIODEBUG` environment variable is " +"set to ``1``." +msgstr "" + +msgid "" +"Check the *encoding* and *errors* arguments for string encoding and decoding " +"operations. Examples: :func:`open`, :meth:`str.encode` " +"and :meth:`bytes.decode`." +msgstr "" + +msgid "" +"By default, for best performance, the *errors* argument is only checked at " +"the first encoding/decoding error and the *encoding* argument is sometimes " +"ignored for empty strings." +msgstr "" + +msgid "The :class:`io.IOBase` destructor logs ``close()`` exceptions." +msgstr "" + +msgid "" +"Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to " +"``True``." +msgstr "" + +msgid "" +"The Python Development Mode does not enable the :mod:`tracemalloc` module by " +"default, because the overhead cost (to performance and memory) would be too " +"large. Enabling the :mod:`tracemalloc` module provides additional " +"information on the origin of some errors. For " +"example, :exc:`ResourceWarning` logs the traceback where the resource was " +"allocated, and a buffer overflow error logs the traceback where the memory " +"block was allocated." +msgstr "" + +msgid "" +"The Python Development Mode does not prevent the :option:`-O` command line " +"option from removing :keyword:`assert` statements nor from " +"setting :const:`__debug__` to ``False``." +msgstr "" + +msgid "" +"The Python Development Mode can only be enabled at the Python startup. Its " +"value can be read from :data:`sys.flags.dev_mode `." +msgstr "" + +msgid "The :class:`io.IOBase` destructor now logs ``close()`` exceptions." +msgstr "" + +msgid "" +"The *encoding* and *errors* arguments are now checked for string encoding " +"and decoding operations." +msgstr "" + +msgid "ResourceWarning Example" +msgstr "" + +msgid "" +"Example of a script counting the number of lines of the text file specified " +"in the command line::" +msgstr "" + +msgid "" +"The script does not close the file explicitly. By default, Python does not " +"emit any warning. Example using README.txt, which has 269 lines:" +msgstr "" + +msgid "" +"Enabling the Python Development Mode displays a :exc:`ResourceWarning` " +"warning:" +msgstr "" + +msgid "" +"In addition, enabling :mod:`tracemalloc` shows the line where the file was " +"opened:" +msgstr "" + +msgid "" +"The fix is to close explicitly the file. Example using a context manager::" +msgstr "" + +msgid "" +"Not closing a resource explicitly can leave a resource open for way longer " +"than expected; it can cause severe issues upon exiting Python. It is bad in " +"CPython, but it is even worse in PyPy. Closing resources explicitly makes an " +"application more deterministic and more reliable." +msgstr "" + +msgid "Bad file descriptor error example" +msgstr "" + +msgid "Script displaying the first line of itself::" +msgstr "" + +msgid "By default, Python does not emit any warning:" +msgstr "" + +msgid "" +"The Python Development Mode shows a :exc:`ResourceWarning` and logs a \"Bad " +"file descriptor\" error when finalizing the file object:" +msgstr "" + +msgid "" +"``os.close(fp.fileno())`` closes the file descriptor. When the file object " +"finalizer tries to close the file descriptor again, it fails with the ``Bad " +"file descriptor`` error. A file descriptor must be closed only once. In the " +"worst case scenario, closing it twice can lead to a crash " +"(see :issue:`18748` for an example)." +msgstr "" + +msgid "" +"The fix is to remove the ``os.close(fp.fileno())`` line, or open the file " +"with ``closefd=False``." +msgstr "" diff --git a/library/difflib.po b/library/difflib.po index ed2cfe4cf7..d9f1d8fa08 100644 --- a/library/difflib.po +++ b/library/difflib.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`difflib` --- Helpers for computing deltas" msgstr "" msgid "**Source code:** :source:`Lib/difflib.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/difflib.py`" msgid "" "This module provides classes and functions for comparing sequences. It can " @@ -91,25 +91,25 @@ msgid "Meaning" msgstr "Znaczenie" msgid "``'- '``" -msgstr "" +msgstr "``'- '``" msgid "line unique to sequence 1" msgstr "" msgid "``'+ '``" -msgstr "" +msgstr "``'+ '``" msgid "line unique to sequence 2" msgstr "" msgid "``' '``" -msgstr "" +msgstr "``' '``" msgid "line common to both sequences" msgstr "" msgid "``'? '``" -msgstr "" +msgstr "``'? '``" msgid "line not present in either input sequence" msgstr "" @@ -144,10 +144,10 @@ msgid "" msgstr "" msgid "" -"*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." +"*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 "" msgid "The following methods are public:" @@ -193,8 +193,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -300,7 +300,7 @@ msgid "" msgstr "" msgid "Example:" -msgstr "" +msgstr "Przykład:" msgid "" "Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` " @@ -381,8 +381,8 @@ msgstr "" 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 "" msgid "" @@ -395,8 +395,8 @@ msgid "" "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`." +"where they occur. All three are reset whenever *b* is reset " +"with :meth:`set_seqs` or :meth:`set_seq2`." msgstr "" msgid "The *bjunk* and *bpopular* attributes." @@ -465,8 +465,8 @@ msgstr "" 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 "" msgid "" @@ -491,19 +491,19 @@ msgid "Value" msgstr "Wartość" msgid "``'replace'``" -msgstr "" +msgstr "``'replace'``" msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``." msgstr "" msgid "``'delete'``" -msgstr "" +msgstr "``'delete'``" msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case." msgstr "" msgid "``'insert'``" -msgstr "" +msgstr "``'insert'``" msgid "" "``b[j1:j2]`` should be inserted at ``a[i1:i1]``. Note that ``i1 == i2`` in " @@ -511,7 +511,7 @@ msgid "" msgstr "" msgid "``'equal'``" -msgstr "" +msgstr "``'equal'``" msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)." msgstr "" @@ -542,9 +542,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -560,9 +561,9 @@ msgstr "" 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 "" msgid "SequenceMatcher Examples" @@ -578,8 +579,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -589,8 +590,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -652,10 +653,10 @@ msgstr "" 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 "" msgid "Differ Example" diff --git a/library/email.po b/library/email.po new file mode 100644 index 0000000000..9f19fe7e8f --- /dev/null +++ b/library/email.po @@ -0,0 +1,216 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Rafael Fontenelle , 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: Rafael Fontenelle , 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`email` --- An email and MIME handling package" +msgstr "" + +msgid "**Source code:** :source:`Lib/email/__init__.py`" +msgstr "**kod źródłowy:**. :source:`Lib/email/__init__.py`" + +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:`5322` and :rfc:`6532`, as " +"well as such MIME-related RFCs " +"as :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, :rfc:`2183`, and :rfc:`2231`." +msgstr "" +"Pakiet :mod:`email` jest biblioteką do zarządzania wiadomościami e-mail. " +"*Nie* jest on specjalnie zaprojektowany do wysyłania wiadomości e-mail do " +"SMTP (:rfc:`2821`), NNTP lub innych serwerów; służą do tego to funkcje " +"modułów takich jak :mod:`smtplib` i :mod:`nntplib`. Pakiet :mod:`email` " +"stara się być jak najbardziej zgodny z RFC, wspierając :rfc:`5322` " +"i :rfc:`6532`, a także takie RFC związane z MIME, " +"jak :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, :rfc:`2183` i :rfc:`2231`." + +msgid "" +"The overall structure of the email package can be divided into three major " +"components, plus a fourth component that controls the behavior of the other " +"components." +msgstr "" +"Ogólna struktura pakietu email może zostać podzielona na trzy główne " +"komponenty, plus czwarty komponent, który kontroluje zachowanie pozostałych " +"komponentów." + +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 " +"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." +msgstr "" +"Centralnym komponentem pakietu jest \"model obiektowy\", który reprezentuje " +"wiadomości e-mail. Aplikacja wchodzi w interakcję z pakietem głównie " +"poprzez model obiektowy interfejsu zdefiniowanego w pod-" +"module :mod:`~email.message` . Aplikacja może używać tego API do zadawania " +"pytań dotyczących istniejącego e-mail, do konstruowania nowego e-mail lub do " +"dodawania lub usuwania e-mail pod-komponentów, które same używają tego " +"samego interfejsu modelu obiektowego. Oznacza to, że zgodnie z naturą " +"wiadomości e-mail i ich podkomponentów MIME, model obiektowy e-mail jest " +"strukturą drzewiastą obiektów, które wszystkie " +"zapewniają :class:`~email.message.EmailMessage` API ." + +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.)" +msgstr "" +"Pozostałe dwa główne komponenty pakietu to :mod:`~email.parser` " +"i :mod:`~email.generator`. Analizator składni pobiera zserializowaną wersję " +"komunikatu e-mail (strumień bajtów) i przekształca go w drzewo " +"obiektów :class:`~email.message.EmailMessage`. Generator " +"pobiera :class:`~email.message.EmailMessage` i zamienia ją z powrotem w " +"serializowany strumień bajtów. (Analizator składni i generator obsługują " +"również strumienie znaków tekstowych, ale to użycie jest odradzane, ponieważ " +"zbyt łatwo jest skończyć z wiadomościami, które nie są poprawne w jeden ani " +"drugi sposób.)" + +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." +msgstr "" + +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 " +"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 " +"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 " +"to many programmers." +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Following those is a set of examples of using the fundamental parts of the " +"APIs covered in the preceding sections." +msgstr "" + +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." +msgstr "" + +msgid "" +"Docs reorganized and rewritten to promote the " +"new :class:`~email.message.EmailMessage`/:class:`~email.policy.EmailPolicy` " +"API." +msgstr "" + +msgid "Contents of the :mod:`email` package documentation:" +msgstr "" + +msgid "Legacy API:" +msgstr "" + +msgid "Module :mod:`smtplib`" +msgstr "" + +msgid "SMTP (Simple Mail Transport Protocol) client" +msgstr "" + +msgid "Module :mod:`poplib`" +msgstr "" + +msgid "POP (Post Office Protocol) client" +msgstr "" + +msgid "Module :mod:`imaplib`" +msgstr "" + +msgid "IMAP (Internet Message Access Protocol) client" +msgstr "" + +msgid "Module :mod:`nntplib`" +msgstr "" + +msgid "NNTP (Net News Transport Protocol) client" +msgstr "" + +msgid "Module :mod:`mailbox`" +msgstr "" + +msgid "" +"Tools for creating, reading, and managing collections of messages on disk " +"using a variety standard formats." +msgstr "" + +msgid "Module :mod:`smtpd`" +msgstr "" + +msgid "SMTP server framework (primarily useful for testing)" +msgstr "" diff --git a/library/email_contentmanager.po b/library/email_contentmanager.po index 8bddd942bc..8755075d58 100644 --- a/library/email_contentmanager.po +++ b/library/email_contentmanager.po @@ -1,36 +1,36 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.contentmanager`: Managing MIME Content" msgstr "" msgid "**Source code:** :source:`Lib/email/contentmanager.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/contentmanager.py`" msgid "[1]_" -msgstr "" +msgstr "[1]_" msgid "" "Base class for content managers. Provides the standard registry mechanisms " @@ -84,8 +84,8 @@ msgid "the type itself (``typ``)" msgstr "" msgid "" -"the type's fully qualified name (``typ.__module__ + '.' + typ." -"__qualname__``)." +"the type's fully qualified name (``typ.__module__ + '.' + " +"typ.__qualname__``)." msgstr "" msgid "the type's qualname (``typ.__qualname__``)" @@ -122,10 +122,11 @@ msgid "Content Manager Instances" msgstr "" 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 "" msgid "" @@ -141,12 +142,12 @@ msgid "" msgstr "" 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 "" msgid "Add headers and payload to *msg*:" @@ -162,8 +163,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -204,8 +205,8 @@ msgstr "" 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 "" msgid "" @@ -228,8 +229,8 @@ msgstr "" 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." +"``(key, value)`` pairs to set additional parameters on " +"the :mailheader:`Content-Type` header." msgstr "" msgid "" diff --git a/library/email_encoders.po b/library/email_encoders.po index b270d43f85..373fa7a7b8 100644 --- a/library/email_encoders.po +++ b/library/email_encoders.po @@ -1,38 +1,38 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:04+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.encoders`: Encoders" msgstr "" msgid "**Source code:** :source:`Lib/email/encoders.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/encoders.py`" 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 "" msgid "" @@ -50,35 +50,35 @@ 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 "" msgid "" -"The :mod:`email` package provides some convenient encoders 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 encoders 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 "" 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 "" msgid "Here are the encoding functions provided:" msgstr "" 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 "" msgid "" @@ -90,9 +90,9 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/email_examples.po b/library/email_examples.po index 751005208c..20298ca68b 100644 --- a/library/email_examples.po +++ b/library/email_examples.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email`: Examples" msgstr "" diff --git a/library/email_generator.po b/library/email_generator.po index 3c5058369b..2f698af75c 100644 --- a/library/email_generator.po +++ b/library/email_generator.po @@ -1,41 +1,41 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.generator`: Generating MIME documents" msgstr "" msgid "**Source code:** :source:`Lib/email/generator.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/generator.py`" 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." +"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 "" msgid "" @@ -44,14 +44,14 @@ msgid "" "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.)" +"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 "" msgid "" @@ -64,9 +64,9 @@ msgid "" msgstr "" msgid "" -"To accommodate reproducible processing of SMIME-signed messages :class:" -"`Generator` disables header folding for message parts of type ``multipart/" -"signed`` and all subparts." +"To accommodate reproducible processing of SMIME-signed " +"messages :class:`Generator` disables header folding for message parts of " +"type ``multipart/signed`` and all subparts." msgstr "" msgid "" @@ -81,11 +81,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 "" msgid "" @@ -97,10 +97,10 @@ msgstr "" 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." +"*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 "" msgid "Added the *policy* keyword." @@ -121,15 +121,15 @@ 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 " -"``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 " -"bytes in headers using the MIME ``unknown-8bit`` character set, thus " -"rendering them RFC-compliant." +"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 bytes in headers using the MIME ``unknown-8bit`` character set, " +"thus rendering them RFC-compliant." msgstr "" msgid "" @@ -153,26 +153,27 @@ msgstr "" 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 "" 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 "" 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 " -"using :class:`BytesGenerator`, and not :class:`Generator`." +"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 "" msgid "" @@ -192,12 +193,13 @@ 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-" -"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." +"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." msgstr "" msgid "" @@ -211,32 +213,33 @@ msgid "" msgstr "" 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 "" 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 " -"of a formatted string 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_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 "" 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 "" 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 " -"type is not :mimetype:`text`, instead of printing it fill in the string " +"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." msgstr "" @@ -273,10 +276,11 @@ msgstr "" msgid "" "\"[Non-text (%(type)s) part of message omitted, filename %(filename)s]\"" msgstr "" +"\"[Non-text (%(type)s) part of message omitted, filename %(filename)s]\"" 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 "" msgid "Footnotes" @@ -285,10 +289,10 @@ msgstr "Przypisy" 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 new file mode 100644 index 0000000000..d9cba26cac --- /dev/null +++ b/library/email_header.po @@ -0,0 +1,257 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`email.header`: Internationalized headers" +msgstr "" + +msgid "**Source code:** :source:`Lib/email/header.py`" +msgstr "**Kod źródłowy:** :source:`Lib/email/header.py`" + +msgid "" +"This module is part of the legacy (``Compat32``) email API. In the current " +"API encoding and decoding of headers is handled transparently by the " +"dictionary-like API of the :class:`~email.message.EmailMessage` class. In " +"addition to uses in legacy code, this module can be useful in applications " +"that need to completely control the character sets used when encoding " +"headers." +msgstr "" + +msgid "" +"The remaining text in this section is the original documentation of the " +"module." +msgstr "" + +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." +msgstr "" + +msgid "" +"Of course, as email has been deployed worldwide, it has become " +"internationalized, such that language specific character sets can now be " +"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." +msgstr "" + +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::" +msgstr "" + +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 mail readers would show this header using the embedded ISO-8859-1 " +"character." +msgstr "" + +msgid "Here is the :class:`Header` class description:" +msgstr "" + +msgid "" +"Create a MIME-compliant header that can contain strings in different " +"character sets." +msgstr "" + +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." +msgstr "" + +msgid "" +"Optional *charset* serves two purposes: it has the same meaning as the " +"*charset* argument to the :meth:`append` method. It also sets the default " +"character set for all subsequent :meth:`append` calls that omit the " +"*charset* argument. If *charset* is not provided in the constructor (the " +"default), the ``us-ascii`` character set is used both as *s*'s initial " +"charset and as the default for subsequent :meth:`append` calls." +msgstr "" + +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." +msgstr "" + +msgid "" +"Optional *continuation_ws* must be :rfc:`2822`\\ -compliant folding " +"whitespace, and is usually either a space or a hard tab character. This " +"character will be prepended to continuation lines. *continuation_ws* " +"defaults to a single space character." +msgstr "" + +msgid "" +"Optional *errors* is passed straight through to the :meth:`append` method." +msgstr "" + +msgid "Append the string *s* to the MIME header." +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." +msgstr "" + +msgid "" +"*s* may be an instance of :class:`bytes` or :class:`str`. If it is an " +"instance of :class:`bytes`, then *charset* is the encoding of that byte " +"string, and a :exc:`UnicodeError` will be raised if the string cannot be " +"decoded with that character set." +msgstr "" + +msgid "" +"If *s* is an instance of :class:`str`, then *charset* is a hint specifying " +"the character set of the characters in the string." +msgstr "" + +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 charset. If the string cannot be encoded using the output codec, a " +"UnicodeError will be raised." +msgstr "" + +msgid "" +"Optional *errors* is passed as the errors argument to the decode call if *s* " +"is a byte string." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +"*maxlinelen*, if given, overrides the instance's value for the maximum line " +"length." +msgstr "" + +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." +msgstr "" + +msgid "Added the *linesep* argument." +msgstr "" + +msgid "" +"The :class:`Header` class also provides a number of methods to support " +"standard operators and built-in functions." +msgstr "" + +msgid "" +"Returns an approximation of the :class:`Header` as a string, using an " +"unlimited line length. All pieces are converted to unicode using the " +"specified encoding and joined together appropriately. Any pieces with a " +"charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'`` " +"error handler." +msgstr "" + +msgid "Added handling for the ``'unknown-8bit'`` charset." +msgstr "" + +msgid "" +"This method allows you to compare two :class:`Header` instances for equality." +msgstr "" + +msgid "" +"This method allows you to compare two :class:`Header` instances for " +"inequality." +msgstr "" + +msgid "" +"The :mod:`email.header` module also provides the following convenient " +"functions." +msgstr "" + +msgid "" +"Decode a message header value without converting the character set. The " +"header value is in *header*." +msgstr "" + +msgid "" +"This function returns a list of ``(decoded_string, charset)`` pairs " +"containing each of the decoded parts of the header. *charset* is ``None`` " +"for non-encoded parts of the header, otherwise a lower case string " +"containing the name of the character set specified in the encoded string." +msgstr "" + +msgid "Here's an example::" +msgstr "" + +msgid "" +"Create a :class:`Header` instance from a sequence of pairs as returned " +"by :func:`decode_header`." +msgstr "" + +msgid "" +":func:`decode_header` takes a header value string and returns a sequence of " +"pairs of the format ``(decoded_string, charset)`` where *charset* is the " +"name of the character set." +msgstr "" + +msgid "" +"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 cb43eaaf51..f68feb00ae 100644 --- a/library/email_headerregistry.po +++ b/library/email_headerregistry.po @@ -1,73 +1,74 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.headerregistry`: Custom Header Objects" msgstr "" msgid "**Source code:** :source:`Lib/email/headerregistry.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/headerregistry.py`" msgid "[1]_" -msgstr "" +msgstr "[1]_" 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 "" 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 "" 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 "" 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 "" msgid "This base class defines the following read-only properties:" @@ -75,8 +76,9 @@ msgstr "" 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 "" msgid "" @@ -101,11 +103,11 @@ msgstr "" 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 "" msgid "" @@ -166,8 +168,8 @@ msgstr "" 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" -"\"." +"recognizing a number of variant forms that are sometimes found \"in the " +"wild\"." msgstr "" msgid "This header type provides the following additional attributes:" @@ -178,10 +180,11 @@ 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 "" msgid "" @@ -198,8 +201,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 "" msgid "" @@ -230,7 +233,7 @@ msgstr "" 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 :ref:`joining ` " +"unicode. The ``decoded`` value is set by :attr:`~str.join`\\ ing " "the :class:`str` value of the elements of the ``groups`` attribute with ``', " "'``." msgstr "" @@ -289,16 +292,16 @@ msgid "A dictionary mapping parameter names to parameter values." msgstr "" msgid "" -"A :class:`ParameterizedMIMEHeader` class that handles the :mailheader:" -"`Content-Type` header." +"A :class:`ParameterizedMIMEHeader` class that handles " +"the :mailheader:`Content-Type` header." msgstr "" msgid "The content type string, in the form ``maintype/subtype``." msgstr "" msgid "" -"A :class:`ParameterizedMIMEHeader` class that handles the :mailheader:" -"`Content-Disposition` header." +"A :class:`ParameterizedMIMEHeader` class that handles " +"the :mailheader:`Content-Disposition` header." msgstr "" msgid "``inline`` and ``attachment`` are the only valid values in common use." @@ -379,7 +382,7 @@ msgid "resent-cc" msgstr "" msgid "bcc" -msgstr "" +msgstr "bcc" msgid "resent-bcc" msgstr "" @@ -459,8 +462,8 @@ msgid "or::" msgstr "lub::" 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 "" msgid "" @@ -490,8 +493,8 @@ msgid "" msgstr "" 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 "" diff --git a/library/email_message.po b/library/email_message.po index bc4bef41e6..d344d04653 100644 --- a/library/email_message.po +++ b/library/email_message.po @@ -1,36 +1,36 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.message`: Representing an email message" msgstr "" msgid "**Source code:** :source:`Lib/email/message.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/message.py`" msgid "[1]_" -msgstr "" +msgstr "[1]_" msgid "" "The central class in the :mod:`email` package is the :class:`EmailMessage` " @@ -82,24 +82,24 @@ msgstr "" 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 "" 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`." +"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 "" msgid "" @@ -113,8 +113,9 @@ msgid "" "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." +"restricted to producing messages serialized as \"7 bit clean\" " +"when :attr:`~email.policy.EmailPolicy.utf8` is ``False``, which is the " +"default." msgstr "" msgid "" @@ -131,8 +132,8 @@ msgstr "" 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`." +"like message representation, instead of being a direct alias " +"for :meth:`as_string`." msgstr "" msgid "" @@ -141,8 +142,8 @@ msgid "" "*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 "" msgid "" @@ -158,14 +159,14 @@ msgid "" msgstr "" 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 "" msgid "" @@ -212,8 +213,8 @@ msgstr "" 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 "" msgid "" @@ -266,9 +267,9 @@ msgid "" msgstr "" 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 "" msgid "Here are some additional useful header related methods:" @@ -323,21 +324,21 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -352,8 +353,8 @@ msgstr "" 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 "" @@ -370,8 +371,8 @@ msgid "" "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`." +"parameter value. Optional *header* specifies an alternative header " +"to :mailheader:`Content-Type`." msgstr "" msgid "" @@ -395,9 +396,9 @@ msgid "" msgstr "" 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 "" msgid "``replace`` keyword was added." @@ -434,10 +435,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -466,15 +467,15 @@ msgid "" msgstr "" 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 "" msgid "" -"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`." +"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 "" msgid "" @@ -562,8 +563,8 @@ 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 " +"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`` " @@ -574,8 +575,8 @@ msgstr "" 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`.)" +"will be empty for a non-``multipart``. (See " +"also :meth:`~email.message.EmailMessage.walk`.)" msgstr "" msgid "" @@ -614,47 +615,49 @@ msgstr "" 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 "" 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``." +"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 "" 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 "" 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 "" msgid "Remove the payload and all of the headers." @@ -681,11 +684,12 @@ 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." +"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 "" msgid "" @@ -707,10 +711,10 @@ msgid "" msgstr "" 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 " -"not need their own :mailheader:`MIME-Version` headers." +"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 "" msgid "Footnotes" diff --git a/library/email_mime.po b/library/email_mime.po new file mode 100644 index 0000000000..de8e700b77 --- /dev/null +++ b/library/email_mime.po @@ -0,0 +1,271 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`email.mime`: Creating email and MIME objects from scratch" +msgstr "" + +msgid "**Source code:** :source:`Lib/email/mime/`" +msgstr "**Kod źródłowy:** :source:`Lib/email/mime/`" + +msgid "" +"This module is part of the legacy (``Compat32``) email API. Its " +"functionality is partially replaced by the :mod:`~email.contentmanager` in " +"the new API, but in certain applications these classes may still be useful, " +"even in non-legacy code." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "Here are the classes:" +msgstr "" + +msgid "Module: :mod:`email.mime.base`" +msgstr "" + +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 " +"subclasses." +msgstr "" + +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 "" + +msgid "" +"If *policy* is specified, (defaults to the :class:`compat32 " +"` policy) it will be passed " +"to :class:`~email.message.Message`." +msgstr "" + +msgid "" +"The :class:`MIMEBase` class always adds a :mailheader:`Content-Type` header " +"(based on *_maintype*, *_subtype*, and *_params*), and a :mailheader:`MIME-" +"Version` header (always set to ``1.0``)." +msgstr "" + +msgid "Added *policy* keyword-only parameter." +msgstr "" + +msgid "Module: :mod:`email.mime.nonmultipart`" +msgstr "" + +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 "" + +msgid "Module: :mod:`email.mime.multipart`" +msgstr "" + +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." +msgstr "" + +msgid "" +"Optional *boundary* is the multipart boundary string. When ``None`` (the " +"default), the boundary is calculated when needed (for example, when the " +"message is serialized)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Optional *policy* argument defaults to :class:`compat32 " +"`." +msgstr "" + +msgid "" +"Additional parameters for the :mailheader:`Content-Type` header are taken " +"from the keyword arguments, or passed into the *_params* argument, which is " +"a keyword dictionary." +msgstr "" + +msgid "Module: :mod:`email.mime.application`" +msgstr "Moduł: :mod:`email.mime.application`" + +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* contains the bytes for the " +"raw application data. Optional *_subtype* specifies the MIME subtype and " +"defaults to :mimetype:`octet-stream`." +msgstr "" + +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 "" + +msgid "*_params* are passed straight through to the base class constructor." +msgstr "" + +msgid "Module: :mod:`email.mime.audio`" +msgstr "" + +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* contains the bytes for 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 "" + +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 "" + +msgid "Module: :mod:`email.mime.image`" +msgstr "" + +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* contains the bytes for 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 "" + +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." +msgstr "" + +msgid "" +"*_params* are passed straight through to " +"the :class:`~email.mime.base.MIMEBase` constructor." +msgstr "" + +msgid "Module: :mod:`email.mime.message`" +msgstr "" + +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." +msgstr "" + +msgid "" +"Optional *_subtype* sets the subtype of the message; it defaults " +"to :mimetype:`rfc822`." +msgstr "" + +msgid "Module: :mod:`email.mime.text`" +msgstr "" + +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." +msgstr "" + +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-" +"Encoding`` header, after which a ``set_payload`` call will automatically " +"encode the new payload (and add a new :mailheader:`Content-Transfer-" +"Encoding` header)." +msgstr "" + +msgid "*_charset* also accepts :class:`~email.charset.Charset` instances." +msgstr "" diff --git a/library/email_parser.po b/library/email_parser.po new file mode 100644 index 0000000000..06e7af7af7 --- /dev/null +++ b/library/email_parser.po @@ -0,0 +1,332 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`email.parser`: Parsing email messages" +msgstr "" + +msgid "**Source code:** :source:`Lib/email/parser.py`" +msgstr "**Kod źródłowy:** :source:`Lib/email/parser.py`" + +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." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "FeedParser API" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :class:`BytesFeedParser`'s API is simple; you create an instance, feed " +"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." +msgstr "" + +msgid "Here is the API for the :class:`BytesFeedParser`:" +msgstr "" + +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." +msgstr "" + +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 provide :class:`~email.message.EmailMessage` as the default " +"*_factory*. For more information on what else *policy* controls, see " +"the :mod:`~email.policy` documentation." +msgstr "" + +msgid "" +"Note: **The policy keyword should always be specified**; The default will " +"change to :data:`email.policy.default` in a future version of Python." +msgstr "" + +msgid "Added the *policy* keyword." +msgstr "" + +msgid "*_factory* defaults to the policy ``message_factory``." +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)." +msgstr "" + +msgid "" +"Complete the parsing of all previously fed data and return the root message " +"object. It is undefined what happens if :meth:`~feed` is called after this " +"method has been called." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "Parser API" +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Removed the *strict* argument that was deprecated in 2.4. Added the " +"*policy* keyword." +msgstr "" + +msgid "*_class* defaults to the policy ``message_factory``." +msgstr "" + +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." +msgstr "" + +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``)." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "Optional *headersonly* is as with the :meth:`parse` method." +msgstr "" + +msgid "" +"Exactly like :class:`BytesParser`, except that *headersonly* defaults to " +"``True``." +msgstr "" + +msgid "" +"This class is parallel to :class:`BytesParser`, but handles string input." +msgstr "" + +msgid "Removed the *strict* argument. Added the *policy* keyword." +msgstr "" + +msgid "" +"Read all the data from the text-mode file-like object *fp*, parse the " +"resulting text, and return the root message object. *fp* must support both " +"the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` " +"methods on file-like objects." +msgstr "" + +msgid "" +"Other than the text mode requirement, this method operates " +"like :meth:`BytesParser.parse`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Exactly like :class:`Parser`, except that *headersonly* defaults to ``True``." +msgstr "" + +msgid "" +"Since creating a message object structure from a string or a file object is " +"such a common task, four functions are provided as a convenience. They are " +"available in the top-level :mod:`email` package namespace." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Return a message object structure tree from an open binary :term:`file " +"object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and " +"*policy* are interpreted as with the :class:`~email.parser.BytesParser` " +"class constructor." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a message object structure tree from an open :term:`file object`. " +"This is equivalent to ``Parser().parse(fp)``. *_class* and *policy* are " +"interpreted as with the :class:`~email.parser.Parser` class constructor." +msgstr "" + +msgid "" +"Here's an example of how you might use :func:`message_from_bytes` at an " +"interactive Python prompt::" +msgstr "" + +msgid "Additional notes" +msgstr "" + +msgid "Here are some notes on the parsing semantics:" +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" diff --git a/library/email_policy.po b/library/email_policy.po index 088d478457..3ee61e4c16 100644 --- a/library/email_policy.po +++ b/library/email_policy.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# m_aciek , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-29 12:56+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: m_aciek , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.policy`: Policy Objects" msgstr "" msgid "**Source code:** :source:`Lib/email/policy.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/policy.py`" msgid "" "The :mod:`email` package's prime focus is the handling of email messages as " @@ -50,37 +50,38 @@ msgstr "" 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 "" 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." +"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 "" 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 "" 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 "" msgid "" @@ -104,8 +105,8 @@ msgstr "" 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 "" @@ -179,7 +180,7 @@ msgid "" msgstr "" msgid "``7bit``" -msgstr "" +msgstr "``7bit``" msgid "" "all data must be \"7 bit clean\" (ASCII-only). This means that where " @@ -188,7 +189,7 @@ msgid "" msgstr "" msgid "``8bit``" -msgstr "" +msgstr "``8bit``" msgid "" "data is not constrained to be 7 bit clean. Data in headers is still " @@ -205,9 +206,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -221,8 +222,22 @@ msgstr "" 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." +"parser when building messages. Defaults to ``None``, in which " +"case :class:`~email.message.Message` is used." +msgstr "" + +msgid "" +"If ``True`` (the default), the generator will " +"raise :exc:`~email.errors.HeaderWriteError` instead of writing a header that " +"is improperly folded or delimited, such that it would be parsed as multiple " +"headers or joined with adjacent data. Such headers can be generated by " +"custom header classes or bugs in the ``email`` module." +msgstr "" + +msgid "" +"As it's a security feature, this defaults to ``True`` even in " +"the :class:`~email.policy.Compat32` policy. For backwards compatible, but " +"unsafe, behavior, it must be set to ``False`` explicitly." msgstr "" msgid "" @@ -271,10 +286,11 @@ msgid "Return the maximum allowed number of headers named *name*." msgstr "" 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`` " -"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." +"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 "" msgid "" @@ -345,9 +361,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 "" msgid "" @@ -389,7 +405,7 @@ msgid "" msgstr "" msgid "[1]_" -msgstr "" +msgstr "[1]_" msgid "" "If ``False``, follow :rfc:`5322`, supporting non-ASCII characters in headers " @@ -399,20 +415,20 @@ msgid "" msgstr "" 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 " -"indicates whether or not a generator should refold that value when " +"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:" msgstr "" msgid "``none``" -msgstr "" +msgstr "``none``" msgid "all source values use original folding" msgstr "" msgid "``long``" -msgstr "" +msgstr "``long``" msgid "" "source values that have any line that is longer than ``max_line_length`` " @@ -420,7 +436,7 @@ msgid "" msgstr "" msgid "``all``" -msgstr "" +msgstr "``all``" msgid "all values are refolded." msgstr "" @@ -439,13 +455,14 @@ msgid "" msgstr "" 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 "" msgid "" @@ -523,8 +540,8 @@ msgstr "" 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 "" msgid "" @@ -536,8 +553,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 "" msgid "" @@ -574,8 +591,8 @@ msgid "" msgstr "" 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 " @@ -583,21 +600,22 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" msgid "The default is ``True``." @@ -607,9 +625,9 @@ msgid "The name and value are returned unmodified." msgstr "" 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 "" msgid "" diff --git a/library/email_util.po b/library/email_util.po deleted file mode 100644 index b4a2f4d431..0000000000 --- a/library/email_util.po +++ /dev/null @@ -1,222 +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: -# m_aciek , 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: 2017-02-16 23:09+0000\n" -"Last-Translator: m_aciek , 2019\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" - -msgid ":mod:`email.utils`: Miscellaneous utilities" -msgstr "" - -msgid "**Source code:** :source:`Lib/email/utils.py`" -msgstr "" - -msgid "" -"There are a couple of useful utilities provided in the :mod:`email.utils` " -"module:" -msgstr "" - -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 "" - -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 "" - -msgid "Added the *domain* keyword." -msgstr "" - -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 "" - -msgid "" -"Return a new string with backslashes in *str* replaced by two backslashes, " -"and double quotes replaced by backslash-double quote." -msgstr "" - -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 "" - -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 "" - -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 "" - -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 "" - -msgid "Added the *charset* option." -msgstr "" - -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 "" - -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 "" - -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 "" - -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 "" - -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 "" - -msgid "Returns a date string as per :rfc:`2822`, e.g.::" -msgstr "" - -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 "" - -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 "" - -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 "" - -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 "" - -msgid "Decode the string *s* according to :rfc:`2231`." -msgstr "" - -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 "" - -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 "" - -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 "" - -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 "" - -msgid "Footnotes" -msgstr "Przypisy" - -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 09e6a3055a..bd9c59f2c8 100644 --- a/library/email_utils.po +++ b/library/email_utils.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`email.utils`: Miscellaneous utilities" msgstr "" msgid "**Source code:** :source:`Lib/email/utils.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/email/utils.py`" msgid "" "There are a couple of useful utilities provided in the :mod:`email.utils` " @@ -36,25 +36,25 @@ msgstr "" 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." +"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 "" 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." +"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 "" msgid "Added the *domain* keyword." @@ -85,18 +85,25 @@ msgid "" "unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned." msgstr "" +msgid "" +"If *strict* is true, use a strict parser which rejects malformed inputs." +msgstr "" + +msgid "Add *strict* optional parameter and reject malformed inputs by default." +msgstr "" + 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." +"``(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 "" 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``." +"characters. Can be an instance of :class:`str` or " +"a :class:`~email.charset.Charset`. Defaults to ``utf-8``." msgstr "" msgid "Added the *charset* option." @@ -105,17 +112,19 @@ msgstr "" 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::" +"be returned by :meth:`Message.get_all `." +msgstr "" + +msgid "Here's a simple example that gets all the recipients of a message::" msgstr "" 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 " +"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 "" @@ -130,15 +139,15 @@ msgid "" msgstr "" msgid "" -"The inverse of :func:`format_datetime`. Performs the same function as :func:" -"`parsedate`, but on success returns a :mod:`~datetime.datetime`; otherwise " -"``ValueError`` is raised if *date* contains an invalid value such as an hour " -"greater than 23 or a timezone offset not between -24 and 24 hours. 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 " +"The inverse of :func:`format_datetime`. Performs the same function " +"as :func:`parsedate`, but on success returns a :mod:`~datetime.datetime`; " +"otherwise ``ValueError`` is raised if *date* contains an invalid value such " +"as an hour greater than 23 or a timezone offset not between -24 and 24 " +"hours. 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 "" @@ -152,9 +161,9 @@ msgid "Returns a date string as per :rfc:`2822`, e.g.::" msgstr "" 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." +"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 "" msgid "" @@ -194,14 +203,14 @@ msgid "" msgstr "" 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'``." +"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 "" msgid "" diff --git a/library/ensurepip.po b/library/ensurepip.po new file mode 100644 index 0000000000..1741ccab40 --- /dev/null +++ b/library/ensurepip.po @@ -0,0 +1,191 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`ensurepip` --- Bootstrapping the ``pip`` installer" +msgstr "" + +msgid "**Source code:** :source:`Lib/ensurepip`" +msgstr "**Kod źródłowy:** :source:`Lib/ensurepip`" + +msgid "" +"The :mod:`ensurepip` package provides support for bootstrapping the ``pip`` " +"installer into an existing Python installation or virtual environment. This " +"bootstrapping approach reflects the fact that ``pip`` is an independent " +"project with its own release cycle, and the latest available stable version " +"is bundled with maintenance and feature releases of the CPython reference " +"interpreter." +msgstr "" + +msgid "" +"In most cases, end users of Python shouldn't need to invoke this module " +"directly (as ``pip`` should be bootstrapped by default), but it may be " +"needed if installing ``pip`` was skipped when installing Python (or when " +"creating a virtual environment) or after explicitly uninstalling ``pip``." +msgstr "" + +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 "" + +msgid ":ref:`installing-index`" +msgstr ":ref:`installing-index`" + +msgid "The end user guide for installing Python packages" +msgstr "" +"Podręcznik użytkownika końcowego dotyczący instalowania pakietów języka " +"Python" + +msgid ":pep:`453`: Explicit bootstrapping of pip in Python installations" +msgstr "" + +msgid "The original rationale and specification for this module." +msgstr "Oryginalne uzasadnienie i specyfikacja tego modułu." + +msgid "Command line interface" +msgstr "Interfejs wiersza poleceń" + +msgid "" +"The command line interface is invoked using the interpreter's ``-m`` switch." +msgstr "" + +msgid "The simplest possible invocation is::" +msgstr "Najprostszym możliwym wywołaniem jest:" + +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 available in ``ensurepip``, pass the ``--" +"upgrade`` option::" +msgstr "" + +msgid "" +"By default, ``pip`` is installed into the current virtual environment (if " +"one is active) or into the system site packages (if there is no active " +"virtual environment). The installation location can be controlled through " +"two additional command line options:" +msgstr "" + +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." +msgstr "" + +msgid "" +"``--user``: Installs ``pip`` into the user site packages directory rather " +"than globally for the current Python installation (this option is not " +"permitted inside an active virtual environment)." +msgstr "" + +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:" +msgstr "" + +msgid "" +"``--altinstall``: if an alternate installation is requested, the ``pipX`` " +"script will *not* be installed." +msgstr "" + +msgid "" +"``--default-pip``: if a \"default pip\" installation is requested, the " +"``pip`` script will be installed in addition to the two regular scripts." +msgstr "" + +msgid "" +"Providing both of the script selection options will trigger an exception." +msgstr "Podanie obu opcji wyboru skryptu spowoduje wyzwolenie wyjątku." + +msgid "Module API" +msgstr "" + +msgid ":mod:`ensurepip` exposes two functions for programmatic use:" +msgstr "" + +msgid "" +"Returns a string specifying the available version of pip that will be " +"installed when bootstrapping an environment." +msgstr "" + +msgid "Bootstraps ``pip`` into the current or designated environment." +msgstr "" + +msgid "" +"*root* specifies an alternative root directory to install relative to. If " +"*root* is ``None``, then installation uses the default install location for " +"the current environment." +msgstr "" + +msgid "" +"*upgrade* indicates whether or not to upgrade an existing installation of an " +"earlier version of ``pip`` to the available version." +msgstr "" + +msgid "" +"*user* indicates whether to use the user scheme rather than installing " +"globally." +msgstr "" + +msgid "" +"By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where X.Y " +"stands for the current version of Python)." +msgstr "" + +msgid "If *altinstall* is set, then ``pipX`` will *not* be installed." +msgstr "" + +msgid "" +"If *default_pip* is set, then ``pip`` will be installed in addition to the " +"two regular scripts." +msgstr "" + +msgid "" +"Setting both *altinstall* and *default_pip* will trigger :exc:`ValueError`." +msgstr "" + +msgid "" +"*verbosity* controls the level of output to :data:`sys.stdout` from the " +"bootstrapping operation." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``ensurepip.bootstrap`` with " +"argument ``root``." +msgstr "" + +msgid "" +"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 "" + +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 " +"version of ``pip``)." +msgstr "" diff --git a/library/enum.po b/library/enum.po index 6fc83f1d6c..5a6a20f396 100644 --- a/library/enum.po +++ b/library/enum.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:05+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`enum` --- Support for enumerations" msgstr ":mod:`enum` --- Wsparcie dla wyliczeń" @@ -30,43 +30,84 @@ msgid "**Source code:** :source:`Lib/enum.py`" msgstr "**kod źródłowy:** :source:`Lib/enum.py`" msgid "" -"This page contains the API reference information. For tutorial information " -"and discussion of more advanced topics, see" +"An enumeration is a set of symbolic names (members) bound to unique, " +"constant values. Within an enumeration, the members can be compared by " +"identity, and the enumeration itself can be iterated over." msgstr "" +"Wyliczenie jest zbiorem symbolicznych nazw (literałów wyliczeniowych) " +"związanych z unikalnymi, stałymi wartościami. Wewnątrz wyliczenia literały " +"mogą być porównywane według równości a po wyliczeniu można iterować." -msgid ":ref:`Basic Tutorial `" +msgid "Case of Enum Members" +msgstr "Wielkość liter literałów wyliczeniowych" + +msgid "" +"Because Enums are used to represent constants we recommend using UPPER_CASE " +"names for enum members, and will be using that style in our examples." +msgstr "" + +msgid "Module Contents" +msgstr "" + +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`." msgstr "" -msgid ":ref:`Advanced Tutorial `" +msgid "" +"Base class for creating enumerated constants. See section `Functional API`_ " +"for an alternate construction syntax." +msgstr "" + +msgid "" +"Base class for creating enumerated constants that are also subclasses " +"of :class:`int`." msgstr "" -msgid ":ref:`Enum Cookbook `" +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`." msgstr "" -msgid "An enumeration:" +msgid "" +"Base class for creating enumerated constants that can be combined using the " +"bitwise operations without losing their :class:`Flag` membership." msgstr "" -msgid "is a set of symbolic names (members) bound to unique values" +msgid "" +"Enum class decorator that ensures only one name is bound to any one value." msgstr "" -msgid "can be iterated over to return its members in definition order" +msgid "" +"Instances are replaced with an appropriate value for Enum members. By " +"default, the initial value starts at 1." msgstr "" -msgid "uses *call* syntax to return members by value" +msgid "``Flag``, ``IntFlag``, ``auto``" msgstr "" -msgid "uses *index* syntax to return members by name" +msgid "Creating an Enum" msgstr "" msgid "" -"Enumerations are created either by using :keyword:`class` syntax, or by " -"using function-call syntax::" +"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 "" + +msgid "Enum member values" msgstr "" msgid "" -"Even though we can use :keyword:`class` syntax to create Enums, Enums are " -"not normal Python classes. See :ref:`How are Enums different? ` for more details." +"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." msgstr "" msgid "Nomenclature" @@ -77,7 +118,7 @@ msgstr "" msgid "" "The attributes :attr:`Color.RED`, :attr:`Color.GREEN`, etc., are " -"*enumeration members* (or *members*) and are functionally constants." +"*enumeration members* (or *enum members*) and are functionally constants." msgstr "" msgid "" @@ -85,533 +126,638 @@ msgid "" "``RED``, the value of :attr:`Color.BLUE` is ``3``, etc.)" msgstr "" -msgid "Module Contents" +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." msgstr "" -msgid ":class:`EnumType`" +msgid "Enumeration members have human readable string representations::" msgstr "" -msgid "The ``type`` for Enum and its subclasses." +msgid "...while their ``repr`` has more information::" msgstr "" -msgid ":class:`Enum`" +msgid "The *type* of an enumeration member is the enumeration it belongs to::" msgstr "" -msgid "Base class for creating enumerated constants." +msgid "Enum members also have a property that contains just their item name::" msgstr "" -msgid ":class:`IntEnum`" +msgid "Enumerations support iteration, in definition order::" msgstr "" msgid "" -"Base class for creating enumerated constants that are also subclasses of :" -"class:`int`. (`Notes`_)" +"Enumeration members are hashable, so they can be used in dictionaries and " +"sets::" msgstr "" -msgid ":class:`StrEnum`" +msgid "Programmatic access to enumeration members and their attributes" msgstr "" msgid "" -"Base class for creating enumerated constants that are also subclasses of :" -"class:`str`. (`Notes`_)" +"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 "" -msgid ":class:`Flag`" +msgid "If you want to access enum members by *name*, use item access::" msgstr "" -msgid "" -"Base class for creating enumerated constants that can be combined using the " -"bitwise operations without losing their :class:`Flag` membership." +msgid "If you have an enum member and need its :attr:`name` or :attr:`value`::" msgstr "" -msgid ":class:`IntFlag`" +msgid "Duplicating enum members and values" msgstr "" -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`. (`Notes`_)" -msgstr "" - -msgid ":class:`ReprEnum`" +msgid "Having two enum members with the same name is invalid::" msgstr "" msgid "" -"Used by :class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag` to keep " -"the :class:`str() ` of the mixed-in type." -msgstr "" - -msgid ":class:`EnumCheck`" +"However, two enum members are allowed to have the same value. Given two " +"members A and B with the same value (and A defined first), B is an alias to " +"A. By-value lookup of the value of A and B will return A. By-name lookup " +"of B will also return A::" msgstr "" msgid "" -"An enumeration with the values ``CONTINUOUS``, ``NAMED_FLAGS``, and " -"``UNIQUE``, for use with :func:`verify` to ensure various constraints are " -"met by a given enumeration." +"Attempting to create a member with the same name as an already defined " +"attribute (another member, a method, etc.) or attempting to create an " +"attribute with the same name as a member is not allowed." msgstr "" -msgid ":class:`FlagBoundary`" +msgid "Ensuring unique enumeration values" msgstr "" msgid "" -"An enumeration with the values ``STRICT``, ``CONFORM``, ``EJECT``, and " -"``KEEP`` which allows for more fine-grained control over how invalid values " -"are dealt with in an enumeration." +"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 "" -msgid ":class:`auto`" +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::" msgstr "" -msgid "" -"Instances are replaced with an appropriate value for Enum members. :class:" -"`StrEnum` defaults to the lower-cased version of the member name, while " -"other Enums default to 1 and increase from there." +msgid "Using automatic values" msgstr "" -msgid ":func:`~enum.property`" +msgid "If the exact value is unimportant you can use :class:`auto`::" msgstr "" msgid "" -"Allows :class:`Enum` members to have attributes without conflicting with " -"member names." +"The values are chosen by :func:`_generate_next_value_`, which can be " +"overridden::" msgstr "" -msgid ":func:`unique`" +msgid "" +"The goal of the default :meth:`_generate_next_value_` method is to provide " +"the next :class:`int` in sequence with the last :class:`int` provided, but " +"the way it does this is an implementation detail and may change." msgstr "" msgid "" -"Enum class decorator that ensures only one name is bound to any one value." +"The :meth:`_generate_next_value_` method must be defined before any members." msgstr "" -msgid ":func:`verify`" +msgid "Iteration" +msgstr "Iteracja" + +msgid "Iterating over the members of an enum does not provide the aliases::" msgstr "" msgid "" -"Enum class decorator that checks user-selectable constraints on an " -"enumeration." +"The special attribute ``__members__`` is a read-only ordered mapping of " +"names to members. It includes all names defined in the enumeration, " +"including the aliases::" msgstr "" -msgid ":func:`member`" +msgid "" +"The ``__members__`` attribute can be used for detailed programmatic access " +"to the enumeration members. For example, finding all the aliases::" msgstr "" -msgid "Make ``obj`` a member. Can be used as a decorator." +msgid "Comparisons" msgstr "" -msgid ":func:`nonmember`" +msgid "Enumeration members are compared by identity::" msgstr "" -msgid "Do not make ``obj`` a member. Can be used as a decorator." +msgid "" +"Ordered comparisons between enumeration values are *not* supported. Enum " +"members are not integers (but see `IntEnum`_ below)::" msgstr "" -msgid ":func:`global_enum`" +msgid "Equality comparisons are defined though::" msgstr "" msgid "" -"Modify the :class:`str() ` and :func:`repr` of an enum to show its " -"members as belonging to the module instead of its class. Should only be used " -"if the enum members will be exported to the module global namespace." -msgstr "" - -msgid ":func:`show_flag_values`" +"Comparisons against non-enumeration values will always compare not equal " +"(again, :class:`IntEnum` was explicitly designed to behave differently, see " +"below)::" msgstr "" -msgid "Return a list of all power-of-two integers contained in a flag." +msgid "Allowed members and attributes of enumerations" msgstr "" -msgid "``Flag``, ``IntFlag``, ``auto``" +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, " +"enumerations can have arbitrary values." msgstr "" msgid "" -"``StrEnum``, ``EnumCheck``, ``ReprEnum``, ``FlagBoundary``, ``property``, " -"``member``, ``nonmember``, ``global_enum``, ``show_flag_values``" +"Enumerations are Python classes, and can have methods and special methods as " +"usual. If we have this enumeration::" msgstr "" -msgid "Data Types" -msgstr "Typy danych" +msgid "Then::" +msgstr "" msgid "" -"*EnumType* is the :term:`metaclass` for *enum* enumerations. It is possible " -"to subclass *EnumType* -- see :ref:`Subclassing EnumType ` for details." +"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_`." msgstr "" msgid "" -"*EnumType* is responsible for setting the correct :meth:`__repr__`, :meth:" -"`__str__`, :meth:`__format__`, and :meth:`__reduce__` methods on the final " -"*enum*, as well as creating the enum members, properly handling duplicates, " -"providing iteration over the enum class, etc." +"Note: if your enumeration defines :meth:`__new__` and/or :meth:`__init__` " +"then any value(s) given to the enum member will be passed into those " +"methods. See `Planet`_ for an example." msgstr "" -msgid "Returns ``True`` if member belongs to the ``cls``::" +msgid "Restricted Enum subclassing" msgstr "" msgid "" -"In Python 3.12 it will be possible to check for member values and not just " -"members; until then, a ``TypeError`` will be raised if a non-Enum-member is " -"used in a containment check." +"A new :class:`Enum` class must have one base Enum class, up to one concrete " +"data type, and as many :class:`object`-based mixin classes as needed. The " +"order of these base classes is::" msgstr "" msgid "" -"Returns ``['__class__', '__doc__', '__members__', '__module__']`` and the " -"names of the members in *cls*::" +"Also, subclassing an enumeration is allowed only if the enumeration does not " +"define any members. So this is forbidden::" msgstr "" -msgid "" -"Returns the Enum member in *cls* matching *name*, or raises an :exc:" -"`AttributeError`::" +msgid "But this is allowed::" msgstr "" msgid "" -"Returns the Enum member in *cls* matching *name*, or raises an :exc:" -"`KeyError`::" +"Allowing subclassing of enums that define members would lead to a violation " +"of some important invariants of types and instances. On the other hand, it " +"makes sense to allow sharing some common behavior between a group of " +"enumerations. (See `OrderedEnum`_ for an example.)" msgstr "" -msgid "Returns each member in *cls* in definition order::" +msgid "Pickling" msgstr "" -msgid "Returns the number of member in *cls*::" +msgid "Enumerations can be pickled and unpickled::" msgstr "" -msgid "Returns each member in *cls* in reverse definition order::" +msgid "" +"The usual restrictions for pickling apply: picklable enums must be defined " +"in the top level of a module, since unpickling requires them to be " +"importable from that module." msgstr "" -msgid "*Enum* is the base class for all *enum* enumerations." +msgid "" +"With pickle protocol version 4 it is possible to easily pickle enums nested " +"in other classes." msgstr "" -msgid "The name used to define the ``Enum`` member::" +msgid "" +"It is possible to modify how Enum members are pickled/unpickled by " +"defining :meth:`__reduce_ex__` in the enumeration class." msgstr "" -msgid "The value given to the ``Enum`` member::" +msgid "Functional API" msgstr "" -msgid "Enum member values" +msgid "" +"The :class:`Enum` class is callable, providing the following functional API::" 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." +"The semantics of this API resemble :class:`~collections.namedtuple`. The " +"first argument of the call to :class:`Enum` is the name of the enumeration." msgstr "" msgid "" -"``_ignore_`` is only used during creation and is removed from the " -"enumeration once creation is complete." +"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 " +"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 " +"class derived from :class:`Enum` is returned. In other words, the above " +"assignment to :class:`Animal` is equivalent to::" msgstr "" msgid "" -"``_ignore_`` is a list of names that will not become members, and whose " -"names will also be removed from the completed enumeration. See :ref:" -"`TimePeriod ` for an example." +"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``." msgstr "" -msgid "This method is called in two different ways:" +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::" msgstr "" -msgid "to look up an existing member:" +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, " +"pickling will be disabled." msgstr "" -msgid "cls" +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::" msgstr "" -msgid "The enum class being called." +msgid "The complete signature is::" msgstr "" msgid "value" msgstr "" -msgid "The value to lookup." +msgid "What the new Enum class will record as its name." msgstr "" -msgid "to use the ``cls`` enum to create a new enum:" +msgid "names" msgstr "" -msgid "The name of the new Enum to create." +msgid "" +"The Enum members. This can be a whitespace or comma separated string " +"(values will start at 1 unless otherwise specified)::" msgstr "" -msgid "names" +msgid "or an iterator of names::" msgstr "" -msgid "The names/values of the members for the new Enum." +msgid "or an iterator of (name, value) pairs::" msgstr "" -msgid "module" +msgid "or a mapping::" msgstr "" -msgid "The name of the module the new Enum is created in." +msgid "module" +msgstr "moduł" + +msgid "name of module where new Enum class can be found." msgstr "" msgid "qualname" msgstr "" -msgid "The actual location in the module where this Enum can be found." +msgid "where in module new Enum class can be found." msgstr "" msgid "type" -msgstr "" +msgstr "typ" -msgid "A mix-in type for the new Enum." +msgid "type to mix in to new Enum class." msgstr "" msgid "start" msgstr "" -msgid "The first integer value for the Enum (used by :class:`auto`)" +msgid "number to start counting at if only names are passed in." +msgstr "" + +msgid "The *start* parameter was added." +msgstr "" + +msgid "Derived Enumerations" msgstr "" -msgid "boundary" +msgid "IntEnum" msgstr "" msgid "" -"How to handle out-of-range values from bit operations (:class:`Flag` only)" +"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 "" msgid "" -"Returns ``['__class__', '__doc__', '__module__', 'name', 'value']`` and any " -"public methods defined on *self.__class__*::" +"However, they still can't be compared to standard :class:`Enum` " +"enumerations::" msgstr "" -msgid "name" +msgid "" +":class:`IntEnum` values behave like integers in other ways you'd expect::" msgstr "" -msgid "The name of the member being defined (e.g. 'RED')." +msgid "IntFlag" +msgstr "IntFlag" + +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 " +"operations will lose the :class:`IntFlag` membership." msgstr "" -msgid "The start value for the Enum; the default is 1." +msgid "Sample :class:`IntFlag` class::" msgstr "" -msgid "count" +msgid "It is also possible to name the combinations::" msgstr "" -msgid "The number of members currently defined, not including this one." +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`::" msgstr "" -msgid "last_values" +msgid "" +"Because :class:`IntFlag` members are also subclasses of :class:`int` they " +"can be combined with them::" msgstr "" -msgid "A list of the previous values." +msgid "Flag" msgstr "" msgid "" -"A *staticmethod* that is used to determine the next value returned by :class:" -"`auto`::" +"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 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." msgstr "" msgid "" -"A *classmethod* that is used to further configure subsequent subclasses. By " -"default, does nothing." +"Like :class:`IntFlag`, if a combination of :class:`Flag` members results in " +"no flags being set, the boolean evaluation is :data:`False`::" msgstr "" msgid "" -"A *classmethod* for looking up values not found in *cls*. By default it " -"does nothing, but can be overridden to implement custom search behavior::" +"Individual flags should have values that are powers of two (1, 2, 4, " +"8, ...), while combinations of flags won't::" msgstr "" msgid "" -"Returns the string used for *repr()* calls. By default, returns the *Enum* " -"name, member name, and value, but can be overridden::" +"Giving a name to the \"no flags set\" condition does not change its boolean " +"value::" msgstr "" msgid "" -"Returns the string used for *str()* calls. By default, returns the *Enum* " -"name and member name, but can be overridden::" +"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." msgstr "" +msgid "Others" +msgstr "Inne" + msgid "" -"Returns the string used for *format()* and *f-string* calls. By default, " -"returns :meth:`__str__` returns, but can be overridden::" +"While :class:`IntEnum` is part of the :mod:`enum` module, it would be very " +"simple to implement independently::" msgstr "" msgid "" -"Using :class:`auto` with :class:`Enum` results in integers of increasing " -"value, starting with ``1``." +"This demonstrates how similar derived enumerations can be defined; for " +"example a :class:`StrEnum` that mixes in :class:`str` instead " +"of :class:`int`." msgstr "" -msgid "" -"*IntEnum* is the same as *Enum*, but its members are also integers and can " -"be used anywhere that an integer can be used. If any integer operation is " -"performed with an *IntEnum* member, the resulting value loses its " -"enumeration status." +msgid "Some rules:" msgstr "" msgid "" -"Using :class:`auto` with :class:`IntEnum` results in integers of increasing " -"value, starting with ``1``." +"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 "" msgid "" -":meth:`__str__` is now :func:`int.__str__` to better support the " -"*replacement of existing constants* use-case. :meth:`__format__` was " -"already :func:`int.__format__` for that same reason." +"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 type." msgstr "" msgid "" -"*StrEnum* is the same as *Enum*, but its members are also strings and can be " -"used in most of the same places that a string can be used. The result of " -"any string operation performed on or with a *StrEnum* member is not part of " -"the enumeration." +"When another data type is mixed in, the :attr:`value` attribute is *not the " +"same* as the enum member itself, although it is equivalent and will compare " +"equal." msgstr "" msgid "" -"There are places in the stdlib that check for an exact :class:`str` instead " -"of a :class:`str` subclass (i.e. ``type(unknown) == str`` instead of " -"``isinstance(unknown, str)``), and in those locations you will need to use " -"``str(StrEnum.member)``." +"%-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 "" msgid "" -"Using :class:`auto` with :class:`StrEnum` results in the lower-cased member " -"name as the value." +":ref:`Formatted string literals `, :meth:`str.format`, " +"and :func:`format` will use the mixed-in type's :meth:`__format__` " +"unless :meth:`__str__` or :meth:`__format__` is overridden in the subclass, " +"in which case the overridden methods or :class:`Enum` methods will be used. " +"Use the !s and !r format codes to force usage of the :class:`Enum` " +"class's :meth:`__str__` and :meth:`__repr__` methods." +msgstr "" + +msgid "When to use :meth:`__new__` vs. :meth:`__init__`" msgstr "" msgid "" -":meth:`__str__` is :func:`str.__str__` to better support the *replacement of " -"existing constants* use-case. :meth:`__format__` is likewise :func:`str." -"__format__` for that same reason." +":meth:`__new__` must be used whenever you want to customize the actual value " +"of the :class:`Enum` member. Any other modifications may go in " +"either :meth:`__new__` or :meth:`__init__`, with :meth:`__init__` being " +"preferred." msgstr "" msgid "" -"*Flag* members support the bitwise operators ``&`` (*AND*), ``|`` (*OR*), " -"``^`` (*XOR*), and ``~`` (*INVERT*); the results of those operators are " -"members of the enumeration." +"For example, if you want to pass several items to the constructor, but only " +"want one of them to be the value::" msgstr "" -msgid "Returns *True* if value is in self::" +msgid "Interesting examples" msgstr "" -msgid "Returns all contained members::" +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." msgstr "" -msgid "Returns number of members in flag::" +msgid "Omitting values" msgstr "" -msgid "Returns *True* if any members in flag, *False* otherwise::" +msgid "" +"In many use-cases one doesn't care what the actual value of an enumeration " +"is. There are several ways to define this type of simple enumeration:" msgstr "" -msgid "Returns current flag binary or'ed with other::" +msgid "use instances of :class:`auto` for the value" msgstr "" -msgid "Returns current flag binary and'ed with other::" +msgid "use instances of :class:`object` as the value" msgstr "" -msgid "Returns current flag binary xor'ed with other::" +msgid "use a descriptive string as the value" msgstr "" -msgid "Returns all the flags in *type(self)* that are not in self::" +msgid "" +"use a tuple as the value and a custom :meth:`__new__` to replace the tuple " +"with an :class:`int` value" msgstr "" msgid "" -"Function used to format any remaining unnamed numeric values. Default is " -"the value's repr; common choices are :func:`hex` and :func:`oct`." +"Using any of these methods signifies to the user that these values are not " +"important, and also enables one to add, remove, or reorder members without " +"having to renumber the remaining members." msgstr "" msgid "" -"Using :class:`auto` with :class:`Flag` results in integers that are powers " -"of two, starting with ``1``." +"Whichever method you choose, you should provide a :meth:`repr` that also " +"hides the (unimportant) value::" msgstr "" -msgid "The *repr()* of zero-valued flags has changed. It is now::" +msgid "Using :class:`auto`" msgstr "" -msgid "" -"*IntFlag* is the same as *Flag*, but its members are also integers and can " -"be used anywhere that an integer can be used." +msgid "Using :class:`auto` would look like::" msgstr "" -msgid "" -"If any integer operation is performed with an *IntFlag* member, the result " -"is not an *IntFlag*::" +msgid "Using :class:`object`" msgstr "" -msgid "If a *Flag* operation is performed with an *IntFlag* member and:" +msgid "Using :class:`object` would look like::" msgstr "" -msgid "the result is a valid *IntFlag*: an *IntFlag* is returned" +msgid "Using a descriptive string" msgstr "" -msgid "" -"the result is not a valid *IntFlag*: the result depends on the " -"*FlagBoundary* setting" +msgid "Using a string as the value would look like::" +msgstr "" + +msgid "Using a custom :meth:`__new__`" msgstr "" -msgid "The *repr()* of unnamed zero-valued flags has changed. It is now:" +msgid "Using an auto-numbering :meth:`__new__` would look like::" msgstr "" msgid "" -"Using :class:`auto` with :class:`IntFlag` results in integers that are " -"powers of two, starting with ``1``." +"To make a more general purpose ``AutoNumber``, add ``*args`` to the " +"signature::" msgstr "" msgid "" -":class:`!ReprEum` uses the :meth:`repr() ` of :class:`Enum`, " -"but the :class:`str() ` of the mixed-in data type:" +"Then when you inherit from ``AutoNumber`` you can write your own " +"``__init__`` to handle any extra arguments::" msgstr "" -msgid ":meth:`!int.__str__` for :class:`IntEnum` and :class:`IntFlag`" +msgid "" +"The :meth:`__new__` method, if defined, is used during creation of the Enum " +"members; it is then replaced by Enum's :meth:`__new__` which is used after " +"class creation for lookup of existing members." msgstr "" -msgid ":meth:`!str.__str__` for :class:`StrEnum`" +msgid "OrderedEnum" msgstr "" msgid "" -"Inherit from :class:`!ReprEnum` to keep the :class:`str() / :func:" -"`format` of the mixed-in data type instead of using the :class:`Enum`-" -"default :meth:`str() `." +"An ordered enumeration that is not based on :class:`IntEnum` and so " +"maintains the normal :class:`Enum` invariants (such as not being comparable " +"to other enumerations)::" msgstr "" +msgid "DuplicateFreeEnum" +msgstr "DuplicateFreeEnum" + msgid "" -"*EnumCheck* contains the options used by the :func:`verify` decorator to " -"ensure various constraints; failed constraints result in a :exc:`ValueError`." +"Raises an error if a duplicate member name is found instead of creating an " +"alias::" msgstr "" -msgid "Ensure that each value has only one name::" +msgid "" +"This is a useful example for subclassing Enum to add or change other " +"behaviors as well as disallowing aliases. If the only desired change is " +"disallowing aliases, the :func:`unique` decorator can be used instead." msgstr "" -msgid "" -"Ensure that there are no missing values between the lowest-valued member and " -"the highest-valued member::" +msgid "Planet" msgstr "" msgid "" -"Ensure that any flag groups/masks contain only named flags -- useful when " -"values are specified instead of being generated by :func:`auto`" +"If :meth:`__new__` or :meth:`__init__` is defined the value of the enum " +"member will be passed to those methods::" msgstr "" -msgid "" -"CONTINUOUS and NAMED_FLAGS are designed to work with integer-valued members." +msgid "TimePeriod" msgstr "" -msgid "" -"*FlagBoundary* controls how out-of-range values are handled in *Flag* and " -"its subclasses." +msgid "An example to show the :attr:`_ignore_` attribute in use::" msgstr "" -msgid "" -"Out-of-range values cause a :exc:`ValueError` to be raised. This is the " -"default for :class:`Flag`::" +msgid "How are Enums different?" msgstr "" msgid "" -"Out-of-range values have invalid values removed, leaving a valid *Flag* " -"value::" +"Enums have a custom metaclass that affects many aspects of both derived Enum " +"classes and their instances (members)." +msgstr "" + +msgid "Enum Classes" msgstr "" msgid "" -"Out-of-range values lose their *Flag* membership and revert to :class:`int`. " -"This is the default for :class:`IntFlag`::" +"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 "" + +msgid "Enum Members (aka instances)" msgstr "" msgid "" -"Out-of-range values are kept, and the *Flag* membership is kept. This is " -"used for some stdlib flags:" +"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 "" + +msgid "Finer Points" msgstr "" msgid "Supported ``__dunder__`` names" msgstr "" msgid "" -":attr:`__members__` is a read-only ordered mapping of ``member_name``:" -"``member`` items. It is only available on the class." +":attr:`__members__` is a read-only ordered mapping of " +"``member_name``:``member`` items. It is only available on the class." msgstr "" msgid "" @@ -636,9 +782,9 @@ msgid "" msgstr "" msgid "" -"``_ignore_`` -- a list of names, either as a :class:`list` or a :class:" -"`str`, that will not be transformed into members, and will be removed from " -"the final class" +"``_ignore_`` -- a list of names, either as a :class:`list` or " +"a :class:`str`, that will not be transformed into members, and will be " +"removed from the final class" msgstr "" msgid "" @@ -647,113 +793,86 @@ msgid "" msgstr "" msgid "" -"``_generate_next_value_`` -- used to get an appropriate value for an enum " -"member; may be overridden" -msgstr "" - -msgid "" -"For standard :class:`Enum` classes the next value chosen is the last value " -"seen incremented by one." -msgstr "" - -msgid "" -"For :class:`Flag` classes the next value chosen will be the next highest " -"power-of-two, regardless of the last value seen." +"``_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 "" msgid "``_missing_``, ``_order_``, ``_generate_next_value_``" -msgstr "" +msgstr "``_missing_``, ``_order_``, ``_generate_next_value_``" msgid "``_ignore_``" -msgstr "" - -msgid "Utilities and Decorators" -msgstr "" +msgstr "``_ignore_``" msgid "" -"*auto* can be used in place of a value. If used, the *Enum* machinery will " -"call an *Enum*'s :meth:`_generate_next_value_` to get an appropriate value. " -"For *Enum* and *IntEnum* that appropriate value will be the last value plus " -"one; for *Flag* and *IntFlag* it will be the first power-of-two greater than " -"the last value; for *StrEnum* it will be the lower-cased version of the " -"member's name." +"To help keep Python 2 / Python 3 code in sync an :attr:`_order_` attribute " +"can be provided. It will be checked against the actual order of the " +"enumeration and raise an error if the two do not match::" msgstr "" msgid "" -"``_generate_next_value_`` can be overridden to customize the values used by " -"*auto*." +"In Python 2 code the :attr:`_order_` attribute is necessary as definition " +"order is lost before it can be recorded." msgstr "" -msgid "" -"in 3.13 the default ``\"generate_next_value_`` will always return the " -"highest member value incremented by 1, and will fail if any member is an " -"incompatible type." -msgstr "" +msgid "_Private__names" +msgstr "_Private__names" msgid "" -"A decorator similar to the built-in *property*, but specifically for " -"enumerations. It allows member attributes to have the same names as members " -"themselves." +":ref:`Private names ` will be normal attributes in " +"Python 3.11 instead of either an error or a member (depending on if the name " +"ends with an underscore). Using these names in 3.10 will issue " +"a :exc:`DeprecationWarning`." msgstr "" -msgid "" -"the *property* and the member must be defined in separate classes; for " -"example, the *value* and *name* attributes are defined in the *Enum* class, " -"and *Enum* subclasses can define members with the names ``value`` and " -"``name``." +msgid "``Enum`` member type" msgstr "" 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::" -msgstr "" - -msgid "" -"A :keyword:`class` decorator specifically for enumerations. Members from :" -"class:`EnumCheck` are used to specify which constraints should be checked on " -"the decorated enumeration." +":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)::" msgstr "" -msgid "A decorator for use in enums: its target will become a member." +msgid "This behavior is deprecated and will be removed in 3.11." msgstr "" -msgid "A decorator for use in enums: its target will not become a member." +msgid "Boolean value of ``Enum`` classes and members" msgstr "" msgid "" -"A decorator to change the :class:`str() ` and :func:`repr` of an enum " -"to show its members as belonging to the module instead of its class. Should " -"only be used when the enum members are exported to the module global " -"namespace (see :class:`re.RegexFlag` for an example)." +":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 "" -msgid "Return a list of all power-of-two integers contained in a flag *value*." +msgid ":class:`Enum` classes always evaluate as :data:`True`." msgstr "" -msgid "Notes" -msgstr "Notatki" - -msgid ":class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag`" +msgid "``Enum`` classes with methods" msgstr "" msgid "" -"These three enum types are designed to be drop-in replacements for existing " -"integer- and string-based values; as such, they have extra limitations:" +"If you give your :class:`Enum` subclass extra methods, like the `Planet`_ " +"class above, those methods will show up in a :func:`dir` of the member, but " +"not of the class::" msgstr "" -msgid "``__str__`` uses the value and not the name of the enum member" +msgid "Combining members of ``Flag``" msgstr "" msgid "" -"``__format__``, because it uses ``__str__``, will also use the value of the " -"enum member instead of its name" +"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 "" msgid "" -"If you do not need/want those limitations, you can either create your own " -"base class by mixing in the ``int`` or ``str`` type yourself::" -msgstr "" - -msgid "or you can reassign the appropriate :meth:`str`, etc., in your enum::" +"In 3.11 unnamed combinations of flags will only produce the canonical flag " +"members (aka single-value flags). So ``Color(7)`` will produce something " +"like ````." msgstr "" diff --git a/library/faulthandler.po b/library/faulthandler.po new file mode 100644 index 0000000000..b3764498a9 --- /dev/null +++ b/library/faulthandler.po @@ -0,0 +1,218 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`faulthandler` --- Dump the Python traceback" +msgstr "" + +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." +msgstr "" + +msgid "" +"The fault handler is compatible with system fault handlers like Apport or " +"the Windows fault handler. The module uses an alternative stack for signal " +"handlers if the :c:func:`sigaltstack` function is available. This allows it " +"to dump the traceback even on a stack overflow." +msgstr "" + +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 " +"tracebacks:" +msgstr "" + +msgid "" +"Only ASCII is supported. The ``backslashreplace`` error handler is used on " +"encoding." +msgstr "" + +msgid "Each string is limited to 500 characters." +msgstr "" + +msgid "" +"Only the filename, the function name and the line number are displayed. (no " +"source code)" +msgstr "" + +msgid "It is limited to 100 frames and 100 threads." +msgstr "" + +msgid "The order is reversed: the most recent call is shown first." +msgstr "" + +msgid "" +"By default, the Python traceback is written to :data:`sys.stderr`. To see " +"tracebacks, applications must be run in the terminal. A log file can " +"alternatively be passed to :func:`faulthandler.enable`." +msgstr "" + +msgid "" +"The module is implemented in C, so tracebacks can be dumped on a crash or " +"when Python is deadlocked." +msgstr "" + +msgid "" +"The :ref:`Python Development Mode ` " +"calls :func:`faulthandler.enable` at Python startup." +msgstr "" + +msgid "Module :mod:`pdb`" +msgstr "" + +msgid "Interactive source code debugger for Python programs." +msgstr "" + +msgid "Module :mod:`traceback`" +msgstr "" + +msgid "" +"Standard interface to extract, format and print stack traces of Python " +"programs." +msgstr "" + +msgid "Dumping the traceback" +msgstr "" + +msgid "" +"Dump the tracebacks of all threads into *file*. If *all_threads* is " +"``False``, dump only the current thread." +msgstr "" + +msgid "" +":func:`traceback.print_tb`, which can be used to print a traceback object." +msgstr "" + +msgid "Added support for passing file descriptor to this function." +msgstr "" + +msgid "Fault handler state" +msgstr "" + +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." +msgstr "" + +msgid "" +"The *file* must be kept open until the fault handler is disabled: " +"see :ref:`issue with file descriptors `." +msgstr "" + +msgid "On Windows, a handler for Windows exception is also installed." +msgstr "" + +msgid "" +"The dump now mentions if a garbage collector collection is running if " +"*all_threads* is true." +msgstr "" + +msgid "" +"Disable the fault handler: uninstall the signal handlers installed " +"by :func:`enable`." +msgstr "" + +msgid "Check if the fault handler is enabled." +msgstr "" + +msgid "Dumping the tracebacks after a timeout" +msgstr "" + +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 new call replaces previous parameters and resets the timeout. The timer " +"has a sub-second resolution." +msgstr "" + +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 " +"descriptors `." +msgstr "" + +msgid "This function is implemented using a watchdog thread." +msgstr "" + +msgid "This function is now always available." +msgstr "" + +msgid "Cancel the last call to :func:`dump_traceback_later`." +msgstr "" + +msgid "Dumping the traceback on a user signal" +msgstr "" + +msgid "" +"Register a user signal: install a handler for the *signum* signal to dump " +"the traceback of all threads, or of the current thread if *all_threads* is " +"``False``, into *file*. Call the previous handler if chain is ``True``." +msgstr "" + +msgid "" +"The *file* must be kept open until the signal is unregistered " +"by :func:`unregister`: see :ref:`issue with file descriptors `." +msgstr "" + +msgid "Not available on Windows." +msgstr "" + +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." +msgstr "" + +msgid "Issue with file descriptors" +msgstr "" + +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." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid "" +"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 new file mode 100644 index 0000000000..d246393636 --- /dev/null +++ b/library/fcntl.po @@ -0,0 +1,240 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`fcntl` --- The ``fcntl`` and ``ioctl`` system calls" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Operations in this module used to raise an :exc:`IOError` where they now " +"raise an :exc:`OSError`." +msgstr "" + +msgid "" +"The fcntl module now contains ``F_ADD_SEALS``, ``F_GET_SEALS``, and " +"``F_SEAL_*`` constants for sealing of :func:`os.memfd_create` file " +"descriptors." +msgstr "" + +msgid "" +"On macOS, the fcntl module exposes the ``F_GETPATH`` constant, which obtains " +"the path of a file from a file descriptor. On Linux(>=3.15), the fcntl " +"module exposes the ``F_OFD_GETLK``, ``F_OFD_SETLK`` and ``F_OFD_SETLKW`` " +"constants, which are used when working with open file description locks." +msgstr "" + +msgid "" +"On Linux >= 2.6.11, the fcntl module exposes the ``F_GETPIPE_SZ`` and " +"``F_SETPIPE_SZ`` constants, which allow to check and modify a pipe's size " +"respectively." +msgstr "" + +msgid "The module defines the following functions:" +msgstr "" + +msgid "" +"Perform the operation *cmd* on file descriptor *fd* (file objects providing " +"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." +msgstr "" + +msgid "If the :c:func:`fcntl` fails, an :exc:`OSError` is raised." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``fcntl.fcntl`` with arguments " +"``fd``, ``cmd``, ``arg``." +msgstr "" + +msgid "" +"This function is identical to the :func:`~fcntl.fcntl` function, except that " +"the argument handling is even more complicated." +msgstr "" + +msgid "" +"The *request* parameter is limited to values that can fit in 32-bits. " +"Additional constants of interest for use as the *request* argument can be " +"found in the :mod:`termios` module, under the same names as used in the " +"relevant C header files." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"In all but the last case, behaviour is as for the :func:`~fcntl.fcntl` " +"function." +msgstr "" + +msgid "" +"If a mutable buffer is passed, then the behaviour is determined by the value " +"of the *mutate_flag* parameter." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "If the :c:func:`ioctl` fails, an :exc:`OSError` exception is raised." +msgstr "" + +msgid "An example::" +msgstr "Przykład::" + +msgid "" +"Raises an :ref:`auditing event ` ``fcntl.ioctl`` with arguments " +"``fd``, ``request``, ``arg``." +msgstr "" + +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 " +"function is emulated using :c:func:`fcntl`.)" +msgstr "" + +msgid "If the :c:func:`flock` fails, an :exc:`OSError` exception is raised." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``fcntl.flock`` with arguments " +"``fd``, ``operation``." +msgstr "" + +msgid "" +"This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls. " +"*fd* is the file descriptor (file objects providing " +"a :meth:`~io.IOBase.fileno` method are accepted as well) of the file to lock " +"or unlock, and *cmd* is one of the following values:" +msgstr "" + +msgid ":const:`LOCK_UN` -- unlock" +msgstr "" + +msgid ":const:`LOCK_SH` -- acquire a shared lock" +msgstr "" + +msgid ":const:`LOCK_EX` -- acquire an exclusive lock" +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid ":const:`0` -- relative to the start of the file (:data:`os.SEEK_SET`)" +msgstr "" + +msgid "" +":const:`1` -- relative to the current buffer position (:data:`os.SEEK_CUR`)" +msgstr "" + +msgid ":const:`2` -- relative to the end of the file (:data:`os.SEEK_END`)" +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``fcntl.lockf`` with arguments " +"``fd``, ``cmd``, ``len``, ``start``, ``whence``." +msgstr "" + +msgid "Examples (all on a SVR4 compliant system)::" +msgstr "" + +msgid "" +"Note that in the first example the return value variable *rv* will hold an " +"integer value; in the second example it will hold a :class:`bytes` object. " +"The structure lay-out for the *lockdata* variable is system dependent --- " +"therefore using the :func:`flock` call may be better." +msgstr "" + +msgid "Module :mod:`os`" +msgstr "" + +msgid "" +"If the locking flags :data:`~os.O_SHLOCK` and :data:`~os.O_EXLOCK` are " +"present in the :mod:`os` module (on BSD only), the :func:`os.open` function " +"provides an alternative to the :func:`lockf` and :func:`flock` functions." +msgstr "" diff --git a/library/fnmatch.po b/library/fnmatch.po index 9623986dee..32be67e0dc 100644 --- a/library/fnmatch.po +++ b/library/fnmatch.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`fnmatch` --- Unix filename pattern matching" msgstr "" msgid "**Source code:** :source:`Lib/fnmatch.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/fnmatch.py`" msgid "" "This module provides support for Unix shell-style wildcards, which are *not* " @@ -42,25 +42,25 @@ msgid "Meaning" msgstr "Znaczenie" msgid "``*``" -msgstr "" +msgstr "``*``" msgid "matches everything" msgstr "" msgid "``?``" -msgstr "" +msgstr "``?``" msgid "matches any single character" msgstr "" msgid "``[seq]``" -msgstr "" +msgstr "``[seq]``" msgid "matches any character in *seq*" msgstr "" msgid "``[!seq]``" -msgstr "" +msgstr "``[!seq]``" msgid "matches any character not in *seq*" msgstr "" @@ -72,24 +72,18 @@ msgstr "" 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 " -"with a period are not special for this module, and are matched by the ``*`` " -"and ``?`` patterns." +"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 "" msgid "" -"Also note that :func:`functools.lru_cache` with the *maxsize* of 32768 is " -"used to cache the compiled regex patterns in the following functions: :func:" -"`fnmatch`, :func:`fnmatchcase`, :func:`filter`." -msgstr "" - -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-" -"sensitive comparison, regardless of whether that's standard for the " -"operating system." +"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 "" msgid "" @@ -98,9 +92,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -115,7 +109,7 @@ msgid "" msgstr "" msgid "Example:" -msgstr "" +msgstr "Przykład:" msgid "Module :mod:`glob`" msgstr "" diff --git a/library/ftplib.po b/library/ftplib.po new file mode 100644 index 0000000000..f41aa26aa9 --- /dev/null +++ b/library/ftplib.po @@ -0,0 +1,404 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`ftplib` --- FTP protocol client" +msgstr "" + +msgid "**Source code:** :source:`Lib/ftplib.py`" +msgstr "**Kod źródłowy:** :source:`Lib/ftplib.py`" + +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 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 FTP (File Transfer Protocol), see internet :rfc:`959`." +msgstr "" + +msgid "The default encoding is UTF-8, following :rfc:`2640`." +msgstr "" + +msgid "Here's a sample session using the :mod:`ftplib` module::" +msgstr "" + +msgid "The module defines the following items:" +msgstr "Moduł definiuje następujące pozycje:" + +msgid "" +"Return a new instance of the :class:`FTP` class. When *host* is given, the " +"method call ``connect(host)`` is made. When *user* is given, additionally " +"the method call ``login(user, passwd, acct)`` is made (where *passwd* and " +"*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. The *encoding* parameter " +"specifies the encoding for directories and filenames." +msgstr "" + +msgid "The :class:`FTP` class supports the :keyword:`with` statement, e.g.:" +msgstr "" + +msgid "Support for the :keyword:`with` statement was added." +msgstr "" + +msgid "*source_address* parameter was added." +msgstr "" + +msgid "" +"If the *timeout* parameter is set to be zero, it will raise " +"a :class:`ValueError` to prevent the creation of a non-blocking socket. The " +"*encoding* parameter was added, and the default was changed from Latin-1 to " +"UTF-8 to follow :rfc:`2640`." +msgstr "" + +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. *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 " +"best practices." +msgstr "" + +msgid "" +"*keyfile* and *certfile* are a legacy alternative to *context* -- they can " +"point to PEM-formatted private key and certificate chain files " +"(respectively) for the SSL connection." +msgstr "" + +msgid "" +"The class now supports hostname check " +"with :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +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." +msgstr "" + +msgid "Here's a sample session using the :class:`FTP_TLS` class::" +msgstr "" + +msgid "Exception raised when an unexpected reply is received from the server." +msgstr "" + +msgid "" +"Exception raised when an error code signifying a temporary error (response " +"codes in the range 400--499) is received." +msgstr "" + +msgid "" +"Exception raised when an error code signifying a permanent error (response " +"codes in the range 500--599) is received." +msgstr "" + +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." +msgstr "" + +msgid "" +"The set of all exceptions (as a tuple) that methods of :class:`FTP` " +"instances may raise as a result of problems with the FTP connection (as " +"opposed to programming errors made by the caller). This set includes the " +"four exceptions listed above as well as :exc:`OSError` and :exc:`EOFError`." +msgstr "" + +msgid "Module :mod:`netrc`" +msgstr "" + +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." +msgstr "" + +msgid "FTP Objects" +msgstr "" + +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 " +"version." +msgstr "" + +msgid ":class:`FTP` instances have the following methods:" +msgstr "" + +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 " +"connection." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``ftplib.connect`` with arguments " +"``self``, ``host``, ``port``." +msgstr "" + +msgid "" +"Return the welcome message sent by the server in reply to the initial " +"connection. (This message sometimes contains disclaimers or help " +"information that may be relevant to the user.)" +msgstr "" + +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 " +"``'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 " +"FTP commands are only allowed after the client has logged in. The *acct* " +"parameter supplies \"accounting information\"; few systems implement this." +msgstr "" + +msgid "" +"Abort a file transfer that is in progress. Using this does not always work, " +"but it's worth a try." +msgstr "" + +msgid "" +"Send a simple command string to the server and return the response string." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``ftplib.sendcmd`` with arguments " +"``self``, ``cmd``." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Retrieve a file or directory listing in the encoding specified by the " +"*encoding* parameter at initialization. *cmd* should be an appropriate " +"``RETR`` command (see :meth:`retrbinary`) or a command such as ``LIST`` or " +"``NLST`` (usually just the string ``'LIST'``). ``LIST`` retrieves a list of " +"files and information about those files. ``NLST`` retrieves a list of file " +"names. The *callback* function is called for each line with a string " +"argument containing the line with the trailing CRLF stripped. The default " +"*callback* prints the line to ``sys.stdout``." +msgstr "" + +msgid "" +"Enable \"passive\" mode if *val* is true, otherwise disable passive mode. " +"Passive mode is on by default." +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." +msgstr "" + +msgid "*rest* parameter added." +msgstr "" + +msgid "" +"Store a file in line 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." +msgstr "" + +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." +msgstr "" + +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 " +"the :meth:`transfercmd` method converts *rest* to a string with the " +"*encoding* parameter specified at initialization, 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 "" + +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, " +"``None`` will be returned as the expected size. *cmd* and *rest* means the " +"same thing as in :meth:`transfercmd`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a list of file names as returned by the ``NLST`` command. 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 ``NLST`` command." +msgstr "" + +msgid "If your server supports the command, :meth:`mlsd` offers a better API." +msgstr "" + +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``." +msgstr "" + +msgid "Rename file *fromname* on the server to *toname*." +msgstr "" + +msgid "" +"Remove the file named *filename* from the server. If successful, returns " +"the text of the response, otherwise raises :exc:`error_perm` on permission " +"errors or :exc:`error_reply` on other errors." +msgstr "" + +msgid "Set the current directory on the server." +msgstr "" + +msgid "Create a new directory on the server." +msgstr "" + +msgid "Return the pathname of the current directory on the server." +msgstr "" + +msgid "Remove the directory named *dirname* on the server." +msgstr "" + +msgid "" +"Request the size of the file named *filename* on the server. On success, " +"the size of the file is returned as an integer, otherwise ``None`` is " +"returned. Note that the ``SIZE`` command is not standardized, but is " +"supported by many common server implementations." +msgstr "" + +msgid "" +"Send a ``QUIT`` command to the server and close the connection. This is the " +"\"polite\" way to close a connection, but it may raise an exception if the " +"server responds with an error to the ``QUIT`` command. This implies a call " +"to the :meth:`close` method which renders the :class:`FTP` instance useless " +"for subsequent calls (see below)." +msgstr "" + +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 " +"connection by issuing another :meth:`login` method)." +msgstr "" + +msgid "FTP_TLS Objects" +msgstr "" + +msgid "" +":class:`FTP_TLS` class inherits from :class:`FTP`, defining these additional " +"objects:" +msgstr "" + +msgid "The SSL version to use (defaults to :attr:`ssl.PROTOCOL_SSLv23`)." +msgstr "" + +msgid "" +"Set up a secure control connection by using TLS or SSL, depending on what is " +"specified in the :attr:`ssl_version` attribute." +msgstr "" + +msgid "" +"The method now supports hostname check " +"with :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "Set up secure data connection." +msgstr "" + +msgid "Set up clear text data connection." +msgstr "" diff --git a/library/functional.po b/library/functional.po index bd8d83e8af..5851d1f7d1 100644 --- a/library/functional.po +++ b/library/functional.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Functional Programming Modules" msgstr "" diff --git a/library/functions.po b/library/functions.po index 6970c98067..0a6afa3e0f 100644 --- a/library/functions.po +++ b/library/functions.po @@ -1,31 +1,30 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Built-in Functions" -msgstr "Funkcje wbudowane" +msgstr "Wbudowane funkcje" msgid "" "The Python interpreter has a number of functions and types built into it " @@ -320,12 +319,14 @@ msgid "" "Return an :term:`asynchronous iterator` for an :term:`asynchronous " "iterable`. Equivalent to calling ``x.__aiter__()``." msgstr "" -"Zwraca :term:`asynchroniczny iterator ` dla :term:" -"`asynchronicznego iterable'a `. Ewiwalent wywołania " -"``x.__aiter__()``." +"Zwraca :term:`asynchroniczny iterator ` " +"dla :term:`asynchronicznego iterable'a `. Ekwiwalent " +"wywołania ``x.__aiter__()``." msgid "Note: Unlike :func:`iter`, :func:`aiter` has no 2-argument variant." msgstr "" +"Uwaga: W przeciwieństwie do :func:`iter`, :func:`aiter` nie ma " +"dwuargumentowego wariantu." msgid "" "Return ``True`` if all elements of the *iterable* are true (or if the " @@ -338,10 +339,15 @@ msgid "" "When awaited, return the next item from the given :term:`asynchronous " "iterator`, or *default* if given and the iterator is exhausted." msgstr "" +"W przypadku oczekiwania zwraca następny element z " +"podanego :term:`asynchronicznego iteratora ` lub " +"wartość *default*, jeżeli jest ona podana, a iterator został wyczerpany." msgid "" "This is the async variant of the :func:`next` builtin, and behaves similarly." msgstr "" +"Jest to asynchroniczny wariant wbudowanej funkcji :func:`next` i zachowuje " +"się podobnie." msgid "" "This calls the :meth:`~object.__anext__` method of *async_iterator*, " @@ -349,6 +355,11 @@ msgid "" "iterator. If *default* is given, it is returned if the iterator is " "exhausted, otherwise :exc:`StopAsyncIteration` is raised." msgstr "" +"Wywołuje on metodę :meth:`~object.__anext__` *async_iteratora*, " +"zwracając :term:`awaitable`. Oczekiwanie zwraca następną wartość iteratora. " +"Jeśli podano wartość *default*, jest ona zwracana, jeśli iterator zostanie " +"wyczerpany, w przeciwnym razie zostanie podniesiony " +"wyjątek :exc:`StopAsyncIteration`." msgid "" "Return ``True`` if any element of the *iterable* is true. If the iterable " @@ -359,10 +370,14 @@ msgstr "" 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." +"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 "" +"Tak jak :func:`repr`, zwraca ciąg znaków zawierający reprezentację obiektu, " +"ale wypisuje znaki nie-ASCII w zwracanym przez :func:`repr` ciągu przy " +"użyciu escape'ów ``\\x``, ``\\u`` lub ``\\U``. Generuje ciąg znaków podobny " +"do tego zwracanego przez :func:`repr` w Pythonie 2." msgid "" "Convert an integer number to a binary string prefixed with \"0b\". The " @@ -379,17 +394,19 @@ msgid "" "If the prefix \"0b\" is desired or not, you can use either of the following " "ways." msgstr "" +"Jeśli prefiks „0b” nie jest pożądany, możesz użyć któregoś z poniższych " +"sposobów." msgid "See also :func:`format` for more information." -msgstr "Zobacz też :func:`format` po więcej informacji." +msgstr "Zobacz też :func:`format` by uzyskać więcej informacji." 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 " -"``True`` (see :ref:`bltin-boolean-values`)." +"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 "" msgid "*x* is now a positional-only parameter." @@ -453,6 +470,9 @@ msgid "" "`, a read-only buffer of the object will be used to " "initialize the bytes array." msgstr "" +"Jeśli jest to obiekt spełniający :ref:`interfejs bufora `, " +"bufor tylko-do-odczytu obiektu zostanie użyty do zainicjowania tablicy " +"bajtów." msgid "" "If it is an *iterable*, it must be an iterable of integers in the range ``0 " @@ -470,10 +490,14 @@ msgstr "Zobacz też :ref:`binaryseq` i :ref:`typebytearray`." 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 " +"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 "" +"Zwraca nowy obiekt „bajtów”, który jest niemutowalną sekwencją liczb " +"całkowitych z zakresu ``0 <= x < 256``. :class:`bytes` jest niemutowalną " +"wersją :class:`bytearray` -- ma te same niemutujące metody i to samo " +"zachowanie indeksowania i slice'owania." msgid "" "Accordingly, constructor arguments are interpreted as for :func:`bytearray`." @@ -488,18 +512,19 @@ msgid "See also :ref:`binaryseq`, :ref:`typebytes`, and :ref:`bytes-methods`." msgstr "Zobacz też :ref:`binaryseq`, :ref:`typebytes` i :ref:`bytes-methods`." 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 " -"that classes are callable (calling a class returns a new instance); " -"instances are callable if their class has a :meth:`__call__` method." +"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 "" -"Zwraca :const:`True` jeśli argument *object* jest wywoływalny; :const:" -"`False` jeśli nie. Jeśli zwraca ``True``, wciąż możliwe jest, że wywołanie " -"się nie powiedzie, ale jeśli jest ``False``, wywołanie *obiektu* nie " -"powiedzie się nigdy. Zwróć uwagę, że klasy są wywoływalne (wywołanie klasy " -"zwraca nową instancję); instancje są wywoływalne, jeśli ich klasy mają " -"metodę :meth:`__call__`." +"Zwraca :const:`True` jeśli argument *object* jest " +"wywoływalny; :const:`False` jeśli nie. Jeśli zwraca ``True``, wciąż możliwe " +"jest, że wywołanie się nie powiedzie, ale jeśli jest ``False``, wywołanie " +"*obiektu* nie powiedzie się nigdy. Zwróć uwagę, że klasy są wywoływalne " +"(wywołanie klasy zwraca nową instancję); instancje są wywoływalne, jeśli ich " +"klasy mają metodę :meth:`__call__`." msgid "" "This function was first removed in Python 3.0 and then brought back in " @@ -522,21 +547,24 @@ msgid "" "base 16). :exc:`ValueError` will be raised if *i* is outside that range." msgstr "" "Poprawnym zakresem argumentu są wartości od 0 do 1 114 111 (0x10FFFF w " -"systemie szesnastkowym). Dla *i* poza tym zakresem zostanie rzucony :exc:" -"`ValueError`." +"systemie szesnastkowym). Dla *i* poza tym zakresem zostanie " +"rzucony :exc:`ValueError`." msgid "Transform a method into a class method." -msgstr "Przekształć metodę w metodę klasową." +msgstr "Przekształca metodę w metodę klasową." msgid "" "A class method receives the class as an implicit first argument, just like " "an instance method receives the instance. To declare a class method, use " "this idiom::" msgstr "" +"Metoda klasowa otrzymuje klasę jako niejawny pierwszy argument, podobnie jak " +"metoda instancji otrzymuje instancję. Aby zadeklarować metodę klasową, użyj " +"tego idiomu::" 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 "" "Forma ``@classmethod`` jest :term:`dekoratorem ` funkcji – " "szczegóły znajdziesz w :ref:`function`." @@ -547,10 +575,11 @@ msgid "" "class. If a class method is called for a derived class, the derived class " "object is passed as the implied first argument." msgstr "" -"Metoda klasowa może być wywoływana albo na klasie (jak ``C.f()``) albo na " -"instancji (jak ``C().f()``). Instancja jest ignorowana, brana jest pod uwagę " -"tylko jej klasa. Jeśli metoda klasowa jest wywołana dla klasy dziedziczącej, " -"obiekt klasy dziedziczącej jest przekazywany jako pierwszy argument." +"Metoda klasowa może być wywoływana albo na klasie (na przykład ``C.f()``) " +"albo na instancji (na przykład ``C().f()``). Instancja jest ignorowana, " +"brana jest pod uwagę tylko jej klasa. Jeśli metoda klasowa jest wywołana dla " +"klasy dziedziczącej, obiekt klasy dziedziczącej jest przekazywany jako " +"pierwszy argument." msgid "" "Class methods are different than C++ or Java static methods. If you want " @@ -562,8 +591,8 @@ msgstr "" "metodach klasowych znajdziesz w :ref:`types`." msgid "" -"Class methods can now wrap other :term:`descriptors ` such as :" -"func:`property`." +"Class methods can now wrap other :term:`descriptors ` such " +"as :func:`property`." msgstr "" "Metody klasowe mogą teraz opakowywać inne :term:`deskryptory `, " "takie jak :func:`property`." @@ -574,21 +603,16 @@ msgid "" "have a new ``__wrapped__`` attribute." msgstr "" -msgid "" -"Class methods can no longer wrap other :term:`descriptors ` such " -"as :func:`property`." -msgstr "" - msgid "" "Compile the *source* into a code or AST object. Code objects can be " "executed by :func:`exec` or :func:`eval`. *source* can either be a normal " "string, a byte string, or an AST object. Refer to the :mod:`ast` module " "documentation for information on how to work with AST objects." msgstr "" -"Kompiluje *źródło* do obiektu kodu lub AST. Obiekty kodu mogą wyć wykonywane " -"przy użyciu :func:`exec` lub :func:`eval`. *źródło* może być zwykłym ciągiem " -"znaków, ciągiem bajtów lub obiektem AST. W dokumentacji modułu :mod:`ast` " -"znajdziesz informacje o tym jak pracować z obiektami AST." +"Kompiluje *source* do obiektu kodu lub obiektu AST. Obiekty kodu mogą wyć " +"wykonywane przy użyciu :func:`exec` lub :func:`eval`. *source* może być " +"zwykłym ciągiem znaków, ciągiem bajtów lub obiektem AST. W dokumentacji " +"modułu :mod:`ast` znajdziesz informacje o tym jak pracować z obiektami AST." msgid "" "The *filename* argument should give the file from which the code was read; " @@ -607,33 +631,51 @@ msgid "" "evaluate to something other than ``None`` will be printed)." msgstr "" "Argument *mode* określa, jaki rodzaj kodu ma zostać skompilowany; może mieć " -"wartość ``'exec'`` jeśli *źródło* składa się z sekwencji instrukcji, " +"wartość ``'exec'`` jeśli *source* składa się z sekwencji instrukcji, " "``'eval'`` jeśli składa się z jednego wyrażenia lub ``'single'`` jeśli " "składa się z jednej interaktywnej instrukcji (w ostatnim przypadku, " "instrukcje wyrażeń, które ewaluują się do czegoś innego niż ``None``, " "zostaną wydrukowane na standardowe wyjście)." msgid "" -"The optional arguments *flags* and *dont_inherit* control which :ref:" -"`compiler options ` should be activated and which :ref:" -"`future features ` should be allowed. If neither is present (or both " -"are zero) the code is compiled with the same flags that affect the code that " -"is calling :func:`compile`. If the *flags* argument is given and " -"*dont_inherit* is not (or is zero) then the compiler options and 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 flags (future features and compiler options) " -"in the surrounding code are ignored." -msgstr "" +"The optional arguments *flags* and *dont_inherit* control " +"which :ref:`compiler options ` should be activated and " +"which :ref:`future features ` should be allowed. If neither is " +"present (or both are zero) the code is compiled with the same flags that " +"affect the code that is calling :func:`compile`. If the *flags* argument is " +"given and *dont_inherit* is not (or is zero) then the compiler options and " +"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 flags (future features and compiler " +"options) in the surrounding code are ignored." +msgstr "" +"Opcjonalne argumenty *flags* i *dont_inherit* kontrolują, które :ref:`opcje " +"kompilatora ` powinny być aktywowane i " +"które :ref:`przyszłe funkcje ` powinne być dozwolone. Jeśli żaden z " +"nich nie jest obecny (lub oba są zerowe), kod jest kompilowany z tymi samymi " +"flagami, które wpływają na kod wywołujący :func:`compile`. Jeśli argument " +"*flags* jest podany, a *dont_inherit* nie jest (lub wynosi zero), to opcje " +"kompilatora i przyszłe instrukcje określone przez argument *flags* są " +"używane w dodatku do tych, które i tak byłyby użyte. Jeśli *dont_inherit* " +"jest niezerową liczbą całkowitą, to argument *flags* jest nim – flagi " +"(przyszłe funkcje i opcje kompilatora) w otaczającym kodzie są ignorowane." msgid "" "Compiler options and future statements are specified by bits which can be " "bitwise ORed together to specify multiple options. The bitfield required to " -"specify a given future feature can be found as the :attr:`~__future__." -"_Feature.compiler_flag` attribute on the :class:`~__future__._Feature` " -"instance in the :mod:`__future__` module. :ref:`Compiler flags ` can be found in :mod:`ast` module, with ``PyCF_`` prefix." +"specify a given future feature can be found as " +"the :attr:`~__future__._Feature.compiler_flag` attribute on " +"the :class:`~__future__._Feature` instance in the :mod:`__future__` " +"module. :ref:`Compiler flags ` can be found " +"in :mod:`ast` module, with ``PyCF_`` prefix." msgstr "" +"Opcje kompilatora i przyszłe instrukcja są określone przez bity, które mogą " +"być łączone bitowo w celu określenia wielu opcji. Pole bitowe wymagane do " +"określenia danej przyszłej funkcji można znaleźć " +"jako :attr:`~__future__._Feature.compiler_flag` atrybut na " +"instancji :class:`~__future__._Feature` w " +"module :mod:`__future__` . :ref:`Flagi kompilatora ` " +"można znaleźć w module :mod:`ast` , z prefiksem ``PyCF_``." msgid "" "The argument *optimize* specifies the optimization level of the compiler; " @@ -642,16 +684,25 @@ msgid "" "optimization; ``__debug__`` is true), ``1`` (asserts are removed, " "``__debug__`` is false) or ``2`` (docstrings are removed too)." msgstr "" +"Wartość argumentu *optimize* określa poziom optymalizacji kompilatora; " +"wartość domyślna ``-1`` wybiera poziom optymalizacji interpretera podany " +"przez opcje :option:`-O`. Wyraźne poziomy to ``0`` (brak optymalizacji; " +"``__debug__`` to prawda), ``1`` (asercje są usuwane, ``__debug__`` to fałsz) " +"lub ``2`` (docstrings są również usuwane)." msgid "" "This function raises :exc:`SyntaxError` if the compiled source is invalid, " "and :exc:`ValueError` if the source contains null bytes." msgstr "" +"To funkcja rzuci :exc:`SyntaxError` jeśli skompilowane źródło jest " +"nieprawidłowe, a :exc:`ValueError` jeśli źródło zawiera bajty null." 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 "" +"Jeśli chcesz przeanalizować kod Python do jego reprezentacji AST, " +"zobacz :func:`ast.parse`." msgid "" "Raises an :ref:`auditing event ` ``compile`` with arguments " @@ -663,34 +714,52 @@ msgid "" "``source`` and ``filename``. This event may also be raised by implicit " "compilation." msgstr "" +"Rzuci zdarzenie :ref:`auditing ` ``compile`` z argumentem " +"``source`` i ``filename``. To zdarzenie może być również rzucone przez " +"niejawną kompilację." 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 "" +"Podczas kompilacji napisem z kodem wielowierszowym w trybie ``'single'`` lub " +"``'eval'``, dane wejściowe muszą być zakończone co najmniej jedną znak nowej " +"lini. Ma to na celu ułatwienie wykrywania niekompletnych i kompletnych " +"instrukcja w module :mod:`code` ." 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 " "limitations in Python's AST compiler." msgstr "" +"Możliwe jest zawieszenie interpretera Python z wystarczająco dużym/złożonym " +"napisem podczas kompilacji do obiektu AST z powodu ograniczeń głębokości " +"stosu w kompilatorze AST Python." 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." msgstr "" +"Zezwolono na używanie nowej linii w systemach Windows i Mac. Ponadto " +"wprowadzanie danych w trybie ``'exec'`` nie musi już kończyć się nową " +"linią. Dodano funkcję *optimize* parametr." msgid "" "Previously, :exc:`TypeError` was raised when null bytes were encountered in " "*source*." msgstr "" +"Poprzednio, :exc:`TypeError` został rzucony gdy napotkano bajty null w " +"*source*." msgid "" "``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable " "support for top-level ``await``, ``async for``, and ``async with``." msgstr "" +"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` można teraz przekazywać we flagach, aby " +"włączyć obsługę najwyższego poziomu ``await``, ``async for`` i ``async " +"with``." msgid "" "Return a complex number with the value *real* + *imag*\\*1j or convert a " @@ -704,10 +773,10 @@ msgid "" msgstr "" msgid "" -"For a general Python object ``x``, ``complex(x)`` delegates to ``x." -"__complex__()``. If ``__complex__()`` is not defined then it falls back to :" -"meth:`__float__`. If ``__float__()`` is not defined then it falls back to :" -"meth:`__index__`." +"For a general Python object ``x``, ``complex(x)`` delegates to " +"``x.__complex__()``. If ``__complex__()`` is not defined then it falls back " +"to :meth:`__float__`. If ``__float__()`` is not defined then it falls back " +"to :meth:`__index__`." msgstr "" msgid "" @@ -717,10 +786,12 @@ msgid "" msgstr "" msgid "The complex type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "Typ Complex został opisany na stronie :ref:`typesnumeric`." msgid "Grouping digits with underscores as in code literals is allowed." msgstr "" +"Dozwolone jest grupowanie cyfr za pomocą podkreślników, tak jak w literałach " +"kodu." msgid "" "Falls back to :meth:`__index__` if :meth:`__complex__` and :meth:`__float__` " @@ -734,22 +805,35 @@ msgid "" "example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``. *name* " "need not be a Python identifier (see :func:`setattr`)." msgstr "" +"Jest to krewny :func:`setattr`. Argumenty są obiektem i napisem. Napis musi " +"być nazwą jednego z atrybut obiektu. Funkcja usuwa nazwany atrybut, pod " +"warunkiem, że obiekt na to pozwala. Na przykład, ``delattr(x, 'foobar')`` " +"jest równoważne ``del x.foobar``. *name* nie musi być identyfikatorem Python " +"(zobacz :func:`setattr`)." msgid "" "Create a new dictionary. The :class:`dict` object is the dictionary class. " "See :class:`dict` and :ref:`typesmapping` for documentation about this class." msgstr "" +"Utwórz nowy słownik. Obiekt :class:`dict` jest klasą słownik. Dokumentacja " +"dotycząca tej klasy znajduje się na stronach :class:`dict` " +"i :ref:`typesmapping`." 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 "" +"Inne kontenery można znaleźć w klasach " +"wbudowanych :class:`list` , :class:`set` i :class:`tuple`, a także " +"moduł :mod:`collections` ." msgid "" "Without arguments, return the list of names in the current local scope. " "With an argument, attempt to return a list of valid attributes for that " "object." msgstr "" +"Bez argumentow, zwraca listę nazw w bieżącym zakresie lokalnym. Z " +"argumentów, próba zwraca listy prawidłowych atrybut dla tego obiektu." msgid "" "If the object has a method named :meth:`__dir__`, this method will be called " @@ -762,8 +846,8 @@ 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__`." +"complete and may be inaccurate when the object has a " +"custom :func:`__getattr__`." msgstr "" msgid "" @@ -771,25 +855,34 @@ msgid "" "of objects, as it attempts to produce the most relevant, rather than " "complete, information:" msgstr "" +"Mechanizm domyślny :func:`dir` zachowuje się inaczej w przypadku różnych " +"typów obiektów, ponieważ stara się uzyskać najbardziej istotne, a nie " +"kompletne informacje:" msgid "" "If the object is a module object, the list contains the names of the " "module's attributes." msgstr "" +"Jeśli obiekt jest obiektem moduł, lista zawiera nazwy obiektów moduł " +"atrybutow." msgid "" "If the object is a type or class object, the list contains the names of its " "attributes, and recursively of the attributes of its bases." msgstr "" +"Jeśli obiekt jest obiektem typu lub klasy, lista zawiera nazwy jego atrybut " +"i rekurencyjnie atrybut jego baz." msgid "" "Otherwise, the list contains the object's attributes' names, the names of " "its class's attributes, and recursively of the attributes of its class's " "base classes." msgstr "" +"W przeciwnym razie lista zawiera nazwy atrybut' obiektow, nazwy atrybut jego " +"klasy i rekurencyjnie atrybut klas bazowych jego klasy." msgid "The resulting list is sorted alphabetically. For example:" -msgstr "" +msgstr "Wynikowa lista jest posortowana alfabetycznie. Na przykład:" msgid "" "Because :func:`dir` is supplied primarily as a convenience for use at an " @@ -798,28 +891,40 @@ msgid "" "its detailed behavior may change across releases. For example, metaclass " "attributes are not in the result list when the argument is a class." msgstr "" +"Ponieważ :func:`dir` jest dostarczany głównie jako udogodnienie do użycia w " +"interaktywnym wierszu polecenia, stara się dostarczyć interesujący zestaw " +"nazw bardziej niż rygorystycznie lub konsekwentnie zdefiniowany zestaw nazw, " +"a jego szczegółowy zachowanie może się zmieniać w różnych wydaniach. Na " +"przykład, atrybut metaklasy nie znajduje się na liście wyników, gdy argument " +"jest klasą." msgid "" "Take two (non-complex) numbers as arguments and return a pair of numbers " "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 "" 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 "" +"Zwraca obiekt wyliczeniowy. *iterable* musi być sekwencją, :term:`iteratorem " +"` lub innym obiektem obsługującym iterację. " +"Metoda :meth:`~iterator.__next__` iteratora zwróconego " +"przez :func:`enumerate` zwraca dwukrotkę zawierającą licznik (od *start*, " +"który domyślnie wynosi 0) i wartości uzyskane z iteracji na argumencie " +"*iterable*." msgid "Equivalent to::" -msgstr "" +msgstr "Odpowiednik::" msgid "" "The arguments are a string and optional globals and locals. If provided, " @@ -835,12 +940,13 @@ msgid "" "reference to the dictionary of the built-in module :mod:`builtins` is " "inserted under that key before *expression* is parsed. 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:" -"`eval`. If the *locals* dictionary is omitted it defaults to the *globals* " -"dictionary. If both dictionaries are omitted, the expression is executed " -"with the *globals* and *locals* in the environment where :func:`eval` is " -"called. Note, *eval()* does not have access to the :term:`nested scopes " -"` (non-locals) in the enclosing environment." +"own ``__builtins__`` dictionary into *globals* before passing it " +"to :func:`eval`. If the *locals* dictionary is omitted it defaults to the " +"*globals* dictionary. If both dictionaries are omitted, the expression is " +"executed with the *globals* and *locals* in the environment " +"where :func:`eval` is called. Note, *eval()* does not have access to " +"the :term:`nested scopes ` (non-locals) in the enclosing " +"environment." msgstr "" msgid "" @@ -854,6 +960,11 @@ msgid "" "of a string. If the code object has been compiled with ``'exec'`` as the " "*mode* argument, :func:`eval`\\'s return value will be ``None``." msgstr "" +"Ta funkcja może być również używana do wykonywania dowolnych obiektów kodu " +"(takich jak te utworzone przez :func:`compile`). W tym przypadku należy " +"przekazać obiekt kodu zamiast napisu. Jeśli obiekt kodu został skompilowany " +"z ``'exec'`` jako *mode* argument, :func:`eval` wartością zwracana będzie " +"``None``." msgid "" "Hints: dynamic execution of statements is supported by the :func:`exec` " @@ -861,16 +972,25 @@ msgid "" "current global and local dictionary, respectively, which may be useful to " "pass around for use by :func:`eval` or :func:`exec`." msgstr "" +"Wskazówki: dynamiczne wykonywanie instrukcji jest obsługiwane " +"przez :func:`exec` funkcja . Adresy :func:`globals` i :func:`locals` " +"funkcje zwracaja określaaą odpowiednio bieżący globalny i lokalny adres " +"słownika, który może być przydatny do przekazania do użycia przez " +"adresy :func:`eval` lub :func:`exec`." msgid "" "If the given source is a string, then leading and trailing spaces and tabs " "are stripped." msgstr "" +"Jeśli podane źródło to napis, początkowe i końcowe spacje i tabulatory są " +"usuwane." msgid "" "See :func:`ast.literal_eval` for a function that can safely evaluate strings " "with expressions containing only literals." msgstr "" +"Zobacz :func:`ast.literal_eval` dla funkcj, którya może bezpiecznie ocenić " +"napis z wyrażeniami zawierającymi tylko literały." msgid "" "Raises an :ref:`auditing event ` ``exec`` with argument " @@ -881,6 +1001,8 @@ msgid "" "Raises an :ref:`auditing event ` ``exec`` with the code object as " "the argument. Code compilation events may also be raised." msgstr "" +"Rzuci zdarzenie :ref:`auditing event ` ``exec`` z obiektem kodu " +"jako argument. Zdarzenia kompilacji kodu mogą być również rzucone." msgid "" "This function supports dynamic execution of Python code. *object* must be " @@ -888,10 +1010,10 @@ 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 :ref:`file-input` in the Reference Manual). Be aware that the :" -"keyword:`nonlocal`, :keyword:`yield`, and :keyword:`return` 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``." +"the section :ref:`file-input` in the Reference Manual). Be aware that " +"the :keyword:`nonlocal`, :keyword:`yield`, and :keyword:`return` 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 "" msgid "" @@ -908,18 +1030,16 @@ msgstr "" 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 are available to the executed code by inserting your own " +"``__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`." msgstr "" - -msgid "" -"The *closure* argument specifies a closure--a tuple of cellvars. It's only " -"valid when the *object* is a code object containing free variables. The " -"length of the tuple must exactly match the number of free variables " -"referenced by the code object." -msgstr "" +"Jeśli *globals* słownik nie zawiera wartości dla klucza ``__builtins__``, " +"odwołanie do słownika z wbudowanego modułu :mod:`builtins` jest wstawiane " +"pod tym kluczem. W ten sposób można kontrolować, które wbudowane są " +"dostępne dla wykonywanego kodu, wstawiając własny ``__builtins__`` słownik " +"do *globals* przed przekazaniem go do :func:`exec`." msgid "" "The built-in functions :func:`globals` and :func:`locals` return the current " @@ -934,9 +1054,6 @@ msgid "" "on *locals* after function :func:`exec` returns." msgstr "" -msgid "Added the *closure* parameter." -msgstr "" - msgid "" "Construct an iterator from those elements of *iterable* for which *function* " "returns true. *iterable* may be either a sequence, a container which " @@ -951,6 +1068,10 @@ msgid "" "not ``None`` and ``(item for item in iterable if item)`` if function is " "``None``." msgstr "" +"Należy zauważyć, że ``filter(function, iterable)`` jest równoważne wyrażeniu " +"generator ``(item for item in iterable if function(item))`` jeśli funkcja " +"nie jest ``None`` i ``(item for item in iterable if item)`` jeśli funkcja " +"jest ``None``." msgid "" "See :func:`itertools.filterfalse` for the complementary function that " @@ -966,15 +1087,15 @@ msgid "" "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 positive or negative infinity. More precisely, the input must " -"conform to the following grammar after leading and trailing whitespace " -"characters are removed:" +"conform to the ``floatvalue`` production rule in the following grammar, " +"after leading and trailing whitespace characters are removed:" msgstr "" 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." +"Here ``digit`` is a Unicode decimal digit (character in the Unicode general " +"category ``Nd``). Case is not significant, so, for example, \"inf\", " +"\"Inf\", \"INFINITY\", and \"iNfINity\" are all acceptable spellings for " +"positive infinity." msgstr "" msgid "" @@ -985,19 +1106,19 @@ msgid "" msgstr "" msgid "" -"For a general Python object ``x``, ``float(x)`` delegates to ``x." -"__float__()``. If ``__float__()`` is not defined then it falls back to :" -"meth:`__index__`." +"For a general Python object ``x``, ``float(x)`` delegates to " +"``x.__float__()``. If ``__float__()`` is not defined then it falls back " +"to :meth:`__index__`." msgstr "" msgid "If no argument is given, ``0.0`` is returned." -msgstr "" +msgstr "Jeśli nie podano argumentu, zwracane jest ``0.0``." msgid "Examples::" -msgstr "" +msgstr "Przykłady::" msgid "The float type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "Typ float został opisany na stronie :ref:`typesnumeric`." msgid "Falls back to :meth:`__index__` if :meth:`__float__` is not defined." msgstr "" @@ -1008,36 +1129,51 @@ msgid "" "of the *value* argument; however, there is a standard formatting syntax that " "is used by most built-in types: :ref:`formatspec`." msgstr "" +"Konwertuje *value* na \"formatted\" reprezentację, kontrolowaną przez " +"*format_spec*. Interpretacja *format_spec* będzie zależeć od typu *value* " +"argument; jednak istnieje standardowa składnia formatowania, która jest " +"używana przez większość typów wbudowanych: :ref:`formatspec`." msgid "" "The default *format_spec* is an empty string which usually gives the same " "effect as calling :func:`str(value) `." msgstr "" +"Parametr domyślny *format_spec* jest pustym napisem, co zwykle daje taki sam " +"efekt jak wywołanie :func:`str(value) `." 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 "" msgid "" "``object().__format__(format_spec)`` raises :exc:`TypeError` if " "*format_spec* is not an empty string." msgstr "" +"``object().__format__(format_spec)`` rzuci :exc:`TypeError` jeśli " +"*format_spec* nie jest pustym napisem." 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 "" +"Zwraca nowy obiekt :class:`frozenset`, opcjonalnie z elementami pobranymi z " +"*iterable*. ``frozenset`` jest klasą wbudowaną. Dokumentacja dotycząca tej " +"klasy znajduje się na stronach :class:`frozenset` i :ref:`types-set`." 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 "" +"Dla innych kontenerów zobacz klasy " +"wbudowane :class:`set` , :class:`list`, :class:`tuple` i :class:`dict`, jak " +"również moduł :mod:`collections` ." msgid "" "Return the value of the named attribute of *object*. *name* must be a " @@ -1047,19 +1183,32 @@ msgid "" "exist, *default* is returned if provided, otherwise :exc:`AttributeError` is " "raised. *name* need not be a Python identifier (see :func:`setattr`)." msgstr "" +"Zwraca wartość nazwanego atrybut obiektu *object*. *name* musi być napisem. " +"Jeśli napis jest nazwą jednego z atrybut obiektu, wynikiem jest wartość tego " +"atrybutu. Na przykład, ``getattr(x, 'foobar')`` jest równoważne " +"``x.foobar``. Jeśli nazwany atrybut nie istnieje, *default* jest zwracany, " +"jeśli został podany, w przeciwnym razie :exc:`AttributeError` jest rzucony. " +"*name* nie musi być identyfikatorem Pythona (Zobacz :func:`setattr`)." msgid "" "Since :ref:`private name mangling ` happens at " "compilation time, one must manually mangle a private attribute's (attributes " -"with two leading underscores) name in order to retrieve it with :func:" -"`getattr`." +"with two leading underscores) name in order to retrieve it " +"with :func:`getattr`." msgstr "" +"Ponieważ :ref:`manipulowanie nazwami prywatnymi ` " +"odbywa się w czasie kompilacji, należy ręcznie zmanipulować nazwę prywatną " +"atrybutu (atrybuty z dwoma wiodącymi podkreśleniami), aby pobrać ją za " +"pomocą :func:`getattr`." msgid "" "Return the dictionary implementing the current module namespace. For code " "within functions, this is set when the function is defined and remains the " "same regardless of where the function is called." msgstr "" +"Zwraca słownik implementującą bieżącą przestrzeń nazw moduł. W przypadku " +"kodu w funkcja, jest on ustawiany, gdy funkcja jest zdefiniowana i pozostaje " +"taki sam niezależnie od tego, gdzie wywoływana jest funkcja." msgid "" "The arguments are an object and a string. The result is ``True`` if the " @@ -1067,6 +1216,10 @@ msgid "" "(This is implemented by calling ``getattr(object, name)`` and seeing whether " "it raises an :exc:`AttributeError` or not.)" msgstr "" +"Argumenty to obiekt i napis. Wynikiem jest ``True`` jeśli napis jest nazwą " +"jednego z obiektów atrybut, ``False`` jeśli nie. (Jest to zaimplementowane " +"poprzez wywołanie ``getattr(object, name)`` i sprawdzenie, czy rzucone " +"jest :exc:`AttributeError` )." msgid "" "Return the hash value of the object (if it has one). Hash values are " @@ -1074,11 +1227,16 @@ 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 "" +"Zwraca wartość skrótu obiektu (jeśli taki posiada). Wartości skrótu są " +"liczbami całkowitymi. Są one używane do szybkiego porównywania kluczy " +"słownika podczas wyszukiwania słownika. Wartości numeryczne, które są " +"równe, mają tę samą wartość skrótu (nawet jeśli są różnych typów, jak w " +"przypadku 1 i 1.0)." 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 "" msgid "" @@ -1089,6 +1247,13 @@ msgid "" "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." msgstr "" +"Wywołuje system pomocy wbudowany. (Ta funkcja jest przeznaczona do użytku " +"interaktywnego.) Jeśli nie podano argumentu, interaktywny system pomocy " +"uruchamia się na konsoli interpretera. Jeśli argument jest napisem, to " +"napis jest wyszukiwany jako nazwa modułu, funkcja, klasa, metoda, słowo " +"kluczowe lub temat dokumentacji, a strona pomocy jest drukowana na konsoli. " +"Jeśli argument jest jakimkolwiek innym rodzajem obiektu, generowana jest " +"strona pomocy dotycząca tego obiektu." msgid "" "Note that if a slash(/) appears in the parameter list of a function when " @@ -1096,20 +1261,28 @@ msgid "" "positional-only. For more info, see :ref:`the FAQ entry on positional-only " "parameters `." msgstr "" +"Zauważ, że jeśli ukośnik (/) pojawia się na liście parametrów w funkcji " +"podczas wywoływania :func:`help`, oznacza to, że parametry przed ukośnikiem " +"są tylko-pozycyjne. Aby uzyskać więcej informacji, zobacz :ref:`wpis FAQ na " +"temat parametrów tylko-pozycyjnych ` ." msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" +"Ta funkcja jest dodawana do przestrzeni nazw wbudowanych przez " +"moduł :mod:`site` ." msgid "" "Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures " "for callables are now more comprehensive and consistent." msgstr "" +"Zmiany do :mod:`pydoc` i :mod:`inspect` oznaczają, że zgłoszone sygnatury " +"dla callables są teraz bardziej kompleksowe i spójne." 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 "" msgid "" @@ -1117,16 +1290,23 @@ msgid "" "hexadecimal string with prefix or not, you can use either of the following " "ways:" msgstr "" +"Jeśli chcesz przekonwertować liczbe całkowita na wielką lub małą liczbę " +"szesnastkową napis z prefiksem lub bez, możesz użyć jednego z poniższych " +"sposobów:" msgid "" "See also :func:`int` for converting a hexadecimal string to an integer using " "a base of 16." msgstr "" +"Zobacz także :func:`int`, aby przekonwertować szesnastkowy napis na liczba " +"całkowita przy użyciu podstawy 16." 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 "" +"Aby uzyskać napis szesnastkowej reprezentacj dla zmiennoprzecinkowej, należy " +"użyć metody :meth:`float.hex`." msgid "" "Return the \"identity\" of an object. This is an integer which is " @@ -1134,14 +1314,20 @@ msgid "" "Two objects with non-overlapping lifetimes may have the same :func:`id` " "value." msgstr "" +"Zwraca \"tożsamość\" obiektu. Jest to liczba całkowita, która jest " +"gwarantowana jako unikalny i stały dla tego obiektu przez cały okres jego " +"życia. Dwa obiekty o nienakładających się okresach życia mogą mieć tę samą " +"wartość :func:`id`." msgid "This is the address of the object in memory." -msgstr "" +msgstr "Jest to adres obiektu w pamięci." msgid "" "Raises an :ref:`auditing event ` ``builtins.id`` with argument " "``id``." msgstr "" +"Rzuci :ref:`auditing event ` ``builtins.id`` bez argumentu " +"``id`` ." msgid "" "If the *prompt* argument is present, it is written to standard output " @@ -1149,11 +1335,17 @@ msgid "" "converts it to a string (stripping a trailing newline), and returns that. " "When EOF is read, :exc:`EOFError` is raised. Example::" msgstr "" +"Jeśli *prompt* argument jest obecny, jest on zapisywany na standardowe " +"wyjście bez końcowej nowej linii. Następnie funkcja odczytuje linię z " +"wejścia, konwertuje ją na napis (usuwając końcową nową linię) i zwraca. Po " +"odczytaniu EOF, :exc:`EOFError` jest rzucone. Przykład::" msgid "" "If the :mod:`readline` module was loaded, then :func:`input` will use it to " "provide elaborate line editing and history features." msgstr "" +"Jeśli załadowano moduł :mod:`readline` , to :func:`input` użyje go do " +"zapewnienia rozbudowanych funkcji edycji wierszy i historii." msgid "" "Raises an :ref:`auditing event ` ``builtins.input`` with argument " @@ -1164,6 +1356,8 @@ msgid "" "Raises an :ref:`auditing event ` ``builtins.input`` with argument " "``prompt`` before reading input" msgstr "" +"Rzuca :ref:`auditing event ` ``builtins.input`` z argumentem " +"``prompt`` przed odczytaniem wpisu" msgid "" "Raises an :ref:`auditing event ` ``builtins.input/result`` with " @@ -1174,52 +1368,74 @@ msgid "" "Raises an :ref:`auditing event ` ``builtins.input/result`` with " "the result after successfully reading input." msgstr "" +"Rzuca zdarzenie :ref:`auditing ` ``builtins.input/result`` z " +"wynikiem po pomyślnym odczytaniu danych wejściowych." 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:`__index__`, it returns ``x." -"__index__()``. If *x* defines :meth:`__trunc__`, it returns ``x." -"__trunc__()``. For floating point numbers, this truncates towards zero." -msgstr "" - -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 " -"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 " -"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 "" +"returns ``x.__int__()``. If *x* defines :meth:`__index__`, it returns " +"``x.__index__()``. If *x* defines :meth:`__trunc__`, it returns " +"``x.__trunc__()``. For floating point numbers, this truncates towards zero." +msgstr "" + +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 " +"integer in radix *base*. Optionally, the string can be preceded by ``+`` or " +"``-`` (with no space in between), have leading zeros, be surrounded by " +"whitespace, and have single underscores interspersed between digits." +msgstr "" + +msgid "" +"A base-n integer string contains digits, each representing a value from 0 to " +"n-1. The values 0--9 can be represented by any Unicode decimal digit. The " +"values 10--35 can be represented by ``a`` to ``z`` (or ``A`` to ``Z``). The " +"default *base* is 10. The allowed bases are 0 and 2--36. Base-2, -8, and -16 " +"strings can be optionally prefixed with ``0b``/``0B``, ``0o``/``0O``, or " +"``0x``/``0X``, as with integer literals in code. For base 0, the string is " +"interpreted in a similar way to an :ref:`integer literal in code " +"`, in that the actual base is 2, 8, 10, or 16 as determined by the " +"prefix. Base 0 also disallows leading zeros: ``int('010', 0)`` is not legal, " +"while ``int('010')`` and ``int('010', 8)`` are." +msgstr "" +"Baza-n liczba całkowita napis zawiera cyfry, z których każda reprezentuje " +"wartość od 0 do n-1. Wartości 0--9 mogą być reprezentowane przez dowolną " +"cyfrę dziesiętną Unicode. Wartości 10-35 mogą być reprezentowane przez ``a`` " +"do ``z`` (lub ``A`` do ``Z``). Domyślna baza jest 10. Dozwolone wartości " +"bazowe to 0 i 2--36. Podstawy 2, -8 i -16 napis mogą być opcjonalnie " +"poprzedzone przedrostkiem ``0b``/``0B``, ``0o``/``0O``, lub ``0x``/``0X``, " +"tak jak w przypadku literałów liczba całkowita w kodzie. Dla podstawy 0, " +"napis jest interpretowane w podobny sposób jak :ref:`liczba całkowita w " +"kodzie `, w którym rzeczywista podstawa wynosi 2, 8, 10 lub 16, " +"zgodnie z przedrostkiem. Podstawa 0 również nie zezwala na zera wiodące: " +"``int('010', 0)`` nie jest legalne, podczas gdy ``int('010')`` i " +"``int('010', 8)`` są." msgid "The integer type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "Typ liczba całkowita (integer) został opisany w :ref:`typesnumeric`." 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 "" +"Jeśli *base* nie jest instancją :class:`int` i obiekt *base* posiada " +"metodę :meth:`base.__index__ `, metoda ta jest wywoływana " +"w celu uzyskania liczba całkowitych dla bazy. Poprzednie wersje " +"używały :meth:`base.__int__ ` zamiast :meth:`base.__index__ " +"`." msgid "Falls back to :meth:`__index__` if :meth:`__int__` is not defined." msgstr "" -msgid "The delegation to :meth:`__trunc__` is deprecated." -msgstr "" - msgid "" ":class:`int` string inputs and string representations can be limited to help " "avoid denial of service attacks. A :exc:`ValueError` is raised when the " "limit is exceeded while converting a string *x* to an :class:`int` or when " -"converting an :class:`int` into a string would exceed the limit. See the :" -"ref:`integer string conversion length limitation ` " +"converting an :class:`int` into a string would exceed the limit. See " +"the :ref:`integer string conversion length limitation ` " "documentation." msgstr "" @@ -1230,67 +1446,84 @@ msgid "" "the function always returns ``False``. If *classinfo* is a tuple of type " "objects (or recursively, other such tuples) or a :ref:`types-union` of " "multiple types, 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. :exc:`TypeError` may not be raised for " -"an invalid type if an earlier check succeeds." +"types. If *classinfo* is not a type or tuple of types and such tuples, " +"a :exc:`TypeError` exception is raised." msgstr "" msgid "*classinfo* can be a :ref:`types-union`." -msgstr "" +msgstr "*classinfo* może być :ref:`types-union`." 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 (or " -"recursively, other such tuples) or a :ref:`types-union`, in which case " +"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 " +"(or recursively, other such tuples) or a :ref:`types-union`, in which case " "return ``True`` if *class* is a subclass of any entry in *classinfo*. In " "any other case, a :exc:`TypeError` exception is raised." msgstr "" +"Zwraca ``True`` jeśli *class* jest podklasą (bezpośrednią, pośrednią " +"lub :term:`wirtualną `) *classinfo*. Klasa jest " +"uważana za podklasę samej siebie. *classinfo* może być krotką obiektów klasy " +"(lub rekurencyjnie, innych takich krotek) lub :ref:`types-union`, w którym " +"to przypadku zwraca ``True`` jeśli *class* jest podklasą dowolnego wpisu w " +"*classinfo*. W każdym innym przypadku rzucany jest wyjątek :exc:`TypeError`." msgid "" "Return an :term:`iterator` object. The first argument is interpreted very " "differently depending on the presence of the second argument. Without a " -"second argument, *object* must be a collection object which supports the :" -"term:`iterable` 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." +"second argument, *object* must be a collection object which supports " +"the :term:`iterable` 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 "" msgid "See also :ref:`typeiter`." -msgstr "" +msgstr "Zobacz także :ref:`typeiter`." 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::" msgstr "" +"Jednym z przydatnych aplikacji drugiej formy :func:`iter` jest zbudowanie " +"blok czytnika. Na przykład, odczytywanie stałej szerokości bloku z binarnego " +"pliku bazy danych aż do osiągnięcia końca pliku::" 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 " "(such as a dictionary, set, or frozen set)." msgstr "" +"Zwraca długość (liczba elementów) obiektu. Obiekt argument może być " +"sekwencją (taką jak napis, bajty, krotka, lista lub zakres) lub kolekcją " +"(taką jak słownik, zbiór lub zbiór zamrożony)." msgid "" -"``len`` raises :exc:`OverflowError` on lengths larger than :data:`sys." -"maxsize`, such as :class:`range(2 ** 100) `." +"``len`` raises :exc:`OverflowError` on lengths larger " +"than :data:`sys.maxsize`, such as :class:`range(2 ** 100) `." msgstr "" +"``len`` rzuca :exc:`OverflowError` dla długości większych " +"niż :data:`sys.maxsize`, takich jak :class:`range(2 ** 100) `." msgid "" "Rather than being a function, :class:`list` is actually a mutable sequence " "type, as documented in :ref:`typesseq-list` and :ref:`typesseq`." msgstr "" +"Zamiast być funkcją, :class:`list` jest w rzeczywistości typem mutowalnej " +"(zmiennej) sekwencji, jak udokumentowano w :ref:`typesseq-list` " +"i :ref:`typesseq`." 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 "" msgid "" @@ -1300,7 +1533,7 @@ msgstr "" msgid "" "Return an iterator that applies *function* to every item of *iterable*, " -"yielding the results. If additional *iterables* arguments are passed, " +"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 " @@ -1311,49 +1544,70 @@ msgid "" "Return the largest item in an iterable or the largest of two or more " "arguments." msgstr "" +"Zwraca największy element w iterable lub największy z dwóch lub więcej " +"argumentow." msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "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 "" +"Jeśli podano jeden pozycjny argument, powinien to być :term:`iterable`. " +"Zwracany jest największy element w iterable. Jeśli podano dwa lub więcej " +"pozycyjne argumenty, zwracany jest największy z pozycyjnych argumentow." 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." +"empty. If the iterable is empty and *default* is not provided, " +"a :exc:`ValueError` is raised." msgstr "" +"Istnieją dwa opcjonalne tylko ze słowem kluczowym argument. *Kluczowy* " +"argument określa jedno-argumentowy uporządkowanie funkcji jak to używane " +"dla :meth:`list.sort`. *Domyślny* argument określa obiekt do zwracania, " +"jeśli podany iterable jest pusty. Jeśli iterable jest pusty i *domyślny* nie " +"jest podany, :exc:`ValueError` jest rzucony." 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 "" +"Jeśli wiele elementów jest maksymalnych, funkcja zwraca pierwszy napotkany " +"element. Jest to zgodne z innymi narzędziami zachowującymi stabilność " +"sortowania, takimi jak ``sorted(iterable, key=keyfunc, reverse=True)[0]`` i " +"``heapq.nlargest(1, iterable, key=keyfunc)``." msgid "The *default* keyword-only argument." msgstr "" msgid "The *key* can be ``None``." -msgstr "" +msgstr "*Kluczem* może być ``None``." 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 "" +"Zwraca obiekt \"memory view\" utworzony z podanego argumentu. Więcej " +"informacji można znaleźć na stronie :ref:`typememoryview`." msgid "" "Return the smallest item in an iterable or the smallest of two or more " "arguments." msgstr "" +"Zwraca najmniejszy element w iterable lub najmniejszy z dwóch lub więcej " +"argumentow." 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." msgstr "" +"Jeśli podano jeden pozycjny argument, powinien to być :term:`iterable`. " +"Zwracany jest najmniejszy element w iterable. Jeśli podano dwa lub więcej " +"pozycyjne argumenty, zwracany jest najmniejszy z pozycyjnych argumentow." msgid "" "If multiple items are minimal, the function returns the first one " @@ -1361,12 +1615,21 @@ msgid "" "such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1, " "iterable, key=keyfunc)``." msgstr "" +"Jeśli wiele elementów jest minimalnych, funkcja zwraca pierwszy napotkany. " +"Jest to zgodne z innymi narzędziami zachowującymi stabilność sortowania, " +"takimi jak ``sorted(iterable, key=keyfunc)[0]`` i ``heapq.nsmallest(1, " +"iterable, key=keyfunc)``." msgid "" -"Retrieve the next item from the :term:`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 :term:`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 "" +"Pobiera następny element z :term:`iterator` poprzez wywołanie jego " +"metody :meth:`~iterator.__next__`. Jeśli *domyślny* jest podany, jest " +"zwracany, jeśli iterator jest wyczerpany, w przeciwnym " +"razie :exc:`StopIteration` jest rzucony." msgid "" "Return a new featureless object. :class:`object` is a base for all classes. " @@ -1390,12 +1653,17 @@ msgid "" "If you want to convert an integer number to an octal string either with the " "prefix \"0o\" or not, you can use either of the following ways." msgstr "" +"Jeśli chcesz przekonwertować liczbę całkowita na ósemkowy napis z " +"przedrostkiem \"0o\" lub bez, możesz użyć jednego z poniższych sposobów." msgid "" "Open *file* and return a corresponding :term:`file object`. If the file " "cannot be opened, an :exc:`OSError` is raised. See :ref:`tut-files` for more " "examples of how to use this function." msgstr "" +"Otwiera *file* i zwraca odpowiedni :term:`obiekt pliku `. " +"Jeśli pliku nie da się otworzyć, rzucany jest :exc:`OSError`. Więcej " +"przykładów użycia tej funkcji można znaleźć w :ref:`tut-files`." msgid "" "*file* is a :term:`path-like object` giving the pathname (absolute or " @@ -1404,6 +1672,12 @@ msgid "" "given, it is closed when the returned I/O object is closed unless *closefd* " "is set to ``False``.)" msgstr "" +"*file* jest :term:`obiektem path-like ` podającym nazwę " +"ścieżki (bezwzględną lub względną do bieżącego katalogu roboczego) pliku, " +"który ma zostać otwarty, lub liczbą całkowitą deskryptora pliku, który ma " +"zostać opakowany. (Jeśli podano deskryptor pliku, jest on zamykany, gdy " +"zwrócony obiekt I/O jest zamykany, chyba że *closefd* jest ustawione na " +"``False``.)" msgid "" "*mode* is an optional string that specifies the mode in which the file is " @@ -1412,65 +1686,69 @@ msgid "" "already exists), ``'x'`` for exclusive creation, and ``'a'`` for appending " "(which on *some* Unix systems, means that *all* writes append to the end of " "the file regardless of the current seek position). In text mode, if " -"*encoding* is not specified the encoding used is platform-dependent: :func:" -"`locale.getencoding()` is called to get the current locale encoding. (For " -"reading and writing raw bytes use binary mode and leave *encoding* " -"unspecified.) The available modes are:" +"*encoding* is not specified the encoding used is platform-dependent: " +"``locale.getpreferredencoding(False)`` is called to get the current locale " +"encoding. (For reading and writing raw bytes use binary mode and leave " +"*encoding* unspecified.) The available modes are:" msgstr "" msgid "Character" -msgstr "" +msgstr "Znak" msgid "Meaning" msgstr "Znaczenie" msgid "``'r'``" -msgstr "" +msgstr "``'r'``" msgid "open for reading (default)" -msgstr "" +msgstr "otwarte do czytania (domyślny)" msgid "``'w'``" -msgstr "" +msgstr "``'w'``" msgid "open for writing, truncating the file first" -msgstr "" +msgstr "otworzyć do zapisu, najpierw obcinając plik" msgid "``'x'``" -msgstr "" +msgstr "``'x'``" msgid "open for exclusive creation, failing if the file already exists" msgstr "" +"otwarcie do wyłącznego utworzenia, niepowodzenie, jeśli plik już istnieje" msgid "``'a'``" -msgstr "" +msgstr "``'a'``" msgid "open for writing, appending to the end of file if it exists" -msgstr "" +msgstr "otwarte do zapisu, dołączenie do końca pliku, jeśli istnieje" msgid "``'b'``" msgstr "``'b'``" msgid "binary mode" -msgstr "" +msgstr "tryb binarny" msgid "``'t'``" -msgstr "" +msgstr "``'t'``" msgid "text mode (default)" -msgstr "" +msgstr "tryb tekstowy (domyślny)" msgid "``'+'``" -msgstr "" +msgstr "``'+'``" msgid "open for updating (reading and writing)" -msgstr "" +msgstr "otwarte na aktualizację (odczyt i zapis)" msgid "" "The default mode is ``'r'`` (open for reading text, a synonym of ``'rt'``). " "Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'`` and " "``'r+b'`` open the file with no truncation." msgstr "" +"Tryb domyślny to ``'r'`` (otwarty do odczytu tekstu, synonim ``'rt'``). " +"Tryby ``'w+'`` i ``'w+b'`` otwierają i obcinają plik. Tryby ``'r+'`` i " +"``'r+b'`` otwierają plik bez obcinania." msgid "" "As mentioned in the :ref:`io-overview`, Python distinguishes between binary " @@ -1481,12 +1759,30 @@ msgid "" "having been first decoded using a platform-dependent encoding or using the " "specified *encoding* if given." msgstr "" +"Jak wspomniano w :ref:`io-overview`, Python rozróżnia binarne i tekstowe I/" +"O. Pliki otwierane w trybie binarnym (w tym ``'b'`` w *mode* argument) " +"zwracają zawartość jako obiekty :class:`bytes` bez żadnego dekodowania. W " +"trybie tekstowym ( domyślny, lub gdy ``'t'`` jest zawarte w *mode* " +"argument), zawartość pliku jest zwracana jako :class:`str`, bajty zostały " +"najpierw zdekodowane przy użyciu kodowania zależnego od platformy lub przy " +"użyciu określonego *kodowania*, jeśli zostało podane." + +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 " +"behavior in Python 3.0. Refer to the documentation of the :ref:`newline " +"` parameter for further details." +msgstr "" msgid "" "Python doesn't depend on the underlying operating system's notion of text " "files; all the processing is done by Python itself, and is therefore " "platform-independent." msgstr "" +"Python nie zależy od pojęcia plików tekstowych w systemie operacyjnym; całe " +"przetwarzanie jest wykonywane przez Pythoan i dlatego jest niezależne od " +"platformy." msgid "" "*buffering* is an optional integer used to set the buffering policy. Pass 0 " @@ -1512,37 +1808,54 @@ msgid "" "returns ``True``) use line buffering. Other text files use the policy " "described above for binary files." msgstr "" +"\"Interaktywne\" pliki tekstowe (pliki, dla " +"których :meth:`~io.IOBase.isatty` zwraca ``True`` ) używają buforowania " +"linii. Inne pliki tekstowe używają zasad opisanych powyżej dla plików " +"binarnych." 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.getencoding` 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 "" 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* to opcjonalny napis, który określa sposób obsługi błędów kodowania " +"i dekodowania - nie może być używany w trybie binarnym. Dostępnych jest " +"wiele standardowych programów obsługi błędów (wymienionych w :ref:`error-" +"handlers`), choć każda nazwa obsługi błędów zarejestrowana " +"w :func:`codecs.register_error` jest również ważna. Standardowe nazwy " +"obejmują:" 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'`` do rzucenja wyjątek :exc:`ValueError`, jeśli wystąpi błąd " +"kodowania. Wartość domyślna z ``None`` ma ten sam efekt." msgid "" "``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " "data loss." msgstr "" +"``'ignore'`` ignoruje błędy. Należy pamiętać, że ignorowanie błędów " +"kodowania może prowadzić do utraty danych." msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." msgstr "" +"``'replace'`` powoduje wstawienie znacznika zastępczego (takiego jak " +"``'?'``) tam, gdzie występują zniekształcone dane." msgid "" "``'surrogateescape'`` will represent any incorrect bytes as low surrogate " @@ -1551,6 +1864,12 @@ msgid "" "handler is used when writing data. This is useful for processing files in " "an unknown encoding." msgstr "" +"``'surrogateescape'`` będzie reprezentować wszelkie nieprawidłowe bajty jako " +"niskie jednostki kodu zastępczego w zakresie od U+DC80 do U+DCFF. Te " +"jednostki kodu zastępczego zostaną następnie przekształcone z powrotem w te " +"same bajty, gdy podczas zapisu danych zostanie użyta obsługa błędów " +"``surrogateescape``. Jest to przydatne do przetwarzania plików w nieznanym " +"kodowaniu." msgid "" "``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " @@ -1562,17 +1881,24 @@ msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." msgstr "" +"``'backslashreplace'`` zastępuje zniekształcone dane przez sekwencje " +"specjalne Python'z ukośnikiem wstecznym." msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." msgstr "" +"``'namereplace'`` (również obsługiwane tylko podczas zapisu) zastępuje " +"nieobsługiwane znak sekwencjami ucieczki ``\\N{...}``." msgid "" "*newline* determines how to parse newline characters from the stream. It can " "be ``None``, ``''``, ``'\\n'``, ``'\\r'``, and ``'\\r\\n'``. It works as " "follows:" msgstr "" +"*newline* określa sposób analizowania nowej linii znak ze strumienia. Może " +"to być ``None``, ``''``, ``'\\n'``, ``'\\r'`` i ``'\\r\\n'``. Działa to w " +"następujący sposób:" msgid "" "When reading input from the stream, if *newline* is ``None``, universal " @@ -1583,14 +1909,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 "" +"Podczas odczytu danych wejściowych ze strumienia, jeśli *newline* to " +"``None``, włączony jest uniwersalny tryb nowych linii. Linie na wejściu " +"mogą kończyć się na ``'\\n'``, ``'\\r'``, lub ``'\\r\\n'``, które są " +"tłumaczone na ``'\\n'`` przed zwróceniem do wywołującego. Jeśli jest to " +"``''``, włączony jest uniwersalny tryb nowych linii, ale zakończenia linii " +"są zwracane do wywołującego bez tłumaczenia. Jeśli ma dowolną z pozostałych " +"legalnych wartości, linie wejściowe są kończone tylko przez podany napis, a " +"zakończenie linii jest zwracane bez tłumaczenia." 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 " -"takes place. If *newline* is any of the other legal values, any ``'\\n'`` " -"characters written are translated to the given string." +"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 "" +"Podczas zapisywania danych wyjściowych do strumienia, jeśli *newline* ma " +"wartość ``None``, wszelkie zapisane ``'\\n'`` znaki są tłumaczone na " +"systemowy domyślny separator linii, :data:`os.linesep`. Jeśli *newline* ma " +"wartość ``''`` lub ``'\\n'``, tłumaczenie nie jest wykonywane. Jeśli " +"*newline* jest dowolną z pozostałych legalnych wartości, wszelkie zapisane " +"``'\\n'`` znaki są tłumaczone na podany napis." msgid "" "If *closefd* is ``False`` and a file descriptor rather than a filename was " @@ -1598,6 +1938,10 @@ msgid "" "closed. If a filename is given *closefd* must be ``True`` (the default); " "otherwise, an error will be raised." msgstr "" +"Jeśli *closefd* ma wartość ``False`` i podano deskryptor pliku, a nie nazwę " +"pliku, to bazowy deskryptor pliku pozostanie otwarty po zamknięciu pliku. " +"Jeśli podano nazwę pliku, *closefd* musi mieć wartość ``True`` ( domyślny); " +"w przeciwnym razie wystąpi błąd." msgid "" "A custom opener can be used by passing a callable as *opener*. The " @@ -1606,34 +1950,57 @@ msgid "" "descriptor (passing :mod:`os.open` as *opener* results in functionality " "similar to passing ``None``)." msgstr "" +"Niestandardowy otwieracz może być użyty poprzez przekazanie wywołania jako " +"*opener*. Podstawowy deskryptor pliku dla obiektu pliku jest następnie " +"uzyskiwany przez wywołanie *opener* z (*file*, *flags*). *opener* musi " +"zwracać otwarty deskryptor pliku (przekazanie :mod:`os.open` jako *opener* " +"skutkuje funkcjonalnością podobną do przekazania ``None``)." msgid "The newly created file is :ref:`non-inheritable `." -msgstr "" +msgstr "Nowo utworzony plik jest :ref:`non-inheritable `." 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 "" +"Poniższy przykład używa :ref:`dir_fd ` parametr z :func:`os.open` " +"funkcji do otwarcia pliku względem danego katalogu::" 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 " -"to open a file in a binary mode with buffering, the returned class is a " +"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 "" +"disabled, the raw stream, a subclass " +"of :class:`io.RawIOBase`, :class:`io.FileIO`, is returned." +msgstr "" +"Typ :term:`file object` zwracany przez :func:`open` zależy od trybu. " +"Gdy :func:`open` jest używany do otwarcia pliku w trybie tekstowym (``'w'``, " +"``'r'``, ``'wt'``, ``'rt'``, itd.), to zwracana jest podklasa " +"klasy :class:`io.TextIOBase` (w szczególności :class:`io.TextIOWrapper`). W " +"przypadku użycia do otwarcia pliku w trybie binarnym z buforowaniem, " +"zwracana klasą jest podklasa z :class:`io.BufferedIOBase`. Dokładna klasa " +"różni się: w trybie odczytu binarnego, jest to zwracane " +"z :class:`io.BufferedReader`; w trybach zapisu binarnego i dołączania " +"binarnego, jest to zwracane z :class:`io.BufferedWriter`, a w trybie odczytu/" +"zapisu, jest to zwracane z :class:`io.BufferedRandom`. Gdy buforowanie jest " +"wyłączone, zwracany jest nieprzetworzony strumień, podklasa " +"z :class:`io.RawIOBase`, :class:`io.FileIO`." 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 "" +"Zobacz także moduły obsługę plików, takich jak :mod:`fileinput`, :mod:`io` " +"(gdzie " +"zadeklarowano :func:`open` ), :mod:`os`, :mod:`os.path`, :mod:`tempfile` " +"i :mod:`shutil`." msgid "" "Raises an :ref:`auditing event ` ``open`` with arguments ``file``, " @@ -1644,43 +2011,53 @@ msgid "" "The ``mode`` and ``flags`` arguments may have been modified or inferred from " "the original call." msgstr "" +"Adresy ``mode`` i ``flags`` argumenty mogły zostać zmodyfikowane lub " +"wywnioskowane z oryginalnego połączenia." msgid "The *opener* parameter was added." -msgstr "" +msgstr "Dodano *opener* parametr." msgid "The ``'x'`` mode was added." -msgstr "" +msgstr "Dodano tryb ``'x'``." msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." -msgstr "" +msgstr ":exc:`IOError` kiedyś był rzucony, teraz jest alias z :exc:`OSError`." msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." msgstr "" +":exc:`FileExistsError` jest teraz rzucane, jeśli plik otwarty w trybie " +"wyłącznego tworzenia (``'x'``) już istnieje." msgid "The file is now non-inheritable." +msgstr "Plik nie jest teraz dziedziczony." + +msgid "The ``'U'`` mode." msgstr "" 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 "" +"Jeśli wywołanie systemowe zostanie przerwane, a program obsługi sygnału nie " +"rzuci wyjątku, funkcji ponawia teraz wywołanie systemowe zamiast rzucenja " +"wyjątku :exc:`InterruptedError` (zobacz :pep:`475` dla uzasadnienia)." msgid "The ``'namereplace'`` error handler was added." -msgstr "" +msgstr "Dodano obsługę błędów ``'namereplace'``." msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "" +"Dodano obsługę akceptowania obiektów implementujących :class:`os.PathLike`." msgid "" -"On Windows, opening a console buffer may return a subclass of :class:`io." -"RawIOBase` other than :class:`io.FileIO`." -msgstr "" - -msgid "The ``'U'`` mode has been removed." +"On Windows, opening a console buffer may return a subclass " +"of :class:`io.RawIOBase` other than :class:`io.FileIO`." msgstr "" +"W systemie Windows, otwarcie bufora konsoli może zwracać podklasa " +"z :class:`io.RawIOBase` innego niż :class:`io.FileIO`." msgid "" "Given a string representing one Unicode character, return an integer " @@ -1688,6 +2065,10 @@ msgid "" "``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign) returns " "``8364``. This is the inverse of :func:`chr`." msgstr "" +"Biorąc pod uwagę napis reprezentujący jeden punkt kodowy Unicode znak, " +"zwracać i liczba całkowita reprezentujący punkt kodowy Unicode tego znaka. " +"Na przykład, ``ord('a')`` zwraca liczbe całkowita ``97`` i ``ord('€')`` " +"(znak euro) zwraca ``8364`` . Jest to odwrotność :func:`chr`." msgid "" "Return *base* to the power *exp*; if *mod* is present, return *base* to the " @@ -1695,6 +2076,10 @@ msgid "" "mod``). The two-argument form ``pow(base, exp)`` is equivalent to using the " "power operator: ``base**exp``." msgstr "" +"Zwraca *base* do potęgi *exp*; jeśli *mod* jest obecny, zwraca *base* do " +"potęgi *exp*, modulo *mod* (obliczane bardziej efektywnie niż ``pow(base, " +"exp) % mod``). Forma dwóchargumentow ``pow(base, exp)`` jest równoważna " +"użyciu operatora potęgi: ``base**exp``." msgid "" "The arguments must have numeric types. With mixed operand types, the " @@ -1715,24 +2100,37 @@ msgid "" "``pow(inv_base, -exp, mod)`` is returned, where *inv_base* is an inverse to " "*base* modulo *mod*." msgstr "" +"Dla operandów :class:`int` *base* i *exp*, jeśli *mod* jest obecny, *mod* " +"musi być również typu liczba całkowita i *mod* musi być niezerowy. Jeśli " +"*mod* jest obecny, a *exp* jest ujemny, *base* musi być względnie pierwsze " +"do *mod*. W takim przypadku zwracana jest wartość ``pow(inv_base, -exp, " +"mod)``, gdzie *inv_base* jest odwrotnością *base* modulo *mod*." msgid "Here's an example of computing an inverse for ``38`` modulo ``97``::" -msgstr "" +msgstr "Oto przykład obliczania odwrotności dla ``38`` modulo ``97``::" msgid "" "For :class:`int` operands, the three-argument form of ``pow`` now allows the " "second argument to be negative, permitting computation of modular inverses." msgstr "" +"W przypadku operandów :class:`int`, trzy-argumenty formy ``pow`` pozwala " +"teraz, aby drugi argument był ujemny, umożliwiając obliczanie odwrotności " +"modularnych." msgid "" "Allow keyword arguments. Formerly, only positional arguments were supported." msgstr "" +"Zezwalaj na argument nazwany. Wcześniej obsługiwane były tylko pozycyjne " +"argument." msgid "" "Print *objects* to the text stream *file*, separated by *sep* and followed " "by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as " "keyword arguments." msgstr "" +"Wypisuje *obiekty* do strumienia tekstowego *file*, oddzielone *sep* i " +"zakończone *end*. *sep*, *end*, *file* i *flush*, jeśli występują, muszą " +"być podane jako argument nazwany." msgid "" "All non-keyword arguments are converted to strings like :func:`str` does and " @@ -1741,6 +2139,11 @@ msgid "" "default values. If no *objects* are given, :func:`print` will just write " "*end*." msgstr "" +"Wszystkie non-argumenty nazwane są konwertowane na napis tak jak :func:`str` " +"i zapisywane do strumienia, oddzielone *sep* i *end*. Zarówno *sep* jak i " +"*end* muszą być napisem; mogą być również ``None``, co oznacza użycie " +"wartości domyślne. Jeśli nie podano *objects*, :func:`print` po prostu " +"zapisze *end*." msgid "" "The *file* argument must be an object with a ``write(string)`` method; if it " @@ -1748,43 +2151,60 @@ msgid "" "arguments are converted to text strings, :func:`print` cannot be used with " "binary mode file objects. For these, use ``file.write(...)`` instead." msgstr "" +"*Plik* argument musi być obiektem z metodą ``write(string)``; jeśli nie jest " +"obecny lub ``None``, zostanie użyty :data:`sys.stdout`. Ponieważ drukowane " +"argument są konwertowane na tekst napis, :func:`print` nie może być używany " +"z obiektami plików w trybie binarnym. Zamiast tego należy uży " +"``file.write(...)``." msgid "" -"Whether the output is buffered is usually determined by *file*, but if the " -"*flush* keyword argument is true, the stream is forcibly flushed." +"Output buffering is usually determined by *file*. However, if *flush* is " +"true, the stream is forcibly flushed." msgstr "" +"Buforowanie wyjścia jest zwykle określane przez *file*. Jednakże, jeśli " +"*flush* jest prawdą, strumień jest przymusowo opróżniany." msgid "Added the *flush* keyword argument." -msgstr "" +msgstr "Dodano *flush* argument nazwany." msgid "Return a property attribute." -msgstr "" +msgstr "Zwraca atrybut właściwośći." msgid "" "*fget* is a function for getting an attribute value. *fset* is a function " "for setting an attribute value. *fdel* is a function for deleting an " "attribute value. And *doc* creates a docstring for the attribute." msgstr "" +"*fget* to funkcja do pobierania wartości atrybut. *fset* to funkcja do " +"ustawiania wartości atrybut. *fdel* to funkcja do usuwania wartości " +"atrybut. Z kolei *doc* tworzy docstring dla atrybut." msgid "A typical use is to define a managed attribute ``x``::" msgstr "" +"Typowym zastosowaniem jest zdefiniowanie zarządzanego atrybutu ``x`` ::" 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 "" +"Jeśli *c* jest instancją *C*, ``c.x`` wywoła getter, ``c.x = value`` wywoła " +"setter, a ``del c.x`` deleter." 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 "" +"Jeśli zostanie podana, *doc* będzie docstringiem właściwości atrybut. W " +"przeciwnym razie właściwość skopiuje docstring *fget* (jeśli istnieje). " +"Umożliwia to łatwe tworzenie właściwości tylko do odczytu przy " +"użyciu :func:`property` jako :term:`dekorator`::" 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 "" msgid "" @@ -1799,19 +2219,26 @@ msgid "" "additional functions the same name as the original property (``x`` in this " "case.)" msgstr "" +"Ten kod jest dokładnie taki sam jak w pierwszym przykładzie. Pamiętaj, aby " +"nadać dodatkowym funkcjom takie same nazwy jak oryginalnej właściwości (w " +"tym przypadku ``x``)." msgid "" "The returned property object also has the attributes ``fget``, ``fset``, and " "``fdel`` corresponding to the constructor arguments." msgstr "" +"Zwrócony obiekt właściwości ma również atrybutow ``fget`` , ``fset`` i " +"``fdel`` odpowiadające konstruktor argumentu." msgid "The docstrings of property objects are now writeable." -msgstr "" +msgstr "Dokumentacja obiektów właściwości sa teraz zapisywalne." msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." msgstr "" +"Zamiast być funkcja, :class:`range` jest w rzeczywistości niezmiennym typem " +"sekwencji, jak udokumentowano w :ref:`typesseq-range` i :ref:`typesseq`." msgid "" "Return a string containing a printable representation of an object. For " @@ -1821,15 +2248,15 @@ msgid "" "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. " -"If :func:`sys.displayhook` is not accessible, this function will raise :exc:" -"`RuntimeError`." +"If :func:`sys.displayhook` is not accessible, this function will " +"raise :exc:`RuntimeError`." msgstr "" 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 "" msgid "" @@ -1837,6 +2264,9 @@ msgid "" "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " "input." msgstr "" +"Zwraca *liczba* zaokrąglona do *cyfr* po przecinku dziesiętnym. Jeśli " +"*ndigits* zostanie pominięte lub będzie ``None``, to zwraca najbliższa " +"liczbe całkowita wartości wejściowej." msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " @@ -1847,11 +2277,21 @@ 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 "" +"Dla typów wbudowanych wspierających :func:`round`, wartości są zaokrąglane " +"do najbliższej wielokrotności 10 do potęgi minus *ndigits*; jeśli dwie " +"wielokrotności są równie bliskie, zaokrąglanie jest wykonywane w kierunku " +"parzystego wyboru (więc, na przykład, zarówno ``round(0.5)`` jak i " +"``round(-0.5)`` są ``0``, a ``round(1.5)`` jest ``2``). Każda wartość " +"liczby całkowitej jest ważna dla *cyfr* (dodatnich, zerowych lub ujemnych). " +"zwracana wartość jest liczba całkowita jeśli *ndigits* jest pominięte lub " +"``None``. W przeciwnym razie zwracana wartość ma ten sam typ co *number*." msgid "" -"For a general Python object ``number``, ``round`` delegates to ``number." -"__round__``." +"For a general Python object ``number``, ``round`` delegates to " +"``number.__round__``." msgstr "" +"Dla ogólnego obiektu Python ``number`` , ``round`` deleguje do " +"``number.__round__``." msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " @@ -1860,18 +2300,29 @@ msgid "" "represented exactly as a float. See :ref:`tut-fp-issues` for more " "information." msgstr "" +"Zachowanie :func:`round` dla zmiennoprzecinkowych może być zaskakujący: na " +"przykład, ``round(2.675, 2)`` daje ``2.67`` zamiast oczekiwanego ``2.68``. " +"Nie jest to błąd: wynika to z faktu, że większość ułamków dziesiętnych nie " +"może być reprezentowana dokładnie jako liczba zmiennoprzecinkowa. Więcej " +"informacji można znaleźć na stronie :ref:`tut-fp-issues`." msgid "" "Return a new :class:`set` object, optionally with elements taken from " "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" "set` for documentation about this class." msgstr "" +"Zwraca nowy obiekt :class:`set`, opcjonalnie z elementami pobranymi z " +"*iterable*. ``set`` jest klasą wbudowana. Dokumentacja dotycząca tej klasy " +"znajduje się na stronach :class:`set` i :ref:`types-set`." 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 "" +"Dla innych kontenerów zobacz klasy " +"wbudowane :class:`frozenset` , :class:`list`, :class:`tuple` " +"i :class:`dict`, jak również :mod:`collections` moduł ." msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " @@ -1880,55 +2331,80 @@ msgid "" "provided the object allows it. For example, ``setattr(x, 'foobar', 123)`` " "is equivalent to ``x.foobar = 123``." msgstr "" +"Jest to odpowiednik :func:`getattr`. Argumenty to obiekt, napis i dowolna " +"wartość. Napis może nazywać istniejący atrybut lub nowy atrybut. Funkcja " +"przypisuje wartość do atrybut, pod warunkiem, że obiekt na to pozwala. Na " +"przykład, ``setattr(x, 'foobar', 123)`` jest równoważne ``x.foobar = 123``." msgid "" "*name* need not be a Python identifier as defined in :ref:`identifiers` " -"unless the object chooses to enforce that, for example in a custom :meth:" -"`~object.__getattribute__` or via :attr:`~object.__slots__`. An attribute " -"whose name is not an identifier will not be accessible using the dot " -"notation, but is accessible through :func:`getattr` etc.." +"unless the object chooses to enforce that, for example in a " +"custom :meth:`~object.__getattribute__` or via :attr:`~object.__slots__`. An " +"attribute whose name is not an identifier will not be accessible using the " +"dot notation, but is accessible through :func:`getattr` etc.." msgstr "" +"*name* nie musi być identyfikatorem Pythona zdefiniowanym " +"w :ref:`identifiers`, chyba że obiekt zdecyduje się to wymusić, na przykład " +"w niestandardowym :meth:`~object.__getattribute__` lub " +"poprzez :attr:`~object.__slots__`. Obiekt atrybut, którego nazwa nie jest " +"identyfikatorem, nie będzie dostępny przy użyciu notacji kropkowej, ale " +"będzie dostępny za pośrednictwem :func:`getattr` itd." msgid "" "Since :ref:`private name mangling ` happens at " "compilation time, one must manually mangle a private attribute's (attributes " "with two leading underscores) name in order to set it with :func:`setattr`." msgstr "" +"Ponieważ :ref:`mangling nazwy prywatnej ` ma miejsce " +"w czasie kompilacji, należy ręcznie zmienić nazwę prywatnego atrybutu " +"(atrybut z dwoma wiodącymi podkreśleniami), aby ustawić ją z :func:`setattr`." 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 NumPy and other third-party " -"packages. 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." +"``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 NumPy and other third-party packages. 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 "" msgid "Return a new sorted list from the items in *iterable*." -msgstr "" +msgstr "Zwraca nową posortowaną listę z elementów w *iterable*." msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "" +"Posiada dwa opcjonalne argumenty, które muszą być określone jako argument " +"nazwany." 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* określa funkcje jednego argumentu, który jest używany do wyodrębnienia " +"klucza porównania z każdego elementu w *iterable* (na przykład " +"``key=str.lower``). Wartość domyślna to ``None`` (bezpośrednie porównanie " +"elementów)." msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." msgstr "" +"*reverse* jest wartością logiczną. Jeśli jest ustawiona na ``True``, " +"elementy listy są sortowane tak, jakby każde porównanie było odwrócone." msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." msgstr "" +"Użyj :func:`functools.cmp_to_key` do konwersji starego stylu *cmp* funkcja " +"na *key* funkcja." msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " @@ -1936,6 +2412,11 @@ msgid "" "compare equal --- this is helpful for sorting in multiple passes (for " "example, sort by department, then by salary grade)." msgstr "" +"Wbudowana :func:`sorted` funkcja ma gwarancję stabilności. Sortowanie jest " +"stabilne, jeśli gwarantuje, że nie zmieni względnej kolejności elementów, " +"które porównują równe --- jest to pomocne przy sortowaniu w wielu " +"przejściach (na przykład sortowanie według działu, a następnie według " +"kategorii wynagrodzenia)." msgid "" "The sort algorithm uses only ``<`` comparisons between items. While " @@ -1947,23 +2428,38 @@ msgid "" "mixed type comparisons which can call reflected the :meth:`~object.__gt__` " "method." msgstr "" +"Algorytm sortowania używa tylko porównań ``<`` między elementami. Podczas " +"gdy zdefiniowanie metoda :meth:`~object.__lt__` wystarczy do " +"sortowania, :PEP:`8` zaleca zaimplementowanie wszystkich " +"sześciu :ref:`bogatych porównań `. Pomoże to uniknąć błędów " +"podczas korzystania z tych samych danych z innymi narzędziami " +"porządkującymi, takimi jak :func:`max`, które opierają się na innej metodzie " +"bazowej. Zaimplementowanie wszystkich sześciu porównań pomaga również " +"uniknąć nieporozumień w przypadku porównań typów mieszanych, które mogą " +"wywoływać metodę :meth:`~object.__gt__`." msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" +"Przykłady sortowania i krótki samouczek sortowania można znaleźć na " +"stronie :ref:`sortinghowto`." msgid "Transform a method into a static method." -msgstr "" +msgstr "Przekształcenie metody w metodę statyczną." msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" msgstr "" +"Metoda statyczna nie otrzymuje niejawnego pierwszego argumentu. Aby " +"zadeklarować metodę statyczną, użyj tego idiomu::" 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 "" +"Forma ``@staticmethod`` to :term:`dekorator` funkcji -- " +"zobacz :ref:`function` po szczegóły." msgid "" "A static method can be called either on the class (such as ``C.f()``) or on " @@ -1976,6 +2472,9 @@ msgid "" "see :func:`classmethod` for a variant that is useful for creating alternate " "class constructors." msgstr "" +"Metody statyczne w Python są podobne do tych, które można znaleźć w Java lub " +"C++. Zobacz także :func:`classmethod`, aby zapoznać się z wariantem, który " +"jest przydatny do tworzenia alternatywnych konstruktorów klas." msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " @@ -1984,9 +2483,16 @@ msgid "" "want to avoid the automatic transformation to instance method. For these " "cases, use this idiom::" msgstr "" +"Podobnie jak wszystkie dekoratory, możliwe jest również wywołanie " +"``staticmethod`` jako zwykłoł funkcje i zrobienie czegoś z jego wynikiem. " +"Jest to potrzebne w niektórych przypadkach, gdy potrzebujesz odniesienia do " +"funkcji z ciałej klasy i chcesz uniknąć automatycznej transformacji do " +"metody instancji. W takich przypadkach należy użyć tego idiomu::" msgid "For more information on static methods, see :ref:`types`." msgstr "" +"Więcej informacji na temat metod statycznych można znaleźć na " +"stronie :ref:`types`." msgid "" "Static methods now inherit the method attributes (``__module__``, " @@ -1997,51 +2503,61 @@ msgstr "" msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" +"Zwraca :class:`str` wersja of *object*. Szczegółowe informacje można " +"znaleźć na stronie :func:`str`." msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." msgstr "" +"``str`` jest wbudowanem napisem :term:`class`. Aby uzyskać ogólne " +"informacje na temat napisow, zobacz :ref:`textseq`." msgid "" "Sums *start* and the items of an *iterable* from left to right and returns " "the total. The *iterable*'s items are normally numbers, and the start value " "is not allowed to be a string." msgstr "" +"Sumuje *start* i elementy *iterable* od lewej do prawej i zwraca sumę. " +"Elementy *iterable* są zwykle liczbami, a wartością początkową nie może być " +"napisem." 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 "" msgid "The *start* parameter can be specified as a keyword argument." -msgstr "" +msgstr "Parametr *start* można określić jako argument nazwany." 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." msgstr "" +"Zwraca obiekt proxy, który deleguje wywołania metod do klasy nadrzędnej lub " +"rodzeństwa *type*. Jest to przydatne do uzyskiwania dostępu do " +"odziedziczonych metod, które zostały przesłonięte w klasie." msgid "" -"The *object_or_type* determines the :term:`method resolution order` to be " +"The *object-or-type* determines the :term:`method resolution order` to be " "searched. The search starts from the class right after the *type*." msgstr "" msgid "" -"For example, if :attr:`~class.__mro__` of *object_or_type* is ``D -> B -> C -" -"> A -> object`` and the value of *type* is ``B``, then :func:`super` " +"For example, if :attr:`~class.__mro__` of *object-or-type* is ``D -> B -> C " +"-> A -> object`` and the value of *type* is ``B``, then :func:`super` " "searches ``C -> A -> object``." msgstr "" msgid "" -"The :attr:`~class.__mro__` attribute of the *object_or_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 updated." +"The :attr:`~class.__mro__` attribute of the *object-or-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 updated." msgstr "" msgid "" @@ -2050,6 +2566,10 @@ msgid "" "If the second argument is a type, ``issubclass(type2, type)`` must be true " "(this is useful for classmethods)." msgstr "" +"Jeśli drugi argument zostanie pominięty, zwrócony superobiekt jest " +"niezwiązany. Jeśli drugi argument jest obiektem, ``isinstance(obj, type)`` " +"musi być prawda. Jeśli drugi argument jest typem, ``issubclass(type2, " +"type)`` musi być prawda (jest to przydatne dla metod klasowych)." msgid "" "There are two typical use cases for *super*. In a class hierarchy with " @@ -2057,6 +2577,11 @@ msgid "" "naming them explicitly, thus making the code more maintainable. This use " "closely parallels the use of *super* in other programming languages." msgstr "" +"Istnieją dwa typowe przypadki użycia *super*. W hierarchii klas z " +"pojedynczym dziedziczeniem, *super* może być używany do odwoływania się do " +"klas nadrzędnych bez ich jawnego nazywania, dzięki czemu kod jest łatwiejszy " +"w utrzymaniu. To zastosowanie jest bardzo podobne do użycia *super* w " +"innych językach programowania." msgid "" "The second use case is to support cooperative multiple inheritance in a " @@ -2069,15 +2594,29 @@ msgid "" "changes in the class hierarchy, and because that order can include sibling " "classes that are unknown prior to runtime)." msgstr "" +"Drugim przypadkiem użycia jest obsługa kooperatywnego dziedziczenia " +"wielokrotnego w dynamicznym środowisku wykonawczym. Ten przypadek użycia " +"jest unikalny dla Python i nie występuje w statycznie kompilowanych językach " +"lub językach, które obsługują tylko pojedyncze dziedziczenie. Umożliwia to " +"implementację \"diagramów diamentowych\", w których wiele klas bazowych " +"implementuje tę samą metodę. Dobry projekt nakazuje, aby takie " +"implementacje miały tę samą sygnaturę wywołania w każdym przypadku (ponieważ " +"kolejność wywołań jest określana w czasie wykonywania, ponieważ kolejność ta " +"dostosowuje się do zmian w hierarchii klas i ponieważ kolejność ta może " +"obejmować klasy rodzeństwa, które są nieznane przed uruchomieniem)." msgid "For both use cases, a typical superclass call looks like this::" -msgstr "" +msgstr "W obu przypadkach typowe wywołanie superklasy wygląda następująco::" msgid "" "In addition to method lookups, :func:`super` also works for attribute " "lookups. One possible use case for this is calling :term:`descriptors " "` in a parent or sibling class." msgstr "" +"Oprócz wyszukiwania metod, :func:`super` działa również dla wyszukiwania " +"atrybut. Jednym z możliwych przypadków użycia jest " +"wywołanie :term:`descriptors ` w klasie nadrzędnej lub " +"podrzędnej." msgid "" "Note that :func:`super` is implemented as part of the binding process for " @@ -2096,39 +2635,52 @@ msgid "" "necessary details to correctly retrieve the class being defined, as well as " "accessing the current instance for ordinary methods." msgstr "" +"Należy również pamiętać, że poza formą zero argument, :func:`super` nie jest " +"ograniczona do użycia wewnątrz metod. Dwie formy argumentów dokładnie " +"określają argumenty i tworzą odpowiednie odniesienia. Forma zero argumentów " +"działa tylko wewnątrz definicja klasy, ponieważ kompilator wypełnia " +"niezbędne szczegóły, aby poprawnie pobrać definiowaną klasę, a także uzyskać " +"dostęp do bieżącej instancji dla zwykłych metod." 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 "" +"Praktyczne sugestie dotyczące projektowania klas współpracujących przy " +"użyciu :func:`super` można znaleźć w `poradniku korzystania z super() " +"`_." msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." msgstr "" +"Zamiast być funkcja, :class:`tuple` jest w rzeczywistości niezmiennym typem " +"sekwencji, jak udokumentowano w :ref:`typesseq-tuple` i :ref:`typesseq`." 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 "" msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." msgstr "" +"Funckja wbudowana :func:`isinstance` jest zalecana do testowania typu " +"obiektu, ponieważ uwzględnia podklasa." 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 contains the base classes and becomes the :attr:`~class." -"__bases__` attribute; if empty, :class:`object`, the ultimate base of all " -"classes, is added. The *dict* dictionary contains attribute and method " -"definitions for the class body; it may be copied or wrapped before becoming " -"the :attr:`~object.__dict__` attribute. The following two statements create " -"identical :class:`type` objects:" +"*bases* tuple contains the base classes and becomes " +"the :attr:`~class.__bases__` attribute; if empty, :class:`object`, the " +"ultimate base of all classes, is added. The *dict* dictionary contains " +"attribute and method definitions for the class body; it may be copied or " +"wrapped before becoming the :attr:`~object.__dict__` attribute. The " +"following two statements create identical :class:`type` objects:" msgstr "" msgid "See also :ref:`bltin-type-objects`." @@ -2140,9 +2692,13 @@ msgid "" "in the same way that keywords in a class definition (besides *metaclass*) " "would." msgstr "" +"Argument nazwane dostarczone do trzech formularzy argumenty są przekazywane " +"do odpowiedniego mechanizmu metaklas " +"(zwykle :meth:`~object.__init_subclass__`) w taki sam sposób, jak słowa " +"kluczowe w definicja klasy (poza *metaclass*)." msgid "See also :ref:`class-customization`." -msgstr "" +msgstr "Zobacz także :ref:`class-customization`." msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " @@ -2155,10 +2711,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -2172,31 +2729,44 @@ msgid "" "doesn't have a :attr:`~object.__dict__` attribute (for example, if its class " "defines the :attr:`~object.__slots__` attribute)." msgstr "" +"Wyjątek :exc:`TypeError` jest rzucony, jeśli obiekt jest określony, ale nie " +"ma :attr:`~object.__dict__` atrybut (na przykład, jeśli jego klasa " +"definiuje :attr:`~object.__slots__` atrybut )." msgid "" "Iterate over several iterables in parallel, producing tuples with an item " "from each one." msgstr "" +"Iteruje równolegle po kilku iterables, tworząc krotke z elementem z każdej z " +"nich." msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "" "More formally: :func:`zip` returns an iterator of tuples, where the *i*-th " "tuple contains the *i*-th element from each of the argument iterables." msgstr "" +"Bardziej formalnie: :func:`zip` zwraca i iterator z krotka, gdzie *i*-ty " +"krotka zawiera *i*-ty element z każdego z argument iterable ." msgid "" "Another way to think of :func:`zip` is that it turns rows into columns, and " -"columns into rows. This is similar to `transposing a matrix `_." +"columns into rows. This is similar to `transposing a matrix `_." msgstr "" +"Innym sposobem myślenia o :func:`zip` jest to, że zamienia wiersze w " +"kolumny, a kolumny w wiersze. Jest to podobne do `przekształcania macierzy " +"`_." msgid "" ":func:`zip` is lazy: The elements won't be processed until the iterable is " -"iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:" -"`list`." +"iterated on, e.g. by a :keyword:`!for` loop or by wrapping in " +"a :class:`list`." msgstr "" +":func:`zip` jest leniwy: Elementy nie będą przetwarzane, dopóki iterable nie " +"zostanie poddany iteracji, np. przez pętlę :keyword:`!for` lub przez " +"zawinięcie w :class:`list`." msgid "" "One thing to consider is that the iterables passed to :func:`zip` could have " @@ -2204,43 +2774,63 @@ msgid "" "the code that prepared these iterables. Python offers three different " "approaches to dealing with this issue:" msgstr "" +"Jedną rzeczą, którą należy wziąć pod uwagę, jest to, że iterable " +"przekazywane do :func:`zip` mogą mieć różne długości; czasami z założenia, a " +"czasami z powodu błędu w kodzie, który przygotował te iterable. Python " +"oferuje trzy różne podejścia do radzenia sobie z tym problemem:" msgid "" "By default, :func:`zip` stops when the shortest iterable is exhausted. It " "will ignore the remaining items in the longer iterables, cutting off the " "result to the length of the shortest iterable::" msgstr "" +"Przez domyślny, :func:`zip` zatrzymuje się, gdy najkrótszy iterable jest " +"wyczerpany. Zignoruje pozostałe elementy w dłuższym iterable, obcinając " +"wynik do długości najkrótszego iterable::" msgid "" ":func:`zip` is often used in cases where the iterables are assumed to be of " "equal length. In such cases, it's recommended to use the ``strict=True`` " "option. Its output is the same as regular :func:`zip`::" msgstr "" +":func:`zip` jest często używana w przypadkach, gdy zakłada się, że iterable " +"są równej długości. W takich przypadkach zaleca się użycie opcji " +"``strict=True``. Jej wynik jest taki sam jak zwykłego :func:`zip`::" msgid "" -"Unlike the default behavior, it checks that the lengths of iterables are " -"identical, raising a :exc:`ValueError` if they aren't:" +"Unlike the default behavior, it raises a :exc:`ValueError` if one iterable " +"is exhausted before the others:" msgstr "" +"W przeciwieństwie do domyślnego zachowania , rzuci :exc:`ValueError`, jeśli " +"jeden iterable zostanie wyczerpany przed innymi:" msgid "" "Without the ``strict=True`` argument, any bug that results in iterables of " "different lengths will be silenced, possibly manifesting as a hard-to-find " "bug in another part of the program." msgstr "" +"Bez ``strict=True`` argumentu, każdy błąd, który skutkuje iterable o różnych " +"długościach zostanie wyciszony, prawdopodobnie objawiając się jako trudny do " +"znalezienia błąd w innej części programu." msgid "" "Shorter iterables can be padded with a constant value to make all the " -"iterables have the same length. This is done by :func:`itertools." -"zip_longest`." +"iterables have the same length. This is done " +"by :func:`itertools.zip_longest`." msgstr "" +"Krótsze iterable mogą być uzupełnione stałą wartością, aby wszystkie " +"iterable miały taką samą długość. Odbywa się to " +"poprzez :func:`itertools.zip_longest`." msgid "" "Edge cases: With a single iterable argument, :func:`zip` returns an iterator " "of 1-tuples. With no arguments, it returns an empty iterator." msgstr "" +"Przypadki brzegowe: Z pojedynczym iterable argument, :func:`zip` zwraca " +"iterator z 1-krotka. Bez argumentu, to zwraca pusty iterator." msgid "Tips and tricks:" -msgstr "" +msgstr "Wskazówki i porady:" msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " @@ -2249,19 +2839,28 @@ msgid "" "``n`` times 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 "" +"Kolejność oceny od lewej do prawej strony iterable jest gwarantowana. " +"Umożliwia to idiom grupowania serii danych w grupy o długości n przy użyciu " +"``zip(*[iter(s)]*n, strict=True)``. Powtarza to *tę samą* iterator ``n`` " +"razy, tak że każde wyjście krotka ma wynik wywołań ``n`` do iteratora. " +"Powoduje to podzielenie danych wejściowych na fragmenty o długości n." msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" msgstr "" +":func:`zip` w połączeniu z operatorem ``*`` może być użyty do rozpakowania " +"listy::" msgid "Added the ``strict`` argument." -msgstr "" +msgstr "Dodano argument ``strict`` ." msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." msgstr "" +"Jest to zaawansowana funkcja, która nie jest potrzebna w codziennym " +"programowaniu Pythona, w przeciwieństwie do :func:`importlib.import_module`." msgid "" "This function is invoked by the :keyword:`import` statement. It can be " @@ -2273,6 +2872,14 @@ msgid "" "implementation is in use. Direct use of :func:`__import__` is also " "discouraged in favor of :func:`importlib.import_module`." msgstr "" +"Ten funkcja jest wywoływany przez :keyword:`import` instrukcja . Można go " +"zastąpić (importując :mod:`builtins` moduł i przypisując do " +"``builtins.__import__``) w celu zmiany semantyki :keyword:`!import` " +"instrukcja , ale jest to **bardżo** odradzane, ponieważ zwykle prostsze jest " +"użycie haków importu (zobacz :pep:`302`), aby osiągnąć te same cele i nie " +"powoduje problemów z kodem, który zakłada, że implementacja importu domyślny " +"jest w użyciu. Bezpośrednie użycie :func:`__import__` jest również " +"odradzane na korzyść :func:`importlib.import_module`." msgid "" "The function imports the module *name*, potentially using the given " @@ -2282,6 +2889,12 @@ msgid "" "does not use its *locals* argument at all and uses its *globals* only to " "determine the package context of the :keyword:`import` statement." msgstr "" +"Funkcja importuje moduł *name*, potencjalnie używając podanych *globals* i " +"*locals* do określenia, jak interpretować nazwę w kontekście pakietu. " +"*fromlist* podaje nazwy obiektów lub submodułów, które powinny zostać " +"zaimportowane z moduł podanego przez *name*. Standardowa implementacja nie " +"używa *locals* argumentu w ogóle i używa *globals* tylko do określenia " +"kontekstu pakietu :keyword:`import` instrukcja ." msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " @@ -2290,6 +2903,10 @@ msgid "" "directory of the module calling :func:`__import__` (see :pep:`328` for the " "details)." msgstr "" +"*level* określa, czy ma być używany import bezwzględny czy względny. ``0`` " +"(domyślnie) oznacza tylko import bezwzględny. Dodatnie wartości dla *level* " +"wskazują liczbę katalogów nadrzędnych do przeszukania względem katalogu " +"moduł wywołującego :func:`__import__` (zobacz :pep:`328` dla szczegółów)." msgid "" "When the *name* variable is of the form ``package.module``, normally, the " @@ -2297,45 +2914,64 @@ msgid "" "module named by *name*. However, when a non-empty *fromlist* argument is " "given, the module named by *name* is returned." msgstr "" +"Gdy zmienna *name* ma postać ``package.module``, zwykle zwracany jest pakiet " +"najwyższego poziomu (nazwa do pierwszej kropki), *nie* moduł nazwany przez " +"*name*. Jednakże, gdy podana jest niepusta *fromlist* argument, zwracany " +"jest moduł nazwany przez *name*." msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" msgstr "" +"Na przykład, instrukcja ``import spam`` skutkuje kodem bajtowym " +"przypominającym następujący kod::" msgid "The statement ``import spam.ham`` results in this call::" -msgstr "" +msgstr "Instrukcja ``import spam.ham`` skutkuje następującym połączeniem::" 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." msgstr "" +"Zauważ, że :func:`__import__` zwraca toplevel moduł tutaj, ponieważ jest to " +"obiekt, który jest powiązany z nazwą przez :keyword:`import` instrukcje ." msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" msgstr "" +"Z drugiej strony, instrukcja ``from spam.ham import eggs, sausage as saus`` " +"skutkuje ::" msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " "respective names." msgstr "" +"Tutaj obiekt ``spam.ham`` jest zwracany z :func:`__import__`. Z tego " +"obiektu pobierane są nazwy do zaimportowania i przypisywane do odpowiednich " +"nazw." msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." msgstr "" +"Jeśli chcesz po prostu zaimportować moduł (potencjalnie w ramach pakietu) " +"według nazwy, użyj :func:`importlib.import_module`." msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." msgstr "" +"Ujemne wartości dla *level* nie są już obsługiwane (co również zmienia " +"wartość domyślny na 0)." msgid "" "When the command line options :option:`-E` or :option:`-I` are being used, " "the environment variable :envvar:`PYTHONCASEOK` is now ignored." msgstr "" +"Gdy używane są opcje wiersza poleceń :option:`-E` lub :option:`-I`, opcja " +"zmienna środowiskowa :envvar:`PYTHONCASEOK` jest teraz ignorowana." msgid "Footnotes" msgstr "Przypisy" diff --git a/library/functools.po b/library/functools.po index 5052e0c445..eae0c1cf66 100644 --- a/library/functools.po +++ b/library/functools.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "" ":mod:`functools` --- Higher-order functions and operations on callable " @@ -29,7 +29,7 @@ msgid "" msgstr "" msgid "**Source code:** :source:`Lib/functools.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/functools.py`" msgid "" "The :mod:`functools` module is for higher-order functions: functions that " @@ -48,8 +48,8 @@ msgstr "" msgid "" "Returns the same as ``lru_cache(maxsize=None)``, creating a thin wrapper " "around a dictionary lookup for the function arguments. Because it never " -"needs to evict old values, this is smaller and faster than :func:" -"`lru_cache()` with a size limit." +"needs to evict old values, this is smaller and faster " +"than :func:`lru_cache()` with a size limit." msgstr "" msgid "For example::" @@ -63,12 +63,12 @@ msgid "" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "" -"The mechanics of :func:`cached_property` are somewhat different from :func:" -"`property`. A regular property blocks attribute writes unless a setter is " -"defined. In contrast, a *cached_property* allows writes." +"The mechanics of :func:`cached_property` are somewhat different " +"from :func:`property`. A regular property blocks attribute writes unless a " +"setter is defined. In contrast, a *cached_property* allows writes." msgstr "" msgid "" @@ -107,11 +107,10 @@ msgstr "" 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 " -"comparison functions." +"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 "" msgid "" @@ -124,6 +123,8 @@ msgstr "" msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" +"Przykłady sortowania i krótki samouczek sortowania można znaleźć na " +"stronie :ref:`sortinghowto`." msgid "" "Decorator to wrap a function with a memoizing callable that saves up to the " @@ -133,14 +134,13 @@ msgstr "" msgid "" "Since a dictionary is used to cache results, the positional and keyword " -"arguments to the function must be hashable." +"arguments to the function must be :term:`hashable`." msgstr "" 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 "" msgid "" @@ -189,9 +189,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -199,11 +199,6 @@ msgid "" "out of the cache or until the cache is cleared." msgstr "" -msgid "" -"If a method is cached, the ``self`` instance argument is included in the " -"cache. See :ref:`faq-cache-method-calls`" -msgstr "" - msgid "" "An `LRU (least recently used) cache `_ works best when the " @@ -224,9 +219,10 @@ msgid "Example of an LRU cache for static web content::" msgstr "" 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 "" msgid "Added the *typed* option." @@ -279,17 +275,17 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -298,19 +294,19 @@ msgid "" msgstr "" 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 " -"the underlying descriptor, and an appropriate :ref:`partial object` returned as the result." +"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 "" 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." +"argument, even before the *args* and *keywords* supplied to " +"the :class:`partialmethod` constructor." msgstr "" msgid "" @@ -334,8 +330,8 @@ msgid "" msgstr "" msgid "" -"Transform a function into a :term:`single-dispatch ` :term:" -"`generic function`." +"Transform a function into a :term:`single-dispatch ` :term:`generic function`." msgstr "" msgid "" @@ -351,9 +347,6 @@ msgid "" "first argument automatically::" msgstr "" -msgid ":data:`types.UnionType` and :data:`typing.Union` can also be used::" -msgstr "" - msgid "" "For code which doesn't use type annotations, the appropriate type argument " "can be passed explicitly to the decorator itself::" @@ -378,9 +371,9 @@ msgstr "" 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 :" -"class:`object` type, which means it is used if no better implementation is " -"found." +"function decorated with ``@singledispatch`` is registered for the " +"base :class:`object` type, which means it is used if no better " +"implementation is found." msgstr "" msgid "" @@ -403,13 +396,8 @@ msgid "The :func:`register` attribute now supports using type annotations." msgstr "" msgid "" -"The :func:`register` attribute now supports :data:`types.UnionType` and :" -"data:`typing.Union` as type annotations." -msgstr "" - -msgid "" -"Transform a method into a :term:`single-dispatch ` :term:" -"`generic function`." +"Transform a method into a :term:`single-dispatch ` :term:`generic function`." msgstr "" msgid "" @@ -420,16 +408,16 @@ msgid "" msgstr "" msgid "" -"``@singledispatchmethod`` supports nesting with other decorators such as :" -"func:`@classmethod`. Note that to allow for ``dispatcher." -"register``, ``singledispatchmethod`` must be the *outer most* decorator. " -"Here is the ``Negator`` class with the ``neg`` methods bound to the class, " -"rather than an instance of the class::" +"``@singledispatchmethod`` supports nesting with other decorators such " +"as :func:`@classmethod`. Note that to allow for " +"``dispatcher.register``, ``singledispatchmethod`` must be the *outer most* " +"decorator. Here is the ``Negator`` class with the ``neg`` methods bound to " +"the class, rather than an instance of the class::" msgstr "" msgid "" -"The same pattern can be used for other similar decorators: :func:" -"`@staticmethod`, :func:`@abstractmethod`, " +"The same pattern can be used for other similar " +"decorators: :func:`@staticmethod`, :func:`@abstractmethod`, " "and others." msgstr "" @@ -480,8 +468,8 @@ msgstr "" 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 "" msgid "" @@ -493,8 +481,8 @@ msgstr "" 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 "" msgid ":class:`partial` Objects" @@ -523,8 +511,8 @@ msgstr "" 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." +"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/getpass.po b/library/getpass.po new file mode 100644 index 0000000000..0b068673a5 --- /dev/null +++ b/library/getpass.po @@ -0,0 +1,72 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`getpass` --- Portable password input" +msgstr "" + +msgid "**Source code:** :source:`Lib/getpass.py`" +msgstr "**Kod źródłowy:** :source:`Lib/getpass.py`" + +msgid "The :mod:`getpass` module provides two functions:" +msgstr "" + +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)." +msgstr "" + +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`." +msgstr "" + +msgid "" +"If you call getpass from within IDLE, the input may be done in the terminal " +"you launched IDLE from rather than the idle window itself." +msgstr "" + +msgid "A :exc:`UserWarning` subclass issued when password input may be echoed." +msgstr "" + +msgid "Return the \"login name\" of the user." +msgstr "" + +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." +msgstr "" + +msgid "" +"In general, this function should be preferred over :func:`os.getlogin()`." +msgstr "" diff --git a/library/gettext.po b/library/gettext.po index f63ef174f1..abe93a0744 100644 --- a/library/gettext.po +++ b/library/gettext.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`gettext` --- Multilingual internationalization services" msgstr "" msgid "**Source code:** :source:`Lib/gettext.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/gettext.py`" msgid "" "The :mod:`gettext` module provides internationalization (I18N) and " @@ -57,12 +57,13 @@ msgid "" msgstr "" 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 *language* 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 *language* is searched for in the " +"environment " +"variables :envvar:`LANGUAGE`, :envvar:`LC_ALL`, :envvar:`LC_MESSAGES`, " +"and :envvar:`LANG` respectively." msgstr "" msgid "" @@ -70,6 +71,13 @@ msgid "" "is returned. [#]_" msgstr "" +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 " +"binding is returned." +msgstr "" + 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 " @@ -112,6 +120,23 @@ msgid "" "but the translation is restricted to the given message *context*." msgstr "" +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`." +msgstr "" + +msgid "" +"These functions should be avoided in Python 3, because they return encoded " +"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." +msgstr "" + msgid "" "Note that GNU :program:`gettext` also defines a :func:`dcgettext` method, " "but this was deemed not useful and so it is currently unimplemented." @@ -143,11 +168,12 @@ 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 "" msgid "" @@ -156,7 +182,7 @@ msgid "" msgstr "" msgid ":file:`{localedir}/{language}/LC_MESSAGES/{domain}.mo`" -msgstr "" +msgstr ":file:`{localedir}/{language}/LC_MESSAGES/{domain}.mo`" msgid "" "The first such file name that exists is returned by :func:`find`. If no such " @@ -172,8 +198,9 @@ msgid "" "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 "" msgid "" @@ -185,20 +212,20 @@ msgstr "" 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 "" msgid ":exc:`IOError` used to be raised instead of :exc:`OSError`." msgstr "" -msgid "*codeset* parameter is removed." +msgid "The *codeset* parameter." msgstr "" msgid "" "This installs the function :func:`_` in Python's builtins namespace, based " -"on *domain* and *localedir* which are passed to the function :func:" -"`translation`." +"on *domain*, *localedir*, and *codeset* which are passed to the " +"function :func:`translation`." msgstr "" msgid "" @@ -218,9 +245,6 @@ msgid "" "application." msgstr "" -msgid "*names* is now a keyword-only parameter." -msgstr "" - msgid "The :class:`NullTranslations` class" msgstr "" @@ -274,6 +298,18 @@ msgid "" "Otherwise, return the translated message. Overridden in derived classes." msgstr "" +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:`set_output_charset`. Overridden in " +"derived classes." +msgstr "" + +msgid "" +"These methods should be avoided in Python 3. See the warning for " +"the :func:`lgettext` function." +msgstr "" + msgid "" "Return the \"protected\" :attr:`_info` variable, a dictionary containing the " "metadata found in the message catalog file." @@ -282,6 +318,14 @@ msgstr "" msgid "Return the encoding of the message catalog file." msgstr "" +msgid "" +"Return the encoding used to return translated messages in :meth:`.lgettext` " +"and :meth:`.lngettext`." +msgstr "" + +msgid "Change the encoding used to return translated messages." +msgstr "" + msgid "" "This method installs :meth:`.gettext` into the built-in namespace, binding " "it to ``_``." @@ -295,9 +339,9 @@ msgid "" msgstr "" 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 " -"entire application globally, and specifically the built-in namespace, " +"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 "" @@ -314,17 +358,17 @@ msgid "The :class:`GNUTranslations` class" msgstr "" 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 "" 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`` " +"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, " @@ -368,9 +412,9 @@ msgstr "" 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 "" msgid "Here is an example::" @@ -397,6 +441,13 @@ msgid "" "returned in all other cases." msgstr "" +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`." +msgstr "" + msgid "Solaris message catalog support" msgstr "" @@ -477,32 +528,33 @@ msgid "" msgstr "" 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.)" +"(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 "" 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 "" 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 "" msgid "" @@ -516,8 +568,8 @@ msgstr "" 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 "" msgid "" @@ -543,8 +595,8 @@ msgid "" msgstr "" 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 "" msgid "Changing languages on the fly" @@ -592,14 +644,15 @@ msgid "Another way to handle this is with the following example::" msgstr "" 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 " +"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`." +"totally arbitrary; it could have just as easily " +"been :func:`MarkThisStringForTranslation`." msgstr "" msgid "Acknowledgements" diff --git a/library/glob.po b/library/glob.po new file mode 100644 index 0000000000..45cde8b740 --- /dev/null +++ b/library/glob.po @@ -0,0 +1,138 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`glob` --- Unix style pathname pattern expansion" +msgstr "" + +msgid "**Source code:** :source:`Lib/glob.py`" +msgstr "**Kod źródłowy:** :source:`Lib/glob.py`" + +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 " +"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." +msgstr "" + +msgid "" +"Note that files beginning with a dot (``.``) can only be matched by patterns " +"that also start with a dot, unlike :func:`fnmatch.fnmatch` " +"or :func:`pathlib.Path.glob`. (For tilde and shell variable expansion, " +"use :func:`os.path.expanduser` and :func:`os.path.expandvars`.)" +msgstr "" + +msgid "" +"For a literal match, wrap the meta-characters in brackets. For example, " +"``'[?]'`` matches the character ``'?'``." +msgstr "" + +msgid "The :mod:`pathlib` module offers high-level path objects." +msgstr "" + +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). " +"Whether or not the results are sorted depends on the file system. If a file " +"that satisfies conditions is removed or added during the call of this " +"function, whether a path name for that file be included is unspecified." +msgstr "" + +msgid "" +"If *root_dir* is not ``None``, it should be a :term:`path-like object` " +"specifying the root directory for searching. It has the same effect " +"on :func:`glob` as changing the current directory before calling it. If " +"*pathname* is relative, the result will contain paths relative to *root_dir*." +msgstr "" + +msgid "" +"This function can support :ref:`paths relative to directory descriptors " +"` with the *dir_fd* parameter." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``glob.glob`` with arguments " +"``pathname``, ``recursive``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``glob.glob/2`` with arguments " +"``pathname``, ``recursive``, ``root_dir``, ``dir_fd``." +msgstr "" + +msgid "" +"Using the \"``**``\" pattern in large directory trees may consume an " +"inordinate amount of time." +msgstr "" + +msgid "Support for recursive globs using \"``**``\"." +msgstr "" + +msgid "Added the *root_dir* and *dir_fd* parameters." +msgstr "" + +msgid "" +"Return an :term:`iterator` which yields the same values as :func:`glob` " +"without actually storing them all simultaneously." +msgstr "" + +msgid "" +"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'``." +msgstr "" + +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. ::" +msgstr "" + +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`::" +msgstr "" + +msgid "Module :mod:`fnmatch`" +msgstr "" + +msgid "Shell-style filename (not path) expansion" +msgstr "" diff --git a/library/graphlib.po b/library/graphlib.po index 7ca2940f56..34fceb35dd 100644 --- a/library/graphlib.po +++ b/library/graphlib.po @@ -1,35 +1,37 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:06+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`graphlib` --- Functionality to operate with graph-like structures" msgstr "" msgid "**Source code:** :source:`Lib/graphlib.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/graphlib.py`" -msgid "Provides functionality to topologically sort a graph of hashable nodes." +msgid "" +"Provides functionality to topologically sort a graph of :term:`hashable` " +"nodes." msgstr "" msgid "" @@ -75,8 +77,8 @@ msgstr "" msgid "" "In case just an immediate sorting of the nodes in the graph is required and " -"no parallelism is involved, the convenience method :meth:`TopologicalSorter." -"static_order` can be used directly:" +"no parallelism is involved, the convenience " +"method :meth:`TopologicalSorter.static_order` can be used directly:" msgstr "" msgid "" @@ -86,7 +88,7 @@ msgstr "" msgid "" "Add a new node and its predecessors to the graph. Both the *node* and all " -"elements in *predecessors* must be hashable." +"elements in *predecessors* must be :term:`hashable`." msgstr "" msgid "" @@ -107,20 +109,20 @@ msgstr "" msgid "" "Mark the graph as finished and check for cycles in the graph. If any cycle " -"is detected, :exc:`CycleError` will be raised, but :meth:`~TopologicalSorter." -"get_ready` can still be used to obtain as many nodes as possible until " -"cycles block more progress. After a call to this function, the graph cannot " -"be modified, and therefore no more nodes can be added using :meth:" -"`~TopologicalSorter.add`." +"is detected, :exc:`CycleError` will be raised, " +"but :meth:`~TopologicalSorter.get_ready` can still be used to obtain as many " +"nodes as possible until cycles block more progress. After a call to this " +"function, the graph cannot be modified, and therefore no more nodes can be " +"added using :meth:`~TopologicalSorter.add`." msgstr "" msgid "" "Returns ``True`` if more progress can be made and ``False`` otherwise. " "Progress can be made if cycles do not block the resolution and either there " -"are still nodes ready that haven't yet been returned by :meth:" -"`TopologicalSorter.get_ready` or the number of nodes marked :meth:" -"`TopologicalSorter.done` is less than the number that have been returned by :" -"meth:`TopologicalSorter.get_ready`." +"are still nodes ready that haven't yet been returned " +"by :meth:`TopologicalSorter.get_ready` or the number of nodes " +"marked :meth:`TopologicalSorter.done` is less than the number that have been " +"returned by :meth:`TopologicalSorter.get_ready`." msgstr "" msgid "" @@ -132,8 +134,8 @@ msgid "it is possible to simply do::" msgstr "" msgid "" -"Raises :exc:`ValueError` if called without calling :meth:`~TopologicalSorter." -"prepare` previously." +"Raises :exc:`ValueError` if called without " +"calling :meth:`~TopologicalSorter.prepare` previously." msgstr "" msgid "" @@ -145,9 +147,9 @@ msgstr "" msgid "" "Raises :exc:`ValueError` if any node in *nodes* has already been marked as " "processed by a previous call to this method or if a node was not added to " -"the graph by using :meth:`TopologicalSorter.add`, if called without calling :" -"meth:`~TopologicalSorter.prepare` or if node has not yet been returned by :" -"meth:`~TopologicalSorter.get_ready`." +"the graph by using :meth:`TopologicalSorter.add`, if called without " +"calling :meth:`~TopologicalSorter.prepare` or if node has not yet been " +"returned by :meth:`~TopologicalSorter.get_ready`." msgstr "" msgid "" @@ -160,9 +162,9 @@ msgstr "" msgid "" "Returns an iterator object which will iterate over nodes in a topological " -"order. When using this method, :meth:`~TopologicalSorter.prepare` and :meth:" -"`~TopologicalSorter.done` should not be called. This method is equivalent " -"to::" +"order. When using this method, :meth:`~TopologicalSorter.prepare` " +"and :meth:`~TopologicalSorter.done` should not be called. This method is " +"equivalent to::" msgstr "" msgid "" @@ -172,9 +174,9 @@ msgstr "" msgid "" "This is due to the fact that \"0\" and \"2\" are in the same level in the " -"graph (they would have been returned in the same call to :meth:" -"`~TopologicalSorter.get_ready`) and the order between them is determined by " -"the order of insertion." +"graph (they would have been returned in the same call " +"to :meth:`~TopologicalSorter.get_ready`) and the order between them is " +"determined by the order of insertion." msgstr "" msgid "If any cycle is detected, :exc:`CycleError` will be raised." @@ -193,9 +195,10 @@ msgid "" msgstr "" msgid "" -"The detected cycle can be accessed via the second element in the :attr:" -"`~CycleError.args` attribute of the exception instance and consists in a " -"list of nodes, such that each node is, in the graph, an immediate " -"predecessor of the next node in the list. In the reported list, the first " -"and the last node will be the same, to make it clear that it is cyclic." +"The detected cycle can be accessed via the second element in " +"the :attr:`~CycleError.args` attribute of the exception instance and " +"consists in a list of nodes, such that each node is, in the graph, an " +"immediate predecessor of the next node in the list. In the reported list, " +"the first and the last node will be the same, to make it clear that it is " +"cyclic." msgstr "" diff --git a/library/grp.po b/library/grp.po index ec2bfd70ce..28fbbd42f4 100644 --- a/library/grp.po +++ b/library/grp.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:57+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`grp` --- The group database" msgstr "" @@ -31,15 +31,6 @@ msgid "" "all Unix versions." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "" "Group database entries are reported as a tuple-like object, whose attributes " "correspond to the members of the ``group`` structure (Attribute field below, " @@ -47,10 +38,10 @@ msgid "" msgstr "" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Meaning" msgstr "Znaczenie" @@ -59,7 +50,7 @@ msgid "0" msgstr "0" msgid "gr_name" -msgstr "" +msgstr "gr_name" msgid "the name of the group" msgstr "" @@ -68,7 +59,7 @@ msgid "1" msgstr "1" msgid "gr_passwd" -msgstr "" +msgstr "gr_passwd" msgid "the (encrypted) group password; often empty" msgstr "" @@ -77,16 +68,16 @@ msgid "2" msgstr "2" msgid "gr_gid" -msgstr "" +msgstr "gr_gid" msgid "the numerical group ID" msgstr "" msgid "3" -msgstr "" +msgstr "3" msgid "gr_mem" -msgstr "" +msgstr "gr_mem" msgid "all the group member's user names" msgstr "" @@ -97,16 +88,16 @@ msgid "" "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 "" msgid "It defines the following items:" msgstr "" 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 "" msgid "" @@ -122,7 +113,7 @@ msgid "Return a list of all available group entries, in arbitrary order." msgstr "" msgid "Module :mod:`pwd`" -msgstr "" +msgstr "Moduł :mod:`pwd`" msgid "An interface to the user database, similar to this." msgstr "" diff --git a/library/gzip.po b/library/gzip.po new file mode 100644 index 0000000000..a270229d70 --- /dev/null +++ b/library/gzip.po @@ -0,0 +1,303 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`gzip` --- Support for :program:`gzip` files" +msgstr "" + +msgid "**Source code:** :source:`Lib/gzip.py`" +msgstr "**Kod źródłowy:** :source:`Lib/gzip.py`" + +msgid "" +"This module provides a simple interface to compress and decompress files " +"just like the GNU programs :program:`gzip` and :program:`gunzip` would." +msgstr "" + +msgid "The data compression is provided by the :mod:`zlib` module." +msgstr "Kompresję danych zapewnia moduł :mod:`zlib`." + +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`." +msgstr "" + +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." +msgstr "" + +msgid "The module defines the following items:" +msgstr "Moduł definiuje następujące pozycje:" + +msgid "" +"Open a gzip-compressed file in binary or text mode, returning a :term:`file " +"object`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *mode* argument can be any of ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, " +"``'w'``, ``'wb'``, ``'x'`` or ``'xb'`` for binary mode, or ``'rt'``, " +"``'at'``, ``'wt'``, or ``'xt'`` for text mode. The default is ``'rb'``." +msgstr "" + +msgid "" +"The *compresslevel* argument is an integer from 0 to 9, as for " +"the :class:`GzipFile` constructor." +msgstr "" + +msgid "" +"For binary mode, this function is equivalent to the :class:`GzipFile` " +"constructor: ``GzipFile(filename, mode, compresslevel)``. In this case, the " +"*encoding*, *errors* and *newline* arguments must not be provided." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Added support for *filename* being a file object, support for text mode, and " +"the *encoding*, *errors* and *newline* arguments." +msgstr "" + +msgid "Added support for the ``'x'``, ``'xb'`` and ``'xt'`` modes." +msgstr "" + +msgid "Accepts a :term:`path-like object`." +msgstr "" + +msgid "" +"An exception raised for invalid gzip files. It " +"inherits :exc:`OSError`. :exc:`EOFError` and :exc:`zlib.error` can also be " +"raised for invalid gzip files." +msgstr "" + +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-" +"trivial value." +msgstr "" + +msgid "" +"The new class instance is based on *fileobj*, which can be a regular file, " +"an :class:`io.BytesIO` object, or any other object which simulates a file. " +"It defaults to ``None``, in which case *filename* is opened to provide a " +"file object." +msgstr "" + +msgid "" +"When *fileobj* is not ``None``, the *filename* argument is only used to be " +"included in the :program:`gzip` file header, which may include the original " +"filename of the uncompressed file. It defaults to the filename of " +"*fileobj*, if discernible; otherwise, it defaults to the empty string, and " +"in this case the original filename is not included in the header." +msgstr "" + +msgid "" +"The *mode* argument can be any of ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, " +"``'w'``, ``'wb'``, ``'x'``, or ``'xb'``, depending on whether the file will " +"be read or written. The default is the mode of *fileobj* if discernible; " +"otherwise, the default is ``'rb'``. In future Python releases the mode of " +"*fileobj* will not be used. It is better to always specify *mode* for " +"writing." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The *compresslevel* argument is an integer from ``0`` to ``9`` controlling " +"the level of compression; ``1`` is fastest and produces the least " +"compression, and ``9`` is slowest and produces the most compression. ``0`` " +"is no compression. The default is ``9``." +msgstr "" + +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 " +"is used. See the :attr:`mtime` attribute for more details." +msgstr "" + +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." +msgstr "" + +msgid "" +":class:`GzipFile` supports the :class:`io.BufferedIOBase` interface, " +"including iteration and the :keyword:`with` statement. Only " +"the :meth:`truncate` method isn't implemented." +msgstr "" + +msgid ":class:`GzipFile` also provides the following method and attribute:" +msgstr "" + +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 " +"number of bytes returned may be more or less than requested." +msgstr "" + +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)." +msgstr "" + +msgid "" +"When decompressing, the value of the last modification time field in the " +"most recently read header may be read from this attribute, as an integer. " +"The initial value before reading any headers is ``None``." +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`." +msgstr "" + +msgid "" +"The path to the gzip file on disk, as a :class:`str` or :class:`bytes`. " +"Equivalent to the output of :func:`os.fspath` on the original input path, " +"with no other normalization, resolution or expansion." +msgstr "" + +msgid "" +"Support for the :keyword:`with` statement was added, along with the *mtime* " +"constructor argument and :attr:`mtime` attribute." +msgstr "" + +msgid "Support for zero-padded and unseekable files was added." +msgstr "" + +msgid "The :meth:`io.BufferedIOBase.read1` method is now implemented." +msgstr "" + +msgid "Added support for the ``'x'`` and ``'xb'`` modes." +msgstr "" + +msgid "" +"Added support for writing arbitrary :term:`bytes-like objects `. The :meth:`~io.BufferedIOBase.read` method now accepts an argument " +"of ``None``." +msgstr "" + +msgid "" +"Opening :class:`GzipFile` for writing without specifying the *mode* argument " +"is deprecated." +msgstr "" + +msgid "" +"Compress the *data*, returning a :class:`bytes` object containing the " +"compressed data. *compresslevel* and *mtime* have the same meaning as in " +"the :class:`GzipFile` constructor above." +msgstr "" + +msgid "Added the *mtime* parameter for reproducible output." +msgstr "" + +msgid "" +"Decompress the *data*, returning a :class:`bytes` object containing the " +"uncompressed data." +msgstr "" + +msgid "Examples of usage" +msgstr "Przykłady użycia" + +msgid "Example of how to read a compressed file::" +msgstr "Przykład odczytu skompresowanego pliku::" + +msgid "Example of how to create a compressed GZIP file::" +msgstr "Przykład tworzenia skompresowanego pliku GZIP:" + +msgid "Example of how to GZIP compress an existing file::" +msgstr "Przykład kompresji GZIP istniejącego pliku::" + +msgid "Example of how to GZIP compress a binary string::" +msgstr "Przykład kompresji ciągu binarnego przez GZIP::" + +msgid "Module :mod:`zlib`" +msgstr "Moduł :mod:`zlib`" + +msgid "" +"The basic data compression module needed to support the :program:`gzip` file " +"format." +msgstr "" + +msgid "Command Line Interface" +msgstr "Interfejs linii komend" + +msgid "" +"The :mod:`gzip` module provides a simple command line interface to compress " +"or decompress files." +msgstr "" + +msgid "Once executed the :mod:`gzip` module keeps the input file(s)." +msgstr "" + +msgid "" +"Add a new command line interface with a usage. By default, when you will " +"execute the CLI, the default compression level is 6." +msgstr "" + +msgid "Command line options" +msgstr "Opcje wiersza poleceń" + +msgid "If *file* is not specified, read from :attr:`sys.stdin`." +msgstr "Jeśli nie określono *pliku*, odczytaj z :attr:`sys.stdin`." + +msgid "Indicates the fastest compression method (less compression)." +msgstr "Wskazuje najszybszą metodę kompresji (mniejsza kompresja)." + +msgid "Indicates the slowest compression method (best compression)." +msgstr "Wskazuje najwolniejszą metodę kompresji (najlepsza kompresja)." + +msgid "Decompress the given file." +msgstr "Rozpakuj podany plik." + +msgid "Show the help message." +msgstr "Pokaż komunikat pomocy." diff --git a/library/hashlib.po b/library/hashlib.po index 1049a47cf5..c3dd3d3d55 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -1,34 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Michał Biliński , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Michał Biliński , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`hashlib` --- Secure hashes and message digests" msgstr "" msgid "**Source code:** :source:`Lib/hashlib.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/hashlib.py`" msgid "" "This module implements a common interface to many different secure hash and " @@ -40,13 +39,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "Hash algorithms" @@ -54,12 +53,12 @@ msgstr "" 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 "" msgid "" @@ -73,20 +72,19 @@ msgid "" msgstr "" 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 or blocked 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 or blocked 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 "" 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 "" msgid ":func:`blake2b` and :func:`blake2s` were added." @@ -104,8 +102,8 @@ msgid "Hashlib now uses SHA3 and SHAKE from OpenSSL 1.1.1 and newer." msgstr "" 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 "" msgid "More condensed:" @@ -134,8 +132,8 @@ msgstr "" 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 "" @@ -213,36 +211,6 @@ msgid "" "range from 0 to 255." msgstr "" -msgid "File hashing" -msgstr "" - -msgid "" -"The hashlib module provides a helper function for efficient hashing of a " -"file or file-like object." -msgstr "" - -msgid "" -"Return a digest object that has been updated with contents of file object." -msgstr "" - -msgid "" -"*fileobj* must be a file-like object opened for reading in binary mode. It " -"accepts file objects from builtin :func:`open`, :class:`~io.BytesIO` " -"instances, SocketIO objects from :meth:`socket.socket.makefile`, and " -"similar. The function may bypass Python's I/O and use the file descriptor " -"from :meth:`~io.IOBase.fileno` directly. *fileobj* must be assumed to be in " -"an unknown state after this function returns or raises. It is up to the " -"caller to close *fileobj*." -msgstr "" - -msgid "" -"*digest* must either be a hash algorithm name as a *str*, a hash " -"constructor, or a callable that returns a hash object." -msgstr "" - -msgid "Example:" -msgstr "" - msgid "Key derivation" msgstr "" @@ -250,8 +218,8 @@ 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 `_." +"be tunable, slow, and include a `salt `_." msgstr "" msgid "" @@ -310,7 +278,7 @@ msgid "" msgstr "" msgid "BLAKE2" -msgstr "" +msgstr "BLAKE2" msgid "" "BLAKE2_ is a cryptographic hash function defined in :rfc:`7693` that comes " @@ -333,8 +301,8 @@ msgid "" msgstr "" 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 "" msgid "Creating hash objects" @@ -381,28 +349,28 @@ msgid "digest_size" msgstr "" msgid "len(key)" -msgstr "" +msgstr "len(key)" msgid "len(salt)" -msgstr "" +msgstr "len(salt)" msgid "len(person)" -msgstr "" +msgstr "len(person)" msgid "BLAKE2b" -msgstr "" +msgstr "BLAKE2b" msgid "64" -msgstr "" +msgstr "64" msgid "16" -msgstr "" +msgstr "16" msgid "BLAKE2s" -msgstr "" +msgstr "BLAKE2s" msgid "32" -msgstr "" +msgstr "32" msgid "8" msgstr "8" @@ -455,9 +423,6 @@ msgid "" "(``False`` for sequential mode)." msgstr "" -msgid "Explanation of tree mode parameters." -msgstr "" - msgid "" "See section 2.10 in `BLAKE2 specification `_ for comprehensive review of tree hashing." @@ -487,10 +452,10 @@ msgstr "" 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 "" msgid "" @@ -523,9 +488,9 @@ msgstr "" 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 "" msgid "" @@ -717,7 +682,7 @@ msgid "" msgstr "" msgid "https://www.ietf.org/rfc/rfc8018.txt" -msgstr "" +msgstr "https://www.ietf.org/rfc/rfc8018.txt" msgid "PKCS #5: Password-Based Cryptography Specification Version 2.1" msgstr "" @@ -725,6 +690,7 @@ msgstr "" msgid "" "https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf" msgstr "" +"https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf" msgid "NIST Recommendation for Password-Based Key Derivation." msgstr "" diff --git a/library/heapq.po b/library/heapq.po index a0e8e852ed..5dd711be13 100644 --- a/library/heapq.po +++ b/library/heapq.po @@ -1,38 +1,40 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`heapq` --- Heap queue algorithm" msgstr "" msgid "**Source code:** :source:`Lib/heapq.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/heapq.py`" msgid "" "This module provides an implementation of the heap queue algorithm, also " "known as the priority queue algorithm." msgstr "" +"Ten moduł zawiera implementację algorytmu kolejki kopcowej, znanego również " +"jako algorytm kolejki priorytetowej." msgid "" "Heaps are binary trees for which every parent node has a value less than or " @@ -87,8 +89,8 @@ msgstr "" 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 "" msgid "" @@ -123,6 +125,8 @@ msgstr "" msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "" +"Posiada dwa opcjonalne argumenty, które muszą być określone jako argument " +"nazwany." msgid "" "*key* specifies a :term:`key function` of one argument that is used to " @@ -152,20 +156,20 @@ 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 "" 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." +"``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 "" msgid "Basic Examples" -msgstr "" +msgstr "Podstawowe przykłady" msgid "" "A `heapsort `_ can be implemented by " @@ -238,7 +242,7 @@ msgid "" msgstr "" msgid "Theory" -msgstr "" +msgstr "Teoria" msgid "" "Heaps are arrays for which ``a[k] <= a[2*k+1]`` and ``a[k] <= a[2*k+2]`` for " @@ -276,13 +280,13 @@ msgstr "" 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 "" msgid "" diff --git a/library/html_entities.po b/library/html_entities.po index 6cb16db154..9bdf343bf2 100644 --- a/library/html_entities.po +++ b/library/html_entities.po @@ -1,37 +1,38 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`html.entities` --- Definitions of HTML general entities" msgstr "" msgid "**Source code:** :source:`Lib/html/entities.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/html/entities.py`" 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 "" msgid "" @@ -39,8 +40,8 @@ msgid "" "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`." +"case the name is present with and without the ``';'``. See " +"also :func:`html.unescape`." msgstr "" msgid "" diff --git a/library/html_parser.po b/library/html_parser.po index fd7cc6cd85..9baf8f3b6a 100644 --- a/library/html_parser.po +++ b/library/html_parser.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`html.parser` --- Simple HTML and XHTML parser" msgstr "" msgid "**Source code:** :source:`Lib/html/parser.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/html/parser.py`" msgid "" "This module defines a class :class:`HTMLParser` which serves as the basis " @@ -39,9 +39,15 @@ msgid "Create a parser instance able to parse invalid markup." msgstr "" msgid "" -"If *convert_charrefs* is ``True`` (the default), all character references " -"(except the ones in ``script``/``style`` elements) are automatically " -"converted to the corresponding Unicode characters." +"If *convert_charrefs* is true (the default), all character references " +"(except the ones in elements like ``script`` and ``style``) are " +"automatically converted to the corresponding Unicode characters." +msgstr "" + +msgid "" +"If *scripting* is false (the default), the content of the ``noscript`` " +"element is parsed normally; if it's true, it's returned as is without being " +"parsed." msgstr "" msgid "" @@ -63,13 +69,16 @@ msgstr "" msgid "The default value for argument *convert_charrefs* is now ``True``." msgstr "" +msgid "Added the *scripting* parameter." +msgstr "" + msgid "Example HTML Parser Application" msgstr "" 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 "" msgid "The output will then be:" @@ -83,8 +92,8 @@ msgstr "" 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 "" msgid "" @@ -112,13 +121,13 @@ 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 "" msgid "" -"This method is called to handle the start tag of an element (e.g. ``
``)." +"This method is called to handle the start tag of an element (e.g. ``
``)." msgstr "" msgid "" @@ -131,8 +140,8 @@ msgstr "" 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 "" msgid "" @@ -151,27 +160,27 @@ msgid "" "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 "" msgid "" "This method is called to process arbitrary data (e.g. text nodes and the " -"content of ```` and ````)." +"content of elements like ``script`` and ``style``)." msgstr "" 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``." +"``'gt'``). This method is only called if *convert_charrefs* is false." msgstr "" 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``." +"in this case the method will receive ``'62'`` or ``'x3E'``. This method is " +"only called if *convert_charrefs* is false." msgstr "" msgid "" @@ -240,8 +249,8 @@ msgid "Parsing an element with a few attributes and a title::" msgstr "" msgid "" -"The content of ``script`` and ``style`` elements is returned as is, without " -"further parsing::" +"The content of elements like ``script`` and ``style`` is returned as is, " +"without further parsing::" msgstr "" msgid "Parsing comments::" @@ -253,9 +262,9 @@ msgid "" msgstr "" msgid "" -"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``)::" +"Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, " +"but :meth:`~HTMLParser.handle_data` might be called more than once if " +"*convert_charrefs* is false::" msgstr "" msgid "Parsing invalid HTML (e.g. unquoted attributes) also works::" diff --git a/library/http.po b/library/http.po new file mode 100644 index 0000000000..699dd2d146 --- /dev/null +++ b/library/http.po @@ -0,0 +1,656 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`http` --- HTTP modules" +msgstr "" + +msgid "**Source code:** :source:`Lib/http/__init__.py`" +msgstr "**Kod źródłowy:** :source:`Lib/http/__init__.py`" + +msgid "" +":mod:`http` is a package that collects several modules for working with the " +"HyperText Transfer Protocol:" +msgstr "" + +msgid "" +":mod:`http.client` is a low-level HTTP protocol client; for high-level URL " +"opening use :mod:`urllib.request`" +msgstr "" + +msgid "" +":mod:`http.server` contains basic HTTP server classes based " +"on :mod:`socketserver`" +msgstr "" + +msgid "" +":mod:`http.cookies` has utilities for implementing state management with " +"cookies" +msgstr "" + +msgid ":mod:`http.cookiejar` provides persistence of cookies" +msgstr "" + +msgid "" +":mod:`http` is also a module that defines a number of HTTP status codes and " +"associated messages through the :class:`http.HTTPStatus` enum:" +msgstr "" + +msgid "" +"A subclass of :class:`enum.IntEnum` that defines a set of HTTP status codes, " +"reason phrases and long descriptions written in English." +msgstr "" + +msgid "Usage::" +msgstr "" + +msgid "HTTP status codes" +msgstr "" + +msgid "" +"Supported, `IANA-registered `_ status codes available " +"in :class:`http.HTTPStatus` are:" +msgstr "" + +msgid "Code" +msgstr "" + +msgid "Enum Name" +msgstr "" + +msgid "Details" +msgstr "Szczegóły" + +msgid "``100``" +msgstr "``100``" + +msgid "``CONTINUE``" +msgstr "``CONTINUE``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.2.1" +msgstr "" + +msgid "``101``" +msgstr "``101``" + +msgid "``SWITCHING_PROTOCOLS``" +msgstr "``SWITCHING_PROTOCOLS``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.2.2" +msgstr "" + +msgid "``102``" +msgstr "``102``" + +msgid "``PROCESSING``" +msgstr "``PROCESSING``" + +msgid "WebDAV :rfc:`2518`, Section 10.1" +msgstr "" + +msgid "``103``" +msgstr "``103``" + +msgid "``EARLY_HINTS``" +msgstr "``EARLY_HINTS``" + +msgid "An HTTP Status Code for Indicating Hints :rfc:`8297`" +msgstr "" + +msgid "``200``" +msgstr "``200``" + +msgid "``OK``" +msgstr "``OK``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.3.1" +msgstr "" + +msgid "``201``" +msgstr "``201``" + +msgid "``CREATED``" +msgstr "``CREATED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.3.2" +msgstr "" + +msgid "``202``" +msgstr "``202``" + +msgid "``ACCEPTED``" +msgstr "``ACCEPTED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.3.3" +msgstr "" + +msgid "``203``" +msgstr "``203``" + +msgid "``NON_AUTHORITATIVE_INFORMATION``" +msgstr "``NON_AUTHORITATIVE_INFORMATION``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.3.4" +msgstr "" + +msgid "``204``" +msgstr "``204``" + +msgid "``NO_CONTENT``" +msgstr "``NO_CONTENT``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.3.5" +msgstr "" + +msgid "``205``" +msgstr "``205``" + +msgid "``RESET_CONTENT``" +msgstr "``RESET_CONTENT``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.3.6" +msgstr "" + +msgid "``206``" +msgstr "``206``" + +msgid "``PARTIAL_CONTENT``" +msgstr "``PARTIAL_CONTENT``" + +msgid "HTTP/1.1 :rfc:`7233`, Section 4.1" +msgstr "" + +msgid "``207``" +msgstr "``207``" + +msgid "``MULTI_STATUS``" +msgstr "``MULTI_STATUS``" + +msgid "WebDAV :rfc:`4918`, Section 11.1" +msgstr "" + +msgid "``208``" +msgstr "``208``" + +msgid "``ALREADY_REPORTED``" +msgstr "``ALREADY_REPORTED``" + +msgid "WebDAV Binding Extensions :rfc:`5842`, Section 7.1 (Experimental)" +msgstr "" + +msgid "``226``" +msgstr "``226``" + +msgid "``IM_USED``" +msgstr "``IM_USED``" + +msgid "Delta Encoding in HTTP :rfc:`3229`, Section 10.4.1" +msgstr "" + +msgid "``300``" +msgstr "``300``" + +msgid "``MULTIPLE_CHOICES``" +msgstr "``MULTIPLE_CHOICES``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.4.1" +msgstr "" + +msgid "``301``" +msgstr "``301``" + +msgid "``MOVED_PERMANENTLY``" +msgstr "``MOVED_PERMANENTLY``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.4.2" +msgstr "" + +msgid "``302``" +msgstr "``302``" + +msgid "``FOUND``" +msgstr "``FOUND``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.4.3" +msgstr "" + +msgid "``303``" +msgstr "``303``" + +msgid "``SEE_OTHER``" +msgstr "``SEE_OTHER``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.4.4" +msgstr "" + +msgid "``304``" +msgstr "``304``" + +msgid "``NOT_MODIFIED``" +msgstr "``NOT_MODIFIED``" + +msgid "HTTP/1.1 :rfc:`7232`, Section 4.1" +msgstr "" + +msgid "``305``" +msgstr "``305``" + +msgid "``USE_PROXY``" +msgstr "``USE_PROXY``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.4.5" +msgstr "" + +msgid "``307``" +msgstr "``307``" + +msgid "``TEMPORARY_REDIRECT``" +msgstr "``TEMPORARY_REDIRECT``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.4.7" +msgstr "" + +msgid "``308``" +msgstr "``308``" + +msgid "``PERMANENT_REDIRECT``" +msgstr "``PERMANENT_REDIRECT``" + +msgid "Permanent Redirect :rfc:`7238`, Section 3 (Experimental)" +msgstr "" + +msgid "``400``" +msgstr "``400``" + +msgid "``BAD_REQUEST``" +msgstr "``BAD_REQUEST``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.1" +msgstr "" + +msgid "``401``" +msgstr "``401``" + +msgid "``UNAUTHORIZED``" +msgstr "``UNAUTHORIZED``" + +msgid "HTTP/1.1 Authentication :rfc:`7235`, Section 3.1" +msgstr "" + +msgid "``402``" +msgstr "``402``" + +msgid "``PAYMENT_REQUIRED``" +msgstr "``PAYMENT_REQUIRED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.2" +msgstr "" + +msgid "``403``" +msgstr "``403``" + +msgid "``FORBIDDEN``" +msgstr "``FORBIDDEN``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.3" +msgstr "" + +msgid "``404``" +msgstr "``404``" + +msgid "``NOT_FOUND``" +msgstr "``NOT_FOUND``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.4" +msgstr "" + +msgid "``405``" +msgstr "``405``" + +msgid "``METHOD_NOT_ALLOWED``" +msgstr "``METHOD_NOT_ALLOWED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.5" +msgstr "" + +msgid "``406``" +msgstr "``406``" + +msgid "``NOT_ACCEPTABLE``" +msgstr "``NOT_ACCEPTABLE``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.6" +msgstr "" + +msgid "``407``" +msgstr "``407``" + +msgid "``PROXY_AUTHENTICATION_REQUIRED``" +msgstr "``PROXY_AUTHENTICATION_REQUIRED``" + +msgid "HTTP/1.1 Authentication :rfc:`7235`, Section 3.2" +msgstr "" + +msgid "``408``" +msgstr "``408``" + +msgid "``REQUEST_TIMEOUT``" +msgstr "``REQUEST_TIMEOUT``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.7" +msgstr "" + +msgid "``409``" +msgstr "``409``" + +msgid "``CONFLICT``" +msgstr "``CONFLICT``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.8" +msgstr "" + +msgid "``410``" +msgstr "``410``" + +msgid "``GONE``" +msgstr "``GONE``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.9" +msgstr "" + +msgid "``411``" +msgstr "``411``" + +msgid "``LENGTH_REQUIRED``" +msgstr "``LENGTH_REQUIRED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.10" +msgstr "" + +msgid "``412``" +msgstr "``412``" + +msgid "``PRECONDITION_FAILED``" +msgstr "``PRECONDITION_FAILED``" + +msgid "HTTP/1.1 :rfc:`7232`, Section 4.2" +msgstr "" + +msgid "``413``" +msgstr "``413``" + +msgid "``REQUEST_ENTITY_TOO_LARGE``" +msgstr "" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.11" +msgstr "" + +msgid "``414``" +msgstr "``414``" + +msgid "``REQUEST_URI_TOO_LONG``" +msgstr "" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.12" +msgstr "" + +msgid "``415``" +msgstr "``415``" + +msgid "``UNSUPPORTED_MEDIA_TYPE``" +msgstr "``UNSUPPORTED_MEDIA_TYPE``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.13" +msgstr "" + +msgid "``416``" +msgstr "``416``" + +msgid "``REQUESTED_RANGE_NOT_SATISFIABLE``" +msgstr "" + +msgid "HTTP/1.1 Range Requests :rfc:`7233`, Section 4.4" +msgstr "" + +msgid "``417``" +msgstr "``417``" + +msgid "``EXPECTATION_FAILED``" +msgstr "``EXPECTATION_FAILED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.14" +msgstr "" + +msgid "``418``" +msgstr "``418``" + +msgid "``IM_A_TEAPOT``" +msgstr "``IM_A_TEAPOT``" + +msgid "HTCPCP/1.0 :rfc:`2324`, Section 2.3.2" +msgstr "" + +msgid "``421``" +msgstr "``421``" + +msgid "``MISDIRECTED_REQUEST``" +msgstr "``MISDIRECTED_REQUEST``" + +msgid "HTTP/2 :rfc:`7540`, Section 9.1.2" +msgstr "" + +msgid "``422``" +msgstr "``422``" + +msgid "``UNPROCESSABLE_ENTITY``" +msgstr "" + +msgid "WebDAV :rfc:`4918`, Section 11.2" +msgstr "" + +msgid "``423``" +msgstr "``423``" + +msgid "``LOCKED``" +msgstr "``LOCKED``" + +msgid "WebDAV :rfc:`4918`, Section 11.3" +msgstr "" + +msgid "``424``" +msgstr "``424``" + +msgid "``FAILED_DEPENDENCY``" +msgstr "``FAILED_DEPENDENCY``" + +msgid "WebDAV :rfc:`4918`, Section 11.4" +msgstr "" + +msgid "``425``" +msgstr "``425``" + +msgid "``TOO_EARLY``" +msgstr "``TOO_EARLY``" + +msgid "Using Early Data in HTTP :rfc:`8470`" +msgstr "" + +msgid "``426``" +msgstr "``426``" + +msgid "``UPGRADE_REQUIRED``" +msgstr "``UPGRADE_REQUIRED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.5.15" +msgstr "" + +msgid "``428``" +msgstr "``428``" + +msgid "``PRECONDITION_REQUIRED``" +msgstr "``PRECONDITION_REQUIRED``" + +msgid "Additional HTTP Status Codes :rfc:`6585`" +msgstr "" + +msgid "``429``" +msgstr "``429``" + +msgid "``TOO_MANY_REQUESTS``" +msgstr "``TOO_MANY_REQUESTS``" + +msgid "``431``" +msgstr "``431``" + +msgid "``REQUEST_HEADER_FIELDS_TOO_LARGE``" +msgstr "``REQUEST_HEADER_FIELDS_TOO_LARGE``" + +msgid "``451``" +msgstr "``451``" + +msgid "``UNAVAILABLE_FOR_LEGAL_REASONS``" +msgstr "``UNAVAILABLE_FOR_LEGAL_REASONS``" + +msgid "An HTTP Status Code to Report Legal Obstacles :rfc:`7725`" +msgstr "" + +msgid "``500``" +msgstr "``500``" + +msgid "``INTERNAL_SERVER_ERROR``" +msgstr "``INTERNAL_SERVER_ERROR``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.6.1" +msgstr "" + +msgid "``501``" +msgstr "``501``" + +msgid "``NOT_IMPLEMENTED``" +msgstr "``NOT_IMPLEMENTED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.6.2" +msgstr "" + +msgid "``502``" +msgstr "``502``" + +msgid "``BAD_GATEWAY``" +msgstr "``BAD_GATEWAY``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.6.3" +msgstr "" + +msgid "``503``" +msgstr "``503``" + +msgid "``SERVICE_UNAVAILABLE``" +msgstr "``SERVICE_UNAVAILABLE``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.6.4" +msgstr "" + +msgid "``504``" +msgstr "``504``" + +msgid "``GATEWAY_TIMEOUT``" +msgstr "``GATEWAY_TIMEOUT``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.6.5" +msgstr "" + +msgid "``505``" +msgstr "``505``" + +msgid "``HTTP_VERSION_NOT_SUPPORTED``" +msgstr "``HTTP_VERSION_NOT_SUPPORTED``" + +msgid "HTTP/1.1 :rfc:`7231`, Section 6.6.6" +msgstr "" + +msgid "``506``" +msgstr "``506``" + +msgid "``VARIANT_ALSO_NEGOTIATES``" +msgstr "``VARIANT_ALSO_NEGOTIATES``" + +msgid "" +"Transparent Content Negotiation in HTTP :rfc:`2295`, Section 8.1 " +"(Experimental)" +msgstr "" + +msgid "``507``" +msgstr "``507``" + +msgid "``INSUFFICIENT_STORAGE``" +msgstr "``INSUFFICIENT_STORAGE``" + +msgid "WebDAV :rfc:`4918`, Section 11.5" +msgstr "" + +msgid "``508``" +msgstr "``508``" + +msgid "``LOOP_DETECTED``" +msgstr "``LOOP_DETECTED``" + +msgid "WebDAV Binding Extensions :rfc:`5842`, Section 7.2 (Experimental)" +msgstr "" + +msgid "``510``" +msgstr "``510``" + +msgid "``NOT_EXTENDED``" +msgstr "``NOT_EXTENDED``" + +msgid "An HTTP Extension Framework :rfc:`2774`, Section 7 (Experimental)" +msgstr "" + +msgid "``511``" +msgstr "``511``" + +msgid "``NETWORK_AUTHENTICATION_REQUIRED``" +msgstr "``NETWORK_AUTHENTICATION_REQUIRED``" + +msgid "Additional HTTP Status Codes :rfc:`6585`, Section 6" +msgstr "" + +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``)." +msgstr "" + +msgid "Added ``421 MISDIRECTED_REQUEST`` status code." +msgstr "" + +msgid "Added ``451 UNAVAILABLE_FOR_LEGAL_REASONS`` status code." +msgstr "" + +msgid "" +"Added ``103 EARLY_HINTS``, ``418 IM_A_TEAPOT`` and ``425 TOO_EARLY`` status " +"codes." +msgstr "" diff --git a/library/http_client.po b/library/http_client.po index 6d3b1ef321..ab14529c98 100644 --- a/library/http_client.po +++ b/library/http_client.po @@ -1,38 +1,38 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`http.client` --- HTTP protocol client" msgstr "" msgid "**Source code:** :source:`Lib/http/client.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/http/client.py`" msgid "" "This module defines classes that 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 "" msgid "" @@ -91,8 +91,8 @@ msgid "*source_address*, *context* and *check_hostname* were added." msgstr "" 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 "" msgid "" @@ -102,8 +102,9 @@ msgstr "" 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." +"default. To revert to the previous, unverified, " +"behavior :func:`ssl._create_unverified_context` can be passed to the " +"*context* parameter." msgstr "" msgid "" @@ -114,19 +115,21 @@ msgstr "" msgid "" "This class now sends an ALPN extension with protocol indicator ``http/1.1`` " -"when no *context* is given. Custom *context* should set ALPN protocols with :" -"meth:`~ssl.SSLContext.set_alpn_protocol`." +"when no *context* is given. Custom *context* should set ALPN protocols " +"with :meth:`~ssl.SSLContext.set_alpn_protocol`." msgstr "" 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 "" 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 "" msgid "" @@ -150,9 +153,10 @@ msgstr "" msgid "" "This function returns an instance of :class:`http.client.HTTPMessage` that " -"holds the header fields, but no payload (the same as :attr:`HTTPResponse." -"msg` and :attr:`http.server.BaseHTTPRequestHandler.headers`). After " -"returning, the file pointer *fp* is ready to read the HTTP body." +"holds the header fields, but no payload (the same " +"as :attr:`HTTPResponse.msg` " +"and :attr:`http.server.BaseHTTPRequestHandler.headers`). After returning, " +"the file pointer *fp* is ready to read the HTTP body." msgstr "" msgid "" @@ -166,8 +170,8 @@ msgid "The following exceptions are raised as appropriate:" msgstr "" 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 "" msgid "A subclass of :exc:`HTTPException`." @@ -235,16 +239,16 @@ msgstr "" 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 " +"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." +"``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 "" msgid "" @@ -299,9 +303,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -383,11 +387,11 @@ msgid "" "*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*." +"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 "" msgid "" @@ -401,8 +405,9 @@ msgid "Chunked encoding support. The *encode_chunked* parameter was added." msgstr "" 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 "" msgid "" @@ -447,8 +452,8 @@ msgstr "" msgid "" "A :class:`http.client.HTTPMessage` instance containing the response " -"headers. :class:`http.client.HTTPMessage` is a subclass of :class:`email." -"message.Message`." +"headers. :class:`http.client.HTTPMessage` is a subclass " +"of :class:`email.message.Message`." msgstr "" msgid "" @@ -461,8 +466,8 @@ msgid "" msgstr "" msgid "" -"Headers of the response in the form of an :class:`email.message." -"EmailMessage` instance." +"Headers of the response in the form of " +"an :class:`email.message.EmailMessage` instance." msgstr "" msgid "Status code returned by server." diff --git a/library/http_cookiejar.po b/library/http_cookiejar.po new file mode 100644 index 0000000000..26f4f2c735 --- /dev/null +++ b/library/http_cookiejar.po @@ -0,0 +1,788 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`http.cookiejar` --- Cookie handling for HTTP clients" +msgstr "" + +msgid "**Source code:** :source:`Lib/http/cookiejar.py`" +msgstr "**Kod źródłowy:** :source:`Lib/http/cookiejar.py`" + +msgid "" +"The :mod:`http.cookiejar` module defines classes for automatic handling of " +"HTTP cookies. It is useful for accessing web sites that require small " +"pieces of data -- :dfn:`cookies` -- to be set on the client machine by an " +"HTTP response from a web server, and then returned to the server in later " +"HTTP requests." +msgstr "" + +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 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 " +"cookie protocol (which differs substantially from that set out in the " +"original Netscape specification), including taking note of the ``max-age`` " +"and ``port`` cookie-attributes introduced with RFC 2965." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "The module defines the following exception:" +msgstr "" + +msgid "" +"Instances of :class:`FileCookieJar` raise this exception on failure to load " +"cookies from a file. :exc:`LoadError` is a subclass of :exc:`OSError`." +msgstr "" + +msgid "" +"LoadError was made a subclass of :exc:`OSError` instead of :exc:`IOError`." +msgstr "" + +msgid "The following classes are provided:" +msgstr "" + +msgid "*policy* is an object implementing the :class:`CookiePolicy` interface." +msgstr "" + +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 " +"database." +msgstr "" + +msgid "" +"*policy* is an object implementing the :class:`CookiePolicy` interface. For " +"the other arguments, see the documentation for the corresponding attributes." +msgstr "" + +msgid "" +"A :class:`CookieJar` which can load cookies from, and perhaps save cookies " +"to, a file on disk. Cookies are **NOT** loaded from the named file until " +"either the :meth:`load` or :meth:`revert` method is called. Subclasses of " +"this class are documented in section :ref:`file-cookie-jar-classes`." +msgstr "" + +msgid "" +"This should not be initialized directly – use its subclasses below instead." +msgstr "" + +msgid "The filename parameter supports a :term:`path-like object`." +msgstr "" + +msgid "" +"This class is responsible for deciding whether each cookie should be " +"accepted from / returned to the server." +msgstr "" + +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. " +"*secure_protocols* is a sequence of protocols for which secure cookies can " +"be added to. By default *https* and *wss* (secure websocket) are considered " +"secure protocols. For all other arguments, see the documentation " +"for :class:`CookiePolicy` and :class:`DefaultCookiePolicy` objects." +msgstr "" + +msgid "" +":class:`DefaultCookiePolicy` implements the standard accept / reject rules " +"for Netscape and :rfc:`2965` cookies. By default, :rfc:`2109` cookies (ie. " +"cookies received in a :mailheader:`Set-Cookie` header with a version cookie-" +"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." +msgstr "" + +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." +msgstr "" + +msgid "Module :mod:`urllib.request`" +msgstr "" + +msgid "URL opening with automatic cookie handling." +msgstr "" + +msgid "Module :mod:`http.cookies`" +msgstr "" + +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." +msgstr "" + +msgid "https://curl.se/rfc/cookie_spec.html" +msgstr "https://curl.se/rfc/cookie_spec.html" + +msgid "" +"The specification of the original Netscape cookie protocol. Though this is " +"still the dominant protocol, the 'Netscape cookie protocol' implemented by " +"all the major browsers (and :mod:`http.cookiejar`) only bears a passing " +"resemblance to the one sketched out in ``cookie_spec.html``." +msgstr "" + +msgid ":rfc:`2109` - HTTP State Management Mechanism" +msgstr "" + +msgid "Obsoleted by :rfc:`2965`. Uses :mailheader:`Set-Cookie` with version=1." +msgstr "" + +msgid ":rfc:`2965` - HTTP State Management Mechanism" +msgstr "" + +msgid "" +"The Netscape protocol with the bugs fixed. Uses :mailheader:`Set-Cookie2` " +"in place of :mailheader:`Set-Cookie`. Not widely used." +msgstr "" + +msgid "http://kristol.org/cookie/errata.html" +msgstr "" + +msgid "Unfinished errata to :rfc:`2965`." +msgstr "" + +msgid ":rfc:`2964` - Use of HTTP State Management" +msgstr "" + +msgid "CookieJar and FileCookieJar Objects" +msgstr "" + +msgid "" +":class:`CookieJar` objects support the :term:`iterator` protocol for " +"iterating over contained :class:`Cookie` objects." +msgstr "" + +msgid ":class:`CookieJar` has the following methods:" +msgstr "" + +msgid "Add correct :mailheader:`Cookie` header to *request*." +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." +msgstr "" + +msgid "" +"The *request* object (usually a :class:`urllib.request.Request` instance) " +"must support the " +"methods :meth:`get_full_url`, :meth:`has_header`, :meth:`get_header`, :meth:`header_items`, :meth:`add_unredirected_header` " +"and the attributes :attr:`host`, :attr:`!type`, :attr:`unverifiable` " +"and :attr:`origin_req_host` as documented by :mod:`urllib.request`." +msgstr "" + +msgid "" +"*request* object needs :attr:`origin_req_host` attribute. Dependency on a " +"deprecated method :meth:`get_origin_req_host` has been removed." +msgstr "" + +msgid "" +"Extract cookies from HTTP *response* and store them in " +"the :class:`CookieJar`, where allowed by policy." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +"The *request* object (usually a :class:`urllib.request.Request` instance) " +"must support the method :meth:`get_full_url` and the " +"attributes :attr:`host`, :attr:`unverifiable` and :attr:`origin_req_host`, " +"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 "" + +msgid "Set the :class:`CookiePolicy` instance to be used." +msgstr "" + +msgid "" +"Return sequence of :class:`Cookie` objects extracted from *response* object." +msgstr "" + +msgid "" +"See the documentation for :meth:`extract_cookies` for the interfaces " +"required of the *response* and *request* arguments." +msgstr "" + +msgid "Set a :class:`Cookie` if policy says it's OK to do so." +msgstr "" + +msgid "" +"Set a :class:`Cookie`, without checking with policy to see whether or not it " +"should be set." +msgstr "" + +msgid "Clear some cookies." +msgstr "" + +msgid "" +"If invoked without arguments, clear all cookies. If given a single " +"argument, only cookies belonging to that *domain* will be removed. If given " +"two arguments, cookies belonging to the specified *domain* and URL *path* " +"are removed. If given three arguments, then the cookie with the specified " +"*domain*, *path* and *name* is removed." +msgstr "" + +msgid "Raises :exc:`KeyError` if no matching cookie exists." +msgstr "" + +msgid "Discard all session cookies." +msgstr "" + +msgid "" +"Discards all contained cookies that have a true :attr:`discard` attribute " +"(usually because they had either no ``max-age`` or ``expires`` cookie-" +"attribute, or an explicit ``discard`` cookie-attribute). For interactive " +"browsers, the end of a session usually corresponds to closing the browser " +"window." +msgstr "" + +msgid "" +"Note that the :meth:`save` method won't save session cookies anyway, unless " +"you ask otherwise by passing a true *ignore_discard* argument." +msgstr "" + +msgid ":class:`FileCookieJar` implements the following additional methods:" +msgstr "" + +msgid "Save cookies to a file." +msgstr "" + +msgid "" +"This base class raises :exc:`NotImplementedError`. Subclasses may leave " +"this method unimplemented." +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." +msgstr "" + +msgid "" +"*ignore_discard*: save even cookies set to be discarded. *ignore_expires*: " +"save even cookies that have expired" +msgstr "" + +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." +msgstr "" + +msgid "Load cookies from a file." +msgstr "" + +msgid "Old cookies are kept unless overwritten by newly loaded ones." +msgstr "" + +msgid "Arguments are as for :meth:`save`." +msgstr "" + +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." +msgstr "" + +msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." +msgstr ":exc:`IOError` kiedyś był rzucony, teraz jest alias z :exc:`OSError`." + +msgid "Clear all cookies and reload cookies from a saved file." +msgstr "" + +msgid "" +":meth:`revert` can raise the same exceptions as :meth:`load`. If there is a " +"failure, the object's state will not be altered." +msgstr "" + +msgid ":class:`FileCookieJar` instances have the following public attributes:" +msgstr "" + +msgid "" +"Filename of default file in which to keep cookies. This attribute may be " +"assigned to." +msgstr "" + +msgid "" +"If true, load cookies lazily from disk. This attribute should not be " +"assigned to. This is only a hint, since this only affects performance, not " +"behaviour (unless the cookies on disk are changing). A :class:`CookieJar` " +"object may ignore it. None of the :class:`FileCookieJar` classes included " +"in the standard library lazily loads cookies." +msgstr "" + +msgid "FileCookieJar subclasses and co-operation with web browsers" +msgstr "" + +msgid "" +"The following :class:`CookieJar` subclasses are provided for reading and " +"writing." +msgstr "" + +msgid "" +"A :class:`FileCookieJar` that can load from and save cookies to disk in the " +"Mozilla ``cookies.txt`` file format (which is also used by curl and the Lynx " +"and Netscape browsers)." +msgstr "" + +msgid "" +"This loses information about :rfc:`2965` cookies, and also about newer or " +"non-standard cookie-attributes such as ``port``." +msgstr "" + +msgid "" +"Back up your cookies before saving if you have cookies whose loss / " +"corruption would be inconvenient (there are some subtleties which may lead " +"to slight changes in the file over a load / save round-trip)." +msgstr "" + +msgid "" +"Also note that cookies saved while Mozilla is running will get clobbered by " +"Mozilla." +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." +msgstr "" + +msgid "CookiePolicy Objects" +msgstr "" + +msgid "" +"Objects implementing the :class:`CookiePolicy` interface have the following " +"methods:" +msgstr "" + +msgid "" +"Return boolean value indicating whether cookie should be accepted from " +"server." +msgstr "" + +msgid "" +"*cookie* is a :class:`Cookie` instance. *request* is an object implementing " +"the interface defined by the documentation " +"for :meth:`CookieJar.extract_cookies`." +msgstr "" + +msgid "" +"Return boolean value indicating whether cookie should be returned to server." +msgstr "" + +msgid "" +"*cookie* is a :class:`Cookie` instance. *request* is an object implementing " +"the interface defined by the documentation " +"for :meth:`CookieJar.add_cookie_header`." +msgstr "" + +msgid "" +"Return ``False`` if cookies should not be returned, given cookie domain." +msgstr "" + +msgid "" +"This method is an optimization. It removes the need for checking every " +"cookie with a particular domain (which might involve reading many files). " +"Returning true from :meth:`domain_return_ok` and :meth:`path_return_ok` " +"leaves all the work to :meth:`return_ok`." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "The *request* argument is as documented for :meth:`return_ok`." +msgstr "" + +msgid "Return ``False`` if cookies should not be returned, given cookie path." +msgstr "" + +msgid "See the documentation for :meth:`domain_return_ok`." +msgstr "" + +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." +msgstr "" + +msgid "Implement Netscape protocol." +msgstr "" + +msgid "Implement :rfc:`2965` protocol." +msgstr "" + +msgid "" +"Don't add :mailheader:`Cookie2` header to requests (the presence of this " +"header indicates to the server that we understand :rfc:`2965` cookies)." +msgstr "" + +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)." +msgstr "" + +msgid "DefaultCookiePolicy Objects" +msgstr "" + +msgid "Implements the standard rules for accepting and returning cookies." +msgstr "" + +msgid "" +"Both :rfc:`2965` and Netscape cookies are covered. RFC 2965 handling is " +"switched off by default." +msgstr "" + +msgid "" +"The easiest way to provide your own policy is to override this class and " +"call its methods in your overridden implementations before adding your own " +"additional checks::" +msgstr "" + +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 " +"to tighten up the rather loose Netscape protocol rules a little bit (at the " +"cost of blocking some benign cookies)." +msgstr "" + +msgid "" +"A domain blocklist and allowlist is provided (both off by default). Only " +"domains not in the blocklist and present in the allowlist (if the allowlist " +"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 an allowlist, you can turn it " +"off again by setting it to :const:`None`." +msgstr "" + +msgid "" +"Domains in block or allow lists that do not start with a dot must equal the " +"cookie domain to be matched. For example, ``\"example.com\"`` matches a " +"blocklist 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." +msgstr "" + +msgid "" +":class:`DefaultCookiePolicy` implements the following additional methods:" +msgstr "" + +msgid "Return the sequence of blocked domains (as a tuple)." +msgstr "" + +msgid "Set the sequence of blocked domains." +msgstr "" + +msgid "" +"Return whether *domain* is on the blocklist for setting or receiving cookies." +msgstr "" + +msgid "Return :const:`None`, or the sequence of allowed domains (as a tuple)." +msgstr "" + +msgid "Set the sequence of allowed domains, or :const:`None`." +msgstr "" + +msgid "" +"Return whether *domain* is not on the allowlist for setting or receiving " +"cookies." +msgstr "" + +msgid "" +":class:`DefaultCookiePolicy` instances have the following attributes, which " +"are all initialised from the constructor arguments of the same name, and " +"which may all be assigned to." +msgstr "" + +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." +msgstr "" + +msgid "General strictness switches:" +msgstr "" + +msgid "" +"Don't allow sites to set two-component domains with country-code top-level " +"domains like ``.co.uk``, ``.gov.uk``, ``.co.nz``.etc. This is far from " +"perfect and isn't guaranteed to work!" +msgstr "" + +msgid ":rfc:`2965` protocol strictness switches:" +msgstr "" + +msgid "" +"Follow :rfc:`2965` rules on unverifiable transactions (usually, an " +"unverifiable transaction is one resulting from a redirect or a request for " +"an image hosted on another site). If this is false, cookies are *never* " +"blocked on the basis of verifiability" +msgstr "" + +msgid "Netscape protocol strictness switches:" +msgstr "" + +msgid "" +"Apply :rfc:`2965` rules on unverifiable transactions even to Netscape " +"cookies." +msgstr "" + +msgid "" +"Flags indicating how strict to be with domain-matching rules for Netscape " +"cookies. See below for acceptable values." +msgstr "" + +msgid "" +"Ignore cookies in Set-Cookie: headers that have names starting with ``'$'``." +msgstr "" + +msgid "Don't allow setting cookies whose path doesn't path-match request URI." +msgstr "" + +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)." +msgstr "" + +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)." +msgstr "" + +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)." +msgstr "" + +msgid "When setting cookies, require a full :rfc:`2965` domain-match." +msgstr "" + +msgid "" +"The following attributes are provided for convenience, and are the most " +"useful combinations of the above flags:" +msgstr "" + +msgid "" +"Equivalent to 0 (ie. all of the above Netscape domain strictness flags " +"switched off)." +msgstr "" + +msgid "Equivalent to ``DomainStrictNoDots|DomainStrictNonDomain``." +msgstr "" + +msgid "Cookie Objects" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Cookie name (a string)." +msgstr "" + +msgid "Cookie value (a string), or :const:`None`." +msgstr "" + +msgid "" +"String representing a port or a set of ports (eg. '80', or '80,8080'), " +"or :const:`None`." +msgstr "" + +msgid "Cookie path (a string, eg. ``'/acme/rocket_launchers'``)." +msgstr "" + +msgid "``True`` if cookie should only be returned over a secure connection." +msgstr "" + +msgid "" +"Integer expiry date in seconds since epoch, or :const:`None`. See also " +"the :meth:`is_expired` method." +msgstr "" + +msgid "``True`` if this is a session cookie." +msgstr "" + +msgid "" +"String comment from the server explaining the function of this cookie, " +"or :const:`None`." +msgstr "" + +msgid "" +"URL linking to a comment from the server explaining the function of this " +"cookie, or :const:`None`." +msgstr "" + +msgid "" +"``True`` if this cookie was received as an :rfc:`2109` cookie (ie. the " +"cookie arrived in a :mailheader:`Set-Cookie` header, and the value of the " +"Version cookie-attribute in that header was 1). This attribute is provided " +"because :mod:`http.cookiejar` may 'downgrade' RFC 2109 cookies to Netscape " +"cookies, in which case :attr:`version` is 0." +msgstr "" + +msgid "" +"``True`` if a port or set of ports was explicitly specified by the server " +"(in the :mailheader:`Set-Cookie` / :mailheader:`Set-Cookie2` header)." +msgstr "" + +msgid "``True`` if a domain was explicitly specified by the server." +msgstr "" + +msgid "" +"``True`` if the domain explicitly specified by the server began with a dot " +"(``'.'``)." +msgstr "" + +msgid "" +"Cookies may have additional non-standard cookie-attributes. These may be " +"accessed using the following methods:" +msgstr "" + +msgid "Return ``True`` if cookie has the named cookie-attribute." +msgstr "" + +msgid "" +"If cookie has the named cookie-attribute, return its value. Otherwise, " +"return *default*." +msgstr "" + +msgid "Set the value of the named cookie-attribute." +msgstr "" + +msgid "The :class:`Cookie` class also defines the following method:" +msgstr "" + +msgid "" +"``True`` if cookie has passed the time at which the server requested it " +"should expire. If *now* is given (in seconds since the epoch), return " +"whether the cookie has expired at the specified time." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "" +"The first example shows the most common usage of :mod:`http.cookiejar`::" +msgstr "" + +msgid "" +"This example illustrates how to open a URL using your Netscape, Mozilla, or " +"Lynx cookies (assumes Unix/Netscape convention for location of the cookies " +"file)::" +msgstr "" + +msgid "" +"The next example illustrates the use of :class:`DefaultCookiePolicy`. Turn " +"on :rfc:`2965` cookies, be more strict about domains when setting and " +"returning Netscape cookies, and block some domains from setting cookies or " +"having them returned::" +msgstr "" diff --git a/library/http_cookies.po b/library/http_cookies.po index 5b3f556866..188e7df9d4 100644 --- a/library/http_cookies.po +++ b/library/http_cookies.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:07+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`http.cookies` --- HTTP state management" msgstr "" msgid "**Source code:** :source:`Lib/http/cookies.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/http/cookies.py`" msgid "" "The :mod:`http.cookies` module defines classes for abstracting the concept " @@ -37,12 +37,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -76,19 +76,19 @@ msgid "If *input* is given, it is passed to the :meth:`load` method." msgstr "" 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 "" msgid "Module :mod:`http.cookiejar`" msgstr "" 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 "" msgid ":rfc:`2109` - HTTP State Management Mechanism" @@ -102,8 +102,8 @@ msgstr "" 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 "" msgid "" @@ -113,8 +113,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -192,13 +192,14 @@ msgid "The keys are case-insensitive and their default value is ``''``." msgstr "" 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 "" 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 "" msgid "Added support for the :attr:`samesite` attribute." @@ -257,7 +258,7 @@ msgid "" msgstr "" msgid "Example" -msgstr "" +msgstr "Przykład" msgid "" "The following example demonstrates how to use the :mod:`http.cookies` module." diff --git a/library/http_server.po b/library/http_server.po new file mode 100644 index 0000000000..bfc128e6bb --- /dev/null +++ b/library/http_server.po @@ -0,0 +1,525 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`http.server` --- HTTP servers" +msgstr "" + +msgid "**Source code:** :source:`Lib/http/server.py`" +msgstr "**Kod źródłowy:** :source:`Lib/http/server.py`" + +msgid "This module defines classes for implementing HTTP servers." +msgstr "" + +msgid "" +":mod:`http.server` is not recommended for production. It only " +"implements :ref:`basic security checks `." +msgstr "" + +msgid "" +"One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` " +"subclass. It creates and listens at the HTTP socket, dispatching the " +"requests to a handler. Code to create and run the server looks like this::" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The :class:`HTTPServer` and :class:`ThreadingHTTPServer` must be given a " +"*RequestHandlerClass* on instantiation, of which this module provides three " +"different variants:" +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." +msgstr "" + +msgid "" +"The handler will parse the request and the headers, then call a method " +"specific to the request type. The method name is constructed from the " +"request. For example, for the request method ``SPAM``, the :meth:`do_SPAM` " +"method will be called with no arguments. All of the relevant information is " +"stored in instance variables of the handler. Subclasses should not need to " +"override or extend the :meth:`__init__` method." +msgstr "" + +msgid ":class:`BaseHTTPRequestHandler` has the following instance variables:" +msgstr "" + +msgid "" +"Contains a tuple of the form ``(host, port)`` referring to the client's " +"address." +msgstr "" + +msgid "Contains the server instance." +msgstr "" + +msgid "" +"Boolean that should be set before :meth:`handle_one_request` returns, " +"indicating if another request may be expected, or if the connection should " +"be shut down." +msgstr "" + +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." +msgstr "" + +msgid "Contains the command (request type). For example, ``'GET'``." +msgstr "" + +msgid "" +"Contains the request path. If query component of the URL is present, then " +"``path`` includes the query. Using the terminology of :rfc:`3986`, ``path`` " +"here includes ``hier-part`` and the ``query``." +msgstr "" + +msgid "" +"Contains the version string from the request. For example, ``'HTTP/1.0'``." +msgstr "" + +msgid "" +"Holds an instance of the class specified by the :attr:`MessageClass` class " +"variable. This instance parses and manages the headers in the HTTP request. " +"The :func:`~http.client.parse_headers` function from :mod:`http.client` is " +"used to parse the headers and it requires that the HTTP request provide a " +"valid :rfc:`2822` style header." +msgstr "" + +msgid "" +"An :class:`io.BufferedIOBase` input stream, ready to read from the start of " +"the optional input data." +msgstr "" + +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 " +"order to achieve successful interoperation with HTTP clients." +msgstr "" + +msgid "This is an :class:`io.BufferedIOBase` stream." +msgstr "" + +msgid ":class:`BaseHTTPRequestHandler` has the following attributes:" +msgstr "" + +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'``." +msgstr "" + +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'``." +msgstr "" + +msgid "" +"Specifies a format string that should be used by :meth:`send_error` method " +"for building an error response to the client. The string is filled by " +"default with variables from :attr:`responses` based on the status code that " +"passed to :meth:`send_error`." +msgstr "" + +msgid "" +"Specifies the Content-Type HTTP header of error responses sent to the " +"client. The default value is ``'text/html'``." +msgstr "" + +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 " +"(using :meth:`send_header`) in all of its responses to clients. For " +"backwards compatibility, the setting defaults to ``'HTTP/1.0'``." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "A :class:`BaseHTTPRequestHandler` instance has the following methods:" +msgstr "" + +msgid "" +"Calls :meth:`handle_one_request` once (or, if persistent connections are " +"enabled, multiple times) to handle incoming HTTP requests. You should never " +"need to override it; instead, implement appropriate :meth:`do_\\*` methods." +msgstr "" + +msgid "" +"This method will parse and dispatch the request to the " +"appropriate :meth:`do_\\*` method. You should never need to override it." +msgstr "" + +msgid "" +"When a HTTP/1.1 compliant server receives an ``Expect: 100-continue`` " +"request header it responds back with a ``100 Continue`` followed by ``200 " +"OK`` headers. This method can be overridden to raise an error if the server " +"does not want the client to continue. For e.g. server can choose to send " +"``417 Expectation Failed`` as a response header and ``return False``." +msgstr "" + +msgid "" +"Sends and logs a complete error reply to the client. The numeric *code* " +"specifies the HTTP error code, with *message* as an optional, short, human " +"readable description of the error. The *explain* argument can be used to " +"provide more detailed information about the error; it will be formatted " +"using the :attr:`error_message_format` attribute and emitted, after a " +"complete set of headers, as the response body. The :attr:`responses` " +"attribute holds the default values for *message* and *explain* that will be " +"used if no value is provided; for unknown codes the default value for both " +"is the string ``???``. The body will be empty if the method is HEAD or the " +"response code is one of the following: ``1xx``, ``204 No Content``, ``205 " +"Reset Content``, ``304 Not Modified``." +msgstr "" + +msgid "" +"The error response includes a Content-Length header. Added the *explain* " +"argument." +msgstr "" + +msgid "" +"Adds a response header to the headers buffer and logs the accepted request. " +"The HTTP response line is written to the internal buffer, followed by " +"*Server* and *Date* headers. The values for these two headers are picked up " +"from the :meth:`version_string` and :meth:`date_time_string` methods, " +"respectively. If the server does not intend to send any other headers using " +"the :meth:`send_header` method, then :meth:`send_response` should be " +"followed by an :meth:`end_headers` call." +msgstr "" + +msgid "" +"Headers are stored to an internal buffer and :meth:`end_headers` needs to be " +"called explicitly." +msgstr "" + +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." +msgstr "" + +msgid "Headers are stored in an internal buffer." +msgstr "" + +msgid "" +"Sends the response header only, used for the purposes when ``100 Continue`` " +"response is sent by the server to the client. The headers not buffered and " +"sent directly the output stream.If the *message* is not specified, the HTTP " +"message corresponding the response *code* is sent." +msgstr "" + +msgid "" +"Adds a blank line (indicating the end of the HTTP headers in the response) " +"to the headers buffer and calls :meth:`flush_headers()`." +msgstr "" + +msgid "The buffered headers are written to the output stream." +msgstr "" + +msgid "" +"Finally send the headers to the output stream and flush the internal headers " +"buffer." +msgstr "" + +msgid "" +"Logs an accepted (successful) request. *code* should specify the numeric " +"HTTP code associated with the response. If a size of the response is " +"available, then it should be passed as the *size* parameter." +msgstr "" + +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)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns the server software's version string. This is a combination of " +"the :attr:`server_version` and :attr:`sys_version` attributes." +msgstr "" + +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. " +"If *timestamp* is omitted, it uses the current date and time." +msgstr "" + +msgid "The result looks like ``'Sun, 06 Nov 1994 08:49:37 GMT'``." +msgstr "" + +msgid "Returns the current date and time, formatted for logging." +msgstr "" + +msgid "Returns the client address." +msgstr "" + +msgid "" +"Previously, a name lookup was performed. To avoid name resolution delays, it " +"now always returns the IP address." +msgstr "" + +msgid "" +"This class serves files from the directory *directory* and below, or the " +"current directory if *directory* is not provided, directly mapping the " +"directory structure to HTTP requests." +msgstr "" + +msgid "The *directory* parameter." +msgstr "" + +msgid "The *directory* parameter accepts a :term:`path-like object`." +msgstr "" + +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` and :func:`do_HEAD` functions." +msgstr "" + +msgid "" +"The following are defined as class-level attributes " +"of :class:`SimpleHTTPRequestHandler`:" +msgstr "" + +msgid "" +"This will be ``\"SimpleHTTP/\" + __version__``, where ``__version__`` is " +"defined at the module level." +msgstr "" + +msgid "" +"A dictionary mapping suffixes into MIME types, contains custom overrides for " +"the default system mappings. The mapping is used case-insensitively, and so " +"should contain only lower-cased keys." +msgstr "" + +msgid "" +"This dictionary is no longer filled with the default system mappings, but " +"only contains overrides." +msgstr "" + +msgid "" +"The :class:`SimpleHTTPRequestHandler` class defines the following methods:" +msgstr "" + +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." +msgstr "" + +msgid "" +"The request is mapped to a local file by interpreting the request as a path " +"relative to the current working directory." +msgstr "" + +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." +msgstr "" + +msgid "" +"If the request was mapped to a file, it is opened. Any :exc:`OSError` " +"exception in opening the requested file is mapped to a ``404``, ``'File not " +"found'`` error. If there was a ``'If-Modified-Since'`` header in the " +"request, and the file was not modified after this time, a ``304``, ``'Not " +"Modified'`` response is sent. Otherwise, the content type is guessed by " +"calling the :meth:`guess_type` method, which in turn uses the " +"*extensions_map* variable, and the file contents are returned." +msgstr "" + +msgid "" +"A ``'Content-type:'`` header with the guessed content type is output, " +"followed by a ``'Content-Length:'`` header with the file's size and a " +"``'Last-Modified:'`` header with the file's modification time." +msgstr "" + +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." +msgstr "" + +msgid "" +"For example usage, see the implementation of the ``test`` function " +"in :source:`Lib/http/server.py`." +msgstr "" + +msgid "Support of the ``'If-Modified-Since'`` header." +msgstr "" + +msgid "" +"The :class:`SimpleHTTPRequestHandler` class can be used in the following " +"manner in order to create a very basic webserver serving files relative to " +"the current directory::" +msgstr "" + +msgid "" +":mod:`http.server` can also be invoked directly using the :option:`-m` " +"switch of the interpreter. Similar to the previous example, this serves " +"files relative to the current directory::" +msgstr "" + +msgid "" +"The server listens to port 8000 by default. The default can be overridden by " +"passing the desired port number as an argument::" +msgstr "" + +msgid "" +"By default, the server binds itself to all interfaces. The option ``-b/--" +"bind`` specifies a specific address to which it should bind. Both IPv4 and " +"IPv6 addresses are supported. For example, the following command causes the " +"server to bind to localhost only::" +msgstr "" + +msgid "``--bind`` argument was introduced." +msgstr "" + +msgid "``--bind`` argument enhanced to support IPv6" +msgstr "" + +msgid "" +"By default, the 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 "" + +msgid "``--directory`` argument was introduced." +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`." +msgstr "" + +msgid "" +"CGI scripts run by the :class:`CGIHTTPRequestHandler` class cannot execute " +"redirects (HTTP code 302), because code 200 (script output follows) is sent " +"prior to execution of the CGI script. This pre-empts the status code." +msgstr "" + +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 " +"denoting CGI scripts." +msgstr "" + +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." +msgstr "" + +msgid "The :class:`CGIHTTPRequestHandler` defines the following data member:" +msgstr "" + +msgid "" +"This defaults to ``['/cgi-bin', '/htbin']`` and describes directories to " +"treat as containing CGI scripts." +msgstr "" + +msgid "The :class:`CGIHTTPRequestHandler` defines the following method:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Note that CGI scripts will be run with UID of user nobody, for security " +"reasons. Problems with the CGI script will be translated to error 403." +msgstr "" + +msgid "" +":class:`CGIHTTPRequestHandler` can be enabled in the command line by passing " +"the ``--cgi`` option::" +msgstr "" + +msgid "Security Considerations" +msgstr "" + +msgid "" +":class:`SimpleHTTPRequestHandler` will follow symbolic links when handling " +"requests, this makes it possible for files outside of the specified " +"directory to be served." +msgstr "" + +msgid "" +"Earlier versions of Python did not scrub control characters from the log " +"messages emitted to stderr from ``python -m http.server`` or the " +"default :class:`BaseHTTPRequestHandler` ``.log_message`` implementation. " +"This could allow remote clients connecting to your server to send nefarious " +"control codes to your terminal." +msgstr "" + +msgid "Control characters are scrubbed in stderr logs." +msgstr "" diff --git a/library/idle.po b/library/idle.po new file mode 100644 index 0000000000..1aae796ab3 --- /dev/null +++ b/library/idle.po @@ -0,0 +1,1360 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Stan Ulbrych, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Stan Ulbrych, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "IDLE" +msgstr "IDLE" + +msgid "**Source code:** :source:`Lib/idlelib/`" +msgstr "**Kod źródłowy:** :source:`Lib/idlelib/`" + +msgid "IDLE is Python's Integrated Development and Learning Environment." +msgstr "" + +msgid "IDLE has the following features:" +msgstr "" + +msgid "coded in 100% pure Python, using the :mod:`tkinter` GUI toolkit" +msgstr "" + +msgid "cross-platform: works mostly the same on Windows, Unix, and macOS" +msgstr "" + +msgid "" +"Python shell window (interactive interpreter) with colorizing of code input, " +"output, and error messages" +msgstr "" + +msgid "" +"multi-window text editor with multiple undo, Python colorizing, smart " +"indent, call tips, auto completion, and other features" +msgstr "" + +msgid "" +"search within any window, replace within editor windows, and search through " +"multiple files (grep)" +msgstr "" + +msgid "" +"debugger with persistent breakpoints, stepping, and viewing of global and " +"local namespaces" +msgstr "" + +msgid "configuration, browsers, and other dialogs" +msgstr "" + +msgid "Menus" +msgstr "" + +msgid "" +"IDLE has two main window types, the Shell window and the Editor window. It " +"is possible to have multiple editor windows simultaneously. On Windows and " +"Linux, each has its own top menu. Each menu documented below indicates " +"which window type it is associated with." +msgstr "" + +msgid "" +"Output windows, such as used for Edit => Find in Files, are a subtype of " +"editor window. They currently have the same top menu but a different " +"default title and context menu." +msgstr "" + +msgid "" +"On macOS, there is one application menu. It dynamically changes according " +"to the window currently selected. It has an IDLE menu, and some entries " +"described below are moved around to conform to Apple guidelines." +msgstr "" + +msgid "File menu (Shell and Editor)" +msgstr "" + +msgid "New File" +msgstr "" + +msgid "Create a new file editing window." +msgstr "" + +msgid "Open..." +msgstr "" + +msgid "Open an existing file with an Open dialog." +msgstr "" + +msgid "Open Module..." +msgstr "" + +msgid "Open an existing module (searches sys.path)." +msgstr "" + +msgid "Recent Files" +msgstr "" + +msgid "Open a list of recent files. Click one to open it." +msgstr "" + +msgid "Module Browser" +msgstr "" + +msgid "" +"Show functions, classes, and methods in the current Editor file in a tree " +"structure. In the shell, open a module first." +msgstr "" + +msgid "Path Browser" +msgstr "" + +msgid "" +"Show sys.path directories, modules, functions, classes and methods in a tree " +"structure." +msgstr "" + +msgid "Save" +msgstr "" + +msgid "" +"Save the current window to the associated file, if there is one. Windows " +"that have been changed since being opened or last saved have a \\* before " +"and after the window title. If there is no associated file, do Save As " +"instead." +msgstr "" + +msgid "Save As..." +msgstr "" + +msgid "" +"Save the current window with a Save As dialog. The file saved becomes the " +"new associated file for the window. (If your file namager is set to hide " +"extensions, the current extension will be omitted in the file name box. If " +"the new filename has no '.', '.py' and '.txt' will be added for Python and " +"text files, except that on macOS Aqua,'.py' is added for all files.)" +msgstr "" + +msgid "Save Copy As..." +msgstr "" + +msgid "" +"Save the current window to different file without changing the associated " +"file. (See Save As note above about filename extensions.)" +msgstr "" + +msgid "Print Window" +msgstr "" + +msgid "Print the current window to the default printer." +msgstr "" + +msgid "Close Window" +msgstr "" + +msgid "" +"Close the current window (if an unsaved editor, ask to save; if an unsaved " +"Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the " +"Shell window also closes Shell. If this is the only window, also exit IDLE." +msgstr "" + +msgid "Exit IDLE" +msgstr "" + +msgid "Close all windows and quit IDLE (ask to save unsaved edit windows)." +msgstr "" + +msgid "Edit menu (Shell and Editor)" +msgstr "" + +msgid "Undo" +msgstr "" + +msgid "" +"Undo the last change to the current window. A maximum of 1000 changes may " +"be undone." +msgstr "" + +msgid "Redo" +msgstr "" + +msgid "Redo the last undone change to the current window." +msgstr "" + +msgid "Select All" +msgstr "" + +msgid "Select the entire contents of the current window." +msgstr "" + +msgid "Cut" +msgstr "" + +msgid "" +"Copy selection into the system-wide clipboard; then delete the selection." +msgstr "" + +msgid "Copy" +msgstr "Kopiuj" + +msgid "Copy selection into the system-wide clipboard." +msgstr "" + +msgid "Paste" +msgstr "" + +msgid "Insert contents of the system-wide clipboard into the current window." +msgstr "" + +msgid "The clipboard functions are also available in context menus." +msgstr "" + +msgid "Find..." +msgstr "" + +msgid "Open a search dialog with many options" +msgstr "" + +msgid "Find Again" +msgstr "" + +msgid "Repeat the last search, if there is one." +msgstr "" + +msgid "Find Selection" +msgstr "" + +msgid "Search for the currently selected string, if there is one." +msgstr "" + +msgid "Find in Files..." +msgstr "" + +msgid "Open a file search dialog. Put results in a new output window." +msgstr "" + +msgid "Replace..." +msgstr "" + +msgid "Open a search-and-replace dialog." +msgstr "" + +msgid "Go to Line" +msgstr "" + +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 "" + +msgid "Show Completions" +msgstr "" + +msgid "" +"Open a scrollable list allowing selection of existing names. " +"See :ref:`Completions ` in the Editing and navigation section " +"below." +msgstr "" + +msgid "Expand Word" +msgstr "" + +msgid "" +"Expand a prefix you have typed to match a full word in the same window; " +"repeat to get a different expansion." +msgstr "" + +msgid "Show Call Tip" +msgstr "" + +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." +msgstr "" + +msgid "Show Surrounding Parens" +msgstr "" + +msgid "Highlight the surrounding parenthesis." +msgstr "" + +msgid "Format menu (Editor window only)" +msgstr "" + +msgid "Format Paragraph" +msgstr "" + +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 "" + +msgid "Indent Region" +msgstr "" + +msgid "Shift selected lines right by the indent width (default 4 spaces)." +msgstr "" + +msgid "Dedent Region" +msgstr "" + +msgid "Shift selected lines left by the indent width (default 4 spaces)." +msgstr "" + +msgid "Comment Out Region" +msgstr "" + +msgid "Insert ## in front of selected lines." +msgstr "" + +msgid "Uncomment Region" +msgstr "" + +msgid "Remove leading # or ## from selected lines." +msgstr "" + +msgid "Tabify Region" +msgstr "" + +msgid "" +"Turn *leading* stretches of spaces into tabs. (Note: We recommend using 4 " +"space blocks to indent Python code.)" +msgstr "" + +msgid "Untabify Region" +msgstr "" + +msgid "Turn *all* tabs into the correct number of spaces." +msgstr "" + +msgid "Toggle Tabs" +msgstr "" + +msgid "Open a dialog to switch between indenting with spaces and tabs." +msgstr "" + +msgid "New Indent Width" +msgstr "" + +msgid "" +"Open a dialog to change indent width. The accepted default by the Python " +"community is 4 spaces." +msgstr "" + +msgid "Strip Trailing Chitespace" +msgstr "" + +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. Except for Shell windows, remove " +"extra newlines at the end of the file." +msgstr "" + +msgid "Run menu (Editor window only)" +msgstr "" + +msgid "Run Module" +msgstr "" + +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 " +"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 "" + +msgid "Run... Customized" +msgstr "" + +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 "" + +msgid "Check Module" +msgstr "" + +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." +msgstr "" + +msgid "Python Shell" +msgstr "" + +msgid "Open or wake up the Python Shell window." +msgstr "" + +msgid "Shell menu (Shell window only)" +msgstr "" + +msgid "View Last Restart" +msgstr "" + +msgid "Scroll the shell window to the last Shell restart." +msgstr "" + +msgid "Restart Shell" +msgstr "" + +msgid "" +"Restart the shell to clean the environment and reset display and exception " +"handling." +msgstr "" + +msgid "Previous History" +msgstr "" + +msgid "" +"Cycle through earlier commands in history which match the current entry." +msgstr "" + +msgid "Next History" +msgstr "" + +msgid "Cycle through later commands in history which match the current entry." +msgstr "" + +msgid "Interrupt Execution" +msgstr "" + +msgid "Stop a running program." +msgstr "" + +msgid "Debug menu (Shell window only)" +msgstr "" + +msgid "Go to File/Line" +msgstr "" + +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 " +"and lines found by Find in Files. Also available in the context menu of the " +"Shell window and Output windows." +msgstr "" + +msgid "Debugger (toggle)" +msgstr "" + +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 "" + +msgid "Stack Viewer" +msgstr "" + +msgid "" +"Show the stack traceback of the last exception in a tree widget, with access " +"to locals and globals." +msgstr "" + +msgid "Auto-open Stack Viewer" +msgstr "" + +msgid "" +"Toggle automatically opening the stack viewer on an unhandled exception." +msgstr "" + +msgid "Options menu (Shell and Editor)" +msgstr "" + +msgid "Configure IDLE" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Most configuration options apply to all windows or all future windows. The " +"option items below only apply to the active window." +msgstr "" + +msgid "Show/Hide Code Context (Editor Window only)" +msgstr "" + +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 "" + +msgid "Show/Hide Line Numbers (Editor Window only)" +msgstr "" + +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 "" + +msgid "Zoom/Restore Height" +msgstr "" + +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 " +"Configure IDLE dialog. The maximum height for a screen is determined by " +"momentarily maximizing a window the first time one is zoomed on the screen. " +"Changing screen settings may invalidate the saved height. This toggle has " +"no effect when a window is maximized." +msgstr "" + +msgid "Window menu (Shell and Editor)" +msgstr "" + +msgid "" +"Lists the names of all open windows; select one to bring it to the " +"foreground (deiconifying it if necessary)." +msgstr "" + +msgid "Help menu (Shell and Editor)" +msgstr "" + +msgid "About IDLE" +msgstr "" + +msgid "Display version, copyright, license, credits, and more." +msgstr "" + +msgid "IDLE Help" +msgstr "" + +msgid "" +"Display this IDLE document, detailing the menu options, basic editing and " +"navigation, and other tips." +msgstr "" + +msgid "Python Docs" +msgstr "" + +msgid "" +"Access local Python documentation, if installed, or start a web browser and " +"open docs.python.org showing the latest Python documentation." +msgstr "" + +msgid "Turtle Demo" +msgstr "" + +msgid "Run the turtledemo module with example Python code and turtle drawings." +msgstr "" + +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." +msgstr "" + +msgid "Context menus" +msgstr "" + +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 "" + +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`` " +"directory." +msgstr "" + +msgid "Set Breakpoint" +msgstr "" + +msgid "Set a breakpoint on the current line." +msgstr "" + +msgid "Clear Breakpoint" +msgstr "" + +msgid "Clear the breakpoint on that line." +msgstr "" + +msgid "Shell and Output windows also have the following." +msgstr "" + +msgid "Go to file/line" +msgstr "" + +msgid "Same as in Debug menu." +msgstr "" + +msgid "" +"The Shell window also has an output squeezing facility explained in the " +"*Python Shell window* subsection below." +msgstr "" + +msgid "Squeeze" +msgstr "" + +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 "" + +msgid "Editing and Navigation" +msgstr "" + +msgid "Editor windows" +msgstr "" + +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 "" + +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 " +"number ('Ln') and column number ('Col'). Line numbers start with 1; column " +"numbers with 0." +msgstr "" + +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 "" + +msgid "Key bindings" +msgstr "" + +msgid "" +"In this section, 'C' refers to the :kbd:`Control` key on Windows and Unix " +"and the :kbd:`Command` key on macOS." +msgstr "" + +msgid ":kbd:`Backspace` deletes to the left; :kbd:`Del` deletes to the right" +msgstr "" + +msgid "" +":kbd:`C-Backspace` delete word left; :kbd:`C-Del` delete word to the right" +msgstr "" + +msgid "Arrow keys and :kbd:`Page Up`/:kbd:`Page Down` to move around" +msgstr "" + +msgid ":kbd:`C-LeftArrow` and :kbd:`C-RightArrow` moves by words" +msgstr "" + +msgid ":kbd:`Home`/:kbd:`End` go to begin/end of line" +msgstr "" + +msgid ":kbd:`C-Home`/:kbd:`C-End` go to begin/end of file" +msgstr "" + +msgid "Some useful Emacs bindings are inherited from Tcl/Tk:" +msgstr "" + +msgid ":kbd:`C-a` beginning of line" +msgstr "" + +msgid ":kbd:`C-e` end of line" +msgstr "" + +msgid ":kbd:`C-k` kill line (but doesn't put it in clipboard)" +msgstr "" + +msgid ":kbd:`C-l` center window around the insertion point" +msgstr "" + +msgid "" +":kbd:`C-b` go backward one character without deleting (usually you can also " +"use the cursor key for this)" +msgstr "" + +msgid "" +":kbd:`C-f` go forward one character without deleting (usually you can also " +"use the cursor key for this)" +msgstr "" + +msgid "" +":kbd:`C-p` go up one line (usually you can also use the cursor key for this)" +msgstr "" + +msgid ":kbd:`C-d` delete next character" +msgstr "" + +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 "" + +msgid "Automatic indentation" +msgstr "" + +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 " +"etc.) the next line is dedented. In leading indentation, :kbd:`Backspace` " +"deletes up to 4 spaces if they are there. :kbd:`Tab` inserts spaces (in the " +"Python Shell window one tab), number depends on Indent width. Currently, " +"tabs are restricted to four spaces due to Tcl/Tk limitations." +msgstr "" + +msgid "" +"See also the indent/dedent region commands on the :ref:`Format menu `." +msgstr "" + +msgid "Search and Replace" +msgstr "Znajdz i zamień" + +msgid "" +"Any selection becomes a search target. However, only selections within a " +"line work because searches are only performed within lines with the terminal " +"newline removed. If ``[x] Regular expresion`` is checked, the target is " +"interpreted according to the Python re module." +msgstr "" + +msgid "Completions" +msgstr "" + +msgid "" +"Completions are supplied, when requested and available, for module names, " +"attributes of classes or functions, or filenames. Each request method " +"displays a completion box with existing names. (See tab completions below " +"for an exception.) For any box, change the name being completed and the item " +"highlighted in the box by typing and deleting characters; by " +"hitting :kbd:`Up`, :kbd:`Down`, :kbd:`PageUp`, :kbd:`PageDown`, :kbd:`Home`, " +"and :kbd:`End` keys; and by a single click within the box. Close the box " +"with :kbd:`Escape`, :kbd:`Enter`, and double :kbd:`Tab` keys or clicks " +"outside the box. A double click within the box selects and closes." +msgstr "" + +msgid "" +"One way to open a box is to type a key character and wait for a predefined " +"interval. This defaults to 2 seconds; customize it in the settings dialog. " +"(To prevent auto popups, set the delay to a large number of milliseconds, " +"such as 100000000.) For imported module names or class or function " +"attributes, type '.'. For filenames in the root directory, " +"type :data:`os.sep` or :data:`os.altsep` immediately after an opening " +"quote. (On Windows, one can specify a drive first.) Move into " +"subdirectories by typing a directory name and a separator." +msgstr "" + +msgid "" +"Instead of waiting, or after a box is closed, open a completion box " +"immediately with Show Completions on the Edit menu. The default hot key " +"is :kbd:`C-space`. If one types a prefix for the desired name before " +"opening the box, the first match or near miss is made visible. The result is " +"the same as if one enters a prefix after the box is displayed. Show " +"Completions after a quote completes filenames in the current directory " +"instead of a root directory." +msgstr "" + +msgid "" +"Hitting :kbd:`Tab` after a prefix usually has the same effect as Show " +"Completions. (With no prefix, it indents.) However, if there is only one " +"match to the prefix, that match is immediately added to the editor text " +"without opening a box." +msgstr "" + +msgid "" +"Invoking 'Show Completions', or hitting :kbd:`Tab` after a prefix, outside " +"of a string and without a preceding '.' opens a box with keywords, builtin " +"names, and available module-level names." +msgstr "" + +msgid "" +"When editing code in an editor (as oppose to Shell), increase the available " +"module-level names by running your code and not restarting the Shell " +"thereafter. This is especially useful after adding imports at the top of a " +"file. This also increases possible attribute completions." +msgstr "" + +msgid "" +"Completion boxes initially exclude names beginning with '_' or, for modules, " +"not included in '__all__'. The hidden names can be accessed by typing '_' " +"after '.', either before or after the box is opened." +msgstr "" + +msgid "Calltips" +msgstr "" + +msgid "" +"A calltip is shown automatically when one types :kbd:`(` after the name of " +"an *accessible* function. A function 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. Whenever the cursor is in the " +"argument part of a definition, select Edit and \"Show Call Tip\" on the menu " +"or enter its shortcut to display a calltip." +msgstr "" + +msgid "" +"The calltip consists of the function's signature and docstring up to the " +"latter's first blank line or the fifth non-blank line. (Some builtin " +"functions lack an accessible signature.) A '/' or '*' in the signature " +"indicates that the preceding or following arguments are passed by position " +"or name (keyword) only. Details are subject to change." +msgstr "" + +msgid "" +"In Shell, the accessible functions depends on what modules have been " +"imported into the user process, including those imported by Idle itself, and " +"which definitions have been run, all since the last restart." +msgstr "" + +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 itself import turtle. The menu entry and shortcut also do " +"nothing. Enter ``import turtle``. Thereafter, ``turtle.write(`` will " +"display a calltip." +msgstr "" + +msgid "" +"In an editor, import statements have no effect until one runs the file. One " +"might want to run a file after writing import statements, after adding " +"function definitions, or after opening an existing file." +msgstr "" + +msgid "Code Context" +msgstr "" + +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." +msgstr "" + +msgid "" +"The text and background colors for the context pane can be configured under " +"the Highlights tab in the Configure IDLE dialog." +msgstr "" + +msgid "Shell window" +msgstr "" + +msgid "" +"In IDLE's Shell, enter, edit, and recall complete statements. (Most consoles " +"and terminals only work with a single physical line at a time)." +msgstr "" + +msgid "" +"Submit a single-line statement for execution by hitting :kbd:`Return` with " +"the cursor anywhere on the line. If a line is extended with Backslash " +"(:kbd:`\\\\`), the cursor must be on the last physical line. Submit a multi-" +"line compound statement by entering a blank line after the statement." +msgstr "" + +msgid "" +"When one pastes code into Shell, it is not compiled and possibly executed " +"until one hits :kbd:`Return`, as specified above. One may edit pasted code " +"first. If one pastes more than one statement into Shell, the result will be " +"a :exc:`SyntaxError` when multiple statements are compiled as if they were " +"one." +msgstr "" + +msgid "" +"Lines containing ``RESTART`` mean that the user execution process has been " +"re-started. This occurs when the user execution process has crashed, when " +"one requests a restart on the Shell menu, or when one runs code in an editor " +"window." +msgstr "" + +msgid "" +"The editing features described in previous subsections work when entering " +"code interactively. IDLE's Shell window also responds to the following keys." +msgstr "" + +msgid ":kbd:`C-c` interrupts executing command" +msgstr "" + +msgid "" +":kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt" +msgstr "" + +msgid ":kbd:`Alt-/` (Expand word) is also useful to reduce typing" +msgstr "" + +msgid "Command history" +msgstr "" + +msgid "" +":kbd:`Alt-p` retrieves previous command matching what you have typed. On " +"macOS use :kbd:`C-p`." +msgstr "" + +msgid ":kbd:`Alt-n` retrieves next. On macOS use :kbd:`C-n`." +msgstr "" + +msgid "" +":kbd:`Return` while the cursor is on any previous command retrieves that " +"command" +msgstr "" + +msgid "Text colors" +msgstr "" + +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 " +"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 "" + +msgid "" +"IDLE also highlights the :ref:`soft keywords ` :keyword:`match`, :keyword:`case `, and :keyword:`_ " +"` in pattern-matching statements. However, this " +"highlighting is not perfect and will be incorrect in some rare cases, " +"including some ``_``-s in ``case`` patterns." +msgstr "" + +msgid "" +"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 "" + +msgid "Startup and Code Execution" +msgstr "" + +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." +msgstr "" + +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 " +"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 "" + +msgid "Command line usage" +msgstr "" + +msgid "If there are arguments:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Otherwise, arguments are files opened for editing and ``sys.argv`` reflects " +"the arguments passed to IDLE itself." +msgstr "" + +msgid "Startup failure" +msgstr "" + +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 " +"'RESTART'). If the user process fails to connect to the GUI process, it " +"usually displays a ``Tk`` error box with a 'cannot connect' message that " +"directs the user here. It then exits." +msgstr "" + +msgid "" +"One specific connection failure on Unix systems results from misconfigured " +"masquerading rules somewhere in a system's network setup. When IDLE is " +"started from a terminal, one will see a message starting with ``** Invalid " +"host:``. The valid value is ``127.0.0.1 (idlelib.rpc.LOCALHOST)``. One can " +"diagnose with ``tcpconnect -irv 127.0.0.1 6543`` in one terminal window and " +"``tcplisten `` in another." +msgstr "" + +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 " +"file is located in the same directory as a file that is about to be run, " +"IDLE cannot import the stdlib file. The current fix is to rename the user " +"file." +msgstr "" + +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." +msgstr "" + +msgid "" +"Python installation issues occasionally stop IDLE: multiple versions can " +"clash, or a single installation might need admin access. If one undo the " +"clash, or cannot or does not want to run as admin, it might be easiest to " +"completely remove Python and start over." +msgstr "" + +msgid "" +"A zombie pythonw.exe process could be a problem. On Windows, use Task " +"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 "" + +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 " +"message should be displayed. Leaving aside random disk glitches, this can " +"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 "" + +msgid "" +"If IDLE quits with no message, and it was not started from a console, try " +"starting it from a console or terminal (``python -m idlelib``) and see if " +"this results in an error message." +msgstr "" + +msgid "" +"On Unix-based systems with tcl/tk older than ``8.6.11`` (see ``About IDLE``) " +"certain characters of certain fonts can cause a tk failure with a message to " +"the terminal. This can happen either if one starts IDLE to edit a file with " +"such a character or later when entering such a character. If one cannot " +"upgrade tcl/tk, then re-configure IDLE to use a font that works better." +msgstr "" + +msgid "Running user code" +msgstr "" + +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, " +"directly with Python in a text-mode system console or terminal window. " +"However, the different interface and operation occasionally affect visible " +"results. For instance, ``sys.modules`` starts with more entries, and " +"``threading.active_count()`` returns 2 instead of 1." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Sending print output from one process to a text widget in another is slower " +"than printing to a system terminal in the same process. This has the most " +"effect when printing multiple arguments, as the string for each argument, " +"each separator, the newline are sent separately. For development, this is " +"usually not a problem, but if one wants to print faster in IDLE, format and " +"join together everything one wants displayed together and then print a " +"single string. Both format strings and :meth:`str.join` can help combine " +"fields and lines." +msgstr "" + +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. (On Windows, use ``python`` or ``py`` " +"rather than ``pythonw`` or ``pyw``.) The secondary subprocess will then be " +"attached to that window for input and output." +msgstr "" + +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." +msgstr "" + +msgid "" +"When Shell has the focus, it controls the keyboard and screen. This is " +"normally transparent, but functions that directly access the keyboard and " +"screen will not work. These include system-specific functions that " +"determine whether a key has been pressed and if so, which." +msgstr "" + +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 " +"frames." +msgstr "" + +msgid "" +"When user code raises SystemExit either directly or by calling sys.exit, " +"IDLE returns to a Shell prompt instead of exiting." +msgstr "" + +msgid "User output in Shell" +msgstr "" + +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 " +"programmed additions. Where it matters, Shell is designed for development " +"rather than production runs." +msgstr "" + +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 " +"output. A Windows console, for instance, keeps a user-settable 1 to 9999 " +"lines, with 300 the default." +msgstr "" + +msgid "" +"A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) " +"in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters " +"are displayed with a proper glyph and which with a replacement box depends " +"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 " +"text cursor through such output with arrow keys may exhibit some surprising " +"spacing behavior.) ::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Normal and error output are generally kept separate (on separate lines) from " +"code input and each other. They each get different highlight colors." +msgstr "" + +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 " +"opened if necessary." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "Developing tkinter applications" +msgstr "" + +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()``." +msgstr "" + +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." +msgstr "" + +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 " +"with the live application. One just has to remember to re-enable the " +"mainloop call when running in standard Python." +msgstr "" + +msgid "Running without a subprocess" +msgstr "" + +msgid "" +"By default, IDLE executes user code in a separate subprocess via a socket, " +"which uses the internal loopback interface. This connection is not " +"externally visible and no data is sent to or received from the internet. If " +"firewall software complains anyway, you can ignore it." +msgstr "" + +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." +msgstr "" + +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 " +"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 " +"items (e.g. from foo import baz) if the changes are to take effect. For " +"these reasons, it is preferable to run IDLE with the default subprocess if " +"at all possible." +msgstr "" + +msgid "Help and Preferences" +msgstr "" + +msgid "Help sources" +msgstr "" + +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 " +"window, is close to what one sees in a web browser. Navigate through the " +"text with a mousewheel, the scrollbar, or up and down arrow keys held down. " +"Or click the TOC (Table of Contents) button and select a section header in " +"the opened box." +msgstr "" + +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." +msgstr "" + +msgid "" +"Selected URLs can be added or removed from the help menu at any time using " +"the General tab of the Configure IDLE dialog." +msgstr "" + +msgid "Setting preferences" +msgstr "" + +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``." +msgstr "" + +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." +msgstr "" + +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, " +"save it as a new custom theme or key set and it well be accessible to older " +"IDLEs." +msgstr "" + +msgid "IDLE on macOS" +msgstr "" + +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." +msgstr "" + +msgid "Extensions" +msgstr "" + +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 " +"testing." +msgstr "" + +msgid "idlelib" +msgstr "" + +msgid "**Source code:** :source:`Lib/idlelib`" +msgstr "**Kod źródłowy:** :source:`Lib/idlelib`" + +msgid "" +"The Lib/idlelib package implements the IDLE application. See the rest of " +"this page for how to use IDLE." +msgstr "" + +msgid "" +"The files in idlelib are described in idlelib/README.txt. Access it either " +"in idlelib or click Help => About IDLE on the IDLE menu. This file also " +"maps IDLE menu items to the code that implements the item. Except for files " +"listed under 'Startup', the idlelib code is 'private' in sense that feature " +"changes can be backported (see :pep:`434`)." +msgstr "" diff --git a/library/imaplib.po b/library/imaplib.po new file mode 100644 index 0000000000..65b815bab9 --- /dev/null +++ b/library/imaplib.po @@ -0,0 +1,579 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`imaplib` --- IMAP4 protocol client" +msgstr "" + +msgid "**Source code:** :source:`Lib/imaplib.py`" +msgstr "**Kod źródłowy:** :source:`Lib/imaplib.py`" + +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." +msgstr "" + +msgid "" +"Three classes are provided by the :mod:`imaplib` module, :class:`IMAP4` is " +"the base class:" +msgstr "" + +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. The optional " +"*timeout* parameter specifies a timeout in seconds for the connection " +"attempt. If timeout is not given or is None, the global default socket " +"timeout is used." +msgstr "" + +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.::" +msgstr "" + +msgid "Support for the :keyword:`with` statement was added." +msgstr "" + +msgid "The optional *timeout* parameter was added." +msgstr "" + +msgid "Three exceptions are defined as attributes of the :class:`IMAP4` class:" +msgstr "" + +msgid "" +"Exception raised on any errors. The reason for the exception is passed to " +"the constructor as a string." +msgstr "" + +msgid "" +"IMAP4 server errors cause this exception to be raised. This is a sub-class " +"of :exc:`IMAP4.error`. Note that closing the instance and instantiating a " +"new one will usually allow recovery from this exception." +msgstr "" + +msgid "" +"This exception is raised when a writable mailbox has its status changed by " +"the server. This is a sub-class of :exc:`IMAP4.error`. Some other client " +"now has write permission, and the mailbox will need to be re-opened to re-" +"obtain write permission." +msgstr "" + +msgid "There's also a subclass for secure connections:" +msgstr "" + +msgid "" +"This is a subclass derived from :class:`IMAP4` that connects over an SSL " +"encrypted socket (to use this class you need a socket module that was " +"compiled with SSL support). If *host* is not specified, ``''`` (the local " +"host) is used. If *port* is omitted, the standard IMAP4-over-SSL port (993) " +"is used. *ssl_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 best practices." +msgstr "" + +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*." +msgstr "" + +msgid "" +"The optional *timeout* parameter specifies a timeout in seconds for the " +"connection attempt. If timeout is not given or is None, the global default " +"socket timeout is used." +msgstr "" + +msgid "*ssl_context* parameter was added." +msgstr "" + +msgid "" +"The class now supports hostname check " +"with :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +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." +msgstr "" + +msgid "The second subclass allows for connections created by a child process:" +msgstr "" + +msgid "" +"This is a subclass derived from :class:`IMAP4` that connects to the ``stdin/" +"stdout`` file descriptors created by passing *command* to " +"``subprocess.Popen()``." +msgstr "" + +msgid "The following utility functions are defined:" +msgstr "" + +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 " +"string has wrong format." +msgstr "" + +msgid "" +"Converts an integer into a bytes representation using characters from the " +"set [``A`` .. ``P``]." +msgstr "" + +msgid "Converts an IMAP4 ``FLAGS`` response to a tuple of individual flags." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"At the end of the module, there is a test section that contains a more " +"extensive example of usage." +msgstr "" + +msgid "" +"Documents describing the protocol, sources for servers implementing it, by " +"the University of Washington's IMAP Information Center can all be found at " +"(**Source Code**) https://github.com/uw-imap/imap (**Not Maintained**)." +msgstr "" + +msgid "IMAP4 Objects" +msgstr "" + +msgid "" +"All IMAP4rev1 commands are represented by methods of the same name, either " +"upper-case or lower-case." +msgstr "" + +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)'``)." +msgstr "" + +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 " +"``bytes``, 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 "" + +msgid "" +"The *message_set* options to commands below is a string specifying one or " +"more messages to be acted upon. It may be a simple message number " +"(``'1'``), a range of message numbers (``'2:4'``), or a group of non-" +"contiguous ranges separated by commas (``'1:3,6:9'``). A range can contain " +"an asterisk to indicate an infinite upper bound (``'3:*'``)." +msgstr "" + +msgid "An :class:`IMAP4` instance has the following methods:" +msgstr "" + +msgid "Append *message* to named mailbox." +msgstr "" + +msgid "Authenticate command --- requires response processing." +msgstr "" + +msgid "" +"*mechanism* specifies which authentication mechanism is to be used - it " +"should appear in the instance variable ``capabilities`` in the form " +"``AUTH=mechanism``." +msgstr "" + +msgid "*authobject* must be a callable object::" +msgstr "" + +msgid "" +"It will be called to process server continuation responses; the *response* " +"argument it is passed will be ``bytes``. It should return ``bytes`` *data* " +"that will be base64 encoded and sent to the server. It should return " +"``None`` if the client abort response ``*`` should be sent instead." +msgstr "" + +msgid "" +"string usernames and passwords are now encoded to ``utf-8`` instead of being " +"limited to ASCII." +msgstr "" + +msgid "Checkpoint mailbox on server." +msgstr "" + +msgid "" +"Close currently selected mailbox. Deleted messages are removed from writable " +"mailbox. This is the recommended command before ``LOGOUT``." +msgstr "" + +msgid "Copy *message_set* messages onto end of *new_mailbox*." +msgstr "" + +msgid "Create new mailbox named *mailbox*." +msgstr "" + +msgid "Delete old mailbox named *mailbox*." +msgstr "" + +msgid "Delete the ACLs (remove any rights) set for who on mailbox." +msgstr "" + +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`)." +msgstr "" + +msgid "The :meth:`enable` method itself, and :RFC:`6855` support." +msgstr "" + +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." +msgstr "" + +msgid "" +"Fetch (parts of) messages. *message_parts* should be a string of message " +"part names enclosed within parentheses, eg: ``\"(UID BODY[TEXT])\"``. " +"Returned data are tuples of message part envelope and data." +msgstr "" + +msgid "" +"Get the ``ACL``\\ s for *mailbox*. The method is non-standard, but is " +"supported by the ``Cyrus`` server." +msgstr "" + +msgid "" +"Retrieve the specified ``ANNOTATION``\\ s for *mailbox*. The method is non-" +"standard, but is supported by the ``Cyrus`` server." +msgstr "" + +msgid "" +"Get the ``quota`` *root*'s resource usage and limits. This method is part of " +"the IMAP4 QUOTA extension defined in rfc2087." +msgstr "" + +msgid "" +"Get the list of ``quota`` ``roots`` for the named *mailbox*. This method is " +"part of the IMAP4 QUOTA extension defined in rfc2087." +msgstr "" + +msgid "" +"List mailbox names in *directory* matching *pattern*. *directory* defaults " +"to the top-level mail folder, and *pattern* defaults to match anything. " +"Returned data contains a list of ``LIST`` responses." +msgstr "" + +msgid "" +"Identify the client using a plaintext password. The *password* will be " +"quoted." +msgstr "" + +msgid "" +"Force use of ``CRAM-MD5`` authentication when identifying the client to " +"protect the password. Will only work if the server ``CAPABILITY`` response " +"includes the phrase ``AUTH=CRAM-MD5``." +msgstr "" + +msgid "Shutdown connection to server. Returns server ``BYE`` response." +msgstr "" + +msgid "The method no longer ignores silently arbitrary exceptions." +msgstr "" + +msgid "" +"List subscribed mailbox names in directory matching pattern. *directory* " +"defaults to the top level directory and *pattern* defaults to match any " +"mailbox. Returned data are tuples of message part envelope and data." +msgstr "" + +msgid "Show my ACLs for a mailbox (i.e. the rights that I have on mailbox)." +msgstr "" + +msgid "Returns IMAP namespaces as defined in :rfc:`2342`." +msgstr "" + +msgid "Send ``NOOP`` to server." +msgstr "" + +msgid "" +"Opens socket to *port* at *host*. The optional *timeout* parameter specifies " +"a timeout in seconds for the connection attempt. If timeout is not given or " +"is None, the global default socket timeout is used. Also note that if the " +"*timeout* parameter is set to be zero, it will raise a :class:`ValueError` " +"to reject creating a non-blocking socket. 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 "" + +msgid "" +"Raises an :ref:`auditing event ` ``imaplib.open`` with arguments " +"``self``, ``host``, ``port``." +msgstr "" + +msgid "The *timeout* parameter was added." +msgstr "" + +msgid "" +"Fetch truncated part of a message. Returned data is a tuple of message part " +"envelope and data." +msgstr "" + +msgid "" +"Assume authentication as *user*. Allows an authorised administrator to proxy " +"into any user's mailbox." +msgstr "" + +msgid "" +"Reads *size* bytes from the remote server. You may override this method." +msgstr "" + +msgid "Reads one line from the remote server. You may override this method." +msgstr "" + +msgid "" +"Prompt server for an update. Returned data is ``None`` if no new messages, " +"else value of ``RECENT`` response." +msgstr "" + +msgid "Rename mailbox named *oldmailbox* to *newmailbox*." +msgstr "" + +msgid "" +"Return data for response *code* if received, or ``None``. Returns the given " +"code, instead of the usual type." +msgstr "" + +msgid "" +"Search mailbox for matching messages. *charset* may be ``None``, in which " +"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." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "" +"Select a mailbox. Returned data is the count of messages in *mailbox* " +"(``EXISTS`` response). The default *mailbox* is ``'INBOX'``. If the " +"*readonly* flag is set, modifications to the mailbox are not allowed." +msgstr "" + +msgid "Sends ``data`` to the remote server. You may override this method." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``imaplib.send`` with arguments " +"``self``, ``data``." +msgstr "" + +msgid "" +"Set an ``ACL`` for *mailbox*. The method is non-standard, but is supported " +"by the ``Cyrus`` server." +msgstr "" + +msgid "" +"Set ``ANNOTATION``\\ s for *mailbox*. The method is non-standard, but is " +"supported by the ``Cyrus`` server." +msgstr "" + +msgid "" +"Set the ``quota`` *root*'s resource *limits*. This method is part of the " +"IMAP4 QUOTA extension defined in rfc2087." +msgstr "" + +msgid "" +"Close connection established in ``open``. This method is implicitly called " +"by :meth:`IMAP4.logout`. You may override this method." +msgstr "" + +msgid "Returns socket instance used to connect to server." +msgstr "" + +msgid "" +"The ``sort`` command is a variant of ``search`` with sorting semantics for " +"the results. Returned data contains a space separated list of matching " +"message numbers." +msgstr "" + +msgid "" +"Sort has two arguments before the *search_criterion* argument(s); a " +"parenthesized list of *sort_criteria*, and the searching *charset*. Note " +"that unlike ``search``, the searching *charset* argument is mandatory. " +"There is also a ``uid sort`` command which corresponds to ``sort`` the way " +"that ``uid search`` corresponds to ``search``. The ``sort`` command first " +"searches the mailbox for messages that match the given searching criteria " +"using the charset argument for the interpretation of strings in the " +"searching criteria. It then returns the numbers of matching messages." +msgstr "" + +msgid "This is an ``IMAP4rev1`` extension command." +msgstr "" + +msgid "" +"Send a ``STARTTLS`` command. The *ssl_context* argument is optional and " +"should be a :class:`ssl.SSLContext` object. This will enable encryption on " +"the IMAP connection. Please read :ref:`ssl-security` for best practices." +msgstr "" + +msgid "" +"The method now supports hostname check " +"with :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +msgid "Request named status conditions for *mailbox*." +msgstr "" + +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\"." +msgstr "" + +msgid "For example, to set the delete flag on all messages::" +msgstr "" + +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." +msgstr "" + +msgid "Subscribe to new mailbox." +msgstr "" + +msgid "" +"The ``thread`` command is a variant of ``search`` with threading semantics " +"for the results. Returned data contains a space separated list of thread " +"members." +msgstr "" + +msgid "" +"Thread members consist of zero or more messages numbers, delimited by " +"spaces, indicating successive parent and child." +msgstr "" + +msgid "" +"Thread has two arguments before the *search_criterion* argument(s); a " +"*threading_algorithm*, and the searching *charset*. Note that unlike " +"``search``, the searching *charset* argument is mandatory. There is also a " +"``uid thread`` command which corresponds to ``thread`` the way that ``uid " +"search`` corresponds to ``search``. The ``thread`` command first searches " +"the mailbox for messages that match the given searching criteria using the " +"charset argument for the interpretation of strings in the searching " +"criteria. It then returns the matching messages threaded according to the " +"specified threading algorithm." +msgstr "" + +msgid "" +"Execute command args with messages identified by UID, rather than message " +"number. Returns response appropriate to command. At least one argument " +"must be supplied; if none are provided, the server will return an error and " +"an exception will be raised." +msgstr "" + +msgid "Unsubscribe from old mailbox." +msgstr "" + +msgid "" +":meth:`imaplib.IMAP4.unselect` frees server's resources associated with the " +"selected mailbox and returns the server to the authenticated state. This " +"command performs the same actions as :meth:`imaplib.IMAP4.close`, except " +"that no messages are permanently removed from the currently selected mailbox." +msgstr "" + +msgid "" +"Allow simple extension commands notified by server in ``CAPABILITY`` " +"response." +msgstr "" + +msgid "The following attributes are defined on instances of :class:`IMAP4`:" +msgstr "" + +msgid "" +"The most recent supported protocol in the ``CAPABILITY`` response from the " +"server." +msgstr "" + +msgid "" +"Integer value to control debugging output. The initialize value is taken " +"from the module variable ``Debug``. Values greater than three trace each " +"command." +msgstr "" + +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." +msgstr "" + +msgid "IMAP4 Example" +msgstr "" + +msgid "" +"Here is a minimal example (without error checking) that opens a mailbox and " +"retrieves and prints all messages::" +msgstr "" diff --git a/library/imghdr.po b/library/imghdr.po index ecfc69bb1d..a7bfcf4df1 100644 --- a/library/imghdr.po +++ b/library/imghdr.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`imghdr` --- Determine the type of an image" msgstr "" @@ -150,8 +150,9 @@ msgstr "" 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 "" msgid "" @@ -160,4 +161,4 @@ msgid "" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" diff --git a/library/imp.po b/library/imp.po index 796c898f74..afd9f39af2 100644 --- a/library/imp.po +++ b/library/imp.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`imp` --- Access the :ref:`import ` internals" msgstr "" @@ -33,14 +33,14 @@ msgid "The :mod:`imp` module is deprecated in favor of :mod:`importlib`." msgstr "" 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 "" 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 "" msgid "Use :attr:`importlib.util.MAGIC_NUMBER` instead." @@ -52,8 +52,9 @@ msgid "" "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." +"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 "" msgid "Use the constants defined on :mod:`importlib.machinery` instead." @@ -63,9 +64,10 @@ 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 "" msgid "" @@ -102,17 +104,18 @@ msgstr "" 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 "" 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." +"usage of the former case, see the :ref:`importlib-examples` section of " +"the :mod:`importlib` documentation." msgstr "" msgid "" @@ -142,9 +145,10 @@ msgstr "" 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` " +"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." @@ -208,17 +212,18 @@ msgstr "" 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 "" msgid "" -"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." +"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." msgstr "" msgid "" @@ -245,19 +250,19 @@ 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 "" msgid "*path* need not exist." msgstr "" 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 "" msgid "Use :func:`importlib.util.cache_from_source` instead." @@ -268,11 +273,11 @@ msgstr "" 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 "" msgid "" @@ -392,6 +397,6 @@ msgstr "Przykłady" 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.) ::" +"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 e4d1f184e0..9d1f1251da 100644 --- a/library/importlib.po +++ b/library/importlib.po @@ -1,48 +1,44 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`!importlib` --- The implementation of :keyword:`!import`" msgstr "" msgid "**Source code:** :source:`Lib/importlib/__init__.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/importlib/__init__.py`" msgid "Introduction" msgstr "Wprowadzenie" -msgid "The purpose of the :mod:`importlib` package is three-fold." -msgstr "" - msgid "" -"One is to provide the implementation of the :keyword:`import` statement (and " -"thus, by extension, the :func:`__import__` function) in Python source code. " -"This provides an implementation of :keyword:`!import` which is portable to " -"any Python interpreter. This also provides an implementation which is easier " -"to comprehend than one implemented in a programming language other than " -"Python." +"The purpose of the :mod:`importlib` package is two-fold. One is to provide " +"the implementation of the :keyword:`import` statement (and thus, by " +"extension, the :func:`__import__` function) in Python source code. This " +"provides an implementation of :keyword:`!import` which is portable to any " +"Python interpreter. This also provides an implementation which is easier to " +"comprehend than one implemented in a programming language other than Python." msgstr "" msgid "" @@ -52,23 +48,8 @@ msgid "" "process." msgstr "" -msgid "" -"Three, the package contains modules exposing additional functionality for " -"managing aspects of Python packages:" -msgstr "" - -msgid "" -":mod:`importlib.metadata` presents access to metadata from third-party " -"distributions." -msgstr "" - -msgid "" -":mod:`importlib.resources` provides routines for accessing non-code " -"\"resources\" from Python packages." -msgstr "" - msgid ":ref:`import`" -msgstr "" +msgstr ":ref:`import`" msgid "The language reference for the :keyword:`import` statement." msgstr "" @@ -76,11 +57,12 @@ msgstr "" msgid "" "`Packages specification `__" msgstr "" +"`Specyfikacja pakietów `__" 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 "" msgid "The :func:`.__import__` function" @@ -89,80 +71,74 @@ msgstr "" msgid "The :keyword:`import` statement is syntactic sugar for this function." msgstr "" -msgid ":ref:`sys-path-init`" -msgstr "" - -msgid "The initialization of :data:`sys.path`." -msgstr "" - msgid ":pep:`235`" -msgstr "" +msgstr ":pep:`235`" msgid "Import on Case-Insensitive Platforms" msgstr "" msgid ":pep:`263`" -msgstr "" +msgstr ":pep:`263`" msgid "Defining Python Source Code Encodings" msgstr "" msgid ":pep:`302`" -msgstr "" +msgstr ":pep:`302`" msgid "New Import Hooks" msgstr "" msgid ":pep:`328`" -msgstr "" +msgstr ":pep:`328`" msgid "Imports: Multi-Line and Absolute/Relative" msgstr "" msgid ":pep:`366`" -msgstr "" +msgstr ":pep:`366`" msgid "Main module explicit relative imports" msgstr "" msgid ":pep:`420`" -msgstr "" +msgstr ":pep:`420`" msgid "Implicit namespace packages" msgstr "" msgid ":pep:`451`" -msgstr "" +msgstr ":pep:`451`" msgid "A ModuleSpec Type for the Import System" msgstr "" msgid ":pep:`488`" -msgstr "" +msgstr ":pep:`488`" msgid "Elimination of PYO files" msgstr "" msgid ":pep:`489`" -msgstr "" +msgstr ":pep:`489`" msgid "Multi-phase extension module initialization" msgstr "" msgid ":pep:`552`" -msgstr "" +msgstr ":pep:`552`" msgid "Deterministic pycs" msgstr "" msgid ":pep:`3120`" -msgstr "" +msgstr ":pep:`3120`" msgid "Using UTF-8 as the Default Source Encoding" msgstr "" msgid ":pep:`3147`" -msgstr "" +msgstr ":pep:`3147`" msgid "PYC Repository Directories" msgstr "" @@ -188,11 +164,11 @@ msgid "" msgstr "" msgid "" -"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__` " +"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__` " "returns the top-level package or module (e.g. ``pkg``)." msgstr "" @@ -209,9 +185,10 @@ msgstr "" 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." +"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 "" msgid "" @@ -237,11 +214,6 @@ msgid "" "will notice the new module's existence." msgstr "" -msgid "" -"Namespace packages created/installed in a different :data:`sys.path` " -"location after the same namespace was already imported are noticed." -msgstr "" - msgid "" "Reload a previously imported *module*. The argument must be a module " "object, so it must have been successfully imported before. This is useful " @@ -301,11 +273,11 @@ msgid "" msgstr "" msgid "" -"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." +"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." msgstr "" msgid "" @@ -316,15 +288,15 @@ msgid "" msgstr "" msgid "" -":exc:`ModuleNotFoundError` is raised when the module being reloaded lacks a :" -"class:`~importlib.machinery.ModuleSpec`." +":exc:`ModuleNotFoundError` is raised when the module being reloaded lacks " +"a :class:`~importlib.machinery.ModuleSpec`." msgstr "" msgid ":mod:`importlib.abc` -- Abstract base classes related to import" msgstr "" msgid "**Source code:** :source:`Lib/importlib/abc.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/importlib/abc.py`" msgid "" "The :mod:`importlib.abc` module contains all of the core abstract base " @@ -343,8 +315,8 @@ msgstr "" 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 "" msgid "" @@ -352,8 +324,8 @@ msgid "" msgstr "" msgid "" -"Implement :meth:`MetaPathFinder.find_spec` or :meth:`PathEntryFinder." -"find_spec` instead." +"Implement :meth:`MetaPathFinder.find_spec` " +"or :meth:`PathEntryFinder.find_spec` instead." msgstr "" msgid "An abstract base class representing a :term:`meta path finder`." @@ -376,9 +348,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 "" msgid "" @@ -406,18 +378,18 @@ 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:" -"`importlib.machinery.PathFinder`." +"meant for use only within the path-based import subsystem provided " +"by :class:`importlib.machinery.PathFinder`." msgstr "" 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 " -"concrete ``PathEntryFinders``." +"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 "" msgid "" @@ -438,8 +410,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -449,8 +421,9 @@ msgstr "" msgid "" "An optional method which, when called, should invalidate any internal cache " -"used by the finder. Used by :meth:`importlib.machinery.PathFinder." -"invalidate_caches` when invalidating the caches of all cached finders." +"used by the finder. Used " +"by :meth:`importlib.machinery.PathFinder.invalidate_caches` when " +"invalidating the caches of all cached finders." msgstr "" msgid "" @@ -459,12 +432,12 @@ msgid "" msgstr "" msgid "" -"Loaders that wish to support resource reading should implement a :meth:" -"`get_resource_reader` method as specified by :class:`importlib.resources.abc." -"ResourceReader`." +"Loaders that wish to support resource reading should implement a " +"``get_resource_reader(fullname)`` method as specified " +"by :class:`importlib.abc.ResourceReader`." msgstr "" -msgid "Introduced the optional :meth:`get_resource_reader` method." +msgid "Introduced the optional ``get_resource_reader()`` method." msgstr "" msgid "" @@ -473,88 +446,88 @@ msgid "" "semantics should take place." msgstr "" -msgid "This method is no longer optional when :meth:`exec_module` is defined." +msgid "" +"Starting in Python 3.6, this method will not be optional " +"when :meth:`exec_module` is defined." msgstr "" 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 :meth:`exec_module` is called. When this method exists, :meth:" -"`create_module` must be defined." +"when ``exec_module()`` is called. When this method " +"exists, :meth:`~importlib.abc.Loader.create_module` must be defined." msgstr "" -msgid ":meth:`create_module` must also be defined." +msgid ":meth:`~importlib.abc.Loader.create_module` must also be defined." msgstr "" 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 "" 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 " +"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 "" msgid "" -"The loader should set several attributes on the module (note that some of " +"The loader should set several attributes on the module. (Note that some of " "these attributes can change when a module is reloaded):" msgstr "" msgid ":attr:`__name__`" msgstr "" -msgid "" -"The module's fully qualified name. It is ``'__main__'`` for an executed " -"module." +msgid "The name of the module." msgstr "" msgid ":attr:`__file__`" msgstr "" msgid "" -"The location the :term:`loader` used to load the module. For example, for " -"modules loaded from a .py file this is the filename. It is not set on all " -"modules (e.g. built-in modules)." +"The path to where the module data is stored (not set for built-in modules)." msgstr "" msgid ":attr:`__cached__`" msgstr "" msgid "" -"The filename of a compiled version of the module's code. It is not set on " -"all modules (e.g. built-in modules)." +"The path to where a compiled version of the module is/should be stored (not " +"set when the attribute would be inappropriate)." msgstr "" msgid ":attr:`__path__`" msgstr "" msgid "" -"The list of locations where the package's submodules will be found. Most of " -"the time this is a single directory. The import system passes this attribute " -"to ``__import__()`` and to finders in the same way as :attr:`sys.path` but " -"just for the package. It is not set on non-package modules so it can be used " -"as an indicator that the module is a package." +"A list of strings specifying the search path within a package. This " +"attribute is not set on modules." msgstr "" msgid ":attr:`__package__`" msgstr "" msgid "" -"The fully qualified name of the package the module is in (or the empty " -"string for a top-level module). If the module is a package then this is the " -"same as :attr:`__name__`." +"The fully qualified name of the package under which the module was loaded as " +"a submodule (or the empty string for top-level modules). For packages, it is " +"the same as :attr:`__name__`. The :func:`importlib.util.module_for_loader` " +"decorator can handle the details for :attr:`__package__`." msgstr "" msgid ":attr:`__loader__`" msgstr "" -msgid "The :term:`loader` used to load the module." +msgid "" +"The loader used to load the module. " +"The :func:`importlib.util.module_for_loader` decorator can handle the " +"details for :attr:`__package__`." msgstr "" msgid "" @@ -563,22 +536,21 @@ msgid "" msgstr "" msgid "" -"Raise :exc:`ImportError` when called instead of :exc:`NotImplementedError`. " +"Raise :exc:`ImportError` when called instead of :exc:`NotImplementedError`. " "Functionality provided when :meth:`exec_module` is available." msgstr "" msgid "" -"The recommended API for loading a module is :meth:`exec_module` (and :meth:" -"`create_module`). Loaders should implement it instead of :meth:" -"`load_module`. The import machinery takes care of all the other " -"responsibilities of :meth:`load_module` when :meth:`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 "" msgid "" "A legacy method which when implemented calculates and returns the given " -"module's representation, as a string. The module type's default :meth:" -"`__repr__` will use the result of this method as appropriate." +"module's repr, as a string. The module type's default repr() will use the " +"result of this method as appropriate." msgstr "" msgid "Made optional instead of an abstractmethod." @@ -587,14 +559,89 @@ msgstr "" msgid "The import machinery now takes care of this automatically." msgstr "" +msgid "*Superseded by TraversableResources*" +msgstr "" + +msgid "" +"An :term:`abstract base class` to provide the ability to read *resources*." +msgstr "" + +msgid "" +"From the perspective of this ABC, a *resource* is a binary artifact that is " +"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." +msgstr "" + +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* " +"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 " +"potentially representing multiple packages or a module)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns an opened, :term:`file-like object` for binary reading of the " +"*resource*." +msgstr "" + +msgid "If the resource cannot be found, :exc:`FileNotFoundError` is raised." +msgstr "" + +msgid "Returns the file system path to the *resource*." +msgstr "" + +msgid "" +"If the resource does not concretely exist on the file system, " +"raise :exc:`FileNotFoundError`." +msgstr "" + +msgid "" +"Returns ``True`` if the named *name* is considered a " +"resource. :exc:`FileNotFoundError` is raised if *name* does not exist." +msgstr "" + 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." +"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." +msgstr "" + +msgid "" +"Allowing non-resource names to be returned is to allow for situations where " +"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." +msgstr "" + +msgid "The abstract method returns an iterable of no items." msgstr "" msgid "" -"This ABC is deprecated in favour of supporting resource loading through :" -"class:`importlib.resources.abc.ResourceReader`." +"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 "" + +msgid "" +"This ABC is deprecated in favour of supporting resource loading " +"through :class:`importlib.abc.ResourceReader`." msgstr "" msgid "" @@ -610,8 +657,8 @@ msgid "Raises :exc:`OSError` instead of :exc:`NotImplementedError`." msgstr "" 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 "" msgid "" @@ -649,10 +696,10 @@ msgid "Create a code object from Python source." msgstr "" 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 "" msgid "" @@ -689,9 +736,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -719,15 +766,15 @@ msgstr "" 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 "" msgid ":meth:`ResourceLoader.get_data`" -msgstr "" +msgstr ":meth:`ResourceLoader.get_data`" msgid ":meth:`ExecutionLoader.get_filename`" -msgstr "" +msgstr ":meth:`ExecutionLoader.get_filename`" msgid "" "Should only return the path to the source file; sourceless loading is not " @@ -736,9 +783,9 @@ msgstr "" 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* " +"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 " @@ -784,8 +831,9 @@ msgid "" msgstr "" 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 "" msgid "No longer raises :exc:`NotImplementedError` when called." @@ -808,17 +856,244 @@ msgstr "" 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 "" +msgid "" +"An object with a subset of :class:`pathlib.Path` methods suitable for " +"traversing directories and opening files." +msgstr "" + +msgid "" +"For a representation of the object on the file-system, " +"use :meth:`importlib.resources.as_file`." +msgstr "" + +msgid "The base name of this object without any parent references." +msgstr "" + +msgid "Yield Traversable objects in self." +msgstr "" + +msgid "Return True if self is a directory." +msgstr "" + +msgid "Return True if self is a file." +msgstr "" + +msgid "Return Traversable child in self." +msgstr "" + +msgid "" +"*mode* may be 'r' or 'rb' to open as text or binary. Return a handle " +"suitable for reading (same as :attr:`pathlib.Path.open`)." +msgstr "" + +msgid "" +"When opening as text, accepts encoding parameters such as those accepted " +"by :attr:`io.TextIOWrapper`." +msgstr "" + +msgid "Read contents of self as bytes." +msgstr "" + +msgid "Read contents of self as text." +msgstr "" + +msgid "" +"Note: In Python 3.11 and later, this class is found in " +"``importlib.resources.abc``." +msgstr "" + +msgid "" +"An abstract base class for resource readers capable of serving the ``files`` " +"interface. Subclasses ResourceReader and provides concrete implementations " +"of the ResourceReader's abstract methods. Therefore, any loader supplying " +"TraversableResources also supplies ResourceReader." +msgstr "" + +msgid "" +"Loaders that wish to support resource reading are expected to implement this " +"interface." +msgstr "" + +msgid ":mod:`importlib.resources` -- Resources" +msgstr "" + +msgid "**Source code:** :source:`Lib/importlib/resources.py`" +msgstr "" + +msgid "" +"This module leverages Python's import system to provide access to " +"*resources* within *packages*. If you can import a package, you can access " +"resources within that package. Resources can be opened or read, in either " +"binary or text mode." +msgstr "" + +msgid "" +"Resources are roughly akin to files inside directories, though it's " +"important to keep in mind that this is just a metaphor. Resources and " +"packages **do not** have to exist as physical files and directories on the " +"file system." +msgstr "" + +msgid "" +"This module provides functionality similar to `pkg_resources `_ `Basic Resource " +"Access `_ without the performance overhead of that package. This " +"makes reading resources included in packages easier, with more stable and " +"consistent semantics." +msgstr "" + +msgid "" +"The standalone backport of this module provides more information on `using " +"importlib.resources `_ and `migrating from pkg_resources to importlib.resources " +"`_." +msgstr "" + +msgid "The following types are defined." +msgstr "" + +msgid "" +"The ``Package`` type is defined as ``Union[str, ModuleType]``. This means " +"that where the function describes accepting a ``Package``, you can pass in " +"either a string or a module. Module objects must have a resolvable " +"``__spec__.submodule_search_locations`` that is not ``None``." +msgstr "" + +msgid "" +"This type describes the resource names passed into the various functions in " +"this package. This is defined as ``Union[str, os.PathLike]``." +msgstr "" + +msgid "The following functions are available." +msgstr "" + +msgid "" +"Returns an :class:`importlib.abc.Traversable` object representing the " +"resource container for the package (think directory) and its resources " +"(think files). A Traversable may contain other containers (think " +"subdirectories)." +msgstr "" + +msgid "" +"*package* is either a name or a module object which conforms to the " +"``Package`` requirements." +msgstr "" + +msgid "" +"Given a :class:`importlib.abc.Traversable` object representing a file, " +"typically from :func:`importlib.resources.files`, return a context manager " +"for use in a :keyword:`with` statement. The context manager provides " +"a :class:`pathlib.Path` object." +msgstr "" + +msgid "" +"Exiting the context manager cleans up any temporary file created when the " +"resource was extracted from e.g. a zip file." +msgstr "" + +msgid "" +"Use ``as_file`` when the Traversable methods (``read_text``, etc) are " +"insufficient and an actual file on the file system is required." +msgstr "" + +msgid "Open for binary reading the *resource* within *package*." +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." +msgstr "" + +msgid "" +"Open for text reading the *resource* within *package*. By default, the " +"resource is opened for reading as UTF-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). *encoding* and *errors* have the " +"same meaning as with built-in :func:`open`." +msgstr "" + +msgid "" +"This function returns a ``typing.TextIO`` instance, a text I/O stream open " +"for reading." +msgstr "" + +msgid "" +"Read and return the contents of the *resource* within *package* as ``bytes``." +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 the " +"contents of the resource as :class:`bytes`." +msgstr "" + +msgid "" +"Read and return the contents of *resource* within *package* as a ``str``. By " +"default, the contents are read as strict UTF-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). *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 "" + +msgid "" +"Return the path to the *resource* as an actual file system path. This " +"function returns a context manager for use in a :keyword:`with` statement. " +"The context manager provides a :class:`pathlib.Path` object." +msgstr "" + +msgid "" +"Exiting the context manager cleans up any temporary file created when the " +"resource needs to be extracted from e.g. a zip file." +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)." +msgstr "" + +msgid "" +"Return ``True`` if there is a resource named *name* in the package, " +"otherwise ``False``. Remember that directories are *not* resources! " +"*package* is either a name or a module object which conforms to the " +"``Package`` requirements." +msgstr "" + +msgid "" +"Return an iterable over the named items within the package. The iterable " +"returns :class:`str` resources (e.g. files) and non-resources (e.g. " +"directories). The iterable does not recurse into subdirectories." +msgstr "" + msgid ":mod:`importlib.machinery` -- Importers and path hooks" msgstr "" msgid "**Source code:** :source:`Lib/importlib/machinery.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/importlib/machinery.py`" msgid "" "This module contains the various objects that help :keyword:`import` find " @@ -860,14 +1135,15 @@ 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`)." +"module without needing any details on the kind of module (for " +"example, :func:`inspect.getmodulename`)." msgstr "" 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 "" msgid "" @@ -876,13 +1152,14 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -908,20 +1185,21 @@ msgstr "" 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 "" 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 "" msgid "A legacy wrapper around :meth:`find_spec`." @@ -989,8 +1267,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1067,8 +1345,8 @@ msgid "Path to the extension module." msgstr "" 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 "" msgid "Initializes the given module object in accordance with :pep:`489`." @@ -1085,100 +1363,79 @@ msgstr "" msgid "Returns ``None`` as extension modules do not have source code." msgstr "" -msgid "" -"A concrete implementation of :class:`importlib.abc.InspectLoader` for " -"namespace packages. This is an alias for a private class and is only made " -"public for introspecting the ``__loader__`` attribute on namespace packages::" -msgstr "" - msgid "" "A specification for a module's import-system-related state. This is " -"typically exposed as the module's :attr:`__spec__` attribute. In the " +"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. For example, it is possible to update the " -"module's :attr:`__file__` at runtime and this will not be automatically " -"reflected in the module's :attr:`__spec__.origin`, and vice versa." +"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 "" -msgid "(:attr:`__name__`)" +msgid "(``__name__``)" msgstr "" -msgid "" -"The module's fully qualified name. The :term:`finder` should always set this " -"attribute to a non-empty string." +msgid "A string for the fully qualified name of the module." msgstr "" -msgid "(:attr:`__loader__`)" +msgid "(``__loader__``)" msgstr "" msgid "" -"The :term:`loader` used to load the module. The :term:`finder` should always " -"set this attribute." +"The :term:`Loader ` that should be used when loading the " +"module. :term:`Finders ` should always set this." msgstr "" -msgid "(:attr:`__file__`)" +msgid "(``__file__``)" msgstr "" msgid "" -"The location the :term:`loader` should use to load the module. For example, " -"for modules loaded from a .py file this is the filename. The :term:`finder` " -"should always set this attribute to a meaningful value for the :term:" -"`loader` to use. In the uncommon case that there is not one (like for " -"namespace packages), it should be set to ``None``." +"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 " +"\"origin\" should be set, but it may be ``None`` (the default) which " +"indicates it is unspecified (e.g. for namespace packages)." msgstr "" -msgid "(:attr:`__path__`)" +msgid "(``__path__``)" msgstr "" msgid "" -"The list of locations where the package's submodules will be found. Most of " -"the time this is a single directory. The :term:`finder` should set this " -"attribute to a list, even an empty one, to indicate to the import system " -"that the module is a package. It should be set to ``None`` for non-package " -"modules. It is set automatically later to a special object for namespace " -"packages." +"List of strings for where to find submodules, if a package (``None`` " +"otherwise)." msgstr "" msgid "" -"The :term:`finder` may set this attribute to an object containing " -"additional, module-specific data to use when loading the module. Otherwise " -"it should be set to ``None``." +"Container of extra module-specific data for use during loading (or ``None``)." msgstr "" -msgid "(:attr:`__cached__`)" +msgid "(``__cached__``)" msgstr "" -msgid "" -"The filename of a compiled version of the module's code. The :term:`finder` " -"should always set this attribute but it may be ``None`` for modules that do " -"not need compiled code stored." +msgid "String for where the compiled module should be stored (or ``None``)." msgstr "" -msgid "(:attr:`__package__`)" +msgid "(``__package__``)" msgstr "" msgid "" -"(Read-only) The fully qualified name of the package the module is in (or the " -"empty string for a top-level module). If the module is a package then this " -"is the same as :attr:`name`." -msgstr "" - -msgid "``True`` if the spec's :attr:`origin` refers to a loadable location," +"(Read-only) The fully qualified name of the package under which the module " +"should be loaded as a submodule (or the empty string for top-level modules). " +"For packages, it is the same as :attr:`__name__`." msgstr "" msgid "" -"``False`` otherwise. This value impacts how :attr:`origin` is interpreted " -"and how the module's :attr:`__file__` is populated." +"Boolean indicating whether or not the module's \"origin\" attribute refers " +"to a loadable location." msgstr "" msgid ":mod:`importlib.util` -- Utility code for importers" msgstr "" msgid "**Source code:** :source:`Lib/importlib/util.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/importlib/util.py`" msgid "" "This module contains the various objects that help in the construction of " @@ -1194,9 +1451,9 @@ 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)." +"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 "" msgid "" @@ -1206,9 +1463,9 @@ msgid "" "``/foo/bar/__pycache__/baz.cpython-32.pyc``. ``None`` causes the " "interpreter's optimization level to be used. Any other value's string " "representation is 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." +"``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 "" msgid "" @@ -1229,17 +1486,18 @@ msgstr "" 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* " +"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." +"format, a :exc:`ValueError` is raised. " +"If :attr:`sys.implementation.cache_tag` is not " +"defined, :exc:`NotImplementedError` is raised." msgstr "" 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 "" msgid "Resolve a relative module name to an absolute one." @@ -1247,15 +1505,17 @@ msgstr "" msgid "" "If **name** has no leading dots, then **name** is simply returned. This " -"allows for usage such as ``importlib.util.resolve_name('sys', __spec__." -"parent)`` without doing a check to see if the **package** argument is needed." +"allows for usage such as ``importlib.util.resolve_name('sys', " +"__spec__.parent)`` without doing a check to see if the **package** argument " +"is needed." msgstr "" msgid "" ":exc:`ImportError` is raised if **name** is a relative module name but " -"**package** is a false value (e.g. ``None`` or the empty string). :exc:" -"`ImportError` is also raised if 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:`ImportError` is also raised a relative name would escape its " +"containing package (e.g. requesting ``..bacon`` from within the ``spam`` " +"package)." msgstr "" msgid "" @@ -1315,18 +1575,19 @@ msgstr "" 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." +"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 "" 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 " -"initialized module from being in left in :data:`sys.modules`. If the module " -"was already in :data:`sys.modules` then it is left alone." +"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 "" msgid "" @@ -1345,11 +1606,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1360,17 +1621,18 @@ msgid "The import machinery takes care of this automatically." msgstr "" 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 "" msgid "" "A factory function for creating a :class:`~importlib.machinery.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." +"for ModuleSpec. The function uses available :term:`loader` APIs, such " +"as :meth:`InspectLoader.is_package`, to fill in any missing information on " +"the spec." msgstr "" msgid "" @@ -1392,15 +1654,16 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1413,12 +1676,12 @@ msgstr "" 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 "" msgid "" -"A static method which returns a callable that creates a lazy loader. This is " +"A class 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 "" @@ -1442,14 +1705,16 @@ msgid "" msgstr "" msgid "" -"Note that if ``name`` is a submodule (contains a dot), :func:`importlib.util." -"find_spec` will import the parent module. ::" +"Note that if ``name`` is a submodule (contains a " +"dot), :func:`importlib.util.find_spec` will import the parent module. ::" msgstr "" msgid "Importing a source file directly" msgstr "" -msgid "To import a Python source file directly, use the following recipe::" +msgid "" +"To import a Python source file directly, use the following recipe (Python " +"3.5 and newer only)::" msgstr "" msgid "Implementing lazy imports" @@ -1462,16 +1727,17 @@ msgid "Setting up an importer" msgstr "" 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 "" msgid "Approximating :func:`importlib.import_module`" @@ -1481,5 +1747,7 @@ msgid "" "Import itself is implemented in Python code, making it possible to expose " "most of the import machinery through importlib. The following helps " "illustrate the various APIs that importlib exposes by providing an " -"approximate implementation of :func:`importlib.import_module`::" +"approximate implementation of :func:`importlib.import_module` (Python 3.4 " +"and newer for the importlib usage, Python 3.6 and newer for other parts of " +"the code). ::" msgstr "" diff --git a/library/importlib_metadata.po b/library/importlib_metadata.po index 3846a908bb..6c967badcb 100644 --- a/library/importlib_metadata.po +++ b/library/importlib_metadata.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Using :mod:`!importlib.metadata`" msgstr "" @@ -30,85 +30,53 @@ msgid "``importlib.metadata`` is no longer provisional." msgstr "" msgid "**Source code:** :source:`Lib/importlib/metadata/__init__.py`" -msgstr "" - -msgid "" -"``importlib_metadata`` is a library that provides access to the metadata of " -"an installed `Distribution Package `_, such as its entry points or its top-" -"level names (`Import Package `_\\s, modules, if any). Built in part on " -"Python's import system, this library intends to replace similar " -"functionality in the `entry point API`_ and `metadata API`_ of " -"``pkg_resources``. Along with :mod:`importlib.resources`, this package can " -"eliminate the need to use the older and less efficient ``pkg_resources`` " -"package." -msgstr "" - -msgid "" -"``importlib_metadata`` operates on third-party *distribution packages* " -"installed into Python's ``site-packages`` directory via tools such as `pip " -"`_. Specifically, it works with distributions " -"with discoverable ``dist-info`` or ``egg-info`` directories, and metadata " -"defined by the `Core metadata specifications `_." -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/importlib/metadata/__init__.py`" msgid "" -"These are *not* necessarily equivalent to or correspond 1:1 with the top-" -"level *import package* names that can be imported inside Python code. One " -"*distribution package* can contain multiple *import packages* (and single " -"modules), and one top-level *import package* may map to multiple " -"*distribution packages* if it is a namespace package. You can use :ref:" -"`package_distributions() ` to get a mapping between " -"them." +"``importlib.metadata`` is a library that provides for access to installed " +"package metadata. Built in part on Python's import system, this library " +"intends to replace similar functionality in the `entry point API`_ and " +"`metadata API`_ of ``pkg_resources``. Along with :mod:`importlib.resources` " +"in Python 3.7 and newer (backported as `importlib_resources`_ for older " +"versions of Python), this can eliminate the need to use the older and less " +"efficient ``pkg_resources`` package." msgstr "" msgid "" -"By default, distribution metadata can live on the file system or in zip " -"archives on :data:`sys.path`. Through an extension mechanism, the metadata " -"can live almost anywhere." -msgstr "" - -msgid "https://importlib-metadata.readthedocs.io/" -msgstr "" - -msgid "" -"The documentation for ``importlib_metadata``, which supplies a backport of " -"``importlib.metadata``. This includes an `API reference `__ for this module's classes and " -"functions, as well as a `migration guide `__ for existing users of " -"``pkg_resources``." +"By \"installed package\" we generally mean a third-party package installed " +"into Python's ``site-packages`` directory via tools such as `pip `_. Specifically, it means a package with either a " +"discoverable ``dist-info`` or ``egg-info`` directory, and metadata defined " +"by :pep:`566` or its older specifications. By default, package metadata can " +"live on the file system or in zip archives on :data:`sys.path`. Through an " +"extension mechanism, the metadata can live almost anywhere." msgstr "" msgid "Overview" msgstr "Skorowidz" msgid "" -"Let's say you wanted to get the version string for a `Distribution Package " -"`_ you've installed using ``pip``. We start by creating a virtual " -"environment and installing something into it:" +"Let's say you wanted to get the version string for a package you've " +"installed using ``pip``. We start by creating a virtual environment and " +"installing something into it:" msgstr "" msgid "You can get the version string for ``wheel`` by running the following:" msgstr "" msgid "" -"You can also get a collection of entry points selectable by properties of " -"the EntryPoint (typically 'group' or 'name'), such as ``console_scripts``, " -"``distutils.commands`` and others. Each group contains a collection of :ref:" -"`EntryPoint ` objects." +"You can also get the set of entry points keyed by group, such as " +"``console_scripts``, ``distutils.commands`` and others. Each group contains " +"a sequence of :ref:`EntryPoint ` objects." msgstr "" msgid "You can get the :ref:`metadata for a distribution `::" msgstr "" msgid "" -"You can also get a :ref:`distribution's version number `, list its :" -"ref:`constituent files `, and get a list of the distribution's :ref:" -"`requirements`." +"You can also get a :ref:`distribution's version number `, list " +"its :ref:`constituent files `, and get a list of the " +"distribution's :ref:`requirements`." msgstr "" msgid "Functional API" @@ -124,8 +92,9 @@ msgid "" "The ``entry_points()`` function returns a collection of entry points. Entry " "points are represented by ``EntryPoint`` instances; each ``EntryPoint`` has " "a ``.name``, ``.group``, and ``.value`` attributes and a ``.load()`` method " -"to resolve the value. There are also ``.module``, ``.attr``, and ``." -"extras`` attributes for getting the components of the ``.value`` attribute." +"to resolve the value. There are also ``.module``, ``.attr``, and " +"``.extras`` attributes for getting the components of the ``.value`` " +"attribute." msgstr "" msgid "Query all entry points::" @@ -133,7 +102,7 @@ msgstr "" msgid "" "The ``entry_points()`` function returns an ``EntryPoints`` object, a " -"collection of all ``EntryPoint`` objects with ``names`` and ``groups`` " +"sequence of all ``EntryPoint`` objects with ``names`` and ``groups`` " "attributes for convenience::" msgstr "" @@ -183,9 +152,8 @@ msgid "Distribution metadata" msgstr "" msgid "" -"Every `Distribution Package `_ includes some metadata, which you can extract " -"using the ``metadata()`` function::" +"Every distribution includes some metadata, which you can extract using the " +"``metadata()`` function::" msgstr "" msgid "" @@ -199,13 +167,6 @@ msgid "" "metadata in a JSON-compatible form per :PEP:`566`::" msgstr "" -msgid "" -"The actual type of the object returned by ``metadata()`` is an " -"implementation detail and should be accessed only through the interface " -"described by the `PackageMetadata protocol `_." -msgstr "" - msgid "" "The ``Description`` is now included in the metadata when presented through " "the payload. Line continuation characters have been removed." @@ -218,9 +179,8 @@ msgid "Distribution versions" msgstr "" msgid "" -"The ``version()`` function is the quickest way to get a `Distribution " -"Package `_'s version number, as a string::" +"The ``version()`` function is the quickest way to get a distribution's " +"version number, as a string::" msgstr "" msgid "Distribution files" @@ -228,8 +188,7 @@ msgstr "" msgid "" "You can also get the full set of files contained within a distribution. The " -"``files()`` function takes a `Distribution Package `_ name and returns all of " +"``files()`` function takes a distribution package name and returns all of " "the files installed by this distribution. Each file object returned is a " "``PackagePath``, a :class:`pathlib.PurePath` derived object with additional " "``dist``, ``size``, and ``hash`` properties as indicated by the metadata. " @@ -257,20 +216,16 @@ msgid "Distribution requirements" msgstr "" msgid "" -"To get the full set of requirements for a `Distribution Package `_, use " -"the ``requires()`` function::" +"To get the full set of requirements for a distribution, use the " +"``requires()`` function::" msgstr "" -msgid "Mapping import to distribution packages" +msgid "Package distributions" msgstr "" msgid "" -"A convenience method to resolve the `Distribution Package `_ name (or names, " -"in the case of a namespace package) that provide each importable top-level " -"Python module or `Import Package `_::" +"A convenience method to resolve the distribution or distributions (in the " +"case of a namespace package) for top-level Python packages or modules::" msgstr "" msgid "Distributions" @@ -279,9 +234,8 @@ msgstr "" msgid "" "While the above API is the most common and convenient usage, you can get all " "of that information from the ``Distribution`` class. A ``Distribution`` is " -"an abstract object that represents the metadata for a Python `Distribution " -"Package `_. You can get the ``Distribution`` instance::" +"an abstract object that represents the metadata for a Python package. You " +"can get the ``Distribution`` instance::" msgstr "" msgid "" @@ -295,53 +249,31 @@ msgid "" msgstr "" msgid "" -"The full set of available metadata is not described here. See the `Core " -"metadata specifications `_ for additional details." -msgstr "" - -msgid "Distribution Discovery" -msgstr "" - -msgid "" -"By default, this package provides built-in support for discovery of metadata " -"for file system and zip file `Distribution Package `_\\s. This metadata " -"finder search defaults to ``sys.path``, but varies slightly in how it " -"interprets those values from how other import machinery does. In particular:" -msgstr "" - -msgid "" -"``importlib.metadata`` does not honor :class:`bytes` objects on ``sys.path``." -msgstr "" - -msgid "" -"``importlib.metadata`` will incidentally honor :py:class:`pathlib.Path` " -"objects on ``sys.path`` even though such values will be ignored for imports." +"The full set of available metadata is not described here. See :pep:`566` " +"for additional details." msgstr "" msgid "Extending the search algorithm" msgstr "" msgid "" -"Because `Distribution Package `_ metadata is not available through :" -"data:`sys.path` searches, or package loaders directly, the metadata for a " -"distribution is found through import system `finders`_. To find a " -"distribution package's metadata, ``importlib.metadata`` queries the list of :" -"term:`meta path finders ` on :data:`sys.meta_path`." +"Because package metadata is not available through :data:`sys.path` searches, " +"or package loaders directly, the metadata for a package is found through " +"import system :ref:`finders `. To find a distribution " +"package's metadata, ``importlib.metadata`` queries the list of :term:`meta " +"path finders ` on :data:`sys.meta_path`." msgstr "" msgid "" -"By default ``importlib_metadata`` installs a finder for distribution " -"packages found on the file system. This finder doesn't actually find any " -"*distributions*, but it can find their metadata." +"The default ``PathFinder`` for Python includes a hook that calls into " +"``importlib.metadata.MetadataPathFinder`` for finding distributions loaded " +"from typical file-system-based paths." msgstr "" msgid "" "The abstract class :py:class:`importlib.abc.MetaPathFinder` defines the " -"interface expected of finders by Python's import system. ``importlib." -"metadata`` extends this protocol by looking for an optional " +"interface expected of finders by Python's import system. " +"``importlib.metadata`` extends this protocol by looking for an optional " "``find_distributions`` callable on the finders from :data:`sys.meta_path` " "and presents this extended interface as the ``DistributionFinder`` abstract " "base class, which defines this abstract method::" diff --git a/library/index.po b/library/index.po index 000592d393..c4cc3bcd2f 100644 --- a/library/index.po +++ b/library/index.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "The Python Standard Library" msgstr "Biblioteka standardowa Pythona" @@ -68,6 +68,12 @@ msgid "" "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 "" +"Instalatory Python dla platformy Windows zazwyczaj zawierają całą bibliotekę " +"standardową, a często także wiele dodatkowych komponentów. W przypadku " +"systemów operacyjnych podobnych do Unix Python jest zwykle dostarczany jako " +"zbiór pakietów, więc może być konieczne użycie narzędzi do pakowania " +"dostarczonych z systemem operacyjnym w celu uzyskania niektórych lub " +"wszystkich składników opcjonalnych." msgid "" "In addition to the standard library, there is a growing collection of " diff --git a/library/inspect.po b/library/inspect.po index 24af9e6abe..6d8d0f6d53 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# m_aciek , 2020 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.9\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-01 05:02+0000\n" -"PO-Revision-Date: 2017-02-16 23:15+0000\n" -"Last-Translator: m_aciek , 2020\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`inspect` --- Inspect live objects" msgstr "" msgid "**Source code:** :source:`Lib/inspect.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/inspect.py`" msgid "" "The :mod:`inspect` module provides several useful functions to help get " @@ -50,25 +50,25 @@ msgstr "" 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:" +"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 "" msgid "Type" -msgstr "" +msgstr "Typ" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Description" msgstr "Opis" msgid "module" -msgstr "" +msgstr "moduł" msgid "__doc__" -msgstr "" +msgstr "__doc__" msgid "documentation string" msgstr "" @@ -80,40 +80,40 @@ msgid "filename (missing for built-in modules)" msgstr "" msgid "class" -msgstr "" +msgstr "klasa" msgid "__name__" -msgstr "" +msgstr "__name__" msgid "name with which this class was defined" msgstr "" msgid "__qualname__" -msgstr "" +msgstr "__qualname__" msgid "qualified name" msgstr "" msgid "__module__" -msgstr "" +msgstr "__module__" msgid "name of module in which this class was defined" msgstr "" msgid "method" -msgstr "" +msgstr "metoda" msgid "name with which this method was defined" msgstr "" msgid "__func__" -msgstr "" +msgstr "__func__" msgid "function object containing implementation of method" msgstr "" msgid "__self__" -msgstr "" +msgstr "__self__" msgid "instance to which this method is bound, or ``None``" msgstr "" @@ -122,38 +122,44 @@ msgid "name of module in which this method was defined" msgstr "" msgid "function" -msgstr "" +msgstr "funkcja" msgid "name with which this function was defined" msgstr "" msgid "__code__" -msgstr "" +msgstr "__code__" msgid "code object containing compiled function :term:`bytecode`" msgstr "" msgid "__defaults__" -msgstr "" +msgstr "__defaults__" msgid "tuple of any default values for positional or keyword parameters" msgstr "" msgid "__kwdefaults__" -msgstr "" +msgstr "__kwdefaults__" msgid "mapping of any default values for keyword-only parameters" msgstr "" msgid "__globals__" -msgstr "" +msgstr "__globals__" msgid "global namespace in which this function was defined" msgstr "" -msgid "__annotations__" +msgid "__builtins__" +msgstr "__builtins__" + +msgid "builtins namespace" msgstr "" +msgid "__annotations__" +msgstr "__annotations__" + msgid "" "mapping of parameters names to annotations; ``\"return\"`` key is reserved " "for return annotations." @@ -166,19 +172,19 @@ msgid "traceback" msgstr "" msgid "tb_frame" -msgstr "" +msgstr "tb_frame" msgid "frame object at this level" msgstr "" msgid "tb_lasti" -msgstr "" +msgstr "tb_lasti" msgid "index of last attempted instruction in bytecode" msgstr "" msgid "tb_lineno" -msgstr "" +msgstr "tb_lineno" msgid "current line number in Python source code" msgstr "" @@ -193,25 +199,25 @@ msgid "frame" msgstr "" msgid "f_back" -msgstr "" +msgstr "f_back" msgid "next outer frame object (this frame's caller)" msgstr "" msgid "f_builtins" -msgstr "" +msgstr "f_builtins" msgid "builtins namespace seen by this frame" msgstr "" msgid "f_code" -msgstr "" +msgstr "f_code" msgid "code object being executed in this frame" msgstr "" msgid "f_globals" -msgstr "" +msgstr "f_globals" msgid "global namespace seen by this frame" msgstr "" @@ -220,10 +226,10 @@ msgid "f_lasti" msgstr "" msgid "f_lineno" -msgstr "" +msgstr "f_lineno" msgid "f_locals" -msgstr "" +msgstr "f_locals" msgid "local namespace seen by this frame" msgstr "" @@ -238,7 +244,7 @@ msgid "code" msgstr "" msgid "co_argcount" -msgstr "" +msgstr "co_argcount" msgid "" "number of arguments (not including keyword only arguments, \\* or \\*\\* " @@ -246,7 +252,7 @@ msgid "" msgstr "" msgid "co_code" -msgstr "" +msgstr "co_code" msgid "string of raw compiled bytecode" msgstr "" @@ -258,7 +264,7 @@ msgid "tuple of names of cell variables (referenced by containing scopes)" msgstr "" msgid "co_consts" -msgstr "" +msgstr "co_consts" msgid "tuple of constants used in the bytecode" msgstr "" @@ -270,13 +276,13 @@ msgid "name of file in which this code object was created" msgstr "" msgid "co_firstlineno" -msgstr "" +msgstr "co_firstlineno" msgid "number of first line in Python source code" msgstr "" msgid "co_flags" -msgstr "" +msgstr "co_flags" msgid "" "bitmap of ``CO_*`` flags, read more :ref:`here `" @@ -295,19 +301,19 @@ msgid "tuple of names of free variables (referenced via a function's closure)" msgstr "" msgid "co_posonlyargcount" -msgstr "" +msgstr "co_posonlyargcount" msgid "number of positional only arguments" msgstr "" msgid "co_kwonlyargcount" -msgstr "" +msgstr "co_kwonlyargcount" msgid "number of keyword only arguments (not including \\*\\* arg)" msgstr "" msgid "co_name" -msgstr "" +msgstr "co_name" msgid "name with which this code object was defined" msgstr "" @@ -315,17 +321,17 @@ msgstr "" msgid "co_names" msgstr "" -msgid "tuple of names of local variables" +msgid "tuple of names other than arguments and function locals" msgstr "" msgid "co_nlocals" -msgstr "" +msgstr "co_nlocals" msgid "number of local variables" msgstr "" msgid "co_stacksize" -msgstr "" +msgstr "co_stacksize" msgid "virtual machine stack space required" msgstr "" @@ -337,16 +343,16 @@ msgid "tuple of names of arguments and local variables" msgstr "" msgid "generator" -msgstr "" +msgstr "generator" msgid "name" -msgstr "" +msgstr "nazwa" msgid "gi_frame" -msgstr "" +msgstr "gi_frame" msgid "gi_running" -msgstr "" +msgstr "gi_running" msgid "is the generator running?" msgstr "" @@ -364,13 +370,13 @@ msgid "coroutine" msgstr "" msgid "cr_await" -msgstr "" +msgstr "cr_await" msgid "object being awaited on, or ``None``" msgstr "" msgid "cr_frame" -msgstr "" +msgstr "cr_frame" msgid "cr_running" msgstr "" @@ -379,7 +385,7 @@ msgid "is the coroutine running?" msgstr "" msgid "cr_code" -msgstr "" +msgstr "cr_code" msgid "cr_origin" msgstr "" @@ -407,6 +413,9 @@ msgstr "" msgid "Add ``cr_origin`` attribute to coroutines." msgstr "" +msgid "Add ``__builtins__`` attribute to functions." +msgstr "" + msgid "" "Return all the members of an object in a list of ``(name, value)`` pairs " "sorted by name. If the optional *predicate* argument—which will be called " @@ -475,8 +484,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -526,64 +535,67 @@ msgid "Return ``True`` if the object is an abstract base class." msgstr "" 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 "" 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 "" 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`." +"the other tests promise more -- you can, e.g., count on having " +"the :attr:`__func__` attribute (etc) when an object passes :func:`ismethod`." msgstr "" msgid "Return ``True`` if the object is a data descriptor." msgstr "" msgid "" -"Data descriptors have a :attr:`~object.__set__` or a :attr:`~object." -"__delete__` 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 a :attr:`~object.__set__` or " +"a :attr:`~object.__delete__` 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 "" msgid "Return ``True`` if the object is a getset descriptor." msgstr "" 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 "" msgid "Return ``True`` if the object is a member descriptor." msgstr "" 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 "" msgid "Retrieving source code" msgstr "" 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. Return " +"``None`` if the documentation string is invalid or missing." msgstr "" msgid "Documentation strings are now inherited if not overridden." @@ -603,13 +615,15 @@ msgid "" "class, or function." msgstr "" -msgid "Try to guess which module an object was defined in." +msgid "" +"Try to guess which module an object was defined in. Return ``None`` if the " +"module cannot be determined." msgstr "" 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." +"Return the name of the Python source file in which an object was defined or " +"``None`` if no way can be identified to get the source. This will fail with " +"a :exc:`TypeError` if the object is a built-in module, class, or function." msgstr "" msgid "" @@ -618,7 +632,8 @@ msgid "" "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." +"code cannot be retrieved. A :exc:`TypeError` is raised if the object is a " +"built-in module, class, or function." msgstr "" msgid "" @@ -630,7 +645,8 @@ 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 " "source code is returned as a single string. An :exc:`OSError` is raised if " -"the source code cannot be retrieved." +"the source code cannot be retrieved. A :exc:`TypeError` is raised if the " +"object is a built-in module, class, or function." msgstr "" msgid "" @@ -650,8 +666,8 @@ msgstr "" 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 "" msgid "Return a :class:`Signature` object for the given ``callable``::" @@ -663,8 +679,22 @@ msgid "" msgstr "" msgid "" -"Raises :exc:`ValueError` if no signature can be provided, and :exc:" -"`TypeError` if that type of object is not supported." +"For objects defined in modules using stringized annotations (``from " +"__future__ import annotations``), :func:`signature` will attempt to " +"automatically un-stringize the annotations " +"using :func:`inspect.get_annotations()`. The ``global``, ``locals``, and " +"``eval_str`` parameters are passed into :func:`inspect.get_annotations()` " +"when resolving the annotations; see the documentation " +"for :func:`inspect.get_annotations()` for instructions on how to use these " +"parameters." +msgstr "" + +msgid "" +"Raises :exc:`ValueError` if no signature can be provided, " +"and :exc:`TypeError` if that type of object is not supported. Also, if the " +"annotations are stringized, and ``eval_str`` is not false, the ``eval()`` " +"call(s) to un-stringize the annotations could potentially raise any kind of " +"exception." msgstr "" msgid "" @@ -679,6 +709,9 @@ msgid "" "unwrap decorated callables.)" msgstr "" +msgid "``globals``, ``locals``, and ``eval_str`` parameters." +msgstr "" + msgid "" "Some callables may not be introspectable in certain implementations of " "Python. For example, in CPython, some built-in functions defined in C " @@ -687,8 +720,8 @@ msgstr "" 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 "" msgid "" @@ -709,16 +742,16 @@ msgid "" "modified copy." msgstr "" -msgid "Signature objects are picklable and hashable." +msgid "Signature objects are picklable and :term:`hashable`." msgstr "" msgid "A special class-level marker to specify absence of a return annotation." msgstr "" msgid "" -"An ordered mapping of parameters' names to the corresponding :class:" -"`Parameter` objects. Parameters appear in strict definition order, " -"including keyword-only parameters." +"An ordered mapping of parameters' names to the " +"corresponding :class:`Parameter` objects. Parameters appear in strict " +"definition order, including keyword-only parameters." msgstr "" msgid "" @@ -728,8 +761,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -749,25 +782,29 @@ 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 "" 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." +"without unwrapping its ``__wrapped__`` chain. ``globalns`` and ``localns`` " +"will be used as the namespaces when resolving annotations." msgstr "" msgid "This method simplifies subclassing of :class:`Signature`::" msgstr "" +msgid "``globalns`` and ``localns`` parameters." +msgstr "" + msgid "" "Parameter objects are *immutable*. Instead of modifying a Parameter object, " "you can use :meth:`Parameter.replace` to create a modified copy." msgstr "" -msgid "Parameter objects are picklable and hashable." +msgid "Parameter objects are picklable and :term:`hashable`." msgstr "" msgid "" @@ -800,8 +837,10 @@ msgid "" msgstr "" msgid "" -"Describes how argument values are bound to the parameter. Possible values " -"(accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``):" +"Describes how argument values are bound to the parameter. The possible " +"values are accessible via :class:`Parameter` (like " +"``Parameter.KEYWORD_ONLY``), and support comparison and ordering, in the " +"following order:" msgstr "" msgid "Name" @@ -881,8 +920,8 @@ msgstr "" msgid "" "A mutable mapping of parameters' names to arguments' values. Contains only " -"explicitly bound arguments. Changes in :attr:`arguments` will reflect in :" -"attr:`args` and :attr:`kwargs`." +"explicitly bound arguments. Changes in :attr:`arguments` will reflect " +"in :attr:`args` and :attr:`kwargs`." msgstr "" msgid "" @@ -892,23 +931,23 @@ msgstr "" 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." +"relied on a default value are skipped. However, if needed, " +"use :meth:`BoundArguments.apply_defaults` to add them." msgstr "" msgid "" -":attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :" -"class:`collections.OrderedDict`." +":attr:`arguments` is now of type :class:`dict`. Formerly, it was of " +"type :class:`collections.OrderedDict`." msgstr "" 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 "" 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 "" msgid "A reference to the parent :class:`Signature` object." @@ -950,13 +989,13 @@ msgid "" msgstr "" 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 "" msgid "" @@ -972,8 +1011,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1011,26 +1050,26 @@ msgid "" msgstr "" 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 "" 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 "" msgid "This function was inadvertently marked as deprecated in Python 3.5." msgstr "" 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 "" msgid "" @@ -1045,7 +1084,7 @@ msgid "" msgstr "" msgid "For example:" -msgstr "" +msgstr "Na przykład::" msgid "" "Use :func:`signature` and :ref:`Signature Object , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Introduction" msgstr "Wprowadzenie" @@ -30,12 +30,12 @@ msgid "The \"Python library\" contains several different kinds of components." msgstr "" 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 "" msgid "" @@ -96,70 +96,3 @@ msgid "" "If not separately noted, all functions that claim \"Availability: Unix\" are " "supported on macOS, which builds on a Unix core." msgstr "" - -msgid "" -"If an availability note contains both a minimum Kernel version and a minimum " -"libc version, then both conditions must hold. For example a feature with " -"note *Availability: Linux >= 3.17 with glibc >= 2.27* requires both Linux " -"3.17 or newer and glibc 2.27 or newer." -msgstr "" - -msgid "WebAssembly platforms" -msgstr "" - -msgid "" -"The `WebAssembly`_ platforms ``wasm32-emscripten`` (`Emscripten`_) and " -"``wasm32-wasi`` (`WASI`_) provide a subset of POSIX APIs. WebAssembly " -"runtimes and browsers are sandboxed and have limited access to the host and " -"external resources. Any Python standard library module that uses processes, " -"threading, networking, signals, or other forms of inter-process " -"communication (IPC), is either not available or may not work as on other " -"Unix-like systems. File I/O, file system, and Unix permission-related " -"functions are restricted, too. Emscripten does not permit blocking I/O. " -"Other blocking operations like :func:`~time.sleep` block the browser event " -"loop." -msgstr "" - -msgid "" -"The properties and behavior of Python on WebAssembly platforms depend on the " -"`Emscripten`_-SDK or `WASI`_-SDK version, WASM runtimes (browser, NodeJS, " -"`wasmtime`_), and Python build time flags. WebAssembly, Emscripten, and WASI " -"are evolving standards; some features like networking may be supported in " -"the future." -msgstr "" - -msgid "" -"For Python in the browser, users should consider `Pyodide`_ or `PyScript`_. " -"PyScript is built on top of Pyodide, which itself is built on top of CPython " -"and Emscripten. Pyodide provides access to browsers' JavaScript and DOM APIs " -"as well as limited networking capabilities with JavaScript's " -"``XMLHttpRequest`` and ``Fetch`` APIs." -msgstr "" - -msgid "" -"Process-related APIs are not available or always fail with an error. That " -"includes APIs that spawn new processes (:func:`~os.fork`, :func:`~os." -"execve`), wait for processes (:func:`~os.waitpid`), send signals (:func:`~os." -"kill`), or otherwise interact with processes. The :mod:`subprocess` is " -"importable but does not work." -msgstr "" - -msgid "" -"The :mod:`socket` module is available, but is limited and behaves " -"differently from other platforms. On Emscripten, sockets are always non-" -"blocking and require additional JavaScript code and helpers on the server to " -"proxy TCP through WebSockets; see `Emscripten Networking`_ for more " -"information. WASI snapshot preview 1 only permits sockets from an existing " -"file descriptor." -msgstr "" - -msgid "" -"Some functions are stubs that either don't do anything and always return " -"hardcoded values." -msgstr "" - -msgid "" -"Functions related to file descriptors, file permissions, file ownership, and " -"links are limited and don't support some operations. For example, WASI does " -"not permit symlinks with absolute file names." -msgstr "" diff --git a/library/io.po b/library/io.po new file mode 100644 index 0000000000..ee889554cf --- /dev/null +++ b/library/io.po @@ -0,0 +1,1307 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`io` --- Core tools for working with streams" +msgstr "" + +msgid "**Source code:** :source:`Lib/io.py`" +msgstr "**Kod źródłowy:** :source:`Lib/io.py`" + +msgid "Overview" +msgstr "Skorowidz" + +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*." +msgstr "" + +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)." +msgstr "" + +msgid "" +"All streams are careful about the type of data you give to them. For " +"example giving a :class:`str` object to the ``write()`` method of a binary " +"stream will raise a :exc:`TypeError`. So will giving a :class:`bytes` " +"object to the ``write()`` method of a text stream." +msgstr "" + +msgid "" +"Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, " +"since :exc:`IOError` is now an alias of :exc:`OSError`." +msgstr "" + +msgid "Text I/O" +msgstr "" + +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 " +"optional translation of platform-specific newline characters." +msgstr "" + +msgid "" +"The easiest way to create a text stream is with :meth:`open()`, optionally " +"specifying an encoding::" +msgstr "" + +msgid "" +"In-memory text streams are also available as :class:`StringIO` objects::" +msgstr "" + +msgid "" +"The text stream API is described in detail in the documentation " +"of :class:`TextIOBase`." +msgstr "" + +msgid "Binary I/O" +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 " +"the handling of text data is desired." +msgstr "" + +msgid "" +"The easiest way to create a binary stream is with :meth:`open()` with " +"``'b'`` in the mode string::" +msgstr "" + +msgid "" +"In-memory binary streams are also available as :class:`BytesIO` objects::" +msgstr "" + +msgid "" +"The binary stream API is described in detail in the docs " +"of :class:`BufferedIOBase`." +msgstr "" + +msgid "" +"Other library modules may provide additional ways to create text or binary " +"streams. See :meth:`socket.socket.makefile` for example." +msgstr "" + +msgid "Raw I/O" +msgstr "" + +msgid "" +"Raw I/O (also called *unbuffered I/O*) is generally used as a low-level " +"building-block for binary and text streams; it is rarely useful to directly " +"manipulate a raw stream from user code. Nevertheless, you can create a raw " +"stream by opening a file in binary mode with buffering disabled::" +msgstr "" + +msgid "" +"The raw stream API is described in detail in the docs of :class:`RawIOBase`." +msgstr "" + +msgid "Text Encoding" +msgstr "" + +msgid "" +"The default encoding of :class:`TextIOWrapper` and :func:`open` is locale-" +"specific (:func:`locale.getpreferredencoding(False) " +"`)." +msgstr "" + +msgid "" +"However, many developers forget to specify the encoding when opening text " +"files encoded in UTF-8 (e.g. JSON, TOML, Markdown, etc...) since most Unix " +"platforms use UTF-8 locale by default. This causes bugs because the locale " +"encoding is not UTF-8 for most Windows users. For example::" +msgstr "" + +msgid "" +"Additionally, while there is no concrete plan as of yet, Python may change " +"the default text file encoding to UTF-8 in the future." +msgstr "" + +msgid "" +"Accordingly, it is highly recommended that you specify the encoding " +"explicitly when opening text files. If you want to use UTF-8, pass " +"``encoding=\"utf-8\"``. To use the current locale encoding, " +"``encoding=\"locale\"`` is supported in Python 3.10." +msgstr "" + +msgid "" +"When you need to run existing code on Windows that attempts to open UTF-8 " +"files using the default locale encoding, you can enable the UTF-8 mode. " +"See :ref:`UTF-8 mode on Windows `." +msgstr "" + +msgid "Opt-in EncodingWarning" +msgstr "" + +msgid "See :pep:`597` for more details." +msgstr "" + +msgid "" +"To find where the default locale encoding is used, you can enable the ``-X " +"warn_default_encoding`` command line option or set " +"the :envvar:`PYTHONWARNDEFAULTENCODING` environment variable, which will " +"emit an :exc:`EncodingWarning` when the default encoding is used." +msgstr "" + +msgid "" +"If you are providing an API that uses :func:`open` or :class:`TextIOWrapper` " +"and passes ``encoding=None`` as a parameter, you can " +"use :func:`text_encoding` so that callers of the API will emit " +"an :exc:`EncodingWarning` if they don't pass an ``encoding``. However, " +"please consider using UTF-8 by default (i.e. ``encoding=\"utf-8\"``) for new " +"APIs." +msgstr "" + +msgid "High-level Module Interface" +msgstr "" + +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." +msgstr "" + +msgid "This is an alias for the builtin :func:`open` function." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``open`` with arguments ``path``, " +"``mode``, ``flags``." +msgstr "" +"Rzuca :ref:`auditing event ` ``open`` z argumentami ``path`` , " +"``mode``, ``flags``." + +msgid "" +"This function raises an :ref:`auditing event ` ``open`` with " +"arguments ``path``, ``mode`` and ``flags``. The ``mode`` and ``flags`` " +"arguments may have been modified or inferred from the original call." +msgstr "" + +msgid "" +"Opens the provided file with mode ``'rb'``. This function should be used " +"when the intent is to treat the contents as executable code." +msgstr "" + +msgid "``path`` should be a :class:`str` and an absolute path." +msgstr "" + +msgid "" +"The behavior of this function may be overridden by an earlier call to " +"the :c:func:`PyFile_SetOpenCodeHook`. However, assuming that ``path`` is " +"a :class:`str` and an absolute path, ``open_code(path)`` should always " +"behave the same as ``open(path, 'rb')``. Overriding the behavior is intended " +"for additional validation or preprocessing of the file." +msgstr "" + +msgid "" +"This is a helper function for callables that use :func:`open` " +"or :class:`TextIOWrapper` and have an ``encoding=None`` parameter." +msgstr "" + +msgid "" +"This function returns *encoding* if it is not ``None`` and ``\"locale\"`` if " +"*encoding* is ``None``." +msgstr "" + +msgid "" +"This function emits an :class:`EncodingWarning` " +"if :data:`sys.flags.warn_default_encoding ` is true and " +"*encoding* is None. *stacklevel* specifies where the warning is emitted. For " +"example::" +msgstr "" + +msgid "" +"In this example, an :class:`EncodingWarning` is emitted for the caller of " +"``read_text()``." +msgstr "" + +msgid "See :ref:`io-text-encoding` for more information." +msgstr "" + +msgid "" +"This is a compatibility alias for the builtin :exc:`BlockingIOError` " +"exception." +msgstr "" + +msgid "" +"An exception inheriting :exc:`OSError` and :exc:`ValueError` that is raised " +"when an unsupported operation is called on a stream." +msgstr "" + +msgid ":mod:`sys`" +msgstr ":mod:`sys`" + +msgid "" +"contains the standard IO streams: :data:`sys.stdin`, :data:`sys.stdout`, " +"and :data:`sys.stderr`." +msgstr "" + +msgid "Class hierarchy" +msgstr "" + +msgid "" +"The implementation of I/O streams is organized as a hierarchy of classes. " +"First :term:`abstract base classes ` (ABCs), which are " +"used to specify the various categories of streams, then concrete classes " +"providing the standard stream implementations." +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`." +msgstr "" + +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 " +"allowed to raise :exc:`UnsupportedOperation` if they do not support a given " +"operation." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :class:`BufferedIOBase` ABC extends :class:`IOBase`. It deals with " +"buffering on a raw binary stream (:class:`RawIOBase`). Its " +"subclasses, :class:`BufferedWriter`, :class:`BufferedReader`, " +"and :class:`BufferedRWPair` buffer raw binary streams that are writable, " +"readable, and both readable and writable, " +"respectively. :class:`BufferedRandom` provides a buffered interface to " +"seekable streams. Another :class:`BufferedIOBase` " +"subclass, :class:`BytesIO`, is a stream of in-memory bytes." +msgstr "" + +msgid "" +"The :class:`TextIOBase` ABC extends :class:`IOBase`. It deals with streams " +"whose bytes represent text, and handles encoding and decoding to and from " +"strings. :class:`TextIOWrapper`, which extends :class:`TextIOBase`, is a " +"buffered text interface to a buffered raw stream (:class:`BufferedIOBase`). " +"Finally, :class:`StringIO` is an in-memory stream for text." +msgstr "" + +msgid "" +"Argument names are not part of the specification, and only the arguments " +"of :func:`open` are intended to be used as keyword arguments." +msgstr "" + +msgid "" +"The following table summarizes the ABCs provided by the :mod:`io` module:" +msgstr "" + +msgid "ABC" +msgstr "" + +msgid "Inherits" +msgstr "" + +msgid "Stub Methods" +msgstr "" + +msgid "Mixin Methods and Properties" +msgstr "" + +msgid ":class:`IOBase`" +msgstr ":class:`IOBase`" + +msgid "``fileno``, ``seek``, and ``truncate``" +msgstr "" + +msgid "" +"``close``, ``closed``, ``__enter__``, ``__exit__``, ``flush``, ``isatty``, " +"``__iter__``, ``__next__``, ``readable``, ``readline``, ``readlines``, " +"``seekable``, ``tell``, ``writable``, and ``writelines``" +msgstr "" + +msgid ":class:`RawIOBase`" +msgstr ":class:`RawIOBase`" + +msgid "``readinto`` and ``write``" +msgstr "" + +msgid "Inherited :class:`IOBase` methods, ``read``, and ``readall``" +msgstr "" + +msgid ":class:`BufferedIOBase`" +msgstr ":class:`BufferedIOBase`" + +msgid "``detach``, ``read``, ``read1``, and ``write``" +msgstr "" + +msgid "Inherited :class:`IOBase` methods, ``readinto``, and ``readinto1``" +msgstr "" + +msgid ":class:`TextIOBase`" +msgstr ":class:`TextIOBase`" + +msgid "``detach``, ``read``, ``readline``, and ``write``" +msgstr "" + +msgid "" +"Inherited :class:`IOBase` methods, ``encoding``, ``errors``, and ``newlines``" +msgstr "" + +msgid "I/O Base Classes" +msgstr "" + +msgid "The abstract base class for all I/O classes." +msgstr "" + +msgid "" +"This class provides empty abstract implementations for many methods that " +"derived classes can override selectively; the default implementations " +"represent a file that cannot be read, written or seeked." +msgstr "" + +msgid "" +"Even though :class:`IOBase` does not declare :meth:`read` or :meth:`write` " +"because their signatures will vary, implementations and clients should " +"consider those methods part of the interface. Also, implementations may " +"raise a :exc:`ValueError` (or :exc:`UnsupportedOperation`) when operations " +"they do not support are called." +msgstr "" + +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." +msgstr "" + +msgid "" +"Note that calling any method (even inquiries) on a closed stream is " +"undefined. Implementations may raise :exc:`ValueError` in this case." +msgstr "" + +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 " +"stream is a binary stream (yielding bytes), or a text stream (yielding " +"character strings). See :meth:`~IOBase.readline` below." +msgstr "" + +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::" +msgstr "" + +msgid ":class:`IOBase` provides these data attributes and methods:" +msgstr "" + +msgid "" +"Flush and close this stream. This method has no effect if the file is " +"already closed. Once the file is closed, any operation on the file (e.g. " +"reading or writing) will raise a :exc:`ValueError`." +msgstr "" + +msgid "" +"As a convenience, it is allowed to call this method more than once; only the " +"first call, however, will have an effect." +msgstr "" + +msgid "``True`` if the stream is closed." +msgstr "" + +msgid "" +"Return the underlying file descriptor (an integer) of the stream if it " +"exists. An :exc:`OSError` is raised if the IO object does not use a file " +"descriptor." +msgstr "" + +msgid "" +"Flush the write buffers of the stream if applicable. This does nothing for " +"read-only and non-blocking streams." +msgstr "" + +msgid "" +"Return ``True`` if the stream is interactive (i.e., connected to a terminal/" +"tty device)." +msgstr "" + +msgid "" +"Return ``True`` if the stream can be read from. If ``False``, :meth:`read` " +"will raise :exc:`OSError`." +msgstr "" + +msgid "" +"Read and return one line from the stream. If *size* is specified, at most " +"*size* bytes will be read." +msgstr "" + +msgid "" +"The line terminator is always ``b'\\n'`` for binary files; for text files, " +"the *newline* argument to :func:`open` can be used to select the line " +"terminator(s) recognized." +msgstr "" + +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 " +"size (in bytes/characters) of all lines so far exceeds *hint*." +msgstr "" + +msgid "" +"*hint* values of ``0`` or less, as well as ``None``, are treated as no hint." +msgstr "" + +msgid "" +"Note that it's already possible to iterate on file objects using ``for line " +"in file: ...`` without calling ``file.readlines()``." +msgstr "" + +msgid "" +"Change the stream position to the given byte *offset*. *offset* is " +"interpreted relative to the position indicated by *whence*. The default " +"value for *whence* is :data:`SEEK_SET`. Values for *whence* are:" +msgstr "" + +msgid "" +":data:`SEEK_SET` or ``0`` -- start of the stream (the default); *offset* " +"should be zero or positive" +msgstr "" + +msgid "" +":data:`SEEK_CUR` or ``1`` -- current stream position; *offset* may be " +"negative" +msgstr "" + +msgid "" +":data:`SEEK_END` or ``2`` -- end of the stream; *offset* is usually negative" +msgstr "" + +msgid "Return the new absolute position." +msgstr "" + +msgid "The ``SEEK_*`` constants." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return ``True`` if the stream supports random access. If " +"``False``, :meth:`seek`, :meth:`tell` and :meth:`truncate` will " +"raise :exc:`OSError`." +msgstr "" + +msgid "Return the current stream position." +msgstr "" + +msgid "" +"Resize the stream to the given *size* in bytes (or the current position if " +"*size* is not specified). The current stream position isn't changed. This " +"resizing can extend or reduce the current file size. In case of extension, " +"the contents of the new file area depend on the platform (on most systems, " +"additional bytes are zero-filled). The new file size is returned." +msgstr "" + +msgid "Windows will now zero-fill files when extending." +msgstr "" + +msgid "" +"Return ``True`` if the stream supports writing. If ``False``, :meth:`write` " +"and :meth:`truncate` will raise :exc:`OSError`." +msgstr "" + +msgid "" +"Write a list of lines to the stream. Line separators are not added, so it " +"is usual for each of the lines provided to have a line separator at the end." +msgstr "" + +msgid "" +"Prepare for object destruction. :class:`IOBase` provides a default " +"implementation of this method that calls the " +"instance's :meth:`~IOBase.close` method." +msgstr "" + +msgid "Base class for raw binary streams. It inherits :class:`IOBase`." +msgstr "" + +msgid "" +"Raw binary streams typically provide low-level access to an underlying OS " +"device or API, and do not try to encapsulate it in high-level primitives " +"(this functionality is done at a higher-level in buffered binary streams and " +"text streams, described later in this page)." +msgstr "" + +msgid "" +":class:`RawIOBase` provides these methods in addition to those " +"from :class:`IOBase`:" +msgstr "" + +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." +msgstr "" + +msgid "" +"If 0 bytes are returned, and *size* was not 0, this indicates end of file. " +"If the object is in non-blocking mode and no bytes are available, ``None`` " +"is returned." +msgstr "" + +msgid "" +"The default implementation defers to :meth:`readall` and :meth:`readinto`." +msgstr "" + +msgid "" +"Read and return all the bytes from the stream until EOF, using multiple " +"calls to the stream if necessary." +msgstr "" + +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 " +"available, ``None`` is returned." +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 " +"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." +msgstr "" + +msgid "" +"Base class for binary streams that support some kind of buffering. It " +"inherits :class:`IOBase`." +msgstr "" + +msgid "" +"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 "" + +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 " +"``None``." +msgstr "" + +msgid "" +"Besides, the :meth:`read` method does not have a default implementation that " +"defers to :meth:`readinto`." +msgstr "" + +msgid "" +"A typical :class:`BufferedIOBase` implementation should not inherit from " +"a :class:`RawIOBase` implementation, but wrap one, " +"like :class:`BufferedWriter` and :class:`BufferedReader` do." +msgstr "" + +msgid "" +":class:`BufferedIOBase` provides or overrides these data attributes and " +"methods in addition to those from :class:`IOBase`:" +msgstr "" + +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." +msgstr "" + +msgid "Separate the underlying raw stream from the buffer and return it." +msgstr "" + +msgid "" +"After the raw stream has been detached, the buffer is in an unusable state." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +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 " +"imminent." +msgstr "" + +msgid "" +"A :exc:`BlockingIOError` is raised if the underlying raw stream is in non " +"blocking-mode, and has no data available at the moment." +msgstr "" + +msgid "" +"Read and return up to *size* bytes, with at most one call to the underlying " +"raw stream's :meth:`~RawIOBase.read` (or :meth:`~RawIOBase.readinto`) " +"method. This can be useful if you are implementing your own buffering on " +"top of a :class:`BufferedIOBase` object." +msgstr "" + +msgid "" +"If *size* is ``-1`` (the default), an arbitrary number of bytes are returned " +"(more than zero unless EOF is reached)." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Like :meth:`read`, multiple reads may be issued to the underlying raw " +"stream, unless the latter is interactive." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"When in non-blocking mode, a :exc:`BlockingIOError` is raised if the data " +"needed to be written to the raw stream but it couldn't accept all the data " +"without blocking." +msgstr "" + +msgid "" +"The caller may release or mutate *b* after this method returns, so the " +"implementation should only access *b* during the method call." +msgstr "" + +msgid "Raw File I/O" +msgstr "" + +msgid "" +"A raw binary stream representing an OS-level file containing bytes data. It " +"inherits :class:`RawIOBase`." +msgstr "" + +msgid "The *name* can be one of two things:" +msgstr "" + +msgid "" +"a character string or :class:`bytes` object representing the path to the " +"file which will be opened. In this case closefd must be ``True`` (the " +"default) otherwise an error will be raised." +msgstr "" + +msgid "" +"an integer representing the number of an existing OS-level file descriptor " +"to which the resulting :class:`FileIO` object will give access. When the " +"FileIO object is closed this fd will be closed as well, unless *closefd* is " +"set to ``False``." +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 " +"implies writing, so this mode behaves in a similar way to ``'w'``. Add a " +"``'+'`` to the mode to allow simultaneous reading and writing." +msgstr "" + +msgid "" +"The :meth:`read` (when called with a positive argument), :meth:`readinto` " +"and :meth:`write` methods on this class will only make one system call." +msgstr "" + +msgid "" +"A custom opener can be used by passing a callable as *opener*. The " +"underlying file descriptor for the file object is then obtained by calling " +"*opener* with (*name*, *flags*). *opener* must return an open file " +"descriptor (passing :mod:`os.open` as *opener* results in functionality " +"similar to passing ``None``)." +msgstr "" + +msgid "The newly created file is :ref:`non-inheritable `." +msgstr "Nowo utworzony plik jest :ref:`non-inheritable `." + +msgid "" +"See the :func:`open` built-in function for examples on using the *opener* " +"parameter." +msgstr "" + +msgid "The *opener* parameter was added. The ``'x'`` mode was added." +msgstr "" + +msgid "The file is now non-inheritable." +msgstr "Plik nie jest teraz dziedziczony." + +msgid "" +":class:`FileIO` provides these data attributes in addition to those " +"from :class:`RawIOBase` and :class:`IOBase`:" +msgstr "" + +msgid "The mode as given in the constructor." +msgstr "" + +msgid "" +"The file name. This is the file descriptor of the file when no name is " +"given in the constructor." +msgstr "" + +msgid "Buffered Streams" +msgstr "" + +msgid "" +"Buffered I/O streams provide a higher-level interface to an I/O device than " +"raw I/O does." +msgstr "" + +msgid "" +"A binary stream using an in-memory bytes buffer. It " +"inherits :class:`BufferedIOBase`. The buffer is discarded when " +"the :meth:`~IOBase.close` method is called." +msgstr "" + +msgid "" +"The optional argument *initial_bytes* is a :term:`bytes-like object` that " +"contains initial data." +msgstr "" + +msgid "" +":class:`BytesIO` provides or overrides these methods in addition to those " +"from :class:`BufferedIOBase` and :class:`IOBase`:" +msgstr "" + +msgid "" +"Return a readable and writable view over the contents of the buffer without " +"copying them. Also, mutating the view will transparently update the " +"contents of the buffer::" +msgstr "" + +msgid "" +"As long as the view exists, the :class:`BytesIO` object cannot be resized or " +"closed." +msgstr "" + +msgid "Return :class:`bytes` containing the entire contents of the buffer." +msgstr "" + +msgid "In :class:`BytesIO`, this is the same as :meth:`~BufferedIOBase.read`." +msgstr "" + +msgid "The *size* argument is now optional." +msgstr "" + +msgid "" +"In :class:`BytesIO`, this is the same as :meth:`~BufferedIOBase.readinto`." +msgstr "" + +msgid "" +"A buffered binary stream providing higher-level access to a readable, non " +"seekable :class:`RawIOBase` raw binary stream. It " +"inherits :class:`BufferedIOBase`." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +":class:`BufferedReader` provides or overrides these methods in addition to " +"those from :class:`BufferedIOBase` and :class:`IOBase`:" +msgstr "" + +msgid "" +"Return bytes from the stream without advancing the position. At most one " +"single read on the raw stream is done to satisfy the call. The number of " +"bytes returned may be less or more than requested." +msgstr "" + +msgid "" +"Read and return *size* bytes, or if *size* is not given or negative, until " +"EOF or if the read call would block in non-blocking mode." +msgstr "" + +msgid "" +"Read and return up to *size* bytes with only one call on the raw stream. If " +"at least one byte is buffered, only buffered bytes are returned. Otherwise, " +"one raw stream read call is made." +msgstr "" + +msgid "" +"A buffered binary stream providing higher-level access to a writeable, non " +"seekable :class:`RawIOBase` raw binary stream. It " +"inherits :class:`BufferedIOBase`." +msgstr "" + +msgid "" +"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 "" + +msgid "when the buffer gets too small for all pending data;" +msgstr "" + +msgid "when :meth:`flush()` is called;" +msgstr "" + +msgid "" +"when a :meth:`seek()` is requested (for :class:`BufferedRandom` objects);" +msgstr "" + +msgid "when the :class:`BufferedWriter` object is closed or destroyed." +msgstr "" + +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`." +msgstr "" + +msgid "" +":class:`BufferedWriter` provides or overrides these methods in addition to " +"those from :class:`BufferedIOBase` and :class:`IOBase`:" +msgstr "" + +msgid "" +"Force bytes held in the buffer into the raw stream. " +"A :exc:`BlockingIOError` should be raised if the raw stream blocks." +msgstr "" + +msgid "" +"Write the :term:`bytes-like object`, *b*, and return the number of bytes " +"written. When in non-blocking mode, a :exc:`BlockingIOError` is raised if " +"the buffer needs to be written out but the raw stream blocks." +msgstr "" + +msgid "" +"A buffered binary stream providing higher-level access to a " +"seekable :class:`RawIOBase` raw binary stream. It " +"inherits :class:`BufferedReader` and :class:`BufferedWriter`." +msgstr "" + +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`." +msgstr "" + +msgid "" +":class:`BufferedRandom` is capable of anything :class:`BufferedReader` " +"or :class:`BufferedWriter` can do. In addition, :meth:`seek` " +"and :meth:`tell` are guaranteed to be implemented." +msgstr "" + +msgid "" +"A buffered binary stream providing higher-level access to two non " +"seekable :class:`RawIOBase` raw binary streams---one readable, the other " +"writeable. It inherits :class:`BufferedIOBase`." +msgstr "" + +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`." +msgstr "" + +msgid "" +":class:`BufferedRWPair` implements all of :class:`BufferedIOBase`\\'s " +"methods except for :meth:`~BufferedIOBase.detach`, which " +"raises :exc:`UnsupportedOperation`." +msgstr "" + +msgid "" +":class:`BufferedRWPair` does not attempt to synchronize accesses to its " +"underlying raw streams. You should not pass it the same object as reader " +"and writer; use :class:`BufferedRandom` instead." +msgstr "" + +msgid "" +"Base class for text streams. This class provides a character and line based " +"interface to stream I/O. It inherits :class:`IOBase`." +msgstr "" + +msgid "" +":class:`TextIOBase` provides or overrides these data attributes and methods " +"in addition to those from :class:`IOBase`:" +msgstr "" + +msgid "" +"The name of the encoding used to decode the stream's bytes into strings, and " +"to encode strings into bytes." +msgstr "" + +msgid "The error setting of the decoder or encoder." +msgstr "" + +msgid "" +"A string, a tuple of strings, or ``None``, indicating the newlines " +"translated so far. Depending on the implementation and the initial " +"constructor flags, this may not be available." +msgstr "" + +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." +msgstr "" + +msgid "" +"Separate the underlying binary buffer from the :class:`TextIOBase` and " +"return it." +msgstr "" + +msgid "" +"After the underlying buffer has been detached, the :class:`TextIOBase` is in " +"an unusable state." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Read until newline or EOF and return a single ``str``. If the stream is " +"already at EOF, an empty string is returned." +msgstr "" + +msgid "If *size* is specified, at most *size* characters will be read." +msgstr "" + +msgid "" +"Change the stream position to the given *offset*. Behaviour depends on the " +"*whence* parameter. The default value for *whence* is :data:`SEEK_SET`." +msgstr "" + +msgid "" +":data:`SEEK_SET` or ``0``: seek from the start of the stream (the default); " +"*offset* must either be a number returned by :meth:`TextIOBase.tell`, or " +"zero. Any other *offset* value produces undefined behaviour." +msgstr "" + +msgid "" +":data:`SEEK_CUR` or ``1``: \"seek\" to the current position; *offset* must " +"be zero, which is a no-operation (all other values are unsupported)." +msgstr "" + +msgid "" +":data:`SEEK_END` or ``2``: seek to the end of the stream; *offset* must be " +"zero (all other values are unsupported)." +msgstr "" + +msgid "Return the new absolute position as an opaque number." +msgstr "" + +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." +msgstr "" + +msgid "" +"Write the string *s* to the stream and return the number of characters " +"written." +msgstr "" + +msgid "" +"A buffered text stream providing higher-level access to " +"a :class:`BufferedIOBase` buffered binary stream. It " +"inherits :class:`TextIOBase`." +msgstr "" + +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=\"locale\"`` can be used to " +"specify the current locale's encoding explicitly. See :ref:`io-text-" +"encoding` for more information." +msgstr "" + +msgid "" +"*errors* is an optional string that specifies how encoding and decoding " +"errors are to be handled. Pass ``'strict'`` to raise a :exc:`ValueError` " +"exception if there is an encoding error (the default of ``None`` has the " +"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 " +"that has been registered with :func:`codecs.register_error` is also valid." +msgstr "" + +msgid "" +"*newline* controls how line endings are handled. It can be ``None``, " +"``''``, ``'\\n'``, ``'\\r'``, and ``'\\r\\n'``. It works as follows:" +msgstr "" + +msgid "" +"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 *newline* is ``''``, " +"universal newlines mode is enabled, but line endings are returned to the " +"caller untranslated. If *newline* 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 "" + +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 takes place. If *newline* is any of the other legal values, any " +"``'\\n'`` characters written are translated to the given string." +msgstr "" +"Podczas zapisywania danych wyjściowych do strumienia, jeśli *newline* ma " +"wartość ``None``, wszelkie zapisane ``'\\n'`` znaki są tłumaczone na " +"systemowy domyślny separator linii, :data:`os.linesep`. Jeśli *newline* ma " +"wartość ``''`` lub ``'\\n'``, tłumaczenie nie jest wykonywane. Jeśli " +"*newline* jest dowolną z pozostałych legalnych wartości, wszelkie zapisane " +"``'\\n'`` znaki są tłumaczone na podany napis." + +msgid "" +"If *line_buffering* is ``True``, :meth:`flush` is implied when a call to " +"write contains a newline character or a carriage return." +msgstr "" + +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 " +"immediately handled to its underlying binary *buffer*." +msgstr "" + +msgid "The *write_through* argument has been added." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The *encoding* argument now supports the ``\"locale\"`` dummy encoding name." +msgstr "" + +msgid "" +":class:`TextIOWrapper` provides these data attributes and methods in " +"addition to those from :class:`TextIOBase` and :class:`IOBase`:" +msgstr "" + +msgid "Whether line buffering is enabled." +msgstr "" + +msgid "Whether writes are passed immediately to the underlying binary buffer." +msgstr "" + +msgid "" +"Reconfigure this text stream using new settings for *encoding*, *errors*, " +"*newline*, *line_buffering* and *write_through*." +msgstr "" + +msgid "" +"Parameters not specified keep current settings, except ``errors='strict'`` " +"is used when *encoding* is specified but *errors* is not specified." +msgstr "" + +msgid "" +"It is not possible to change the encoding or newline if some data has " +"already been read from the stream. On the other hand, changing encoding " +"after write is possible." +msgstr "" + +msgid "" +"This method does an implicit stream flush before setting the new parameters." +msgstr "" + +msgid "" +"A text stream using an in-memory text buffer. It " +"inherits :class:`TextIOBase`." +msgstr "" + +msgid "" +"The text buffer is discarded when the :meth:`~IOBase.close` method is called." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *newline* argument works like that of :class:`TextIOWrapper`, except " +"that when writing output to the stream, if *newline* is ``None``, newlines " +"are written as ``\\n`` on all platforms." +msgstr "" + +msgid "" +":class:`StringIO` provides this method in addition to those " +"from :class:`TextIOBase` and :class:`IOBase`:" +msgstr "" + +msgid "" +"Return a ``str`` containing the entire contents of the buffer. Newlines are " +"decoded as if by :meth:`~TextIOBase.read`, although the stream position is " +"not changed." +msgstr "" + +msgid "Example usage::" +msgstr "" + +msgid "" +"A helper codec that decodes newlines for :term:`universal newlines` mode. It " +"inherits :class:`codecs.IncrementalDecoder`." +msgstr "" + +msgid "Performance" +msgstr "Wydajność" + +msgid "" +"This section discusses the performance of the provided concrete I/O " +"implementations." +msgstr "" + +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 " +"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 " +"always preferable to use buffered I/O rather than unbuffered I/O for binary " +"data." +msgstr "" + +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." +msgstr "" + +msgid "" +":class:`StringIO`, however, is a native in-memory unicode container and will " +"exhibit similar speed to :class:`BytesIO`." +msgstr "" + +msgid "Multi-threading" +msgstr "Wielowątkowość" + +msgid "" +":class:`FileIO` objects are thread-safe to the extent that the operating " +"system calls (such as ``read(2)`` under Unix) they wrap are thread-safe too." +msgstr "" + +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." +msgstr "" + +msgid ":class:`TextIOWrapper` objects are not thread-safe." +msgstr "" + +msgid "Reentrancy" +msgstr "" + +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." +msgstr "" + +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 :func:`print()` " +"function as well." +msgstr "" diff --git a/library/ipaddress.po b/library/ipaddress.po new file mode 100644 index 0000000000..63ec96d617 --- /dev/null +++ b/library/ipaddress.po @@ -0,0 +1,842 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`ipaddress` --- IPv4/IPv6 manipulation library" +msgstr "" + +msgid "**Source code:** :source:`Lib/ipaddress.py`" +msgstr "**Kod źródłowy:** :source:`Lib/ipaddress.py`" + +msgid "" +":mod:`ipaddress` provides the capabilities to create, manipulate and operate " +"on IPv4 and IPv6 addresses and networks." +msgstr "" + +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 " +"subnet, checking whether or not a string represents a valid IP address or " +"network definition, and so on." +msgstr "" + +msgid "" +"This is the full module API reference—for an overview and introduction, " +"see :ref:`ipaddress-howto`." +msgstr "" + +msgid "Convenience factory functions" +msgstr "" + +msgid "" +"The :mod:`ipaddress` module provides factory functions to conveniently " +"create IP addresses, networks and interfaces:" +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 or IPv6 address." +msgstr "" + +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 IPv6 address, or if the network has host bits set." +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." +msgstr "" + +msgid "" +"One downside of these convenience functions is that the need to handle both " +"IPv4 and IPv6 formats means that error messages provide minimal information " +"on the precise error, as the functions don't know whether the IPv4 or IPv6 " +"format was intended. More detailed error reporting can be obtained by " +"calling the appropriate version specific class constructors directly." +msgstr "" + +msgid "IP Addresses" +msgstr "" + +msgid "Address objects" +msgstr "" + +msgid "" +"The :class:`IPv4Address` and :class:`IPv6Address` objects share a lot of " +"common attributes. Some attributes that are only meaningful for IPv6 " +"addresses are also implemented by :class:`IPv4Address` objects, in order to " +"make it easier to write code that handles both IP versions correctly. " +"Address objects are :term:`hashable`, so they can be used as keys in " +"dictionaries." +msgstr "" + +msgid "" +"Construct an IPv4 address. An :exc:`AddressValueError` is raised if " +"*address* is not a valid IPv4 address." +msgstr "" + +msgid "The following constitutes a valid IPv4 address:" +msgstr "" + +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 " +"integer represents an octet (byte) in the address. Leading zeroes are not " +"tolerated to prevent confusion with octal notation." +msgstr "" + +msgid "An integer that fits into 32 bits." +msgstr "" + +msgid "" +"An integer packed into a :class:`bytes` object of length 4 (most significant " +"octet first)." +msgstr "" + +msgid "" +"Leading zeros are tolerated, even in ambiguous cases that look like octal " +"notation." +msgstr "" + +msgid "" +"Leading zeros are no longer tolerated and are treated as an error. IPv4 " +"address strings are now parsed as strict as glibc :func:`~socket.inet_pton`." +msgstr "" + +msgid "" +"The above change was also included in Python 3.9 starting with version 3.9.5." +msgstr "" + +msgid "" +"The above change was also included in Python 3.8 starting with version " +"3.8.12." +msgstr "" + +msgid "The appropriate version number: ``4`` for IPv4, ``6`` for IPv6." +msgstr "" + +msgid "" +"The total number of bits in the address representation for this version: " +"``32`` for IPv4, ``128`` for IPv6." +msgstr "" + +msgid "" +"The prefix defines the number of leading bits in an address that are " +"compared to determine whether or not an address is part of a network." +msgstr "" + +msgid "" +"The string representation in dotted decimal notation. Leading zeroes are " +"never included in the representation." +msgstr "" + +msgid "" +"As IPv4 does not define a shorthand notation for addresses with octets set " +"to zero, these two attributes are always the same as ``str(addr)`` for IPv4 " +"addresses. Exposing these attributes makes it easier to write display code " +"that can handle both IPv4 and IPv6 addresses." +msgstr "" + +msgid "" +"The binary representation of this address - a :class:`bytes` object of the " +"appropriate length (most significant octet first). This is 4 bytes for IPv4 " +"and 16 bytes for IPv6." +msgstr "" + +msgid "The name of the reverse DNS PTR record for the IP address, e.g.::" +msgstr "" + +msgid "" +"This is the name that could be used for performing a PTR lookup, not the " +"resolved hostname itself." +msgstr "" + +msgid "" +"``True`` if the address is reserved for multicast use. See :RFC:`3171` (for " +"IPv4) or :RFC:`2373` (for IPv6)." +msgstr "" + +msgid "" +"``True`` if the address is defined as not globally reachable by iana-ipv4-" +"special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with " +"the following exceptions:" +msgstr "" + +msgid "" +"``is_private`` is ``False`` for the shared address space (``100.64.0.0/10``)" +msgstr "" + +msgid "" +"For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the " +"semantics of the underlying IPv4 addresses and the following condition holds " +"(see :attr:`IPv6Address.ipv4_mapped`)::" +msgstr "" + +msgid "" +"``is_private`` has value opposite to :attr:`is_global`, except for the " +"shared address space (``100.64.0.0/10`` range) where they are both ``False``." +msgstr "" + +msgid "Fixed some false positives and false negatives." +msgstr "" + +msgid "" +"``192.0.0.0/24`` is considered private with the exception of " +"``192.0.0.9/32`` and ``192.0.0.10/32`` (previously: only the " +"``192.0.0.0/29`` sub-range was considered private)." +msgstr "" + +msgid "``64:ff9b:1::/48`` is considered private." +msgstr "" + +msgid "``2002::/16`` is considered private." +msgstr "" + +msgid "" +"There are exceptions within ``2001::/23`` (otherwise considered private): " +"``2001:1::1/128``, ``2001:1::2/128``, ``2001:3::/32``, ``2001:4:112::/48``, " +"``2001:20::/28``, ``2001:30::/28``. The exceptions are not considered " +"private." +msgstr "" + +msgid "" +"``True`` if the address is defined as globally reachable by iana-ipv4-" +"special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with " +"the following exception:" +msgstr "" + +msgid "" +"``is_global`` has value opposite to :attr:`is_private`, except for the " +"shared address space (``100.64.0.0/10`` range) where they are both ``False``." +msgstr "" + +msgid "" +"Fixed some false positives and false negatives, see :attr:`is_private` for " +"details." +msgstr "" + +msgid "" +"``True`` if the address is unspecified. See :RFC:`5735` (for IPv4) " +"or :RFC:`2373` (for IPv6)." +msgstr "" + +msgid "``True`` if the address is otherwise IETF reserved." +msgstr "" + +msgid "" +"``True`` if this is a loopback address. See :RFC:`3330` (for IPv4) " +"or :RFC:`2373` (for IPv6)." +msgstr "" + +msgid "" +"``True`` if the address is reserved for link-local usage. See :RFC:`3927`." +msgstr "" + +msgid "" +"Returns a string representation of the IP address, controlled by an explicit " +"format string. *fmt* can be one of the following: ``'s'``, the default " +"option, equivalent to :func:`str`, ``'b'`` for a zero-padded binary string, " +"``'X'`` or ``'x'`` for an uppercase or lowercase hexadecimal representation, " +"or ``'n'``, which is equivalent to ``'b'`` for IPv4 addresses and ``'x'`` " +"for IPv6. For binary and hexadecimal representations, the form specifier " +"``'#'`` and the grouping option ``'_'`` are available. ``__format__`` is " +"used by ``format``, ``str.format`` and f-strings." +msgstr "" + +msgid "" +"Construct an IPv6 address. An :exc:`AddressValueError` is raised if " +"*address* is not a valid IPv6 address." +msgstr "" + +msgid "The following constitutes a valid IPv6 address:" +msgstr "" + +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* " +"(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\"``." +msgstr "" + +msgid "" +"Optionally, the string may also have a scope zone ID, expressed with a " +"suffix ``%scope_id``. If present, the scope ID must be non-empty, and may " +"not contain ``%``. See :RFC:`4007` for details. For example, " +"``fe80::1234%1`` might identify address ``fe80::1234`` on the first link of " +"the node." +msgstr "" + +msgid "An integer that fits into 128 bits." +msgstr "" + +msgid "" +"An integer packed into a :class:`bytes` object of length 16, big-endian." +msgstr "" + +msgid "" +"The short form of the address representation, with leading zeroes in groups " +"omitted and the longest sequence of groups consisting entirely of zeroes " +"collapsed to a single empty group." +msgstr "" + +msgid "This is also the value returned by ``str(addr)`` for IPv6 addresses." +msgstr "" + +msgid "" +"The long form of the address representation, with all leading zeroes and " +"groups consisting entirely of zeroes included." +msgstr "" + +msgid "" +"For the following attributes and methods, see the corresponding " +"documentation of the :class:`IPv4Address` class:" +msgstr "" + +msgid "is_global" +msgstr "" + +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`." +msgstr "" + +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``." +msgstr "" + +msgid "" +"For scoped addresses as defined by :RFC:`4007`, this property identifies the " +"particular zone of the address's scope that the address belongs to, as a " +"string. When no scope zone is specified, this property will be ``None``." +msgstr "" + +msgid "" +"For addresses that appear to be 6to4 addresses (starting with " +"``2002::/16``) as defined by :RFC:`3056`, this property will report the " +"embedded IPv4 address. For any other address, this property will be " +"``None``." +msgstr "" + +msgid "" +"For addresses that appear to be Teredo addresses (starting with " +"``2001::/32``) as defined by :RFC:`4380`, this property will report the " +"embedded ``(server, client)`` IP address pair. For any other address, this " +"property will be ``None``." +msgstr "" + +msgid "" +"Refer to the corresponding method documentation in :class:`IPv4Address`." +msgstr "" + +msgid "Conversion to Strings and Integers" +msgstr "" + +msgid "" +"To interoperate with networking interfaces such as the socket module, " +"addresses must be converted to strings or integers. This is handled using " +"the :func:`str` and :func:`int` builtin functions::" +msgstr "" + +msgid "" +"Note that IPv6 scoped addresses are converted to integers without scope zone " +"ID." +msgstr "" + +msgid "Operators" +msgstr "" + +msgid "" +"Address objects support some operators. Unless stated otherwise, operators " +"can only be applied between compatible objects (i.e. IPv4 with IPv4, IPv6 " +"with IPv6)." +msgstr "" + +msgid "Comparison operators" +msgstr "" + +msgid "" +"Address objects can be compared with the usual set of comparison operators. " +"Same IPv6 addresses with different scope zone IDs are not equal. Some " +"examples::" +msgstr "" + +msgid "Arithmetic operators" +msgstr "" + +msgid "" +"Integers can be added to or subtracted from address objects. Some examples::" +msgstr "" + +msgid "IP Network definitions" +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 " +"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``." +msgstr "" + +msgid "Prefix, net mask and host mask" +msgstr "" + +msgid "" +"There are several equivalent ways to specify IP network masks. A *prefix* " +"``/`` 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 " +"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 "" + +msgid "Network objects" +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." +msgstr "" + +msgid "" +"Construct an IPv4 network definition. *address* can be one of the following:" +msgstr "" + +msgid "" +"A string consisting of an IP address and an optional mask, separated by a " +"slash (``/``). The IP address is the network address, and the mask can be " +"either a single number, which means it's a *prefix*, or a string " +"representation of an IPv4 address. If it's the latter, the mask is " +"interpreted as a *net mask* if it starts with a non-zero field, or as a " +"*host mask* if it starts with a zero field, with the single exception of an " +"all-zero mask which is treated as a *net mask*. If no mask is provided, " +"it's considered to be ``/32``." +msgstr "" + +msgid "" +"For example, the following *address* specifications are equivalent: " +"``192.168.1.0/24``, ``192.168.1.0/255.255.255.0`` and " +"``192.168.1.0/0.0.0.255``." +msgstr "" + +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``." +msgstr "" + +msgid "" +"An integer packed into a :class:`bytes` object of length 4, big-endian. The " +"interpretation is similar to an integer *address*." +msgstr "" + +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 " +"representing the prefix length (e.g. ``24``) or a string representing the " +"prefix mask (e.g. ``255.255.255.0``)." +msgstr "" + +msgid "" +"An :exc:`AddressValueError` is raised if *address* is not a valid IPv4 " +"address. A :exc:`NetmaskValueError` is raised if the mask is not valid for " +"an IPv4 address." +msgstr "" + +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 determine the appropriate network address." +msgstr "" + +msgid "" +"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 "" + +msgid "Added the two-tuple form for the *address* constructor parameter." +msgstr "" + +msgid "" +"Refer to the corresponding attribute documentation in :class:`IPv4Address`." +msgstr "" + +msgid "" +"These attributes are true for the network as a whole if they are true for " +"both the network address and the broadcast address." +msgstr "" + +msgid "" +"The network address for the network. The network address and the prefix " +"length together uniquely define a network." +msgstr "" + +msgid "" +"The broadcast address for the network. Packets sent to the broadcast address " +"should be received by every host on the network." +msgstr "" + +msgid "The host mask, as an :class:`IPv4Address` object." +msgstr "" + +msgid "The net mask, as an :class:`IPv4Address` object." +msgstr "" + +msgid "" +"A string representation of the network, with the mask in prefix notation." +msgstr "" + +msgid "" +"``with_prefixlen`` and ``compressed`` are always the same as " +"``str(network)``. ``exploded`` uses the exploded form the network address." +msgstr "" + +msgid "" +"A string representation of the network, with the mask in net mask notation." +msgstr "" + +msgid "" +"A string representation of the network, with the mask in host mask notation." +msgstr "" + +msgid "The total number of addresses in the network." +msgstr "" + +msgid "Length of the network prefix, in bits." +msgstr "" + +msgid "" +"Returns an iterator over the usable hosts in the network. The usable hosts " +"are all the IP addresses that belong to the network, except the network " +"address itself and the network broadcast address. For networks with a mask " +"length of 31, the network address and network broadcast address are also " +"included in the result. Networks with a mask of 32 will return a list " +"containing the single host address." +msgstr "" + +msgid "" +"``True`` if this network is partly or wholly contained in *other* or *other* " +"is wholly contained in this network." +msgstr "" + +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." +msgstr "" + +msgid "" +"The subnets that join to make the current network definition, depending on " +"the argument values. *prefixlen_diff* is the amount our prefix length " +"should be increased by. *new_prefix* is the desired new prefix of the " +"subnets; it must be larger than our prefix. One and only one of " +"*prefixlen_diff* and *new_prefix* must be set. Returns an iterator of " +"network objects." +msgstr "" + +msgid "" +"The supernet containing this network definition, depending on the argument " +"values. *prefixlen_diff* is the amount our prefix length should be " +"decreased by. *new_prefix* is the desired new prefix of the supernet; it " +"must be smaller than our prefix. One and only one of *prefixlen_diff* and " +"*new_prefix* must be set. Returns a single network object." +msgstr "" + +msgid "Return ``True`` if this network is a subnet of *other*." +msgstr "" + +msgid "Return ``True`` if this network is a supernet of *other*." +msgstr "" + +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``." +msgstr "" + +msgid "" +"It uses the same ordering and comparison algorithm as \"<\", \"==\", and " +"\">\"" +msgstr "" + +msgid "" +"Construct an IPv6 network definition. *address* can be one of the following:" +msgstr "" + +msgid "" +"A string consisting of an IP address and an optional prefix length, " +"separated by a slash (``/``). The IP address is the network address, and " +"the prefix length must be a single number, the *prefix*. If no prefix " +"length is provided, it's considered to be ``/128``." +msgstr "" + +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::`` " +"is not." +msgstr "" + +msgid "" +"An integer that fits into 128 bits. This is equivalent to a single-address " +"network, with the network address being *address* and the mask being ``/" +"128``." +msgstr "" + +msgid "" +"An integer packed into a :class:`bytes` object of length 16, big-endian. The " +"interpretation is similar to an integer *address*." +msgstr "" + +msgid "" +"A two-tuple of an address description and a netmask, where the address " +"description is either a string, a 128-bits integer, a 16-bytes packed " +"integer, or an existing IPv6Address object; and the netmask is an integer " +"representing the prefix length." +msgstr "" + +msgid "" +"An :exc:`AddressValueError` is raised if *address* is not a valid IPv6 " +"address. A :exc:`NetmaskValueError` is raised if the mask is not valid for " +"an IPv6 address." +msgstr "" + +msgid "" +"Returns an iterator over the usable hosts in the network. The usable hosts " +"are all the IP addresses that belong to the network, except the Subnet-" +"Router anycast address. For networks with a mask length of 127, the Subnet-" +"Router anycast address is also included in the result. Networks with a mask " +"of 128 will return a list containing the single host address." +msgstr "" + +msgid "" +"Refer to the corresponding attribute documentation in :class:`IPv4Network`." +msgstr "" + +msgid "" +"These attribute is true for the network as a whole if it is true for both " +"the network address and the broadcast address." +msgstr "" + +msgid "" +"Network objects support some operators. Unless stated otherwise, operators " +"can only be applied between compatible objects (i.e. IPv4 with IPv4, IPv6 " +"with IPv6)." +msgstr "" + +msgid "Logical operators" +msgstr "" + +msgid "" +"Network objects can be compared with the usual set of logical operators. " +"Network objects are ordered first by network address, then by net mask." +msgstr "" + +msgid "Iteration" +msgstr "Iteracja" + +msgid "" +"Network objects can be iterated to list all the addresses belonging to the " +"network. For iteration, *all* hosts are returned, including unusable hosts " +"(for usable hosts, use the :meth:`~IPv4Network.hosts` method). An example::" +msgstr "" + +msgid "Networks as containers of addresses" +msgstr "" + +msgid "Network objects can act as containers of addresses. Some examples::" +msgstr "" + +msgid "Interface objects" +msgstr "" + +msgid "" +"Interface objects are :term:`hashable`, so they can be used as keys in " +"dictionaries." +msgstr "" + +msgid "" +"Construct an IPv4 interface. The meaning of *address* is as in the " +"constructor of :class:`IPv4Network`, except that arbitrary host addresses " +"are always accepted." +msgstr "" + +msgid "" +":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 "" + +msgid "The address (:class:`IPv4Address`) without network information." +msgstr "" + +msgid "The network (:class:`IPv4Network`) this interface belongs to." +msgstr "" + +msgid "" +"A string representation of the interface with the mask in prefix notation." +msgstr "" + +msgid "" +"A string representation of the interface with the network as a net mask." +msgstr "" + +msgid "" +"A string representation of the interface with the network as a host mask." +msgstr "" + +msgid "" +"Construct an IPv6 interface. The meaning of *address* is as in the " +"constructor of :class:`IPv6Network`, except that arbitrary host addresses " +"are always accepted." +msgstr "" + +msgid "" +":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 "" + +msgid "" +"Refer to the corresponding attribute documentation in :class:`IPv4Interface`." +msgstr "" + +msgid "" +"Interface objects support some operators. Unless stated otherwise, " +"operators can only be applied between compatible objects (i.e. IPv4 with " +"IPv4, IPv6 with IPv6)." +msgstr "" + +msgid "" +"Interface objects can be compared with the usual set of logical operators." +msgstr "" + +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." +msgstr "" + +msgid "" +"For ordering (``<``, ``>``, etc) the rules are different. Interface and " +"address objects with the same IP version can be compared, and the address " +"objects will always sort before the interface objects. Two interface " +"objects are first compared by their networks and, if those are the same, " +"then by their IP addresses." +msgstr "" + +msgid "Other Module Level Functions" +msgstr "" + +msgid "The module also provides the following module level functions:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a key suitable for sorting between networks and addresses. Address " +"and Network objects are not sortable by default; they're fundamentally " +"different, so the expression::" +msgstr "" + +msgid "" +"doesn't make sense. There are some times however, where you may wish to " +"have :mod:`ipaddress` sort these anyway. If you need to do this, you can " +"use this function as the *key* argument to :func:`sorted()`." +msgstr "" + +msgid "*obj* is either a network or address object." +msgstr "" + +msgid "Custom Exceptions" +msgstr "" + +msgid "" +"To support more specific error reporting from class constructors, the module " +"defines the following exceptions:" +msgstr "" + +msgid "Any value error related to the address." +msgstr "" + +msgid "Any value error related to the net mask." +msgstr "" diff --git a/library/itertools.po b/library/itertools.po new file mode 100644 index 0000000000..af088b7589 --- /dev/null +++ b/library/itertools.po @@ -0,0 +1,674 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`itertools` --- Functions creating iterators for efficient looping" +msgstr "" + +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 " +"suitable for Python." +msgstr "" + +msgid "" +"The module standardizes a core set of fast, memory efficient tools that are " +"useful by themselves or in combination. Together, they form an \"iterator " +"algebra\" making it possible to construct specialized tools succinctly and " +"efficiently in pure Python." +msgstr "" + +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 " +"by combining :func:`map` and :func:`count` to form ``map(f, count())``." +msgstr "" + +msgid "" +"These tools and their built-in counterparts also work well with the high-" +"speed functions in the :mod:`operator` module. For example, the " +"multiplication operator can be mapped across two vectors to form an " +"efficient dot-product: ``sum(map(operator.mul, vector1, vector2))``." +msgstr "" + +msgid "**Infinite iterators:**" +msgstr "" + +msgid "Iterator" +msgstr "" + +msgid "Arguments" +msgstr "" + +msgid "Results" +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid ":func:`count`" +msgstr ":func:`count`" + +msgid "start, [step]" +msgstr "" + +msgid "start, start+step, start+2*step, ..." +msgstr "" + +msgid "``count(10) --> 10 11 12 13 14 ...``" +msgstr "" + +msgid ":func:`cycle`" +msgstr ":func:`cycle`" + +msgid "p" +msgstr "p" + +msgid "p0, p1, ... plast, p0, p1, ..." +msgstr "" + +msgid "``cycle('ABCD') --> A B C D A B C D ...``" +msgstr "" + +msgid ":func:`repeat`" +msgstr ":func:`repeat`" + +msgid "elem [,n]" +msgstr "" + +msgid "elem, elem, elem, ... endlessly or up to n times" +msgstr "" + +msgid "``repeat(10, 3) --> 10 10 10``" +msgstr "" + +msgid "**Iterators terminating on the shortest input sequence:**" +msgstr "" + +msgid ":func:`accumulate`" +msgstr ":func:`accumulate`" + +msgid "p [,func]" +msgstr "" + +msgid "p0, p0+p1, p0+p1+p2, ..." +msgstr "" + +msgid "``accumulate([1,2,3,4,5]) --> 1 3 6 10 15``" +msgstr "" + +msgid ":func:`chain`" +msgstr ":func:`chain`" + +msgid "p, q, ..." +msgstr "" + +msgid "p0, p1, ... plast, q0, q1, ..." +msgstr "" + +msgid "``chain('ABC', 'DEF') --> A B C D E F``" +msgstr "" + +msgid ":func:`chain.from_iterable`" +msgstr ":func:`chain.from_iterable`" + +msgid "iterable" +msgstr "" + +msgid "``chain.from_iterable(['ABC', 'DEF']) --> A B C D E F``" +msgstr "" + +msgid ":func:`compress`" +msgstr ":func:`compress`" + +msgid "data, selectors" +msgstr "" + +msgid "(d[0] if s[0]), (d[1] if s[1]), ..." +msgstr "" + +msgid "``compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F``" +msgstr "" + +msgid ":func:`dropwhile`" +msgstr ":func:`dropwhile`" + +msgid "pred, seq" +msgstr "" + +msgid "seq[n], seq[n+1], starting when pred fails" +msgstr "" + +msgid "``dropwhile(lambda x: x<5, [1,4,6,4,1]) --> 6 4 1``" +msgstr "" + +msgid ":func:`filterfalse`" +msgstr ":func:`filterfalse`" + +msgid "elements of seq where pred(elem) is false" +msgstr "" + +msgid "``filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8``" +msgstr "" + +msgid ":func:`groupby`" +msgstr ":func:`groupby`" + +msgid "iterable[, key]" +msgstr "" + +msgid "sub-iterators grouped by value of key(v)" +msgstr "" + +msgid ":func:`islice`" +msgstr ":func:`islice`" + +msgid "seq, [start,] stop [, step]" +msgstr "" + +msgid "elements from seq[start:stop:step]" +msgstr "" + +msgid "``islice('ABCDEFG', 2, None) --> C D E F G``" +msgstr "" + +msgid ":func:`pairwise`" +msgstr ":func:`pairwise`" + +msgid "(p[0], p[1]), (p[1], p[2])" +msgstr "" + +msgid "``pairwise('ABCDEFG') --> AB BC CD DE EF FG``" +msgstr "" + +msgid ":func:`starmap`" +msgstr ":func:`starmap`" + +msgid "func, seq" +msgstr "" + +msgid "func(\\*seq[0]), func(\\*seq[1]), ..." +msgstr "" + +msgid "``starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000``" +msgstr "" + +msgid ":func:`takewhile`" +msgstr ":func:`takewhile`" + +msgid "seq[0], seq[1], until pred fails" +msgstr "" + +msgid "``takewhile(lambda x: x<5, [1,4,6,4,1]) --> 1 4``" +msgstr "" + +msgid ":func:`tee`" +msgstr ":func:`tee`" + +msgid "it, n" +msgstr "" + +msgid "it1, it2, ... itn splits one iterator into n" +msgstr "" + +msgid ":func:`zip_longest`" +msgstr ":func:`zip_longest`" + +msgid "(p[0], q[0]), (p[1], q[1]), ..." +msgstr "" + +msgid "``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``" +msgstr "" + +msgid "**Combinatoric iterators:**" +msgstr "" + +msgid ":func:`product`" +msgstr ":func:`product`" + +msgid "p, q, ... [repeat=1]" +msgstr "" + +msgid "cartesian product, equivalent to a nested for-loop" +msgstr "" + +msgid ":func:`permutations`" +msgstr ":func:`permutations`" + +msgid "p[, r]" +msgstr "" + +msgid "r-length tuples, all possible orderings, no repeated elements" +msgstr "" + +msgid ":func:`combinations`" +msgstr ":func:`combinations`" + +msgid "p, r" +msgstr "" + +msgid "r-length tuples, in sorted order, no repeated elements" +msgstr "" + +msgid ":func:`combinations_with_replacement`" +msgstr ":func:`combinations_with_replacement`" + +msgid "r-length tuples, in sorted order, with repeated elements" +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "``product('ABCD', repeat=2)``" +msgstr "``product('ABCD', repeat=2)``" + +msgid "``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``" +msgstr "" + +msgid "``permutations('ABCD', 2)``" +msgstr "``permutations('ABCD', 2)``" + +msgid "``AB AC AD BA BC BD CA CB CD DA DB DC``" +msgstr "" + +msgid "``combinations('ABCD', 2)``" +msgstr "``combinations('ABCD', 2)``" + +msgid "``AB AC AD BC BD CD``" +msgstr "" + +msgid "``combinations_with_replacement('ABCD', 2)``" +msgstr "" + +msgid "``AA AB AC AD BB BC BD CC CD DD``" +msgstr "" + +msgid "Itertool functions" +msgstr "" + +msgid "" +"The following module functions all construct and return iterators. Some " +"provide streams of infinite length, so they should only be accessed by " +"functions or loops that truncate the stream." +msgstr "" + +msgid "" +"Make an iterator that returns accumulated sums, or accumulated results of " +"other binary functions (specified via the optional *func* argument)." +msgstr "" + +msgid "" +"If *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`.)" +msgstr "" + +msgid "" +"Usually, the number of elements output matches the input iterable. However, " +"if the keyword argument *initial* is provided, the accumulation leads off " +"with the *initial* value so that the output has one more element than the " +"input iterable." +msgstr "" + +msgid "Roughly equivalent to::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"See :func:`functools.reduce` for a similar function that returns only the " +"final accumulated value." +msgstr "" + +msgid "Added the optional *func* parameter." +msgstr "" + +msgid "Added the optional *initial* parameter." +msgstr "" + +msgid "" +"Make an iterator that returns elements from the first iterable until it is " +"exhausted, then proceeds to the next iterable, until all of the iterables " +"are exhausted. Used for treating consecutive sequences as a single " +"sequence. Roughly equivalent to::" +msgstr "" + +msgid "" +"Alternate constructor for :func:`chain`. Gets chained inputs from a single " +"iterable argument that is evaluated lazily. Roughly equivalent to::" +msgstr "" + +msgid "Return *r* length subsequences of elements from the input *iterable*." +msgstr "" + +msgid "" +"The combination tuples are emitted in lexicographic ordering according to " +"the order of the input *iterable*. So, if the input *iterable* is sorted, " +"the combination tuples will be produced in sorted order." +msgstr "" + +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." +msgstr "" + +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 sorted order (according to their position in the input pool)::" +msgstr "" + +msgid "" +"The number of items returned is ``n! / r! / (n-r)!`` when ``0 <= r <= n`` or " +"zero when ``r > n``." +msgstr "" + +msgid "" +"Return *r* length subsequences of elements from the input *iterable* " +"allowing individual elements to be repeated more than once." +msgstr "" + +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." +msgstr "" + +msgid "" +"The code for :func:`combinations_with_replacement` can be also expressed as " +"a subsequence of :func:`product` after filtering entries where the elements " +"are not in sorted order (according to their position in the input pool)::" +msgstr "" + +msgid "" +"The number of items returned is ``(n+r-1)! / r! / (n-1)!`` when ``n > 0``." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Make an iterator that returns evenly spaced values starting with number " +"*start*. Often used as an argument to :func:`map` to generate consecutive " +"data points. Also, used with :func:`zip` to add sequence numbers. Roughly " +"equivalent to::" +msgstr "" + +msgid "" +"When counting with floating point numbers, better accuracy can sometimes be " +"achieved by substituting multiplicative code such as: ``(start + step * i " +"for i in count())``." +msgstr "" + +msgid "Added *step* argument and allowed non-integer arguments." +msgstr "" + +msgid "" +"Make an iterator returning elements from the iterable and saving a copy of " +"each. When the iterable is exhausted, return elements from the saved copy. " +"Repeats indefinitely. Roughly equivalent to::" +msgstr "" + +msgid "" +"Note, this member of the toolkit may require significant auxiliary storage " +"(depending on the length of the iterable)." +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::" +msgstr "" + +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::" +msgstr "" + +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." +msgstr "" + +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 " +"aggregates common elements regardless of their input order." +msgstr "" + +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::" +msgstr "" + +msgid ":func:`groupby` is roughly equivalent to::" +msgstr "" + +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 " +"``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::" +msgstr "" + +msgid "" +"If *start* is ``None``, then iteration starts at zero. If *step* is " +"``None``, then the step defaults to one." +msgstr "" + +msgid "Return successive overlapping pairs taken from the input *iterable*." +msgstr "" + +msgid "" +"The number of 2-tuples in the output iterator will be one fewer than the " +"number of inputs. It will be empty if the input iterable has fewer than two " +"values." +msgstr "" + +msgid "" +"Return successive *r* length permutations of elements in the *iterable*." +msgstr "" + +msgid "" +"If *r* is not specified or is ``None``, then *r* defaults to the length of " +"the *iterable* and all possible full-length permutations are generated." +msgstr "" + +msgid "" +"The permutation tuples are emitted in lexicographic ordering according to " +"the order of the input *iterable*. So, if the input *iterable* is sorted, " +"the combination tuples will be produced in sorted order." +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The number of items returned is ``n! / (n-r)!`` when ``0 <= r <= n`` or zero " +"when ``r > n``." +msgstr "" + +msgid "Cartesian product of input iterables." +msgstr "" + +msgid "" +"Roughly equivalent to nested for-loops in a generator expression. For " +"example, ``product(A, B)`` returns the same as ``((x,y) for x in A for y in " +"B)``." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"To compute the product of an iterable with itself, specify the number of " +"repetitions with the optional *repeat* keyword argument. For example, " +"``product(A, repeat=4)`` means the same as ``product(A, A, A, A)``." +msgstr "" + +msgid "" +"This function is roughly equivalent to the following code, except that the " +"actual implementation does not build up intermediate results in memory::" +msgstr "" + +msgid "" +"Before :func:`product` runs, it completely consumes the input iterables, " +"keeping pools of values in memory to generate the products. Accordingly, it " +"is only useful with finite inputs." +msgstr "" + +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." +msgstr "" + +msgid "" +"A common use for *repeat* is to supply a stream of constant values to *map* " +"or *zip*::" +msgstr "" + +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 " +"equivalent to::" +msgstr "" + +msgid "" +"Make an iterator that returns elements from the iterable as long as the " +"predicate is true. Roughly equivalent to::" +msgstr "" + +msgid "Return *n* independent iterators from a single iterable." +msgstr "" + +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)." +msgstr "" + +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." +msgstr "" + +msgid "" +"``tee`` iterators are not threadsafe. A :exc:`RuntimeError` may be raised " +"when using simultaneously iterators returned by the same :func:`tee` call, " +"even if the original *iterable* is threadsafe." +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`." +msgstr "" + +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 " +"*fillvalue*. Iteration continues until the longest iterable is exhausted. " +"Roughly equivalent to::" +msgstr "" + +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``." +msgstr "" + +msgid "Itertools Recipes" +msgstr "" + +msgid "" +"This section shows recipes for creating an extended toolset using the " +"existing itertools as building blocks." +msgstr "" + +msgid "" +"Substantially all of these recipes and many, many others can be installed " +"from the `more-itertools project `_ found on the Python Package Index::" +msgstr "" + +msgid "" +"The extended tools offer the same high performance as the underlying " +"toolset. The superior memory performance is kept by processing elements one " +"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." +msgstr "" diff --git a/library/json.po b/library/json.po index 7ce0045e29..0f7824f614 100644 --- a/library/json.po +++ b/library/json.po @@ -1,42 +1,41 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`json` --- JSON encoder and decoder" msgstr "" msgid "**Source code:** :source:`Lib/json/__init__.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/json/__init__.py`" msgid "" -"`JSON (JavaScript Object Notation) `_, 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]_ )." +"`JSON (JavaScript Object Notation) `_, 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]_ )." msgstr "" msgid "" @@ -46,8 +45,8 @@ msgid "" msgstr "" 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 "" msgid "Encoding basic Python object hierarchies::" @@ -102,8 +101,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -115,15 +115,15 @@ msgstr "" 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 a :exc:`RecursionError` (or worse)." +"will result in an :exc:`RecursionError` (or worse)." msgstr "" msgid "" -"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." +"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." msgstr "" msgid "" @@ -151,8 +151,8 @@ 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 "" msgid "" @@ -161,9 +161,9 @@ msgid "" msgstr "" 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 " -"*cls* kwarg; otherwise :class:`JSONEncoder` is used." +"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 "" msgid "" @@ -178,8 +178,8 @@ msgstr "" msgid "" "Serialize *obj* to a JSON formatted :class:`str` using this :ref:`conversion " -"table `. The arguments have the same meaning as in :func:" -"`dump`." +"table `. The arguments have the same meaning as " +"in :func:`dump`." msgstr "" msgid "" @@ -191,25 +191,25 @@ msgid "" msgstr "" 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 "" 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* 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 "" 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 " -"*object_hook* is also defined, the *object_pairs_hook* takes priority." +"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 "" msgid "Added support for *object_pairs_hook*." @@ -218,15 +218,15 @@ 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 "" 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 "" msgid "" @@ -251,8 +251,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -262,8 +262,8 @@ msgstr "" 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 "" msgid "The other arguments have the same meaning as in :func:`load`." @@ -290,10 +290,10 @@ msgid "JSON" msgstr "" msgid "Python" -msgstr "" +msgstr "Python" msgid "object" -msgstr "" +msgstr "obiekt" msgid "dict" msgstr "" @@ -302,10 +302,10 @@ msgid "array" msgstr "" msgid "list" -msgstr "" +msgstr "lista" msgid "string" -msgstr "" +msgstr "ciąg znaków" msgid "str" msgstr "" @@ -347,9 +347,9 @@ msgstr "" 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 "" msgid "" @@ -410,22 +410,23 @@ msgid "Added support for int- and float-derived Enum classes." msgstr "" 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 "" msgid "" "If *skipkeys* is false (the default), a :exc:`TypeError` will be raised when " -"trying to encode keys that are not :class:`str`, :class:`int`, :class:" -"`float` or ``None``. If *skipkeys* is true, such items are simply skipped." +"trying to encode keys that are " +"not :class:`str`, :class:`int`, :class:`float` or ``None``. If *skipkeys* " +"is true, such items are simply skipped." msgstr "" msgid "" "If *check_circular* is true (the default), then lists, dicts, and custom " "encoded objects will be checked for circular references during encoding to " -"prevent an infinite recursion (which would cause a :exc:`RecursionError`). " +"prevent an infinite recursion (which would cause an :exc:`RecursionError`). " "Otherwise, no such check takes place." msgstr "" @@ -444,13 +445,13 @@ msgstr "" 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 "" msgid "" -"For example, to support arbitrary iterators, you could implement :meth:" -"`default` like this::" +"For example, to support arbitrary iterators, you could " +"implement :meth:`default` like this::" msgstr "" msgid "" @@ -488,11 +489,11 @@ msgid "Standard Compliance and Interoperability" msgstr "" 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 other than those explicitly mentioned, are not considered." +"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 "" msgid "" @@ -548,8 +549,8 @@ 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." +"By default, this module accepts and outputs (when present in the " +"original :class:`str`) code points for such sequences." msgstr "" msgid "Infinite and NaN Number Values" @@ -631,10 +632,10 @@ msgid "" msgstr "" msgid "Command Line Interface" -msgstr "" +msgstr "Interfejs linii komend" msgid "**Source code:** :source:`Lib/json/tool.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/json/tool.py`" msgid "" "The :mod:`json.tool` module provides a simple command line interface to " @@ -642,8 +643,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -652,7 +654,7 @@ msgid "" msgstr "" msgid "Command line options" -msgstr "" +msgstr "Opcje wiersza poleceń" msgid "The JSON file to be validated or pretty-printed:" msgstr "" @@ -680,7 +682,7 @@ msgid "Mutually exclusive options for whitespace control." msgstr "" msgid "Show the help message." -msgstr "" +msgstr "Pokaż komunikat pomocy." msgid "Footnotes" msgstr "Przypisy" diff --git a/library/linecache.po b/library/linecache.po new file mode 100644 index 0000000000..2390883c5d --- /dev/null +++ b/library/linecache.po @@ -0,0 +1,83 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`linecache` --- Random access to text lines" +msgstr "" + +msgid "**Source code:** :source:`Lib/linecache.py`" +msgstr "**Kod źródłowy:** :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." +msgstr "" + +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." +msgstr "" + +msgid "The :mod:`linecache` module defines the following functions:" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"If a file named *filename* is not found, the function first checks for " +"a :pep:`302` ``__loader__`` in *module_globals*. If there is such a loader " +"and it defines a ``get_source`` method, then that determines the source " +"lines (if ``get_source()`` returns ``None``, then ``''`` is returned). " +"Finally, if *filename* is a relative filename, it is looked up relative to " +"the entries in the module search path, ``sys.path``." +msgstr "" + +msgid "" +"Clear the cache. Use this function if you no longer need lines from files " +"previously read using :func:`getline`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Capture enough detail about a non-file-based module to permit getting its " +"lines later via :func:`getline` even if *module_globals* is ``None`` in the " +"later call. This avoids doing I/O until a line is actually needed, without " +"having to carry the module globals around indefinitely." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" diff --git a/library/locale.po b/library/locale.po index a4d66c6e35..2a62386cc8 100644 --- a/library/locale.po +++ b/library/locale.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:08+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`locale` --- Internationalization services" msgstr "" msgid "**Source code:** :source:`Lib/locale.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/locale.py`" msgid "" "The :mod:`locale` module opens access to the POSIX locale database and " @@ -92,10 +92,10 @@ msgid "Meaning" msgstr "Znaczenie" msgid ":const:`LC_NUMERIC`" -msgstr "" +msgstr ":const:`LC_NUMERIC`" msgid "``'decimal_point'``" -msgstr "" +msgstr "``'decimal_point'``" msgid "Decimal point character." msgstr "" @@ -105,19 +105,19 @@ msgstr "" 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 "" msgid "``'thousands_sep'``" -msgstr "" +msgstr "``'thousands_sep'``" msgid "Character used between groups." msgstr "" msgid ":const:`LC_MONETARY`" -msgstr "" +msgstr ":const:`LC_MONETARY`" msgid "``'int_curr_symbol'``" msgstr "" @@ -161,7 +161,7 @@ msgid "" msgstr "" msgid "``'int_frac_digits'``" -msgstr "" +msgstr "``'int_frac_digits'``" msgid "" "Number of fractional digits used in international formatting of monetary " @@ -181,7 +181,7 @@ msgid "Equivalent to ``'grouping'``, used for monetary values." msgstr "" msgid "``'positive_sign'``" -msgstr "" +msgstr "``'positive_sign'``" msgid "Symbol used to annotate a positive monetary value." msgstr "" @@ -216,37 +216,37 @@ msgid "Explanation" msgstr "Wytłumaczenie" msgid "``0``" -msgstr "" +msgstr "``0``" msgid "Currency and value are surrounded by parentheses." msgstr "" msgid "``1``" -msgstr "" +msgstr "``1``" msgid "The sign should precede the value and currency symbol." msgstr "" msgid "``2``" -msgstr "" +msgstr "``2``" msgid "The sign should follow the value and currency symbol." msgstr "" msgid "``3``" -msgstr "" +msgstr "``3``" msgid "The sign should immediately precede the value." msgstr "" msgid "``4``" -msgstr "" +msgstr "``4``" msgid "The sign should immediately follow the value." msgstr "" msgid "``CHAR_MAX``" -msgstr "" +msgstr "``CHAR_MAX``" msgid "Nothing is specified in this locale." msgstr "" @@ -413,8 +413,9 @@ msgstr "" 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 "" msgid "" @@ -432,7 +433,7 @@ msgstr "" msgid "" "On Android or if the :ref:`Python UTF-8 Mode ` is enabled, always " -"return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* " +"return ``'UTF-8'``, the :term:`locale encoding` and the *do_setlocale* " "argument are ignored." msgstr "" @@ -442,29 +443,8 @@ msgid "" msgstr "" msgid "" -"The function now always returns ``\"utf-8\"`` on Android or if the :ref:" -"`Python UTF-8 Mode ` is enabled." -msgstr "" - -msgid "Get the current :term:`locale encoding`:" -msgstr "" - -msgid "On Android and VxWorks, return ``\"utf-8\"``." -msgstr "" - -msgid "" -"On Unix, return the encoding of the current :data:`LC_CTYPE` locale. Return " -"``\"utf-8\"`` if ``nl_langinfo(CODESET)`` returns an empty string: for " -"example, if the current LC_CTYPE locale is not supported." -msgstr "" - -msgid "On Windows, return the ANSI code page." -msgstr "" - -msgid "" -"This function is similar to :func:`getpreferredencoding(False) " -"` except this function ignores the :ref:`Python UTF-8 " -"Mode `." +"The function now always returns ``UTF-8`` on Android or if the :ref:`Python " +"UTF-8 Mode ` is enabled." msgstr "" msgid "" @@ -555,13 +535,13 @@ msgid "" msgstr "" 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 "" msgid "" -"Converts a normalized number string into a formatted string following the :" -"const:`LC_NUMERIC` settings." +"Converts a normalized number string into a formatted string following " +"the :const:`LC_NUMERIC` settings." msgstr "" msgid "" @@ -581,13 +561,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -603,10 +583,15 @@ msgid "" msgstr "" msgid "" -"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." +"This value may not be available on operating systems not conforming to the " +"POSIX standard, most notably Windows." +msgstr "" + +msgid "" +"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 "" msgid "" @@ -619,12 +604,12 @@ msgid "" msgstr "" 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 "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "Background, details, hints, tips and caveats" msgstr "" @@ -638,9 +623,9 @@ msgstr "" 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 " -"encoding to the user's preferred locale encoding. The program must " +"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, '')``." msgstr "" @@ -664,8 +649,8 @@ msgstr "" 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 special functions defined by this " +"module: :func:`atof`, :func:`atoi`, :func:`.format`, :func:`.str`." msgstr "" msgid "" @@ -692,9 +677,9 @@ 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 " -"accessible as a shared library." +"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 "" msgid "Access to message catalogs" @@ -702,19 +687,19 @@ msgstr "" 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 "" 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.po b/library/logging.po new file mode 100644 index 0000000000..e29f95a7be --- /dev/null +++ b/library/logging.po @@ -0,0 +1,1743 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`logging` --- Logging facility for Python" +msgstr "" + +msgid "**Source code:** :source:`Lib/logging/__init__.py`" +msgstr "**Kod źródłowy:** :source:`Lib/logging/__init__.py`" + +msgid "" +"This page contains the API reference information. For tutorial information " +"and discussion of more advanced topics, see" +msgstr "" + +msgid ":ref:`Basic Tutorial `" +msgstr "" + +msgid ":ref:`Advanced Tutorial `" +msgstr "" + +msgid ":ref:`Logging Cookbook `" +msgstr "" + +msgid "" +"This module defines functions and classes which implement a flexible event " +"logging system for applications and libraries." +msgstr "" + +msgid "" +"The key benefit of having the logging API provided by a standard library " +"module is that all Python modules can participate in logging, so your " +"application log can include your own messages integrated with messages from " +"third-party modules." +msgstr "" + +msgid "The simplest example:" +msgstr "" + +msgid "" +"The module provides a lot of functionality and flexibility. If you are " +"unfamiliar with logging, the best way to get to grips with it is to view the " +"tutorials (**see the links above and on the right**)." +msgstr "" + +msgid "" +"The basic classes defined by the module, together with their functions, are " +"listed below." +msgstr "" + +msgid "Loggers expose the interface that application code directly uses." +msgstr "" + +msgid "" +"Handlers send the log records (created by loggers) to the appropriate " +"destination." +msgstr "" + +msgid "" +"Filters provide a finer grained facility for determining which log records " +"to output." +msgstr "" + +msgid "Formatters specify the layout of log records in the final output." +msgstr "" + +msgid "Logger Objects" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The ``name`` is potentially a period-separated hierarchical value, like " +"``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 " +"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 "" + +msgid "" +"If this attribute evaluates to true, events logged to this logger will be " +"passed to the handlers of higher level (ancestor) loggers, in addition to " +"any handlers attached to this logger. Messages are passed directly to the " +"ancestor loggers' handlers - neither the level nor filters of the ancestor " +"loggers in question are considered." +msgstr "" + +msgid "" +"If this evaluates to false, logging messages are not passed to the handlers " +"of ancestor loggers." +msgstr "" + +msgid "" +"Spelling it out with an example: If the propagate attribute of the logger " +"named ``A.B.C`` evaluates to true, any event logged to ``A.B.C`` via a " +"method call such as ``logging.getLogger('A.B.C').error(...)`` will [subject " +"to passing that logger's level and filter settings] be passed in turn to any " +"handlers attached to loggers named ``A.B``, ``A`` and the root logger, after " +"first being passed to any handlers attached to ``A.B.C``. If any logger in " +"the chain ``A.B.C``, ``A.B``, ``A`` has its ``propagate`` attribute set to " +"false, then that is the last logger whose handlers are offered the event to " +"handle, and propagation stops at that point." +msgstr "" + +msgid "The constructor sets this attribute to ``True``." +msgstr "" + +msgid "" +"If you attach a handler to a logger *and* one or more of its ancestors, it " +"may emit the same record multiple times. In general, you should not need to " +"attach a handler to more than one logger - if you just attach it to the " +"appropriate logger which is highest in the logger hierarchy, then it will " +"see all events logged by all descendant loggers, provided that their " +"propagate setting is left set to ``True``. A common scenario is to attach " +"handlers only to the root logger, and to let propagation take care of the " +"rest." +msgstr "" + +msgid "" +"Sets the threshold for this logger to *level*. Logging messages which are " +"less severe than *level* will be ignored; logging messages which have " +"severity *level* or higher will be emitted by whichever handler or handlers " +"service this logger, unless a handler's level has been set to a higher " +"severity level than *level*." +msgstr "" + +msgid "" +"When a logger is created, the level is set to :const:`NOTSET` (which causes " +"all messages to be processed when the logger is the root logger, or " +"delegation to the parent when the logger is a non-root logger). Note that " +"the root logger is created with level :const:`WARNING`." +msgstr "" + +msgid "" +"The term 'delegation to the parent' means that if a logger has a level of " +"NOTSET, its chain of ancestor loggers is traversed until either an ancestor " +"with a level other than NOTSET is found, or the root is reached." +msgstr "" + +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 " +"search began, and is used to determine how a logging event is handled." +msgstr "" + +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 " +"level." +msgstr "" + +msgid "See :ref:`levels` for a list of levels." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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.) No % formatting operation is performed on *msg* when no *args* " +"are supplied." +msgstr "" + +msgid "" +"There are four keyword arguments in *kwargs* which are inspected: " +"*exc_info*, *stack_info*, *stacklevel* and *extra*." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"The second optional keyword argument is *stack_info*, which defaults to " +"``False``. If true, stack information is added to the logging message, " +"including the actual logging call. Note that this is not the same stack " +"information as that displayed through specifying *exc_info*: The former is " +"stack frames from the bottom of the stack up to the logging call in the " +"current thread, whereas the latter is information about stack frames which " +"have been unwound, following an exception, while searching for exception " +"handlers." +msgstr "" + +msgid "" +"You can specify *stack_info* independently of *exc_info*, e.g. to just show " +"how you got to a certain point in your code, even when no exceptions were " +"raised. The stack frames are printed following a header line which says:" +msgstr "" + +msgid "" +"This mimics the ``Traceback (most recent call last):`` which is used when " +"displaying exception frames." +msgstr "" + +msgid "" +"The third optional keyword argument is *stacklevel*, which defaults to " +"``1``. If greater than 1, the corresponding number of stack frames are " +"skipped when computing the line number and function name set in " +"the :class:`LogRecord` created for the logging event. This can be used in " +"logging helpers so that the function name, filename and line number recorded " +"are not the information for the helper function/method, but rather its " +"caller. The name of this parameter mirrors the equivalent one in " +"the :mod:`warnings` module." +msgstr "" + +msgid "" +"The fourth keyword argument is *extra* which can be used to pass a " +"dictionary which is used to populate the __dict__ of the :class:`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 "" + +msgid "would print something like" +msgstr "" + +msgid "" +"The keys in the dictionary passed in *extra* should not clash with the keys " +"used by the logging system. (See the section on :ref:`logrecord-attributes` " +"for more information on which keys are used by the logging system.)" +msgstr "" + +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 :class:`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 "" + +msgid "" +"While this might be annoying, this feature is intended for use in " +"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 " +"particular :class:`Handler`\\ s." +msgstr "" + +msgid "" +"If no handler is attached to this logger (or any of its ancestors, taking " +"into account the relevant :attr:`Logger.propagate` attributes), the message " +"will be sent to the handler set on :attr:`lastResort`." +msgstr "" + +msgid "The *stack_info* parameter was added." +msgstr "" + +msgid "The *exc_info* parameter can now accept exception instances." +msgstr "" + +msgid "The *stacklevel* parameter was added." +msgstr "" + +msgid "" +"Logs a message with level :const:`INFO` on this logger. The arguments are " +"interpreted as for :meth:`debug`." +msgstr "" + +msgid "" +"Logs a message with level :const:`WARNING` on this logger. The arguments are " +"interpreted as for :meth:`debug`." +msgstr "" + +msgid "" +"There is an obsolete method ``warn`` which is functionally identical to " +"``warning``. As ``warn`` is deprecated, please do not use it - use " +"``warning`` instead." +msgstr "" + +msgid "" +"Logs a message with level :const:`ERROR` on this logger. The arguments are " +"interpreted as for :meth:`debug`." +msgstr "" + +msgid "" +"Logs a message with level :const:`CRITICAL` on this logger. The arguments " +"are interpreted as for :meth:`debug`." +msgstr "" + +msgid "" +"Logs a message with integer level *level* on this logger. The other " +"arguments are interpreted as for :meth:`debug`." +msgstr "" + +msgid "" +"Logs a message with level :const:`ERROR` on this logger. The arguments are " +"interpreted as for :meth:`debug`. Exception info is added to the logging " +"message. This method should only be called from an exception handler." +msgstr "" +"Loguje wiadomość z poziomem :const:`ERROR` na tym loggerze. Argumenty są " +"interpretowane jak dla :meth:`debug`. Informacje o wyjątku są dodawane do " +"komunikatu logowania. Ta metoda powinna być wywoływana tylko wewnątrz " +"klauzuli ``except``." + +msgid "Adds the specified filter *filter* to this logger." +msgstr "" + +msgid "Removes the specified filter *filter* from this logger." +msgstr "" + +msgid "" +"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 "" + +msgid "Adds the specified handler *hdlr* to this logger." +msgstr "" + +msgid "Removes the specified handler *hdlr* from this logger." +msgstr "" + +msgid "" +"Finds the caller's source filename and line number. Returns the filename, " +"line number, function name and stack information as a 4-element tuple. The " +"stack information is returned as ``None`` unless *stack_info* is ``True``." +msgstr "" + +msgid "" +"The *stacklevel* parameter is passed from code calling the :meth:`debug` and " +"other APIs. If greater than 1, the excess is used to skip stack frames " +"before determining the values to be returned. This will generally be useful " +"when calling logging APIs from helper/wrapper code, so that the information " +"in the event log refers not to the helper/wrapper code, but to the code that " +"calls it." +msgstr "" + +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`." +msgstr "" + +msgid "" +"This is a factory method which can be overridden in subclasses to create " +"specialized :class:`LogRecord` instances." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "Loggers can now be pickled and unpickled." +msgstr "" + +msgid "Logging Levels" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "Level" +msgstr "" + +msgid "Numeric value" +msgstr "" + +msgid "``CRITICAL``" +msgstr "``CRITICAL``" + +msgid "50" +msgstr "50" + +msgid "``ERROR``" +msgstr "``ERROR``" + +msgid "40" +msgstr "40" + +msgid "``WARNING``" +msgstr "``WARNING``" + +msgid "30" +msgstr "30" + +msgid "``INFO``" +msgstr "``INFO``" + +msgid "20" +msgstr "20" + +msgid "``DEBUG``" +msgstr "``DEBUG``" + +msgid "10" +msgstr "10" + +msgid "``NOTSET``" +msgstr "``NOTSET``" + +msgid "0" +msgstr "0" + +msgid "Handler Objects" +msgstr "" + +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__`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Initializes a thread lock which can be used to serialize access to " +"underlying I/O functionality which may not be threadsafe." +msgstr "" + +msgid "Acquires the thread lock created with :meth:`createLock`." +msgstr "" + +msgid "Releases the thread lock acquired with :meth:`acquire`." +msgstr "" + +msgid "" +"Sets the threshold for this handler to *level*. Logging messages which are " +"less severe than *level* will be ignored. When a handler is created, the " +"level is set to :const:`NOTSET` (which causes all messages to be processed)." +msgstr "" + +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`." +msgstr "" + +msgid "Sets the :class:`Formatter` for this handler to *fmt*." +msgstr "" + +msgid "Adds the specified filter *filter* to this handler." +msgstr "" + +msgid "Removes the specified filter *filter* from this handler." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Ensure all logging output has been flushed. This version does nothing and is " +"intended to be implemented by subclasses." +msgstr "" + +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 from overridden :meth:`close` methods." +msgstr "" + +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." +msgstr "" + +msgid "" +"This method should be called from handlers when an exception is encountered " +"during an :meth:`emit` call. If the module-level attribute " +"``raiseExceptions`` is ``False``, exceptions get silently ignored. This is " +"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)." +msgstr "" + +msgid "" +"Do formatting for a record - if a formatter is set, use it. Otherwise, use " +"the default formatter for the module." +msgstr "" + +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`." +msgstr "" + +msgid "" +"This method is called after a handler-level lock is acquired, which is " +"released after this method returns. When you override this method, note that " +"you should be careful when calling anything that invokes other parts of the " +"logging API which might do locking, because that might result in a deadlock. " +"Specifically:" +msgstr "" + +msgid "" +"Logging configuration APIs acquire the module-level lock, and then " +"individual handler-level locks as those handlers are configured." +msgstr "" + +msgid "" +"Many logging APIs lock the module-level lock. If such an API is called from " +"this method, it could cause a deadlock if a configuration call is made on " +"another thread, because that thread will try to acquire the module-level " +"lock *before* the handler-level lock, whereas this thread tries to acquire " +"the module-level lock *after* the handler-level lock (because in this " +"method, the handler-level lock has already been acquired)." +msgstr "" + +msgid "" +"For a list of handlers included as standard, see :mod:`logging.handlers`." +msgstr "" + +msgid "Formatter Objects" +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 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." +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." +msgstr "" + +msgid "" +"The useful mapping keys in a :class:`LogRecord` are given in the section " +"on :ref:`logrecord-attributes`." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`Formatter` class. The instance is " +"initialized with a format string for the message as a whole, as well as a " +"format string for the date/time portion of a message. If no *fmt* is " +"specified, ``'%(message)s'`` is used. If no *datefmt* is specified, a " +"format is used which is described in the :meth:`formatTime` documentation." +msgstr "" + +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`. This only " +"applies to the format string *fmt* (e.g. ``'%(message)s'`` or ``{message}" +"``), not to the actual log messages passed to ``Logger.debug`` etc; " +"see :ref:`formatting-styles` for more information on using {- and $-" +"formatting for log messages." +msgstr "" + +msgid "" +"The *defaults* parameter can be a dictionary with default values to use in " +"custom fields. For example: ``logging.Formatter('%(ip)s %(message)s', " +"defaults={\"ip\": None})``" +msgstr "" + +msgid "The *style* parameter was added." +msgstr "" + +msgid "" +"The *validate* parameter was added. Incorrect or mismatched style and fmt " +"will raise a ``ValueError``. For example: ``logging.Formatter('%(asctime)s - " +"%(message)s', style='{')``." +msgstr "" + +msgid "The *defaults* parameter was added." +msgstr "" + +msgid "" +"The record's attribute dictionary is used as the operand to a string " +"formatting operation. Returns the resulting string. Before formatting the " +"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 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 (by setting the *exc_text* " +"attribute to ``None``) 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 "" + +msgid "" +"If stack information is available, it's appended after the exception " +"information, using :meth:`formatStack` to transform it if necessary." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Previously, the default format was hard-coded as in this example: " +"``2010-09-06 22:38:15,292`` where the part before the comma is handled by a " +"strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the part after the " +"comma is a millisecond value. Because strptime does not have a format " +"placeholder for milliseconds, the millisecond value is appended using " +"another format string, ``'%s,%03d'`` --- and both of these format strings " +"have been hardcoded into this method. With the change, these strings are " +"defined as class-level attributes which can be overridden at the instance " +"level when desired. The names of the attributes are ``default_time_format`` " +"(for the strptime format string) and ``default_msec_format`` (for appending " +"the millisecond value)." +msgstr "" + +msgid "The ``default_msec_format`` can be ``None``." +msgstr "" + +msgid "" +"Formats the specified exception information (a standard exception tuple as " +"returned by :func:`sys.exc_info`) as a string. This default implementation " +"just uses :func:`traceback.print_exception`. The resulting string is " +"returned." +msgstr "" + +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." +msgstr "" + +msgid "" +"A base formatter class suitable for subclassing when you want to format a " +"number of records. You can pass a :class:`Formatter` instance which you want " +"to use to format each line (that corresponds to a single record). If not " +"specified, the default formatter (which just outputs the event message) is " +"used as the line formatter." +msgstr "" + +msgid "" +"Return a header for a list of *records*. The base implementation just " +"returns the empty string. You will need to override this method if you want " +"specific behaviour, e.g. to show the count of records, a title or a " +"separator line." +msgstr "" + +msgid "" +"Return a footer for a list of *records*. The base implementation just " +"returns the empty string. You will need to override this method if you want " +"specific behaviour, e.g. to show the count of records or a separator line." +msgstr "" + +msgid "" +"Return formatted text for a list of *records*. The base implementation just " +"returns the empty string if there are no records; otherwise, it returns the " +"concatenation of the header, each record formatted with the line formatter, " +"and the footer." +msgstr "" + +msgid "Filter Objects" +msgstr "" + +msgid "" +"``Filters`` can be used by ``Handlers`` and ``Loggers`` for more " +"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." +msgstr "" + +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 " +"allowed through the filter. If *name* is the empty string, allows every " +"event." +msgstr "" + +msgid "" +"Is the specified record to be logged? Returns zero for no, nonzero for yes. " +"If deemed appropriate, the record may be modified in-place by this method." +msgstr "" + +msgid "" +"Note that filters attached to handlers are consulted before an event is " +"emitted by the handler, whereas filters attached to loggers are consulted " +"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." +msgstr "" + +msgid "" +"You don't actually need to subclass ``Filter``: you can pass any instance " +"which has a ``filter`` method with the same semantics." +msgstr "" + +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 " +"callable and called with the record as the single parameter. The returned " +"value should conform to that returned by :meth:`~Filter.filter`." +msgstr "" + +msgid "" +"Although filters are used primarily to filter records based on more " +"sophisticated criteria than levels, they get to see every record which is " +"processed by the handler or logger they're attached to: this can be useful " +"if you want to do things like counting how many records were processed by a " +"particular logger or handler, or adding, changing or removing attributes in " +"the :class:`LogRecord` being processed. Obviously changing the LogRecord " +"needs to be done with some care, but it does allow the injection of " +"contextual information into logs (see :ref:`filters-contextual`)." +msgstr "" + +msgid "LogRecord Objects" +msgstr "" + +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)." +msgstr "" + +msgid "Contains all the information pertinent to the event being logged." +msgstr "" + +msgid "" +"The primary information is passed in *msg* and *args*, which are combined " +"using ``msg % args`` to create the :attr:`!message` attribute of the record." +msgstr "" + +msgid "Parameters" +msgstr "parametry" + +msgid "" +"The name of the logger used to log the event represented by this :class:`!" +"LogRecord`. Note that the logger name in the :class:`!LogRecord` will always " +"have this value, even though it may be emitted by a handler attached to a " +"different (ancestor) logger." +msgstr "" + +msgid "" +"The :ref:`numeric level ` of the logging event (such as ``10`` for " +"``DEBUG``, ``20`` for ``INFO``, etc). Note that this is converted to *two* " +"attributes of the LogRecord: :attr:`!levelno` for the numeric value " +"and :attr:`!levelname` for the corresponding level name." +msgstr "" + +msgid "" +"The full string path of the source file where the logging call was made." +msgstr "" + +msgid "The line number in the source file where the logging call was made." +msgstr "" + +msgid "" +"The event description message, which can be a %-format string with " +"placeholders for variable data, or an arbitrary object (see :ref:`arbitrary-" +"object-messages`)." +msgstr "" + +msgid "" +"Variable data to merge into the *msg* argument to obtain the event " +"description." +msgstr "" + +msgid "" +"An exception tuple with the current exception information, as returned " +"by :func:`sys.exc_info`, or ``None`` if no exception information is " +"available." +msgstr "" + +msgid "" +"The name of the function or method from which the logging call was invoked." +msgstr "" + +msgid "" +"A text string representing stack information from the base of the stack in " +"the current thread, up to the logging call." +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." +msgstr "" + +msgid "" +"The creation of a :class:`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 "" + +msgid "" +"This functionality can be used to inject your own values into " +"a :class:`LogRecord` at creation time. You can use the following pattern::" +msgstr "" + +msgid "" +"With this pattern, multiple factories could be chained, and as long as they " +"don't overwrite each other's attributes or unintentionally overwrite the " +"standard attributes listed above, there should be no surprises." +msgstr "" + +msgid "LogRecord attributes" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"In the case of {}-formatting, you can specify formatting flags by placing " +"them after the attribute name, separated from it with a colon. For example: " +"a placeholder of ``{msecs:03d}`` would format a millisecond value of ``4`` " +"as ``004``. Refer to the :meth:`str.format` documentation for full details " +"on the options available to you." +msgstr "" + +msgid "Attribute name" +msgstr "" + +msgid "Format" +msgstr "Format" + +msgid "Description" +msgstr "Opis" + +msgid "args" +msgstr "" + +msgid "You shouldn't need to format this yourself." +msgstr "" + +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)." +msgstr "" + +msgid "asctime" +msgstr "" + +msgid "``%(asctime)s``" +msgstr "``%(asctime)s``" + +msgid "" +"Human-readable time when the :class:`LogRecord` was created. By default " +"this is of the form '2003-07-08 16:49:45,896' (the numbers after the comma " +"are millisecond portion of the time)." +msgstr "" + +msgid "created" +msgstr "" + +msgid "``%(created)f``" +msgstr "``%(created)f``" + +msgid "" +"Time when the :class:`LogRecord` was created (as returned " +"by :func:`time.time`)." +msgstr "" + +msgid "exc_info" +msgstr "" + +msgid "" +"Exception tuple (à la ``sys.exc_info``) or, if no exception has occurred, " +"``None``." +msgstr "" + +msgid "filename" +msgstr "" + +msgid "``%(filename)s``" +msgstr "``%(filename)s``" + +msgid "Filename portion of ``pathname``." +msgstr "" + +msgid "funcName" +msgstr "" + +msgid "``%(funcName)s``" +msgstr "``%(funcName)s``" + +msgid "Name of function containing the logging call." +msgstr "" + +msgid "levelname" +msgstr "" + +msgid "``%(levelname)s``" +msgstr "``%(levelname)s``" + +msgid "" +"Text logging level for the message (``'DEBUG'``, ``'INFO'``, ``'WARNING'``, " +"``'ERROR'``, ``'CRITICAL'``)." +msgstr "" + +msgid "levelno" +msgstr "" + +msgid "``%(levelno)s``" +msgstr "``%(levelno)s``" + +msgid "" +"Numeric logging level for the message " +"(:const:`DEBUG`, :const:`INFO`, :const:`WARNING`, :const:`ERROR`, :const:`CRITICAL`)." +msgstr "" + +msgid "lineno" +msgstr "" + +msgid "``%(lineno)d``" +msgstr "``%(lineno)d``" + +msgid "Source line number where the logging call was issued (if available)." +msgstr "" + +msgid "message" +msgstr "" + +msgid "``%(message)s``" +msgstr "``%(message)s``" + +msgid "" +"The logged message, computed as ``msg % args``. This is set " +"when :meth:`Formatter.format` is invoked." +msgstr "" + +msgid "module" +msgstr "moduł" + +msgid "``%(module)s``" +msgstr "``%(module)s``" + +msgid "Module (name portion of ``filename``)." +msgstr "" + +msgid "msecs" +msgstr "" + +msgid "``%(msecs)d``" +msgstr "``%(msecs)d``" + +msgid "" +"Millisecond portion of the time when the :class:`LogRecord` was created." +msgstr "" + +msgid "msg" +msgstr "" + +msgid "" +"The format string passed in the original logging call. Merged with ``args`` " +"to produce ``message``, or an arbitrary object (see :ref:`arbitrary-object-" +"messages`)." +msgstr "" + +msgid "name" +msgstr "nazwa" + +msgid "``%(name)s``" +msgstr "``%(name)s``" + +msgid "Name of the logger used to log the call." +msgstr "" + +msgid "pathname" +msgstr "" + +msgid "``%(pathname)s``" +msgstr "``%(pathname)s``" + +msgid "" +"Full pathname of the source file where the logging call was issued (if " +"available)." +msgstr "" + +msgid "process" +msgstr "" + +msgid "``%(process)d``" +msgstr "``%(process)d``" + +msgid "Process ID (if available)." +msgstr "" + +msgid "processName" +msgstr "" + +msgid "``%(processName)s``" +msgstr "``%(processName)s``" + +msgid "Process name (if available)." +msgstr "" + +msgid "relativeCreated" +msgstr "" + +msgid "``%(relativeCreated)d``" +msgstr "``%(relativeCreated)d``" + +msgid "" +"Time in milliseconds when the LogRecord was created, relative to the time " +"the logging module was loaded." +msgstr "" + +msgid "stack_info" +msgstr "" + +msgid "" +"Stack frame information (where available) from the bottom of the stack in " +"the current thread, up to and including the stack frame of the logging call " +"which resulted in the creation of this record." +msgstr "" + +msgid "thread" +msgstr "" + +msgid "``%(thread)d``" +msgstr "``%(thread)d``" + +msgid "Thread ID (if available)." +msgstr "" + +msgid "threadName" +msgstr "" + +msgid "``%(threadName)s``" +msgstr "``%(threadName)s``" + +msgid "Thread name (if available)." +msgstr "" + +msgid "*processName* was added." +msgstr "" + +msgid "LoggerAdapter Objects" +msgstr "" + +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 `." +msgstr "" + +msgid "" +"Returns an instance of :class:`LoggerAdapter` initialized with an " +"underlying :class:`Logger` instance and a dict-like object." +msgstr "" + +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 " +"'extra'. The return value is a (*msg*, *kwargs*) tuple which has the " +"(possibly modified) versions of the arguments passed in." +msgstr "" + +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 interchangeably." +msgstr "" + +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." +msgstr "" + +msgid "" +"Attribute :attr:`manager` and method :meth:`_log` were added, which delegate " +"to the underlying logger and allow adapters to be nested." +msgstr "" + +msgid "Thread Safety" +msgstr "" + +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." +msgstr "" + +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 " +"is because lock implementations in the :mod:`threading` module are not " +"always re-entrant, and so cannot be invoked from such signal handlers." +msgstr "" + +msgid "Module-Level Functions" +msgstr "" + +msgid "" +"In addition to the classes described above, there are a number of module-" +"level functions." +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." +msgstr "" + +msgid "" +"All calls to this function with a given name return the same logger " +"instance. This means that logger instances never need to be passed between " +"different parts of an application." +msgstr "" + +msgid "" +"Return either the standard :class:`Logger` class, or the last class passed " +"to :func:`setLoggerClass`. This function may be called from within a new " +"class definition, to ensure that installing a customized :class:`Logger` " +"class will not undo customizations already applied by other code. For " +"example::" +msgstr "" + +msgid "Return a callable which is used to create a :class:`LogRecord`." +msgstr "" + +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." +msgstr "" + +msgid "" +"See :func:`setLogRecordFactory` for more information about the how the " +"factory is called." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"There are three keyword arguments in *kwargs* which are inspected: " +"*exc_info* which, if it does not evaluate as false, 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." +msgstr "" + +msgid "" +"The third optional 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 "" + +msgid "would print something like:" +msgstr "" + +msgid "" +"The keys in the dictionary passed in *extra* should not clash with the keys " +"used by the logging system. (See the :class:`Formatter` documentation for " +"more information on which keys are used by the logging system.)" +msgstr "" + +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 " +"exception will occur. So in this case, you always need to pass the *extra* " +"dictionary with these keys." +msgstr "" + +msgid "" +"This function (as well as :func:`info`, :func:`warning`, :func:`error` " +"and :func:`critical`) will call :func:`basicConfig` if the root logger " +"doesn't have any handler attached." +msgstr "" + +msgid "" +"Logs a message with level :const:`INFO` on the root logger. The arguments " +"are interpreted as for :func:`debug`." +msgstr "" + +msgid "" +"Logs a message with level :const:`WARNING` on the root logger. The arguments " +"are interpreted as for :func:`debug`." +msgstr "" + +msgid "" +"There is an obsolete function ``warn`` which is functionally identical to " +"``warning``. As ``warn`` is deprecated, please do not use it - use " +"``warning`` instead." +msgstr "" + +msgid "" +"Logs a message with level :const:`ERROR` on the root logger. The arguments " +"are interpreted as for :func:`debug`." +msgstr "" + +msgid "" +"Logs a message with level :const:`CRITICAL` on the root logger. The " +"arguments are interpreted as for :func:`debug`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Logs a message with level *level* on the root logger. The other arguments " +"are interpreted as for :func:`debug`." +msgstr "" + +msgid "" +"Provides an overriding level *level* for all loggers which takes precedence " +"over the logger's own level. When the need arises to temporarily throttle " +"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." +msgstr "" + +msgid "" +"Note that if you have defined any custom logging level higher than " +"``CRITICAL`` (this is not recommended), you won't be able to rely on the " +"default value for the *level* parameter, but will have to explicitly supply " +"a suitable value." +msgstr "" + +msgid "" +"The *level* parameter was defaulted to level ``CRITICAL``. " +"See :issue:`28524` for more information about this change." +msgstr "" + +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 " +"must be registered using this function, levels should be positive integers " +"and they should increase in increasing order of severity." +msgstr "" + +msgid "" +"If you are thinking of defining your own levels, please see the section " +"on :ref:`custom-levels`." +msgstr "" + +msgid "Returns the textual or numeric representation of logging level *level*." +msgstr "" + +msgid "" +"If *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." +msgstr "" + +msgid "" +"The *level* parameter also accepts a string representation of the level such " +"as 'INFO'. In such cases, this functions returns the corresponding numeric " +"value of the level." +msgstr "" + +msgid "" +"If no matching numeric or string value is passed in, the string 'Level %s' % " +"level is returned." +msgstr "" + +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`), and vice " +"versa." +msgstr "" + +msgid "" +"In Python versions earlier than 3.4, this function could also be passed a " +"text level, and would return the corresponding numeric value of the level. " +"This undocumented behaviour was considered a mistake, and was removed in " +"Python 3.4, but reinstated in 3.4.2 due to retain backward compatibility." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"This function does nothing if the root logger already has handlers " +"configured, unless the keyword argument *force* is set to ``True``." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "The following keyword arguments are supported." +msgstr "" + +msgid "*filename*" +msgstr "" + +msgid "" +"Specifies that a :class:`FileHandler` be created, using the specified " +"filename, rather than a :class:`StreamHandler`." +msgstr "" + +msgid "*filemode*" +msgstr "" + +msgid "" +"If *filename* is specified, open the file in this :ref:`mode `. " +"Defaults to ``'a'``." +msgstr "" + +msgid "*format*" +msgstr "" + +msgid "" +"Use the specified format string for the handler. Defaults to attributes " +"``levelname``, ``name`` and ``message`` separated by colons." +msgstr "" + +msgid "*datefmt*" +msgstr "" + +msgid "" +"Use the specified date/time format, as accepted by :func:`time.strftime`." +msgstr "" + +msgid "*style*" +msgstr "" + +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 ``'%'``." +msgstr "" + +msgid "*level*" +msgstr "" + +msgid "Set the root logger level to the specified :ref:`level `." +msgstr "" + +msgid "*stream*" +msgstr "" + +msgid "" +"Use the specified stream to initialize the :class:`StreamHandler`. Note that " +"this argument is incompatible with *filename* - if both are present, a " +"``ValueError`` is raised." +msgstr "" + +msgid "*handlers*" +msgstr "" + +msgid "" +"If specified, this should be an iterable of already created handlers to add " +"to the root logger. Any handlers which don't already have a formatter set " +"will be assigned the default formatter created in this function. Note that " +"this argument is incompatible with *filename* or *stream* - if both are " +"present, a ``ValueError`` is raised." +msgstr "" + +msgid "*force*" +msgstr "" + +msgid "" +"If this keyword argument is specified as true, any existing handlers " +"attached to the root logger are removed and closed, before carrying out the " +"configuration as specified by the other arguments." +msgstr "" + +msgid "*encoding*" +msgstr "" + +msgid "" +"If this keyword argument is specified along with *filename*, its value is " +"used when the :class:`FileHandler` is created, and thus used when opening " +"the output file." +msgstr "" + +msgid "*errors*" +msgstr "" + +msgid "" +"If this keyword argument is specified along with *filename*, its value is " +"used when the :class:`FileHandler` is created, and thus used when opening " +"the output file. If not specified, the value 'backslashreplace' is used. " +"Note that if ``None`` is specified, it will be passed as such " +"to :func:`open`, which means that it will be treated the same as passing " +"'errors'." +msgstr "" + +msgid "The *style* argument was added." +msgstr "" + +msgid "" +"The *handlers* argument was added. Additional checks were added to catch " +"situations where incompatible arguments are specified (e.g. *handlers* " +"together with *stream* or *filename*, or *stream* together with *filename*)." +msgstr "" + +msgid "The *force* argument was added." +msgstr "" + +msgid "The *encoding* and *errors* arguments were added." +msgstr "" + +msgid "" +"Informs the logging system to perform an orderly shutdown by flushing and " +"closing all handlers. This should be called at application exit and no " +"further use of the logging system should be made after this call." +msgstr "" + +msgid "" +"When the logging module is imported, it registers this function as an exit " +"handler (see :mod:`atexit`), so normally there's no need to do that manually." +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." +msgstr "" + +msgid "Set a callable which is used to create a :class:`LogRecord`." +msgstr "" + +msgid "The factory callable to be used to instantiate a log record." +msgstr "" + +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." +msgstr "" + +msgid "The factory has the following signature:" +msgstr "" + +msgid "" +"``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " +"**kwargs)``" +msgstr "" + +msgid "The logger name." +msgstr "" + +msgid "level" +msgstr "" + +msgid "The logging level (numeric)." +msgstr "" + +msgid "fn" +msgstr "" + +msgid "The full pathname of the file where the logging call was made." +msgstr "" + +msgid "lno" +msgstr "" + +msgid "The line number in the file where the logging call was made." +msgstr "" + +msgid "The logging message." +msgstr "" + +msgid "The arguments for the logging message." +msgstr "" + +msgid "An exception tuple, or ``None``." +msgstr "" + +msgid "func" +msgstr "" + +msgid "The name of the function or method which invoked the logging call." +msgstr "" + +msgid "sinfo" +msgstr "" + +msgid "" +"A stack traceback such as is provided by :func:`traceback.print_stack`, " +"showing the call hierarchy." +msgstr "" + +msgid "kwargs" +msgstr "" + +msgid "Additional keyword arguments." +msgstr "" + +msgid "Module-Level Attributes" +msgstr "" + +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``." +msgstr "" + +msgid "Integration with the warnings module" +msgstr "" + +msgid "" +"The :func:`captureWarnings` function can be used to integrate :mod:`logging` " +"with the :mod:`warnings` module." +msgstr "" + +msgid "" +"This function is used to turn the capture of warnings by logging on and off." +msgstr "" + +msgid "" +"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`." +msgstr "" + +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)." +msgstr "" + +msgid "Module :mod:`logging.config`" +msgstr "" + +msgid "Configuration API for the logging module." +msgstr "" + +msgid "Module :mod:`logging.handlers`" +msgstr "" + +msgid "Useful handlers included with the logging module." +msgstr "" + +msgid ":pep:`282` - A Logging System" +msgstr "" + +msgid "" +"The proposal which described this feature for inclusion in the Python " +"standard library." +msgstr "" + +msgid "" +"`Original Python logging package `_" +msgstr "" + +msgid "" +"This is the original source for the :mod:`logging` package. The version of " +"the package available from this site is suitable for use with Python 1.5.2, " +"2.1.x and 2.2.x, which do not include the :mod:`logging` package in the " +"standard library." +msgstr "" diff --git a/library/logging_config.po b/library/logging_config.po new file mode 100644 index 0000000000..e8ec8aa0c5 --- /dev/null +++ b/library/logging_config.po @@ -0,0 +1,861 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`logging.config` --- Logging configuration" +msgstr "" + +msgid "**Source code:** :source:`Lib/logging/config.py`" +msgstr "**Kod źródłowy:** :source:`Lib/logging/config.py`" + +msgid "" +"This page contains only reference information. For tutorials, please see" +msgstr "" + +msgid ":ref:`Basic Tutorial `" +msgstr "" + +msgid ":ref:`Advanced Tutorial `" +msgstr "" + +msgid ":ref:`Logging Cookbook `" +msgstr "" + +msgid "This section describes the API for configuring the logging module." +msgstr "" + +msgid "Configuration functions" +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`." +msgstr "" + +msgid "" +"Takes the logging configuration from a dictionary. The contents of this " +"dictionary are described in :ref:`logging-config-dictschema` below." +msgstr "" + +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 (possibly incomplete) list of conditions which will raise an error:" +msgstr "" + +msgid "" +"A ``level`` which is not a string or which is a string not corresponding to " +"an actual logging level." +msgstr "" + +msgid "A ``propagate`` value which is not a boolean." +msgstr "" + +msgid "An id which does not have a corresponding destination." +msgstr "" + +msgid "A non-existent handler id found during an incremental call." +msgstr "" + +msgid "An invalid logger name." +msgstr "" + +msgid "Inability to resolve to an internal or external object." +msgstr "" + +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." +msgstr "" + +msgid "" +":func:`dictConfig` calls :attr:`dictConfigClass` passing the specified " +"dictionary, and then calls the :meth:`configure` method on the returned " +"object to put the configuration into effect::" +msgstr "" + +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 state." +msgstr "" + +msgid "" +"Reads the logging configuration from a :mod:`configparser`\\-format file. " +"The format of the file should be as described in :ref:`logging-config-" +"fileformat`. This function can be called several times from an application, " +"allowing an end user to select from various pre-canned configurations (if " +"the developer provides a mechanism to present the choices and load the " +"chosen configuration)." +msgstr "" + +msgid "Parameters" +msgstr "parametry" + +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`." +msgstr "" + +msgid "" +"Defaults to be passed to the ConfigParser can be specified in this argument." +msgstr "" + +msgid "" +"If specified as ``False``, loggers which " +"exist when this call is made are left " +"enabled. The default is ``True`` because " +"this enables old behaviour in " +"a backward-compatible way. This behaviour is " +"to disable any existing non-root loggers " +"unless they or their ancestors are " +"explicitly named in the logging " +"configuration. :param encoding: The encoding used to open file when *fname* " +"is filename." +msgstr "" + +msgid "If specified as ``False``, loggers which" +msgstr "" + +msgid "" +"exist when this call is made are left enabled. The default is ``True`` " +"because this enables old behaviour in a backward-compatible way. This " +"behaviour is to disable any existing non-root loggers unless they or their " +"ancestors are explicitly named in the logging configuration." +msgstr "" + +msgid "param encoding" +msgstr "" + +msgid "The encoding used to open file when *fname* is filename." +msgstr "" + +msgid "" +"An instance of a subclass of :class:`~configparser.RawConfigParser` is now " +"accepted as a value for ``fname``. This facilitates:" +msgstr "" + +msgid "" +"Use of a configuration file where logging configuration is just part of the " +"overall application configuration." +msgstr "" + +msgid "" +"Use of a configuration read from a file, and then modified by the using " +"application (e.g. based on command-line parameters or other aspects of the " +"runtime environment) before being passed to ``fileConfig``." +msgstr "" + +msgid "The *encoding* parameter is added." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The ``verify`` argument, if specified, should be a callable which should " +"verify whether bytes received across the socket are valid and should be " +"processed. This could be done by encrypting and/or signing what is sent " +"across the socket, such that the ``verify`` callable can perform signature " +"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 " +"(perhaps if decryption were performed)." +msgstr "" + +msgid "" +"To send a configuration to the socket, read in the configuration file and " +"send it to the socket as a sequence of bytes preceded by a four-byte length " +"string packed in binary using ``struct.pack('>L', n)``." +msgstr "" + +msgid "" +"Because portions of the configuration are passed through :func:`eval`, use " +"of this function may open its users to a security risk. While the function " +"only binds to a socket on ``localhost``, and so does not accept connections " +"from remote machines, there are scenarios where untrusted code could be run " +"under the account of the process which calls :func:`listen`. Specifically, " +"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." +msgstr "" + +msgid "The ``verify`` argument was added." +msgstr "" + +msgid "" +"If you want to send configurations to the listener which don't disable " +"existing loggers, you will need to use a JSON format for the configuration, " +"which will use :func:`dictConfig` for configuration. This method allows you " +"to specify ``disable_existing_loggers`` as ``False`` in the configuration " +"you send." +msgstr "" + +msgid "" +"Stops the listening server which was created with a call to :func:`listen`. " +"This is typically called before calling :meth:`join` on the return value " +"from :func:`listen`." +msgstr "" + +msgid "Security considerations" +msgstr "" + +msgid "" +"The logging configuration functionality tries to offer convenience, and in " +"part this is done by offering the ability to convert text in configuration " +"files into Python objects used in logging configuration - for example, as " +"described in :ref:`logging-config-dict-userdef`. However, these same " +"mechanisms (importing callables from user-defined modules and calling them " +"with parameters from the configuration) could be used to invoke any code you " +"like, and for this reason you should treat configuration files from " +"untrusted sources with *extreme caution* and satisfy yourself that nothing " +"bad can happen if you load them, before actually loading them." +msgstr "" + +msgid "Configuration dictionary schema" +msgstr "" + +msgid "" +"Describing a logging configuration requires listing the various objects to " +"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." +msgstr "" + +msgid "Dictionary Schema Details" +msgstr "" + +msgid "" +"The dictionary passed to :func:`dictConfig` must contain the following keys:" +msgstr "" + +msgid "" +"*version* - to be set to an integer value representing the schema version. " +"The only valid value at present is 1, but having this key allows the schema " +"to evolve while still preserving backwards compatibility." +msgstr "" + +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; " +"otherwise, the context is used to determine what to instantiate." +msgstr "" + +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 " +"corresponding :class:`~logging.Formatter` instance." +msgstr "" + +msgid "" +"The configuring dict is searched for the following optional keys which " +"correspond to the arguments passed to create a :class:`~logging.Formatter` " +"object:" +msgstr "" + +msgid "``format``" +msgstr "``format``" + +msgid "``datefmt``" +msgstr "``datefmt``" + +msgid "``style``" +msgstr "``style``" + +msgid "``validate`` (since version >=3.8)" +msgstr "" + +msgid "" +"An optional ``class`` key indicates the name of the formatter's class (as a " +"dotted module and class name). The instantiation arguments are as " +"for :class:`~logging.Formatter`, thus this key is most useful for " +"instantiating a customised subclass of :class:`~logging.Formatter`. For " +"example, the alternative class might present exception tracebacks in an " +"expanded or condensed format. If your formatter requires different or extra " +"configuration keys, you should use :ref:`logging-config-dict-userdef`." +msgstr "" + +msgid "" +"*filters* - the corresponding value will be a dict in which each key is a " +"filter id and each value is a dict describing how to configure the " +"corresponding Filter instance." +msgstr "" + +msgid "" +"The configuring dict is searched for the key ``name`` (defaulting to the " +"empty string) and this is used to construct a :class:`logging.Filter` " +"instance." +msgstr "" + +msgid "" +"*handlers* - the corresponding value will be a dict in which each key is a " +"handler id and each value is a dict describing how to configure the " +"corresponding Handler instance." +msgstr "" + +msgid "The configuring dict is searched for the following keys:" +msgstr "" + +msgid "" +"``class`` (mandatory). This is the fully qualified name of the handler " +"class." +msgstr "" + +msgid "``level`` (optional). The level of the handler." +msgstr "" + +msgid "``formatter`` (optional). The id of the formatter for this handler." +msgstr "" + +msgid "``filters`` (optional). A list of ids of the filters for this handler." +msgstr "" + +msgid "" +"All *other* keys are passed through as keyword arguments to the handler's " +"constructor. For example, given the snippet:" +msgstr "" + +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``." +msgstr "" + +msgid "" +"*loggers* - the corresponding value will be a dict in which each key is a " +"logger name and each value is a dict describing how to configure the " +"corresponding Logger instance." +msgstr "" + +msgid "``level`` (optional). The level of the logger." +msgstr "" + +msgid "``propagate`` (optional). The propagation setting of the logger." +msgstr "" + +msgid "``filters`` (optional). A list of ids of the filters for this logger." +msgstr "" + +msgid "" +"``handlers`` (optional). A list of ids of the handlers for this logger." +msgstr "" + +msgid "" +"The specified loggers will be configured according to the level, " +"propagation, filters and handlers specified." +msgstr "" + +msgid "" +"*root* - this will be the configuration for the root logger. Processing of " +"the configuration will be as for any logger, except that the ``propagate`` " +"setting will not be applicable." +msgstr "" + +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." +msgstr "" + +msgid "" +"If the specified value is ``True``, the configuration is processed as " +"described in the section on :ref:`logging-config-dict-incremental`." +msgstr "" + +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``." +msgstr "" + +msgid "Incremental Configuration" +msgstr "" + +msgid "" +"It is difficult to provide complete flexibility for incremental " +"configuration. For example, because objects such as filters and formatters " +"are anonymous, once a configuration is set up, it is not possible to refer " +"to such anonymous objects when augmenting a configuration." +msgstr "" + +msgid "" +"Furthermore, there is not a compelling case for arbitrarily altering the " +"object graph of loggers, handlers, filters, formatters at run-time, once a " +"configuration is set up; the verbosity of loggers and handlers can be " +"controlled just by setting levels (and, in the case of loggers, propagation " +"flags). Changing the object graph arbitrarily in a safe way is problematic " +"in a multi-threaded environment; while not impossible, the benefits are not " +"worth the complexity it adds to the implementation." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "" +"Using a value in the configuration dict lets configurations to be sent over " +"the wire as pickled dicts to a socket listener. Thus, the logging verbosity " +"of a long-running application can be altered over time with no need to stop " +"and restart the application." +msgstr "" + +msgid "Object connections" +msgstr "" + +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 " +"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 " +"configuration dict, this is done by giving each destination object an id " +"which identifies it unambiguously, and then using the id in the source " +"object's configuration to indicate that a connection exists between the " +"source and the destination object with that id." +msgstr "" + +msgid "So, for example, consider the following YAML snippet:" +msgstr "" + +msgid "" +"(Note: YAML used here because it's a little more readable than the " +"equivalent Python source form for the dictionary.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The above snippet indicates that logger named ``foo.bar.baz`` should have " +"two handlers attached to it, which are described by the handler ids ``h1`` " +"and ``h2``. The formatter for ``h1`` is that described by id ``brief``, and " +"the formatter for ``h2`` is that described by id ``precise``." +msgstr "" + +msgid "User-defined objects" +msgstr "" + +msgid "" +"The schema supports user-defined objects for handlers, filters and " +"formatters. (Loggers do not need to have different types for different " +"instances, so there is no support in this configuration schema for user-" +"defined logger classes.)" +msgstr "" + +msgid "" +"Objects to be configured are described by dictionaries which detail their " +"configuration. In some places, the logging system will be able to infer " +"from the context how an object is to be instantiated, but when a user-" +"defined object is to be instantiated, the system will not know how to do " +"this. In order to provide complete flexibility for user-defined object " +"instantiation, the user needs to provide a 'factory' - a callable which is " +"called with a configuration dictionary and which returns the instantiated " +"object. This is signalled by an absolute import path to the factory being " +"made available under the special key ``'()'``. Here's a concrete example:" +msgstr "" + +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 " +"configuration sub-dictionaries::" +msgstr "" + +msgid "and::" +msgstr "" + +msgid "" +"respectively, and as these dictionaries do not contain the special key " +"``'()'``, the instantiation is inferred from the context: as a result, " +"standard :class:`logging.Formatter` instances are created. The " +"configuration sub-dictionary for the third formatter, with id ``custom``, " +"is::" +msgstr "" + +msgid "" +"and this contains the special key ``'()'``, which means that user-defined " +"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 " +"arguments. In the above example, the formatter with id ``custom`` will be " +"assumed to be returned by the call::" +msgstr "" + +msgid "" +"The values for keys such as ``bar``, ``spam`` and ``answer`` in the above " +"example should not be configuration dictionaries or references such as " +"``cfg://foo`` or ``ext://bar``, because they will not be processed by the " +"configuration machinery, but passed to the callable as-is." +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." +msgstr "" + +msgid "" +"You can also specify a special key ``'.'`` whose value is a dictionary is a " +"mapping of attribute names to values. If found, the specified attributes " +"will be set on the user-defined object before it is returned. Thus, with the " +"following configuration::" +msgstr "" + +msgid "" +"the returned formatter will have attribute ``foo`` set to ``'bar'`` and " +"attribute ``baz`` set to ``'bozz'``." +msgstr "" + +msgid "" +"The values for attributes such as ``foo`` and ``baz`` in the above example " +"should not be configuration dictionaries or references such as ``cfg://foo`` " +"or ``ext://bar``, because they will not be processed by the configuration " +"machinery, but set as attribute values as-is." +msgstr "" + +msgid "Handler configuration order" +msgstr "" + +msgid "" +"Handlers are configured in alphabetical order of their keys, and a " +"configured handler replaces the configuration dictionary in (a working copy " +"of) the ``handlers`` dictionary in the schema. If you use a construct such " +"as ``cfg://handlers.foo``, then initially ``handlers['foo']`` points to the " +"configuration dictionary for the handler named ``foo``, and later (once that " +"handler has been configured) it points to the configured handler instance. " +"Thus, ``cfg://handlers.foo`` could resolve to either a dictionary or a " +"handler instance. In general, it is wise to name handlers in a way such that " +"dependent handlers are configured _after_ any handlers they depend on; that " +"allows something like ``cfg://handlers.foo`` to be used in configuring a " +"handler that depends on handler ``foo``. If that dependent handler were " +"named ``bar``, problems would result, because the configuration of ``bar`` " +"would be attempted before that of ``foo``, and ``foo`` would not yet have " +"been configured. However, if the dependent handler were named ``foobar``, it " +"would be configured after ``foo``, with the result that ``cfg://" +"handlers.foo`` would resolve to configured handler ``foo``, and not its " +"configuration dictionary." +msgstr "" + +msgid "Access to external objects" +msgstr "" + +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." +msgstr "" + +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 " +"prefix is not recognised, then the string value will be left as-is." +msgstr "" + +msgid "Access to internal objects" +msgstr "" + +msgid "" +"As well as external objects, there is sometimes also a need to refer to " +"objects in the configuration. This will be done implicitly by the " +"configuration system for things that it knows about. For example, the " +"string value ``'DEBUG'`` for a ``level`` in a logger or handler will " +"automatically be converted to the value ``logging.DEBUG``, and the " +"``handlers``, ``filters`` and ``formatter`` entries will take an object id " +"and resolve to the appropriate destination object." +msgstr "" + +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:" +msgstr "" + +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:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Import resolution and custom importers" +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` 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 instance level, you need to wrap it " +"with :func:`staticmethod`. For example::" +msgstr "" + +msgid "" +"You don't need to wrap with :func:`staticmethod` if you're setting the " +"import callable on a configurator *instance*." +msgstr "" + +msgid "Configuration file format" +msgstr "" + +msgid "" +"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 " +"configured. Thus, for a logger named ``log01`` in the ``[loggers]`` " +"section, the relevant configuration details are held in a section " +"``[logger_log01]``. Similarly, a handler called ``hand01`` in the " +"``[handlers]`` section will have its configuration held in a section called " +"``[handler_hand01]``, while a formatter called ``form01`` in the " +"``[formatters]`` section will have its configuration specified in a section " +"called ``[formatter_form01]``. The root logger configuration must be " +"specified in a section called ``[logger_root]``." +msgstr "" + +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." +msgstr "" + +msgid "Examples of these sections in the file are given below." +msgstr "" + +msgid "" +"The root logger must specify a level and a list of handlers. An example of a " +"root logger section is given below." +msgstr "" + +msgid "" +"The ``level`` entry can be one of ``DEBUG, INFO, WARNING, ERROR, CRITICAL`` " +"or ``NOTSET``. For the root logger only, ``NOTSET`` means that all messages " +"will be logged. Level values are :func:`eval`\\ uated in the context of the " +"``logging`` package's namespace." +msgstr "" + +msgid "" +"The ``handlers`` entry is a comma-separated list of handler names, which " +"must appear in the ``[handlers]`` section. These names must appear in the " +"``[handlers]`` section and have corresponding sections in the configuration " +"file." +msgstr "" + +msgid "" +"For loggers other than the root logger, some additional information is " +"required. This is illustrated by the following example." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Sections which specify handler configuration are exemplified by the " +"following." +msgstr "" + +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'." +msgstr "" + +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." +msgstr "" + +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 ``()``." +msgstr "" + +msgid "" +"The optional ``kwargs`` entry, when :func:`eval`\\ uated in the context of " +"the ``logging`` package's namespace, is the keyword argument dict to the " +"constructor for the handler class. If not provided, it defaults to ``{}``." +msgstr "" + +msgid "" +"Sections which specify formatter configuration are typified by the following." +msgstr "" + +msgid "" +"The arguments for the formatter configuration are the same as the keys in " +"the dictionary schema :ref:`formatters section `." +msgstr "" + +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." +msgstr "" + +msgid "Module :mod:`logging`" +msgstr "" + +msgid "API reference for the logging module." +msgstr "" + +msgid "Module :mod:`logging.handlers`" +msgstr "" + +msgid "Useful handlers included with the logging module." +msgstr "" diff --git a/library/logging_handlers.po b/library/logging_handlers.po new file mode 100644 index 0000000000..6e8af0b786 --- /dev/null +++ b/library/logging_handlers.po @@ -0,0 +1,1352 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`logging.handlers` --- Logging handlers" +msgstr "" + +msgid "**Source code:** :source:`Lib/logging/handlers.py`" +msgstr "**Kod źródłowy:** :source:`Lib/logging/handlers.py`" + +msgid "" +"This page contains only reference information. For tutorials, please see" +msgstr "" + +msgid ":ref:`Basic Tutorial `" +msgstr "" + +msgid ":ref:`Advanced Tutorial `" +msgstr "" + +msgid ":ref:`Logging Cookbook `" +msgstr "" + +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." +msgstr "" + +msgid "StreamHandler" +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)." +msgstr "" + +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." +msgstr "" + +msgid "" +"If a formatter is specified, it is used to format the record. The record is " +"then written to the stream followed by :attr:`terminator`. If exception " +"information is present, it is formatted " +"using :func:`traceback.print_exception` and appended to the stream." +msgstr "" + +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." +msgstr "" + +msgid "" +"Sets the instance's stream to the specified value, if it is different. The " +"old stream is flushed before the new stream is set." +msgstr "" + +msgid "Parameters" +msgstr "parametry" + +msgid "The stream that the handler should use." +msgstr "" + +msgid "Returns" +msgstr "Zwraca" + +msgid "the old stream, if the stream was changed, or *None* if it wasn't." +msgstr "" + +msgid "" +"String used as the terminator when writing a formatted record to a stream. " +"Default value is ``'\\n'``." +msgstr "" + +msgid "" +"If you don't want a newline termination, you can set the handler instance's " +"``terminator`` attribute to the empty string." +msgstr "" + +msgid "In earlier versions, the terminator was hardcoded as ``'\\n'``." +msgstr "" + +msgid "FileHandler" +msgstr "" + +msgid "" +"The :class:`FileHandler` class, located in the core :mod:`logging` package, " +"sends logging output to a disk file. It inherits the output functionality " +"from :class:`StreamHandler`." +msgstr "" + +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 " +"indefinitely. If *errors* is specified, it's used to determine how encoding " +"errors are handled." +msgstr "" + +msgid "" +"As well as string values, :class:`~pathlib.Path` objects are also accepted " +"for the *filename* argument." +msgstr "" + +msgid "The *errors* parameter was added." +msgstr "" + +msgid "Closes the file." +msgstr "" + +msgid "Outputs the record to the file." +msgstr "" + +msgid "" +"Note that if the file was closed due to logging shutdown at exit and the " +"file mode is 'w', the record will not be emitted (see :issue:`42378`)." +msgstr "" + +msgid "NullHandler" +msgstr "" + +msgid "" +"The :class:`NullHandler` class, located in the core :mod:`logging` package, " +"does not do any formatting or output. It is essentially a 'no-op' handler " +"for use by library developers." +msgstr "" + +msgid "Returns a new instance of the :class:`NullHandler` class." +msgstr "" + +msgid "This method does nothing." +msgstr "" + +msgid "" +"This method returns ``None`` for the lock, since there is no underlying I/O " +"to which access needs to be serialized." +msgstr "" + +msgid "" +"See :ref:`library-config` for more information on how to " +"use :class:`NullHandler`." +msgstr "" + +msgid "WatchedFileHandler" +msgstr "" + +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." +msgstr "" + +msgid "" +"A file change can happen because of usage of programs such as *newsyslog* " +"and *logrotate* which perform log file rotation. This handler, intended for " +"use under Unix/Linux, watches the file to see if it has changed since the " +"last emit. (A file is deemed to have changed if its device or inode have " +"changed.) If the file has changed, the old file stream is closed, and the " +"file opened to get a new stream." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`WatchedFileHandler` 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. If *errors* is provided, it determines how encoding " +"errors are handled." +msgstr "" + +msgid "" +"Checks to see if the file has changed. If it has, the existing stream is " +"flushed and closed and the file opened again, typically as a precursor to " +"outputting the record to the file." +msgstr "" + +msgid "" +"Outputs the record to the file, but first calls :meth:`reopenIfNeeded` to " +"reopen the file if it has changed." +msgstr "" + +msgid "BaseRotatingHandler" +msgstr "" + +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." +msgstr "" + +msgid "The parameters are as for :class:`FileHandler`. The attributes are:" +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"It's also worth noting that care should be taken when using a namer to " +"preserve certain attributes in the filename which are used during rotation. " +"For example, :class:`RotatingFileHandler` expects to have a set of log files " +"whose names contain successive integers, so that rotation works as expected, " +"and :class:`TimedRotatingFileHandler` deletes old log files (based on the " +"``backupCount`` parameter passed to the handler's initializer) by " +"determining the oldest files to delete. For this to happen, the filenames " +"should be sortable using the date/time portion of the filename, and a namer " +"needs to respect this. (If a namer is wanted that doesn't respect this " +"scheme, it will need to be used in a subclass " +"of :class:`TimedRotatingFileHandler` which overrides " +"the :meth:`~TimedRotatingFileHandler.getFilesToDelete` method to fit in with " +"the custom naming scheme.)" +msgstr "" + +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`." +msgstr "" + +msgid "Modify the filename of a log file when rotating." +msgstr "" + +msgid "This is provided so that a custom filename can be provided." +msgstr "" + +msgid "" +"The default implementation calls the 'namer' attribute of the handler, if " +"it's callable, passing the default name to it. If the attribute isn't " +"callable (the default is ``None``), the name is returned unchanged." +msgstr "" + +msgid "The default name for the log file." +msgstr "" + +msgid "When rotating, rotate the current log." +msgstr "" + +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 " +"the destination." +msgstr "" + +msgid "" +"The source filename. This is normally the base filename, e.g. 'test.log'." +msgstr "" + +msgid "" +"The destination filename. This is normally what the source is rotated to, " +"e.g. 'test.log.1'." +msgstr "" + +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 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." +msgstr "" + +msgid "" +"If you need to make more significant changes to rotation processing, you can " +"override the methods." +msgstr "" + +msgid "For an example, see :ref:`cookbook-rotator-namer`." +msgstr "" + +msgid "RotatingFileHandler" +msgstr "" + +msgid "" +"The :class:`RotatingFileHandler` class, located in " +"the :mod:`logging.handlers` module, supports rotation of disk log files." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`RotatingFileHandler` class. The " +"specified file is opened and used as the stream for logging. If *mode* is " +"not specified, ``'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. If *errors* is provided, it determines how encoding " +"errors are handled." +msgstr "" + +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 " +"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 " +"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." +msgstr "" + +msgid "Does a rollover, as described above." +msgstr "" + +msgid "" +"Outputs the record to the file, catering for rollover as described " +"previously." +msgstr "" + +msgid "TimedRotatingFileHandler" +msgstr "TimedRotatingFileHandler" + +msgid "" +"The :class:`TimedRotatingFileHandler` class, located in " +"the :mod:`logging.handlers` module, supports rotation of disk log files at " +"certain timed intervals." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`TimedRotatingFileHandler` class. The " +"specified file is opened and used as the stream for logging. On rotating it " +"also sets the filename suffix. Rotating happens based on the product of " +"*when* and *interval*." +msgstr "" + +msgid "" +"You can use the *when* to specify the type of *interval*. The list of " +"possible values is below. Note that they are not case sensitive." +msgstr "" + +msgid "Value" +msgstr "Wartość" + +msgid "Type of interval" +msgstr "" + +msgid "If/how *atTime* is used" +msgstr "" + +msgid "``'S'``" +msgstr "``'S'``" + +msgid "Seconds" +msgstr "" + +msgid "Ignored" +msgstr "" + +msgid "``'M'``" +msgstr "``'M'``" + +msgid "Minutes" +msgstr "" + +msgid "``'H'``" +msgstr "``'H'``" + +msgid "Hours" +msgstr "" + +msgid "``'D'``" +msgstr "``'D'``" + +msgid "Days" +msgstr "" + +msgid "``'W0'-'W6'``" +msgstr "``'W0'-'W6'``" + +msgid "Weekday (0=Monday)" +msgstr "" + +msgid "Used to compute initial rollover time" +msgstr "" + +msgid "``'midnight'``" +msgstr "" + +msgid "Roll over at midnight, if *atTime* not specified, else at time *atTime*" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"If the *utc* argument is true, times in UTC will be used; otherwise local " +"time is used." +msgstr "" + +msgid "" +"If *backupCount* is nonzero, at most *backupCount* files will be kept, and " +"if more would be created when rollover occurs, the oldest one is deleted. " +"The deletion logic uses the interval to determine which files to delete, so " +"changing the interval may leave old files lying around." +msgstr "" + +msgid "" +"If *delay* is true, then file opening is deferred until the first call " +"to :meth:`emit`." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"If *errors* is specified, it's used to determine how encoding errors are " +"handled." +msgstr "" + +msgid "" +"Calculation of the initial rollover time is done when the handler is " +"initialised. Calculation of subsequent rollover times is done only when " +"rollover occurs, and rollover occurs only when emitting output. If this is " +"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 " +"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." +msgstr "" + +msgid "*atTime* parameter was added." +msgstr "" + +msgid "" +"Outputs the record to the file, catering for rollover as described above." +msgstr "" + +msgid "" +"Returns a list of filenames which should be deleted as part of rollover. " +"These are the absolute paths of the oldest backup log files written by the " +"handler." +msgstr "" + +msgid "SocketHandler" +msgstr "" + +msgid "" +"The :class:`SocketHandler` class, located in the :mod:`logging.handlers` " +"module, sends logging output to a network socket. The base class uses a TCP " +"socket." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`SocketHandler` class intended to " +"communicate with a remote machine whose address is given by *host* and " +"*port*." +msgstr "" + +msgid "" +"If ``port`` is specified as ``None``, a Unix domain socket is created using " +"the value in ``host`` - otherwise, a TCP socket is created." +msgstr "" + +msgid "Closes the socket." +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. 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." +msgstr "" + +msgid "" +"Handles an error which has occurred during :meth:`emit`. The most likely " +"cause is a lost connection. Closes the socket so that we can retry on the " +"next event." +msgstr "" + +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`)." +msgstr "" + +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::" +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"This function allows for partial sends, which can happen when the network is " +"busy." +msgstr "" + +msgid "" +"Tries to create a socket; on failure, uses an exponential back-off " +"algorithm. On initial failure, the handler will drop the message it was " +"trying to send. When subsequent messages are handled by the same instance, " +"it will not try connecting until some time has passed. The default " +"parameters are such that the initial delay is one second, and if after that " +"delay the connection still can't be made, the handler will double the delay " +"each time up to a maximum of 30 seconds." +msgstr "" + +msgid "This behaviour is controlled by the following handler attributes:" +msgstr "" + +msgid "``retryStart`` (initial delay, defaulting to 1.0 seconds)." +msgstr "" + +msgid "``retryFactor`` (multiplier, defaulting to 2.0)." +msgstr "" + +msgid "``retryMax`` (maximum delay, defaulting to 30.0 seconds)." +msgstr "" + +msgid "" +"This means that if the remote listener starts up *after* the handler has " +"been used, you could lose messages (since the handler won't even attempt a " +"connection until the delay has elapsed, but just silently drop messages " +"during the delay period)." +msgstr "" + +msgid "DatagramHandler" +msgstr "" + +msgid "" +"The :class:`DatagramHandler` class, located in the :mod:`logging.handlers` " +"module, inherits from :class:`SocketHandler` to support sending logging " +"messages over UDP sockets." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`DatagramHandler` class intended to " +"communicate with a remote machine whose address is given by *host* and " +"*port*." +msgstr "" + +msgid "" +"As UDP is not a streaming protocol, there is no persistent connection " +"between an instance of this handler and *host*. For this reason, when using " +"a network socket, a DNS lookup might have to be made each time an event is " +"logged, which can introduce some latency into the system. If this affects " +"you, you can do a lookup yourself and initialize this handler using the " +"looked-up IP address rather than the hostname." +msgstr "" + +msgid "" +"If ``port`` is specified as ``None``, a Unix domain socket is created using " +"the value in ``host`` - otherwise, a UDP socket is created." +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." +msgstr "" + +msgid "" +"The factory method of :class:`SocketHandler` is here overridden to create a " +"UDP socket (:const:`socket.SOCK_DGRAM`)." +msgstr "" + +msgid "" +"Send a pickled byte-string to a socket. The format of the sent byte-string " +"is as described in the documentation for :meth:`SocketHandler.makePickle`." +msgstr "" + +msgid "SysLogHandler" +msgstr "" + +msgid "" +"The :class:`SysLogHandler` class, located in the :mod:`logging.handlers` " +"module, supports sending logging messages to a remote or local Unix syslog." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`SysLogHandler` class intended to " +"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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"On macOS 12.x (Monterey), Apple has changed the behaviour of their syslog " +"daemon - it no longer listens on a domain socket. Therefore, you cannot " +"expect :class:`SysLogHandler` to work on this system." +msgstr "" + +msgid "See :gh:`91070` for more information." +msgstr "" + +msgid "*socktype* was added." +msgstr "" + +msgid "Closes the socket to the remote host." +msgstr "" + +msgid "" +"The record is formatted, and then sent to the syslog server. If exception " +"information is present, it is *not* sent to the server." +msgstr "" + +msgid "" +"(See: :issue:`12168`.) In earlier versions, the message sent to the syslog " +"daemons was always terminated with a NUL byte, because early versions of " +"these daemons expected a NUL terminated message - even though it's not in " +"the relevant specification (:rfc:`5424`). More recent versions of these " +"daemons don't expect the NUL byte but strip it off if it's there, and even " +"more recent daemons (which adhere more closely to RFC 5424) pass the NUL " +"byte on as part of the message." +msgstr "" + +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 " +"*not* append the NUL terminator." +msgstr "" + +msgid "" +"(See: :issue:`12419`.) In earlier versions, there was no facility for an " +"\"ident\" or \"tag\" prefix to identify the source of the message. This can " +"now be specified using a class-level attribute, defaulting to ``\"\"`` to " +"preserve existing behaviour, but which can be overridden on a " +"``SysLogHandler`` instance in order for that instance to prepend the ident " +"to every message handled. Note that the provided ident must be text, not " +"bytes, and is prepended to the message exactly as is." +msgstr "" + +msgid "" +"Encodes the facility and priority into an integer. You can pass in strings " +"or integers - if strings are passed, internal mapping dictionaries are used " +"to convert them to integers." +msgstr "" + +msgid "" +"The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and " +"mirror the values defined in the ``sys/syslog.h`` header file." +msgstr "" + +msgid "**Priorities**" +msgstr "" + +msgid "Name (string)" +msgstr "" + +msgid "Symbolic value" +msgstr "" + +msgid "``alert``" +msgstr "" + +msgid "LOG_ALERT" +msgstr "LOG_ALERT" + +msgid "``crit`` or ``critical``" +msgstr "" + +msgid "LOG_CRIT" +msgstr "" + +msgid "``debug``" +msgstr "" + +msgid "LOG_DEBUG" +msgstr "LOG_DEBUG" + +msgid "``emerg`` or ``panic``" +msgstr "" + +msgid "LOG_EMERG" +msgstr "LOG_EMERG" + +msgid "``err`` or ``error``" +msgstr "" + +msgid "LOG_ERR" +msgstr "LOG_ERR" + +msgid "``info``" +msgstr "``info``" + +msgid "LOG_INFO" +msgstr "" + +msgid "``notice``" +msgstr "" + +msgid "LOG_NOTICE" +msgstr "LOG_NOTICE" + +msgid "``warn`` or ``warning``" +msgstr "" + +msgid "LOG_WARNING" +msgstr "LOG_WARNING" + +msgid "**Facilities**" +msgstr "" + +msgid "``auth``" +msgstr "``auth``" + +msgid "LOG_AUTH" +msgstr "LOG_AUTH" + +msgid "``authpriv``" +msgstr "``authpriv``" + +msgid "LOG_AUTHPRIV" +msgstr "LOG_AUTHPRIV" + +msgid "``cron``" +msgstr "``cron``" + +msgid "LOG_CRON" +msgstr "LOG_CRON" + +msgid "``daemon``" +msgstr "" + +msgid "LOG_DAEMON" +msgstr "LOG_DAEMON" + +msgid "``ftp``" +msgstr "``ftp``" + +msgid "LOG_FTP" +msgstr "" + +msgid "``kern``" +msgstr "``kern``" + +msgid "LOG_KERN" +msgstr "" + +msgid "``lpr``" +msgstr "``lpr``" + +msgid "LOG_LPR" +msgstr "" + +msgid "``mail``" +msgstr "``mail``" + +msgid "LOG_MAIL" +msgstr "LOG_MAIL" + +msgid "``news``" +msgstr "``news``" + +msgid "LOG_NEWS" +msgstr "" + +msgid "``syslog``" +msgstr "" + +msgid "LOG_SYSLOG" +msgstr "LOG_SYSLOG" + +msgid "``user``" +msgstr "" + +msgid "LOG_USER" +msgstr "LOG_USER" + +msgid "``uucp``" +msgstr "``uucp``" + +msgid "LOG_UUCP" +msgstr "LOG_UUCP" + +msgid "``local0``" +msgstr "``local0``" + +msgid "LOG_LOCAL0" +msgstr "" + +msgid "``local1``" +msgstr "``local1``" + +msgid "LOG_LOCAL1" +msgstr "LOG_LOCAL1" + +msgid "``local2``" +msgstr "" + +msgid "LOG_LOCAL2" +msgstr "LOG_LOCAL2" + +msgid "``local3``" +msgstr "``local3``" + +msgid "LOG_LOCAL3" +msgstr "" + +msgid "``local4``" +msgstr "``local4``" + +msgid "LOG_LOCAL4" +msgstr "" + +msgid "``local5``" +msgstr "``local5``" + +msgid "LOG_LOCAL5" +msgstr "LOG_LOCAL5" + +msgid "``local6``" +msgstr "``local6``" + +msgid "LOG_LOCAL6" +msgstr "" + +msgid "``local7``" +msgstr "``local7``" + +msgid "LOG_LOCAL7" +msgstr "LOG_LOCAL7" + +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'." +msgstr "" + +msgid "NTEventLogHandler" +msgstr "" + +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." +msgstr "" + +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'``." +msgstr "" + +msgid "" +"At this point, you can remove the application name from the registry as a " +"source of event log entries. However, if you do this, you will not be able " +"to see the events as you intended in the Event Log Viewer - it needs to be " +"able to access the registry to get the .dll name. The current version does " +"not do this." +msgstr "" + +msgid "" +"Determines the message ID, event category and event type, and then logs the " +"message in the NT event log." +msgstr "" + +msgid "" +"Returns the event category for the record. Override this if you want to " +"specify your own categories. This version returns 0." +msgstr "" + +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 will either " +"need to override this method or place a suitable dictionary in the handler's " +"*typemap* attribute." +msgstr "" + +msgid "" +"Returns the message ID for the record. If you are using your own messages, " +"you could do this by having the *msg* passed to the logger being an ID " +"rather than a format string. Then, in here, you could use a dictionary " +"lookup to get the message ID. This version returns 1, which is the base " +"message ID in :file:`win32service.pyd`." +msgstr "" + +msgid "SMTPHandler" +msgstr "SMTPHandler" + +msgid "" +"The :class:`SMTPHandler` class, located in the :mod:`logging.handlers` " +"module, supports sending logging messages to an email address via SMTP." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`SMTPHandler` class. The instance is " +"initialized with the from and to addresses and subject line of the email. " +"The *toaddrs* should be a list of strings. To specify a non-standard SMTP " +"port, use the (host, port) tuple format for the *mailhost* argument. If you " +"use a string, the standard SMTP port is used. If your SMTP server requires " +"authentication, you can specify a (username, password) tuple for the " +"*credentials* argument." +msgstr "" + +msgid "" +"To specify the use of a secure protocol (TLS), pass in a tuple to the " +"*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.)" +msgstr "" + +msgid "" +"A timeout can be specified for communication with the SMTP server using the " +"*timeout* argument." +msgstr "" + +msgid "The *timeout* argument was added." +msgstr "" + +msgid "Formats the record and sends it to the specified addressees." +msgstr "" + +msgid "" +"If you want to specify a subject line which is record-dependent, override " +"this method." +msgstr "" + +msgid "MemoryHandler" +msgstr "" + +msgid "" +"The :class:`MemoryHandler` class, located in the :mod:`logging.handlers` " +"module, supports buffering of logging records in memory, periodically " +"flushing them to a :dfn:`target` handler. Flushing occurs whenever the " +"buffer is full, or when an event of a certain severity or greater is seen." +msgstr "" + +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." +msgstr "" + +msgid "" +"Initializes the handler with a buffer of the specified capacity. Here, " +"*capacity* means the number of logging records buffered." +msgstr "" + +msgid "" +"Append the record to the buffer. If :meth:`shouldFlush` returns true, " +"call :meth:`flush` to process the buffer." +msgstr "" + +msgid "" +"You can override this to implement custom flushing behavior. This version " +"just zaps the buffer to empty." +msgstr "" + +msgid "" +"Return ``True`` if the buffer is up to capacity. This method can be " +"overridden to implement custom flushing strategies." +msgstr "" + +msgid "" +"Returns a new instance of the :class:`MemoryHandler` class. The instance is " +"initialized with a buffer size of *capacity* (number of records buffered). " +"If *flushLevel* is not specified, :const:`ERROR` is used. If no *target* is " +"specified, the target will need to be set using :meth:`setTarget` before " +"this handler does anything useful. If *flushOnClose* is specified as " +"``False``, then the buffer is *not* flushed when the handler is closed. If " +"not specified or specified as ``True``, the previous behaviour of flushing " +"the buffer will occur when the handler is closed." +msgstr "" + +msgid "The *flushOnClose* parameter was added." +msgstr "" + +msgid "Calls :meth:`flush`, sets the target to ``None`` and clears the buffer." +msgstr "" + +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." +msgstr "" + +msgid "Sets the target handler for this handler." +msgstr "" + +msgid "Checks for buffer full or a record at the *flushLevel* or higher." +msgstr "" + +msgid "HTTPHandler" +msgstr "HTTPHandler" + +msgid "" +"The :class:`HTTPHandler` class, located in the :mod:`logging.handlers` " +"module, supports sending logging messages to a web server, using either " +"``GET`` or ``POST`` semantics." +msgstr "" + +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." +msgstr "" + +msgid "The *context* parameter was added." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "QueueHandler" +msgstr "" + +msgid "" +"The :class:`QueueHandler` class, located in the :mod:`logging.handlers` " +"module, supports sending logging messages to a queue, such as those " +"implemented in the :mod:`queue` or :mod:`multiprocessing` modules." +msgstr "" + +msgid "" +"Along with the :class:`QueueListener` class, :class:`QueueHandler` can be " +"used to let handlers do their work on a separate thread from the one which " +"does the logging. This is important in web applications and also other " +"service applications where threads servicing clients need to respond as " +"quickly as possible, while any potentially slow operations (such as sending " +"an email via :class:`SMTPHandler`) are done on a separate thread." +msgstr "" + +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*." +msgstr "" + +msgid "" +"If you are using :mod:`multiprocessing`, you should avoid " +"using :class:`~queue.SimpleQueue` and instead " +"use :class:`multiprocessing.Queue`." +msgstr "" + +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``)." +msgstr "" + +msgid "" +"Prepares a record for queuing. The object returned by this method is " +"enqueued." +msgstr "" + +msgid "" +"The base implementation formats the record to merge the message, arguments, " +"exception and stack information, if present. It also removes unpickleable " +"items from the record in-place. Specifically, it overwrites the " +"record's :attr:`msg` and :attr:`message` attributes with the merged message " +"(obtained by calling the handler's :meth:`format` method), and sets " +"the :attr:`args`, :attr:`exc_info` and :attr:`exc_text` attributes to " +"``None``." +msgstr "" + +msgid "" +"You might want to override this method if you want to convert the record to " +"a dict or JSON string, or send a modified copy of the record while leaving " +"the original intact." +msgstr "" + +msgid "" +"The base implementation formats the message with arguments, sets the " +"``message`` and ``msg`` attributes to the formatted message and sets the " +"``args`` and ``exc_text`` attributes to ``None`` to allow pickling and to " +"prevent further attempts at formatting. This means that a handler on " +"the :class:`QueueListener` side won't have the information to do custom " +"formatting, e.g. of exceptions. You may wish to subclass ``QueueHandler`` " +"and override this method to e.g. avoid setting ``exc_text`` to ``None``. " +"Note that the ``message`` / ``msg`` / ``args`` changes are related to " +"ensuring the record is pickleable, and you might or might not be able to " +"avoid doing that depending on whether your ``args`` are pickleable. (Note " +"that you may have to consider not only your own code but also code in any " +"libraries that you use.)" +msgstr "" + +msgid "" +"Enqueues the record on the queue using ``put_nowait()``; you may want to " +"override this if you want to use blocking behaviour, or a timeout, or a " +"customized queue implementation." +msgstr "" + +msgid "" +"When created via configuration using :func:`~logging.config.dictConfig`, " +"this attribute will contain a :class:`QueueListener` instance for use with " +"this handler. Otherwise, it will be ``None``." +msgstr "" + +msgid "QueueListener" +msgstr "" + +msgid "" +"The :class:`QueueListener` class, located in the :mod:`logging.handlers` " +"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`." +msgstr "" + +msgid "" +"Along with the :class:`QueueHandler` class, :class:`QueueListener` can be " +"used to let handlers do their work on a separate thread from the one which " +"does the logging. This is important in web applications and also other " +"service applications where threads servicing clients need to respond as " +"quickly as possible, while any potentially slow operations (such as sending " +"an email via :class:`SMTPHandler`) are done on a separate thread." +msgstr "" + +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*." +msgstr "" + +msgid "" +"If ``respect_handler_level`` is ``True``, a handler's level is respected " +"(compared with the level for the message) when deciding whether to pass " +"messages to that handler; otherwise, the behaviour is as in previous Python " +"versions - to always pass each message to each handler." +msgstr "" + +msgid "The ``respect_handler_level`` argument was added." +msgstr "" + +msgid "Dequeues a record and return it, optionally blocking." +msgstr "" + +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." +msgstr "" + +msgid "Prepare a record for handling." +msgstr "" + +msgid "" +"This implementation just returns the passed-in record. You may want to " +"override this method if you need to do any custom marshalling or " +"manipulation of the record before passing it to the handlers." +msgstr "" + +msgid "Handle a record." +msgstr "" + +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`." +msgstr "" + +msgid "Starts the listener." +msgstr "" + +msgid "" +"This starts up a background thread to monitor the queue for LogRecords to " +"process." +msgstr "" + +msgid "Stops the listener." +msgstr "" + +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 " +"records still left on the queue, which won't be processed." +msgstr "" + +msgid "" +"Writes a sentinel to the queue to tell the listener to quit. This " +"implementation uses ``put_nowait()``. You may want to override this method " +"if you want to use timeouts or work with custom queue implementations." +msgstr "" + +msgid "Module :mod:`logging`" +msgstr "" + +msgid "API reference for the logging module." +msgstr "" + +msgid "Module :mod:`logging.config`" +msgstr "" + +msgid "Configuration API for the logging module." +msgstr "" diff --git a/library/lzma.po b/library/lzma.po new file mode 100644 index 0000000000..bf6c4bb1fd --- /dev/null +++ b/library/lzma.po @@ -0,0 +1,536 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`lzma` --- Compression using the LZMA algorithm" +msgstr "" + +msgid "**Source code:** :source:`Lib/lzma.py`" +msgstr "**Kod źródłowy:** :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." +msgstr "" + +msgid "" +"The interface provided by this module is very similar to that of " +"the :mod:`bz2` module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` " +"are *not* thread-safe, so if you need to use a single :class:`LZMAFile` " +"instance from multiple threads, it is necessary to protect it with a lock." +msgstr "" + +msgid "" +"This exception is raised when an error occurs during compression or " +"decompression, or while initializing the compressor/decompressor state." +msgstr "" + +msgid "Reading and writing compressed files" +msgstr "" + +msgid "" +"Open an LZMA-compressed file in binary or text mode, returning a :term:`file " +"object`." +msgstr "" + +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." +msgstr "" + +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\"``." +msgstr "" + +msgid "" +"When opening a file for reading, the *format* and *filters* arguments have " +"the same meanings as for :class:`LZMADecompressor`. In this case, the " +"*check* and *preset* arguments should not be used." +msgstr "" + +msgid "" +"When opening a file for writing, the *format*, *check*, *preset* and " +"*filters* arguments have the same meanings as for :class:`LZMACompressor`." +msgstr "" + +msgid "" +"For binary mode, this function is equivalent to the :class:`LZMAFile` " +"constructor: ``LZMAFile(filename, mode, ...)``. In this case, the " +"*encoding*, *errors* and *newline* arguments must not be provided." +msgstr "" + +msgid "" +"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 "" + +msgid "Added support for the ``\"x\"``, ``\"xb\"`` and ``\"xt\"`` modes." +msgstr "" + +msgid "Accepts a :term:`path-like object`." +msgstr "" + +msgid "Open an LZMA-compressed file in binary mode." +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 wrapping an existing file object, the wrapped file will not be " +"closed when the :class:`LZMAFile` is closed." +msgstr "" + +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." +msgstr "" + +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\"``." +msgstr "" + +msgid "" +"When opening a file for reading, the input file may be the concatenation of " +"multiple separate compressed streams. These are transparently decoded as a " +"single logical stream." +msgstr "" + +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." +msgstr "" + +msgid "The following method is also provided:" +msgstr "" + +msgid "" +"Return buffered data without advancing the file position. At least one byte " +"of data will be returned, unless EOF has been reached. The exact number of " +"bytes returned is unspecified (the *size* argument is ignored)." +msgstr "" + +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 *filename*)." +msgstr "" + +msgid "Added support for the ``\"x\"`` and ``\"xb\"`` modes." +msgstr "" + +msgid "" +"The :meth:`~io.BufferedIOBase.read` method now accepts an argument of " +"``None``." +msgstr "" + +msgid "Compressing and decompressing data in memory" +msgstr "" + +msgid "" +"Create a compressor object, which can be used to compress data incrementally." +msgstr "" + +msgid "" +"For a more convenient way of compressing a single chunk of data, " +"see :func:`compress`." +msgstr "" + +msgid "" +"The *format* argument specifies what container format should be used. " +"Possible values are:" +msgstr "" + +msgid ":const:`FORMAT_XZ`: The ``.xz`` container format." +msgstr "" + +msgid "This is the default format." +msgstr "" + +msgid ":const:`FORMAT_ALONE`: The legacy ``.lzma`` container format." +msgstr "" + +msgid "" +"This format is more limited than ``.xz`` -- it does not support integrity " +"checks or multiple filters." +msgstr "" + +msgid ":const:`FORMAT_RAW`: A raw data stream, not using any container format." +msgstr "" + +msgid "" +"This format specifier does not support integrity checks, and requires that " +"you always specify a custom filter chain (for both compression and " +"decompression). Additionally, data compressed in this manner cannot be " +"decompressed using :const:`FORMAT_AUTO` (see :class:`LZMADecompressor`)." +msgstr "" + +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 " +"data has not been corrupted. Possible values are:" +msgstr "" + +msgid "" +":const:`CHECK_NONE`: No integrity check. This is the default (and the only " +"acceptable value) for :const:`FORMAT_ALONE` and :const:`FORMAT_RAW`." +msgstr "" + +msgid ":const:`CHECK_CRC32`: 32-bit Cyclic Redundancy Check." +msgstr "" + +msgid "" +":const:`CHECK_CRC64`: 64-bit Cyclic Redundancy Check. This is the default " +"for :const:`FORMAT_XZ`." +msgstr "" + +msgid ":const:`CHECK_SHA256`: 256-bit Secure Hash Algorithm." +msgstr "" + +msgid "" +"If the specified check is not supported, an :class:`LZMAError` is raised." +msgstr "" + +msgid "" +"The compression settings can be specified either as a preset compression " +"level (with the *preset* argument), or in detail as a custom filter chain " +"(with the *filters* argument)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *filters* argument (if provided) should be a filter chain specifier. " +"See :ref:`filter-chain-specs` for details." +msgstr "" + +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 any previous calls to :meth:`compress`." +msgstr "" + +msgid "" +"Finish the compression process, returning a :class:`bytes` object containing " +"any data stored in the compressor's internal buffers." +msgstr "" + +msgid "The compressor cannot be used after this method has been called." +msgstr "" + +msgid "" +"Create a decompressor object, which can be used to decompress data " +"incrementally." +msgstr "" + +msgid "" +"For a more convenient way of decompressing an entire compressed stream at " +"once, see :func:`decompress`." +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`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"This class does not transparently handle inputs containing multiple " +"compressed streams, unlike :func:`decompress` and :class:`LZMAFile`. To " +"decompress a multi-stream input with :class:`LZMADecompressor`, you must " +"create a new decompressor for each stream." +msgstr "" + +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 " +"output of any previous calls to :meth:`decompress`." +msgstr "" + +msgid "" +"If *max_length* is nonnegative, returns at most *max_length* bytes of " +"decompressed data. If this limit is reached and further output can be " +"produced, the :attr:`~.needs_input` attribute will be set to ``False``. In " +"this case, the next call to :meth:`~.decompress` may provide *data* as " +"``b''`` to obtain more of the output." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Attempting to decompress data after the end of stream is reached raises " +"an :exc:`EOFError`. Any data found after the end of the stream is ignored " +"and saved in the :attr:`~.unused_data` attribute." +msgstr "" + +msgid "Added the *max_length* parameter." +msgstr "" + +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." +msgstr "" + +msgid "``True`` if the end-of-stream marker has been reached." +msgstr "" + +msgid "Data found after the end of the compressed stream." +msgstr "" + +msgid "Before the end of the stream is reached, this will be ``b\"\"``." +msgstr "" + +msgid "" +"``False`` if the :meth:`.decompress` method can provide more decompressed " +"data before requiring new uncompressed input." +msgstr "" + +msgid "" +"Compress *data* (a :class:`bytes` object), returning the compressed data as " +"a :class:`bytes` object." +msgstr "" + +msgid "" +"See :class:`LZMACompressor` above for a description of the *format*, " +"*check*, *preset* and *filters* arguments." +msgstr "" + +msgid "" +"Decompress *data* (a :class:`bytes` object), returning the uncompressed data " +"as a :class:`bytes` object." +msgstr "" + +msgid "" +"If *data* is the concatenation of multiple distinct compressed streams, " +"decompress all of these streams, and return the concatenation of the results." +msgstr "" + +msgid "" +"See :class:`LZMADecompressor` above for a description of the *format*, " +"*memlimit* and *filters* arguments." +msgstr "" + +msgid "Miscellaneous" +msgstr "" + +msgid "" +"Return ``True`` if the given integrity check is supported on this system." +msgstr "" + +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." +msgstr "" + +msgid "Specifying custom filter chains" +msgstr "" + +msgid "" +"A filter chain specifier is a sequence of dictionaries, where each " +"dictionary contains the ID and options for a single filter. Each dictionary " +"must contain the key ``\"id\"``, and may contain additional keys to specify " +"filter-dependent options. Valid filter IDs are as follows:" +msgstr "" + +msgid "Compression filters:" +msgstr "" + +msgid ":const:`FILTER_LZMA1` (for use with :const:`FORMAT_ALONE`)" +msgstr "" + +msgid "" +":const:`FILTER_LZMA2` (for use with :const:`FORMAT_XZ` " +"and :const:`FORMAT_RAW`)" +msgstr "" + +msgid "Delta filter:" +msgstr "" + +msgid ":const:`FILTER_DELTA`" +msgstr ":const:`FILTER_DELTA`" + +msgid "Branch-Call-Jump (BCJ) filters:" +msgstr "" + +msgid ":const:`FILTER_X86`" +msgstr ":const:`FILTER_X86`" + +msgid ":const:`FILTER_IA64`" +msgstr ":const:`FILTER_IA64`" + +msgid ":const:`FILTER_ARM`" +msgstr ":const:`FILTER_ARM`" + +msgid ":const:`FILTER_ARMTHUMB`" +msgstr ":const:`FILTER_ARMTHUMB`" + +msgid ":const:`FILTER_POWERPC`" +msgstr ":const:`FILTER_POWERPC`" + +msgid ":const:`FILTER_SPARC`" +msgstr ":const:`FILTER_SPARC`" + +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." +msgstr "" + +msgid "" +"Compression filters support the following options (specified as additional " +"entries in the dictionary representing the filter):" +msgstr "" + +msgid "" +"``preset``: A compression preset to use as a source of default values for " +"options that are not specified explicitly." +msgstr "" + +msgid "" +"``dict_size``: Dictionary size in bytes. This should be between 4 KiB and " +"1.5 GiB (inclusive)." +msgstr "" + +msgid "``lc``: Number of literal context bits." +msgstr "" + +msgid "" +"``lp``: Number of literal position bits. The sum ``lc + lp`` must be at most " +"4." +msgstr "" + +msgid "``pb``: Number of position bits; must be at most 4." +msgstr "" + +msgid "``mode``: :const:`MODE_FAST` or :const:`MODE_NORMAL`." +msgstr "" + +msgid "" +"``nice_len``: What should be considered a \"nice length\" for a match. This " +"should be 273 or less." +msgstr "" + +msgid "" +"``mf``: What match finder to use " +"-- :const:`MF_HC3`, :const:`MF_HC4`, :const:`MF_BT2`, :const:`MF_BT3`, " +"or :const:`MF_BT4`." +msgstr "" + +msgid "" +"``depth``: Maximum search depth used by match finder. 0 (default) means to " +"select automatically based on other filter options." +msgstr "" + +msgid "" +"The delta filter stores the differences between bytes, producing more " +"repetitive input for the compressor in certain circumstances. It supports " +"one option, ``dist``. This indicates the distance between bytes to be " +"subtracted. The default is 1, i.e. take the differences between adjacent " +"bytes." +msgstr "" + +msgid "" +"The BCJ filters are intended to be applied to machine code. They convert " +"relative branches, calls and jumps in the code to use absolute addressing, " +"with the aim of increasing the redundancy that can be exploited by the " +"compressor. These filters support one option, ``start_offset``. This " +"specifies the address that should be mapped to the beginning of the input " +"data. The default is 0." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "Reading in a compressed file::" +msgstr "" + +msgid "Creating a compressed file::" +msgstr "" + +msgid "Compressing data in memory::" +msgstr "" + +msgid "Incremental compression::" +msgstr "" + +msgid "Writing compressed data to an already-open file::" +msgstr "" + +msgid "Creating a compressed file using a custom filter chain::" +msgstr "" diff --git a/library/mailbox.po b/library/mailbox.po index 4bb6318958..24f576fe97 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -1,42 +1,42 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:09+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`mailbox` --- Manipulate mailboxes in various formats" msgstr "" msgid "**Source code:** :source:`Lib/mailbox.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/mailbox.py`" 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 "" msgid "Module :mod:`email`" @@ -53,17 +53,17 @@ msgstr "" 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 "" 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 " -"message." +"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 "" msgid "" @@ -76,10 +76,10 @@ 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." +"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 "" msgid "" @@ -88,8 +88,9 @@ msgid "" "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 "" msgid "" @@ -111,13 +112,13 @@ msgid "" msgstr "" 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 "" msgid "Support for binary input was added." @@ -129,14 +130,14 @@ 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 " -"concurrent modification by other processes." +"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 "" 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 "" msgid "" @@ -156,12 +157,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -174,24 +175,24 @@ msgid "" "*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." +"subclass unless a custom message factory was specified when " +"the :class:`Mailbox` instance was initialized." msgstr "" 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 "" 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." +"of the appropriate format-specific :class:`Message` subclass, or raise " +"a :exc:`KeyError` exception if no such message exists." msgstr "" msgid "" @@ -239,18 +240,18 @@ msgstr "" 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." +"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 "" 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." +"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 "" msgid "" @@ -259,8 +260,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 "" msgid "Unlike with dictionaries, keyword arguments are not supported." @@ -320,21 +321,23 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -449,13 +452,13 @@ msgstr "" 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 "" msgid "" @@ -464,13 +467,14 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -549,8 +553,8 @@ msgstr "" 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 "" msgid "" @@ -574,11 +578,11 @@ msgid "" msgstr "" 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 " -"duration of any operations that affect them, locking individual message " -"files." +"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 "" msgid "" @@ -600,8 +604,8 @@ msgid "`nmh - Message Handling System `_" msgstr "" 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 "" msgid "" @@ -719,8 +723,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -744,9 +749,9 @@ msgid ":class:`Message` objects" msgstr "" 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 "" msgid "" @@ -754,9 +759,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 "" @@ -789,16 +794,16 @@ msgid "" msgstr "" 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 "" msgid "Flag" @@ -811,7 +816,7 @@ msgid "Explanation" msgstr "Wytłumaczenie" msgid "D" -msgstr "" +msgstr "D" msgid "Draft" msgstr "" @@ -820,7 +825,7 @@ msgid "Under composition" msgstr "" msgid "F" -msgstr "" +msgstr "F" msgid "Flagged" msgstr "" @@ -856,7 +861,7 @@ msgid "Read" msgstr "" msgid "T" -msgstr "" +msgstr "T" msgid "Trashed" msgstr "" @@ -929,10 +934,10 @@ msgid "Set \"info\" to *info*, which should be a string." msgstr "" 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 "" msgid "Resulting state" @@ -966,8 +971,8 @@ msgid "D flag" msgstr "" 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 "" msgid ":class:`MHMessage` state" @@ -989,8 +994,8 @@ msgid "\"replied\" sequence" msgstr "" 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 "" msgid ":class:`BabylMessage` state" @@ -1036,7 +1041,7 @@ msgid "Conventional flags for mbox messages are as follows:" msgstr "" msgid "O" -msgstr "" +msgstr "O" msgid "Old" msgstr "" @@ -1073,8 +1078,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 "" msgid "" @@ -1103,9 +1108,9 @@ msgid "" msgstr "" 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 "" @@ -1113,22 +1118,22 @@ msgid ":class:`MaildirMessage` state" msgstr "" 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 "" msgid "R flag and O flag" msgstr "" 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 "" 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 "" msgid ":class:`MMDFMessage` state" @@ -1145,9 +1150,9 @@ msgstr "" 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:" +"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 "" msgid "Sequence" @@ -1181,26 +1186,26 @@ msgid "Remove *sequence* from the list of sequences that include this message." msgstr "" 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 "" msgid "no S flag" msgstr "" 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 "" msgid "no R flag" msgstr "" 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 "" msgid ":class:`BabylMessage`" @@ -1277,8 +1282,8 @@ msgstr "" 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 "" @@ -1288,30 +1293,30 @@ 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 " +"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 "" 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 "" msgid "\"forwarded\" label" msgstr "" 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 "" 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 "" msgid ":class:`MMDFMessage`" @@ -1340,26 +1345,26 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" 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 "" msgid ":class:`mboxMessage` state" diff --git a/library/marshal.po b/library/marshal.po index f8529cc40b..af83a17195 100644 --- a/library/marshal.po +++ b/library/marshal.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:09+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`marshal` --- Internal Python object serialization" msgstr "" @@ -39,13 +39,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 "" msgid "" @@ -62,8 +62,8 @@ msgid "" "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 "" @@ -82,10 +82,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -111,8 +111,9 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/math.po b/library/math.po index 3b204b9a56..bd96d00773 100644 --- a/library/math.po +++ b/library/math.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Michał Biliński , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:09+0000\n" -"Last-Translator: Michał Biliński , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`math` --- Mathematical functions" msgstr "" @@ -52,8 +52,8 @@ msgstr "" msgid "" "Return the ceiling of *x*, the smallest integer greater than or equal to " -"*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ `, which should return an :class:`~numbers.Integral` value." +"*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ " +"`, which should return an :class:`~numbers.Integral` value." msgstr "" msgid "" @@ -68,12 +68,13 @@ msgstr "" msgid "" "Also called the binomial coefficient because it is equivalent to the " -"coefficient of k-th term in polynomial expansion of ``(1 + x)ⁿ``." +"coefficient of k-th term in polynomial expansion of the expression ``(1 + x) " +"** n``." msgstr "" msgid "" -"Raises :exc:`TypeError` if either of the arguments are not integers. Raises :" -"exc:`ValueError` if either of the arguments are negative." +"Raises :exc:`TypeError` if either of the arguments are not integers. " +"Raises :exc:`ValueError` if either of the arguments are negative." msgstr "" msgid "" @@ -86,7 +87,7 @@ msgid "Return the absolute value of *x*." msgstr "" msgid "" -"Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not " +"Return *x* factorial as an integer. Raises :exc:`ValueError` if *x* is not " "integral or is negative." msgstr "" @@ -136,8 +137,8 @@ msgstr "" 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 "" msgid "" @@ -157,8 +158,8 @@ msgid "" "Return ``True`` if the values *a* and *b* are close to each other and " "``False`` otherwise." msgstr "" -"Zwraca 1``True`` jeżeli wartości *a* i *b* są zbliżone do siebie i " -"2``False`` w innym wypadku." +"Zwraca ``True`` jeżeli wartości *a* i *b* są zbliżone do siebie i ``False`` " +"w przeciwnym wypadku." msgid "" "Whether or not two values are considered close is determined according to " @@ -233,8 +234,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -249,7 +250,7 @@ msgid "If *x* is equal to *y*, return *y*." msgstr "" msgid "Examples:" -msgstr "" +msgstr "Przykłady:" msgid "``math.nextafter(x, math.inf)`` goes up: towards positive infinity." msgstr "" @@ -317,8 +318,8 @@ msgid "" "Return *x* with the fractional part removed, leaving the integer part. This " "rounds toward 0: ``trunc()`` is equivalent to :func:`floor` for positive " "*x*, and equivalent to :func:`ceil` for negative *x*. If *x* is not a float, " -"delegates to :meth:`x.__trunc__ `, which should return an :" -"class:`~numbers.Integral` value." +"delegates to :meth:`x.__trunc__ `, which should return " +"an :class:`~numbers.Integral` value." msgstr "" msgid "Return the value of the least significant bit of the float *x*:" @@ -335,8 +336,8 @@ msgstr "" msgid "" "If *x* is equal to zero, return the smallest positive *denormalized* " -"representable float (smaller than the minimum positive *normalized* float, :" -"data:`sys.float_info.min `)." +"representable float (smaller than the minimum positive *normalized* " +"float, :data:`sys.float_info.min `)." msgstr "" msgid "" @@ -355,8 +356,8 @@ msgid "ULP stands for \"Unit in the Last Place\"." msgstr "" msgid "" -"See also :func:`math.nextafter` and :data:`sys.float_info.epsilon `." +"See also :func:`math.nextafter` and :data:`sys.float_info.epsilon " +"`." msgstr "" msgid "" @@ -377,18 +378,12 @@ msgstr "" msgid "Power and logarithmic functions" msgstr "" -msgid "Return the cube root of *x*." -msgstr "" - msgid "" "Return *e* raised to the power *x*, where *e* = 2.718281... is the base of " "natural logarithms. This is usually more accurate than ``math.e ** x`` or " "``pow(math.e, x)``." msgstr "" -msgid "Return *2* raised to the power *x*." -msgstr "" - 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`` " @@ -426,8 +421,8 @@ msgid "" msgstr "" msgid "" -"Return ``x`` raised to the power ``y``. Exceptional cases follow the IEEE " -"754 standard as far as possible. In particular, ``pow(1.0, x)`` and " +"Return ``x`` raised to the power ``y``. Exceptional cases follow Annex 'F' " +"of the C99 standard as far as possible. In particular, ``pow(1.0, x)`` and " "``pow(x, 0.0)`` always return ``1.0``, even when ``x`` is a zero or a NaN. " "If both ``x`` and ``y`` are finite, ``x`` is negative, and ``y`` is not an " "integer then ``pow(x, y)`` is undefined, and raises :exc:`ValueError`." @@ -439,12 +434,6 @@ msgid "" "function for computing exact integer powers." msgstr "" -msgid "" -"The special cases ``pow(0.0, -inf)`` and ``pow(-0.0, -inf)`` were changed to " -"return ``inf`` instead of raising :exc:`ValueError`, for consistency with " -"IEEE 754." -msgstr "" - msgid "Return the square root of *x*." msgstr "" @@ -471,8 +460,8 @@ msgid "" "``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 " -"``pi/4``, but ``atan2(-1, -1)`` is ``-3*pi/4``." +"for the angle. For example, ``atan(1)`` and ``atan2(1, 1)`` are both ``pi/" +"4``, but ``atan2(-1, -1)`` is ``-3*pi/4``." msgstr "" msgid "Return the cosine of *x* radians." @@ -544,7 +533,7 @@ msgid "Return the inverse hyperbolic tangent of *x*." msgstr "" msgid "Return the hyperbolic cosine of *x*." -msgstr "Zwraca cosinus hiperboliczny z *x*." +msgstr "Zwraca cosinus hiperboliczny z *x*." msgid "Return the hyperbolic sine of *x*." msgstr "Zwraca sinus hiperboliczny z *x*." @@ -562,8 +551,9 @@ msgstr "" 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 "" msgid "" @@ -602,8 +592,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -615,21 +605,18 @@ msgid "" "NaNs instead of ``is`` or ``==``. Example::" msgstr "" -msgid "It is now always available." -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-" -"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, " -"most functions will return a NaN, but (again following C99 Annex F) there " -"are some exceptions to this rule, for example ``pow(float('nan'), 0.0)`` or " -"``hypot(float('nan'), float('inf'))``." +"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, most functions will return a NaN, but (again following C99 Annex F) " +"there are some exceptions to this rule, for example ``pow(float('nan'), " +"0.0)`` or ``hypot(float('nan'), float('inf'))``." msgstr "" msgid "" diff --git a/library/mimetypes.po b/library/mimetypes.po new file mode 100644 index 0000000000..1a131454bf --- /dev/null +++ b/library/mimetypes.po @@ -0,0 +1,277 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`mimetypes` --- Map filenames to MIME types" +msgstr "" + +msgid "**Source code:** :source:`Lib/mimetypes.py`" +msgstr "**Kod źródłowy:** :source:`Lib/mimetypes.py`" + +msgid "" +"The :mod:`mimetypes` module converts between a filename or URL and the MIME " +"type associated with the filename extension. Conversions are provided from " +"filename to MIME type and from MIME type to filename extension; encodings " +"are not supported for the latter conversion." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Guess the type of a file based on its filename, path or URL, given by *url*. " +"URL can be a string or a :term:`path-like object`." +msgstr "" + +msgid "" +"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 ``'type/subtype'``, usable for a MIME :mailheader:`content-type` header." +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 " +"driven. Encoding suffixes are case sensitive; type suffixes are first tried " +"case sensitively, then case insensitively." +msgstr "" + +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 " +"*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 "" + +msgid "Added support for url being a :term:`path-like object`." +msgstr "" + +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, " +"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`." +msgstr "" + +msgid "" +"The optional *strict* argument has the same meaning as with " +"the :func:`guess_type` function." +msgstr "" + +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 returned." +msgstr "" + +msgid "" +"Some additional functions and data items are available for controlling the " +"behavior of the module." +msgstr "" + +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." +msgstr "" + +msgid "" +"Specifying an empty list for *files* will prevent the system defaults from " +"being applied: only the well-known values will be present from a built-in " +"list." +msgstr "" + +msgid "" +"If *files* is ``None`` the internal data structure is completely rebuilt to " +"its initial default value. This is a stable operation and will produce the " +"same results when called multiple times." +msgstr "" + +msgid "Previously, Windows registry settings were ignored." +msgstr "" + +msgid "" +"Load the type map given in the file *filename*, if it exists. The type map " +"is returned as a dictionary mapping filename extensions, including the " +"leading dot (``'.'``), to strings of the form ``'type/subtype'``. If the " +"file *filename* does not exist or cannot be read, ``None`` is returned." +msgstr "" + +msgid "" +"Add a mapping from the MIME type *type* to the extension *ext*. When the " +"extension is already known, the new type will replace the old one. When the " +"type is already known the extension will be added to the list of known " +"extensions." +msgstr "" + +msgid "" +"When *strict* is ``True`` (the default), the mapping will be added to the " +"official MIME types, otherwise to the non-standard ones." +msgstr "" + +msgid "" +"Flag indicating whether or not the global data structures have been " +"initialized. This is set to ``True`` by :func:`init`." +msgstr "" + +msgid "" +"List of type map file names commonly installed. These files are typically " +"named :file:`mime.types` and are installed in different locations by " +"different packages." +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." +msgstr "" + +msgid "Dictionary mapping filename extensions to encoding types." +msgstr "" + +msgid "Dictionary mapping filename extensions to MIME types." +msgstr "" + +msgid "" +"Dictionary mapping filename extensions to non-standard, but commonly found " +"MIME types." +msgstr "" + +msgid "An example usage of the module::" +msgstr "" + +msgid "MimeTypes Objects" +msgstr "" + +msgid "" +"The :class:`MimeTypes` class may be useful for applications which may want " +"more than one MIME-type database; it provides an interface similar to the " +"one of the :mod:`mimetypes` module." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"The optional *filenames* parameter can be used to cause additional files to " +"be loaded \"on top\" of the default database." +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." +msgstr "" + +msgid "" +"Dictionary mapping filename extensions to encoding types. This is initially " +"a copy of the global :data:`encodings_map` defined in the module." +msgstr "" + +msgid "" +"Tuple containing two dictionaries, mapping filename extensions to MIME " +"types: 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`." +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`." +msgstr "" + +msgid "" +"Similar to the :func:`guess_extension` function, using the tables stored as " +"part of the object." +msgstr "" + +msgid "" +"Similar to the :func:`guess_type` function, using the tables stored as part " +"of the object." +msgstr "" + +msgid "" +"Similar to the :func:`guess_all_extensions` function, using the tables " +"stored as part of the object." +msgstr "" + +msgid "" +"Load MIME information from a file named *filename*. This " +"uses :meth:`readfp` to parse the file." +msgstr "" + +msgid "" +"If *strict* is ``True``, information will be added to list of standard " +"types, else to the list of non-standard types." +msgstr "" + +msgid "" +"Load MIME type information from an open file *fp*. The file must have the " +"format of the standard :file:`mime.types` files." +msgstr "" + +msgid "" +"If *strict* is ``True``, information will be added to the list of standard " +"types, else to the list of non-standard types." +msgstr "" + +msgid "Load MIME type information from the Windows registry." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" diff --git a/library/multiprocessing.po b/library/multiprocessing.po new file mode 100644 index 0000000000..124bba515a --- /dev/null +++ b/library/multiprocessing.po @@ -0,0 +1,2726 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`multiprocessing` --- Process-based parallelism" +msgstr "" + +msgid "**Source code:** :source:`Lib/multiprocessing/`" +msgstr "**Kod źródłowy:** :source:`Lib/multiprocessing/`" + +msgid "Introduction" +msgstr "Wprowadzenie" + +msgid "" +":mod:`multiprocessing` is a package that supports spawning processes using " +"an API similar to the :mod:`threading` module. The :mod:`multiprocessing` " +"package offers both local and remote concurrency, effectively side-stepping " +"the :term:`Global Interpreter Lock ` by using " +"subprocesses instead of threads. Due to this, the :mod:`multiprocessing` " +"module allows the programmer to fully leverage multiple processors on a " +"given machine. It runs on both Unix and Windows." +msgstr "" + +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, 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`, ::" +msgstr "" + +msgid "will print to standard output ::" +msgstr "" + +msgid "" +":class:`concurrent.futures.ProcessPoolExecutor` offers a higher level " +"interface to push tasks to a background process without blocking execution " +"of the calling process. Compared to using " +"the :class:`~multiprocessing.pool.Pool` interface directly, " +"the :mod:`concurrent.futures` API more readily allows the submission of work " +"to the underlying process pool to be separated from waiting for the results." +msgstr "" + +msgid "The :class:`Process` class" +msgstr "" + +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 ::" +msgstr "" + +msgid "" +"To show the individual process IDs involved, here is an expanded example::" +msgstr "" + +msgid "" +"For an explanation of why the ``if __name__ == '__main__'`` part is " +"necessary, see :ref:`multiprocessing-programming`." +msgstr "" + +msgid "Contexts and start methods" +msgstr "" + +msgid "" +"Depending on the platform, :mod:`multiprocessing` supports three ways to " +"start a process. These *start methods* are" +msgstr "" + +msgid "*spawn*" +msgstr "" + +msgid "" +"The parent process starts a fresh Python interpreter process. The child " +"process will only inherit those resources necessary to run the process " +"object's :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*." +msgstr "" + +msgid "Available on Unix and Windows. The default on Windows and macOS." +msgstr "" + +msgid "*fork*" +msgstr "" + +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 " +"process. All resources of the parent are inherited by the child process. " +"Note that safely forking a multithreaded process is problematic." +msgstr "" + +msgid "Available on Unix only. The default on Unix." +msgstr "" + +msgid "*forkserver*" +msgstr "" + +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." +msgstr "" + +msgid "" +"Available on Unix platforms which support passing file descriptors over Unix " +"pipes." +msgstr "" + +msgid "" +"On macOS, the *spawn* start method is now the default. The *fork* start " +"method should be considered unsafe as it can lead to crashes of the " +"subprocess. See :issue:`33725`." +msgstr "" + +msgid "" +"*spawn* added on all Unix platforms, and *forkserver* added for some Unix " +"platforms. Child processes no longer inherit all of the parents inheritable " +"handles on Windows." +msgstr "" + +msgid "" +"On Unix using the *spawn* or *forkserver* start methods will also start a " +"*resource tracker* process which tracks the unlinked named system resources " +"(such as named semaphores " +"or :class:`~multiprocessing.shared_memory.SharedMemory` objects) created by " +"processes of the program. When all processes have exited the resource " +"tracker unlinks any remaining tracked object. Usually there should be none, " +"but if a process was killed by a signal there may be some \"leaked\" " +"resources. (Neither leaked semaphores nor shared memory segments will be " +"automatically unlinked until the next reboot. This is problematic for both " +"objects because the system allows only a limited number of named semaphores, " +"and shared memory segments occupy some space in the main memory.)" +msgstr "" + +msgid "" +"To select a start method you use the :func:`set_start_method` in the ``if " +"__name__ == '__main__'`` clause of the main module. For example::" +msgstr "" + +msgid "" +":func:`set_start_method` should not be used more than once in the program." +msgstr "" + +msgid "" +"Alternatively, you can use :func:`get_context` to obtain a context object. " +"Context objects have the same API as the multiprocessing module, and allow " +"one to use multiple start methods in the same program. ::" +msgstr "" + +msgid "" +"Note that objects related to one context may not be compatible with " +"processes for a different context. In particular, locks created using the " +"*fork* context cannot be passed to processes started using the *spawn* or " +"*forkserver* start methods." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Exchanging objects between processes" +msgstr "" + +msgid "" +":mod:`multiprocessing` supports two types of communication channel between " +"processes:" +msgstr "" + +msgid "**Queues**" +msgstr "" + +msgid "" +"The :class:`Queue` class is a near clone of :class:`queue.Queue`. For " +"example::" +msgstr "" + +msgid "Queues are thread and process safe." +msgstr "" + +msgid "**Pipes**" +msgstr "" + +msgid "" +"The :func:`Pipe` function returns a pair of connection objects connected by " +"a pipe which by default is duplex (two-way). For example::" +msgstr "" + +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." +msgstr "" + +msgid "Synchronization between processes" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Without using the lock output from the different processes is liable to get " +"all mixed up." +msgstr "" + +msgid "Sharing state between processes" +msgstr "" + +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." +msgstr "" + +msgid "" +"However, if you really do need to use some shared data " +"then :mod:`multiprocessing` provides a couple of ways of doing so." +msgstr "" + +msgid "**Shared memory**" +msgstr "" + +msgid "" +"Data can be stored in a shared memory map using :class:`Value` " +"or :class:`Array`. For example, the following code ::" +msgstr "" + +msgid "will print ::" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "**Server process**" +msgstr "" + +msgid "" +"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 "" + +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, ::" +msgstr "" + +msgid "" +"Server process managers are more flexible than using shared memory objects " +"because they can be made to support arbitrary object types. Also, a single " +"manager can be shared by processes on different computers over a network. " +"They are, however, slower than using shared memory." +msgstr "" + +msgid "Using a pool of workers" +msgstr "" + +msgid "" +"The :class:`~multiprocessing.pool.Pool` class represents a pool of worker " +"processes. It has methods which allows tasks to be offloaded to the worker " +"processes in a few different ways." +msgstr "" + +msgid "For example::" +msgstr "Dla przykładu::" + +msgid "" +"Note that the methods of a pool should only ever be used by the process " +"which created it." +msgstr "" + +msgid "" +"Functionality within this package requires that the ``__main__`` module be " +"importable by the children. This is covered in :ref:`multiprocessing-" +"programming` however it is worth pointing out here. This means that some " +"examples, such as the :class:`multiprocessing.pool.Pool` examples will not " +"work in the interactive interpreter. For example::" +msgstr "" + +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 parent process " +"somehow.)" +msgstr "" + +msgid "Reference" +msgstr "Dokumentacja" + +msgid "" +"The :mod:`multiprocessing` package mostly replicates the API of " +"the :mod:`threading` module." +msgstr "" + +msgid ":class:`Process` and exceptions" +msgstr "" + +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`." +msgstr "" + +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 "" + +msgid "By default, no arguments are passed to *target*." +msgstr "" + +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." +msgstr "" + +msgid "Added the *daemon* argument." +msgstr "" + +msgid "Method representing the process's activity." +msgstr "" + +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." +msgstr "" + +msgid "Start the process's activity." +msgstr "" + +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 "" + +msgid "" +"If the optional argument *timeout* is ``None`` (the default), the method " +"blocks until the process whose :meth:`join` method is called terminates. If " +"*timeout* is a positive number, it blocks at most *timeout* seconds. Note " +"that the method returns ``None`` if its process terminates or if the method " +"times out. Check the process's :attr:`exitcode` to determine if it " +"terminated." +msgstr "" + +msgid "A process can be joined many times." +msgstr "" + +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 "" + +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 "" + +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." +msgstr "" + +msgid "Return whether the process is alive." +msgstr "" + +msgid "" +"Roughly, a process object is alive from the moment the :meth:`start` method " +"returns until the child process terminates." +msgstr "" + +msgid "" +"The process's daemon flag, a Boolean value. This must be set " +"before :meth:`start` is called." +msgstr "" + +msgid "The initial value is inherited from the creating process." +msgstr "" + +msgid "" +"When a process exits, it attempts to terminate all of its daemonic child " +"processes." +msgstr "" + +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 " +"terminated when its parent process exits. Additionally, these are **not** " +"Unix daemons or services, they are normal processes that will be terminated " +"(and not joined) if non-daemonic processes have exited." +msgstr "" + +msgid "" +"In addition to the :class:`threading.Thread` API, :class:`Process` objects " +"also support the following attributes and methods:" +msgstr "" + +msgid "" +"Return the process ID. Before the process is spawned, this will be ``None``." +msgstr "" + +msgid "" +"The child's exit code. This will be ``None`` if the process has not yet " +"terminated." +msgstr "" + +msgid "" +"If the child's :meth:`run` method returned normally, the exit code will be " +"0. If it terminated via :func:`sys.exit` with an integer argument *N*, the " +"exit code will be *N*." +msgstr "" + +msgid "" +"If the child terminated due to an exception not caught within :meth:`run`, " +"the exit code will be 1. If it was terminated by signal *N*, the exit code " +"will be the negative value *-N*." +msgstr "" + +msgid "The process's authentication key (a byte string)." +msgstr "" + +msgid "" +"When :mod:`multiprocessing` is initialized the main process is assigned a " +"random string using :func:`os.urandom`." +msgstr "" + +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 "" + +msgid "See :ref:`multiprocessing-auth-keys`." +msgstr "" + +msgid "" +"A numeric handle of a system object which will become \"ready\" when the " +"process ends." +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +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 "" + +msgid "" +"Note that descendant processes of the process will *not* be terminated -- " +"they will simply become orphaned." +msgstr "" + +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 " +"semaphore etc. then terminating it is liable to cause other processes to " +"deadlock." +msgstr "" + +msgid "Same as :meth:`terminate()` but using the ``SIGKILL`` signal on Unix." +msgstr "" + +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`." +msgstr "" + +msgid "" +"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 "" + +msgid "Example usage of some of the methods of :class:`Process`:" +msgstr "" + +msgid "The base class of all :mod:`multiprocessing` exceptions." +msgstr "" + +msgid "" +"Exception raised by :meth:`Connection.recv_bytes_into()` when the supplied " +"buffer object is too small for the message read." +msgstr "" + +msgid "" +"If ``e`` is an instance of :exc:`BufferTooShort` then ``e.args[0]`` will " +"give the message as a byte string." +msgstr "" + +msgid "Raised when there is an authentication error." +msgstr "" + +msgid "Raised by methods with a timeout when the timeout expires." +msgstr "" + +msgid "Pipes and Queues" +msgstr "" + +msgid "" +"When using multiple processes, one generally uses message passing for " +"communication between processes and avoids having to use any synchronization " +"primitives like locks." +msgstr "" + +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 "" + +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." +msgstr "" + +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 overflow, raising an exception." +msgstr "" + +msgid "" +"Note that one can also create a shared queue by using a manager object -- " +"see :ref:`multiprocessing-managers`." +msgstr "" + +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`." +msgstr "" + +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 `." +msgstr "" + +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 "" + +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 " +"the same process will always be in the expected order with respect to each " +"other." +msgstr "" + +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 " +"likely to become corrupted. This may cause any other process to get an " +"exception when it tries to use the queue later on." +msgstr "" + +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." +msgstr "" + +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 " +"been consumed. Similarly, if the child process is non-daemonic then the " +"parent process may hang on exit when it tries to join all its non-daemonic " +"children." +msgstr "" + +msgid "" +"Note that a queue created using a manager does not have this issue. " +"See :ref:`multiprocessing-programming`." +msgstr "" + +msgid "" +"For an example of the usage of queues for interprocess communication " +"see :ref:`multiprocessing-examples`." +msgstr "" + +msgid "" +"Returns a pair ``(conn1, conn2)`` " +"of :class:`~multiprocessing.connection.Connection` objects representing the " +"ends of a pipe." +msgstr "" + +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 " +"messages." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "" +":class:`Queue` implements all the methods of :class:`queue.Queue` except " +"for :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join`." +msgstr "" + +msgid "" +"Return the approximate size of the queue. Because of multithreading/" +"multiprocessing semantics, this number is not reliable." +msgstr "" + +msgid "" +"Note that this may raise :exc:`NotImplementedError` on Unix platforms like " +"macOS where ``sem_getvalue()`` is not implemented." +msgstr "" + +msgid "" +"Return ``True`` if the queue is empty, ``False`` otherwise. Because of " +"multithreading/multiprocessing semantics, this is not reliable." +msgstr "" + +msgid "" +"Return ``True`` if the queue is full, ``False`` otherwise. Because of " +"multithreading/multiprocessing semantics, this is not reliable." +msgstr "" + +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 " +"the :exc:`queue.Full` exception (*timeout* is ignored in that case)." +msgstr "" + +msgid "" +"If the queue is closed, :exc:`ValueError` is raised instead " +"of :exc:`AssertionError`." +msgstr "" + +msgid "Equivalent to ``put(obj, False)``." +msgstr "" + +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)." +msgstr "" + +msgid "" +"If the queue is closed, :exc:`ValueError` is raised instead " +"of :exc:`OSError`." +msgstr "" + +msgid "Equivalent to ``get(False)``." +msgstr "" + +msgid "" +":class:`multiprocessing.Queue` has a few additional methods not found " +"in :class:`queue.Queue`. These methods are usually unnecessary for most " +"code:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"A better name for this method might be ``allow_exit_without_flush()``. It " +"is likely to cause enqueued data to be lost, and you almost certainly will " +"not need to use it. It is really only there if you need the current process " +"to exit immediately without waiting to flush enqueued data to the underlying " +"pipe, and you don't care about lost data." +msgstr "" + +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 " +"information. The same holds true for any of the specialized queue types " +"listed below." +msgstr "" + +msgid "" +"It is a simplified :class:`Queue` type, very close to a locked :class:`Pipe`." +msgstr "" + +msgid "Close the queue: release internal resources." +msgstr "" + +msgid "" +"A queue must not be used anymore after it is closed. For " +"example, :meth:`get`, :meth:`put` and :meth:`empty` methods must no longer " +"be called." +msgstr "" + +msgid "Return ``True`` if the queue is empty, ``False`` otherwise." +msgstr "" + +msgid "Remove and return an item from the queue." +msgstr "" + +msgid "Put *item* into the queue." +msgstr "" + +msgid "" +":class:`JoinableQueue`, a :class:`Queue` subclass, is a queue which " +"additionally has :meth:`task_done` and :meth:`join` methods." +msgstr "" + +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 " +"complete." +msgstr "" + +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 "" + +msgid "" +"Raises a :exc:`ValueError` if called more times than there were items placed " +"in the queue." +msgstr "" + +msgid "Block until all items in the queue have been gotten and processed." +msgstr "" + +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 " +"indicate that the item was retrieved and all work on it is complete. When " +"the count of unfinished tasks drops to zero, :meth:`~queue.Queue.join` " +"unblocks." +msgstr "" + +msgid "Miscellaneous" +msgstr "" + +msgid "Return list of all live children of the current process." +msgstr "" + +msgid "" +"Calling this has the side effect of \"joining\" any processes which have " +"already finished." +msgstr "" + +msgid "Return the number of CPUs in the system." +msgstr "" + +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))``" +msgstr "" + +msgid "" +"When the number of CPUs cannot be determined a :exc:`NotImplementedError` is " +"raised." +msgstr "" + +msgid ":func:`os.cpu_count`" +msgstr "" + +msgid "" +"Return the :class:`Process` object corresponding to the current process." +msgstr "" + +msgid "An analogue of :func:`threading.current_thread`." +msgstr "" + +msgid "" +"Return the :class:`Process` object corresponding to the parent process of " +"the :func:`current_process`. For the main process, ``parent_process`` will " +"be ``None``." +msgstr "" + +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 "" + +msgid "" +"One needs to call this function straight after the ``if __name__ == " +"'__main__'`` line of the main module. For example::" +msgstr "" + +msgid "" +"If the ``freeze_support()`` line is omitted then trying to run the frozen " +"executable will raise :exc:`RuntimeError`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns a list of the supported start methods, the first of which is the " +"default. The possible start methods are ``'fork'``, ``'spawn'`` and " +"``'forkserver'``. On Windows only ``'spawn'`` is available. On Unix " +"``'fork'`` and ``'spawn'`` are always supported, with ``'fork'`` being the " +"default." +msgstr "" + +msgid "" +"Return a context object which has the same attributes as " +"the :mod:`multiprocessing` module." +msgstr "" + +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." +msgstr "" + +msgid "Return the name of start method used for starting processes." +msgstr "" + +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." +msgstr "" + +msgid "" +"The return value can be ``'fork'``, ``'spawn'``, ``'forkserver'`` or " +"``None``. ``'fork'`` is the default on Unix, while ``'spawn'`` is the " +"default on Windows and macOS." +msgstr "" + +msgid "" +"Set 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 "" + +msgid "before they can create child processes." +msgstr "" + +msgid "Now supported on Unix when the ``'spawn'`` start method is used." +msgstr "" + +msgid "" +"Set the method which should be used to start child processes. *method* can " +"be ``'fork'``, ``'spawn'`` or ``'forkserver'``." +msgstr "" + +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 "" + +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`." +msgstr "" + +msgid "Connection Objects" +msgstr "" + +msgid "" +"Connection objects allow the sending and receiving of picklable objects or " +"strings. They can be thought of as message oriented connected sockets." +msgstr "" + +msgid "" +"Connection objects are usually created using :func:`Pipe " +"` -- see also :ref:`multiprocessing-listeners-clients`." +msgstr "" + +msgid "" +"Send an object to the other end of the connection which should be read " +"using :meth:`recv`." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "Return the file descriptor or handle used by the connection." +msgstr "" + +msgid "Close the connection." +msgstr "" + +msgid "This is called automatically when the connection is garbage collected." +msgstr "" + +msgid "Return whether there is any data available to be read." +msgstr "" + +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 " +"*timeout* is ``None`` then an infinite timeout is used." +msgstr "" + +msgid "" +"Note that multiple connection objects may be polled at once by " +"using :func:`multiprocessing.connection.wait`." +msgstr "" + +msgid "Send byte data from a :term:`bytes-like object` as a complete message." +msgstr "" + +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" +msgstr "" + +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 closed." +msgstr "" + +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." +msgstr "" + +msgid "" +"This function used to raise :exc:`IOError`, which is now an alias " +"of :exc:`OSError`." +msgstr "" + +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 " +"until there is something to receive. Raises :exc:`EOFError` if there is " +"nothing left to receive and the other end was closed." +msgstr "" + +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)." +msgstr "" + +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 "" + +msgid "" +"Connection objects themselves can now be transferred between processes " +"using :meth:`Connection.send` and :meth:`Connection.recv`." +msgstr "" + +msgid "" +"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 "" + +msgid "For example:" +msgstr "Na przykład::" + +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 "" + +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`." +msgstr "" + +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 "" + +msgid "Synchronization primitives" +msgstr "" + +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." +msgstr "" + +msgid "" +"Note that one can also create synchronization primitives by using a manager " +"object -- see :ref:`multiprocessing-managers`." +msgstr "" + +msgid "A barrier object: a clone of :class:`threading.Barrier`." +msgstr "" + +msgid "" +"A bounded semaphore object: a close analog " +"of :class:`threading.BoundedSemaphore`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"On macOS, this is indistinguishable from :class:`Semaphore` because " +"``sem_getvalue()`` is not implemented on that platform." +msgstr "" + +msgid "A condition variable: an alias for :class:`threading.Condition`." +msgstr "" + +msgid "" +"If *lock* is specified then it should be a :class:`Lock` or :class:`RLock` " +"object from :mod:`multiprocessing`." +msgstr "" + +msgid "The :meth:`~threading.Condition.wait_for` method was added." +msgstr "" + +msgid "A clone of :class:`threading.Event`." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Note that :class:`Lock` is actually a factory function which returns an " +"instance of ``multiprocessing.synchronize.Lock`` initialized with a default " +"context." +msgstr "" + +msgid "" +":class:`Lock` supports the :term:`context manager` protocol and thus may be " +"used in :keyword:`with` statements." +msgstr "" + +msgid "Acquire a lock, blocking or non-blocking." +msgstr "" + +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 " +"that in :meth:`threading.Lock.acquire`." +msgstr "" + +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``." +msgstr "" + +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 " +"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 " +"implemented behavior in :meth:`threading.Lock.acquire`. The *timeout* " +"argument has no practical implications if the *block* argument is set to " +"``False`` and is thus ignored. Returns ``True`` if the lock has been " +"acquired or ``False`` if the timeout period has elapsed." +msgstr "" + +msgid "" +"Release a lock. This can be called from any process or thread, not only the " +"process or thread which originally acquired the lock." +msgstr "" + +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 "" + +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. " +"Once a process or thread has acquired a recursive lock, the same process or " +"thread may acquire it again without blocking; that process or thread must " +"release it once for each time it has been acquired." +msgstr "" + +msgid "" +"Note that :class:`RLock` is actually a factory function which returns an " +"instance of ``multiprocessing.synchronize.RLock`` initialized with a default " +"context." +msgstr "" + +msgid "" +":class:`RLock` supports the :term:`context manager` protocol and thus may be " +"used in :keyword:`with` statements." +msgstr "" + +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 " +"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 " +"itself." +msgstr "" + +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 " +"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 "" + +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`." +msgstr "" + +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 " +"after the decrement the recursion level is still nonzero, the lock remains " +"locked and owned by the calling process or thread." +msgstr "" + +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 " +"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 "" + +msgid "A semaphore object: a close analog of :class:`threading.Semaphore`." +msgstr "" + +msgid "" +"On macOS, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with a " +"timeout will emulate that function's behavior using a sleeping loop." +msgstr "" + +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." +msgstr "" + +msgid "" +"This differs from the behaviour of :mod:`threading` where SIGINT will be " +"ignored while the equivalent blocking calls are in progress." +msgstr "" + +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 import it will result in an :exc:`ImportError`. See :issue:`3770` for " +"additional information." +msgstr "" + +msgid "Shared :mod:`ctypes` Objects" +msgstr "" + +msgid "" +"It is possible to create shared objects using shared memory which can be " +"inherited by child processes." +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"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 "" + +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 "" + +msgid "" +"Assuming the associated lock is recursive (which it is by default) you can " +"instead do ::" +msgstr "" + +msgid "Note that *lock* is a keyword-only argument." +msgstr "" + +msgid "" +"Return a ctypes array allocated from shared memory. By default the return " +"value is actually a synchronized wrapper for the array." +msgstr "" + +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 " +"used by the :mod:`array` module. If *size_or_initializer* is an integer, " +"then it determines the length of the array, and the array will be initially " +"zeroed. Otherwise, *size_or_initializer* is a sequence which is used to " +"initialize the array and whose length determines the length of the array." +msgstr "" + +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\"." +msgstr "" + +msgid "Note that *lock* is a keyword only argument." +msgstr "" + +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." +msgstr "" + +msgid "The :mod:`multiprocessing.sharedctypes` module" +msgstr "" + +msgid "" +"The :mod:`multiprocessing.sharedctypes` module provides functions for " +"allocating :mod:`ctypes` objects from shared memory which can be inherited " +"by child processes." +msgstr "" + +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." +msgstr "" + +msgid "Return a ctypes array allocated from shared memory." +msgstr "" + +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 " +"used by the :mod:`array` module. If *size_or_initializer* is an integer " +"then it determines the length of the array, and the array will be initially " +"zeroed. Otherwise *size_or_initializer* is a sequence which is used to " +"initialize the array and whose length determines the length of the array." +msgstr "" + +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." +msgstr "" + +msgid "Return a ctypes object allocated from shared memory." +msgstr "" + +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." +msgstr "" + +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 "" + +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." +msgstr "" + +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\"." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a ctypes object allocated from shared memory which is a copy of the " +"ctypes object *obj*." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Note that accessing the ctypes object through the wrapper can be a lot " +"slower than accessing the raw ctypes object." +msgstr "" + +msgid "Synchronized objects support the :term:`context manager` protocol." +msgstr "" + +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 "" + +msgid "ctypes" +msgstr "" + +msgid "sharedctypes using type" +msgstr "" + +msgid "sharedctypes using typecode" +msgstr "" + +msgid "c_double(2.4)" +msgstr "" + +msgid "RawValue(c_double, 2.4)" +msgstr "" + +msgid "RawValue('d', 2.4)" +msgstr "" + +msgid "MyStruct(4, 6)" +msgstr "" + +msgid "RawValue(MyStruct, 4, 6)" +msgstr "" + +msgid "(c_short * 7)()" +msgstr "" + +msgid "RawArray(c_short, 7)" +msgstr "" + +msgid "RawArray('h', 7)" +msgstr "" + +msgid "(c_int * 3)(9, 2, 8)" +msgstr "" + +msgid "RawArray(c_int, (9, 2, 8))" +msgstr "" + +msgid "RawArray('i', (9, 2, 8))" +msgstr "" + +msgid "" +"Below is an example where a number of ctypes objects are modified by a child " +"process::" +msgstr "" + +msgid "The results printed are ::" +msgstr "" + +msgid "Managers" +msgstr "" + +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 " +"proxies." +msgstr "" + +msgid "" +"Returns a started :class:`~multiprocessing.managers.SyncManager` object " +"which can be used for sharing objects between processes. The returned " +"manager object corresponds to a spawned child process and has methods which " +"will create shared objects and return corresponding proxies." +msgstr "" + +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:" +msgstr "" + +msgid "Create a BaseManager object." +msgstr "" + +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." +msgstr "" + +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 "" + +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`` " +"then ``current_process().authkey`` is used. Otherwise *authkey* is used and " +"it must be a byte string." +msgstr "" + +msgid "" +"Start a subprocess to start the manager. If *initializer* is not ``None`` " +"then the subprocess will call ``initializer(*initargs)`` when it starts." +msgstr "" + +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::" +msgstr "" + +msgid ":class:`Server` additionally has an :attr:`address` attribute." +msgstr "" + +msgid "Connect a local manager object to a remote manager process::" +msgstr "" + +msgid "" +"Stop the process used by the manager. This is only available " +"if :meth:`start` has been used to start the server process." +msgstr "" + +msgid "This can be called multiple times." +msgstr "" + +msgid "" +"A classmethod which can be used for registering a type or callable with the " +"manager class." +msgstr "" + +msgid "" +"*typeid* is a \"type identifier\" which is used to identify a particular " +"type of shared object. This must be a string." +msgstr "" + +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``." +msgstr "" + +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 "" + +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 \"public method\" means any attribute " +"which has a :meth:`~object.__call__` method and whose name does not begin " +"with ``'_'``.)" +msgstr "" + +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." +msgstr "" + +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``." +msgstr "" + +msgid ":class:`BaseManager` instances also have one read-only property:" +msgstr "" + +msgid "The address used by the manager." +msgstr "" + +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 " +"object. :meth:`~contextmanager.__exit__` calls :meth:`shutdown`." +msgstr "" + +msgid "" +"In previous versions :meth:`~contextmanager.__enter__` did not start the " +"manager's server process if it was not already started." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Create a shared :class:`threading.Barrier` object and return a proxy for it." +msgstr "" + +msgid "" +"Create a shared :class:`threading.BoundedSemaphore` object and return a " +"proxy for it." +msgstr "" + +msgid "" +"Create a shared :class:`threading.Condition` object and return a proxy for " +"it." +msgstr "" + +msgid "" +"If *lock* is supplied then it should be a proxy for " +"a :class:`threading.Lock` or :class:`threading.RLock` object." +msgstr "" + +msgid "" +"Create a shared :class:`threading.Event` object and return a proxy for it." +msgstr "" + +msgid "" +"Create a shared :class:`threading.Lock` object and return a proxy for it." +msgstr "" + +msgid "Create a shared :class:`Namespace` object and return a proxy for it." +msgstr "" + +msgid "Create a shared :class:`queue.Queue` object and return a proxy for it." +msgstr "" + +msgid "" +"Create a shared :class:`threading.RLock` object and return a proxy for it." +msgstr "" + +msgid "" +"Create a shared :class:`threading.Semaphore` object and return a proxy for " +"it." +msgstr "" + +msgid "Create an array and return a proxy for it." +msgstr "" + +msgid "" +"Create an object with a writable ``value`` attribute and return a proxy for " +"it." +msgstr "" + +msgid "Create a shared :class:`dict` object and return a proxy for it." +msgstr "" + +msgid "Create a shared :class:`list` object and return a proxy for it." +msgstr "" + +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`." +msgstr "" + +msgid "A type that can register with :class:`SyncManager`." +msgstr "" + +msgid "" +"A namespace object has no public methods, but does have writable attributes. " +"Its representation shows the values of its attributes." +msgstr "" + +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 "" + +msgid "Customized managers" +msgstr "" + +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::" +msgstr "" + +msgid "Using a remote manager" +msgstr "" + +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 "" + +msgid "" +"Running the following commands creates a server for a single shared queue " +"which remote clients can access::" +msgstr "" + +msgid "One client can access the server as follows::" +msgstr "" + +msgid "Another client can also use it::" +msgstr "" + +msgid "" +"Local processes can also access that queue, using the code from above on the " +"client to access it remotely::" +msgstr "" + +msgid "Proxy Objects" +msgstr "" + +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 "" + +msgid "" +"A proxy object has methods which invoke corresponding methods of its " +"referent (although not every method of the referent will necessarily be " +"available through the proxy). In this way, a proxy can be used just like " +"its referent can:" +msgstr "" + +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 "" + +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 lists, dicts, and other :ref:`multiprocessing-proxy_objects`:" +msgstr "" + +msgid "Similarly, dict and list proxies may be nested inside one another::" +msgstr "" + +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 " +"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 "" + +msgid "" +"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 "" + +msgid "" +"The proxy types in :mod:`multiprocessing` do nothing to support comparisons " +"by value. So, for instance, we have:" +msgstr "" + +msgid "" +"One should just use a copy of the referent instead when making comparisons." +msgstr "" + +msgid "Proxy objects are instances of subclasses of :class:`BaseProxy`." +msgstr "" + +msgid "Call and return the result of a method of the proxy's referent." +msgstr "" + +msgid "" +"If ``proxy`` is a proxy whose referent is ``obj`` then the expression ::" +msgstr "" + +msgid "will evaluate the expression ::" +msgstr "" + +msgid "in the manager's process." +msgstr "" + +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 "" + +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`." +msgstr "" + +msgid "" +"Note in particular that an exception will be raised if *methodname* has not " +"been *exposed*." +msgstr "" + +msgid "An example of the usage of :meth:`_callmethod`:" +msgstr "" + +msgid "Return a copy of the referent." +msgstr "" + +msgid "If the referent is unpicklable then this will raise an exception." +msgstr "" + +msgid "Return a representation of the proxy object." +msgstr "" + +msgid "Return the representation of the referent." +msgstr "" + +msgid "Cleanup" +msgstr "" + +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 "" + +msgid "" +"A shared object gets deleted from the manager process when there are no " +"longer any proxies referring to it." +msgstr "" + +msgid "Process Pools" +msgstr "" + +msgid "" +"One can create a pool of processes which will carry out tasks submitted to " +"it with the :class:`Pool` class." +msgstr "" + +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 "" + +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 "" + +msgid "" +"If *initializer* is not ``None`` then each worker process will call " +"``initializer(*initargs)`` when it starts." +msgstr "" + +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 " +"unused resources to be freed. The default *maxtasksperchild* is ``None``, " +"which means worker processes will live as long as the pool." +msgstr "" + +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." +msgstr "" + +msgid "" +"Note that the methods of the pool object should only be called by the " +"process which created the pool." +msgstr "" + +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 "" + +msgid "" +"Note that it is **not correct** to rely on the garbage collector 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 "" + +msgid "*maxtasksperchild*" +msgstr "" + +msgid "*context*" +msgstr "" + +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 " +"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 " +"ability to the end user." +msgstr "" + +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 " +"suited for performing work in parallel. Additionally, *func* is only " +"executed in one of the workers of the pool." +msgstr "" + +msgid "" +"A variant of the :meth:`apply` method which returns " +"a :class:`~multiprocessing.pool.AsyncResult` object." +msgstr "" + +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 " +"applied instead." +msgstr "" + +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 "" + +msgid "" +"Callbacks should complete immediately since otherwise the thread which " +"handles the results will get blocked." +msgstr "" + +msgid "" +"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 "" + +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 "" + +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 "" + +msgid "" +"A variant of the :meth:`.map` method which returns " +"a :class:`~multiprocessing.pool.AsyncResult` object." +msgstr "" + +msgid "A lazier version of :meth:`.map`." +msgstr "" + +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 "" + +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: " +"``next(timeout)`` will raise :exc:`multiprocessing.TimeoutError` if the " +"result cannot be returned within *timeout* seconds." +msgstr "" + +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 "" + +msgid "" +"Like :meth:`~multiprocessing.pool.Pool.map` except that the elements of the " +"*iterable* are expected to be iterables that are unpacked as arguments." +msgstr "" + +msgid "" +"Hence an *iterable* of ``[(1,2), (3, 4)]`` results in ``[func(1,2), " +"func(3,4)]``." +msgstr "" + +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 "" + +msgid "" +"Prevents any more tasks from being submitted to the pool. Once all the " +"tasks have been completed the worker processes will exit." +msgstr "" + +msgid "" +"Stops the worker processes immediately without completing outstanding work. " +"When the pool object is garbage collected :meth:`terminate` will be called " +"immediately." +msgstr "" + +msgid "" +"Wait for the worker processes to exit. One must call :meth:`close` " +"or :meth:`terminate` before using :meth:`join`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The class of the result returned by :meth:`Pool.apply_async` " +"and :meth:`Pool.map_async`." +msgstr "" + +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`." +msgstr "" + +msgid "Wait until the result is available or until *timeout* seconds pass." +msgstr "" + +msgid "Return whether the call has completed." +msgstr "" + +msgid "" +"Return whether the call completed without raising an exception. Will " +"raise :exc:`ValueError` if the result is not ready." +msgstr "" + +msgid "" +"If the result is not ready, :exc:`ValueError` is raised instead " +"of :exc:`AssertionError`." +msgstr "" + +msgid "The following example demonstrates the use of a pool::" +msgstr "" + +msgid "Listeners and Clients" +msgstr "" + +msgid "" +"Usually message passing between processes is done using queues or by " +"using :class:`~Connection` objects returned by :func:`~multiprocessing.Pipe`." +msgstr "" + +msgid "" +"However, the :mod:`multiprocessing.connection` module allows some extra " +"flexibility. It basically gives a high level message oriented API for " +"dealing with sockets or Windows named pipes. It also has support for " +"*digest authentication* using the :mod:`hmac` module, and for polling " +"multiple connections at the same time." +msgstr "" + +msgid "" +"Send a randomly generated message to the other end of the connection and " +"wait for a reply." +msgstr "" + +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 "" + +msgid "" +"Receive a message, calculate the digest of the message using *authkey* as " +"the key, and then send the digest back." +msgstr "" + +msgid "" +"If a welcome message is not received, " +"then :exc:`~multiprocessing.AuthenticationError` is raised." +msgstr "" + +msgid "" +"Attempt to set up a connection to the listener which is using address " +"*address*, returning a :class:`~Connection`." +msgstr "" + +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 "" + +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`." +msgstr "" + +msgid "" +"A wrapper for a bound socket or Windows named pipe which is 'listening' for " +"connections." +msgstr "" + +msgid "" +"*address* is the address to be used by the bound socket or named pipe of the " +"listener object." +msgstr "" + +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'." +msgstr "" + +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 " +"domain socket) or ``'AF_PIPE'`` (for a Windows named pipe). Of these only " +"the first is guaranteed to be available. If *family* is ``None`` then the " +"family is inferred from the format of *address*. If *address* is also " +"``None`` then a default is chosen. This default is the family which is " +"assumed to be the fastest available. See :ref:`multiprocessing-address-" +"formats`. Note that if *family* is ``'AF_UNIX'`` and address is ``None`` " +"then the socket will be created in a private temporary directory created " +"using :func:`tempfile.mkstemp`." +msgstr "" + +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 " +"bound." +msgstr "" + +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." +msgstr "" + +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 " +"advisable to call it explicitly." +msgstr "" + +msgid "Listener objects have the following read-only properties:" +msgstr "" + +msgid "The address which is being used by the Listener object." +msgstr "" + +msgid "" +"The address from which the last accepted connection came. If this is " +"unavailable then it is ``None``." +msgstr "" + +msgid "" +"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 "" + +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 " +"zero timeout." +msgstr "" + +msgid "" +"For both Unix and Windows, an object can appear in *object_list* if it is" +msgstr "" + +msgid "a readable :class:`~multiprocessing.connection.Connection` object;" +msgstr "" + +msgid "a connected and readable :class:`socket.socket` object; or" +msgstr "" + +msgid "" +"the :attr:`~multiprocessing.Process.sentinel` attribute of " +"a :class:`~multiprocessing.Process` object." +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"that pipe handles and socket handles are **not** waitable handles.)" +msgstr "" + +msgid "**Examples**" +msgstr "" + +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 "" + +msgid "" +"The following code connects to the server and receives some data from the " +"server::" +msgstr "" + +msgid "" +"The following code uses :func:`~multiprocessing.connection.wait` to wait for " +"messages from multiple processes at once::" +msgstr "" + +msgid "Address Formats" +msgstr "" + +msgid "" +"An ``'AF_INET'`` address is a tuple of the form ``(hostname, port)`` where " +"*hostname* is a string and *port* is an integer." +msgstr "" + +msgid "" +"An ``'AF_UNIX'`` address is a string representing a filename on the " +"filesystem." +msgstr "" + +msgid "" +"An ``'AF_PIPE'`` address is a string of the form :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." +msgstr "" + +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." +msgstr "" + +msgid "Authentication keys" +msgstr "" + +msgid "" +"When one uses :meth:`Connection.recv `, the data received " +"is automatically unpickled. Unfortunately unpickling data from an untrusted " +"source is a security risk. Therefore :class:`Listener` and :func:`Client` " +"use the :mod:`hmac` module to provide digest authentication." +msgstr "" + +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.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"Suitable authentication keys can also be generated by " +"using :func:`os.urandom`." +msgstr "" + +msgid "Logging" +msgstr "Logowanie" + +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." +msgstr "" + +msgid "" +"Returns the logger used by :mod:`multiprocessing`. If necessary, a new one " +"will be created." +msgstr "" + +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 "" + +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." +msgstr "" + +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'``. You can modify ``levelname`` of the logger by passing a " +"``level`` argument." +msgstr "" + +msgid "Below is an example session with logging turned on::" +msgstr "" + +msgid "For a full table of logging levels, see the :mod:`logging` module." +msgstr "" + +msgid "The :mod:`multiprocessing.dummy` module" +msgstr "" + +msgid "" +":mod:`multiprocessing.dummy` replicates the API of :mod:`multiprocessing` " +"but is no more than a wrapper around the :mod:`threading` module." +msgstr "" + +msgid "" +"In particular, the ``Pool`` function provided " +"by :mod:`multiprocessing.dummy` returns an instance of :class:`ThreadPool`, " +"which is a subclass of :class:`Pool` that supports all the same method calls " +"but uses a pool of worker threads rather than worker processes." +msgstr "" + +msgid "" +"A thread pool object which controls a pool of worker threads to which jobs " +"can be submitted. :class:`ThreadPool` instances are fully interface " +"compatible with :class:`Pool` instances, and their resources must also be " +"properly managed, either by using the pool as a context manager or by " +"calling :meth:`~multiprocessing.pool.Pool.close` " +"and :meth:`~multiprocessing.pool.Pool.terminate` manually." +msgstr "" + +msgid "" +"*processes* is the number of worker threads to use. If *processes* is " +"``None`` then the number returned by :func:`os.cpu_count` is used." +msgstr "" + +msgid "" +"Unlike :class:`Pool`, *maxtasksperchild* and *context* cannot be provided." +msgstr "" + +msgid "" +"A :class:`ThreadPool` shares the same interface as :class:`Pool`, which is " +"designed around a pool of processes and predates the introduction of " +"the :class:`concurrent.futures` module. As such, it inherits some " +"operations that don't make sense for a pool backed by threads, and it has " +"its own type for representing the status of asynchronous " +"jobs, :class:`AsyncResult`, that is not understood by any other libraries." +msgstr "" + +msgid "" +"Users should generally prefer to " +"use :class:`concurrent.futures.ThreadPoolExecutor`, which has a simpler " +"interface that was designed around threads from the start, and which " +"returns :class:`concurrent.futures.Future` instances that are compatible " +"with many other libraries, including :mod:`asyncio`." +msgstr "" + +msgid "Programming guidelines" +msgstr "" + +msgid "" +"There are certain guidelines and idioms which should be adhered to when " +"using :mod:`multiprocessing`." +msgstr "" + +msgid "All start methods" +msgstr "" + +msgid "The following applies to all start methods." +msgstr "" + +msgid "Avoid shared state" +msgstr "" + +msgid "" +"As far as possible one should try to avoid shifting large amounts of data " +"between processes." +msgstr "" + +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 "" + +msgid "Picklability" +msgstr "" + +msgid "Ensure that the arguments to the methods of proxies are picklable." +msgstr "" + +msgid "Thread safety of proxies" +msgstr "" + +msgid "" +"Do not use a proxy object from more than one thread unless you protect it " +"with a lock." +msgstr "" + +msgid "" +"(There is never a problem with different processes using the *same* proxy.)" +msgstr "" + +msgid "Joining zombie processes" +msgstr "" + +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 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 "" + +msgid "Better to inherit than pickle/unpickle" +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "Avoid terminating processes" +msgstr "" + +msgid "" +"Using the :meth:`Process.terminate ` " +"method to stop a process is liable to cause any shared resources (such as " +"locks, semaphores, pipes and queues) currently being used by the process to " +"become broken or unavailable to other processes." +msgstr "" + +msgid "" +"Therefore it is probably best to only consider " +"using :meth:`Process.terminate ` on " +"processes which never use any shared resources." +msgstr "" + +msgid "Joining processes that use queues" +msgstr "" + +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.)" +msgstr "" + +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 " +"put items on the queue will terminate. Remember also that non-daemonic " +"processes will be joined automatically." +msgstr "" + +msgid "An example which will deadlock is the following::" +msgstr "" + +msgid "" +"A fix here would be to swap the last two lines (or simply remove the " +"``p.join()`` line)." +msgstr "" + +msgid "Explicitly pass resources to child processes" +msgstr "" + +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. " +"However, it is better to pass the object as an argument to the constructor " +"for the child process." +msgstr "" + +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." +msgstr "" + +msgid "So for instance ::" +msgstr "" + +msgid "should be rewritten as ::" +msgstr "" + +msgid "Beware of replacing :data:`sys.stdin` with a \"file like object\"" +msgstr "" + +msgid ":mod:`multiprocessing` originally unconditionally called::" +msgstr "" + +msgid "" +"in the :meth:`multiprocessing.Process._bootstrap` method --- this resulted " +"in issues with processes-in-processes. This has been changed to::" +msgstr "" + +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." +msgstr "" + +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 " +"discarding the cache when the pid changes. For example::" +msgstr "" + +msgid "" +"For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`" +msgstr "" + +msgid "The *spawn* and *forkserver* start methods" +msgstr "" + +msgid "" +"There are a few extra restriction which don't apply to the *fork* start " +"method." +msgstr "" + +msgid "More picklability" +msgstr "" + +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." +msgstr "" + +msgid "Global variables" +msgstr "" + +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." +msgstr "" + +msgid "" +"However, global variables which are just module level constants cause no " +"problems." +msgstr "" + +msgid "Safe importing of main module" +msgstr "" + +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 "" + +msgid "" +"For example, using the *spawn* or *forkserver* start method running the " +"following module would fail with a :exc:`RuntimeError`::" +msgstr "" + +msgid "" +"Instead one should protect the \"entry point\" of the program by using ``if " +"__name__ == '__main__':`` as follows::" +msgstr "" + +msgid "" +"(The ``freeze_support()`` line can be omitted if the program will be run " +"normally instead of frozen.)" +msgstr "" + +msgid "" +"This allows the newly spawned Python interpreter to safely import the module " +"and then run the module's ``foo()`` function." +msgstr "" + +msgid "" +"Similar restrictions apply if a pool or manager is created in the main " +"module." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "Demonstration of how to create and use customized managers and proxies:" +msgstr "" + +msgid "Using :class:`~multiprocessing.pool.Pool`:" +msgstr "" + +msgid "" +"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/multiprocessing_shared_memory.po b/library/multiprocessing_shared_memory.po new file mode 100644 index 0000000000..04b5156521 --- /dev/null +++ b/library/multiprocessing_shared_memory.po @@ -0,0 +1,250 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "" +":mod:`multiprocessing.shared_memory` --- Shared memory for direct access " +"across processes" +msgstr "" + +msgid "**Source code:** :source:`Lib/multiprocessing/shared_memory.py`" +msgstr "**Kod źródłowy:** :source:`Lib/multiprocessing/shared_memory.py`" + +msgid "" +"This module provides a class, :class:`SharedMemory`, for the allocation and " +"management of shared memory to be accessed by one or more processes on a " +"multicore or symmetric multiprocessor (SMP) machine. To assist with the " +"life-cycle management of shared memory especially across distinct processes, " +"a :class:`~multiprocessing.managers.BaseManager` " +"subclass, :class:`SharedMemoryManager`, is also provided in the " +"``multiprocessing.managers`` module." +msgstr "" + +msgid "" +"In this module, shared memory refers to \"System V style\" shared memory " +"blocks (though is not necessarily implemented explicitly as such) and does " +"not refer to \"distributed shared memory\". This style of shared memory " +"permits distinct processes to potentially read and write to a common (or " +"shared) region of volatile memory. Processes are conventionally limited to " +"only have access to their own process memory space but shared memory permits " +"the sharing of data between processes, avoiding the need to instead send " +"messages between processes containing that data. Sharing data directly via " +"memory can provide significant performance benefits compared to sharing data " +"via disk or socket or other communications requiring the serialization/" +"deserialization and copying of data." +msgstr "" + +msgid "" +"Creates a new shared memory block or attaches to an existing shared memory " +"block. Each shared memory block is assigned a unique name. In this way, one " +"process can create a shared memory block with a particular name and a " +"different process can attach to that same shared memory block using that " +"same name." +msgstr "" + +msgid "" +"As a resource for sharing data across processes, shared memory blocks may " +"outlive the original process that created them. When one process no longer " +"needs access to a shared memory block that might still be needed by other " +"processes, the :meth:`close()` method should be called. When a shared memory " +"block is no longer needed by any process, the :meth:`unlink()` method should " +"be called to ensure proper cleanup." +msgstr "" + +msgid "" +"*name* is the unique name for the requested shared memory, specified as a " +"string. When creating a new shared memory block, if ``None`` (the default) " +"is supplied for the name, a novel name will be generated." +msgstr "" + +msgid "" +"*create* controls whether a new shared memory block is created (``True``) or " +"an existing shared memory block is attached (``False``)." +msgstr "" + +msgid "" +"*size* specifies the requested number of bytes when creating a new shared " +"memory block. Because some platforms choose to allocate chunks of memory " +"based upon that platform's memory page size, the exact size of the shared " +"memory block may be larger or equal to the size requested. When attaching " +"to an existing shared memory block, the ``size`` parameter is ignored." +msgstr "" + +msgid "" +"Closes access to the shared memory from this instance. In order to ensure " +"proper cleanup of resources, all instances should call ``close()`` once the " +"instance is no longer needed. Note that calling ``close()`` does not cause " +"the shared memory block itself to be destroyed." +msgstr "" + +msgid "" +"Requests that the underlying shared memory block be destroyed. In order to " +"ensure proper cleanup of resources, ``unlink()`` should be called once (and " +"only once) across all processes which have need for the shared memory " +"block. After requesting its destruction, a shared memory block may or may " +"not be immediately destroyed and this behavior may differ across platforms. " +"Attempts to access data inside the shared memory block after ``unlink()`` " +"has been called may result in memory access errors. Note: the last process " +"relinquishing its hold on a shared memory block may call ``unlink()`` " +"and :meth:`close()` in either order." +msgstr "" + +msgid "A memoryview of contents of the shared memory block." +msgstr "" + +msgid "Read-only access to the unique name of the shared memory block." +msgstr "" + +msgid "Read-only access to size in bytes of the shared memory block." +msgstr "" + +msgid "" +"The following example demonstrates low-level use of :class:`SharedMemory` " +"instances::" +msgstr "" + +msgid "" +"The following example demonstrates a practical use of " +"the :class:`SharedMemory` class with `NumPy arrays `_, " +"accessing the same ``numpy.ndarray`` from two distinct Python shells:" +msgstr "" + +msgid "" +"A subclass of :class:`~multiprocessing.managers.BaseManager` which can be " +"used for the management of shared memory blocks across processes." +msgstr "" + +msgid "" +"A call to :meth:`~multiprocessing.managers.BaseManager.start` on " +"a :class:`SharedMemoryManager` instance causes a new process to be started. " +"This new process's sole purpose is to manage the life cycle of all shared " +"memory blocks created through it. To trigger the release of all shared " +"memory blocks managed by that process, " +"call :meth:`~multiprocessing.managers.BaseManager.shutdown()` on the " +"instance. This triggers a :meth:`SharedMemory.unlink()` call on all of " +"the :class:`SharedMemory` objects managed by that process and then stops the " +"process itself. By creating ``SharedMemory`` instances through a " +"``SharedMemoryManager``, we avoid the need to manually track and trigger the " +"freeing of shared memory resources." +msgstr "" + +msgid "" +"This class provides methods for creating and returning :class:`SharedMemory` " +"instances and for creating a list-like object (:class:`ShareableList`) " +"backed by shared memory." +msgstr "" + +msgid "" +"Refer to :class:`multiprocessing.managers.BaseManager` for a description of " +"the inherited *address* and *authkey* optional input arguments and how they " +"may be used to connect to an existing ``SharedMemoryManager`` service from " +"other processes." +msgstr "" + +msgid "" +"Create and return a new :class:`SharedMemory` object with the specified " +"``size`` in bytes." +msgstr "" + +msgid "" +"Create and return a new :class:`ShareableList` object, initialized by the " +"values from the input ``sequence``." +msgstr "" + +msgid "" +"The following example demonstrates the basic mechanisms of " +"a :class:`SharedMemoryManager`:" +msgstr "" + +msgid "" +"The following example depicts a potentially more convenient pattern for " +"using :class:`SharedMemoryManager` objects via the :keyword:`with` statement " +"to ensure that all shared memory blocks are released after they are no " +"longer needed:" +msgstr "" + +msgid "" +"When using a :class:`SharedMemoryManager` in a :keyword:`with` statement, " +"the shared memory blocks created using that manager are all released when " +"the :keyword:`with` statement's code block finishes execution." +msgstr "" + +msgid "" +"Provides a mutable list-like object where all values stored within are " +"stored in a shared memory block. This constrains storable values to only " +"the ``int``, ``float``, ``bool``, ``str`` (less than 10M bytes each), " +"``bytes`` (less than 10M bytes each), and ``None`` built-in data types. It " +"also notably differs from the built-in ``list`` type in that these lists can " +"not change their overall length (i.e. no append, insert, etc.) and do not " +"support the dynamic creation of new :class:`ShareableList` instances via " +"slicing." +msgstr "" + +msgid "" +"*sequence* is used in populating a new ``ShareableList`` full of values. Set " +"to ``None`` to instead attach to an already existing ``ShareableList`` by " +"its unique shared memory name." +msgstr "" + +msgid "" +"*name* is the unique name for the requested shared memory, as described in " +"the definition for :class:`SharedMemory`. When attaching to an existing " +"``ShareableList``, specify its shared memory block's unique name while " +"leaving ``sequence`` set to ``None``." +msgstr "" + +msgid "Returns the number of occurrences of ``value``." +msgstr "" + +msgid "" +"Returns first index position of ``value``. Raises :exc:`ValueError` if " +"``value`` is not present." +msgstr "" + +msgid "" +"Read-only attribute containing the :mod:`struct` packing format used by all " +"currently stored values." +msgstr "" + +msgid "The :class:`SharedMemory` instance where the values are stored." +msgstr "" + +msgid "" +"The following example demonstrates basic use of a :class:`ShareableList` " +"instance:" +msgstr "" + +msgid "" +"The following example depicts how one, two, or many processes may access the " +"same :class:`ShareableList` by supplying the name of the shared memory block " +"behind it:" +msgstr "" + +msgid "" +"The following examples demonstrates that ``ShareableList`` (and underlying " +"``SharedMemory``) objects can be pickled and unpickled if needed. Note, that " +"it will still be the same shared object. This happens, because the " +"deserialized object has the same unique name and is just attached to an " +"existing object with the same name (if the object is still alive):" +msgstr "" diff --git a/library/numeric.po b/library/numeric.po index a0153bf77c..e021c6665f 100644 --- a/library/numeric.po +++ b/library/numeric.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:10+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Numeric and Mathematical Modules" msgstr "" @@ -30,8 +30,8 @@ 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, " +"various mathematical functions for floating-point and complex numbers. " +"The :mod:`decimal` module supports exact representations of decimal numbers, " "using arbitrary precision arithmetic." msgstr "" diff --git a/library/operator.po b/library/operator.po new file mode 100644 index 0000000000..828b274b3e --- /dev/null +++ b/library/operator.po @@ -0,0 +1,639 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`operator` --- Standard operators as functions" +msgstr "" + +msgid "**Source code:** :source:`Lib/operator.py`" +msgstr "**Kod źródłowy:** :source:`Lib/operator.py`" + +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." +msgstr "" + +msgid "" +"The functions fall into categories that perform object comparisons, logical " +"operations, mathematical operations and sequence operations." +msgstr "" + +msgid "" +"The object comparison functions are useful for all objects, and are named " +"after the rich comparison operators they support:" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"The logical operations are also generally applicable to all objects, and " +"support truth tests, identity tests, and boolean operations:" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"Return :const:`True` if *obj* is true, and :const:`False` otherwise. This " +"is equivalent to using the :class:`bool` constructor." +msgstr "" + +msgid "Return ``a is b``. Tests object identity." +msgstr "" + +msgid "Return ``a is not b``. Tests object identity." +msgstr "" + +msgid "The mathematical and bitwise operations are the most numerous:" +msgstr "" + +msgid "Return the absolute value of *obj*." +msgstr "" + +msgid "Return ``a + b``, for *a* and *b* numbers." +msgstr "" + +msgid "Return the bitwise and of *a* and *b*." +msgstr "" + +msgid "Return ``a // b``." +msgstr "" + +msgid "Return *a* converted to an integer. Equivalent to ``a.__index__()``." +msgstr "" + +msgid "" +"The result always has exact type :class:`int`. Previously, the result could " +"have been an instance of a subclass of ``int``." +msgstr "" + +msgid "" +"Return the bitwise inverse of the number *obj*. This is equivalent to " +"``~obj``." +msgstr "" + +msgid "Return *a* shifted left by *b*." +msgstr "" + +msgid "Return ``a % b``." +msgstr "" + +msgid "Return ``a * b``, for *a* and *b* numbers." +msgstr "" + +msgid "Return ``a @ b``." +msgstr "" + +msgid "Return *obj* negated (``-obj``)." +msgstr "" + +msgid "Return the bitwise or of *a* and *b*." +msgstr "" + +msgid "Return *obj* positive (``+obj``)." +msgstr "" + +msgid "Return ``a ** b``, for *a* and *b* numbers." +msgstr "" + +msgid "Return *a* shifted right by *b*." +msgstr "" + +msgid "Return ``a - b``." +msgstr "" + +msgid "" +"Return ``a / b`` where 2/3 is .66 rather than 0. This is also known as " +"\"true\" division." +msgstr "" + +msgid "Return the bitwise exclusive or of *a* and *b*." +msgstr "" + +msgid "" +"Operations which work with sequences (some of them with mappings too) " +"include:" +msgstr "" + +msgid "Return ``a + b`` for *a* and *b* sequences." +msgstr "" + +msgid "Return the outcome of the test ``b in a``. Note the reversed operands." +msgstr "" + +msgid "Return the number of occurrences of *b* in *a*." +msgstr "" + +msgid "Remove the value of *a* at index *b*." +msgstr "" + +msgid "Return the value of *a* at index *b*." +msgstr "" + +msgid "Return the index of the first of occurrence of *b* in *a*." +msgstr "" + +msgid "Set the value of *a* at index *b* to *c*." +msgstr "" + +msgid "" +"Return an estimated length for the object *o*. First try to return its " +"actual length, then an estimate using :meth:`object.__length_hint__`, and " +"finally return the default value." +msgstr "" + +msgid "" +"The :mod:`operator` module also defines tools for generalized attribute and " +"item lookups. These are useful for making fast field extractors as " +"arguments for :func:`map`, :func:`sorted`, :meth:`itertools.groupby`, or " +"other functions that expect a function argument." +msgstr "" + +msgid "" +"Return a callable object that fetches *attr* from its operand. If more than " +"one attribute is requested, returns a tuple of attributes. The attribute " +"names can also contain dots. For example:" +msgstr "" + +msgid "After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``." +msgstr "" + +msgid "" +"After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns " +"``(b.name, b.date)``." +msgstr "" + +msgid "" +"After ``f = attrgetter('name.first', 'name.last')``, the call ``f(b)`` " +"returns ``(b.name.first, b.name.last)``." +msgstr "" + +msgid "Equivalent to::" +msgstr "Odpowiednik::" + +msgid "" +"Return a callable object that fetches *item* from its operand using the " +"operand's :meth:`__getitem__` method. If multiple items are specified, " +"returns a tuple of lookup values. For example:" +msgstr "" + +msgid "After ``f = itemgetter(2)``, the call ``f(r)`` returns ``r[2]``." +msgstr "" + +msgid "" +"After ``g = itemgetter(2, 5, 3)``, the call ``g(r)`` returns ``(r[2], r[5], " +"r[3])``." +msgstr "" + +msgid "" +"The items can be any type accepted by the operand's :meth:`__getitem__` " +"method. Dictionaries accept any :term:`hashable` value. Lists, tuples, and " +"strings accept an index or a slice:" +msgstr "" + +msgid "" +"Example of using :func:`itemgetter` to retrieve specific fields from a tuple " +"record:" +msgstr "" + +msgid "" +"Return a callable object that calls the method *name* on its operand. If " +"additional arguments and/or keyword arguments are given, they will be given " +"to the method as well. For example:" +msgstr "" + +msgid "" +"After ``f = methodcaller('name')``, the call ``f(b)`` returns ``b.name()``." +msgstr "" + +msgid "" +"After ``f = methodcaller('name', 'foo', bar=1)``, the call ``f(b)`` returns " +"``b.name('foo', bar=1)``." +msgstr "" + +msgid "Mapping Operators to Functions" +msgstr "" + +msgid "" +"This table shows how abstract operations correspond to operator symbols in " +"the Python syntax and the functions in the :mod:`operator` module." +msgstr "" + +msgid "Operation" +msgstr "" + +msgid "Syntax" +msgstr "" + +msgid "Function" +msgstr "Funkcja" + +msgid "Addition" +msgstr "" + +msgid "``a + b``" +msgstr "``a + b``" + +msgid "``add(a, b)``" +msgstr "``add(a, b)``" + +msgid "Concatenation" +msgstr "" + +msgid "``seq1 + seq2``" +msgstr "``seq1 + seq2``" + +msgid "``concat(seq1, seq2)``" +msgstr "``concat(seq1, seq2)``" + +msgid "Containment Test" +msgstr "" + +msgid "``obj in seq``" +msgstr "``obj in seq``" + +msgid "``contains(seq, obj)``" +msgstr "``contains(seq, obj)``" + +msgid "Division" +msgstr "" + +msgid "``a / b``" +msgstr "``a / b``" + +msgid "``truediv(a, b)``" +msgstr "``truediv(a, b)``" + +msgid "``a // b``" +msgstr "``a // b``" + +msgid "``floordiv(a, b)``" +msgstr "``floordiv(a, b)``" + +msgid "Bitwise And" +msgstr "" + +msgid "``a & b``" +msgstr "``a & b``" + +msgid "``and_(a, b)``" +msgstr "``and_(a, b)``" + +msgid "Bitwise Exclusive Or" +msgstr "" + +msgid "``a ^ b``" +msgstr "``a ^ b``" + +msgid "``xor(a, b)``" +msgstr "``xor(a, b)``" + +msgid "Bitwise Inversion" +msgstr "" + +msgid "``~ a``" +msgstr "``~ a``" + +msgid "``invert(a)``" +msgstr "``invert(a)``" + +msgid "Bitwise Or" +msgstr "" + +msgid "``a | b``" +msgstr "``a | b``" + +msgid "``or_(a, b)``" +msgstr "``or_(a, b)``" + +msgid "Exponentiation" +msgstr "" + +msgid "``a ** b``" +msgstr "``a ** b``" + +msgid "``pow(a, b)``" +msgstr "``pow(a, b)``" + +msgid "Identity" +msgstr "" + +msgid "``a is b``" +msgstr "``a is b``" + +msgid "``is_(a, b)``" +msgstr "``is_(a, b)``" + +msgid "``a is not b``" +msgstr "" + +msgid "``is_not(a, b)``" +msgstr "``is_not(a, b)``" + +msgid "Indexed Assignment" +msgstr "" + +msgid "``obj[k] = v``" +msgstr "``obj[k] = v``" + +msgid "``setitem(obj, k, v)``" +msgstr "``setitem(obj, k, v)``" + +msgid "Indexed Deletion" +msgstr "" + +msgid "``del obj[k]``" +msgstr "``del obj[k]``" + +msgid "``delitem(obj, k)``" +msgstr "``delitem(obj, k)``" + +msgid "Indexing" +msgstr "" + +msgid "``obj[k]``" +msgstr "``obj[k]``" + +msgid "``getitem(obj, k)``" +msgstr "``getitem(obj, k)``" + +msgid "Left Shift" +msgstr "" + +msgid "``a << b``" +msgstr "``a << b``" + +msgid "``lshift(a, b)``" +msgstr "``lshift(a, b)``" + +msgid "Modulo" +msgstr "" + +msgid "``a % b``" +msgstr "``a % b``" + +msgid "``mod(a, b)``" +msgstr "``mod(a, b)``" + +msgid "Multiplication" +msgstr "" + +msgid "``a * b``" +msgstr "``a * b``" + +msgid "``mul(a, b)``" +msgstr "``mul(a, b)``" + +msgid "Matrix Multiplication" +msgstr "" + +msgid "``a @ b``" +msgstr "``a @ b``" + +msgid "``matmul(a, b)``" +msgstr "``matmul(a, b)``" + +msgid "Negation (Arithmetic)" +msgstr "" + +msgid "``- a``" +msgstr "``- a``" + +msgid "``neg(a)``" +msgstr "``neg(a)``" + +msgid "Negation (Logical)" +msgstr "" + +msgid "``not a``" +msgstr "``not a``" + +msgid "``not_(a)``" +msgstr "``not_(a)``" + +msgid "Positive" +msgstr "" + +msgid "``+ a``" +msgstr "``+ a``" + +msgid "``pos(a)``" +msgstr "``pos(a)``" + +msgid "Right Shift" +msgstr "" + +msgid "``a >> b``" +msgstr "``a >> b``" + +msgid "``rshift(a, b)``" +msgstr "``rshift(a, b)``" + +msgid "Slice Assignment" +msgstr "" + +msgid "``seq[i:j] = values``" +msgstr "``seq[i:j] = values``" + +msgid "``setitem(seq, slice(i, j), values)``" +msgstr "" + +msgid "Slice Deletion" +msgstr "" + +msgid "``del seq[i:j]``" +msgstr "``del seq[i:j]``" + +msgid "``delitem(seq, slice(i, j))``" +msgstr "``delitem(seq, slice(i, j))``" + +msgid "Slicing" +msgstr "" + +msgid "``seq[i:j]``" +msgstr "``seq[i:j]``" + +msgid "``getitem(seq, slice(i, j))``" +msgstr "``getitem(seq, slice(i, j))``" + +msgid "String Formatting" +msgstr "" + +msgid "``s % obj``" +msgstr "``s % obj``" + +msgid "``mod(s, obj)``" +msgstr "``mod(s, obj)``" + +msgid "Subtraction" +msgstr "" + +msgid "``a - b``" +msgstr "``a - b``" + +msgid "``sub(a, b)``" +msgstr "``sub(a, b)``" + +msgid "Truth Test" +msgstr "" + +msgid "``obj``" +msgstr "``obj``" + +msgid "``truth(obj)``" +msgstr "``truth(obj)``" + +msgid "Ordering" +msgstr "" + +msgid "``a < b``" +msgstr "``a < b``" + +msgid "``lt(a, b)``" +msgstr "``lt(a, b)``" + +msgid "``a <= b``" +msgstr "``a <= b``" + +msgid "``le(a, b)``" +msgstr "``le(a, b)``" + +msgid "Equality" +msgstr "" + +msgid "``a == b``" +msgstr "``a == b``" + +msgid "``eq(a, b)``" +msgstr "``eq(a, b)``" + +msgid "Difference" +msgstr "" + +msgid "``a != b``" +msgstr "``a != b``" + +msgid "``ne(a, b)``" +msgstr "``ne(a, b)``" + +msgid "``a >= b``" +msgstr "``a >= b``" + +msgid "``ge(a, b)``" +msgstr "``ge(a, b)``" + +msgid "``a > b``" +msgstr "``a > b``" + +msgid "``gt(a, b)``" +msgstr "``gt(a, b)``" + +msgid "In-place Operators" +msgstr "" + +msgid "" +"Many operations have an \"in-place\" version. Listed below are functions " +"providing a more primitive access to in-place operators than the usual " +"syntax does; for example, the :term:`statement` ``x += y`` is equivalent to " +"``x = operator.iadd(x, y)``. Another way to put it is to say that ``z = " +"operator.iadd(x, y)`` is equivalent to the compound statement ``z = x; z += " +"y``." +msgstr "" + +msgid "" +"In those examples, note that when an in-place method is called, the " +"computation and assignment are performed in two separate steps. The in-" +"place functions listed below only do the first step, calling the in-place " +"method. The second step, assignment, is not handled." +msgstr "" + +msgid "" +"For immutable targets such as strings, numbers, and tuples, the updated " +"value is computed, but not assigned back to the input variable:" +msgstr "" + +msgid "" +"For mutable targets such as lists and dictionaries, the in-place method will " +"perform the update, so no subsequent assignment is necessary:" +msgstr "" + +msgid "``a = iadd(a, b)`` is equivalent to ``a += b``." +msgstr "" + +msgid "``a = iand(a, b)`` is equivalent to ``a &= b``." +msgstr "" + +msgid "" +"``a = iconcat(a, b)`` is equivalent to ``a += b`` for *a* and *b* sequences." +msgstr "" + +msgid "``a = ifloordiv(a, b)`` is equivalent to ``a //= b``." +msgstr "" + +msgid "``a = ilshift(a, b)`` is equivalent to ``a <<= b``." +msgstr "" + +msgid "``a = imod(a, b)`` is equivalent to ``a %= b``." +msgstr "" + +msgid "``a = imul(a, b)`` is equivalent to ``a *= b``." +msgstr "" + +msgid "``a = imatmul(a, b)`` is equivalent to ``a @= b``." +msgstr "" + +msgid "``a = ior(a, b)`` is equivalent to ``a |= b``." +msgstr "" + +msgid "``a = ipow(a, b)`` is equivalent to ``a **= b``." +msgstr "" + +msgid "``a = irshift(a, b)`` is equivalent to ``a >>= b``." +msgstr "" + +msgid "``a = isub(a, b)`` is equivalent to ``a -= b``." +msgstr "" + +msgid "``a = itruediv(a, b)`` is equivalent to ``a /= b``." +msgstr "" + +msgid "``a = ixor(a, b)`` is equivalent to ``a ^= b``." +msgstr "" diff --git a/library/optparse.po b/library/optparse.po new file mode 100644 index 0000000000..b9674d3479 --- /dev/null +++ b/library/optparse.po @@ -0,0 +1,2027 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`optparse` --- Parser for command line options" +msgstr "" + +msgid "**Source code:** :source:`Lib/optparse.py`" +msgstr "**Kod źródłowy:** :source:`Lib/optparse.py`" + +msgid "" +"The :mod:`optparse` module is deprecated and will not be developed further; " +"development will continue with the :mod:`argparse` module." +msgstr "" + +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." +msgstr "" + +msgid "Here's an example of using :mod:`optparse` in a simple script::" +msgstr "" + +msgid "" +"With these few lines of code, users of your script can now do the \"usual " +"thing\" on the command-line, for example::" +msgstr "" + +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::" +msgstr "" + +msgid "Additionally, users can run one of the following ::" +msgstr "" + +msgid "" +"and :mod:`optparse` will print out a brief summary of your script's options:" +msgstr "" + +msgid "" +"where the value of *yourscript* is determined at runtime (normally from " +"``sys.argv[0]``)." +msgstr "" + +msgid "Background" +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 " +"conventions, read this section to acquaint yourself with them." +msgstr "" + +msgid "Terminology" +msgstr "" + +msgid "argument" +msgstr "argument" + +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:]`` " +"(``sys.argv[0]`` is the name of the program being executed). Unix shells " +"also use the term \"word\"." +msgstr "" + +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:]``\"." +msgstr "" + +msgid "option" +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-" +"separated words, e.g. ``--file`` or ``--dry-run``. These are the only two " +"option syntaxes provided by :mod:`optparse`." +msgstr "" + +msgid "Some other option syntaxes that the world has seen include:" +msgstr "" + +msgid "" +"a hyphen followed by a few letters, e.g. ``-pf`` (this is *not* the same as " +"multiple options merged into a single argument)" +msgstr "" + +msgid "" +"a hyphen followed by a whole word, e.g. ``-file`` (this is technically " +"equivalent to the previous syntax, but they aren't usually seen in the same " +"program)" +msgstr "" + +msgid "" +"a plus sign followed by a single letter, or a few letters, or a word, e.g. " +"``+f``, ``+rgb``" +msgstr "" + +msgid "" +"a slash followed by a letter, or a few letters, or a word, e.g. ``/f``, ``/" +"file``" +msgstr "" + +msgid "" +"These option syntaxes are not supported by :mod:`optparse`, and they never " +"will be. This is deliberate: the first three are non-standard on any " +"environment, and the last only makes sense if you're exclusively targeting " +"Windows or certain legacy platforms (e.g. VMS, MS-DOS)." +msgstr "" + +msgid "option argument" +msgstr "" + +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:" +msgstr "" + +msgid "or included in the same argument:" +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`` " +"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." +msgstr "" + +msgid "positional argument" +msgstr "" + +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 " +"argument list." +msgstr "" + +msgid "required option" +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." +msgstr "" + +msgid "For example, consider this hypothetical command-line::" +msgstr "" + +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." +msgstr "" + +msgid "What are options for?" +msgstr "" + +msgid "" +"Options are used to provide extra information to tune or customize the " +"execution of a program. In case it wasn't clear, options are usually " +"*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 " +"interfaces.)" +msgstr "" + +msgid "" +"Lots of people want their programs to have \"required options\". Think " +"about it. If it's required, then it's *not optional*! If there is a piece " +"of information that your program absolutely requires in order to run " +"successfully, that's what positional arguments are for." +msgstr "" + +msgid "" +"As an example of good command-line interface design, consider the humble " +"``cp`` utility, for copying files. It doesn't make much sense to try to " +"copy files without supplying a destination and at least one source. Hence, " +"``cp`` fails if you run it with no arguments. However, it has a flexible, " +"useful syntax that does not require any options at all::" +msgstr "" + +msgid "" +"You can get pretty far with just that. Most ``cp`` implementations provide " +"a bunch of options to tweak exactly how the files are copied: you can " +"preserve mode and modification time, avoid following symlinks, ask before " +"clobbering existing files, etc. But none of this distracts from the core " +"mission of ``cp``, which is to copy either one file to another, or several " +"files to another directory." +msgstr "" + +msgid "What are positional arguments for?" +msgstr "" + +msgid "" +"Positional arguments are for those pieces of information that your program " +"absolutely, positively requires to run." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "Tutorial" +msgstr "Tutorial" + +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." +msgstr "" + +msgid "" +"First, you need to import the OptionParser class; then, early in the main " +"program, create an OptionParser instance::" +msgstr "" + +msgid "Then you can start defining options. The basic syntax is::" +msgstr "" + +msgid "" +"Each option has one or more option strings, such as ``-f`` or ``--file``, " +"and several option attributes that tell :mod:`optparse` what to expect and " +"what to do when it encounters that option on the command line." +msgstr "" + +msgid "" +"Typically, each option will have one short option string and one long option " +"string, e.g.::" +msgstr "" + +msgid "" +"You're free to define as many short option strings and as many long option " +"strings as you like (including zero), as long as there is at least one " +"option string overall." +msgstr "" + +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." +msgstr "" + +msgid "" +"Once all of your options are defined, instruct :mod:`optparse` to parse your " +"program's command line::" +msgstr "" + +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:]``.)" +msgstr "" + +msgid ":meth:`parse_args` returns two values:" +msgstr "" + +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 " +"option" +msgstr "" + +msgid "" +"``args``, the list of positional arguments leftover after parsing options" +msgstr "" + +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." +msgstr "" + +msgid "Understanding option actions" +msgstr "" + +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``." +msgstr "" + +msgid "" +"If you don't specify an option action, :mod:`optparse` defaults to ``store``." +msgstr "" + +msgid "The store action" +msgstr "" + +msgid "" +"The most common option action is ``store``, which tells :mod:`optparse` to " +"take the next argument (or the remainder of the current argument), ensure " +"that it is of the correct type, and store it to your chosen destination." +msgstr "" + +msgid "For example::" +msgstr "Dla przykładu::" + +msgid "" +"Now let's make up a fake command line and ask :mod:`optparse` to parse it::" +msgstr "" + +msgid "" +"When :mod:`optparse` sees the option string ``-f``, it consumes the next " +"argument, ``foo.txt``, and stores it in ``options.filename``. So, after " +"this call to :meth:`parse_args`, ``options.filename`` is ``\"foo.txt\"``." +msgstr "" + +msgid "" +"Some other option types supported by :mod:`optparse` are ``int`` and " +"``float``. Here's an option that expects an integer argument::" +msgstr "" + +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``." +msgstr "" + +msgid "" +"Let's parse another fake command-line. This time, we'll jam the option " +"argument right up against the option: since ``-n42`` (one argument) is " +"equivalent to ``-n 42`` (two arguments), the code ::" +msgstr "" + +msgid "will print ``42``." +msgstr "" + +msgid "" +"If you don't specify a type, :mod:`optparse` assumes ``string``. Combined " +"with the fact that the default action is ``store``, that means our first " +"example can be a lot shorter::" +msgstr "" + +msgid "" +"If you don't supply a destination, :mod:`optparse` figures out a sensible " +"default from the option strings: if the first long option string is ``--foo-" +"bar``, then the default destination is ``foo_bar``. If there are no long " +"option strings, :mod:`optparse` looks at the first short option string: the " +"default destination for ``-f`` is ``f``." +msgstr "" + +msgid "" +":mod:`optparse` also includes the built-in ``complex`` type. Adding types " +"is covered in section :ref:`optparse-extending-optparse`." +msgstr "" + +msgid "Handling boolean (flag) options" +msgstr "" + +msgid "" +"Flag options---set a variable to true or false when a particular option is " +"seen---are quite common. :mod:`optparse` supports them with two separate " +"actions, ``store_true`` and ``store_false``. For example, you might have a " +"``verbose`` flag that is turned on with ``-v`` and off with ``-q``::" +msgstr "" + +msgid "" +"Here we have two different options with the same destination, which is " +"perfectly OK. (It just means you have to be a bit careful when setting " +"default values---see below.)" +msgstr "" + +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``." +msgstr "" + +msgid "Other actions" +msgstr "" + +msgid "Some other actions supported by :mod:`optparse` are:" +msgstr "" + +msgid "``\"store_const\"``" +msgstr "" + +msgid "store a constant value, pre-set via :attr:`Option.const`" +msgstr "" + +msgid "``\"append\"``" +msgstr "" + +msgid "append this option's argument to a list" +msgstr "" + +msgid "``\"count\"``" +msgstr "" + +msgid "increment a counter by one" +msgstr "" + +msgid "``\"callback\"``" +msgstr "" + +msgid "call a specified function" +msgstr "" + +msgid "" +"These are covered in section :ref:`optparse-reference-guide`, and " +"section :ref:`optparse-option-callbacks`." +msgstr "" + +msgid "Default values" +msgstr "" + +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 " +"control. :mod:`optparse` lets you supply a default value for each " +"destination, which is assigned before the command line is parsed." +msgstr "" + +msgid "" +"First, consider the verbose/quiet example. If we want :mod:`optparse` to " +"set ``verbose`` to ``True`` unless ``-q`` is seen, then we can do this::" +msgstr "" + +msgid "" +"Since default values apply to the *destination* rather than to any " +"particular option, and these two options happen to have the same " +"destination, this is exactly equivalent::" +msgstr "" + +msgid "Consider this::" +msgstr "" + +msgid "" +"Again, the default value for ``verbose`` will be ``True``: the last default " +"value supplied for any particular destination is the one that counts." +msgstr "" + +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`::" +msgstr "" + +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." +msgstr "" + +msgid "Generating help" +msgstr "" + +msgid "" +":mod:`optparse`'s ability to generate help and usage text automatically is " +"useful for creating user-friendly command-line interfaces. All you have to " +"do is supply a :attr:`~Option.help` value for each option, and optionally a " +"short usage message for your whole program. Here's an OptionParser " +"populated with user-friendly (documented) options::" +msgstr "" + +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:" +msgstr "" + +msgid "" +"(If the help output is triggered by a help option, :mod:`optparse` exits " +"after printing the help text.)" +msgstr "" + +msgid "" +"There's a lot going on here to help :mod:`optparse` generate the best " +"possible help message:" +msgstr "" + +msgid "the script defines its own usage message::" +msgstr "" + +msgid "" +":mod:`optparse` expands ``%prog`` in the usage string to the name of the " +"current program, i.e. ``os.path.basename(sys.argv[0])``. The expanded " +"string is then printed before the detailed option help." +msgstr "" + +msgid "" +"If you don't supply a usage string, :mod:`optparse` uses a bland but " +"sensible default: ``\"Usage: %prog [options]\"``, which is fine if your " +"script doesn't take any positional arguments." +msgstr "" + +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." +msgstr "" + +msgid "" +"options that take a value indicate this fact in their automatically " +"generated help message, e.g. for the \"mode\" option::" +msgstr "" + +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::" +msgstr "" + +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 " +"users." +msgstr "" + +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 " +"``None``), ``%default`` expands to ``none``." +msgstr "" + +msgid "Grouping Options" +msgstr "" + +msgid "" +"When dealing with many options, it is convenient to group these options for " +"better help output. An :class:`OptionParser` can contain several option " +"groups, each of which can contain several options." +msgstr "" + +msgid "An option group is obtained using the class :class:`OptionGroup`:" +msgstr "" + +msgid "where" +msgstr "" + +msgid "" +"parser is the :class:`OptionParser` instance the group will be inserted in to" +msgstr "" + +msgid "title is the group title" +msgstr "" + +msgid "description, optional, is a long description of the group" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Continuing with the parser defined in the previous section, adding " +"an :class:`OptionGroup` to a parser is easy::" +msgstr "" + +msgid "This would result in the following help output:" +msgstr "" + +msgid "" +"A bit more complete example might involve using more than one group: still " +"extending the previous example::" +msgstr "" + +msgid "that results in the following output:" +msgstr "" + +msgid "" +"Another interesting method, in particular when working programmatically with " +"option groups is:" +msgstr "" + +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``." +msgstr "" + +msgid "Printing a version string" +msgstr "" + +msgid "" +"Similar to the brief usage string, :mod:`optparse` can also print a version " +"string for your program. You have to supply the string as the ``version`` " +"argument to OptionParser::" +msgstr "" + +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`` string (by replacing ``%prog``), prints it to stdout, and exits." +msgstr "" + +msgid "For example, if your script is called ``/usr/bin/foo``:" +msgstr "" + +msgid "" +"The following two methods can be used to print and get the ``version`` " +"string:" +msgstr "" + +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 " +"program. Does nothing if ``self.version`` is empty or undefined." +msgstr "" + +msgid "" +"Same as :meth:`print_version` but returns the version string instead of " +"printing it." +msgstr "" + +msgid "How :mod:`optparse` handles errors" +msgstr "" + +msgid "" +"There are two broad classes of errors that :mod:`optparse` has to worry " +"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." +msgstr "" + +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`` " +"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 " +"error condition::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Consider the first example above, where the user passes ``4x`` to an option " +"that takes an integer:" +msgstr "" + +msgid "Or, where the user fails to pass a value at all:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Putting it all together" +msgstr "" + +msgid "Here's what :mod:`optparse`\\ -based scripts usually look like::" +msgstr "" + +msgid "Reference Guide" +msgstr "" + +msgid "Creating the parser" +msgstr "" + +msgid "" +"The first step in using :mod:`optparse` is to create an OptionParser " +"instance." +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." +msgstr "" + +msgid "``usage`` (default: ``\"%prog [options]\"``)" +msgstr "" + +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 " +"value :data:`optparse.SUPPRESS_USAGE`." +msgstr "" + +msgid "``option_list`` (default: ``[]``)" +msgstr "" + +msgid "" +"A list of Option objects to populate the parser with. The options in " +"``option_list`` are added after any options in ``standard_option_list`` (a " +"class attribute that may be set by OptionParser subclasses), but before any " +"version or help options. Deprecated; use :meth:`add_option` after creating " +"the parser instead." +msgstr "" + +msgid "``option_class`` (default: optparse.Option)" +msgstr "" + +msgid "Class to use when adding options to the parser in :meth:`add_option`." +msgstr "" + +msgid "``version`` (default: ``None``)" +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``." +msgstr "" + +msgid "``conflict_handler`` (default: ``\"error\"``)" +msgstr "" + +msgid "" +"Specifies what to do when options with conflicting option strings are added " +"to the parser; see section :ref:`optparse-conflicts-between-options`." +msgstr "" + +msgid "``description`` (default: ``None``)" +msgstr "" + +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 " +"when the user requests help (after ``usage``, but before the list of " +"options)." +msgstr "" + +msgid "``formatter`` (default: a new :class:`IndentedHelpFormatter`)" +msgstr "" + +msgid "" +"An instance of optparse.HelpFormatter that will be used for printing help " +"text. :mod:`optparse` provides two concrete classes for this purpose: " +"IndentedHelpFormatter and TitledHelpFormatter." +msgstr "" + +msgid "``add_help_option`` (default: ``True``)" +msgstr "" + +msgid "" +"If true, :mod:`optparse` will add a help option (with option strings ``-h`` " +"and ``--help``) to the parser." +msgstr "" + +msgid "``prog``" +msgstr "``prog``" + +msgid "" +"The string to use when expanding ``%prog`` in ``usage`` and ``version`` " +"instead of ``os.path.basename(sys.argv[0])``." +msgstr "" + +msgid "``epilog`` (default: ``None``)" +msgstr "" + +msgid "A paragraph of help text to print after the option help." +msgstr "" + +msgid "Populating the parser" +msgstr "" + +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:" +msgstr "" + +msgid "pass it an Option instance (as returned by :func:`make_option`)" +msgstr "" + +msgid "" +"pass it any combination of positional and keyword arguments that are " +"acceptable to :func:`make_option` (i.e., to the Option constructor), and it " +"will create the Option instance for you" +msgstr "" + +msgid "" +"The other alternative is to pass a list of pre-constructed Option instances " +"to the OptionParser constructor, as in::" +msgstr "" + +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.)" +msgstr "" + +msgid "Defining options" +msgstr "" + +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." +msgstr "" + +msgid "" +"The canonical way to create an :class:`Option` instance is with " +"the :meth:`add_option` method of :class:`OptionParser`." +msgstr "" + +msgid "To define an option with only a short option string::" +msgstr "" + +msgid "And to define an option with only a long option string::" +msgstr "" + +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." +msgstr "" + +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 " +"into :mod:`optparse` are:" +msgstr "" + +msgid "``\"store\"``" +msgstr "" + +msgid "store this option's argument (default)" +msgstr "" + +msgid "``\"store_true\"``" +msgstr "" + +msgid "store ``True``" +msgstr "store ``True``" + +msgid "``\"store_false\"``" +msgstr "" + +msgid "store ``False``" +msgstr "store ``False``" + +msgid "``\"append_const\"``" +msgstr "" + +msgid "append a constant value to a list, pre-set via :attr:`Option.const`" +msgstr "" + +msgid "``\"help\"``" +msgstr "" + +msgid "" +"print a usage message including all options and the documentation for them" +msgstr "" + +msgid "" +"(If you don't supply an action, the default is ``\"store\"``. For this " +"action, you may also supply :attr:`~Option.type` and :attr:`~Option.dest` " +"option attributes; see :ref:`optparse-standard-option-actions`.)" +msgstr "" + +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` (destination) option attribute." +msgstr "" + +msgid "For example, when you call ::" +msgstr "" + +msgid "" +"one of the first things :mod:`optparse` does is create the ``options`` " +"object::" +msgstr "" + +msgid "If one of the options in this parser is defined with ::" +msgstr "" + +msgid "and the command-line being parsed includes any of the following::" +msgstr "" + +msgid "" +"then :mod:`optparse`, on seeing this option, will do the equivalent of ::" +msgstr "" + +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." +msgstr "" + +msgid "Option attributes" +msgstr "" + +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 " +"attribute, :mod:`optparse` raises :exc:`OptionError`." +msgstr "" + +msgid "(default: ``\"store\"``)" +msgstr "(default: ``\"store\"``)" + +msgid "" +"Determines :mod:`optparse`'s behaviour when this option is seen on the " +"command line; the available options are documented :ref:`here `." +msgstr "" + +msgid "(default: ``\"string\"``)" +msgstr "(default: ``\"string\"``)" + +msgid "" +"The argument type expected by this option (e.g., ``\"string\"`` or " +"``\"int\"``); the available option types are documented :ref:`here `." +msgstr "" + +msgid "(default: derived from option strings)" +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." +msgstr "" + +msgid "" +"The value to use for this option's destination if the option is not seen on " +"the command line. See also :meth:`OptionParser.set_defaults`." +msgstr "" + +msgid "(default: 1)" +msgstr "" + +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`." +msgstr "" + +msgid "For actions that store a constant value, the constant value to store." +msgstr "" + +msgid "" +"For options of type ``\"choice\"``, the list of strings the user may choose " +"from." +msgstr "" + +msgid "" +"For options with action ``\"callback\"``, the callable to call when this " +"option is seen. See section :ref:`optparse-option-callbacks` for detail on " +"the arguments passed to the callable." +msgstr "" + +msgid "" +"Additional positional and keyword arguments to pass to ``callback`` after " +"the four standard callback arguments." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Stand-in for the option argument(s) to use when printing help text. See " +"section :ref:`optparse-tutorial` for an example." +msgstr "" + +msgid "Standard option actions" +msgstr "" + +msgid "" +"The various option actions all have slightly different requirements and " +"effects. Most actions have several relevant option attributes which you may " +"specify to guide :mod:`optparse`'s behaviour; a few have required " +"attributes, which you must specify for any option using that action." +msgstr "" + +msgid "" +"``\"store\"`` " +"[relevant: :attr:`~Option.type`, :attr:`~Option.dest`, :attr:`~Option.nargs`, :attr:`~Option.choices`]" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"If :attr:`~Option.choices` is supplied (a list or tuple of strings), the " +"type defaults to ``\"choice\"``." +msgstr "" + +msgid "If :attr:`~Option.type` is not supplied, it defaults to ``\"string\"``." +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``)." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "As it parses the command line ::" +msgstr "" + +msgid ":mod:`optparse` will set ::" +msgstr "" + +msgid "" +"``\"store_const\"`` [required: :attr:`~Option.const`; " +"relevant: :attr:`~Option.dest`]" +msgstr "" + +msgid "The value :attr:`~Option.const` is stored in :attr:`~Option.dest`." +msgstr "" + +msgid "If ``--noisy`` is seen, :mod:`optparse` will set ::" +msgstr "" + +msgid "``\"store_true\"`` [relevant: :attr:`~Option.dest`]" +msgstr "" + +msgid "" +"A special case of ``\"store_const\"`` that stores ``True`` " +"to :attr:`~Option.dest`." +msgstr "" + +msgid "``\"store_false\"`` [relevant: :attr:`~Option.dest`]" +msgstr "" + +msgid "Like ``\"store_true\"``, but stores ``False``." +msgstr "" + +msgid "" +"``\"append\"`` " +"[relevant: :attr:`~Option.type`, :attr:`~Option.dest`, :attr:`~Option.nargs`, :attr:`~Option.choices`]" +msgstr "" + +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 " +"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`." +msgstr "" + +msgid "" +"The defaults for :attr:`~Option.type` and :attr:`~Option.dest` are the same " +"as for the ``\"store\"`` action." +msgstr "" + +msgid "" +"If ``-t3`` is seen on the command-line, :mod:`optparse` does the equivalent " +"of::" +msgstr "" + +msgid "If, a little later on, ``--tracks=4`` is seen, it does::" +msgstr "" + +msgid "" +"The ``append`` action calls the ``append`` method on the current value of " +"the option. This means that any default value specified must have an " +"``append`` method. It also means that if the default value is non-empty, " +"the default elements will be present in the parsed value for the option, " +"with any values from the command line appended after those default values::" +msgstr "" + +msgid "" +"``\"append_const\"`` [required: :attr:`~Option.const`; " +"relevant: :attr:`~Option.dest`]" +msgstr "" + +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." +msgstr "" + +msgid "``\"count\"`` [relevant: :attr:`~Option.dest`]" +msgstr "" + +msgid "" +"Increment the integer stored at :attr:`~Option.dest`. If no default value " +"is supplied, :attr:`~Option.dest` is set to zero before being incremented " +"the first time." +msgstr "" + +msgid "" +"The first time ``-v`` is seen on the command line, :mod:`optparse` does the " +"equivalent of::" +msgstr "" + +msgid "Every subsequent occurrence of ``-v`` results in ::" +msgstr "" + +msgid "" +"``\"callback\"`` [required: :attr:`~Option.callback`; " +"relevant: :attr:`~Option.type`, :attr:`~Option.nargs`, :attr:`~Option.callback_args`, :attr:`~Option.callback_kwargs`]" +msgstr "" + +msgid "" +"Call the function specified by :attr:`~Option.callback`, which is called " +"as ::" +msgstr "" + +msgid "See section :ref:`optparse-option-callbacks` for more detail." +msgstr "" + +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 " +"every option." +msgstr "" + +msgid "" +"If no :attr:`~Option.help` string is supplied for an option, it will still " +"be listed in the help message. To omit an option entirely, use the special " +"value :data:`optparse.SUPPRESS_HELP`." +msgstr "" + +msgid "" +":mod:`optparse` automatically adds a :attr:`~Option.help` option to all " +"OptionParsers, so you do not normally need to create one." +msgstr "" + +msgid "" +"If :mod:`optparse` sees either ``-h`` or ``--help`` on the command line, it " +"will print something like the following help message to stdout (assuming " +"``sys.argv[0]`` is ``\"foo.py\"``):" +msgstr "" + +msgid "" +"After printing the help message, :mod:`optparse` terminates your process " +"with ``sys.exit(0)``." +msgstr "" + +msgid "``\"version\"``" +msgstr "" + +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, since :mod:`optparse` automatically adds them when needed." +msgstr "" + +msgid "Standard option types" +msgstr "" + +msgid "" +":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 "" + +msgid "" +"Arguments to string options are not checked or converted in any way: the " +"text on the command line is stored in the destination (or passed to the " +"callback) as-is." +msgstr "" + +msgid "Integer arguments (type ``\"int\"``) are parsed as follows:" +msgstr "" + +msgid "if the number starts with ``0x``, it is parsed as a hexadecimal number" +msgstr "" + +msgid "if the number starts with ``0``, it is parsed as an octal number" +msgstr "" + +msgid "if the number starts with ``0b``, it is parsed as a binary number" +msgstr "" + +msgid "otherwise, the number is parsed as a decimal number" +msgstr "" + +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." +msgstr "" + +msgid "" +"``\"float\"`` and ``\"complex\"`` option arguments are converted directly " +"with :func:`float` and :func:`complex`, with similar error-handling." +msgstr "" + +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." +msgstr "" + +msgid "Parsing arguments" +msgstr "Parsowanie argumentów" + +msgid "" +"The whole point of creating and populating an OptionParser is to call " +"its :meth:`parse_args` method::" +msgstr "" + +msgid "where the input parameters are" +msgstr "" + +msgid "``args``" +msgstr "" + +msgid "the list of arguments to process (default: ``sys.argv[1:]``)" +msgstr "" + +msgid "``values``" +msgstr "" + +msgid "" +"an :class:`optparse.Values` object to store option arguments in (default: a " +"new instance of :class:`Values`) -- if you give an existing object, the " +"option defaults will not be initialized on it" +msgstr "" + +msgid "and the return values are" +msgstr "" + +msgid "``options``" +msgstr "" + +msgid "" +"the same object that was passed in as ``values``, or the optparse.Values " +"instance created by :mod:`optparse`" +msgstr "" + +msgid "the leftover positional arguments after all options have been processed" +msgstr "" + +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`." +msgstr "" + +msgid "" +"If :meth:`parse_args` encounters any errors in the argument list, it calls " +"the OptionParser's :meth:`error` method with an appropriate end-user error " +"message. This ultimately terminates your process with an exit status of 2 " +"(the traditional Unix exit status for command-line errors)." +msgstr "" + +msgid "Querying and manipulating your option parser" +msgstr "" + +msgid "" +"The default behavior of the option parser can be customized slightly, and " +"you can also poke around your option parser and see what's there. " +"OptionParser provides several methods to help you out:" +msgstr "" + +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::" +msgstr "" + +msgid "and treats it as equivalent to ::" +msgstr "" + +msgid "" +"To disable this feature, call :meth:`disable_interspersed_args`. This " +"restores traditional Unix syntax, where option parsing stops with the first " +"non-option argument." +msgstr "" + +msgid "" +"Use this if you have a command processor which runs another command which " +"has options of its own and you want to make sure these options don't get " +"confused. For example, each command might have a different set of options." +msgstr "" + +msgid "" +"Set parsing to not stop on the first non-option, allowing interspersing " +"switches with command arguments. This is the default behavior." +msgstr "" + +msgid "" +"Returns the Option instance with the option string *opt_str*, or ``None`` if " +"no options have that option string." +msgstr "" + +msgid "" +"Return ``True`` if the OptionParser has an option with option string " +"*opt_str* (e.g., ``-q`` or ``--verbose``)." +msgstr "" + +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 belonging to this :class:`OptionParser`, raises :exc:`ValueError`." +msgstr "" + +msgid "Conflicts between options" +msgstr "" + +msgid "" +"If you're not careful, it's easy to define options with conflicting option " +"strings::" +msgstr "" + +msgid "" +"(This is particularly true if you've defined your own OptionParser subclass " +"with some standard options.)" +msgstr "" + +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 " +"constructor::" +msgstr "" + +msgid "or with a separate call::" +msgstr "" + +msgid "The available conflict handlers are:" +msgstr "" + +msgid "``\"error\"`` (default)" +msgstr "``\"error\"`` (default)" + +msgid "" +"assume option conflicts are a programming error and " +"raise :exc:`OptionConflictError`" +msgstr "" + +msgid "``\"resolve\"``" +msgstr "" + +msgid "resolve option conflicts intelligently (see below)" +msgstr "" + +msgid "" +"As an example, let's define an :class:`OptionParser` that resolves conflicts " +"intelligently and add conflicting options to it::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"It's possible to whittle away the option strings for a previously added " +"option until there are none left, and the user has no way of invoking that " +"option from the command-line. In that case, :mod:`optparse` removes that " +"option completely, so it doesn't show up in help text or anywhere else. " +"Carrying on with our existing OptionParser::" +msgstr "" + +msgid "" +"At this point, the original ``-n``/``--dry-run`` option is no longer " +"accessible, so :mod:`optparse` removes it, leaving this help text::" +msgstr "" + +msgid "Cleanup" +msgstr "" + +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." +msgstr "" + +msgid "Other methods" +msgstr "" + +msgid "OptionParser supports several other public methods:" +msgstr "" + +msgid "" +"Set the usage string according to the rules described above for the " +"``usage`` constructor keyword argument. Passing ``None`` sets the default " +"usage string; use :data:`optparse.SUPPRESS_USAGE` to suppress a usage " +"message." +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." +msgstr "" + +msgid "" +"Same as :meth:`print_usage` but returns the usage string instead of printing " +"it." +msgstr "" + +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::" +msgstr "" + +msgid "To avoid this confusion, use :meth:`set_defaults`::" +msgstr "" + +msgid "Option Callbacks" +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." +msgstr "" + +msgid "There are two steps to defining a callback option:" +msgstr "" + +msgid "define the option itself using the ``\"callback\"`` action" +msgstr "" + +msgid "" +"write the callback; this is a function (or method) that takes at least four " +"arguments, as described below" +msgstr "" + +msgid "Defining a callback option" +msgstr "" + +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 call::" +msgstr "" + +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 " +"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." +msgstr "" + +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::" +msgstr "" + +msgid "The four arguments to a callback are described below." +msgstr "" + +msgid "" +"There are several other option attributes that you can supply when you " +"define a callback option:" +msgstr "" + +msgid ":attr:`~Option.type`" +msgstr ":attr:`~Option.type`" + +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, though, :mod:`optparse` passes it to your callback function." +msgstr "" + +msgid ":attr:`~Option.nargs`" +msgstr ":attr:`~Option.nargs`" + +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." +msgstr "" + +msgid ":attr:`~Option.callback_args`" +msgstr ":attr:`~Option.callback_args`" + +msgid "a tuple of extra positional arguments to pass to the callback" +msgstr "" + +msgid ":attr:`~Option.callback_kwargs`" +msgstr ":attr:`~Option.callback_kwargs`" + +msgid "a dictionary of extra keyword arguments to pass to the callback" +msgstr "" + +msgid "How callbacks are called" +msgstr "" + +msgid "All callbacks are called as follows::" +msgstr "" + +msgid "``option``" +msgstr "" + +msgid "is the Option instance that's calling the callback" +msgstr "" + +msgid "``opt_str``" +msgstr "" + +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\"``.)" +msgstr "" + +msgid "``value``" +msgstr "" + +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." +msgstr "" + +msgid "``parser``" +msgstr "" + +msgid "" +"is the OptionParser instance driving the whole thing, mainly useful because " +"you can access some other interesting data through its instance attributes:" +msgstr "" + +msgid "``parser.largs``" +msgstr "" + +msgid "" +"the current list of leftover arguments, ie. arguments that have been " +"consumed but are neither options nor option arguments. Feel free to modify " +"``parser.largs``, e.g. by adding more arguments to it. (This list will " +"become ``args``, the second return value of :meth:`parse_args`.)" +msgstr "" + +msgid "``parser.rargs``" +msgstr "" + +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." +msgstr "" + +msgid "``parser.values``" +msgstr "" + +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." +msgstr "" + +msgid "" +"is a tuple of arbitrary positional arguments supplied via " +"the :attr:`~Option.callback_args` option attribute." +msgstr "" + +msgid "``kwargs``" +msgstr "``kwargs``" + +msgid "" +"is a dictionary of arbitrary keyword arguments supplied " +"via :attr:`~Option.callback_kwargs`." +msgstr "" + +msgid "Raising errors in a callback" +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." +msgstr "" + +msgid "Callback example 1: trivial callback" +msgstr "" + +msgid "" +"Here's an example of a callback option that takes no arguments, and simply " +"records that the option was seen::" +msgstr "" + +msgid "Of course, you could do that with the ``\"store_true\"`` action." +msgstr "" + +msgid "Callback example 2: check option order" +msgstr "" + +msgid "" +"Here's a slightly more interesting example: record the fact that ``-a`` is " +"seen, but blow up if it comes after ``-b`` in the command-line. ::" +msgstr "" + +msgid "Callback example 3: check option order (generalized)" +msgstr "" + +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 " +"error message and the flag that it sets must be generalized. ::" +msgstr "" + +msgid "Callback example 4: check arbitrary condition" +msgstr "" + +msgid "" +"Of course, you could put any condition in there---you're not limited to " +"checking the values of already-defined options. For example, if you have " +"options that should not be called when the moon is full, all you have to do " +"is this::" +msgstr "" + +msgid "" +"(The definition of ``is_moon_full()`` is left as an exercise for the reader.)" +msgstr "" + +msgid "Callback example 5: fixed arguments" +msgstr "" + +msgid "" +"Things get slightly more interesting when you define callback options that " +"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." +msgstr "" + +msgid "" +"Here's an example that just emulates the standard ``\"store\"`` action::" +msgstr "" + +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; " +"obviously you don't need a callback for this example.)" +msgstr "" + +msgid "Callback example 6: variable arguments" +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 implement the conventional rules for bare ``--`` and ``-`` arguments:" +msgstr "" + +msgid "either ``--`` or ``-`` can be option arguments" +msgstr "" + +msgid "" +"bare ``--`` (if not the argument to some option): halt command-line " +"processing and discard the ``--``" +msgstr "" + +msgid "" +"bare ``-`` (if not the argument to some option): halt command-line " +"processing but keep the ``-`` (append it to ``parser.largs``)" +msgstr "" + +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)." +msgstr "" + +msgid "" +"Nevertheless, here's a stab at a callback for an option with variable " +"arguments::" +msgstr "" + +msgid "Extending :mod:`optparse`" +msgstr "" + +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." +msgstr "" + +msgid "Adding new types" +msgstr "" + +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`." +msgstr "" + +msgid "" +"A tuple of type names; in your subclass, simply define a new " +"tuple :attr:`TYPES` that builds on the standard one." +msgstr "" + +msgid "" +"A dictionary mapping type names to type-checking functions. A type-checking " +"function has the following signature::" +msgstr "" + +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 " +"``value`` parameter." +msgstr "" + +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." +msgstr "" + +msgid "" +"Here's a silly example that demonstrates adding a ``\"complex\"`` option " +"type to parse Python-style complex numbers on the command line. (This is " +"even sillier than it used to be, because :mod:`optparse` 1.3 added built-in " +"support for complex numbers, but never mind.)" +msgstr "" + +msgid "First, the necessary imports::" +msgstr "" + +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)::" +msgstr "" + +msgid "Finally, the Option subclass::" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"That's it! Now you can write a script that uses the new option type just " +"like any other :mod:`optparse`\\ -based script, except you have to instruct " +"your OptionParser to use MyOption instead of Option::" +msgstr "" + +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::" +msgstr "" + +msgid "Adding new actions" +msgstr "" + +msgid "" +"Adding new actions is a bit trickier, because you have to understand " +"that :mod:`optparse` has a couple of classifications for actions:" +msgstr "" + +msgid "\"store\" actions" +msgstr "" + +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." +msgstr "" + +msgid "\"typed\" actions" +msgstr "" + +msgid "" +"actions that take a value from the command line and expect it to be of a " +"certain type; or rather, a string that can be converted to a certain type. " +"These options require a :attr:`~Option.type` attribute to the Option " +"constructor." +msgstr "" + +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\"``." +msgstr "" + +msgid "" +"When you add an action, you need to categorize it by listing it in at least " +"one of the following class attributes of Option (all are lists of strings):" +msgstr "" + +msgid "All actions must be listed in ACTIONS." +msgstr "" + +msgid "\"store\" actions are additionally listed here." +msgstr "" + +msgid "\"typed\" actions are additionally listed here." +msgstr "" + +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` " +"assigns the default type, ``\"string\"``, to options with no explicit type " +"whose action is listed in :attr:`ALWAYS_TYPED_ACTIONS`." +msgstr "" + +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." +msgstr "" + +msgid "" +"For example, let's add an ``\"extend\"`` action. This is similar to the " +"standard ``\"append\"`` action, but instead of taking a single value from " +"the command-line and appending it to an existing list, ``\"extend\"`` will " +"take multiple values in a single comma-delimited string, and extend an " +"existing list with them. That is, if ``--names`` is an ``\"extend\"`` " +"option of type ``\"string\"``, the command line ::" +msgstr "" + +msgid "would result in a list ::" +msgstr "" + +msgid "Again we define a subclass of Option::" +msgstr "" + +msgid "Features of note:" +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"``values`` is an instance of the optparse_parser.Values class, which " +"provides the very useful :meth:`ensure_value` method. :meth:`ensure_value` " +"is essentially :func:`getattr` with a safety valve; it is called as ::" +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." +msgstr "" diff --git a/library/os.po b/library/os.po new file mode 100644 index 0000000000..62d36600bb --- /dev/null +++ b/library/os.po @@ -0,0 +1,4445 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`os` --- Miscellaneous operating system interfaces" +msgstr "" + +msgid "**Source code:** :source:`Lib/os.py`" +msgstr "**Kod źródłowy:** :source:`Lib/os.py`" + +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." +msgstr "" + +msgid "Notes on the availability of these functions:" +msgstr "" + +msgid "" +"The design of all built-in operating system dependent modules of Python is " +"such that as long as the same functionality is available, it uses the same " +"interface; for example, the function ``os.stat(path)`` returns stat " +"information about *path* in the same format (which happens to have " +"originated with the POSIX interface)." +msgstr "" + +msgid "" +"Extensions peculiar to a particular operating system are also available " +"through the :mod:`os` module, but using them is of course a threat to " +"portability." +msgstr "" + +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." +msgstr "" + +msgid "" +"On VxWorks, os.popen, os.fork, os.execv and os.spawn*p* are not supported." +msgstr "" + +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." +msgstr "" + +msgid "An alias for the built-in :exc:`OSError` exception." +msgstr "" + +msgid "" +"The name of the operating system dependent module imported. The following " +"names have currently been registered: ``'posix'``, ``'nt'``, ``'java'``." +msgstr "" + +msgid "" +":attr:`sys.platform` has a finer granularity. :func:`os.uname` gives system-" +"dependent version information." +msgstr "" + +msgid "" +"The :mod:`platform` module provides detailed checks for the system's " +"identity." +msgstr "" + +msgid "File Names, Command Line Arguments, and Environment Variables" +msgstr "" + +msgid "" +"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 :term:`filesystem encoding and error handler` to perform " +"this conversion (see :func:`sys.getfilesystemencoding`)." +msgstr "" + +msgid "" +"The :term:`filesystem encoding and error handler` are configured at Python " +"startup by the :c:func:`PyConfig_Read` function: " +"see :c:member:`~PyConfig.filesystem_encoding` " +"and :c:member:`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The :term:`file system encoding ` " +"must guarantee to successfully decode all bytes below 128. If the file " +"system encoding fails to provide this guarantee, API functions can " +"raise :exc:`UnicodeError`." +msgstr "" + +msgid "See also the :term:`locale encoding`." +msgstr "" + +msgid "Python UTF-8 Mode" +msgstr "" + +msgid "See :pep:`540` for more details." +msgstr "" + +msgid "" +"The Python UTF-8 Mode ignores the :term:`locale encoding` and forces the " +"usage of the UTF-8 encoding:" +msgstr "" + +msgid "" +"Use UTF-8 as the :term:`filesystem encoding `." +msgstr "" + +msgid ":func:`sys.getfilesystemencoding()` returns ``'UTF-8'``." +msgstr "" + +msgid "" +":func:`locale.getpreferredencoding()` returns ``'UTF-8'`` (the " +"*do_setlocale* argument has no effect)." +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)" +msgstr "" + +msgid "" +"On Unix, :func:`os.device_encoding` returns ``'UTF-8'`` rather than the " +"device encoding." +msgstr "" + +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 mode)." +msgstr "" + +msgid "" +"As a consequence of the changes in those lower level APIs, other higher " +"level APIs also exhibit different default behaviours:" +msgstr "" + +msgid "" +"Command line arguments, environment variables and filenames are decoded to " +"text using the UTF-8 encoding." +msgstr "" + +msgid ":func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding." +msgstr "" + +msgid "" +":func:`open()`, :func:`io.open()`, and :func:`codecs.open()` use the UTF-8 " +"encoding by default. However, they still use the strict error handler by " +"default so that attempting to open a binary file in text mode is likely to " +"raise an exception rather than producing nonsense data." +msgstr "" + +msgid "" +"The :ref:`Python UTF-8 Mode ` is enabled if the LC_CTYPE locale " +"is ``C`` or ``POSIX`` at Python startup (see the :c:func:`PyConfig_Read` " +"function)." +msgstr "" + +msgid "" +"It can be enabled or disabled using the :option:`-X utf8 <-X>` command line " +"option and the :envvar:`PYTHONUTF8` environment variable." +msgstr "" + +msgid "" +"If the :envvar:`PYTHONUTF8` 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." +msgstr "" + +msgid "" +"The Python UTF-8 Mode can only be enabled at the Python startup. Its value " +"can be read from :data:`sys.flags.utf8_mode `." +msgstr "" + +msgid "" +"See also the :ref:`UTF-8 mode on Windows ` and " +"the :term:`filesystem encoding and error handler`." +msgstr "" + +msgid "Process Parameters" +msgstr "" + +msgid "" +"These functions and data items provide information and operate on the " +"current process and user." +msgstr "" + +msgid "" +"Return the filename corresponding to the controlling terminal of the process." +msgstr "" + +msgid ":ref:`Availability `: Unix." +msgstr "" + +msgid "" +"A :term:`mapping` object where keys and values are strings that represent " +"the process environment. For example, ``environ['HOME']`` is the pathname " +"of your home directory (on some platforms), and is equivalent to " +"``getenv(\"HOME\")`` in C." +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 :data:`os.environ`, except for changes made by " +"modifying :data:`os.environ` directly." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "" +"On Unix, keys and values use :func:`sys.getfilesystemencoding` and " +"``'surrogateescape'`` error handler. Use :data:`environb` if you would like " +"to use a different encoding." +msgstr "" + +msgid "" +"On Windows, the keys are converted to uppercase. This also applies when " +"getting, setting, or deleting an item. For example, ``environ['monty'] = " +"'python'`` maps the key ``'MONTY'`` to the value ``'python'``." +msgstr "" + +msgid "" +"Calling :func:`putenv` directly does not change :data:`os.environ`, so it's " +"better to modify :data:`os.environ`." +msgstr "" + +msgid "" +"On some platforms, including FreeBSD and macOS, setting ``environ`` may " +"cause memory leaks. Refer to the system documentation for :c:func:`putenv`." +msgstr "" + +msgid "" +"You can delete items in this mapping to unset environment " +"variables. :func:`unsetenv` will be called automatically when an item is " +"deleted from :data:`os.environ`, and when one of the :meth:`pop` " +"or :meth:`clear` methods is called." +msgstr "" + +msgid "" +"Updated to support :pep:`584`'s merge (``|``) and update (``|=``) operators." +msgstr "" + +msgid "" +"Bytes version of :data:`environ`: a :term:`mapping` object where both keys " +"and values are :class:`bytes` objects representing the process " +"environment. :data:`environ` and :data:`environb` are synchronized " +"(modifying :data:`environb` updates :data:`environ`, and vice versa)." +msgstr "" + +msgid "" +":data:`environb` is only available if :data:`supports_bytes_environ` is " +"``True``." +msgstr "" + +msgid "These functions are described in :ref:`os-file-dir`." +msgstr "" + +msgid "" +"Encode :term:`path-like ` *filename* to " +"the :term:`filesystem encoding and error handler`; return :class:`bytes` " +"unchanged." +msgstr "" + +msgid ":func:`fsdecode` is the reverse function." +msgstr "" + +msgid "" +"Support added to accept objects implementing the :class:`os.PathLike` " +"interface." +msgstr "" + +msgid "" +"Decode the :term:`path-like ` *filename* from " +"the :term:`filesystem encoding and error handler`; return :class:`str` " +"unchanged." +msgstr "" + +msgid ":func:`fsencode` is the reverse function." +msgstr "" + +msgid "Return the file system representation of the path." +msgstr "" + +msgid "" +"If :class:`str` or :class:`bytes` is passed in, it is returned unchanged. " +"Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is " +"returned as long as it is a :class:`str` or :class:`bytes` object. In all " +"other cases, :exc:`TypeError` is raised." +msgstr "" + +msgid "" +"An :term:`abstract base class` for objects representing a file system path, " +"e.g. :class:`pathlib.PurePath`." +msgstr "" + +msgid "Return the file system path representation of the object." +msgstr "" + +msgid "" +"The method should only return a :class:`str` or :class:`bytes` object, with " +"the preference being for :class:`str`." +msgstr "" + +msgid "" +"Return the value of the environment variable *key* as a string if it exists, " +"or *default* if it doesn't. *key* is a string. Note that " +"since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` " +"is similarly also captured on import, and the function may not reflect " +"future environment changes." +msgstr "" + +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." +msgstr "" + +msgid ":ref:`Availability `: most flavors of Unix, Windows." +msgstr "" + +msgid "" +"Return the value of the environment variable *key* as bytes if it exists, or " +"*default* if it doesn't. *key* must be bytes. Note that " +"since :func:`getenvb` uses :data:`os.environb`, the mapping " +"of :func:`getenvb` is similarly also captured on import, and the function " +"may not reflect future environment changes." +msgstr "" + +msgid "" +":func:`getenvb` is only available if :data:`supports_bytes_environ` is " +"``True``." +msgstr "" + +msgid ":ref:`Availability `: most flavors of Unix." +msgstr "" + +msgid "" +"Returns the list of directories that will be searched for a named " +"executable, similar to a shell, when launching a process. *env*, when " +"specified, should be an environment variable dictionary to lookup the PATH " +"in. By default, when *env* is ``None``, :data:`environ` is used." +msgstr "" + +msgid "" +"Return the effective group id of the current process. This corresponds to " +"the \"set id\" bit on the file being executed in the current process." +msgstr "" + +msgid "Return the current process's effective user id." +msgstr "" + +msgid "Return the real group id of the current process." +msgstr "" + +msgid "" +"Return list of group ids that *user* belongs to. If *group* is not in the " +"list, it is included; typically, *group* is specified as the group ID field " +"from the password record for *user*." +msgstr "" + +msgid "" +"Return list of supplemental group ids associated with the current process." +msgstr "" + +msgid "" +"On macOS, :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 " +"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`." +msgstr "" + +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." +msgstr "" + +msgid ":ref:`Availability `: Unix, Windows." +msgstr "" + +msgid "" +"Return the process group id of the process with process id *pid*. If *pid* " +"is 0, the process group id of the current process is returned." +msgstr "" + +msgid "Return the id of the current process group." +msgstr "" + +msgid "Return the current process id." +msgstr "Zwróci ID aktualnego procesu." + +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 " +"the same id, which may be already reused by another process." +msgstr "" + +msgid "Added support for Windows." +msgstr "Dodane wsparcie dla Windowsa." + +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 "" + +msgid "" +"Parameters for the :func:`getpriority` and :func:`setpriority` functions." +msgstr "" + +msgid "" +"Return a tuple (ruid, euid, suid) denoting the current process's real, " +"effective, and saved user ids." +msgstr "" + +msgid "" +"Return a tuple (rgid, egid, sgid) denoting the current process's real, " +"effective, and saved group ids." +msgstr "" + +msgid "Return the current process's real user id." +msgstr "" + +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 " +"group id." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Assignments to items in :data:`os.environ` are automatically translated into " +"corresponding calls to :func:`putenv`; however, calls to :func:`putenv` " +"don't update :data:`os.environ`, so it is actually preferable to assign to " +"items of :data:`os.environ`. This also applies to :func:`getenv` " +"and :func:`getenvb`, which respectively use :data:`os.environ` " +"and :data:`os.environb` in their implementations." +msgstr "" + +msgid "" +"On some platforms, including FreeBSD and macOS, setting ``environ`` may " +"cause memory leaks. Refer to the system documentation for :c:func:`putenv`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.putenv`` with arguments " +"``key``, ``value``." +msgstr "" + +msgid "The function is now always available." +msgstr "" + +msgid "Set the current process's effective group id." +msgstr "" + +msgid "Set the current process's effective user id." +msgstr "" + +msgid "Set the current process' group id." +msgstr "" + +msgid "" +"Set the list of supplemental group ids associated with the current process " +"to *groups*. *groups* must be a sequence, and each element must be an " +"integer identifying a group. This operation is typically available only to " +"the superuser." +msgstr "" + +msgid "" +"On macOS, the length of *groups* may not exceed the system-defined maximum " +"number of effective group ids, typically 16. See the documentation " +"for :func:`getgroups` for cases where it may not return the same group list " +"set by calling setgroups()." +msgstr "" + +msgid "" +"Call the system call :c:func:`setpgrp` or ``setpgrp(0, 0)`` depending on " +"which version is implemented (if any). See the Unix manual for the " +"semantics." +msgstr "" + +msgid "" +"Call the system call :c:func:`setpgid` to set the process group id of the " +"process with id *pid* to the process group with id *pgrp*. See the Unix " +"manual for the semantics." +msgstr "" + +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 "" + +msgid "Set the current process's real and effective group ids." +msgstr "" + +msgid "Set the current process's real, effective, and saved group ids." +msgstr "" + +msgid "Set the current process's real, effective, and saved user ids." +msgstr "" + +msgid "Set the current process's real and effective user ids." +msgstr "" + +msgid "" +"Call the system call :c:func:`getsid`. See the Unix manual for the " +"semantics." +msgstr "" + +msgid "" +"Call the system call :c:func:`setsid`. See the Unix manual for the " +"semantics." +msgstr "" + +msgid "Set the current process's user id." +msgstr "" + +msgid "" +"Return the error message corresponding to the error code in *code*. On " +"platforms where :c:func:`strerror` returns ``NULL`` when given an unknown " +"error number, :exc:`ValueError` is raised." +msgstr "" + +msgid "" +"``True`` if the native OS type of the environment is bytes (eg. ``False`` on " +"Windows)." +msgstr "" + +msgid "Set the current numeric umask and return the previous umask." +msgstr "" + +msgid "" +"Returns information identifying the current operating system. The return " +"value is an object with five attributes:" +msgstr "" + +msgid ":attr:`sysname` - operating system name" +msgstr "" + +msgid ":attr:`nodename` - name of machine on network (implementation-defined)" +msgstr "" + +msgid ":attr:`release` - operating system release" +msgstr "" + +msgid ":attr:`version` - operating system version" +msgstr "" + +msgid ":attr:`machine` - hardware identifier" +msgstr "" + +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." +msgstr "" + +msgid "" +"Some systems truncate :attr:`nodename` to 8 characters or to the leading " +"component; a better way to get the hostname is :func:`socket.gethostname` " +"or even ``socket.gethostbyaddr(socket.gethostname())``." +msgstr "" + +msgid ":ref:`Availability `: recent flavors of Unix." +msgstr "" + +msgid "" +"Return type changed from a tuple to a tuple-like object with named " +"attributes." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Deletion of items in :data:`os.environ` is automatically translated into a " +"corresponding call to :func:`unsetenv`; however, calls to :func:`unsetenv` " +"don't update :data:`os.environ`, so it is actually preferable to delete " +"items of :data:`os.environ`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.unsetenv`` with argument " +"``key``." +msgstr "" + +msgid "The function is now always available and is also available on Windows." +msgstr "" + +msgid "File Object Creation" +msgstr "" + +msgid "" +"These functions create new :term:`file objects `. (See " +"also :func:`~os.open` for opening file descriptors.)" +msgstr "" + +msgid "" +"Return an open file object connected to the file descriptor *fd*. This is " +"an alias of the :func:`open` built-in function and accepts the same " +"arguments. The only difference is that the first argument of :func:`fdopen` " +"must always be an integer." +msgstr "" + +msgid "File Descriptor Operations" +msgstr "" + +msgid "" +"These functions operate on I/O streams referenced using file descriptors." +msgstr "" + +msgid "" +"File descriptors are small integers corresponding to a file that has been " +"opened by the current process. For example, standard input is usually file " +"descriptor 0, standard output is 1, and standard error is 2. Further files " +"opened by a process will then be assigned 3, 4, 5, and so forth. The name " +"\"file descriptor\" is slightly deceptive; on Unix platforms, sockets and " +"pipes are also referenced by file descriptors." +msgstr "" + +msgid "" +"The :meth:`~io.IOBase.fileno` method can be used to obtain the file " +"descriptor associated with a :term:`file object` when required. Note that " +"using the file descriptor directly will bypass the file object methods, " +"ignoring aspects such as internal buffering of data." +msgstr "" + +msgid "Close file descriptor *fd*." +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 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." +msgstr "" + +msgid "" +"Close all file descriptors from *fd_low* (inclusive) to *fd_high* " +"(exclusive), ignoring errors. Equivalent to (but much faster than)::" +msgstr "" + +msgid "" +"Copy *count* bytes from file descriptor *src*, starting from offset " +"*offset_src*, to file descriptor *dst*, starting from offset *offset_dst*. " +"If *offset_src* is None, then *src* is read from the current position; " +"respectively for *offset_dst*. The files pointed by *src* and *dst* must " +"reside in the same filesystem, otherwise an :exc:`OSError` is raised " +"with :attr:`~OSError.errno` set to :data:`errno.EXDEV`." +msgstr "" + +msgid "" +"This copy is done without the additional cost of transferring data from the " +"kernel to user space and then back into the kernel. Additionally, some " +"filesystems could implement extra optimizations. The copy is done as if both " +"files are opened as binary." +msgstr "" + +msgid "" +"The return value is the amount of bytes copied. This could be less than the " +"amount requested." +msgstr "" + +msgid "" +":ref:`Availability `: Linux kernel >= 4.5 or glibc >= 2.27." +msgstr "" + +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 "" + +msgid "" +"On Unix, if the :ref:`Python UTF-8 Mode ` is enabled, return " +"``'UTF-8'`` rather than the device encoding." +msgstr "" + +msgid "On Unix, the function now implements the Python UTF-8 Mode." +msgstr "" + +msgid "" +"Return a duplicate of file descriptor *fd*. The new file descriptor " +"is :ref:`non-inheritable `." +msgstr "" + +msgid "" +"On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: " +"stderr), the new file descriptor is :ref:`inheritable `." +msgstr "" + +msgid "The new file descriptor is now non-inheritable." +msgstr "" + +msgid "" +"Duplicate file descriptor *fd* to *fd2*, closing the latter first if " +"necessary. Return *fd2*. The new file descriptor is :ref:`inheritable " +"` by default or non-inheritable if *inheritable* is " +"``False``." +msgstr "" + +msgid "Add the optional *inheritable* parameter." +msgstr "" + +msgid "Return *fd2* on success. Previously, ``None`` was always returned." +msgstr "" + +msgid "" +"Change the mode of the file given by *fd* to the numeric *mode*. See the " +"docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, " +"this is equivalent to ``os.chmod(fd, mode)``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.chmod`` with arguments " +"``path``, ``mode``, ``dir_fd``." +msgstr "" + +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)``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.chown`` with arguments " +"``path``, ``uid``, ``gid``, ``dir_fd``." +msgstr "" + +msgid "" +"Force write of file with filedescriptor *fd* to disk. Does not force update " +"of metadata." +msgstr "" + +msgid "This function is not available on MacOS." +msgstr "Ta funkcja nie jest dostępna w macOS." + +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 " +"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." +msgstr "" + +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." +msgstr "" + +msgid "As of Python 3.3, this is equivalent to ``os.pathconf(fd, name)``." +msgstr "" + +msgid "" +"Get the status of the file descriptor *fd*. Return a :class:`stat_result` " +"object." +msgstr "" + +msgid "As of Python 3.3, this is equivalent to ``os.stat(fd)``." +msgstr "" + +msgid "The :func:`.stat` function." +msgstr "" + +msgid "" +"Return information about the filesystem containing the file associated with " +"file descriptor *fd*, like :func:`statvfs`. As of Python 3.3, this is " +"equivalent to ``os.statvfs(fd)``." +msgstr "" + +msgid "" +"Force write of file with filedescriptor *fd* to disk. On Unix, this calls " +"the native :c:func:`fsync` function; on Windows, the MS :c:func:`_commit` " +"function." +msgstr "" + +msgid "" +"If you're starting with a buffered Python :term:`file object` *f*, first do " +"``f.flush()``, and then do ``os.fsync(f.fileno())``, to ensure that all " +"internal buffers associated with *f* are written to disk." +msgstr "" + +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)``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.truncate`` with arguments " +"``fd``, ``length``." +msgstr "" + +msgid "Added support for Windows" +msgstr "" + +msgid "" +"Get the blocking mode of the file descriptor: ``False`` if " +"the :data:`O_NONBLOCK` flag is set, ``True`` if the flag is cleared." +msgstr "" + +msgid "See also :func:`set_blocking` and :meth:`socket.socket.setblocking`." +msgstr "" + +msgid "" +"Return ``True`` if the file descriptor *fd* is open and connected to a tty(-" +"like) device, else ``False``." +msgstr "" + +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* " +"specifies the section of the file to lock." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.lockf`` with arguments " +"``fd``, ``cmd``, ``len``." +msgstr "" + +msgid "Flags that specify what action :func:`lockf` will take." +msgstr "" + +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 " +"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 "" + +msgid "" +"Parameters to the :func:`lseek` function. Their values are 0, 1, and 2, " +"respectively." +msgstr "" + +msgid "" +"Some operating systems could support additional values, " +"like :data:`os.SEEK_HOLE` or :data:`os.SEEK_DATA`." +msgstr "" + +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 " +"value is first masked out. Return the file descriptor for the newly opened " +"file. The new file descriptor is :ref:`non-inheritable `." +msgstr "" + +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." +msgstr "" + +msgid "" +"This function can support :ref:`paths relative to directory descriptors " +"` with the *dir_fd* parameter." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``open`` with arguments ``path``, " +"``mode``, ``flags``." +msgstr "" +"Rzuca :ref:`auditing event ` ``open`` z argumentami ``path`` , " +"``mode``, ``flags``." + +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 "" + +msgid "The *dir_fd* argument." +msgstr "" + +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 "" +"Jeśli wywołanie systemowe zostanie przerwane, a program obsługi sygnału nie " +"rzuci wyjątku, funkcji ponawia teraz wywołanie systemowe zamiast rzucenja " +"wyjątku :exc:`InterruptedError` (zobacz :pep:`475` dla uzasadnienia)." + +msgid "Accepts a :term:`path-like object`." +msgstr "" + +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." +msgstr "" + +msgid "The above constants are available on Unix and Windows." +msgstr "" + +msgid "The above constants are only available on Unix." +msgstr "" + +msgid "Add :data:`O_CLOEXEC` constant." +msgstr "" + +msgid "The above constants are only available on Windows." +msgstr "" + +msgid "The above constants are only available on macOS." +msgstr "" + +msgid "" +"Add :data:`O_EVTONLY`, :data:`O_FSYNC`, :data:`O_SYMLINK` " +"and :data:`O_NOFOLLOW_ANY` constants." +msgstr "" + +msgid "" +"The above constants are extensions and not present if they are not defined " +"by the C library." +msgstr "" + +msgid "" +"Add :data:`O_PATH` on systems that support it. Add :data:`O_TMPFILE`, only " +"available on Linux Kernel 3.11 or newer." +msgstr "" + +msgid "" +"Open a new pseudo-terminal pair. Return a pair of file descriptors " +"``(master, slave)`` for the pty and the tty, respectively. The new file " +"descriptors are :ref:`non-inheritable `. For a (slightly) " +"more portable approach, use the :mod:`pty` module." +msgstr "" + +msgid ":ref:`Availability `: some flavors of Unix." +msgstr "" + +msgid "The new file descriptors are now non-inheritable." +msgstr "" + +msgid "" +"Create a pipe. Return a pair of file descriptors ``(r, w)`` usable for " +"reading and writing, respectively. The new file descriptor is :ref:`non-" +"inheritable `." +msgstr "" + +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." +msgstr "" + +msgid "" +"Ensures that enough disk space is allocated for the file specified by *fd* " +"starting from *offset* and continuing for *len* bytes." +msgstr "" + +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 "" + +msgid "" +"Flags that can be used in *advice* in :func:`posix_fadvise` that specify the " +"access pattern that is likely to be used." +msgstr "" + +msgid "" +"Read at most *n* bytes from file descriptor *fd* at a position of *offset*, " +"leaving the file offset unchanged." +msgstr "" + +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 "" + +msgid "" +"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 "" + +msgid "" +"The flags argument contains a bitwise OR of zero or more of the following " +"flags:" +msgstr "" + +msgid ":data:`RWF_HIPRI`" +msgstr ":data:`RWF_HIPRI`" + +msgid ":data:`RWF_NOWAIT`" +msgstr ":data:`RWF_NOWAIT`" + +msgid "" +"Return the total number of bytes actually read which can be less than the " +"total capacity of all the objects." +msgstr "" + +msgid "" +"The operating system may set a limit (:func:`sysconf` value " +"``'SC_IOV_MAX'``) on the number of buffers that can be used." +msgstr "" + +msgid "Combine the functionality of :func:`os.readv` and :func:`os.pread`." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 2.6.30 and newer, FreeBSD 6.0 and " +"newer, OpenBSD 2.7 and newer, AIX 7.1 and newer. Using flags requires Linux " +"4.6 or newer." +msgstr "" + +msgid "" +"Do not wait for data which is not immediately available. If this flag is " +"specified, the system call will return instantly if it would have to read " +"data from the backing storage or wait for a lock." +msgstr "" + +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`." +msgstr "" + +msgid ":ref:`Availability `: Linux 4.14 and newer." +msgstr "" + +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 "" + +msgid "" +"Currently, on Linux, this feature is usable only on a file descriptor opened " +"using the :data:`O_DIRECT` flag." +msgstr "" + +msgid ":ref:`Availability `: Linux 4.6 and newer." +msgstr "" + +msgid "" +"Write the bytestring in *str* to file descriptor *fd* at position of " +"*offset*, leaving the file offset unchanged." +msgstr "" + +msgid "Return the number of bytes actually written." +msgstr "" + +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 order. Entire contents of the first buffer is written before " +"proceeding to the second, and so on." +msgstr "" + +msgid ":data:`RWF_DSYNC`" +msgstr ":data:`RWF_DSYNC`" + +msgid ":data:`RWF_SYNC`" +msgstr ":data:`RWF_SYNC`" + +msgid ":data:`RWF_APPEND`" +msgstr ":data:`RWF_APPEND`" + +msgid "Return the total number of bytes actually written." +msgstr "" + +msgid "Combine the functionality of :func:`os.writev` and :func:`os.pwrite`." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 2.6.30 and newer, FreeBSD 6.0 and " +"newer, OpenBSD 2.7 and newer, AIX 7.1 and newer. Using flags requires Linux " +"4.7 or newer." +msgstr "" + +msgid "" +"Provide a per-write equivalent of the :data:`O_DSYNC` :func:`os.open` flag. " +"This flag effect applies only to the data range written by the system call." +msgstr "" + +msgid ":ref:`Availability `: Linux 4.7 and newer." +msgstr "" + +msgid "" +"Provide a per-write equivalent of the :data:`O_SYNC` :func:`os.open` flag. " +"This flag effect applies only to the data range written by the system call." +msgstr "" + +msgid "" +"Provide a per-write equivalent of the :data:`O_APPEND` :func:`os.open` flag. " +"This flag is meaningful only for :func:`os.pwritev`, and its effect applies " +"only to the data range written by the system call. The *offset* argument " +"does not affect the write operation; the data is always appended to the end " +"of the file. However, if the *offset* argument is ``-1``, the current file " +"*offset* is updated." +msgstr "" + +msgid ":ref:`Availability `: Linux 4.16 and newer." +msgstr "" + +msgid "Read at most *n* bytes from file descriptor *fd*." +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 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 "" + +msgid "" +"Copy *count* bytes from file descriptor *in_fd* to file descriptor *out_fd* " +"starting at *offset*. Return the number of bytes sent. When EOF is reached " +"return ``0``." +msgstr "" + +msgid "" +"The first function notation is supported by all platforms that " +"define :func:`sendfile`." +msgstr "" + +msgid "" +"On Linux, if *offset* is given as ``None``, the bytes are read from the " +"current position of *in_fd* and the position of *in_fd* is updated." +msgstr "" + +msgid "" +"The second case may be used on macOS and FreeBSD where *headers* and " +"*trailers* are arbitrary sequences of buffers that are written before and " +"after the data from *in_fd* is written. It returns the same as the first " +"case." +msgstr "" + +msgid "" +"On macOS and FreeBSD, a value of ``0`` for *count* specifies to send until " +"the end of *in_fd* is reached." +msgstr "" + +msgid "" +"All platforms support sockets as *out_fd* file descriptor, and some " +"platforms allow other types (e.g. regular file, pipe) as well." +msgstr "" + +msgid "" +"Cross-platform applications should not use *headers*, *trailers* and *flags* " +"arguments." +msgstr "" + +msgid "" +"For a higher-level wrapper of :func:`sendfile`, " +"see :meth:`socket.socket.sendfile`." +msgstr "" + +msgid "Parameters *out* and *in* was renamed to *out_fd* and *in_fd*." +msgstr "" + +msgid "" +"Set the blocking mode of the specified file descriptor. Set " +"the :data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag " +"otherwise." +msgstr "" + +msgid "See also :func:`get_blocking` and :meth:`socket.socket.setblocking`." +msgstr "" + +msgid "" +"Parameters to the :func:`sendfile` function, if the implementation supports " +"them." +msgstr "" + +msgid "" +"Transfer *count* bytes from file descriptor *src*, starting from offset " +"*offset_src*, to file descriptor *dst*, starting from offset *offset_dst*. " +"At least one of the file descriptors must refer to a pipe. If *offset_src* " +"is None, then *src* is read from the current position; respectively for " +"*offset_dst*. The offset associated to the file descriptor that refers to a " +"pipe must be ``None``. The files pointed by *src* and *dst* must reside in " +"the same filesystem, otherwise an :exc:`OSError` is raised " +"with :attr:`~OSError.errno` set to :data:`errno.EXDEV`." +msgstr "" + +msgid "" +"Upon successful completion, returns the number of bytes spliced to or from " +"the pipe. A return value of 0 means end of input. If *src* refers to a pipe, " +"then this means that there was no data to transfer, and it would not make " +"sense to block because there are no writers connected to the write end of " +"the pipe." +msgstr "" + +msgid "" +":ref:`Availability `: Linux kernel >= 2.6.17 and glibc >= 2.5" +msgstr "" + +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 " +"rest of the data." +msgstr "" + +msgid "" +"Return the process group associated with the terminal given by *fd* (an open " +"file descriptor as returned by :func:`os.open`)." +msgstr "" + +msgid "" +"Set the process group associated with the terminal given by *fd* (an open " +"file descriptor as returned by :func:`os.open`) to *pg*." +msgstr "" + +msgid "" +"Return a string which specifies the terminal device associated with file " +"descriptor *fd*. If *fd* is not associated with a terminal device, an " +"exception is raised." +msgstr "" + +msgid "Write the bytestring in *str* to file descriptor *fd*." +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." +msgstr "" + +msgid "" +"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 "" + +msgid "Returns the total number of bytes actually written." +msgstr "" + +msgid "Querying the size of a terminal" +msgstr "" + +msgid "" +"Return the size of the terminal window as ``(columns, lines)``, tuple of " +"type :class:`terminal_size`." +msgstr "" + +msgid "" +"The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard output) " +"specifies which file descriptor should be queried." +msgstr "" + +msgid "" +"If the file descriptor is not connected to a terminal, an :exc:`OSError` is " +"raised." +msgstr "" + +msgid "" +":func:`shutil.get_terminal_size` is the high-level function which should " +"normally be used, ``os.get_terminal_size`` is the low-level implementation." +msgstr "" + +msgid "" +"A subclass of tuple, holding ``(columns, lines)`` of the terminal window " +"size." +msgstr "" + +msgid "Width of the terminal window in characters." +msgstr "" + +msgid "Height of the terminal window in characters." +msgstr "" + +msgid "Inheritance of File Descriptors" +msgstr "" + +msgid "" +"A file descriptor has an \"inheritable\" flag which indicates if the file " +"descriptor can be inherited by child processes. Since Python 3.4, file " +"descriptors created by Python are non-inheritable by default." +msgstr "" + +msgid "" +"On UNIX, non-inheritable file descriptors are closed in child processes at " +"the execution of a new program, other file descriptors are inherited." +msgstr "" + +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\\* " +"` 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 " +"only inherited if the *close_fds* parameter is ``False``." +msgstr "" + +msgid "" +"Get the \"inheritable\" flag of the specified file descriptor (a boolean)." +msgstr "" + +msgid "Set the \"inheritable\" flag of the specified file descriptor." +msgstr "" + +msgid "Get the \"inheritable\" flag of the specified handle (a boolean)." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" + +msgid "Set the \"inheritable\" flag of the specified handle." +msgstr "" + +msgid "Files and Directories" +msgstr "" + +msgid "" +"On some Unix platforms, many of these functions support one or more of these " +"features:" +msgstr "" + +msgid "" +"**specifying a file descriptor:** Normally the *path* argument provided to " +"functions in the :mod:`os` module must be a string specifying a file path. " +"However, some functions now alternatively accept an open file descriptor for " +"their *path* argument. The function will then operate on the file referred " +"to by the descriptor. (For POSIX systems, Python will call the variant of " +"the function prefixed with ``f`` (e.g. call ``fchdir`` instead of " +"``chdir``).)" +msgstr "" + +msgid "" +"You can check whether or not *path* can be specified as a file descriptor " +"for a particular function on your platform using :data:`os.supports_fd`. If " +"this functionality is unavailable, using it will raise " +"a :exc:`NotImplementedError`." +msgstr "" + +msgid "" +"If the function also supports *dir_fd* or *follow_symlinks* arguments, it's " +"an error to specify one of those when supplying *path* as a file descriptor." +msgstr "" + +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 variant of the function with an ``at`` suffix " +"and possibly prefixed with ``f`` (e.g. call ``faccessat`` instead of " +"``access``)." +msgstr "" + +msgid "" +"You can check whether or not *dir_fd* is supported for a particular function " +"on your platform using :data:`os.supports_dir_fd`. If it's unavailable, " +"using it will raise a :exc:`NotImplementedError`." +msgstr "" + +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 rather than the file pointed to by the " +"link. (For POSIX systems, Python will call the ``l...`` variant of the " +"function.)" +msgstr "" + +msgid "" +"You can check whether or not *follow_symlinks* is supported for a particular " +"function on your platform using :data:`os.supports_follow_symlinks`. If it's " +"unavailable, using it will raise a :exc:`NotImplementedError`." +msgstr "" + +msgid "" +"Use the real uid/gid to test for access to *path*. Note that most " +"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." +msgstr "" + +msgid "" +"This function can support specifying :ref:`paths relative to directory " +"descriptors ` and :ref:`not following symlinks `." +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 " +"unavailable, using it will raise a :exc:`NotImplementedError`." +msgstr "" + +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. " +"For example::" +msgstr "" + +msgid "is better written as::" +msgstr "" + +msgid "" +"I/O operations may fail even when :func:`access` indicates that they would " +"succeed, particularly for operations on network filesystems which may have " +"permissions semantics beyond the usual POSIX permission-bit model." +msgstr "" + +msgid "Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters." +msgstr "" + +msgid "" +"Values to pass as the *mode* parameter of :func:`access` to test the " +"existence, readability, writability and executability of *path*, " +"respectively." +msgstr "" + +msgid "Change the current working directory to *path*." +msgstr "" + +msgid "" +"This function can support :ref:`specifying a file descriptor `. " +"The descriptor must refer to an opened directory, not an open file." +msgstr "" + +msgid "" +"This function can raise :exc:`OSError` and subclasses such " +"as :exc:`FileNotFoundError`, :exc:`PermissionError`, " +"and :exc:`NotADirectoryError`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.chdir`` with argument " +"``path``." +msgstr "" + +msgid "" +"Added support for specifying *path* as a file descriptor on some platforms." +msgstr "" + +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):" +msgstr "" + +msgid ":data:`stat.UF_NODUMP`" +msgstr "" + +msgid ":data:`stat.UF_IMMUTABLE`" +msgstr "" + +msgid ":data:`stat.UF_APPEND`" +msgstr "" + +msgid ":data:`stat.UF_OPAQUE`" +msgstr "" + +msgid ":data:`stat.UF_NOUNLINK`" +msgstr "" + +msgid ":data:`stat.UF_COMPRESSED`" +msgstr "" + +msgid ":data:`stat.UF_HIDDEN`" +msgstr "" + +msgid ":data:`stat.SF_ARCHIVED`" +msgstr "" + +msgid ":data:`stat.SF_IMMUTABLE`" +msgstr "" + +msgid ":data:`stat.SF_APPEND`" +msgstr "" + +msgid ":data:`stat.SF_NOUNLINK`" +msgstr "" + +msgid ":data:`stat.SF_SNAPSHOT`" +msgstr "" + +msgid "" +"This function can support :ref:`not following symlinks `." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.chflags`` with arguments " +"``path``, ``flags``." +msgstr "" + +msgid "The *follow_symlinks* argument." +msgstr "" + +msgid "" +"Change the mode of *path* to the numeric *mode*. *mode* may take one of the " +"following values (as defined in the :mod:`stat` module) or bitwise ORed " +"combinations of them:" +msgstr "" + +msgid ":data:`stat.S_ISUID`" +msgstr "" + +msgid ":data:`stat.S_ISGID`" +msgstr "" + +msgid ":data:`stat.S_ENFMT`" +msgstr "" + +msgid ":data:`stat.S_ISVTX`" +msgstr "" + +msgid ":data:`stat.S_IREAD`" +msgstr "" + +msgid ":data:`stat.S_IWRITE`" +msgstr "" + +msgid ":data:`stat.S_IEXEC`" +msgstr "" + +msgid ":data:`stat.S_IRWXU`" +msgstr "" + +msgid ":data:`stat.S_IRUSR`" +msgstr "" + +msgid ":data:`stat.S_IWUSR`" +msgstr "" + +msgid ":data:`stat.S_IXUSR`" +msgstr "" + +msgid ":data:`stat.S_IRWXG`" +msgstr "" + +msgid ":data:`stat.S_IRGRP`" +msgstr "" + +msgid ":data:`stat.S_IWGRP`" +msgstr "" + +msgid ":data:`stat.S_IXGRP`" +msgstr "" + +msgid ":data:`stat.S_IRWXO`" +msgstr "" + +msgid ":data:`stat.S_IROTH`" +msgstr "" + +msgid ":data:`stat.S_IWOTH`" +msgstr "" + +msgid ":data:`stat.S_IXOTH`" +msgstr "" + +msgid "" +"This function can support :ref:`specifying a file descriptor " +"`, :ref:`paths relative to directory descriptors ` " +"and :ref:`not following symlinks `." +msgstr "" + +msgid "" +"Although Windows supports :func:`chmod`, you can only set the file's read-" +"only flag with it (via the ``stat.S_IWRITE`` and ``stat.S_IREAD`` constants " +"or a corresponding integer value). All other bits are ignored." +msgstr "" + +msgid "" +"Added support for specifying *path* as an open file descriptor, and the " +"*dir_fd* and *follow_symlinks* arguments." +msgstr "" + +msgid "" +"Change the owner and group id of *path* to the numeric *uid* and *gid*. To " +"leave one of the ids unchanged, set it to -1." +msgstr "" + +msgid "" +"See :func:`shutil.chown` for a higher-level function that accepts names in " +"addition to numeric ids." +msgstr "" + +msgid "Supports a :term:`path-like object`." +msgstr "" + +msgid "Change the root directory of the current process to *path*." +msgstr "" + +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)``." +msgstr "" + +msgid "Return a string representing the current working directory." +msgstr "" + +msgid "Return a bytestring representing the current working directory." +msgstr "" + +msgid "" +"The function now uses the UTF-8 encoding on Windows, rather than the ANSI " +"code page: see :pep:`529` for the rationale. The function is no longer " +"deprecated on Windows." +msgstr "" + +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)``." +msgstr "" + +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)``." +msgstr "" + +msgid "" +"Change the owner and group id of *path* to the numeric *uid* and *gid*. " +"This function will not follow symbolic links. As of Python 3.3, this is " +"equivalent to ``os.chown(path, uid, gid, follow_symlinks=False)``." +msgstr "" + +msgid "Create a hard link pointing to *src* named *dst*." +msgstr "" + +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 `." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.link`` with arguments " +"``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd``." +msgstr "" + +msgid "Added Windows support." +msgstr "Dodano wsparcie dla WIndowsa." + +msgid "Added the *src_dir_fd*, *dst_dir_fd*, and *follow_symlinks* arguments." +msgstr "" + +msgid "Accepts a :term:`path-like object` for *src* and *dst*." +msgstr "" + +msgid "" +"Return a list containing the names of the entries in the directory given by " +"*path*. The list is in arbitrary order, and does not include the special " +"entries ``'.'`` and ``'..'`` even if they are present in the directory. If a " +"file is removed from or added to the directory during the call of this " +"function, whether a name for that file be included is unspecified." +msgstr "" + +msgid "" +"*path* may be a :term:`path-like object`. If *path* is of type ``bytes`` " +"(directly or indirectly through the :class:`PathLike` interface), the " +"filenames returned will also be of type ``bytes``; in all other " +"circumstances, they will be of type ``str``." +msgstr "" + +msgid "" +"This function can also support :ref:`specifying a file descriptor " +"`; the file descriptor must refer to a directory." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.listdir`` with argument " +"``path``." +msgstr "" + +msgid "To encode ``str`` filenames to ``bytes``, use :func:`~os.fsencode`." +msgstr "" + +msgid "" +"The :func:`scandir` function returns directory entries along with file " +"attribute information, giving better performance for many common use cases." +msgstr "" + +msgid "The *path* parameter became optional." +msgstr "" + +msgid "Added support for specifying *path* as an open file descriptor." +msgstr "" + +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." +msgstr "" + +msgid "" +"On platforms that do not support symbolic links, this is an alias " +"for :func:`~os.stat`." +msgstr "" + +msgid "" +"As of Python 3.3, this is equivalent to ``os.stat(path, dir_fd=dir_fd, " +"follow_symlinks=False)``." +msgstr "" + +msgid "" +"This function can also support :ref:`paths relative to directory descriptors " +"`." +msgstr "" + +msgid "Added support for Windows 6.0 (Vista) symbolic links." +msgstr "" + +msgid "Added the *dir_fd* parameter." +msgstr "" + +msgid "" +"On Windows, now opens reparse points that represent another path (name " +"surrogates), including symbolic links and directory junctions. Other kinds " +"of reparse points are resolved by the operating system as " +"for :func:`~os.stat`." +msgstr "" + +msgid "Create a directory named *path* with numeric mode *mode*." +msgstr "" + +msgid "" +"If the directory already exists, :exc:`FileExistsError` is raised. If a " +"parent directory in the path does not exist, :exc:`FileNotFoundError` is " +"raised." +msgstr "" + +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." +msgstr "" + +msgid "" +"On Windows, a *mode* of ``0o700`` is specifically handled to apply access " +"control to the new directory such that only the current user and " +"administrators have access. Other values of *mode* are ignored." +msgstr "" + +msgid "" +"It is also possible to create temporary directories; see the :mod:`tempfile` " +"module's :func:`tempfile.mkdtemp` function." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.mkdir`` with arguments " +"``path``, ``mode``, ``dir_fd``." +msgstr "" + +msgid "Windows now handles a *mode* of ``0o700``." +msgstr "" + +msgid "" +"Recursive directory creation function. Like :func:`mkdir`, but makes all " +"intermediate-level directories needed to contain the leaf directory." +msgstr "" + +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 " +"directories you can set the umask before invoking :func:`makedirs`. The " +"file permission bits of existing parent directories are not changed." +msgstr "" + +msgid "" +"If *exist_ok* is ``False`` (the default), an :exc:`FileExistsError` is " +"raised if the target directory already exists." +msgstr "" + +msgid "" +":func:`makedirs` will become confused if the path elements to create " +"include :data:`pardir` (eg. \"..\" on UNIX systems)." +msgstr "" + +msgid "This function handles UNC paths correctly." +msgstr "" + +msgid "The *exist_ok* parameter." +msgstr "" + +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 safely, it was removed in Python 3.4.1. See :issue:`21082`." +msgstr "" + +msgid "" +"The *mode* argument no longer affects the file permission bits of newly " +"created intermediate-level directories." +msgstr "" + +msgid "" +"Create a FIFO (a named pipe) named *path* with numeric mode *mode*. The " +"current umask value is first masked out from the mode." +msgstr "" + +msgid "" +"FIFOs are pipes that can be accessed like regular files. FIFOs exist until " +"they are deleted (for example with :func:`os.unlink`). Generally, FIFOs are " +"used as rendezvous between \"client\" and \"server\" type processes: the " +"server opens the FIFO for reading, and the client opens it for writing. " +"Note that :func:`mkfifo` doesn't open the FIFO --- it just creates the " +"rendezvous point." +msgstr "" + +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." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +msgid "Compose a raw device number from the major and minor device numbers." +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 " +"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." +msgstr "" + +msgid "" +"This function can support :ref:`specifying a file descriptor `." +msgstr "" + +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." +msgstr "" + +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)``." +msgstr "" + +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." +msgstr "" + +msgid "" +"When trying to resolve a path that may contain links, " +"use :func:`~os.path.realpath` to properly handle recursion and platform " +"differences." +msgstr "" + +msgid "Accepts a :term:`path-like object` on Unix." +msgstr "" + +msgid "Accepts a :term:`path-like object` and a bytes object on Windows." +msgstr "" + +msgid "" +"Added support for directory junctions, and changed to return the " +"substitution path (which typically includes ``\\\\?\\`` prefix) rather than " +"the optional \"print name\" field that was previously returned." +msgstr "" + +msgid "" +"Remove (delete) the file *path*. If *path* is a directory, " +"an :exc:`OSError` is raised. Use :func:`rmdir` to remove directories. If " +"the file does not exist, a :exc:`FileNotFoundError` is raised." +msgstr "" + +msgid "" +"This function can support :ref:`paths relative to directory descriptors " +"`." +msgstr "" + +msgid "" +"On Windows, attempting to remove a file that is in use causes an exception " +"to be raised; on Unix, the directory entry is removed but the storage " +"allocated to the file is not made available until the original file is no " +"longer in use." +msgstr "" + +msgid "This function is semantically identical to :func:`unlink`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.remove`` with arguments " +"``path``, ``dir_fd``." +msgstr "" + +msgid "" +"Remove directories recursively. Works like :func:`rmdir` except that, if " +"the leaf directory is successfully removed, :func:`removedirs` tries to " +"successively remove every parent directory mentioned in *path* until an " +"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." +msgstr "" + +msgid "" +"Rename the file or directory *src* to *dst*. If *dst* exists, the operation " +"will fail with an :exc:`OSError` subclass in a number of cases:" +msgstr "" + +msgid "" +"On Windows, if *dst* exists a :exc:`FileExistsError` is always raised. The " +"operation may fail if *src* and *dst* are on different filesystems. " +"Use :func:`shutil.move` to support moves to a different filesystem." +msgstr "" + +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 " +"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* will be replaced silently if the user has " +"permission. The operation may fail on some Unix flavors if *src* and *dst* " +"are on different filesystems. If successful, the renaming will be an atomic " +"operation (this is a POSIX requirement)." +msgstr "" + +msgid "" +"This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to " +"supply :ref:`paths relative to directory descriptors `." +msgstr "" + +msgid "" +"If you want cross-platform overwriting of the destination, " +"use :func:`replace`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.rename`` with arguments " +"``src``, ``dst``, ``src_dir_fd``, ``dst_dir_fd``." +msgstr "" + +msgid "The *src_dir_fd* and *dst_dir_fd* arguments." +msgstr "" + +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`." +msgstr "" + +msgid "" +"This function can fail with the new directory structure made if you lack " +"permissions needed to remove the leaf directory or file." +msgstr "" + +msgid "Accepts a :term:`path-like object` for *old* and *new*." +msgstr "" + +msgid "" +"Rename the file or directory *src* to *dst*. If *dst* is a non-empty " +"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)." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.rmdir`` with arguments " +"``path``, ``dir_fd``." +msgstr "" + +msgid "The *dir_fd* parameter." +msgstr "" + +msgid "" +"Return an iterator of :class:`os.DirEntry` objects corresponding to the " +"entries in the directory given by *path*. The entries are yielded in " +"arbitrary order, and the special entries ``'.'`` and ``'..'`` are not " +"included. If a file is removed from or added to the directory after " +"creating the iterator, whether an entry for that file be included is " +"unspecified." +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." +msgstr "" + +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, " +"they will be of type ``str``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.scandir`` with argument " +"``path``." +msgstr "" + +msgid "" +"The :func:`scandir` iterator supports the :term:`context manager` protocol " +"and has the following method:" +msgstr "" + +msgid "Close the iterator and free acquired resources." +msgstr "" + +msgid "" +"This is called automatically when the iterator is exhausted or garbage " +"collected, or when an error happens during iterating. However it is " +"advisable to call it explicitly or use the :keyword:`with` statement." +msgstr "" + +msgid "" +"The following example shows a simple use of :func:`scandir` to display all " +"the files (excluding directories) in the given *path* that don't start with " +"``'.'``. The ``entry.is_file()`` call will generally not make an additional " +"system call::" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "The function accepts a :term:`path-like object`." +msgstr "" + +msgid "Added support for :ref:`file descriptors ` on Unix." +msgstr "" + +msgid "" +"Object yielded by :func:`scandir` to expose the file path and other file " +"attributes of a directory entry." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"To be directly usable as a :term:`path-like object`, ``os.DirEntry`` " +"implements the :class:`PathLike` interface." +msgstr "" + +msgid "Attributes and methods on a ``os.DirEntry`` instance are as follows:" +msgstr "" + +msgid "" +"The entry's base filename, relative to the :func:`scandir` *path* argument." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Return the inode number of the entry." +msgstr "" + +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." +msgstr "" + +msgid "" +"On the first, uncached call, a system call is required on Windows but not on " +"Unix." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The result is cached on the ``os.DirEntry`` object, with a separate cache " +"for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along " +"with :func:`stat.S_ISDIR` to fetch up-to-date information." +msgstr "" + +msgid "" +"On the first, uncached call, no system call is required in most cases. " +"Specifically, for non-symlinks, neither Windows or Unix require a system " +"call, except on certain Unix file systems, such as network file systems, " +"that return ``dirent.d_type == DT_UNKNOWN``. If the entry is a symlink, a " +"system call will be required to follow the symlink unless *follow_symlinks* " +"is ``False``." +msgstr "" + +msgid "" +"This method can raise :exc:`OSError`, such as :exc:`PermissionError`, " +"but :exc:`FileNotFoundError` is caught and not raised." +msgstr "" + +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." +msgstr "" + +msgid "" +"If *follow_symlinks* is ``False``, return ``True`` only if this entry is a " +"file (without following symlinks); return ``False`` if the entry is a " +"directory or other non-file entry, or if it doesn't exist anymore." +msgstr "" + +msgid "" +"The result is cached on the ``os.DirEntry`` object. Caching, system calls " +"made, and exceptions raised are as per :func:`~os.DirEntry.is_dir`." +msgstr "" + +msgid "" +"Return ``True`` if this entry is a symbolic link (even if broken); return " +"``False`` if the entry points to a directory or any kind of file, or if it " +"doesn't exist anymore." +msgstr "" + +msgid "" +"The result is cached on the ``os.DirEntry`` object. " +"Call :func:`os.path.islink` to fetch up-to-date information." +msgstr "" + +msgid "" +"On the first, uncached call, no system call is required in most cases. " +"Specifically, neither Windows or Unix require a system call, except on " +"certain Unix file systems, such as network file systems, that return " +"``dirent.d_type == DT_UNKNOWN``." +msgstr "" + +msgid "" +"Return a :class:`stat_result` object for this entry. This method follows " +"symbolic links by default; to stat a symbolic link add the " +"``follow_symlinks=False`` argument." +msgstr "" + +msgid "" +"On Unix, this method always requires a system call. On Windows, it only " +"requires a system call if *follow_symlinks* is ``True`` and the entry is a " +"reparse point (for example, a symbolic link or directory junction)." +msgstr "" + +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 " +"these attributes." +msgstr "" + +msgid "" +"The result is cached on the ``os.DirEntry`` object, with a separate cache " +"for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch " +"up-to-date information." +msgstr "" + +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()``, " +"``is_file()``, ``is_symlink()`` and ``stat()`` methods." +msgstr "" + +msgid "" +"Added support for the :class:`~os.PathLike` interface. Added support " +"for :class:`bytes` paths on Windows." +msgstr "" + +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." +msgstr "" + +msgid "" +"This function normally follows symlinks; to stat a symlink add the argument " +"``follow_symlinks=False``, or use :func:`lstat`." +msgstr "" + +msgid "" +"This function can support :ref:`specifying a file descriptor ` " +"and :ref:`not following symlinks `." +msgstr "" + +msgid "" +"On Windows, passing ``follow_symlinks=False`` will disable following all " +"name-surrogate reparse points, which includes symlinks and directory " +"junctions. Other types of reparse points that do not resemble links or that " +"the operating system is unable to follow will be opened directly. When " +"following a chain of multiple links, this may result in the original link " +"being returned instead of the non-link that prevented full traversal. To " +"obtain stat results for the final path in this case, use " +"the :func:`os.path.realpath` function to resolve the path name as far as " +"possible and call :func:`lstat` on the result. This does not apply to " +"dangling symlinks or junction points, which will raise the usual exceptions." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid ":func:`fstat` and :func:`lstat` functions." +msgstr "" + +msgid "" +"Added the *dir_fd* and *follow_symlinks* arguments, specifying a file " +"descriptor instead of a path." +msgstr "" + +msgid "" +"On Windows, all reparse points that can be resolved by the operating system " +"are now followed, and passing ``follow_symlinks=False`` disables following " +"all name surrogate reparse points. If the operating system reaches a reparse " +"point that it is not able to follow, *stat* now returns the information for " +"the original path as if ``follow_symlinks=False`` had been specified instead " +"of raising an error." +msgstr "" + +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`." +msgstr "" + +msgid "Attributes:" +msgstr "" + +msgid "File mode: file type and file mode bits (permissions)." +msgstr "" + +msgid "" +"Platform dependent, but if non-zero, uniquely identifies the file for a " +"given value of ``st_dev``. Typically:" +msgstr "" + +msgid "the inode number on Unix," +msgstr "" + +msgid "" +"the `file index `_ on " +"Windows" +msgstr "" + +msgid "Identifier of the device on which this file resides." +msgstr "" + +msgid "Number of hard links." +msgstr "" + +msgid "User identifier of the file owner." +msgstr "" + +msgid "Group identifier of the file owner." +msgstr "" + +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." +msgstr "" + +msgid "Timestamps:" +msgstr "" + +msgid "Time of most recent access expressed in seconds." +msgstr "" + +msgid "Time of most recent content modification expressed in seconds." +msgstr "" + +msgid "Platform dependent:" +msgstr "" + +msgid "the time of most recent metadata change on Unix," +msgstr "" + +msgid "the time of creation on Windows, expressed in seconds." +msgstr "" + +msgid "Time of most recent access expressed in nanoseconds as an integer." +msgstr "" + +msgid "" +"Time of most recent content modification expressed in nanoseconds as an " +"integer." +msgstr "" + +msgid "" +"the time of creation on Windows, expressed in nanoseconds as an integer." +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"On some Unix systems (such as Linux), the following attributes may also be " +"available:" +msgstr "" + +msgid "" +"Number of 512-byte blocks allocated for file. This may be smaller " +"than :attr:`st_size`/512 when the file has holes." +msgstr "" + +msgid "" +"\"Preferred\" blocksize for efficient file system I/O. Writing to a file in " +"smaller chunks may cause an inefficient read-modify-rewrite." +msgstr "" + +msgid "Type of device if an inode device." +msgstr "" + +msgid "User defined flags for file." +msgstr "" + +msgid "" +"On other Unix systems (such as FreeBSD), the following attributes may be " +"available (but may be only filled out if root tries to use them):" +msgstr "" + +msgid "File generation number." +msgstr "" + +msgid "Time of file creation." +msgstr "" + +msgid "" +"On Solaris and derivatives, the following attributes may also be available:" +msgstr "" + +msgid "" +"String that uniquely identifies the type of the filesystem that contains the " +"file." +msgstr "" + +msgid "On macOS systems, the following attributes may also be available:" +msgstr "" + +msgid "Real size of the file." +msgstr "" + +msgid "Creator of the file." +msgstr "" + +msgid "File type." +msgstr "" + +msgid "On Windows systems, the following attributes are also available:" +msgstr "" + +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." +msgstr "" + +msgid "" +"When :attr:`st_file_attributes` has the ``FILE_ATTRIBUTE_REPARSE_POINT`` " +"set, this field contains the tag identifying the type of reparse point. See " +"the ``IO_REPARSE_TAG_*`` constants in the :mod:`stat` module." +msgstr "" + +msgid "" +"The standard module :mod:`stat` defines functions and constants that are " +"useful for extracting information from a :c:type:`stat` structure. (On " +"Windows, some items are filled with dummy values.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"Added the :attr:`st_atime_ns`, :attr:`st_mtime_ns`, and :attr:`st_ctime_ns` " +"members." +msgstr "" + +msgid "Added the :attr:`st_file_attributes` member on Windows." +msgstr "" + +msgid "Windows now returns the file index as :attr:`st_ino` when available." +msgstr "" + +msgid "Added the :attr:`st_fstype` member to Solaris/derivatives." +msgstr "" + +msgid "Added the :attr:`st_reparse_tag` member on Windows." +msgstr "" + +msgid "" +"On Windows, the :attr:`st_mode` member now identifies special files " +"as :const:`S_IFCHR`, :const:`S_IFIFO` or :const:`S_IFBLK` as appropriate." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Two module-level constants are defined for the :attr:`f_flag` attribute's " +"bit-flags: if :const:`ST_RDONLY` is set, the filesystem is mounted read-" +"only, and if :const:`ST_NOSUID` is set, the semantics of setuid/setgid bits " +"are disabled or not supported." +msgstr "" + +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` (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)." +msgstr "" + +msgid "The :const:`ST_RDONLY` and :const:`ST_NOSUID` constants were added." +msgstr "" + +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." +msgstr "" + +msgid "Added :attr:`f_fsid`." +msgstr "" + +msgid "" +"A :class:`set` object indicating which functions in the :mod:`os` module " +"accept an open file descriptor for their *dir_fd* parameter. Different " +"platforms provide different features, and the underlying functionality " +"Python uses to implement the *dir_fd* parameter is not available on all " +"platforms Python supports. For consistency's sake, functions that may " +"support *dir_fd* always allow specifying the parameter, but will throw an " +"exception if the functionality is used when it's not locally available. " +"(Specifying ``None`` for *dir_fd* is always supported on all platforms.)" +msgstr "" + +msgid "" +"To check whether a particular function accepts an open file descriptor for " +"its *dir_fd* parameter, use the ``in`` operator on ``supports_dir_fd``. As " +"an example, this expression evaluates to ``True`` if :func:`os.stat` accepts " +"open file descriptors for *dir_fd* on the local platform::" +msgstr "" + +msgid "" +"Currently *dir_fd* parameters only work on Unix platforms; none of them work " +"on Windows." +msgstr "" + +msgid "" +"A :class:`set` object indicating whether :func:`os.access` permits " +"specifying ``True`` for its *effective_ids* parameter on the local platform. " +"(Specifying ``False`` for *effective_ids* is always supported on all " +"platforms.) If the local platform supports it, the collection will " +"contain :func:`os.access`; otherwise it will be empty." +msgstr "" + +msgid "" +"This expression evaluates to ``True`` if :func:`os.access` supports " +"``effective_ids=True`` on the local platform::" +msgstr "" + +msgid "" +"Currently *effective_ids* is only supported on Unix platforms; it does not " +"work on Windows." +msgstr "" + +msgid "" +"A :class:`set` object indicating which functions in the :mod:`os` module " +"permit specifying their *path* parameter as an open file descriptor on the " +"local platform. Different platforms provide different features, and the " +"underlying functionality Python uses to accept open file descriptors as " +"*path* arguments is not available on all platforms Python supports." +msgstr "" + +msgid "" +"To determine 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 evaluates to ``True`` " +"if :func:`os.chdir` accepts open file descriptors for *path* on your local " +"platform::" +msgstr "" + +msgid "" +"A :class:`set` object indicating which functions in the :mod:`os` module " +"accept ``False`` for their *follow_symlinks* parameter on the local " +"platform. Different platforms provide different features, and the underlying " +"functionality Python uses to implement *follow_symlinks* is not available on " +"all platforms Python supports. For consistency's sake, functions that may " +"support *follow_symlinks* always allow specifying the parameter, but will " +"throw an exception if the functionality is used when it's not locally " +"available. (Specifying ``True`` for *follow_symlinks* is always supported " +"on all platforms.)" +msgstr "" + +msgid "" +"To check whether a particular function accepts ``False`` for its " +"*follow_symlinks* parameter, use the ``in`` operator on " +"``supports_follow_symlinks``. As an example, this expression evaluates to " +"``True`` if you may specify ``follow_symlinks=False`` when " +"calling :func:`os.stat` on the local platform::" +msgstr "" + +msgid "Create a symbolic link pointing to *src* named *dst*." +msgstr "" + +msgid "" +"On Windows, a symlink represents either a file or a directory, and does not " +"morph to the target dynamically. If the target is present, the type of the " +"symlink will be created to match. Otherwise, the symlink will be created as " +"a directory if *target_is_directory* is ``True`` or a file symlink (the " +"default) otherwise. On non-Windows platforms, *target_is_directory* is " +"ignored." +msgstr "" + +msgid "" +"On newer versions of Windows 10, unprivileged accounts can create symlinks " +"if Developer Mode is enabled. When Developer Mode is not available/enabled, " +"the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process " +"must be run as an administrator." +msgstr "" + +msgid "" +":exc:`OSError` is raised when the function is called by an unprivileged user." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.symlink`` with arguments " +"``src``, ``dst``, ``dir_fd``." +msgstr "" + +msgid "" +"Added the *dir_fd* argument, and now allow *target_is_directory* on non-" +"Windows platforms." +msgstr "" + +msgid "Added support for unelevated symlinks on Windows with Developer Mode." +msgstr "" + +msgid "Force write of everything to disk." +msgstr "" + +msgid "" +"Truncate the file corresponding to *path*, so that it is at most *length* " +"bytes in size." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.truncate`` with arguments " +"``path``, ``length``." +msgstr "" + +msgid "" +"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 "" + +msgid "Set the access and modified times of the file specified by *path*." +msgstr "" + +msgid "" +":func:`utime` takes two optional parameters, *times* and *ns*. These specify " +"the times set on *path* and are used as follows:" +msgstr "" + +msgid "" +"If *ns* is specified, it must be a 2-tuple of the form ``(atime_ns, " +"mtime_ns)`` where each member is an int expressing nanoseconds." +msgstr "" + +msgid "" +"If *times* is not ``None``, it must be a 2-tuple of the form ``(atime, " +"mtime)`` where each member is an int or float expressing seconds." +msgstr "" + +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." +msgstr "" + +msgid "It is an error to specify tuples for both *times* and *ns*." +msgstr "" + +msgid "" +"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 :func:`utime`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.utime`` with arguments " +"``path``, ``times``, ``ns``, ``dir_fd``." +msgstr "" + +msgid "" +"Added support for specifying *path* as an open file descriptor, and the " +"*dir_fd*, *follow_symlinks*, and *ns* parameters." +msgstr "" + +msgid "" +"Generate the file names in a directory tree by walking the tree either top-" +"down or bottom-up. For each directory in the tree rooted at directory *top* " +"(including *top* itself), it yields a 3-tuple ``(dirpath, dirnames, " +"filenames)``." +msgstr "" + +msgid "" +"*dirpath* is a string, the path to the directory. *dirnames* is a list of " +"the names of the subdirectories in *dirpath* (including symlinks to " +"directories, and excluding ``'.'`` and ``'..'``). *filenames* is a list of " +"the names of the non-directory files in *dirpath*. Note that the names in " +"the lists contain no path components. To get a full path (which begins with " +"*top*) to a file or directory in *dirpath*, do ``os.path.join(dirpath, " +"name)``. Whether or not the lists are sorted depends on the file system. " +"If a file is removed from or added to the *dirpath* directory during " +"generating the lists, whether a name for that file be included is " +"unspecified." +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." +msgstr "" + +msgid "" +"When *topdown* is ``True``, the caller can modify the *dirnames* list in-" +"place (perhaps using :keyword:`del` or slice assignment), and :func:`walk` " +"will only recurse into the subdirectories whose names remain in *dirnames*; " +"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." +msgstr "" + +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 " +"object." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Be aware that setting *followlinks* to ``True`` can lead to infinite " +"recursion if a link points to a parent directory of itself. :func:`walk` " +"does not keep track of the directories it visited already." +msgstr "" + +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." +msgstr "" + +msgid "" +"This example displays the number of bytes taken by non-directory files in " +"each directory under the starting directory, except that it doesn't look " +"under any CVS subdirectory::" +msgstr "" + +msgid "" +"In the next example (simple implementation of :func:`shutil.rmtree`), " +"walking the tree bottom-up is essential, :func:`rmdir` doesn't allow " +"deleting a directory before the directory is empty::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.walk`` with arguments " +"``top``, ``topdown``, ``onerror``, ``followlinks``." +msgstr "" + +msgid "" +"This function now calls :func:`os.scandir` instead of :func:`os.listdir`, " +"making it faster by reducing the number of calls to :func:`os.stat`." +msgstr "" + +msgid "" +"This behaves exactly like :func:`walk`, except that it yields a 4-tuple " +"``(dirpath, dirnames, filenames, dirfd)``, and it supports ``dir_fd``." +msgstr "" + +msgid "" +"*dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, " +"and *dirfd* is a file descriptor referring to the directory *dirpath*." +msgstr "" + +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 " +"*follow_symlinks* is ``False``." +msgstr "" + +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." +msgstr "" + +msgid "" +"In the next example, walking the tree bottom-up is essential: :func:`rmdir` " +"doesn't allow deleting a directory before the directory is empty::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.fwalk`` with arguments " +"``top``, ``topdown``, ``onerror``, ``follow_symlinks``, ``dir_fd``." +msgstr "" + +msgid "Added support for :class:`bytes` paths." +msgstr "" + +msgid "" +"Create an anonymous file and return a file descriptor that refers to it. " +"*flags* must be one of the ``os.MFD_*`` constants available on the system " +"(or a bitwise ORed combination of them). By default, the new file " +"descriptor is :ref:`non-inheritable `." +msgstr "" + +msgid "" +"The name supplied in *name* is used as a filename and will be displayed as " +"the target of the corresponding symbolic link in the directory ``/proc/self/" +"fd/``. The displayed name is always prefixed with ``memfd:`` and serves only " +"for debugging purposes. Names do not affect the behavior of the file " +"descriptor, and as such multiple files can have the same name without any " +"side effects." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 3.17 or newer with glibc 2.27 or " +"newer." +msgstr "" + +msgid "These flags can be passed to :func:`memfd_create`." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 3.17 or newer with glibc 2.27 or " +"newer. The ``MFD_HUGE*`` flags are only available since Linux 4.14." +msgstr "" + +msgid "" +"Create and return an event file descriptor. The file descriptors supports " +"raw :func:`read` and :func:`write` with a buffer size of " +"8, :func:`~select.select`, :func:`~select.poll` and similar. See man " +"page :manpage:`eventfd(2)` for more information. By default, the new file " +"descriptor is :ref:`non-inheritable `." +msgstr "" + +msgid "" +"*initval* is the initial value of the event counter. The initial value must " +"be an 32 bit unsigned integer. Please note that the initial value is limited " +"to a 32 bit unsigned int although the event counter is an unsigned 64 bit " +"integer with a maximum value of 2\\ :sup:`64`\\ -\\ 2." +msgstr "" + +msgid "" +"*flags* can be constructed from :const:`EFD_CLOEXEC`, :const:`EFD_NONBLOCK`, " +"and :const:`EFD_SEMAPHORE`." +msgstr "" + +msgid "" +"If :const:`EFD_SEMAPHORE` is specified and the event counter is non-" +"zero, :func:`eventfd_read` returns 1 and decrements the counter by one." +msgstr "" + +msgid "" +"If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-" +"zero, :func:`eventfd_read` returns the current event counter value and " +"resets the counter to zero." +msgstr "" + +msgid "" +"If the event counter is zero and :const:`EFD_NONBLOCK` is not " +"specified, :func:`eventfd_read` blocks." +msgstr "" + +msgid "" +":func:`eventfd_write` increments the event counter. Write blocks if the " +"write operation would increment the counter to a value larger than " +"2\\ :sup:`64`\\ -\\ 2." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 2.6.27 or newer with glibc 2.8 or " +"newer." +msgstr "" + +msgid "" +"Read value from an :func:`eventfd` file descriptor and return a 64 bit " +"unsigned int. The function does not verify that *fd* is an :func:`eventfd`." +msgstr "" + +msgid ":ref:`Availability `: See :func:`eventfd`" +msgstr "" + +msgid "" +"Add value to an :func:`eventfd` file descriptor. *value* must be a 64 bit " +"unsigned int. The function does not verify that *fd* is an :func:`eventfd`." +msgstr "" + +msgid "Set close-on-exec flag for new :func:`eventfd` file descriptor." +msgstr "" + +msgid "" +"Set :const:`O_NONBLOCK` status flag for new :func:`eventfd` file descriptor." +msgstr "" + +msgid "" +"Provide semaphore-like semantics for reads from a :func:`eventfd` file " +"descriptor. On read the internal counter is decremented by one." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 2.6.30 or newer with glibc 2.8 or " +"newer." +msgstr "" + +msgid "Linux extended attributes" +msgstr "" + +msgid "These functions are all available on Linux only." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.getxattr`` with arguments " +"``path``, ``attribute``." +msgstr "" + +msgid "Accepts a :term:`path-like object` for *path* and *attribute*." +msgstr "" + +msgid "" +"Return a list of the extended filesystem attributes on *path*. The " +"attributes in the list are represented as strings decoded with the " +"filesystem encoding. If *path* is ``None``, :func:`listxattr` will examine " +"the current directory." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.listxattr`` with argument " +"``path``." +msgstr "" + +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 :term:`filesystem encoding and error handler`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.removexattr`` with arguments " +"``path``, ``attribute``." +msgstr "" + +msgid "" +"Set the extended filesystem attribute *attribute* on *path* to *value*. " +"*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 :term:`filesystem encoding and error handler`. *flags* may " +"be :data:`XATTR_REPLACE` or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` " +"is given and the attribute does not exist, ``ENODATA`` will be raised. " +"If :data:`XATTR_CREATE` is given and the attribute already exists, the " +"attribute will not be created and ``EEXISTS`` will be raised." +msgstr "" + +msgid "" +"A bug in Linux kernel versions less than 2.6.39 caused the flags argument to " +"be ignored on some filesystems." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.setxattr`` with arguments " +"``path``, ``attribute``, ``value``, ``flags``." +msgstr "" + +msgid "" +"The maximum size the value of an extended attribute can be. Currently, this " +"is 64 KiB on Linux." +msgstr "" + +msgid "" +"This is a possible value for the flags argument in :func:`setxattr`. It " +"indicates the operation must create an attribute." +msgstr "" + +msgid "" +"This is a possible value for the flags argument in :func:`setxattr`. It " +"indicates the operation must replace an existing attribute." +msgstr "" + +msgid "Process Management" +msgstr "" + +msgid "These functions may be used to create and manage processes." +msgstr "" + +msgid "" +"The various :func:`exec\\* ` functions take a list of arguments for " +"the new program loaded into the process. In each case, the first of these " +"arguments is passed to the new program as its own name rather than as an " +"argument a user may have typed on a command line. For the C programmer, " +"this is the ``argv[0]`` passed to a program's :c:func:`main`. For example, " +"``os.execv('/bin/echo', ['foo', 'bar'])`` will only print ``bar`` on " +"standard output; ``foo`` will seem to be ignored." +msgstr "" + +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`." +msgstr "" + +msgid "Add a path to the DLL search path." +msgstr "" + +msgid "" +"This search path is used when resolving dependencies for imported extension " +"modules (the module itself is resolved through :data:`sys.path`), and also " +"by :mod:`ctypes`." +msgstr "" + +msgid "" +"Remove the directory by calling **close()** on the returned object or using " +"it in a :keyword:`with` statement." +msgstr "" + +msgid "" +"See the `Microsoft documentation `_ for more information about how DLLs " +"are loaded." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.add_dll_directory`` with " +"argument ``path``." +msgstr "" + +msgid "" +"Previous versions of CPython would resolve DLLs using the default behavior " +"for the current process. This led to inconsistencies, such as only sometimes " +"searching :envvar:`PATH` or the current working directory, and OS functions " +"such as ``AddDllDirectory`` having no effect." +msgstr "" + +msgid "" +"In 3.8, the two primary ways DLLs are loaded now explicitly override the " +"process-wide behavior to ensure consistency. See the :ref:`porting notes " +"` for information on updating libraries." +msgstr "" + +msgid "" +"These functions all execute a new program, replacing the current process; " +"they do not return. On Unix, the new executable is loaded into the current " +"process, and will have the same process id as the caller. Errors will be " +"reported as :exc:`OSError` exceptions." +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." +msgstr "" + +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 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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.exec`` with arguments " +"``path``, ``args``, ``env``." +msgstr "" + +msgid "" +"Added support for specifying *path* as an open file descriptor " +"for :func:`execve`." +msgstr "" + +msgid "" +"Exit the process with status *n*, without calling cleanup handlers, flushing " +"stdio buffers, etc." +msgstr "" + +msgid "" +"The standard way to exit is :func:`sys.exit(n) `. :func:`!_exit` " +"should normally only be used in the child process after a :func:`fork`." +msgstr "" + +msgid "" +"The following exit codes are defined and can be used with :func:`_exit`, " +"although they are not required. These are typically used for system " +"programs written in Python, such as a mail server's external command " +"delivery program." +msgstr "" + +msgid "" +"Some of these may not be available on all Unix platforms, since there is " +"some variation. These constants are defined where they are defined by the " +"underlying platform." +msgstr "" + +msgid "Exit code that means no error occurred." +msgstr "" + +msgid "" +"Exit code that means the command was used incorrectly, such as when the " +"wrong number of arguments are given." +msgstr "" + +msgid "Exit code that means the input data was incorrect." +msgstr "" + +msgid "Exit code that means an input file did not exist or was not readable." +msgstr "" + +msgid "Exit code that means a specified user did not exist." +msgstr "" + +msgid "Exit code that means a specified host did not exist." +msgstr "" + +msgid "Exit code that means that a required service is unavailable." +msgstr "" + +msgid "Exit code that means an internal software error was detected." +msgstr "" + +msgid "" +"Exit code that means an operating system error was detected, such as the " +"inability to fork or create a pipe." +msgstr "" + +msgid "" +"Exit code that means some system file did not exist, could not be opened, or " +"had some other kind of error." +msgstr "" + +msgid "Exit code that means a user specified output file could not be created." +msgstr "" + +msgid "" +"Exit code that means that an error occurred while doing I/O on some file." +msgstr "" + +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." +msgstr "" + +msgid "" +"Exit code that means that a protocol exchange was illegal, invalid, or not " +"understood." +msgstr "" + +msgid "" +"Exit code that means that there were insufficient permissions to perform the " +"operation (but not intended for file system problems)." +msgstr "" + +msgid "Exit code that means that some kind of configuration error occurred." +msgstr "" + +msgid "Exit code that means something like \"an entry was not found\"." +msgstr "" + +msgid "" +"Fork a child process. Return ``0`` in the child and the child's process id " +"in the parent. If an error occurs :exc:`OSError` is raised." +msgstr "" + +msgid "" +"Note that some platforms including FreeBSD <= 6.3 and Cygwin have known " +"issues when using ``fork()`` from a thread." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.fork`` with no arguments." +msgstr "" + +msgid "" +"Calling ``fork()`` in a subinterpreter is no longer supported " +"(:exc:`RuntimeError` is raised)." +msgstr "" + +msgid "See :mod:`ssl` for applications that use the SSL module with fork()." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.forkpty`` with no arguments." +msgstr "" + +msgid "" +"Calling ``forkpty()`` in a subinterpreter is no longer supported " +"(:exc:`RuntimeError` is raised)." +msgstr "" + +msgid "" +"Send signal *sig* to the process *pid*. Constants for the specific signals " +"available on the host platform are defined in the :mod:`signal` module." +msgstr "" + +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 " +"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 " +"version of :func:`kill` additionally takes process handles to be killed." +msgstr "" + +msgid "See also :func:`signal.pthread_kill`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.kill`` with arguments " +"``pid``, ``sig``." +msgstr "" + +msgid "Windows support." +msgstr "" + +msgid "Send the signal *sig* to the process group *pgid*." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.killpg`` with arguments " +"``pgid``, ``sig``." +msgstr "" + +msgid "" +"Add *increment* to the process's \"niceness\". Return the new niceness." +msgstr "" + +msgid "" +"Return a file descriptor referring to the process *pid*. This descriptor " +"can be used to perform process management without races and signals. The " +"*flags* argument is provided for future extensions; no flag values are " +"currently defined." +msgstr "" + +msgid "See the :manpage:`pidfd_open(2)` man page for more details." +msgstr "" + +msgid ":ref:`Availability `: Linux 5.3+" +msgstr "" + +msgid "" +"Lock program segments into memory. The value of *op* (defined in ````) determines which segments are locked." +msgstr "" + +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." +msgstr "" + +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, " +"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 " +"contains the signed integer return code from the child process." +msgstr "" + +msgid "" +"On Unix, :func:`waitstatus_to_exitcode` can be used to convert the ``close`` " +"method result (exit status) into an exit code if it is not ``None``. On " +"Windows, the ``close`` method result is directly the exit code (or ``None``)." +msgstr "" + +msgid "" +"This is implemented using :class:`subprocess.Popen`; see that class's " +"documentation for more powerful ways to manage and communicate with " +"subprocesses." +msgstr "" + +msgid "Wraps the :c:func:`posix_spawn` C library API for use from Python." +msgstr "" + +msgid "" +"Most users should use :func:`subprocess.run` instead of :func:`posix_spawn`." +msgstr "" + +msgid "" +"The positional-only arguments *path*, *args*, and *env* are similar " +"to :func:`execve`." +msgstr "" + +msgid "" +"The *path* parameter is the path to the executable file. The *path* should " +"contain a directory. Use :func:`posix_spawnp` to pass an executable file " +"without directory." +msgstr "" + +msgid "" +"The *file_actions* argument may be a sequence of tuples describing actions " +"to take on specific file descriptors in the child process between the C " +"library implementation's :c:func:`fork` and :c:func:`exec` steps. The first " +"item in each tuple must be one of the three type indicator listed below " +"describing the remaining tuple elements:" +msgstr "" + +msgid "(``os.POSIX_SPAWN_OPEN``, *fd*, *path*, *flags*, *mode*)" +msgstr "" + +msgid "Performs ``os.dup2(os.open(path, flags, mode), fd)``." +msgstr "" + +msgid "(``os.POSIX_SPAWN_CLOSE``, *fd*)" +msgstr "(``os.POSIX_SPAWN_CLOSE``, *fd*)" + +msgid "Performs ``os.close(fd)``." +msgstr "Performs ``os.close(fd)``." + +msgid "(``os.POSIX_SPAWN_DUP2``, *fd*, *new_fd*)" +msgstr "" + +msgid "Performs ``os.dup2(fd, new_fd)``." +msgstr "" + +msgid "" +"These tuples correspond to the C " +"library :c:func:`posix_spawn_file_actions_addopen`, :c:func:`posix_spawn_file_actions_addclose`, " +"and :c:func:`posix_spawn_file_actions_adddup2` API calls used to prepare for " +"the :c:func:`posix_spawn` call itself." +msgstr "" + +msgid "" +"The *setpgroup* argument will set the process group of the child to the " +"value specified. If the value specified is 0, the child's process group ID " +"will be made the same as its process ID. If the value of *setpgroup* is not " +"set, the child will inherit the parent's process group ID. This argument " +"corresponds to the C library :c:data:`POSIX_SPAWN_SETPGROUP` flag." +msgstr "" + +msgid "" +"If the *resetids* argument is ``True`` it will reset the effective UID and " +"GID of the child to the real UID and GID of the parent process. If the " +"argument is ``False``, then the child retains the effective UID and GID of " +"the parent. In either case, if the set-user-ID and set-group-ID permission " +"bits are enabled on the executable file, their effect will override the " +"setting of the effective UID and GID. This argument corresponds to the C " +"library :c:data:`POSIX_SPAWN_RESETIDS` flag." +msgstr "" + +msgid "" +"If the *setsid* argument is ``True``, it will create a new session ID for " +"``posix_spawn``. *setsid* requires :c:data:`POSIX_SPAWN_SETSID` " +"or :c:data:`POSIX_SPAWN_SETSID_NP` flag. " +"Otherwise, :exc:`NotImplementedError` is raised." +msgstr "" + +msgid "" +"The *setsigmask* argument will set the signal mask to the signal set " +"specified. If the parameter is not used, then the child inherits the " +"parent's signal mask. This argument corresponds to the C " +"library :c:data:`POSIX_SPAWN_SETSIGMASK` flag." +msgstr "" + +msgid "" +"The *sigdef* argument will reset the disposition of all signals in the set " +"specified. This argument corresponds to the C " +"library :c:data:`POSIX_SPAWN_SETSIGDEF` flag." +msgstr "" + +msgid "" +"The *scheduler* argument must be a tuple containing the (optional) scheduler " +"policy and an instance of :class:`sched_param` with the scheduler " +"parameters. A value of ``None`` in the place of the scheduler policy " +"indicates that is not being provided. This argument is a combination of the " +"C library :c:data:`POSIX_SPAWN_SETSCHEDPARAM` " +"and :c:data:`POSIX_SPAWN_SETSCHEDULER` flags." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.posix_spawn`` with arguments " +"``path``, ``argv``, ``env``." +msgstr "" + +msgid "Wraps the :c:func:`posix_spawnp` C library API for use from Python." +msgstr "" + +msgid "" +"Similar to :func:`posix_spawn` except that the system searches for the " +"*executable* file in the list of directories specified by the :envvar:`PATH` " +"environment variable (in the same way as for ``execvp(3)``)." +msgstr "" + +msgid "" +":ref:`Availability `: See :func:`posix_spawn` documentation." +msgstr "" + +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." +msgstr "" + +msgid "*before* is a function called before forking a child process." +msgstr "" + +msgid "" +"*after_in_parent* is a function called from the parent process after forking " +"a child process." +msgstr "" + +msgid "*after_in_child* is a function called from the child process." +msgstr "" + +msgid "" +"These calls are only made if control is expected to return to the Python " +"interpreter. A typical :mod:`subprocess` launch will not trigger them as " +"the child is not going to re-enter the interpreter." +msgstr "" + +msgid "" +"Functions registered for execution before forking are called in reverse " +"registration order. Functions registered for execution after forking " +"(either in the parent or in the child) are called in registration order." +msgstr "" + +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`." +msgstr "" + +msgid "There is no way to unregister a function." +msgstr "" + +msgid "Execute the program *path* in a new process." +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.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"Note on VxWorks, this function doesn't return ``-signal`` when the new " +"process is killed. Instead it raises OSError exception." +msgstr "" + +msgid "" +"The \"l\" and \"v\" variants of the :func:`spawn\\* ` 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:`spawnl\\*` 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 must start with the name of the command being run." +msgstr "" + +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 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." +msgstr "" + +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 " +"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``." +msgstr "" + +msgid "" +"As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` " +"are equivalent::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.spawn`` with arguments " +"``mode``, ``path``, ``args``, ``env``." +msgstr "" + +msgid "" +":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 "" + +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." +msgstr "" + +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." +msgstr "" + +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 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." +msgstr "" + +msgid "Start a file with its associated application." +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 " +"associated." +msgstr "" + +msgid "" +"When another *operation* is given, it must be a \"command verb\" that " +"specifies what should be done with the file. Common verbs documented by " +"Microsoft are ``'print'`` and ``'edit'`` (to be used on files) as well as " +"``'explore'`` and ``'find'`` (to be used on directories)." +msgstr "" + +msgid "" +"When launching an application, specify *arguments* to be passed as a single " +"string. This argument may have no effect when using this function to launch " +"a document." +msgstr "" + +msgid "" +"The default working directory is inherited, but may be overridden by the " +"*cwd* argument. This should be an absolute path. A relative *path* will be " +"resolved against this argument." +msgstr "" + +msgid "" +"Use *show_cmd* to override the default window style. Whether this has any " +"effect will depend on the application being launched. Values are integers as " +"supported by the Win32 :c:func:`ShellExecute` function." +msgstr "" + +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 or *cwd*. If you want to use an absolute path, make " +"sure the first character is not a slash (``'/'``) Use :mod:`pathlib` or " +"the :func:`os.path.normpath` function to ensure that paths are properly " +"encoded for Win32." +msgstr "" + +msgid "" +"To reduce interpreter startup overhead, the Win32 :c:func:`ShellExecute` " +"function is not resolved until this function is first called. If the " +"function cannot be resolved, :exc:`NotImplementedError` will be raised." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.startfile`` with arguments " +"``path``, ``operation``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.startfile/2`` with arguments " +"``path``, ``operation``, ``arguments``, ``cwd``, ``show_cmd``." +msgstr "" + +msgid "" +"Added the *arguments*, *cwd* and *show_cmd* arguments, and the " +"``os.startfile/2`` audit event." +msgstr "" + +msgid "" +"Execute the command (a string) in a subshell. This is implemented by " +"calling the Standard C function :c:func:`system`, and has the same " +"limitations. Changes to :data:`sys.stdin`, etc. are not reflected in the " +"environment of the executed command. If *command* generates any output, it " +"will be sent to the interpreter standard output stream. The C standard does " +"not specify the meaning of the return value of the C function, so the return " +"value of the Python function is system-dependent." +msgstr "" + +msgid "" +"On Unix, the return value is the exit status of the process encoded in the " +"format specified for :func:`wait`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :mod:`subprocess` module provides more powerful facilities for spawning " +"new processes and retrieving their results; using that module is preferable " +"to using this function. See the :ref:`subprocess-replacements` section in " +"the :mod:`subprocess` documentation for some helpful recipes." +msgstr "" + +msgid "" +"On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result " +"(exit status) into an exit code. On Windows, the result is directly the exit " +"code." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``os.system`` with argument " +"``command``." +msgstr "" + +msgid "" +"Returns the current global process times. The return value is an object with " +"five attributes:" +msgstr "" + +msgid ":attr:`!user` - user time" +msgstr "" + +msgid ":attr:`!system` - system time" +msgstr "" + +msgid ":attr:`!children_user` - user time of all child processes" +msgstr "" + +msgid ":attr:`!children_system` - system time of all child processes" +msgstr "" + +msgid ":attr:`!elapsed` - elapsed real time since a fixed point in the past" +msgstr "" + +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." +msgstr "" + +msgid "" +"See the Unix manual page :manpage:`times(2)` and `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." +msgstr "" + +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 " +"signal number that killed the process, and whose high byte is the exit " +"status (if the signal number is zero); the high bit of the low byte is set " +"if a core file was produced." +msgstr "" + +msgid "" +":func:`waitstatus_to_exitcode` can be used to convert the exit status into " +"an exit code." +msgstr "" + +msgid "" +":func:`waitpid` can be used to wait for the completion of a specific child " +"process and has more options." +msgstr "" + +msgid "" +"Wait for the completion of one or more child processes. *idtype* can " +"be :data:`P_PID`, :data:`P_PGID`, :data:`P_ALL`, or :data:`P_PIDFD` on " +"Linux. *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 "" + +msgid "" +"These are the possible values for *idtype* in :func:`waitid`. They affect " +"how *id* is interpreted." +msgstr "" + +msgid "" +"This is a Linux-specific *idtype* that indicates that *id* is a file " +"descriptor that refers to a process." +msgstr "" + +msgid ":ref:`Availability `: Linux 5.4+" +msgstr "" + +msgid "" +"Flags that can be used in *options* in :func:`waitid` that specify what " +"child signal to wait for." +msgstr "" + +msgid "" +"These are the possible values for :attr:`si_code` in the result returned " +"by :func:`waitid`." +msgstr "" + +msgid "Added :data:`CLD_KILLED` and :data:`CLD_STOPPED` values." +msgstr "" + +msgid "The details of this function differ on Unix and Windows." +msgstr "" + +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 " +"(encoded as for :func:`wait`). The semantics of the call are affected by " +"the value of the integer *options*, which should be ``0`` for normal " +"operation." +msgstr "" + +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 " +"``-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 "" + +msgid "" +"An :exc:`OSError` is raised with the value of errno when the syscall returns " +"-1." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +":func:`waitstatus_to_exitcode` can be used to convert the exit status into " +"an exitcode." +msgstr "" + +msgid "" +"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 "" + +msgid "Convert a wait status to an exit code." +msgstr "" + +msgid "On Unix:" +msgstr "" + +msgid "" +"If the process exited normally (if ``WIFEXITED(status)`` is true), return " +"the process exit status (return ``WEXITSTATUS(status)``): result greater " +"than or equal to 0." +msgstr "" + +msgid "" +"If the process was terminated by a signal (if ``WIFSIGNALED(status)`` is " +"true), return ``-signum`` where *signum* is the number of the signal that " +"caused the process to terminate (return ``-WTERMSIG(status)``): result less " +"than 0." +msgstr "" + +msgid "Otherwise, raise a :exc:`ValueError`." +msgstr "" + +msgid "On Windows, return *status* shifted right by 8 bits." +msgstr "" + +msgid "" +"On Unix, if the process is being traced or if :func:`waitpid` was called " +"with :data:`WUNTRACED` option, the caller must first check if " +"``WIFSTOPPED(status)`` is true. This function must not be called if " +"``WIFSTOPPED(status)`` is true." +msgstr "" + +msgid "" +":func:`WIFEXITED`, :func:`WEXITSTATUS`, :func:`WIFSIGNALED`, :func:`WTERMSIG`, :func:`WIFSTOPPED`, :func:`WSTOPSIG` " +"functions." +msgstr "" + +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 "" + +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 "" + +msgid ":ref:`Availability `: some Unix systems." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "" +"Return ``True`` if a core dump was generated for the process, otherwise " +"return ``False``." +msgstr "" + +msgid "This function should be employed only if :func:`WIFSIGNALED` is true." +msgstr "" + +msgid "" +"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 "" + +msgid "See :data:`WCONTINUED` option." +msgstr "" + +msgid "" +"Return ``True`` if the process was stopped by delivery of a signal, " +"otherwise return ``False``." +msgstr "" + +msgid "" +":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 "" + +msgid "" +"Return ``True`` if the process was terminated by a signal, otherwise return " +"``False``." +msgstr "" + +msgid "" +"Return ``True`` if the process exited terminated normally, that is, by " +"calling ``exit()`` or ``_exit()``, or by returning from ``main()``; " +"otherwise return ``False``." +msgstr "" + +msgid "Return the process exit status." +msgstr "" + +msgid "This function should be employed only if :func:`WIFEXITED` is true." +msgstr "" + +msgid "Return the signal which caused the process to stop." +msgstr "" + +msgid "This function should be employed only if :func:`WIFSTOPPED` is true." +msgstr "" + +msgid "Return the number of the signal that caused the process to terminate." +msgstr "" + +msgid "Interface to the scheduler" +msgstr "" + +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 " +"information, consult your Unix manpages." +msgstr "" + +msgid "" +"The following scheduling policies are exposed if they are supported by the " +"operating system." +msgstr "" + +msgid "The default scheduling policy." +msgstr "" + +msgid "" +"Scheduling policy for CPU-intensive processes that tries to preserve " +"interactivity on the rest of the computer." +msgstr "" + +msgid "Scheduling policy for extremely low priority background tasks." +msgstr "" + +msgid "Scheduling policy for sporadic server programs." +msgstr "" + +msgid "A First In First Out scheduling policy." +msgstr "" + +msgid "A round-robin scheduling policy." +msgstr "" + +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." +msgstr "" + +msgid "" +"This class represents tunable scheduling parameters used " +"in :func:`sched_setparam`, :func:`sched_setscheduler`, " +"and :func:`sched_getparam`. It is immutable." +msgstr "" + +msgid "At the moment, there is only one possible parameter:" +msgstr "" + +msgid "The scheduling priority for a scheduling policy." +msgstr "" + +msgid "" +"Get the minimum priority value for *policy*. *policy* is one of the " +"scheduling policy constants above." +msgstr "" + +msgid "" +"Get the maximum priority value for *policy*. *policy* is one of the " +"scheduling policy constants above." +msgstr "" + +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 " +"above. *param* is a :class:`sched_param` instance." +msgstr "" + +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 "" + +msgid "" +"Set the scheduling parameters for the process with PID *pid*. A *pid* of 0 " +"means the calling process. *param* is a :class:`sched_param` instance." +msgstr "" + +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 "" + +msgid "" +"Return the round-robin quantum in seconds for the process with PID *pid*. A " +"*pid* of 0 means the calling process." +msgstr "" + +msgid "Voluntarily relinquish the CPU." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the set of CPUs the process with PID *pid* (or the current process if " +"zero) is restricted to." +msgstr "" + +msgid "Miscellaneous System Information" +msgstr "" + +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 " +"included in that mapping, passing an integer for *name* is also accepted." +msgstr "" + +msgid "" +"If the configuration value specified by *name* isn't defined, ``None`` is " +"returned." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "" +"Return the number of CPUs in the system. Returns ``None`` if undetermined." +msgstr "" + +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))``" +msgstr "" + +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 "" + +msgid "" +"Return integer-valued system configuration values. If the configuration " +"value specified by *name* isn't defined, ``-1`` is returned. The comments " +"regarding the *name* parameter for :func:`confstr` apply here as well; the " +"dictionary that provides information on the known names is given by " +"``sysconf_names``." +msgstr "" + +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 "" + +msgid "" +"The following data values are used to support path manipulation operations. " +"These are defined for all platforms." +msgstr "" + +msgid "" +"Higher-level operations on pathnames are defined in the :mod:`os.path` " +"module." +msgstr "" + +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`." +msgstr "" + +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`." +msgstr "" + +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 useful. Also available via :mod:`os.path`." +msgstr "" + +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 " +"via :mod:`os.path`." +msgstr "" + +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 "" + +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`." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The file path of the null device. For example: ``'/dev/null'`` for POSIX, " +"``'nul'`` for Windows. Also available via :mod:`os.path`." +msgstr "" + +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." +msgstr "" + +msgid "Random numbers" +msgstr "" + +msgid "" +"Get up to *size* random bytes. The function can return less bytes than " +"requested." +msgstr "" + +msgid "" +"These bytes can be used to seed user-space random number generators or for " +"cryptographic purposes." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"See also the `Linux getrandom() manual page `_." +msgstr "" + +msgid ":ref:`Availability `: Linux 3.17 and newer." +msgstr "" + +msgid "" +"Return a bytestring of *size* random bytes suitable for cryptographic use." +msgstr "" + +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 "" + +msgid "" +"On Linux, if the ``getrandom()`` syscall is available, it is used in " +"blocking mode: block until the system urandom entropy pool is initialized " +"(128 bits of entropy are collected by the kernel). See the :pep:`524` for " +"the rationale. On Linux, the :func:`getrandom` function can be used to get " +"random bytes in non-blocking mode (using the :data:`GRND_NONBLOCK` flag) or " +"to poll until the system urandom entropy pool is initialized." +msgstr "" + +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." +msgstr "" + +msgid "On Windows, it will use ``CryptGenRandom()``." +msgstr "" + +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 "" + +msgid "" +"On Linux, ``getrandom()`` is now used in blocking mode to increase the " +"security." +msgstr "" + +msgid "" +"On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is " +"not initialized yet), fall back on reading ``/dev/urandom``." +msgstr "" + +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." +msgstr "" + +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 "" + +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`." +msgstr "" + +msgid "" +"If this bit is set, then random bytes are drawn from the ``/dev/" +"random`` pool instead of the ``/dev/urandom`` pool." +msgstr "" diff --git a/library/os_path.po b/library/os_path.po index 9c3856d159..4744b43a16 100644 --- a/library/os_path.po +++ b/library/os_path.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:10+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`os.path` --- Common pathname manipulations" msgstr "" @@ -56,12 +56,12 @@ msgstr "" 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 "" msgid ":mod:`posixpath` for UNIX-style paths" @@ -71,10 +71,9 @@ msgid ":mod:`ntpath` for Windows paths" msgstr "" msgid "" -":func:`exists`, :func:`lexists`, :func:`isdir`, :func:`isfile`, :func:" -"`islink`, and :func:`ismount` now return ``False`` instead of raising an " -"exception for paths that contain characters or bytes unrepresentable at the " -"OS level." +":func:`exists`, :func:`lexists`, :func:`isdir`, :func:`isfile`, :func:`islink`, " +"and :func:`ismount` now return ``False`` instead of raising an exception for " +"paths that contain characters or bytes unrepresentable at the OS level." msgstr "" msgid "" @@ -108,14 +107,16 @@ msgid "Accepts a sequence of :term:`path-like objects `." msgstr "" 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 " -"(``''``)." +"Return the longest string prefix (taken character-by-character) that is a " +"prefix of all strings in *list*. If *list* is empty, return the empty " +"string (``''``)." msgstr "" msgid "" "This function may return invalid paths because it works a character at a " -"time. To obtain a valid path, see :func:`commonpath`." +"time. If you need a **common path prefix**, then the algorithm implemented " +"in this function is not secure. Use :func:`commonpath` for finding a common " +"path prefix." msgstr "" msgid "" @@ -138,8 +139,8 @@ msgstr "" 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 "" msgid "" @@ -148,10 +149,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -184,9 +186,9 @@ msgstr "" 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 " -"inaccessible." +"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 "" msgid "" @@ -249,21 +251,22 @@ msgid "Support for detecting non-root mount points on Windows." msgstr "" msgid "" -"Join one or more path components intelligently. The return value is the " -"concatenation of *path* and any members of *\\*paths* with exactly one " -"directory separator following each non-empty part except the last, meaning " -"that the result will only end in a separator if the last part is empty. If " -"a component is an absolute path, all previous components are thrown away and " -"joining continues from the absolute path component." +"Join one or more path segments intelligently. The return value is the " +"concatenation of *path* and all members of *\\*paths*, with exactly one " +"directory separator following each non-empty part, except the last. That is, " +"the result will only end in a separator if the last part is either empty or " +"ends in a separator. If a segment is an absolute path (which on Windows " +"requires both a drive and a root), then all previous segments are ignored " +"and joining continues from the absolute path segment." msgstr "" 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 is not reset when a rooted path segment (e.g., " +"``r'\\foo'``) is encountered. If a segment is on a different drive or is an " +"absolute path, all previous segments are ignored and the drive 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 "" msgid "Accepts a :term:`path-like object` for *path* and *paths*." @@ -299,10 +302,33 @@ msgid "" msgstr "" msgid "" -"If a path doesn't exist or a symlink loop is encountered, and *strict* is " -"``True``, :exc:`OSError` is raised. If *strict* is ``False``, the path is " -"resolved as far as possible and any remainder is appended without checking " -"whether it exists." +"By default, the path is evaluated up to the first component that does not " +"exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All " +"such components are appended unchanged to the existing part of the path." +msgstr "" + +msgid "" +"Some errors that are handled this way include \"access denied\", \"not a " +"directory\", or \"bad argument to internal function\". Thus, the resulting " +"path may be missing or inaccessible, may still contain links or loops, and " +"may traverse non-directories." +msgstr "" + +msgid "This behavior can be modified by keyword arguments:" +msgstr "" + +msgid "" +"If *strict* is ``True``, the first error encountered when evaluating the " +"path is re-raised. In particular, :exc:`FileNotFoundError` is raised if " +"*path* does not exist, or another :exc:`OSError` if it is otherwise " +"inaccessible." +msgstr "" + +msgid "" +"If *strict* is :py:data:`os.path.ALLOW_MISSING`, errors other " +"than :exc:`FileNotFoundError` are re-raised (as with ``strict=True``). Thus, " +"the returned path will not contain any symbolic links, but the named file " +"and some of its parent directories may be missing." msgstr "" msgid "" @@ -322,6 +348,14 @@ msgstr "" msgid "The *strict* parameter was added." msgstr "Parametr *strict* został dodany." +msgid "" +"The :py:data:`~os.path.ALLOW_MISSING` value for the *strict* parameter was " +"added." +msgstr "" + +msgid "Special value used for the *strict* argument in :func:`realpath`." +msgstr "" + msgid "" "Return a relative filepath to *path* either from the current directory or " "from an optional *start* directory. This is a path computation: the " @@ -352,9 +386,10 @@ msgstr "" 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 "" msgid "" diff --git a/library/ossaudiodev.po b/library/ossaudiodev.po index 8c3fe97838..b20f4b2ba2 100644 --- a/library/ossaudiodev.po +++ b/library/ossaudiodev.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:10+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`ossaudiodev` --- Access to OSS-compatible audio devices" msgstr "" @@ -44,8 +44,8 @@ msgid "" msgstr "" msgid "" -"`Open Sound System Programmer's Guide `_" +"`Open Sound System Programmer's Guide `_" msgstr "" msgid "the official documentation for the OSS C API" @@ -65,10 +65,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -78,11 +78,11 @@ msgstr "" 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 " -"methods." +"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 "" msgid "" @@ -172,10 +172,10 @@ 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 "" msgid "" @@ -268,8 +268,8 @@ 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 "" msgid "" @@ -354,8 +354,8 @@ msgid "" "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`)." +"device driver (i.e., the same as the return values " +"of :meth:`setfmt`, :meth:`channels`, and :meth:`speed`)." msgstr "" msgid "For example, ::" @@ -411,25 +411,27 @@ msgstr "" 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 "" msgid "" -"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." +"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 "" 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 "" msgid "" @@ -451,8 +453,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -475,7 +477,7 @@ msgstr "" 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/pathlib.po b/library/pathlib.po new file mode 100644 index 0000000000..583e2d7b1c --- /dev/null +++ b/library/pathlib.po @@ -0,0 +1,967 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pathlib` --- Object-oriented filesystem paths" +msgstr "" + +msgid "**Source code:** :source:`Lib/pathlib.py`" +msgstr "" + +msgid "" +"This module offers classes representing filesystem paths with semantics " +"appropriate for different operating systems. Path classes are divided " +"between :ref:`pure paths `, which provide purely computational " +"operations without I/O, and :ref:`concrete paths `, which " +"inherit from pure paths but also provide I/O operations." +msgstr "" + +msgid "" +"If you've never used this module before or just aren't sure which class is " +"right for your task, :class:`Path` is most likely what you need. It " +"instantiates a :ref:`concrete path ` for the platform the " +"code is running on." +msgstr "" + +msgid "Pure paths are useful in some special cases; for example:" +msgstr "" + +msgid "" +"If you want to manipulate Windows paths on a Unix machine (or vice versa). " +"You cannot instantiate a :class:`WindowsPath` when running on Unix, but you " +"can instantiate :class:`PureWindowsPath`." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`428`: The pathlib module -- object-oriented filesystem paths." +msgstr "" + +msgid "" +"For low-level path manipulation on strings, you can also use " +"the :mod:`os.path` module." +msgstr "" + +msgid "Basic use" +msgstr "" + +msgid "Importing the main class::" +msgstr "" + +msgid "Listing subdirectories::" +msgstr "" + +msgid "Listing Python source files in this directory tree::" +msgstr "" + +msgid "Navigating inside a directory tree::" +msgstr "" + +msgid "Querying path properties::" +msgstr "" + +msgid "Opening a file::" +msgstr "" + +msgid "Pure paths" +msgstr "" + +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*:" +msgstr "" + +msgid "" +"A generic class that represents the system's path flavour (instantiating it " +"creates either a :class:`PurePosixPath` or a :class:`PureWindowsPath`)::" +msgstr "" + +msgid "" +"Each element of *pathsegments* can be either a string representing a path " +"segment, an object implementing the :class:`os.PathLike` interface which " +"returns a string, or another path object::" +msgstr "" + +msgid "When *pathsegments* is empty, the current directory is assumed::" +msgstr "" + +msgid "" +"If a segment is an absolute path, all previous segments are ignored " +"(like :func:`os.path.join`)::" +msgstr "" + +msgid "" +"On Windows, the drive is not reset when a rooted relative path segment " +"(e.g., ``r'\\foo'``) is encountered::" +msgstr "" + +msgid "" +"Spurious slashes and single dots are collapsed, but double dots (``'..'``) " +"and leading double slashes (``'//'``) are not, since this would change the " +"meaning of a path for various reasons (e.g. symbolic links, UNC paths)::" +msgstr "" + +msgid "" +"(a naïve approach would make ``PurePosixPath('foo/../bar')`` equivalent to " +"``PurePosixPath('bar')``, which is wrong if ``foo`` is a symbolic link to " +"another directory)" +msgstr "" + +msgid "" +"Pure path objects implement the :class:`os.PathLike` interface, allowing " +"them to be used anywhere the interface is accepted." +msgstr "" + +msgid "Added support for the :class:`os.PathLike` interface." +msgstr "" + +msgid "" +"A subclass of :class:`PurePath`, this path flavour represents non-Windows " +"filesystem paths::" +msgstr "" + +msgid "*pathsegments* is specified similarly to :class:`PurePath`." +msgstr "" + +msgid "" +"A subclass of :class:`PurePath`, this path flavour represents Windows " +"filesystem paths, including `UNC paths`_::" +msgstr "" + +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." +msgstr "" + +msgid "General properties" +msgstr "" + +msgid "" +"Paths are immutable and :term:`hashable`. Paths of a same flavour are " +"comparable and orderable. These properties respect the flavour's case-" +"folding semantics::" +msgstr "" + +msgid "Paths of a different flavour compare unequal and cannot be ordered::" +msgstr "" + +msgid "Operators" +msgstr "" + +msgid "" +"The slash operator helps create child paths, like :func:`os.path.join`. If " +"the argument is an absolute path, the previous path is ignored. On Windows, " +"the drive is not reset when the argument is a rooted relative path (e.g., " +"``r'\\foo'``)::" +msgstr "" + +msgid "" +"A path object can be used anywhere an object " +"implementing :class:`os.PathLike` is accepted::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Similarly, calling :class:`bytes` on a path gives the raw filesystem path as " +"a bytes object, as encoded by :func:`os.fsencode`::" +msgstr "" + +msgid "" +"Calling :class:`bytes` is only recommended under Unix. Under Windows, the " +"unicode form is the canonical representation of filesystem paths." +msgstr "" + +msgid "Accessing individual parts" +msgstr "" + +msgid "" +"To access the individual \"parts\" (components) of a path, use the following " +"property:" +msgstr "" + +msgid "A tuple giving access to the path's various components::" +msgstr "" + +msgid "(note how the drive and local root are regrouped in a single part)" +msgstr "" + +msgid "Methods and properties" +msgstr "" + +msgid "Pure paths provide the following methods and properties:" +msgstr "" + +msgid "A string representing the drive letter or name, if any::" +msgstr "" + +msgid "UNC shares are also considered drives::" +msgstr "" + +msgid "A string representing the (local or global) root, if any::" +msgstr "" + +msgid "UNC shares always have a root::" +msgstr "" + +msgid "" +"If the path starts with more than two successive " +"slashes, :class:`~pathlib.PurePosixPath` collapses them::" +msgstr "" + +msgid "" +"This behavior conforms to *The Open Group Base Specifications Issue 6*, " +"paragraph `4.11 Pathname Resolution `_:" +msgstr "" + +msgid "" +"*\"A pathname that begins with two successive slashes may be interpreted in " +"an implementation-defined manner, although more than two leading slashes " +"shall be treated as a single slash.\"*" +msgstr "" + +msgid "The concatenation of the drive and root::" +msgstr "" + +msgid "" +"An immutable sequence providing access to the logical ancestors of the path::" +msgstr "" + +msgid "" +"The parents sequence now supports :term:`slices ` and negative index " +"values." +msgstr "" + +msgid "The logical parent of the path::" +msgstr "" + +msgid "You cannot go past an anchor, or empty path::" +msgstr "" + +msgid "This is a purely lexical operation, hence the following behaviour::" +msgstr "" + +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." +msgstr "" + +msgid "" +"A string representing the final path component, excluding the drive and " +"root, if any::" +msgstr "" + +msgid "UNC drive names are not considered::" +msgstr "" + +msgid "The file extension of the final component, if any::" +msgstr "" + +msgid "A list of the path's file extensions::" +msgstr "" + +msgid "The final path component, without its suffix::" +msgstr "" + +msgid "" +"Return a string representation of the path with forward slashes (``/``)::" +msgstr "" + +msgid "" +"Represent the path as a ``file`` URI. :exc:`ValueError` is raised if the " +"path isn't absolute." +msgstr "" + +msgid "" +"Return whether the path is absolute or not. A path is considered absolute " +"if it has both a root and (if the flavour allows) a drive::" +msgstr "" + +msgid "Return whether or not this path is relative to the *other* path." +msgstr "" + +msgid "" +"With :class:`PureWindowsPath`, return ``True`` if the path is considered " +"reserved under Windows, ``False`` otherwise. With :class:`PurePosixPath`, " +"``False`` is always returned." +msgstr "" + +msgid "" +"File system calls on reserved paths can fail mysteriously or have unintended " +"effects." +msgstr "" + +msgid "" +"Calling this method is equivalent to combining the path with each of the " +"*other* arguments in turn::" +msgstr "" + +msgid "" +"Match this path against the provided glob-style pattern. Return ``True`` if " +"matching is successful, ``False`` otherwise." +msgstr "" + +msgid "" +"If *pattern* is relative, the path can be either relative or absolute, and " +"matching is done from the right::" +msgstr "" + +msgid "" +"If *pattern* is absolute, the path must be absolute, and the whole path must " +"match::" +msgstr "" + +msgid "As with other methods, case-sensitivity follows platform defaults::" +msgstr "" + +msgid "" +"Compute a version of this path relative to the path represented by *other*. " +"If it's impossible, ValueError is raised::" +msgstr "" + +msgid "" +"NOTE: This function is part of :class:`PurePath` and works with strings. It " +"does not check or access the underlying file structure." +msgstr "" + +msgid "" +"Return a new path with the :attr:`name` changed. If the original path " +"doesn't have a name, ValueError is raised::" +msgstr "" + +msgid "" +"Return a new path with the :attr:`stem` changed. If the original path " +"doesn't have a name, ValueError is raised::" +msgstr "" + +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 "" + +msgid "Concrete paths" +msgstr "" + +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 "" + +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`)::" +msgstr "" + +msgid "" +"A subclass of :class:`Path` and :class:`PurePosixPath`, this class " +"represents concrete non-Windows filesystem paths::" +msgstr "" + +msgid "" +"A subclass of :class:`Path` and :class:`PureWindowsPath`, this class " +"represents concrete Windows filesystem paths::" +msgstr "" + +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)::" +msgstr "" + +msgid "Methods" +msgstr "" + +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)." +msgstr "" + +msgid "" +":meth:`~Path.exists()`, :meth:`~Path.is_dir()`, :meth:`~Path.is_file()`, :meth:`~Path.is_mount()`, :meth:`~Path.is_symlink()`, :meth:`~Path.is_block_device()`, :meth:`~Path.is_char_device()`, :meth:`~Path.is_fifo()`, :meth:`~Path.is_socket()` " +"now return ``False`` instead of raising an exception for paths that contain " +"characters unrepresentable at the OS level." +msgstr "" + +msgid "" +"Return a new path object representing the current directory (as returned " +"by :func:`os.getcwd`)::" +msgstr "" + +msgid "" +"Return a new path object representing the user's home directory (as returned " +"by :func:`os.path.expanduser` with ``~`` construct). If the home directory " +"can't be resolved, :exc:`RuntimeError` is raised." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"This method normally follows symlinks; to stat a symlink add the argument " +"``follow_symlinks=False``, or use :meth:`~Path.lstat`." +msgstr "" + +msgid "The *follow_symlinks* parameter was added." +msgstr "" + +msgid "Change the file mode and permissions, like :func:`os.chmod`." +msgstr "" + +msgid "" +"This method normally follows symlinks. Some Unix flavours support changing " +"permissions on the symlink itself; on these platforms you may add the " +"argument ``follow_symlinks=False``, or use :meth:`~Path.lchmod`." +msgstr "" + +msgid "Whether the path points to an existing file or directory::" +msgstr "" + +msgid "" +"If the path points to a symlink, :meth:`exists` returns whether the symlink " +"*points to* an existing file or directory." +msgstr "" + +msgid "" +"Return a new path with expanded ``~`` and ``~user`` constructs, as returned " +"by :meth:`os.path.expanduser`. If a home directory can't be " +"resolved, :exc:`RuntimeError` is raised." +msgstr "" + +msgid "" +"Glob the given relative *pattern* in the directory represented by this path, " +"yielding all matching files (of any kind)::" +msgstr "" + +msgid "" +"Patterns are the same as for :mod:`fnmatch`, with the addition of \"``**``\" " +"which means \"this directory and all subdirectories, recursively\". In " +"other words, it enables recursive globbing::" +msgstr "" + +msgid "" +"Using the \"``**``\" pattern in large directory trees may consume an " +"inordinate amount of time." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``pathlib.Path.glob`` with " +"arguments ``self``, ``pattern``." +msgstr "" + +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 "" + +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 "" + +msgid "" +"``False`` is also returned if the path doesn't exist or is a broken symlink; " +"other errors (such as permission errors) are propagated." +msgstr "" + +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 "" + +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 " +"function checks whether *path*'s parent, :file:`path/..`, is on a different " +"device than *path*, or whether :file:`path/..` and *path* point to the same " +"i-node on the same device --- this should detect mount points for all Unix " +"and POSIX variants. Not implemented on Windows." +msgstr "" + +msgid "" +"Return ``True`` if the path points to a symbolic link, ``False`` otherwise." +msgstr "" + +msgid "" +"``False`` is also returned if the path doesn't exist; other errors (such as " +"permission errors) are propagated." +msgstr "" + +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 "" + +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." +msgstr "" + +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 "" + +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 " +"file." +msgstr "" + +msgid "" +"When the path points to a directory, yield path objects of the directory " +"contents::" +msgstr "" + +msgid "" +"The children are yielded in arbitrary order, and the special entries ``'.'`` " +"and ``'..'`` are not included. If a file is removed from or added to the " +"directory after creating the iterator, whether a path object for that file " +"be included is unspecified." +msgstr "" + +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 "" + +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 "" + +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 "" + +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 "" + +msgid "" +"If *parents* is false (the default), a missing parent " +"raises :exc:`FileNotFoundError`." +msgstr "" + +msgid "" +"If *exist_ok* is false (the default), :exc:`FileExistsError` is raised if " +"the target directory already exists." +msgstr "" + +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." +msgstr "" + +msgid "The *exist_ok* parameter was added." +msgstr "" + +msgid "" +"Open the file pointed to by the path, like the built-in :func:`open` " +"function does::" +msgstr "" + +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 "" + +msgid "Return the binary contents of the pointed-to file as a bytes object::" +msgstr "" + +msgid "Return the decoded contents of the pointed-to file as a string::" +msgstr "" + +msgid "" +"The file is opened and then closed. The optional parameters have the same " +"meaning as in :func:`open`." +msgstr "" + +msgid "" +"Return the path to which the symbolic link points (as returned " +"by :func:`os.readlink`)::" +msgstr "" + +msgid "" +"Rename this file or directory to the given *target*, and return a new Path " +"instance pointing to *target*. On Unix, if *target* exists and is a file, " +"it will be replaced silently if the user has permission. On Windows, if " +"*target* exists, :exc:`FileExistsError` will be raised. *target* can be " +"either a string or another path object::" +msgstr "" + +msgid "" +"The target path may be absolute or relative. Relative paths are interpreted " +"relative to the current working directory, *not* the directory of the Path " +"object." +msgstr "" + +msgid "" +"It is implemented in terms of :func:`os.rename` and gives the same " +"guarantees." +msgstr "" + +msgid "Added return value, return the new Path instance." +msgstr "" + +msgid "" +"Rename this file or directory to the given *target*, and return a new Path " +"instance pointing to *target*. If *target* points to an existing file or " +"empty directory, it will be unconditionally replaced." +msgstr "" + +msgid "" +"Make the path absolute, resolving any symlinks. A new path object is " +"returned::" +msgstr "" + +msgid "" +"\"``..``\" components are also eliminated (this is the only method to do " +"so)::" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "The *strict* argument (pre-3.6 behavior is strict)." +msgstr "" + +msgid "" +"This is like calling :func:`Path.glob` with \"``**/``\" added in front of " +"the given relative *pattern*::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``pathlib.Path.rglob`` with " +"arguments ``self``, ``pattern``." +msgstr "" + +msgid "Remove this directory. The directory must be empty." +msgstr "" + +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`." +msgstr "" + +msgid "" +"An :exc:`OSError` can be raised if either file cannot be accessed for some " +"reason." +msgstr "" + +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 "" + +msgid "" +"The order of arguments (link, target) is the reverse of :func:`os.symlink`'s." +msgstr "" + +msgid "Make this path a hard link to the same file as *target*." +msgstr "" + +msgid "" +"The order of arguments (link, target) is the reverse of :func:`os.link`'s." +msgstr "" + +msgid "Make *target* a hard link to this path." +msgstr "" + +msgid "" +"This function does not make this path a hard link to *target*, despite the " +"implication of the function and argument names. The argument order (target, " +"link) is the reverse of :func:`Path.symlink_to` " +"and :func:`Path.hardlink_to`, but matches that of :func:`os.link`." +msgstr "" + +msgid "" +"This method is deprecated in favor of :meth:`Path.hardlink_to`, as the " +"argument order of :meth:`Path.link_to` does not match that " +"of :meth:`Path.symlink_to`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Remove this file or symbolic link. If the path points to a directory, " +"use :func:`Path.rmdir` instead." +msgstr "" + +msgid "" +"If *missing_ok* is false (the default), :exc:`FileNotFoundError` is raised " +"if the path does not exist." +msgstr "" + +msgid "" +"If *missing_ok* is true, :exc:`FileNotFoundError` exceptions will be ignored " +"(same behavior as the POSIX ``rm -f`` command)." +msgstr "" + +msgid "The *missing_ok* parameter was added." +msgstr "" + +msgid "" +"Open the file pointed to in bytes mode, write *data* to it, and close the " +"file::" +msgstr "" + +msgid "An existing file of the same name is overwritten." +msgstr "" + +msgid "" +"Open the file pointed to in text mode, write *data* to it, and close the " +"file::" +msgstr "" + +msgid "" +"An existing file of the same name is overwritten. The optional parameters " +"have the same meaning as in :func:`open`." +msgstr "" + +msgid "The *newline* parameter was added." +msgstr "" + +msgid "Correspondence to tools in the :mod:`os` module" +msgstr "" + +msgid "" +"Below is a table mapping various :mod:`os` functions to their " +"corresponding :class:`PurePath`/:class:`Path` equivalent." +msgstr "" + +msgid "" +"Not all pairs of functions/methods below are equivalent. Some of them, " +"despite having some overlapping use-cases, have different semantics. They " +"include :func:`os.path.abspath` " +"and :meth:`Path.resolve`, :func:`os.path.relpath` " +"and :meth:`PurePath.relative_to`." +msgstr "" + +msgid ":mod:`os` and :mod:`os.path`" +msgstr "" + +msgid ":mod:`pathlib`" +msgstr ":mod:`pathlib`" + +msgid ":func:`os.path.abspath`" +msgstr ":func:`os.path.abspath`" + +msgid ":meth:`Path.resolve` [#]_" +msgstr "" + +msgid ":func:`os.chmod`" +msgstr ":func:`os.chmod`" + +msgid ":meth:`Path.chmod`" +msgstr ":meth:`Path.chmod`" + +msgid ":func:`os.mkdir`" +msgstr "" + +msgid ":meth:`Path.mkdir`" +msgstr ":meth:`Path.mkdir`" + +msgid ":func:`os.makedirs`" +msgstr "" + +msgid ":func:`os.rename`" +msgstr ":func:`os.rename`" + +msgid ":meth:`Path.rename`" +msgstr ":meth:`Path.rename`" + +msgid ":func:`os.replace`" +msgstr ":func:`os.replace`" + +msgid ":meth:`Path.replace`" +msgstr ":meth:`Path.replace`" + +msgid ":func:`os.rmdir`" +msgstr ":func:`os.rmdir`" + +msgid ":meth:`Path.rmdir`" +msgstr ":meth:`Path.rmdir`" + +msgid ":func:`os.remove`, :func:`os.unlink`" +msgstr ":func:`os.remove`, :func:`os.unlink`" + +msgid ":meth:`Path.unlink`" +msgstr ":meth:`Path.unlink`" + +msgid ":func:`os.getcwd`" +msgstr ":func:`os.getcwd`" + +msgid ":func:`Path.cwd`" +msgstr "" + +msgid ":func:`os.path.exists`" +msgstr ":func:`os.path.exists`" + +msgid ":meth:`Path.exists`" +msgstr ":meth:`Path.exists`" + +msgid ":func:`os.path.expanduser`" +msgstr ":func:`os.path.expanduser`" + +msgid ":meth:`Path.expanduser` and :meth:`Path.home`" +msgstr "" + +msgid ":func:`os.listdir`" +msgstr ":func:`os.listdir`" + +msgid ":meth:`Path.iterdir`" +msgstr ":meth:`Path.iterdir`" + +msgid ":func:`os.path.isdir`" +msgstr ":func:`os.path.isdir`" + +msgid ":meth:`Path.is_dir`" +msgstr ":meth:`Path.is_dir`" + +msgid ":func:`os.path.isfile`" +msgstr ":func:`os.path.isfile`" + +msgid ":meth:`Path.is_file`" +msgstr ":meth:`Path.is_file`" + +msgid ":func:`os.path.islink`" +msgstr ":func:`os.path.islink`" + +msgid ":meth:`Path.is_symlink`" +msgstr ":meth:`Path.is_symlink`" + +msgid ":func:`os.link`" +msgstr ":func:`os.link`" + +msgid ":meth:`Path.hardlink_to`" +msgstr ":meth:`Path.hardlink_to`" + +msgid ":func:`os.symlink`" +msgstr ":func:`os.symlink`" + +msgid ":meth:`Path.symlink_to`" +msgstr ":meth:`Path.symlink_to`" + +msgid ":func:`os.readlink`" +msgstr ":func:`os.readlink`" + +msgid ":meth:`Path.readlink`" +msgstr ":meth:`Path.readlink`" + +msgid ":func:`os.path.relpath`" +msgstr ":func:`os.path.relpath`" + +msgid ":meth:`PurePath.relative_to` [#]_" +msgstr "" + +msgid ":func:`os.stat`" +msgstr ":func:`os.stat`" + +msgid ":meth:`Path.stat`, :meth:`Path.owner`, :meth:`Path.group`" +msgstr "" + +msgid ":func:`os.path.isabs`" +msgstr ":func:`os.path.isabs`" + +msgid ":meth:`PurePath.is_absolute`" +msgstr ":meth:`PurePath.is_absolute`" + +msgid ":func:`os.path.join`" +msgstr ":func:`os.path.join`" + +msgid ":func:`PurePath.joinpath`" +msgstr "" + +msgid ":func:`os.path.basename`" +msgstr ":func:`os.path.basename`" + +msgid ":attr:`PurePath.name`" +msgstr ":attr:`PurePath.name`" + +msgid ":func:`os.path.dirname`" +msgstr ":func:`os.path.dirname`" + +msgid ":attr:`PurePath.parent`" +msgstr ":attr:`PurePath.parent`" + +msgid ":func:`os.path.samefile`" +msgstr ":func:`os.path.samefile`" + +msgid ":meth:`Path.samefile`" +msgstr ":meth:`Path.samefile`" + +msgid ":func:`os.path.splitext`" +msgstr ":func:`os.path.splitext`" + +msgid ":attr:`PurePath.stem` and :attr:`PurePath.suffix`" +msgstr "" + +msgid "Footnotes" +msgstr "Przypisy" + +msgid "" +":func:`os.path.abspath` does not resolve symbolic links " +"while :meth:`Path.resolve` does." +msgstr "" + +msgid "" +":meth:`PurePath.relative_to` requires ``self`` to be the subpath of the " +"argument, but :func:`os.path.relpath` does not." +msgstr "" diff --git a/library/pdb.po b/library/pdb.po index 939c76e723..0f45c18b18 100644 --- a/library/pdb.po +++ b/library/pdb.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:11+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`pdb` --- The Python Debugger" msgstr "" msgid "**Source code:** :source:`Lib/pdb.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/pdb.py`" msgid "" "The module :mod:`pdb` defines an interactive source code debugger for Python " @@ -39,9 +39,26 @@ msgid "" msgstr "" 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 "" + +msgid "Module :mod:`faulthandler`" +msgstr "" + +msgid "" +"Used to dump Python tracebacks explicitly, on a fault, after a timeout, or " +"on a user signal." +msgstr "" + +msgid "Module :mod:`traceback`" +msgstr "" + +msgid "" +"Standard interface to extract, format and print stack traces of Python " +"programs." msgstr "" msgid "" @@ -75,7 +92,7 @@ msgstr "" msgid "" ":file:`pdb.py` now accepts a ``-m`` option that execute modules similar to " -"the way ``python3 -m`` does. As with a script, the debugger will pause " +"the way ``python -m`` does. As with a script, the debugger will pause " "execution just before the first line of the module." msgstr "" @@ -108,14 +125,14 @@ msgid "" "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.)" +"module :mod:`__main__` is used. (See the explanation of the built-" +"in :func:`exec` or :func:`eval` functions.)" msgstr "" 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`." +"*expression*. Otherwise this function is similar to :func:`run`." msgstr "" msgid "" @@ -143,8 +160,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -169,15 +186,15 @@ msgstr "" 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." +"user presses :kbd:`Ctrl-C` on the console) when you give " +"a :pdbcmd:`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 "" 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 "" msgid "Example call to enable tracing with *skip*::" @@ -247,20 +264,15 @@ msgstr "" msgid "" "If a file :file:`.pdbrc` exists in the user's home directory or in the " -"current directory, it is read with ``'utf-8'`` encoding 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 "" msgid "" -":file:`.pdbrc` is now read with ``'utf-8'`` encoding. Previously, it was " -"read with the system locale encoding." -msgstr "" - -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 "" @@ -330,11 +342,11 @@ msgid "Enable the breakpoints specified." msgstr "" msgid "" -"Set the ignore count for the given breakpoint number. If count is omitted, " -"the ignore count is set to 0. A breakpoint becomes active when the ignore " -"count is zero. When non-zero, the count is decremented each time the " -"breakpoint is reached and the breakpoint is not disabled and any associated " -"condition evaluates to true." +"Set the ignore count for the given breakpoint number. If *count* is " +"omitted, the ignore count is set to 0. A breakpoint becomes active when the " +"ignore count is zero. When non-zero, the *count* is decremented each time " +"the breakpoint is reached and the breakpoint is not disabled and any " +"associated condition evaluates to true." msgstr "" msgid "" @@ -365,18 +377,18 @@ msgid "" msgstr "" 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 " -"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." +"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." msgstr "" 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 " +"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." @@ -401,9 +413,9 @@ msgid "" msgstr "" 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 " -"returns." +"With *lineno*, continue execution until a line with a number greater or " +"equal to *lineno* is reached. In both cases, also stop when the current " +"frame returns." msgstr "" msgid "Allow giving an explicit line number." @@ -423,8 +435,8 @@ msgstr "" 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 "" msgid "" @@ -453,7 +465,7 @@ msgstr "" msgid "Print the argument list of the current function." msgstr "" -msgid "Evaluate the *expression* in the current context and print its value." +msgid "Evaluate *expression* in the current context and print its value." msgstr "" msgid "" @@ -462,27 +474,28 @@ msgid "" msgstr "" msgid "" -"Like the :pdbcmd:`p` command, except the value of the expression is pretty-" +"Like the :pdbcmd:`p` command, except the value of *expression* is pretty-" "printed using the :mod:`pprint` module." msgstr "" -msgid "Print the type of the *expression*." +msgid "Print the type of *expression*." msgstr "" -msgid "Try to get source code for the given object and display it." +msgid "Try to get source code of *expression* and display it." msgstr "" msgid "" -"Display the value of the expression if it changed, each time execution stops " +"Display the value of *expression* if it changed, each time execution stops " "in the current frame." msgstr "" -msgid "Without expression, list all display expressions for the current frame." +msgid "" +"Without *expression*, list all display expressions for the current frame." msgstr "" msgid "" -"Do not display the expression any more in the current frame. Without " -"expression, clear all display expressions for the current frame." +"Do not display *expression* anymore in the current frame. Without " +"*expression*, clear all display expressions for the current frame." msgstr "" msgid "" @@ -492,11 +505,11 @@ msgid "" msgstr "" 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." +"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 *command* is omitted, the current alias for *name* is shown. If no " +"arguments are given, all aliases are listed." msgstr "" msgid "" @@ -508,11 +521,11 @@ msgid "" msgstr "" 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 "" -msgid "Delete the specified alias." +msgid "Delete the specified alias *name*." msgstr "" msgid "" @@ -524,18 +537,18 @@ msgid "" msgstr "" 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`." +"Restart the debugged Python program. If *args* 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`." msgstr "" msgid "Quit from the debugger. The program being executed is aborted." msgstr "" 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)." +"Enter a recursive debugger that steps through *code* (which is an arbitrary " +"expression or statement to be executed in the current environment)." msgstr "" msgid "Print the return value for the last return of a function." diff --git a/library/pickle.po b/library/pickle.po index 8d876ecb41..0037387b2a 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -1,42 +1,41 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:11+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`pickle` --- Python object serialization" msgstr "" msgid "**Source code:** :source:`Lib/pickle.py`" -msgstr "" +msgstr "**Kod źródłowy:** :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 " -"object hierarchy. Pickling (and unpickling) is alternatively known as " +"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\"." msgstr "" @@ -69,8 +68,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 "" msgid "" @@ -105,14 +104,14 @@ msgstr "" 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 " -"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 " -"boundary." +"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 boundary." msgstr "" msgid "Comparison with ``json``" @@ -141,8 +140,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 "" msgid "" @@ -201,9 +200,9 @@ msgid "" msgstr "" 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 was the " -"default protocol in Python 3.0--3.7." +"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 was " +"the default protocol in Python 3.0--3.7." msgstr "" msgid "" @@ -220,9 +219,9 @@ msgid "" msgstr "" 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 " @@ -237,10 +236,10 @@ msgstr "" 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 "" msgid "The :mod:`pickle` module provides the following constants:" @@ -248,8 +247,9 @@ msgstr "" 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 "" msgid "" @@ -327,8 +327,8 @@ msgid "The :mod:`pickle` module defines three exceptions:" msgstr "" 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 "" msgid "" @@ -353,8 +353,8 @@ msgid "" msgstr "" msgid "" -"The :mod:`pickle` module exports three classes, :class:`Pickler`, :class:" -"`Unpickler` and :class:`PickleBuffer`:" +"The :mod:`pickle` module exports three " +"classes, :class:`Pickler`, :class:`Unpickler` and :class:`PickleBuffer`:" msgstr "" msgid "This takes a binary file for writing a pickle data stream." @@ -369,8 +369,8 @@ msgstr "" 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 "" @@ -426,12 +426,12 @@ msgstr "" 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 "" msgid "See :ref:`pickle-dispatch` for usage examples." @@ -469,10 +469,10 @@ msgstr "" msgid "" "The argument *file* must have three methods, a read() method that takes an " "integer argument, a readinto() method that takes a buffer argument and a " -"readline() method that requires no arguments, as in the :class:`io." -"BufferedIOBase` interface. Thus *file* can be an on-disk file opened for " -"binary reading, an :class:`io.BytesIO` object, or any other custom object " -"that meets this interface." +"readline() method that requires no arguments, as in " +"the :class:`io.BufferedIOBase` interface. Thus *file* can be an on-disk " +"file opened for binary reading, an :class:`io.BytesIO` object, or any other " +"custom object that meets this interface." msgstr "" msgid "" @@ -483,9 +483,9 @@ msgid "" "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." +"required for unpickling NumPy arrays and instances " +"of :class:`~datetime.datetime`, :class:`~datetime.date` " +"and :class:`~datetime.time` pickled by Python 2." msgstr "" msgid "" @@ -513,8 +513,8 @@ msgstr "" 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 "" msgid "" @@ -526,8 +526,8 @@ msgstr "" 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 "" msgid "" @@ -536,15 +536,15 @@ msgid "" msgstr "" msgid "" -"A wrapper for a buffer representing picklable data. *buffer* must be a :ref:" -"`buffer-providing ` object, such as a :term:`bytes-like " -"object` or a N-dimensional array." +"A wrapper for a buffer representing picklable data. *buffer* must be " +"a :ref:`buffer-providing ` object, such as a :term:`bytes-" +"like object` or a N-dimensional array." msgstr "" msgid "" ":class:`PickleBuffer` is itself a buffer provider, therefore it is possible " -"to pass it to other APIs expecting a buffer-providing object, such as :class:" -"`memoryview`." +"to pass it to other APIs expecting a buffer-providing object, such " +"as :class:`memoryview`." msgstr "" msgid "" @@ -591,25 +591,26 @@ msgid "classes accessible from the top level of a module;" msgstr "" msgid "" -"instances of such classes whose the result of calling :meth:`__getstate__` " -"is picklable (see section :ref:`pickle-inst` for details)." +"instances of such classes whose :attr:`~object.__dict__` or the result of " +"calling :meth:`__getstate__` is picklable (see section :ref:`pickle-inst` " +"for details)." msgstr "" 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 "" msgid "" -"Note that functions (built-in and user-defined) are pickled by fully :term:" -"`qualified name`, not by value. [#]_ This means that only the function name " -"is pickled, along with the name of the containing module and classes. " -"Neither the function's code, nor any of its function attributes are " -"pickled. Thus the defining module must be importable in the unpickling " +"Note that functions (built-in and user-defined) are pickled by " +"fully :term:`qualified name`, not by value. [#]_ This means that only the " +"function name is pickled, along with the name of the containing module and " +"classes. 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 "" @@ -660,12 +661,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -689,44 +690,16 @@ msgid "" msgstr "" 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 "" msgid "" -"Classes can further influence how their instances are pickled by overriding " -"the method :meth:`__getstate__`. It is called and the returned object is " -"pickled as the contents for the instance, instead of a default state. There " -"are several cases:" -msgstr "" - -msgid "" -"For a class that has no instance :attr:`~object.__dict__` and no :attr:" -"`~object.__slots__`, the default state is ``None``." -msgstr "" - -msgid "" -"For a class that has an instance :attr:`~object.__dict__` and no :attr:" -"`~object.__slots__`, the default state is ``self.__dict__``." -msgstr "" - -msgid "" -"For a class that has an instance :attr:`~object.__dict__` and :attr:`~object." -"__slots__`, the default state is a tuple consisting of two dictionaries: " -"``self.__dict__``, and a dictionary mapping slot names to slot values. Only " -"slots that have a value are included in the latter." -msgstr "" - -msgid "" -"For a class that has :attr:`~object.__slots__` and no instance :attr:" -"`~object.__dict__`, the default state is a tuple whose first item is " -"``None`` and whose second item is a dictionary mapping slot names to slot " -"values described in the previous bullet." -msgstr "" - -msgid "" -"Added the default implementation of the ``__getstate__()`` method in the :" -"class:`object` class." +"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." msgstr "" msgid "" @@ -747,17 +720,18 @@ msgid "" msgstr "" 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:`__new__` to establish such an invariant, as :meth:" -"`__init__` is not called when unpickling an instance." +"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 "" 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 "" @@ -765,9 +739,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 "" @@ -801,21 +775,21 @@ msgid "" msgstr "" 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 "" 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. " -"(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.)" +"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.)" msgstr "" msgid "" @@ -829,8 +803,8 @@ msgid "" "Optionally, a callable with a ``(obj, state)`` signature. This callable " "allows the user to programmatically control the state-updating behavior of a " "specific object, instead of using ``obj``'s static :meth:`__setstate__` " -"method. If not ``None``, this callable will have priority over ``obj``'s :" -"meth:`__setstate__`." +"method. If not ``None``, this callable will have priority over " +"``obj``'s :meth:`__setstate__`." msgstr "" msgid "The optional sixth tuple item, ``(obj, state)``, was added." @@ -839,10 +813,11 @@ msgstr "" 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 "" msgid "Persistence of External Objects" @@ -859,8 +834,8 @@ msgstr "" 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 "" msgid "" @@ -874,9 +849,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -923,12 +898,12 @@ msgstr "" 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 " +"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 "" msgid "A sample usage might be something like this::" @@ -953,17 +928,17 @@ msgid "" msgstr "" msgid "" -"If both the :attr:`~Pickler.dispatch_table` and :meth:`~Pickler." -"reducer_override` are defined, then :meth:`~Pickler.reducer_override` method " -"takes priority." +"If both the :attr:`~Pickler.dispatch_table` " +"and :meth:`~Pickler.reducer_override` are defined, " +"then :meth:`~Pickler.reducer_override` method takes priority." msgstr "" msgid "" "For performance reasons, :meth:`~Pickler.reducer_override` may not be called " "for the following objects: ``None``, ``True``, ``False``, and exact " -"instances of :class:`int`, :class:`float`, :class:`bytes`, :class:`str`, :" -"class:`dict`, :class:`set`, :class:`frozenset`, :class:`list` and :class:" -"`tuple`." +"instances " +"of :class:`int`, :class:`float`, :class:`bytes`, :class:`str`, :class:`dict`, :class:`set`, :class:`frozenset`, :class:`list` " +"and :class:`tuple`." msgstr "" msgid "" @@ -995,9 +970,9 @@ msgstr "" msgid "" "The large data objects to be pickled must implement a :meth:`__reduce_ex__` " -"method specialized for protocol 5 and higher, which returns a :class:" -"`PickleBuffer` instance (instead of e.g. a :class:`bytes` object) for any " -"large data." +"method specialized for protocol 5 and higher, which returns " +"a :class:`PickleBuffer` instance (instead of e.g. a :class:`bytes` object) " +"for any large data." msgstr "" msgid "" @@ -1012,26 +987,27 @@ msgid "Consumer API" msgstr "" msgid "" -"A communications system can enable custom handling of the :class:" -"`PickleBuffer` objects generated when serializing an object graph." +"A communications system can enable custom handling of " +"the :class:`PickleBuffer` objects generated when serializing an object graph." msgstr "" msgid "" -"On the sending side, it needs to pass a *buffer_callback* argument to :class:" -"`Pickler` (or to the :func:`dump` or :func:`dumps` function), which will be " -"called with each :class:`PickleBuffer` generated while pickling the object " -"graph. Buffers accumulated by the *buffer_callback* will not see their data " -"copied into the pickle stream, only a cheap marker will be inserted." +"On the sending side, it needs to pass a *buffer_callback* argument " +"to :class:`Pickler` (or to the :func:`dump` or :func:`dumps` function), " +"which will be called with each :class:`PickleBuffer` generated while " +"pickling the object graph. Buffers accumulated by the *buffer_callback* " +"will not see their data copied into the pickle stream, only a cheap marker " +"will be inserted." msgstr "" msgid "" -"On the receiving side, it needs to pass a *buffers* argument to :class:" -"`Unpickler` (or to the :func:`load` or :func:`loads` function), which is an " -"iterable of the buffers which were passed to *buffer_callback*. That " -"iterable should produce buffers in the same order as they were passed to " -"*buffer_callback*. Those buffers will provide the data expected by the " -"reconstructors of the objects whose pickling produced the original :class:" -"`PickleBuffer` objects." +"On the receiving side, it needs to pass a *buffers* argument " +"to :class:`Unpickler` (or to the :func:`load` or :func:`loads` function), " +"which is an iterable of the buffers which were passed to *buffer_callback*. " +"That iterable should produce buffers in the same order as they were passed " +"to *buffer_callback*. Those buffers will provide the data expected by the " +"reconstructors of the objects whose pickling produced the " +"original :class:`PickleBuffer` objects." msgstr "" msgid "" @@ -1042,7 +1018,7 @@ msgid "" msgstr "" msgid "Example" -msgstr "" +msgstr "Przykład" msgid "" "Here is a trivial example where we implement a :class:`bytearray` subclass " @@ -1095,16 +1071,16 @@ msgid "" msgstr "" 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 "" 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 "" msgid "A sample usage of our unpickler working as intended::" @@ -1178,8 +1154,8 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/pickletools.po b/library/pickletools.po new file mode 100644 index 0000000000..f4aeca61a0 --- /dev/null +++ b/library/pickletools.po @@ -0,0 +1,107 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pickletools` --- Tools for pickle developers" +msgstr "" + +msgid "**Source code:** :source:`Lib/pickletools.py`" +msgstr "**Kod źródłowy:** :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." +msgstr "" + +msgid "Command line usage" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:" +msgstr "" + +msgid "Command line options" +msgstr "Opcje wiersza poleceń" + +msgid "Annotate each line with a short opcode description." +msgstr "" + +msgid "Name of a file where the output should be written." +msgstr "" + +msgid "The number of blanks by which to indent a new MARK level." +msgstr "" + +msgid "" +"When multiple objects are disassembled, preserve memo between disassemblies." +msgstr "" + +msgid "" +"When more than one pickle file are specified, print given preamble before " +"each disassembly." +msgstr "" + +msgid "Programmatic Interface" +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 " +"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." +msgstr "" + +msgid "The *annotate* argument." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns a new equivalent pickle string after eliminating unused ``PUT`` " +"opcodes. The optimized pickle is shorter, takes less transmission time, " +"requires less storage space, and unpickles more efficiently." +msgstr "" diff --git a/library/pipes.po b/library/pipes.po new file mode 100644 index 0000000000..f7874b165b --- /dev/null +++ b/library/pipes.po @@ -0,0 +1,107 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pipes` --- Interface to shell pipelines" +msgstr "" + +msgid "**Source code:** :source:`Lib/pipes.py`" +msgstr "" + +msgid "" +"The :mod:`pipes` module is deprecated (see :pep:`PEP 594 <594#pipes>` for " +"details). Please use the :mod:`subprocess` module instead." +msgstr "" + +msgid "" +"The :mod:`pipes` module defines a class to abstract the concept of a " +"*pipeline* --- a sequence of converters from one file to another." +msgstr "" + +msgid "" +"Because the module uses :program:`/bin/sh` command lines, a POSIX or " +"compatible shell for :func:`os.system` and :func:`os.popen` is required." +msgstr "" + +msgid ":ref:`Availability `: Unix. Not available on VxWorks." +msgstr "" + +msgid "The :mod:`pipes` module defines the following class:" +msgstr "" + +msgid "An abstraction of a pipeline." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "Template Objects" +msgstr "" + +msgid "Template objects following methods:" +msgstr "" + +msgid "Restore a pipeline template to its initial state." +msgstr "" + +msgid "Return a new, equivalent, pipeline template." +msgstr "" + +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." +msgstr "" + +msgid "" +"Append a new action at the end. The *cmd* variable must be a valid bourne " +"shell command. The *kind* variable consists of two letters." +msgstr "" + +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.)" +msgstr "" + +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 " +"write anything, and hence must be last.)" +msgstr "" + +msgid "" +"Add a new action at the beginning. See :meth:`append` for explanations of " +"the arguments." +msgstr "" + +msgid "" +"Return a file-like object, open to *file*, but read from or written to by " +"the pipeline. Note that only one of ``'r'``, ``'w'`` may be given." +msgstr "" + +msgid "Copy *infile* to *outfile* through the pipe." +msgstr "" diff --git a/library/pkgutil.po b/library/pkgutil.po new file mode 100644 index 0000000000..3d5224878b --- /dev/null +++ b/library/pkgutil.po @@ -0,0 +1,284 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pkgutil` --- Package extension utility" +msgstr "" + +msgid "**Source code:** :source:`Lib/pkgutil.py`" +msgstr "**Kod źródłowy:** :source:`Lib/pkgutil.py`" + +msgid "" +"This module provides utilities for the import system, in particular package " +"support." +msgstr "" + +msgid "A namedtuple that holds a brief summary of a module's info." +msgstr "" + +msgid "" +"Extend the search path for the modules which comprise a package. Intended " +"use is to place the following code in a package's :file:`__init__.py`::" +msgstr "" + +msgid "" +"This will add to the package's ``__path__`` all subdirectories of " +"directories on :data:`sys.path` named after the package. This is useful if " +"one wants to distribute different parts of a single logical package as " +"multiple directories." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"If the input path is not a list (as is the case for frozen packages) it is " +"returned unchanged. The input path is not modified; an extended copy is " +"returned. Items are only appended to the copy at the end." +msgstr "" + +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)." +msgstr "" + +msgid ":pep:`302` Finder that wraps Python's \"classic\" import algorithm." +msgstr "" + +msgid "" +"If *dirname* is a string, a :pep:`302` finder is created that searches that " +"directory. If *dirname* is ``None``, a :pep:`302` finder is created that " +"searches the current :data:`sys.path`, plus any modules that are frozen or " +"built-in." +msgstr "" + +msgid "" +"Note that :class:`ImpImporter` does not currently support being used by " +"placement on :data:`sys.meta_path`." +msgstr "" + +msgid "" +"This emulation is no longer needed, as the standard import mechanism is now " +"fully :pep:`302` compliant and available in :mod:`importlib`." +msgstr "" + +msgid "" +":term:`Loader ` that wraps Python's \"classic\" import algorithm." +msgstr "" + +msgid "Retrieve a module :term:`loader` for the given *fullname*." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Updated to be based directly on :mod:`importlib` rather than relying on the " +"package internal :pep:`302` import emulation." +msgstr "" + +msgid "Updated to be based on :pep:`451`" +msgstr "" + +msgid "Retrieve a :term:`finder` for the given *path_item*." +msgstr "" + +msgid "" +"The returned finder is cached in :data:`sys.path_importer_cache` if it was " +"newly created by a path hook." +msgstr "" + +msgid "" +"The cache (or part of it) can be cleared manually if a rescan " +"of :data:`sys.path_hooks` is necessary." +msgstr "" + +msgid "Get a :term:`loader` object for *module_or_name*." +msgstr "" + +msgid "" +"If the module or package is accessible via the normal import mechanism, a " +"wrapper around the relevant part of that machinery is returned. Returns " +"``None`` if the module cannot be found or imported. If the named module is " +"not already imported, its containing package (if any) is imported, in order " +"to establish the package ``__path__``." +msgstr "" + +msgid "Yield :term:`finder` objects for the given module name." +msgstr "" + +msgid "" +"If fullname contains a ``'.'``, the finders will be for the package " +"containing fullname, otherwise they will be all registered top level finders " +"(i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`)." +msgstr "" + +msgid "" +"If the named module is in a package, that package is imported as a side " +"effect of invoking this function." +msgstr "" + +msgid "If no module name is specified, all top level finders are produced." +msgstr "" + +msgid "" +"Yields :class:`ModuleInfo` for all submodules on *path*, or, if *path* is " +"``None``, all top-level modules on :data:`sys.path`." +msgstr "" + +msgid "" +"*path* should be either ``None`` or a list of paths to look for modules in." +msgstr "" + +msgid "" +"*prefix* is a string to output on the front of every module name on output." +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`." +msgstr "" + +msgid "" +"Yields :class:`ModuleInfo` for all modules recursively on *path*, or, if " +"*path* is ``None``, all accessible modules." +msgstr "" + +msgid "" +"Note that this function must import all *packages* (*not* all modules!) on " +"the given *path*, in order to access the ``__path__`` attribute to find " +"submodules." +msgstr "" + +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." +msgstr "" + +msgid "Examples::" +msgstr "Przykłady::" + +msgid "Get a resource from a package." +msgstr "" + +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 ``/``)." +msgstr "" + +msgid "" +"The function returns a binary string that is the contents of the specified " +"resource." +msgstr "" + +msgid "" +"For packages located in the filesystem, which have already been imported, " +"this is the rough equivalent of::" +msgstr "" + +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 " +"`." +msgstr "" + +msgid "Resolve a name to an object." +msgstr "" + +msgid "" +"This functionality is used in numerous places in the standard library " +"(see :issue:`12915`) - and equivalent functionality is also in widely used " +"third-party packages such as setuptools, Django and Pyramid." +msgstr "" + +msgid "" +"It is expected that *name* will be a string in one of the following formats, " +"where W is shorthand for a valid Python identifier and dot stands for a " +"literal period in these pseudo-regexes:" +msgstr "" + +msgid "``W(.W)*``" +msgstr "``W(.W)*``" + +msgid "``W(.W)*:(W(.W)*)?``" +msgstr "``W(.W)*:(W(.W)*)?``" + +msgid "" +"The first form is intended for backward compatibility only. It assumes that " +"some part of the dotted name is a package, and the rest is an object " +"somewhere within that package, possibly nested inside other objects. Because " +"the place where the package stops and the object hierarchy starts can't be " +"inferred by inspection, repeated attempts to import must be done with this " +"form." +msgstr "" + +msgid "" +"In the second form, the caller makes the division point clear through the " +"provision of a single colon: the dotted name to the left of the colon is a " +"package to be imported, and the dotted name to the right is the object " +"hierarchy within that package. Only one import is needed in this form. If it " +"ends with the colon, then a module object is returned." +msgstr "" + +msgid "" +"The function will return an object (which might be a module), or raise one " +"of the following exceptions:" +msgstr "" + +msgid ":exc:`ValueError` -- if *name* isn't in a recognised format." +msgstr "" + +msgid ":exc:`ImportError` -- if an import failed when it shouldn't have." +msgstr "" + +msgid "" +":exc:`AttributeError` -- If a failure occurred when traversing the object " +"hierarchy within the imported package to get to the desired object." +msgstr "" diff --git a/library/platform.po b/library/platform.po new file mode 100644 index 0000000000..2844895dba --- /dev/null +++ b/library/platform.po @@ -0,0 +1,308 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`platform` --- Access to underlying platform's identifying data" +msgstr "" + +msgid "**Source code:** :source:`Lib/platform.py`" +msgstr "**Kod źródłowy:** :source:`Lib/platform.py`" + +msgid "" +"Specific platforms listed alphabetically, with Linux included in the Unix " +"section." +msgstr "" + +msgid "Cross Platform" +msgstr "" + +msgid "" +"Queries the given executable (defaults to the Python interpreter binary) for " +"various architecture information." +msgstr "" + +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." +msgstr "" + +msgid "" +"Values that cannot be determined are returned as given by the parameter " +"presets. If bits is given as ``''``, the ``sizeof(pointer)`` (or " +"``sizeof(long)`` on Python version < 1.5.2) is used as indicator for the " +"supported pointer size." +msgstr "" + +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." +msgstr "" + +msgid "" +"On macOS (and perhaps other platforms), executable files may be universal " +"files containing multiple architectures." +msgstr "" + +msgid "" +"To get at the \"64-bitness\" of the current interpreter, it is more reliable " +"to query the :attr:`sys.maxsize` attribute::" +msgstr "" + +msgid "" +"Returns the machine type, e.g. ``'AMD64'``. An empty string is returned if " +"the value cannot be determined." +msgstr "" + +msgid "" +"Returns the computer's network name (may not be fully qualified!). An empty " +"string is returned if the value cannot be determined." +msgstr "" + +msgid "" +"Returns a single string identifying the underlying platform with as much " +"useful information as possible." +msgstr "" + +msgid "" +"The output is intended to be *human readable* rather than machine parseable. " +"It may look different on different platforms and this is intended." +msgstr "" + +msgid "" +"If *aliased* is true, the function will use aliases for various platforms " +"that report system names which differ from their common names, for example " +"SunOS will be reported as Solaris. The :func:`system_alias` function is " +"used to implement this." +msgstr "" + +msgid "" +"Setting *terse* to true causes the function to return only the absolute " +"minimum information needed to identify the platform." +msgstr "" + +msgid "" +"On macOS, the function now uses :func:`mac_ver`, if it returns a non-empty " +"release string, to get the macOS version rather than the darwin version." +msgstr "" + +msgid "Returns the (real) processor name, e.g. ``'amdk6'``." +msgstr "" + +msgid "" +"An empty string is returned if the value cannot be determined. Note that " +"many platforms do not provide this information or simply return the same " +"value as for :func:`machine`. NetBSD does this." +msgstr "" + +msgid "" +"Returns a tuple ``(buildno, builddate)`` stating the Python build number and " +"date as strings." +msgstr "" + +msgid "Returns a string identifying the compiler used for compiling Python." +msgstr "" + +msgid "Returns a string identifying the Python implementation SCM branch." +msgstr "" + +msgid "" +"Returns a string identifying the Python implementation. Possible return " +"values are: 'CPython', 'IronPython', 'Jython', 'PyPy'." +msgstr "" + +msgid "Returns a string identifying the Python implementation SCM revision." +msgstr "" + +msgid "Returns the Python version as string ``'major.minor.patchlevel'``." +msgstr "" + +msgid "" +"Note that unlike the Python ``sys.version``, the returned value will always " +"include the patchlevel (it defaults to 0)." +msgstr "" + +msgid "" +"Returns the Python version as tuple ``(major, minor, patchlevel)`` of " +"strings." +msgstr "" + +msgid "" +"Note that unlike the Python ``sys.version``, the returned value will always " +"include the patchlevel (it defaults to ``'0'``)." +msgstr "" + +msgid "" +"Returns the system's release, e.g. ``'2.2.0'`` or ``'NT'``. An empty string " +"is returned if the value cannot be determined." +msgstr "" + +msgid "" +"Returns the system/OS name, such as ``'Linux'``, ``'Darwin'``, ``'Java'``, " +"``'Windows'``. An empty string is returned if the value cannot be determined." +msgstr "" + +msgid "" +"Returns ``(system, release, version)`` aliased to common marketing names " +"used for some systems. It also does some reordering of the information in " +"some cases where it would otherwise cause confusion." +msgstr "" + +msgid "" +"Returns the system's release version, e.g. ``'#3 on degas'``. An empty " +"string is returned if the value cannot be determined." +msgstr "" + +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`." +msgstr "" + +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`." +msgstr "" + +msgid "Entries which cannot be determined are set to ``''``." +msgstr "" + +msgid "Result changed from a tuple to a :func:`~collections.namedtuple`." +msgstr "" + +msgid "Java Platform" +msgstr "" + +msgid "Version interface for Jython." +msgstr "" + +msgid "" +"Returns a tuple ``(release, vendor, vminfo, osinfo)`` with *vminfo* being a " +"tuple ``(vm_name, vm_release, vm_vendor)`` and *osinfo* being a tuple " +"``(os_name, os_version, os_arch)``. Values which cannot be determined are " +"set to the defaults given as parameters (which all default to ``''``)." +msgstr "" + +msgid "Windows Platform" +msgstr "" + +msgid "" +"Get additional version information from the Windows Registry and return a " +"tuple ``(release, version, csd, ptype)`` referring to OS release, version " +"number, CSD level (service pack) and OS type (multi/single processor). " +"Values which cannot be determined are set to the defaults given as " +"parameters (which all default to an empty string)." +msgstr "" + +msgid "" +"As a hint: *ptype* is ``'Uniprocessor Free'`` on single processor NT " +"machines and ``'Multiprocessor Free'`` on multi processor machines. The " +"*'Free'* refers to the OS version being free of debugging code. It could " +"also state *'Checked'* which means the OS version uses debugging code, i.e. " +"code that checks arguments, ranges, etc." +msgstr "" + +msgid "" +"Returns a string representing the current Windows edition, or ``None`` if " +"the value cannot be determined. Possible values include but are not limited " +"to ``'Enterprise'``, ``'IoTUAP'``, ``'ServerStandard'``, and " +"``'nanoserver'``." +msgstr "" + +msgid "" +"Return ``True`` if the Windows edition returned by :func:`win32_edition` is " +"recognized as an IoT edition." +msgstr "" + +msgid "macOS Platform" +msgstr "" + +msgid "" +"Get macOS version information and return it as tuple ``(release, " +"versioninfo, machine)`` with *versioninfo* being a tuple ``(version, " +"dev_stage, non_release_version)``." +msgstr "" + +msgid "" +"Entries which cannot be determined are set to ``''``. All tuple entries are " +"strings." +msgstr "" + +msgid "Unix Platforms" +msgstr "" + +msgid "" +"Tries to determine the libc version against which the file executable " +"(defaults to the Python interpreter) is linked. Returns a tuple of strings " +"``(lib, version)`` which default to the given parameters in case the lookup " +"fails." +msgstr "" + +msgid "" +"Note that this function has intimate knowledge of how different libc " +"versions add symbols to the executable is probably only usable for " +"executables compiled using :program:`gcc`." +msgstr "" + +msgid "The file is read and scanned in chunks of *chunksize* bytes." +msgstr "" + +msgid "Linux Platforms" +msgstr "" + +msgid "" +"Get operating system identification from ``os-release`` file and return it " +"as a dict. The ``os-release`` file is a `freedesktop.org standard `_ and is available " +"in most Linux distributions. A noticeable exception is Android and Android-" +"based distributions." +msgstr "" + +msgid "" +"Raises :exc:`OSError` or subclass when neither ``/etc/os-release`` nor ``/" +"usr/lib/os-release`` can be read." +msgstr "" + +msgid "" +"On success, the function returns a dictionary where keys and values are " +"strings. Values have their special characters like ``\"`` and ``$`` " +"unquoted. The fields ``NAME``, ``ID``, and ``PRETTY_NAME`` are always " +"defined according to the standard. All other fields are optional. Vendors " +"may include additional fields." +msgstr "" + +msgid "" +"Note that fields like ``NAME``, ``VERSION``, and ``VARIANT`` are strings " +"suitable for presentation to users. Programs should use fields like ``ID``, " +"``ID_LIKE``, ``VERSION_ID``, or ``VARIANT_ID`` to identify Linux " +"distributions." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" diff --git a/library/plistlib.po b/library/plistlib.po index 5f937eda13..0689c1cccc 100644 --- a/library/plistlib.po +++ b/library/plistlib.po @@ -1,37 +1,37 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:11+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`plistlib` --- Generate and parse Apple ``.plist`` files" msgstr "" msgid "**Source code:** :source:`Lib/plistlib.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/plistlib.py`" msgid "" -"This module provides an interface for reading and writing the \"property list" -"\" files used by Apple, primarily on macOS and iOS. This module supports " +"This module provides an interface for reading and writing the \"property " +"list\" files used by Apple, primarily on macOS and iOS. This module supports " "both binary and XML plist files." msgstr "" @@ -42,13 +42,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -155,8 +155,9 @@ msgid "" msgstr "" 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 "" msgid "The following classes are available:" diff --git a/library/poplib.po b/library/poplib.po new file mode 100644 index 0000000000..7c8331a047 --- /dev/null +++ b/library/poplib.po @@ -0,0 +1,277 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`poplib` --- POP3 protocol client" +msgstr "" + +msgid "**Source code:** :source:`Lib/poplib.py`" +msgstr "**Kod źródłowy:** :source:`Lib/poplib.py`" + +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 " +"introduced in :rfc:`2595` to enable encrypted communication on an already " +"established connection." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "The :mod:`poplib` module provides two classes:" +msgstr "" + +msgid "" +"This class implements the actual POP3 protocol. The connection is created " +"when the instance is initialized. If *port* is omitted, the standard POP3 " +"port (110) is used. The optional *timeout* parameter specifies a timeout in " +"seconds for the connection attempt (if not specified, the global default " +"timeout setting will be used)." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``poplib.connect`` with arguments " +"``self``, ``host``, ``port``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``poplib.putline`` with arguments " +"``self``, ``line``." +msgstr "" + +msgid "" +"All commands will raise an :ref:`auditing event ` " +"``poplib.putline`` with arguments ``self`` and ``line``, where ``line`` is " +"the bytes about to be sent to the remote host." +msgstr "" + +msgid "" +"If the *timeout* parameter is set to be zero, it will raise " +"a :class:`ValueError` to prevent the creation of a non-blocking socket." +msgstr "" + +msgid "" +"This is a subclass of :class:`POP3` that connects to the server over an SSL " +"encrypted socket. If *port* is not specified, 995, the standard POP3-over-" +"SSL port is used. *timeout* works as in the :class:`POP3` constructor. " +"*context* is an optional :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 best practices." +msgstr "" + +msgid "" +"*keyfile* and *certfile* are a legacy alternative to *context* - they can " +"point to PEM-formatted private key and certificate chain files, " +"respectively, for the SSL connection." +msgstr "" + +msgid "*context* parameter added." +msgstr "" + +msgid "" +"The class now supports hostname check " +"with :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +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." +msgstr "" + +msgid "One exception is defined as an attribute of the :mod:`poplib` module:" +msgstr "" + +msgid "" +"Exception raised on any errors from this module (errors from :mod:`socket` " +"module are not caught). The reason for the exception is passed to the " +"constructor as a string." +msgstr "" + +msgid "Module :mod:`imaplib`" +msgstr "" + +msgid "The standard Python IMAP module." +msgstr "" + +msgid "" +"`Frequently Asked Questions About Fetchmail `_" +msgstr "" + +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." +msgstr "" + +msgid "POP3 Objects" +msgstr "" + +msgid "" +"All POP3 commands are represented by methods of the same name, in lower-" +"case; most return the response text sent by the server." +msgstr "" + +msgid "An :class:`POP3` instance has the following methods:" +msgstr "" + +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 " +"connection." +msgstr "" + +msgid "Returns the greeting string sent by the POP3 server." +msgstr "" + +msgid "" +"Query the server's capabilities as specified in :rfc:`2449`. Returns a " +"dictionary in the form ``{'name': ['param'...]}``." +msgstr "" + +msgid "" +"Send user command, response should indicate that a password is required." +msgstr "" + +msgid "" +"Send password, response includes message count and mailbox size. Note: the " +"mailbox on the server is locked until :meth:`~poplib.quit` is called." +msgstr "" + +msgid "Use the more secure APOP authentication to log into the POP3 server." +msgstr "" + +msgid "" +"Use RPOP authentication (similar to UNIX r-commands) to log into POP3 server." +msgstr "" + +msgid "" +"Get mailbox status. The result is a tuple of 2 integers: ``(message count, " +"mailbox size)``." +msgstr "" + +msgid "" +"Request message list, result is in the form ``(response, ['mesg_num " +"octets', ...], octets)``. If *which* is set, it is the message to list." +msgstr "" + +msgid "" +"Retrieve whole message number *which*, and set its seen flag. Result is in " +"form ``(response, ['line', ...], octets)``." +msgstr "" + +msgid "" +"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 "" + +msgid "Remove any deletion marks for the mailbox." +msgstr "" + +msgid "Do nothing. Might be used as a keep-alive." +msgstr "" + +msgid "Signoff: commit changes, unlock mailbox, drop connection." +msgstr "" + +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)``." +msgstr "" + +msgid "" +"The POP3 TOP command this method uses, unlike the RETR command, doesn't set " +"the message's seen flag; unfortunately, TOP is poorly specified in the RFCs " +"and is frequently broken in off-brand servers. Test this method by hand " +"against the POP3 servers you will use before trusting it." +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)``." +msgstr "" + +msgid "" +"Try to switch to UTF-8 mode. Returns the server response if successful, " +"raises :class:`error_proto` if not. Specified in :RFC:`6856`." +msgstr "" + +msgid "" +"Start a TLS session on the active connection as specified in :rfc:`2595`. " +"This is only allowed before user authentication" +msgstr "" + +msgid "" +"*context* parameter 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 best practices." +msgstr "" + +msgid "" +"This method supports hostname checking " +"via :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +msgid "" +"Instances of :class:`POP3_SSL` have no additional methods. The interface of " +"this subclass is identical to its parent." +msgstr "" + +msgid "POP3 Example" +msgstr "" + +msgid "" +"Here is a minimal example (without error checking) that opens a mailbox and " +"retrieves and prints all messages::" +msgstr "" + +msgid "" +"At the end of the module, there is a test section that contains a more " +"extensive example of usage." +msgstr "" diff --git a/library/pprint.po b/library/pprint.po new file mode 100644 index 0000000000..8c9670fd76 --- /dev/null +++ b/library/pprint.po @@ -0,0 +1,243 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pprint` --- Data pretty printer" +msgstr "" + +msgid "**Source code:** :source:`Lib/pprint.py`" +msgstr "**Kod źródłowy:** :source:`Lib/pprint.py`" + +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 " +"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 " +"well as many other objects which are not representable as Python literals." +msgstr "" + +msgid "" +"The formatted representation keeps objects on a single line if it can, and " +"breaks them onto multiple lines if they don't fit within the allowed width. " +"Construct :class:`PrettyPrinter` objects explicitly if you need to adjust " +"the width constraint." +msgstr "" + +msgid "Dictionaries are sorted by key before the display is computed." +msgstr "" + +msgid "Added support for pretty-printing :class:`types.SimpleNamespace`." +msgstr "" + +msgid "Added support for pretty-printing :class:`dataclasses.dataclass`." +msgstr "" + +msgid "The :mod:`pprint` module defines one class:" +msgstr "" + +msgid "" +"Construct a :class:`PrettyPrinter` instance. This constructor understands " +"several keyword parameters." +msgstr "" + +msgid "" +"*stream* (default ``sys.stdout``) is a :term:`file-like object` to which the " +"output will be written by calling its :meth:`write` method." +msgstr "" + +msgid "" +"Other values configure the manner in which nesting of complex data " +"structures is displayed." +msgstr "" + +msgid "" +"*indent* (default 1) specifies the amount of indentation added for each " +"nesting level." +msgstr "" + +msgid "" +"*depth* controls the number of nesting levels which may be printed; 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 formatted." +msgstr "" + +msgid "" +"*width* (default 80) specifies the desired maximum number of characters per " +"line in the output. If a structure cannot be formatted within the width " +"constraint, a best effort will be made." +msgstr "" + +msgid "" +"*compact* impacts the way that long sequences (lists, tuples, sets, etc) are " +"formatted. If *compact* is false (the default) then each item of a 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." +msgstr "" + +msgid "" +"If *sort_dicts* is true (the default), dictionaries will be formatted with " +"their keys sorted, otherwise they will display in insertion order." +msgstr "" + +msgid "" +"If *underscore_numbers* is true, integers will be formatted with the ``_`` " +"character for a thousands separator, otherwise underscores are not displayed " +"(the default)." +msgstr "" + +msgid "Added the *compact* parameter." +msgstr "" + +msgid "Added the *sort_dicts* parameter." +msgstr "" + +msgid "Added the *underscore_numbers* parameter." +msgstr "" + +msgid "The :mod:`pprint` module also provides several shortcut functions:" +msgstr "" + +msgid "" +"Return the formatted representation of *object* as a string. *indent*, " +"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* will be " +"passed to the :class:`PrettyPrinter` constructor as formatting parameters." +msgstr "" + +msgid "" +"Prints the formatted representation of *object* followed by a newline. If " +"*sort_dicts* is false (the default), dictionaries will be displayed with " +"their keys in insertion order, otherwise the dict keys will be sorted. " +"*args* and *kwargs* will be passed to :func:`pprint` as formatting " +"parameters." +msgstr "" + +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 " +"inspecting values (you can even reassign ``print = pprint.pprint`` for use " +"within a scope). *indent*, *width*, *depth*, *compact*, *sort_dicts* and " +"*underscore_numbers* will be passed to the :class:`PrettyPrinter` " +"constructor as formatting parameters." +msgstr "" + +msgid "" +"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 "" + +msgid "Determine if *object* requires a recursive representation." +msgstr "" + +msgid "One more support function is also defined:" +msgstr "" + +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." +msgstr "" + +msgid "PrettyPrinter Objects" +msgstr "" + +msgid ":class:`PrettyPrinter` instances have the following methods:" +msgstr "" + +msgid "" +"Return the formatted representation of *object*. This takes into account " +"the options passed to the :class:`PrettyPrinter` constructor." +msgstr "" + +msgid "" +"Print the formatted representation of *object* on the configured stream, " +"followed by a newline." +msgstr "" + +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 " +"created." +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``." +msgstr "" + +msgid "Determine if the object requires a recursive representation." +msgstr "" + +msgid "" +"This method is provided as a hook to allow subclasses to modify the way " +"objects are converted to strings. The default implementation uses the " +"internals of the :func:`saferepr` implementation." +msgstr "" + +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 " +"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 " +"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 " +"of the current call." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid "" +"To demonstrate several uses of the :func:`pprint` function and its " +"parameters, let's fetch information about a project from `PyPI `_::" +msgstr "" + +msgid "In its basic form, :func:`pprint` shows the whole object::" +msgstr "" + +msgid "" +"The result can be limited to a certain *depth* (ellipsis is used for deeper " +"contents)::" +msgstr "" + +msgid "" +"Additionally, maximum character *width* can be suggested. If a long object " +"cannot be split, the specified width will be exceeded::" +msgstr "" diff --git a/library/profile.po b/library/profile.po new file mode 100644 index 0000000000..f2dd8ccfc4 --- /dev/null +++ b/library/profile.po @@ -0,0 +1,816 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Blessing Oluronbi, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "The Python Profilers" +msgstr "" + +msgid "**Source code:** :source:`Lib/profile.py` and :source:`Lib/pstats.py`" +msgstr "**Kod źródłowy:** :source:`Lib/profile.py`" + +msgid "Introduction to the profilers" +msgstr "" + +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 " +"statistics can be formatted into reports via the :mod:`pstats` module." +msgstr "" + +msgid "" +"The Python standard library provides two different implementations of the " +"same profiling interface:" +msgstr "" + +msgid "" +":mod:`cProfile` is recommended for most users; it's a C extension with " +"reasonable overhead that makes it suitable for profiling long-running " +"programs. Based on :mod:`lsprof`, contributed by Brett Rosen and Ted " +"Czotter." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Instant User's Manual" +msgstr "" + +msgid "" +"This section is provided for users that \"don't want to read the manual.\" " +"It provides a very brief overview, and allows a user to rapidly perform " +"profiling on an existing application." +msgstr "" + +msgid "To profile a function that takes a single argument, you can do::" +msgstr "" + +msgid "" +"(Use :mod:`profile` instead of :mod:`cProfile` if the latter is not " +"available on your system.)" +msgstr "" + +msgid "" +"The above action would run :func:`re.compile` and print profile results like " +"the following::" +msgstr "" + +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:" +msgstr "" + +msgid "ncalls" +msgstr "" + +msgid "for the number of calls." +msgstr "" + +msgid "tottime" +msgstr "" + +msgid "" +"for the total time spent in the given function (and excluding time made in " +"calls to sub-functions)" +msgstr "" + +msgid "percall" +msgstr "" + +msgid "is the quotient of ``tottime`` divided by ``ncalls``" +msgstr "" + +msgid "cumtime" +msgstr "" + +msgid "" +"is the cumulative time spent in this and all subfunctions (from invocation " +"till exit). This figure is accurate *even* for recursive functions." +msgstr "" + +msgid "is the quotient of ``cumtime`` divided by primitive calls" +msgstr "" + +msgid "filename:lineno(function)" +msgstr "filename:lineno(function)" + +msgid "provides the respective data of each function" +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 " +"single figure is printed." +msgstr "" + +msgid "" +"Instead of printing the output at the end of the profile run, you can save " +"the results to a file by specifying a filename to the :func:`run` function::" +msgstr "" + +msgid "" +"The :class:`pstats.Stats` class reads profile results from a file and " +"formats them in various ways." +msgstr "" + +msgid "" +"The files :mod:`cProfile` and :mod:`profile` can also be invoked as a script " +"to profile another script. For example::" +msgstr "" + +msgid "``-o`` writes the profile results to a file instead of to stdout" +msgstr "" + +msgid "" +"``-s`` specifies one of the :func:`~pstats.Stats.sort_stats` sort values to " +"sort the output by. This only applies when ``-o`` is not supplied." +msgstr "" + +msgid "``-m`` specifies that a module is being profiled instead of a script." +msgstr "" + +msgid "Added the ``-m`` option to :mod:`cProfile`." +msgstr "" + +msgid "Added the ``-m`` option to :mod:`profile`." +msgstr "" + +msgid "" +"The :mod:`pstats` module's :class:`~pstats.Stats` class has a variety of " +"methods for manipulating and printing the data saved into a profile results " +"file::" +msgstr "" + +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 " +"printed. The :meth:`~pstats.Stats.print_stats` method printed out all the " +"statistics. You might try the following sort calls::" +msgstr "" + +msgid "" +"The first call will actually sort the list by function name, and the second " +"call will print out the statistics. The following are some interesting " +"calls to experiment with::" +msgstr "" + +msgid "" +"This sorts the profile by cumulative time in a function, and then only " +"prints the ten most significant lines. If you want to understand what " +"algorithms are taking time, the above line is what you would use." +msgstr "" + +msgid "" +"If you were looking to see what functions were looping a lot, and taking a " +"lot of time, you would do::" +msgstr "" + +msgid "" +"to sort according to time spent within each function, and then print the " +"statistics for the top ten functions." +msgstr "" + +msgid "You might also try::" +msgstr "" + +msgid "" +"This will sort all the statistics by file name, and then print out " +"statistics for only the class init methods (since they are spelled with " +"``__init__`` in them). As one final example, you could try::" +msgstr "" + +msgid "" +"This line sorts statistics with a primary key of time, and a secondary key " +"of cumulative time, and then prints out some of the statistics. To be " +"specific, the list is first culled down to 50% (re: ``.5``) of its original " +"size, then only lines containing ``init`` are maintained, and that sub-sub-" +"list is printed." +msgstr "" + +msgid "" +"If you wondered what functions called the above functions, you could now " +"(``p`` is still sorted according to the last criteria) do::" +msgstr "" + +msgid "and you would get a list of callers for each of the listed functions." +msgstr "" + +msgid "" +"If you want more functionality, you're going to have to read the manual, or " +"guess what the following functions do::" +msgstr "" + +msgid "" +"Invoked as a script, the :mod:`pstats` module is a statistics browser for " +"reading and examining profile dumps. It has a simple line-oriented " +"interface (implemented using :mod:`cmd`) and interactive help." +msgstr "" + +msgid ":mod:`profile` and :mod:`cProfile` Module Reference" +msgstr "" + +msgid "" +"Both the :mod:`profile` and :mod:`cProfile` modules provide the following " +"functions:" +msgstr "" + +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::" +msgstr "" + +msgid "" +"and gathers profiling statistics from the execution. If no file name is " +"present, then this function automatically creates a :class:`~pstats.Stats` " +"instance and prints a simple profiling report. If the sort value is " +"specified, it is passed to this :class:`~pstats.Stats` instance to control " +"how the results are sorted." +msgstr "" + +msgid "" +"This function is similar to :func:`run`, with added arguments to supply the " +"globals and locals dictionaries for the *command* string. This routine " +"executes::" +msgstr "" + +msgid "and gathers profiling statistics as in the :func:`run` function above." +msgstr "" + +msgid "" +"This class is normally only used if more precise control over profiling is " +"needed than what the :func:`cProfile.run` function provides." +msgstr "" + +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 " +"time unit would be ``.001``." +msgstr "" + +msgid "" +"Directly using the :class:`Profile` class allows formatting profile results " +"without writing the profile data to a file::" +msgstr "" + +msgid "" +"The :class:`Profile` class can also be used as a context manager (supported " +"only in :mod:`cProfile` module. see :ref:`typecontextmanager`)::" +msgstr "" + +msgid "Added context manager support." +msgstr "Dodano obsługę menedżera kontekstu v" + +msgid "Start collecting profiling data. Only in :mod:`cProfile`." +msgstr "" + +msgid "Stop collecting profiling data. Only in :mod:`cProfile`." +msgstr "" + +msgid "" +"Stop collecting profiling data and record the results internally as the " +"current profile." +msgstr "" + +msgid "" +"Create a :class:`~pstats.Stats` object based on the current profile and " +"print the results to stdout." +msgstr "" + +msgid "Write the results of the current profile to *filename*." +msgstr "" + +msgid "Profile the cmd via :func:`exec`." +msgstr "" + +msgid "" +"Profile the cmd via :func:`exec` with the specified global and local " +"environment." +msgstr "" + +msgid "Profile ``func(*args, **kwargs)``" +msgstr "" + +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 " +"printed." +msgstr "" + +msgid "The :class:`Stats` Class" +msgstr "" + +msgid "" +"Analysis of the profiler data is done using the :class:`~pstats.Stats` class." +msgstr "" + +msgid "" +"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 "" + +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 " +"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." +msgstr "" + +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." +msgstr "" + +msgid ":class:`Stats` objects have the following methods:" +msgstr "" + +msgid "" +"This method for the :class:`Stats` class removes all leading path " +"information from file names. It is very useful in reducing the size of the " +"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." +msgstr "" + +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." +msgstr "" + +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 " +"the :class:`profile.Profile` and :class:`cProfile.Profile` classes." +msgstr "" + +msgid "" +"This method modifies the :class:`Stats` object by sorting it according to " +"the supplied criteria. The argument can be either a string or a SortKey " +"enum identifying the basis of a sort (example: ``'time'``, ``'name'``, " +"``SortKey.TIME`` or ``SortKey.NAME``). The SortKey enums argument have " +"advantage over the string argument in that it is more robust and less error " +"prone." +msgstr "" + +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 " +"entries according to their function name, and resolve all ties (identical " +"function names) by sorting by file name." +msgstr "" + +msgid "" +"For the string argument, abbreviations can be used for any key names, as " +"long as the abbreviation is unambiguous." +msgstr "" + +msgid "The following are the valid string and SortKey:" +msgstr "" + +msgid "Valid String Arg" +msgstr "" + +msgid "Valid enum Arg" +msgstr "" + +msgid "Meaning" +msgstr "Znaczenie" + +msgid "``'calls'``" +msgstr "" + +msgid "SortKey.CALLS" +msgstr "" + +msgid "call count" +msgstr "" + +msgid "``'cumulative'``" +msgstr "" + +msgid "SortKey.CUMULATIVE" +msgstr "" + +msgid "cumulative time" +msgstr "" + +msgid "``'cumtime'``" +msgstr "" + +msgid "N/A" +msgstr "" + +msgid "``'file'``" +msgstr "" + +msgid "file name" +msgstr "" + +msgid "``'filename'``" +msgstr "" + +msgid "SortKey.FILENAME" +msgstr "" + +msgid "``'module'``" +msgstr "" + +msgid "``'ncalls'``" +msgstr "" + +msgid "``'pcalls'``" +msgstr "" + +msgid "SortKey.PCALLS" +msgstr "" + +msgid "primitive call count" +msgstr "" + +msgid "``'line'``" +msgstr "" + +msgid "SortKey.LINE" +msgstr "" + +msgid "line number" +msgstr "" + +msgid "``'name'``" +msgstr "" + +msgid "SortKey.NAME" +msgstr "" + +msgid "function name" +msgstr "" + +msgid "``'nfl'``" +msgstr "" + +msgid "SortKey.NFL" +msgstr "" + +msgid "name/file/line" +msgstr "" + +msgid "``'stdname'``" +msgstr "" + +msgid "SortKey.STDNAME" +msgstr "" + +msgid "standard name" +msgstr "" + +msgid "``'time'``" +msgstr "" + +msgid "SortKey.TIME" +msgstr "" + +msgid "internal time" +msgstr "" + +msgid "``'tottime'``" +msgstr "" + +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, " +"``sort_stats(SortKey.NFL)`` is the same as ``sort_stats(SortKey.NAME, " +"SortKey.FILENAME, SortKey.LINE)``." +msgstr "" + +msgid "" +"For backward-compatibility reasons, the numeric arguments ``-1``, ``0``, " +"``1``, and ``2`` are permitted. They are interpreted as ``'stdname'``, " +"``'calls'``, ``'time'``, and ``'cumulative'`` respectively. If this old " +"style format (numeric) is used, only one sort key (the numeric key) will be " +"used, and additional arguments will be silently ignored." +msgstr "" + +msgid "Added the SortKey enum." +msgstr "" + +msgid "" +"This method for the :class:`Stats` class reverses the ordering of the basic " +"list within the object. Note that by default ascending vs descending order " +"is properly selected based on the sort key of choice." +msgstr "" + +msgid "" +"This method for the :class:`Stats` class prints out a report as described in " +"the :func:`profile.run` definition." +msgstr "" + +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`)." +msgstr "" + +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 " +"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 " +"several restrictions are provided, then they are applied sequentially. For " +"example::" +msgstr "" + +msgid "" +"would first limit the printing to first 10% of list, and then only print " +"functions that were part of filename :file:`.\\*foo:`. In contrast, the " +"command::" +msgstr "" + +msgid "" +"would limit the list to all functions having file names :file:`.\\*foo:`, " +"and then proceed to only print the first 10% of them." +msgstr "" + +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 " +"produced the stats:" +msgstr "" + +msgid "" +"With :mod:`profile`, a number is shown in parentheses after each caller to " +"show how many times this specific call was made. For convenience, a second " +"non-parenthesized number repeats the cumulative time spent in the function " +"at the right." +msgstr "" + +msgid "" +"With :mod:`cProfile`, each caller is preceded by three numbers: the number " +"of times this specific call was made, and the total and cumulative times " +"spent in the current function while it was invoked by this specific caller." +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." +msgstr "" + +msgid "" +"This method returns an instance of StatsProfile, which contains a mapping of " +"function names to instances of FunctionProfile. Each FunctionProfile " +"instance holds information related to the function's profile such as how " +"long the function took to run, how many times it was called, etc..." +msgstr "" + +msgid "" +"Added the following dataclasses: StatsProfile, FunctionProfile. Added the " +"following function: get_stats_profile." +msgstr "" + +msgid "What Is Deterministic Profiling?" +msgstr "" + +msgid "" +":dfn:`Deterministic profiling` is meant to reflect the fact that all " +"*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 " +"being spent." +msgstr "" + +msgid "" +"In Python, since there is an interpreter active during execution, the " +"presence of instrumented code is not required in order 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 "" + +msgid "" +"Call count statistics can be used to identify bugs in code (surprising " +"counts), and to identify possible inline-expansion points (high call " +"counts). Internal time statistics can be used to identify \"hot loops\" " +"that should be carefully optimized. Cumulative time statistics should be " +"used to identify high level errors in the selection of algorithms. Note " +"that the unusual handling of cumulative times in this profiler allows " +"statistics for recursive implementations of algorithms to be directly " +"compared to iterative implementations." +msgstr "" + +msgid "Limitations" +msgstr "Ograniczenia" + +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 " +"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." +msgstr "" + +msgid "" +"The second problem is that it \"takes a while\" from when an event is " +"dispatched until the profiler's call to get the time actually *gets* the " +"state of the clock. Similarly, there is a certain lag when exiting the " +"profiler event handler from the time that the clock's value was obtained " +"(and then squirreled away), until the user's code is once again executing. " +"As a result, functions that are called many times, or call many functions, " +"will typically accumulate this error. The error that accumulates in this " +"fashion is typically less than the accuracy of the clock (less than one " +"clock tick), but it *can* accumulate and become very significant." +msgstr "" + +msgid "" +"The problem is more important with :mod:`profile` than with the lower-" +"overhead :mod:`cProfile`. For this reason, :mod:`profile` provides a means " +"of calibrating itself for a given platform so that this error can be " +"probabilistically (on the average) removed. After the profiler is " +"calibrated, it will be more accurate (in a least square sense), but it will " +"sometimes produce negative numbers (when call counts are exceptionally low, " +"and the gods of probability work against you :-). ) Do *not* be alarmed by " +"negative numbers in the profile. They should *only* appear if you have " +"calibrated your profiler, and the results are actually better than without " +"calibration." +msgstr "" + +msgid "Calibration" +msgstr "" + +msgid "" +"The profiler of the :mod:`profile` module subtracts a constant from each " +"event handling time to compensate for the overhead of calling the time " +"function, and socking away the results. By default, the constant is 0. The " +"following procedure can be used to obtain a better constant for a given " +"platform (see :ref:`profile-limitations`). ::" +msgstr "" + +msgid "" +"The method executes the number of Python calls given by the argument, " +"directly and again under the profiler, measuring the time for both. It then " +"computes the hidden overhead per profiler event, and returns that as a " +"float. For example, on a 1.8Ghz Intel Core i5 running macOS, and using " +"Python's time.process_time() as the timer, the magical number is about " +"4.04e-6." +msgstr "" + +msgid "" +"The object of this exercise is to get a fairly consistent result. If your " +"computer is *very* fast, or your timer function has poor resolution, you " +"might have to pass 100000, or even 1000000, to get consistent results." +msgstr "" + +msgid "" +"When you have a consistent answer, there are three ways you can use it::" +msgstr "" + +msgid "" +"If you have a choice, you are better off choosing a smaller constant, and " +"then your results will \"less often\" show up as negative in profile " +"statistics." +msgstr "" + +msgid "Using a custom timer" +msgstr "Korzystanie z niestandardowego timera" + +msgid "" +"If you want to change how current time is determined (for example, to force " +"use of wall-clock time or elapsed process time), pass the timing function " +"you want to the :class:`Profile` class constructor::" +msgstr "" + +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:" +msgstr "" + +msgid ":class:`profile.Profile`" +msgstr ":class:`profile.Profile`" + +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 " +"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." +msgstr "" + +msgid "" +"Be warned that you should calibrate the profiler class for the timer " +"function that you choose (see :ref:`profile-calibration`). For most " +"machines, a timer that returns a lone integer value will provide the best " +"results in terms of low overhead during profiling. (:func:`os.times` is " +"*pretty* bad, as it returns a tuple of floating point values). If you want " +"to substitute a better timer in the cleanest fashion, derive a class and " +"hardwire a replacement dispatch method that best handles your timer call, " +"along with the appropriate calibration constant." +msgstr "" + +msgid ":class:`cProfile.Profile`" +msgstr ":class:`cProfile.Profile`" + +msgid "" +"``your_time_func`` should return a single number. If it returns integers, " +"you can also invoke the class constructor with a second argument specifying " +"the real duration of one unit of time. For example, if " +"``your_integer_time_func`` returns times measured in thousands of seconds, " +"you would construct the :class:`Profile` instance as follows::" +msgstr "" + +msgid "" +"As the :class:`cProfile.Profile` class cannot be calibrated, custom timer " +"functions should be used with care and should be as fast as possible. For " +"the best results with a custom timer, it might be necessary to hard-code it " +"in the C source of the internal :mod:`_lsprof` module." +msgstr "" + +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`." +msgstr "" diff --git a/library/pty.po b/library/pty.po new file mode 100644 index 0000000000..27a396279f --- /dev/null +++ b/library/pty.po @@ -0,0 +1,125 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pty` --- Pseudo-terminal utilities" +msgstr "" + +msgid "**Source code:** :source:`Lib/pty.py`" +msgstr "**Kod źródłowy:** :source:`Lib/pty.py`" + +msgid "" +"The :mod:`pty` module defines operations for handling the pseudo-terminal " +"concept: starting another process and being able to write to and read from " +"its controlling terminal programmatically." +msgstr "" + +msgid "" +"Pseudo-terminal handling is highly platform dependent. This code is mainly " +"tested on Linux, FreeBSD, and macOS (it is supposed to work on other POSIX " +"platforms but it's not been thoroughly tested)." +msgstr "" + +msgid "The :mod:`pty` module defines the following functions:" +msgstr "" + +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)." +msgstr "" + +msgid "" +"Open a new pseudo-terminal pair, using :func:`os.openpty` if possible, or " +"emulation code for generic Unix systems. Return a pair of file descriptors " +"``(master, slave)``, for the master and the slave end, respectively." +msgstr "" + +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 " +"spawned behind the pty will eventually terminate, and when it does *spawn* " +"will return." +msgstr "" + +msgid "" +"A loop copies STDIN of the current process to the child and data received " +"from the child to STDOUT of the current process. It is not signaled to the " +"child if STDIN of the current process closes down." +msgstr "" + +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 empty byte " +"array should be returned to signal end of file." +msgstr "" + +msgid "" +"The default implementation for both functions will read and return up to " +"1024 bytes each time the function is called. The *master_read* callback is " +"passed the pseudoterminal’s master file descriptor to read output from the " +"child process, and *stdin_read* is passed file descriptor 0, to read from " +"the parent process's standard input." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Return the exit status value from :func:`os.waitpid` on the child process." +msgstr "" + +msgid "" +":func:`waitstatus_to_exitcode` can be used to convert the exit status into " +"an exit code." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``pty.spawn`` with argument " +"``argv``." +msgstr "" + +msgid "" +":func:`spawn` now returns the status value from :func:`os.waitpid` on the " +"child process." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +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\". ::" +msgstr "" diff --git a/library/pwd.po b/library/pwd.po index 4e8d5f5eca..9572ca7365 100644 --- a/library/pwd.po +++ b/library/pwd.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:11+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`pwd` --- The password database" msgstr "" @@ -31,15 +31,6 @@ msgid "" "It is available on all Unix versions." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "" "Password database entries are reported as a tuple-like object, whose " "attributes correspond to the members of the ``passwd`` structure (Attribute " @@ -47,10 +38,10 @@ msgid "" msgstr "" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Meaning" msgstr "Znaczenie" @@ -59,7 +50,7 @@ msgid "0" msgstr "0" msgid "``pw_name``" -msgstr "" +msgstr "``pw_name``" msgid "Login name" msgstr "" @@ -68,7 +59,7 @@ msgid "1" msgstr "1" msgid "``pw_passwd``" -msgstr "" +msgstr "``pw_passwd``" msgid "Optional encrypted password" msgstr "" @@ -77,16 +68,16 @@ msgid "2" msgstr "2" msgid "``pw_uid``" -msgstr "" +msgstr "``pw_uid``" msgid "Numerical user ID" msgstr "" msgid "3" -msgstr "" +msgstr "3" msgid "``pw_gid``" -msgstr "" +msgstr "``pw_gid``" msgid "Numerical group ID" msgstr "" @@ -95,25 +86,25 @@ msgid "4" msgstr "4" msgid "``pw_gecos``" -msgstr "" +msgstr "``pw_gecos``" msgid "User name or comment field" msgstr "" msgid "5" -msgstr "" +msgstr "5" msgid "``pw_dir``" -msgstr "" +msgstr "``pw_dir``" msgid "User home directory" msgstr "" msgid "6" -msgstr "" +msgstr "6" msgid "``pw_shell``" -msgstr "" +msgstr "``pw_shell``" msgid "User command interpreter" msgstr "" diff --git a/library/py_compile.po b/library/py_compile.po new file mode 100644 index 0000000000..ad339b0994 --- /dev/null +++ b/library/py_compile.po @@ -0,0 +1,185 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`py_compile` --- Compile Python source files" +msgstr "" + +msgid "**Source code:** :source:`Lib/py_compile.py`" +msgstr "**Kod źródłowy:** :source:`Lib/py_compile.py`" + +msgid "" +"The :mod:`py_compile` module provides a function to generate a byte-code " +"file from a source file, and another function used when the module source " +"file is invoked as a script." +msgstr "" + +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 " +"write the byte-code cache files in the directory containing the source code." +msgstr "" + +msgid "" +"Exception raised when an error occurs while attempting to compile the file." +msgstr "" + +msgid "" +"Compile a source file to byte-code and write out the byte-code cache file. " +"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 instead of *file* as the name of the " +"source file from which source lines are obtained for display in exception " +"tracebacks. 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 "" + +msgid "" +"The *doraise* and *quiet* arguments determine how errors are handled while " +"compiling file. If *quiet* is 0 or 1, and *doraise* is false, the default " +"behaviour is enabled: an error string is written to ``sys.stderr``, and the " +"function returns ``None`` instead of a path. If *doraise* is true, " +"a :exc:`PyCompileError` is raised instead. However if *quiet* is 2, no " +"message is written, and *doraise* has no effect." +msgstr "" + +msgid "" +"If the path that *cfile* becomes (either explicitly specified or computed) " +"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." +msgstr "" + +msgid "" +"*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 "" + +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 " +"default is :attr:`PycInvalidationMode.TIMESTAMP`." +msgstr "" + +msgid "" +"Changed default value of *cfile* to be :PEP:`3147`-compliant. Previous " +"default was *file* + ``'c'`` (``'o'`` if optimization was enabled). Also " +"added the *optimize* parameter." +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the " +"value of the *invalidation_mode* argument, and determines its default value " +"instead." +msgstr "" + +msgid "The *quiet* parameter was added." +msgstr "" + +msgid "" +"A enumeration of possible methods the interpreter can use to determine " +"whether a bytecode file is up to date with a source file. The ``.pyc`` file " +"indicates the desired invalidation mode in its header. See :ref:`pyc-" +"invalidation` for more information on how Python invalidates ``.pyc`` files " +"at runtime." +msgstr "" + +msgid "" +"The ``.pyc`` file includes the timestamp and size of the source file, which " +"Python will compare against the metadata of the source file at runtime to " +"determine if the ``.pyc`` file needs to be regenerated." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"This option is useful when the ``.pycs`` are kept up to date by some system " +"external to Python like a build system." +msgstr "" + +msgid "Command-Line Interface" +msgstr "" + +msgid "" +"This module can be invoked as a script to compile several source files. The " +"files named in *filenames* are compiled and the resulting bytecode is cached " +"in the normal manner. This program does not search a directory structure to " +"locate source files; it only compiles files named explicitly. The exit " +"status is nonzero if one of the files could not be compiled." +msgstr "" + +msgid "" +"Positional arguments are files to compile. If ``-`` is the only parameter, " +"the list of files is taken from standard input." +msgstr "" + +msgid "Suppress errors output." +msgstr "" + +msgid "Added support for ``-``." +msgstr "" + +msgid "Added support for :option:`-q`." +msgstr "" + +msgid "Module :mod:`compileall`" +msgstr "" + +msgid "Utilities to compile all Python source files in a directory tree." +msgstr "" diff --git a/library/pyclbr.po b/library/pyclbr.po new file mode 100644 index 0000000000..adc69cecb6 --- /dev/null +++ b/library/pyclbr.po @@ -0,0 +1,139 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pyclbr` --- Python module browser support" +msgstr "" + +msgid "**Source code:** :source:`Lib/pyclbr.py`" +msgstr "**Kod źródłowy:** :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 " +"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 "" + +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 " +"paths prepended to ``sys.path``, which is used to locate the module source " +"code." +msgstr "" + +msgid "" +"This function is the original interface and is only kept for back " +"compatibility. It returns a filtered version of the following." +msgstr "" + +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 " +"value is a list containing the package search path." +msgstr "" + +msgid "" +"Descriptors for nested definitions. They are accessed through the new " +"children attribute. Each has a new parent attribute." +msgstr "" + +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 "" + +msgid "Function Objects" +msgstr "Obiekty Funkcja" + +msgid "" +"Class :class:`Function` instances describe functions defined by def " +"statements. They have the following attributes:" +msgstr "" + +msgid "Name of the file in which the function is defined." +msgstr "" + +msgid "The name of the module defining the function described." +msgstr "" + +msgid "The name of the function." +msgstr "" + +msgid "The line number in the file where the definition starts." +msgstr "" + +msgid "For top-level functions, None. For nested functions, the parent." +msgstr "" + +msgid "" +"A dictionary mapping names to descriptors for nested functions and classes." +msgstr "" + +msgid "" +"``True`` for functions that are defined with the ``async`` prefix, ``False`` " +"otherwise." +msgstr "" + +msgid "Class Objects" +msgstr "Obiekty klas" + +msgid "" +"Class :class:`Class` instances describe classes defined by class " +"statements. They have the same attributes as Functions and two more." +msgstr "" + +msgid "Name of the file in which the class is defined." +msgstr "" + +msgid "The name of the module defining the class described." +msgstr "" + +msgid "The name of the class." +msgstr "" + +msgid "For top-level classes, None. For nested classes, the parent." +msgstr "" + +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 "" + +msgid "" +"A dictionary mapping method names to line numbers. This can be derived from " +"the newer children dictionary, but remains for back-compatibility." +msgstr "" diff --git a/library/pydoc.po b/library/pydoc.po new file mode 100644 index 0000000000..56cb4628fa --- /dev/null +++ b/library/pydoc.po @@ -0,0 +1,146 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`pydoc` --- Documentation generator and online help system" +msgstr "" + +msgid "**Source code:** :source:`Lib/pydoc.py`" +msgstr "**Kod źródłowy:** :source:`Lib/pydoc.py`" + +msgid "" +"The :mod:`pydoc` module automatically generates documentation from Python " +"modules. The documentation can be presented as pages of text on the " +"console, served to a web browser, or saved to HTML files." +msgstr "" + +msgid "" +"For modules, classes, functions and methods, the displayed documentation is " +"derived from the docstring (i.e. the :attr:`__doc__` attribute) of the " +"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`)." +msgstr "" + +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 ::" +msgstr "" + +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 " +"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 " +"file, then documentation is produced for that file." +msgstr "" + +msgid "" +"In order to find objects and their documentation, :mod:`pydoc` imports the " +"module(s) to be documented. Therefore, any code on module level will be " +"executed on that occasion. Use an ``if __name__ == '__main__':`` guard to " +"only execute code when a file is invoked as a script and not just imported." +msgstr "" + +msgid "" +"When printing output to the console, :program:`pydoc` attempts to paginate " +"the output for easier reading. If the :envvar:`PAGER` environment variable " +"is set, :program:`pydoc` will use its value as a pagination program." +msgstr "" + +msgid "" +"Specifying a ``-w`` flag before the argument will cause HTML documentation " +"to be written out to a file in the current directory, instead of displaying " +"text on the console." +msgstr "" + +msgid "" +"Specifying a ``-k`` flag before the argument will search the synopsis lines " +"of all available modules for the keyword given as the argument, again in a " +"manner similar to the Unix :program:`man` command. The synopsis line of a " +"module is the first line of its documentation string." +msgstr "" + +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:`python -m 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 "" + +msgid "" +":program:`python -m 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." +msgstr "" + +msgid "" +":program:`python -m 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*, " +"*Topics* and *Keywords* pages." +msgstr "" + +msgid "" +"When :program:`pydoc` generates documentation, it uses the current " +"environment and path to locate modules. Thus, invoking :program:`pydoc " +"spam` documents precisely the version of the module you would get if you " +"started the Python interpreter and typed ``import spam``." +msgstr "" + +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." +msgstr "" + +msgid "Added the ``-b`` option." +msgstr "" + +msgid "The ``-g`` command line option was removed." +msgstr "" + +msgid "" +":mod:`pydoc` now uses :func:`inspect.signature` rather " +"than :func:`inspect.getfullargspec` to extract signature information from " +"callables." +msgstr "" + +msgid "Added the ``-n`` option." +msgstr "" diff --git a/library/pyexpat.po b/library/pyexpat.po new file mode 100644 index 0000000000..0123162d39 --- /dev/null +++ b/library/pyexpat.po @@ -0,0 +1,839 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`xml.parsers.expat` --- Fast XML parsing using Expat" +msgstr "" + +msgid "" +"The :mod:`pyexpat` module is not secure against maliciously constructed " +"data. If you need to parse untrusted or unauthenticated data see :ref:`xml-" +"vulnerabilities`." +msgstr "" + +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." +msgstr "" + +msgid "" +"This module uses the :mod:`pyexpat` module to provide access to the Expat " +"parser. Direct use of the :mod:`pyexpat` module is deprecated." +msgstr "" + +msgid "This module provides one exception and one type object:" +msgstr "" + +msgid "" +"The exception raised when Expat reports an error. See " +"section :ref:`expaterror-objects` for more information on interpreting Expat " +"errors." +msgstr "" + +msgid "Alias for :exc:`ExpatError`." +msgstr "" + +msgid "The type of the return values from the :func:`ParserCreate` function." +msgstr "" + +msgid "The :mod:`xml.parsers.expat` module contains two functions:" +msgstr "" + +msgid "Returns an explanatory string for a given error number *errno*." +msgstr "" + +msgid "" +"Creates and returns a new :class:`xmlparser` object. *encoding*, if " +"specified, must be a string naming the encoding used by the XML data. " +"Expat doesn't support as many encodings as Python does, and its repertoire " +"of encodings can't be extended; it supports UTF-8, UTF-16, ISO-8859-1 " +"(Latin1), and ASCII. If *encoding* [1]_ is given it will override the " +"implicit or explicit encoding of the document." +msgstr "" + +msgid "" +"Parsers created through :func:`!ParserCreate` are called \"root\" parsers, " +"in the sense that they do not have any parent parser attached. Non-root " +"parsers are created by :meth:`parser.ExternalEntityParserCreate " +"`." +msgstr "" + +msgid "" +"Expat can optionally do XML namespace processing for you, enabled by " +"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 " +"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 " +"zero byte (``chr(0)``) then the namespace URI and the local part will be " +"concatenated without any separator." +msgstr "" + +msgid "" +"For example, if *namespace_separator* is set to a space character (``' '``) " +"and the following document is parsed:" +msgstr "" + +msgid "" +":attr:`StartElementHandler` will receive the following strings for each " +"element::" +msgstr "" + +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 document. Call ``ParserCreate`` for each document to provide unique " +"parser instances." +msgstr "" + +msgid "`The Expat XML Parser `_" +msgstr "" + +msgid "Home page of the Expat project." +msgstr "" + +msgid "XMLParser Objects" +msgstr "" + +msgid ":class:`xmlparser` objects have the following methods:" +msgstr "" + +msgid "" +"Parses the contents of the string *data*, calling the appropriate handler " +"functions to process the parsed data. *isfinal* must be true on the final " +"call to this method; it allows the parsing of a single file in fragments, " +"not the submission of multiple files. *data* can be the empty string at any " +"time." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns a string containing the base set by a previous call " +"to :meth:`SetBase`, or ``None`` if :meth:`SetBase` hasn't been called." +msgstr "" + +msgid "" +"Returns the input data that generated the current event as a string. The " +"data is in the encoding of the entity which contains the text. When called " +"while an event handler is not active, the return value is ``None``." +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Calling this with a true value for *flag* (the default) will cause Expat to " +"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." +msgstr "" + +msgid "" +"Passing a false value for *flag* will cancel a previous call that passed a " +"true value, but otherwise has no effect." +msgstr "" + +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]``." +msgstr "" + +msgid "" +"Calling ``SetReparseDeferralEnabled(False)`` has security implications, as " +"detailed below; please make sure to understand these consequences prior to " +"using the ``SetReparseDeferralEnabled`` method." +msgstr "" + +msgid "" +"Expat 2.6.0 introduced a security mechanism called \"reparse deferral\" " +"where instead of causing denial of service through quadratic runtime from " +"reparsing large tokens, reparsing of unfinished tokens is now delayed by " +"default until a sufficient amount of input is reached. Due to this delay, " +"registered handlers may — depending of the sizing of input chunks pushed to " +"Expat — no longer be called right after pushing new input to the parser. " +"Where immediate feedback and taking over responsiblity of protecting against " +"denial of service from large tokens are both wanted, calling " +"``SetReparseDeferralEnabled(False)`` disables reparse deferral for the " +"current Expat parser instance, temporarily or altogether. Calling " +"``SetReparseDeferralEnabled(True)`` allows re-enabling reparse deferral." +msgstr "" + +msgid "" +"Note that :meth:`SetReparseDeferralEnabled` has been backported to some " +"prior releases of CPython as a security fix. Check for availability " +"of :meth:`SetReparseDeferralEnabled` using :func:`hasattr` if used in code " +"running across a variety of Python versions." +msgstr "" + +msgid "" +"Returns whether reparse deferral is currently enabled for the given Expat " +"parser instance." +msgstr "" + +msgid "" +":class:`!xmlparser` objects have the following methods to tune protections " +"against some common XML vulnerabilities." +msgstr "" + +msgid "" +"Sets the number of output bytes needed to activate protection against " +"`billion laughs`_ attacks." +msgstr "" + +msgid "" +"The number of output bytes includes amplification from entity expansion and " +"reading DTD files." +msgstr "" + +msgid "" +"Parser objects usually have a protection activation threshold of 8 MiB, but " +"the actual default value depends on the underlying Expat library." +msgstr "" + +msgid "" +"An :exc:`ExpatError` is raised if this method is called on a |xml-non-root-" +"parser| parser. The corresponding :attr:`~ExpatError.lineno` " +"and :attr:`~ExpatError.offset` should not be used as they may have no " +"special meaning." +msgstr "" + +msgid "" +"Activation thresholds below 4 MiB are known to break support for DITA 1.3 " +"payload and are hence not recommended." +msgstr "" + +msgid "" +"Sets the maximum tolerated amplification factor for protection against " +"`billion laughs`_ attacks." +msgstr "" + +msgid "" +"The amplification factor is calculated as ``(direct + indirect) / direct`` " +"while parsing, where ``direct`` is the number of bytes read from the primary " +"document in parsing and ``indirect`` is the number of bytes added by " +"expanding entities and reading of external DTD files." +msgstr "" + +msgid "" +"The *max_factor* value must be a non-NaN :class:`float` value greater than " +"or equal to 1.0. Peak amplifications of factor 15,000 for the entire payload " +"and of factor 30,000 in the middle of parsing have been observed with small " +"benign files in practice. In particular, the activation threshold should be " +"carefully chosen to avoid false positives." +msgstr "" + +msgid "" +"Parser objects usually have a maximum amplification factor of 100, but the " +"actual default value depends on the underlying Expat library." +msgstr "" + +msgid "" +"An :exc:`ExpatError` is raised if this method is called on a |xml-non-root-" +"parser| parser or if *max_factor* is outside the valid range. The " +"corresponding :attr:`~ExpatError.lineno` and :attr:`~ExpatError.offset` " +"should not be used as they may have no special meaning." +msgstr "" + +msgid "" +"The maximum amplification factor is only considered if the threshold that " +"can be adjusted " +"by :meth:`.SetBillionLaughsAttackProtectionActivationThreshold` is exceeded." +msgstr "" + +msgid "" +"Sets the number of allocated bytes of dynamic memory needed to activate " +"protection against disproportionate use of RAM." +msgstr "" + +msgid "" +"Parser objects usually have an allocation activation threshold of 64 MiB, " +"but the actual default value depends on the underlying Expat library." +msgstr "" + +msgid "" +"Sets the maximum amplification factor between direct input and bytes of " +"dynamic memory allocated." +msgstr "" + +msgid "" +"The amplification factor is calculated as ``allocated / direct`` while " +"parsing, where ``direct`` is the number of bytes read from the primary " +"document in parsing and ``allocated`` is the number of bytes of dynamic " +"memory allocated in the parser hierarchy." +msgstr "" + +msgid "" +"The *max_factor* value must be a non-NaN :class:`float` value greater than " +"or equal to 1.0. Amplification factors greater than 100.0 can be observed " +"near the start of parsing even with benign files in practice. In particular, " +"the activation threshold should be carefully chosen to avoid false positives." +msgstr "" + +msgid "" +"The maximum amplification factor is only considered if the threshold that " +"can be adjusted by :meth:`.SetAllocTrackerActivationThreshold` is exceeded." +msgstr "" + +msgid ":class:`xmlparser` objects have the following attributes:" +msgstr "" + +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." +msgstr "" + +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 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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Setting this attribute to a non-zero integer causes the attributes to be " +"reported as a list rather than a dictionary. The attributes are presented " +"in the order found in the document text. For each attribute, two list " +"entries are presented: the attribute name and the attribute value. (Older " +"versions of this module also used this format.) By default, this attribute " +"is false; it may be changed at any time." +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 " +"time." +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." +msgstr "" + +msgid "Byte index at which an error occurred." +msgstr "" + +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." +msgstr "" + +msgid "Column number at which an error occurred." +msgstr "" + +msgid "Line number at which an error occurred." +msgstr "" + +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 " +"whether there was an associated callback)." +msgstr "" + +msgid "Current byte index in the parser input." +msgstr "" + +msgid "Current column number in the parser input." +msgstr "" + +msgid "Current line number in the parser input." +msgstr "" + +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 accepting the correct number of arguments. The arguments " +"are all strings, unless otherwise stated." +msgstr "" + +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." +msgstr "" + +msgid "" +"Called when Expat begins parsing the document type declaration (``'``." +msgstr "" + +msgid "" +"Called at the start of a CDATA section. This " +"and :attr:`EndCdataSectionHandler` are needed to be able to identify the " +"syntactical start and end for CDATA sections." +msgstr "" + +msgid "Called at the end of a CDATA section." +msgstr "" + +msgid "" +"Called for any characters in the XML document for which no applicable " +"handler has been specified. This means characters that are part of a " +"construct which could be reported, but for which no handler has been " +"supplied." +msgstr "" + +msgid "" +"This is the same as the :func:`DefaultHandler`, but doesn't inhibit " +"expansion of internal entities. The entity reference will not be passed to " +"the default handler." +msgstr "" + +msgid "" +"Called if the XML document hasn't been declared as being a standalone " +"document. This happens when there is an external subset or a reference to a " +"parameter entity, but the XML declaration does not set standalone to ``yes`` " +"in an XML declaration. If this handler returns ``0``, then the parser will " +"raise an :const:`XML_ERROR_NOT_STANDALONE` error. If this handler is not " +"set, no exception is raised by the parser for this condition." +msgstr "" + +msgid "" +"Called for references to external entities. *base* is the current base, as " +"set by a previous call to :meth:`SetBase`. The public and system " +"identifiers, *systemId* and *publicId*, are strings if given; if the public " +"identifier is not given, *publicId* will be ``None``. The *context* value " +"is opaque and should only be used as described below." +msgstr "" + +msgid "" +"For external entities to be parsed, this handler must be implemented. It is " +"responsible for creating the sub-parser using " +"``ExternalEntityParserCreate(context)``, initializing it with the " +"appropriate callbacks, and parsing the entity. This handler should return " +"an integer; if it returns ``0``, the parser will raise " +"an :const:`XML_ERROR_EXTERNAL_ENTITY_HANDLING` error, otherwise parsing will " +"continue." +msgstr "" + +msgid "" +"If this handler is not provided, external entities are reported by " +"the :attr:`DefaultHandler` callback, if provided." +msgstr "" + +msgid "ExpatError Exceptions" +msgstr "" + +msgid ":exc:`ExpatError` exceptions have a number of interesting attributes:" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The :mod:`~xml.parsers.expat.errors` module also provides error message " +"constants and a dictionary :data:`~xml.parsers.expat.errors.codes` mapping " +"these messages back to the error codes, see below." +msgstr "" + +msgid "" +"Line number on which the error was detected. The first line is numbered " +"``1``." +msgstr "" + +msgid "" +"Character offset into the line where the error occurred. The first column " +"is numbered ``0``." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid "" +"The following program defines three handlers that just print out their " +"arguments. ::" +msgstr "" + +msgid "The output from this program is::" +msgstr "" + +msgid "Content Model Descriptions" +msgstr "" + +msgid "" +"Content models are described using nested tuples. Each tuple contains four " +"values: the type, the quantifier, the name, and a tuple of children. " +"Children are simply additional content model descriptions." +msgstr "" + +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." +msgstr "" + +msgid "The constants in the model type group are:" +msgstr "" + +msgid "" +"The element named by the model name was declared to have a content model of " +"``ANY``." +msgstr "" + +msgid "" +"The named element allows a choice from a number of options; this is used for " +"content models such as ``(A | B | C)``." +msgstr "" + +msgid "Elements which are declared to be ``EMPTY`` have this model type." +msgstr "" + +msgid "" +"Models which represent a series of models which follow one after the other " +"are indicated with this model type. This is used for models such as ``(A, " +"B, C)``." +msgstr "" + +msgid "The constants in the quantifier group are:" +msgstr "" + +msgid "No modifier is given, so it can appear exactly once, as for ``A``." +msgstr "" + +msgid "The model is optional: it can appear once or not at all, as for ``A?``." +msgstr "" + +msgid "The model must occur one or more times (like ``A+``)." +msgstr "" + +msgid "The model must occur zero or more times, as for ``A*``." +msgstr "" + +msgid "Expat error constants" +msgstr "" + +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}]`." +msgstr "" + +msgid "The ``errors`` module has the following attributes:" +msgstr "" + +msgid "A dictionary mapping string descriptions to their error codes." +msgstr "" + +msgid "A dictionary mapping numeric error codes to their string descriptions." +msgstr "" + +msgid "" +"An entity reference in an attribute value referred to an external entity " +"instead of an internal entity." +msgstr "" + +msgid "" +"A character reference referred to a character which is illegal in XML (for " +"example, character ``0``, or '``�``')." +msgstr "" + +msgid "" +"An entity reference referred to an entity which was declared with a " +"notation, so cannot be parsed." +msgstr "" + +msgid "An attribute was used more than once in a start tag." +msgstr "" + +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." +msgstr "" + +msgid "Something other than whitespace occurred after the document element." +msgstr "" + +msgid "" +"An XML declaration was found somewhere other than the start of the input " +"data." +msgstr "" + +msgid "" +"The document contains no elements (XML requires all documents to contain " +"exactly one top-level element).." +msgstr "" + +msgid "Expat was not able to allocate memory internally." +msgstr "" + +msgid "A parameter entity reference was found where it was not allowed." +msgstr "" + +msgid "An incomplete character was found in the input." +msgstr "" + +msgid "" +"An entity reference contained another reference to the same entity; possibly " +"via a different name, and possibly indirectly." +msgstr "" + +msgid "Some unspecified syntax error was encountered." +msgstr "" + +msgid "An end tag did not match the innermost open start tag." +msgstr "" + +msgid "" +"Some token (such as a start tag) was not closed before the end of the stream " +"or the next token was encountered." +msgstr "" + +msgid "A reference was made to an entity which was not defined." +msgstr "" + +msgid "The document encoding is not supported by Expat." +msgstr "" + +msgid "A CDATA marked section was not closed." +msgstr "" + +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``." +msgstr "" + +msgid "" +"An operation was requested that requires DTD support to be compiled in, but " +"Expat was configured without DTD support. This should never be reported by " +"a standard build of the :mod:`xml.parsers.expat` module." +msgstr "" + +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`." +msgstr "" + +msgid "An undeclared prefix was found when namespace processing was enabled." +msgstr "" + +msgid "" +"The document attempted to remove the namespace declaration associated with a " +"prefix." +msgstr "" + +msgid "A parameter entity contained incomplete markup." +msgstr "" + +msgid "The document contained no document element at all." +msgstr "" + +msgid "There was an error parsing a text declaration in an external entity." +msgstr "" + +msgid "Characters were found in the public id that are not allowed." +msgstr "" + +msgid "" +"The requested operation was made on a suspended parser, but isn't allowed. " +"This includes attempts to provide additional input or to stop the parser." +msgstr "" + +msgid "" +"An attempt to resume the parser was made when the parser had not been " +"suspended." +msgstr "" + +msgid "This should not be reported to Python applications." +msgstr "" + +msgid "" +"The requested operation was made on a parser which was finished parsing " +"input, but isn't allowed. This includes attempts to provide additional " +"input or to stop the parser." +msgstr "" + +msgid "Footnotes" +msgstr "Przypisy" + +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." +msgstr "" diff --git a/library/queue.po b/library/queue.po new file mode 100644 index 0000000000..48e108903a --- /dev/null +++ b/library/queue.po @@ -0,0 +1,266 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`queue` --- A synchronized queue class" +msgstr "" + +msgid "**Source code:** :source:`Lib/queue.py`" +msgstr "**Kod źródłowy:** :source:`Lib/queue.py`" + +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." +msgstr "" + +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 " +"retrieved first." +msgstr "" + +msgid "" +"Internally, those three types of queues use locks to temporarily block " +"competing threads; however, they are not designed to handle reentrancy " +"within a thread." +msgstr "" + +msgid "" +"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 "" + +msgid "The :mod:`queue` module defines the following classes and exceptions:" +msgstr "" + +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 " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Constructor for a priority 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." +msgstr "" + +msgid "" +"The lowest valued entries are retrieved first (the lowest valued entry is " +"the one that would be returned by ``min(entries)``). A typical pattern for " +"entries is a tuple in the form: ``(priority_number, data)``." +msgstr "" + +msgid "" +"If the *data* elements are not comparable, the data can be wrapped in a " +"class that ignores the data item and only compares the priority number::" +msgstr "" + +msgid "" +"Constructor for an unbounded :abbr:`FIFO (first-in, first-out)` queue. " +"Simple queues lack advanced functionality such as task tracking." +msgstr "" + +msgid "" +"Exception raised when non-blocking :meth:`~Queue.get` " +"(or :meth:`~Queue.get_nowait`) is called on a :class:`Queue` object which is " +"empty." +msgstr "" + +msgid "" +"Exception raised when non-blocking :meth:`~Queue.put` " +"(or :meth:`~Queue.put_nowait`) is called on a :class:`Queue` object which is " +"full." +msgstr "" + +msgid "Queue Objects" +msgstr "" + +msgid "" +"Queue objects (:class:`Queue`, :class:`LifoQueue`, " +"or :class:`PriorityQueue`) provide the public methods described below." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return ``True`` if the queue is empty, ``False`` otherwise. If empty() " +"returns ``True`` it doesn't guarantee that a subsequent call to put() will " +"not block. Similarly, if empty() returns ``False`` it doesn't guarantee " +"that a subsequent call to get() will not block." +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." +msgstr "" + +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. 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)." +msgstr "" + +msgid "Equivalent to ``put(item, block=False)``." +msgstr "" + +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* " +"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 " +"ignored in that case)." +msgstr "" + +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`." +msgstr "" + +msgid "Equivalent to ``get(False)``." +msgstr "" + +msgid "" +"Two methods are offered to support tracking whether enqueued tasks have been " +"fully processed by daemon consumer threads." +msgstr "" + +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." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Raises a :exc:`ValueError` if called more times than there were items placed " +"in the queue." +msgstr "" + +msgid "Blocks until all items in the queue have been gotten and processed." +msgstr "" + +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." +msgstr "" + +msgid "Example of how to wait for enqueued tasks to be completed::" +msgstr "" + +msgid "SimpleQueue Objects" +msgstr "" + +msgid "" +":class:`SimpleQueue` objects provide the public methods described below." +msgstr "" + +msgid "" +"Return the approximate size of the queue. Note, qsize() > 0 doesn't " +"guarantee that a subsequent get() will not block." +msgstr "" + +msgid "" +"Return ``True`` if the queue is empty, ``False`` otherwise. If empty() " +"returns ``False`` it doesn't guarantee that a subsequent call to get() will " +"not block." +msgstr "" + +msgid "" +"Put *item* into the queue. The method never blocks and always succeeds " +"(except for potential low-level errors such as failure to allocate memory). " +"The optional args *block* and *timeout* are ignored and only provided for " +"compatibility with :meth:`Queue.put`." +msgstr "" + +msgid "" +"This method has a C implementation which is reentrant. That is, a ``put()`` " +"or ``get()`` call can be interrupted by another ``put()`` call in the same " +"thread without deadlocking or corrupting internal state inside the queue. " +"This makes it appropriate for use in destructors such as ``__del__`` methods " +"or :mod:`weakref` callbacks." +msgstr "" + +msgid "" +"Equivalent to ``put(item, block=False)``, provided for compatibility " +"with :meth:`Queue.put_nowait`." +msgstr "" + +msgid "Class :class:`multiprocessing.Queue`" +msgstr "" + +msgid "" +"A queue class for use in a multi-processing (rather than multi-threading) " +"context." +msgstr "" + +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 and also support indexing." +msgstr "" diff --git a/library/random.po b/library/random.po index 067dd3b941..a9c8a79994 100644 --- a/library/random.po +++ b/library/random.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:12+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`random` --- Generate pseudo-random numbers" msgstr "" msgid "**Source code:** :source:`Lib/random.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/random.py`" msgid "" "This module implements pseudo-random number generators for various " @@ -66,11 +66,11 @@ msgstr "" 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 "" msgid "" @@ -113,9 +113,9 @@ msgid "If *a* is an int, it is used directly." msgstr "" 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 "" msgid "" @@ -129,8 +129,9 @@ msgid "" msgstr "" msgid "" -"The *seed* must be one of the following types: *NoneType*, :class:`int`, :" -"class:`float`, :class:`str`, :class:`bytes`, or :class:`bytearray`." +"In the future, the *seed* must be one of the following types: " +"*NoneType*, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, " +"or :class:`bytearray`." msgstr "" msgid "" @@ -151,8 +152,8 @@ msgid "Generate *n* random bytes." msgstr "" msgid "" -"This method should not be used for generating security tokens. Use :func:" -"`secrets.token_bytes` instead." +"This method should not be used for generating security tokens. " +"Use :func:`secrets.token_bytes` instead." msgstr "" msgid "Functions for integers" @@ -184,8 +185,8 @@ msgstr "" msgid "" "The exception raised for non-integral values such as ``randrange(10.5)`` or " -"``randrange('10')`` will be changed from :exc:`ValueError` to :exc:" -"`TypeError`." +"``randrange('10')`` will be changed from :exc:`ValueError` " +"to :exc:`TypeError`." msgstr "" msgid "" @@ -196,8 +197,9 @@ msgstr "" msgid "" "Returns a non-negative 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." +"also provide it as an optional part of the API. When " +"available, :meth:`getrandbits` enables :meth:`randrange` to handle " +"arbitrarily large ranges." msgstr "" msgid "This method now accepts zero for *k*." @@ -243,11 +245,11 @@ msgstr "" 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 "" msgid "Raises a :exc:`ValueError` if all weights are zero." @@ -256,6 +258,11 @@ msgstr "" msgid "Shuffle the sequence *x* in place." msgstr "" +msgid "" +"The optional argument *random* is a 0-argument function returning a random " +"float in [0.0, 1.0); by default, this is the function :func:`.random`." +msgstr "" + msgid "" "To shuffle an immutable sequence and return a new shuffled list, use " "``sample(x, k=len(x))`` instead." @@ -274,7 +281,7 @@ msgstr "" msgid "" "Return a *k* length list of unique elements chosen from the population " -"sequence. Used for random sampling without replacement." +"sequence or set. Used for random sampling without replacement." msgstr "" msgid "" @@ -313,8 +320,10 @@ msgid "Added the *counts* parameter." msgstr "" msgid "" -"The *population* must be a sequence. Automatic conversion of sets to lists " -"is no longer supported." +"In the future, the *population* must be a sequence. Instances " +"of :class:`set` are no longer supported. The set must first be converted to " +"a :class:`list` or :class:`tuple`, preferably in a deterministic order so " +"that the sample is reproducible." msgstr "" msgid "Real-valued distributions" @@ -382,9 +391,6 @@ msgid "" "but thread-safe :func:`normalvariate` function instead." msgstr "" -msgid "*mu* and *sigma* now have default arguments." -msgstr "" - msgid "" "Log normal distribution. If you take the natural logarithm of this " "distribution, you'll get a normal distribution with mean *mu* and standard " @@ -421,9 +427,9 @@ msgid "" msgstr "" msgid "" -"In the future, the *seed* must be one of the following types: :class:" -"`NoneType`, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, or :" -"class:`bytearray`." +"In the future, the *seed* must be one of the following " +"types: :class:`NoneType`, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, " +"or :class:`bytearray`." msgstr "" msgid "" @@ -431,8 +437,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 "" msgid "Notes on Reproducibility" @@ -467,7 +473,7 @@ msgid "Basic examples::" msgstr "" msgid "Simulations::" -msgstr "" +msgstr "Symulacje::" msgid "" "Example of `statistical bootstrapping `_ 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 "" msgid "Recipes" msgstr "" -msgid "" -"These recipes show how to efficiently make random selections from the " -"combinatoric iterators in the :mod:`itertools` module:" -msgstr "" - msgid "" "The default :func:`.random` returns multiples of 2⁻⁵³ in the range *0.0 ≤ x " "< 1.0*. All such numbers are evenly spaced and are exactly representable as " @@ -549,6 +550,6 @@ msgstr "" msgid "" "`Generating Pseudo-random Floating-Point Values `_ a paper by Allen B. Downey describing " -"ways to generate more fine-grained floats than normally generated by :func:`." -"random`." +"ways to generate more fine-grained floats than normally generated " +"by :func:`.random`." msgstr "" diff --git a/library/re.po b/library/re.po index 8e3c53b335..ac9d411b4a 100644 --- a/library/re.po +++ b/library/re.po @@ -1,34 +1,32 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 -# Igor Zubrycki , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:12+0000\n" -"Last-Translator: Igor Zubrycki , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`re` --- Regular expression operations" msgstr "" -msgid "**Source code:** :source:`Lib/re/`" +msgid "**Source code:** :source:`Lib/re.py`" msgstr "" msgid "" @@ -37,11 +35,11 @@ msgid "" msgstr "" 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 " +"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 "" @@ -126,19 +124,18 @@ msgid "" msgstr "" msgid "" -"Repetition operators or quantifiers (``*``, ``+``, ``?``, ``{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 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." msgstr "" msgid "The special characters are:" msgstr "" msgid "``.``" -msgstr "" +msgstr "``.``" msgid "" "(Dot.) In the default mode, this matches any character except a newline. " @@ -147,7 +144,7 @@ msgid "" msgstr "" msgid "``^``" -msgstr "" +msgstr "``^``" msgid "" "(Caret.) Matches the start of the string, and in :const:`MULTILINE` mode " @@ -155,21 +152,21 @@ msgid "" msgstr "" msgid "``$``" -msgstr "" +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 "" msgid "``*``" -msgstr "" +msgstr "``*``" msgid "" "Causes the resulting RE to match 0 or more repetitions of the preceding RE, " @@ -178,7 +175,7 @@ msgid "" msgstr "" msgid "``+``" -msgstr "" +msgstr "``+``" msgid "" "Causes the resulting RE to match 1 or more repetitions of the preceding RE. " @@ -187,7 +184,7 @@ msgid "" msgstr "" msgid "``?``" -msgstr "" +msgstr "``?``" msgid "" "Causes the resulting RE to match 0 or 1 repetitions of the preceding RE. " @@ -195,39 +192,20 @@ msgid "" msgstr "" msgid "``*?``, ``+?``, ``??``" -msgstr "" +msgstr "``*?``, ``+?``, ``??``" msgid "" -"The ``'*'``, ``'+'``, and ``'?'`` quantifiers are all :dfn:`greedy`; they " +"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 quantifier makes it " +"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 ``''``." msgstr "" -msgid "``*+``, ``++``, ``?+``" -msgstr "" - -msgid "" -"Like the ``'*'``, ``'+'``, and ``'?'`` quantifiers, those where ``'+'`` is " -"appended also match as many times as possible. However, unlike the true " -"greedy quantifiers, these do not allow back-tracking when the expression " -"following it fails to match. These are known as :dfn:`possessive` " -"quantifiers. For example, ``a*a`` will match ``'aaaa'`` because the ``a*`` " -"will match all 4 ``'a'``\\ s, but, when the final ``'a'`` is encountered, " -"the expression is backtracked so that in the end the ``a*`` ends up matching " -"3 ``'a'``\\ s total, and the fourth ``'a'`` is matched by the final ``'a'``. " -"However, when ``a*+a`` is used to match ``'aaaa'``, the ``a*+`` will match " -"all 4 ``'a'``, but when the final ``'a'`` fails to find any more characters " -"to match, the expression cannot be backtracked and will thus fail to match. " -"``x*+``, ``x++`` and ``x?+`` are equivalent to ``(?>x*)``, ``(?>x+)`` and " -"``(?>x?)`` correspondingly." -msgstr "" - msgid "``{m}``" -msgstr "" +msgstr "``{m}``" msgid "" "Specifies that exactly *m* copies of the previous RE should be matched; " @@ -236,7 +214,7 @@ msgid "" msgstr "" msgid "``{m,n}``" -msgstr "" +msgstr "``{m,n}``" msgid "" "Causes the resulting RE to match from *m* to *n* repetitions of the " @@ -250,33 +228,18 @@ msgid "" msgstr "" msgid "``{m,n}?``" -msgstr "" +msgstr "``{m,n}?``" 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 quantifier. For example, on the 6-" +"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 "" -msgid "``{m,n}+``" -msgstr "" - -msgid "" -"Causes the resulting RE to match from *m* to *n* repetitions of the " -"preceding RE, attempting to match as many repetitions as possible *without* " -"establishing any backtracking points. This is the possessive version of the " -"quantifier above. For example, on the 6-character string ``'aaaaaa'``, " -"``a{3,5}+aa`` attempt to match 5 ``'a'`` characters, then, requiring 2 more " -"``'a'``\\ s, will need more characters than available and thus fail, while " -"``a{3,5}aa`` will match with ``a{3,5}`` capturing 5, then 4 ``'a'``\\ s by " -"backtracking and then the final 2 ``'a'``\\ s are matched by the final " -"``aa`` in the pattern. ``x{m,n}+`` is equivalent to ``(?>x{m,n})``." -msgstr "" - msgid "``\\``" -msgstr "" +msgstr "``\\``" msgid "" "Either escapes special characters (permitting you to match characters like " @@ -295,7 +258,7 @@ msgid "" msgstr "" msgid "``[]``" -msgstr "" +msgstr "``[]``" msgid "Used to indicate a set of characters. In a set:" msgstr "" @@ -327,18 +290,19 @@ msgid "" msgstr "" 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 " -"any character except ``'^'``. ``^`` has no special meaning if it's not the " -"first character in the set." +"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 "" msgid "" "To match a literal ``']'`` inside a set, precede it with a backslash, or " "place it at the beginning of the set. For example, both ``[()[\\]{}]`` and " -"``[]()[{}]`` will both match a parenthesis." +"``[]()[{}]`` will match a right bracket, as well as left bracket, braces, " +"and parentheses." msgstr "" msgid "" @@ -356,7 +320,7 @@ msgid "" msgstr "" msgid "``|``" -msgstr "" +msgstr "``|``" msgid "" "``A|B``, where *A* and *B* can be arbitrary REs, creates a regular " @@ -371,7 +335,7 @@ msgid "" msgstr "" msgid "``(...)``" -msgstr "" +msgstr "``(...)``" msgid "" "Matches whatever regular expression is inside the parentheses, and indicates " @@ -383,7 +347,7 @@ msgid "" msgstr "" msgid "``(?...)``" -msgstr "" +msgstr "``(?...)``" msgid "" "This is an extension notation (a ``'?'`` following a ``'('`` is not " @@ -394,26 +358,24 @@ msgid "" msgstr "" msgid "``(?aiLmsux)``" -msgstr "" +msgstr "``(?aiLmsux)``" 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." -msgstr "" - -msgid "This construction can only be used at the start of the expression." +"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 "" msgid "``(?:...)``" -msgstr "" +msgstr "``(?:...)``" msgid "" "A non-capturing version of regular parentheses. Matches whatever regular " @@ -423,17 +385,18 @@ msgid "" msgstr "" msgid "``(?aiLmsux-imsx:...)``" -msgstr "" +msgstr "``(?aiLmsux-imsx:...)``" 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`.)" +"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 "" msgid "" @@ -451,24 +414,8 @@ msgstr "" msgid "The letters ``'a'``, ``'L'`` and ``'u'`` also can be used in a group." msgstr "" -msgid "``(?>...)``" -msgstr "" - -msgid "" -"Attempts to match ``...`` as if it was a separate regular expression, and if " -"successful, continues to match the rest of the pattern following it. If the " -"subsequent pattern fails to match, the stack can only be unwound to a point " -"*before* the ``(?>...)`` because once exited, the expression, known as an :" -"dfn:`atomic group`, has thrown away all stack points within itself. Thus, " -"``(?>.*).`` would never match anything because first the ``.*`` would match " -"all characters possible, then, having nothing left to match, the final ``.`` " -"would fail to match. Since there are no stack points saved in the Atomic " -"Group, and there is no stack point before it, the entire expression would " -"thus fail to match." -msgstr "" - msgid "``(?P...)``" -msgstr "" +msgstr "``(?P...)``" msgid "" "Similar to regular parentheses, but the substring matched by the group is " @@ -497,7 +444,7 @@ msgid "``(?P=quote)`` (as shown)" msgstr "" msgid "``\\1``" -msgstr "" +msgstr "``\\1``" msgid "when processing match object *m*" msgstr "" @@ -506,19 +453,16 @@ msgid "``m.group('quote')``" msgstr "" msgid "``m.end('quote')`` (etc.)" -msgstr "" +msgstr "``m.end('quote')`` (etc.)" msgid "in a string passed to the *repl* argument of ``re.sub()``" msgstr "" msgid "``\\g``" -msgstr "" +msgstr "``\\g``" msgid "``\\g<1>``" -msgstr "" - -msgid "Group names containing non-ASCII characters in bytes patterns." -msgstr "" +msgstr "``\\g<1>``" msgid "``(?P=name)``" msgstr "" @@ -529,13 +473,13 @@ msgid "" msgstr "" msgid "``(?#...)``" -msgstr "" +msgstr "``(?#...)``" msgid "A comment; the contents of the parentheses are simply ignored." msgstr "" msgid "``(?=...)``" -msgstr "" +msgstr "``(?=...)``" msgid "" "Matches if ``...`` matches next, but doesn't consume any of the string. " @@ -553,7 +497,7 @@ msgid "" msgstr "" msgid "``(?<=...)``" -msgstr "" +msgstr "``(?<=...)``" msgid "" "Matches if the current position in the string is preceded by a match for " @@ -564,8 +508,8 @@ msgid "" "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:" +"will most likely want to use the :func:`search` function rather than " +"the :func:`match` function:" msgstr "" msgid "This example looks for a word following a hyphen:" @@ -575,7 +519,7 @@ msgid "Added support for group references of fixed length." msgstr "" msgid "``(?'``." msgstr "" -msgid "Group *id* containing anything except ASCII digits." -msgstr "" - 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, " @@ -622,13 +563,13 @@ msgid "" msgstr "" msgid "``\\A``" -msgstr "" +msgstr "``\\A``" msgid "Matches only at the start of the string." msgstr "" msgid "``\\b``" -msgstr "" +msgstr "``\\b``" msgid "" "Matches the empty string, but only at the beginning or end of a word. A word " @@ -648,20 +589,20 @@ msgid "" msgstr "" msgid "``\\B``" -msgstr "" +msgstr "``\\B``" msgid "" "Matches the empty string, but only when it is *not* at the beginning or end " "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 "" msgid "``\\d``" -msgstr "" +msgstr "``\\d``" msgid "For Unicode (str) patterns:" msgstr "" @@ -680,7 +621,7 @@ msgid "Matches any decimal digit; this is equivalent to ``[0-9]``." msgstr "" msgid "``\\D``" -msgstr "" +msgstr "``\\D``" msgid "" "Matches any character which is not a decimal digit. This is the opposite of " @@ -689,13 +630,13 @@ msgid "" msgstr "" msgid "``\\s``" -msgstr "" +msgstr "``\\s``" 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 "" msgid "" @@ -704,7 +645,7 @@ msgid "" msgstr "" msgid "``\\S``" -msgstr "" +msgstr "``\\S``" msgid "" "Matches any character which is not a whitespace character. This is the " @@ -713,11 +654,11 @@ msgid "" msgstr "" msgid "``\\w``" -msgstr "" +msgstr "``\\w``" msgid "" -"Matches Unicode word characters; this includes most characters that can be " -"part of a word in any language, as well as numbers and the underscore. If " +"Matches Unicode word characters; this includes alphanumeric characters (as " +"defined by :meth:`str.isalnum`) as well as the underscore (``_``). If " "the :const:`ASCII` flag is used, only ``[a-zA-Z0-9_]`` is matched." msgstr "" @@ -729,7 +670,7 @@ msgid "" msgstr "" msgid "``\\W``" -msgstr "" +msgstr "``\\W``" msgid "" "Matches any character which is not a word character. This is the opposite of " @@ -739,7 +680,7 @@ msgid "" msgstr "" msgid "``\\Z``" -msgstr "" +msgstr "``\\Z``" msgid "Matches only at the end of the string." msgstr "" @@ -798,16 +739,9 @@ msgid "" msgstr "" msgid "" -"An :class:`enum.IntFlag` class containing the regex options listed below." -msgstr "" - -msgid "- added to ``__all__``" -msgstr "" - -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 "" @@ -836,9 +770,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 "" @@ -873,13 +807,6 @@ msgid "" "the end of the string. Corresponds to the inline flag ``(?m)``." msgstr "" -msgid "" -"Indicates no flag being applied, the value is ``0``. This flag may be used " -"as a default value for a function keyword argument or as a base value that " -"will be conditionally ORed with other flags. Example of use as a default " -"value::" -msgstr "" - msgid "" "Make the ``'.'`` special character match any character at all, including a " "newline; without this flag, ``'.'`` will match anything *except* a newline. " @@ -911,8 +838,9 @@ msgstr "Zadania" 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 "" msgid "" @@ -934,18 +862,18 @@ msgid "" msgstr "" 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 "" 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 " -"string matches the pattern; note that this is different from finding a zero-" -"length match at some point in the string." +"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 "" msgid "" @@ -1033,11 +961,11 @@ msgid "" "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 " +"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. " +"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 "" @@ -1061,11 +989,11 @@ msgstr "" 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 " +"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 "" @@ -1088,11 +1016,6 @@ msgid "" "empty match." msgstr "" -msgid "" -"Group *id* containing anything except ASCII digits. Group names containing " -"non-ASCII characters in bytes replacement strings." -msgstr "" - msgid "" "Perform the same operation as :func:`sub`, but return a tuple ``(new_string, " "number_of_subs_made)``." @@ -1192,13 +1115,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -1230,9 +1153,9 @@ msgid "Identical to the :func:`subn` function, using the compiled pattern." msgstr "" 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 "" msgid "The number of capturing groups in the pattern." @@ -1256,9 +1179,10 @@ msgid "Match Objects" msgstr "" 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 "" msgid "Match objects support the following methods and attributes:" @@ -1268,8 +1192,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 "" msgid "" @@ -1289,8 +1213,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 "" msgid "A moderately complicated example::" @@ -1307,9 +1231,6 @@ msgid "" "individual group from a match::" msgstr "" -msgid "Named groups are supported as well::" -msgstr "" - msgid "" "Return a tuple containing all the subgroups of the match, from 1 up to " "however many groups are in the pattern. The *default* argument is used for " @@ -1341,9 +1262,9 @@ msgstr "" 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 "" msgid "An example that will remove *remove_this* from email addresses::" @@ -1356,15 +1277,16 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -1381,8 +1303,9 @@ msgid "" msgstr "" 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 "" msgid "The string passed to :meth:`~Pattern.match` or :meth:`~Pattern.search`." @@ -1421,8 +1344,8 @@ msgid "" msgstr "" 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 "" msgid "Simulating scanf()" @@ -1430,9 +1353,9 @@ msgstr "" 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 " -"equivalent mappings between :c:func:`scanf` format tokens and regular " +"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 "" @@ -1443,55 +1366,55 @@ msgid "Regular Expression" msgstr "" msgid "``%c``" -msgstr "" +msgstr "``%c``" msgid "``%5c``" -msgstr "" +msgstr "``%5c``" msgid "``.{5}``" -msgstr "" +msgstr "``.{5}``" msgid "``%d``" -msgstr "" +msgstr "``%d``" msgid "``[-+]?\\d+``" -msgstr "" +msgstr "``[-+]?\\d+``" msgid "``%e``, ``%E``, ``%f``, ``%g``" -msgstr "" +msgstr "``%e``, ``%E``, ``%f``, ``%g``" msgid "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" -msgstr "" +msgstr "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" msgid "``%i``" -msgstr "" +msgstr "``%i``" msgid "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" -msgstr "" +msgstr "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" msgid "``%o``" -msgstr "" +msgstr "``%o``" msgid "``[-+]?[0-7]+``" -msgstr "" +msgstr "``[-+]?[0-7]+``" msgid "``%s``" -msgstr "" +msgstr "``%s``" msgid "``\\S+``" -msgstr "" +msgstr "``\\S+``" msgid "``%u``" -msgstr "" +msgstr "``%u``" msgid "``\\d+``" -msgstr "" +msgstr "``\\d+``" msgid "``%x``, ``%X``" -msgstr "" +msgstr "``%x``, ``%X``" msgid "``[-+]?(0[xX])?[\\dA-Fa-f]+``" -msgstr "" +msgstr "``[-+]?(0[xX])?[\\dA-Fa-f]+``" msgid "To extract the filename and numbers from a string like ::" msgstr "" @@ -1506,10 +1429,18 @@ msgid "search() vs. match()" msgstr "" msgid "" -"Python offers two different primitive operations based on regular " -"expressions: :func:`re.match` checks for a match only at the beginning of " -"the string, while :func:`re.search` checks for a match anywhere in the " -"string (this is what Perl does by default)." +"Python offers different primitive operations based on regular expressions:" +msgstr "" + +msgid ":func:`re.match` checks for a match only at the beginning of the string" +msgstr "" + +msgid "" +":func:`re.search` checks for a match anywhere in the string (this is what " +"Perl does by default)" +msgstr "" + +msgid ":func:`re.fullmatch` checks for entire string to be a match" msgstr "" msgid "" diff --git a/library/readline.po b/library/readline.po new file mode 100644 index 0000000000..04fa2260dd --- /dev/null +++ b/library/readline.po @@ -0,0 +1,301 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`readline` --- GNU readline interface" +msgstr "" + +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, " +"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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The configuration file for ``libedit`` is different from that of GNU " +"readline. If you programmatically load configuration strings you can check " +"for the text \"libedit\" in :const:`readline.__doc__` to differentiate " +"between GNU readline and libedit." +msgstr "" + +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* " +"keybindings and TAB completion::" +msgstr "" + +msgid "Init file" +msgstr "" + +msgid "The following functions relate to the init file and user configuration:" +msgstr "" + +msgid "" +"Execute the init line provided in the *string* argument. This " +"calls :c:func:`rl_parse_and_bind` in the underlying library." +msgstr "" + +msgid "" +"Execute a readline initialization file. The default filename is the last " +"filename used. This calls :c:func:`rl_read_init_file` in the underlying " +"library." +msgstr "" + +msgid "Line buffer" +msgstr "" + +msgid "The following functions operate on the line buffer:" +msgstr "" + +msgid "" +"Return the current contents of the line buffer (:c:data:`rl_line_buffer` in " +"the underlying library)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "History file" +msgstr "" + +msgid "The following functions operate on a history file:" +msgstr "" + +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 " +"underlying library." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "History list" +msgstr "" + +msgid "The following functions operate on a global history list:" +msgstr "" + +msgid "" +"Clear the current history. This calls :c:func:`clear_history` in the " +"underlying library. The Python function only exists if Python was compiled " +"for a version of the library that supports it." +msgstr "" + +msgid "" +"Return the number of items currently in the history. (This is different " +"from :func:`get_history_length`, which returns the maximum number of lines " +"that will be written to a history file.)" +msgstr "" + +msgid "" +"Return the current contents of history item at *index*. The item index is " +"one-based. This calls :c:func:`history_get` in the underlying library." +msgstr "" + +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 " +"library." +msgstr "" + +msgid "" +"Replace history item specified by its position with *line*. The position is " +"zero-based. This calls :c:func:`replace_history_entry` in the underlying " +"library." +msgstr "" + +msgid "" +"Append *line* to the history buffer, as if it was the last line typed. This " +"calls :c:func:`add_history` in the underlying library." +msgstr "" + +msgid "" +"Enable or disable automatic calls to :c:func:`add_history` when reading " +"input via readline. The *enabled* argument should be a Boolean value that " +"when true, enables auto history, and that when false, disables auto history." +msgstr "" + +msgid "" +"Auto history is enabled by default, and changes to this do not persist " +"across multiple sessions." +msgstr "" + +msgid "Startup hooks" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Set or remove the function invoked by the :c:data:`rl_pre_input_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 after the first " +"prompt has been printed and just before readline starts reading input " +"characters. This function only exists if Python was compiled for a version " +"of the library that supports it." +msgstr "" + +msgid "Completion" +msgstr "" + +msgid "" +"The following functions relate to implementing a custom word completion " +"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." +msgstr "" + +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*." +msgstr "" + +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." +msgstr "" + +msgid "" +"Get the completer function, or ``None`` if no completer function has been " +"set." +msgstr "" + +msgid "" +"Get the type of completion being attempted. This returns " +"the :c:data:`rl_completion_type` variable in the underlying library as an " +"integer." +msgstr "" + +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. The values may be different in the same input editing scenario " +"based on the underlying C readline implementation. Ex: libedit is known to " +"behave differently than libreadline." +msgstr "" + +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 " +"functions access the :c:data:`rl_completer_word_break_characters` variable " +"in the underlying library." +msgstr "" + +msgid "" +"Set or remove the completion display function. If *function* is specified, " +"it will be used as the new completion display function; if omitted or " +"``None``, any completion display function already installed is removed. " +"This sets or clears the :c:data:`rl_completion_display_matches_hook` " +"callback in the underlying library. The completion display function is " +"called as ``function(substitution, [matches], longest_match_length)`` once " +"each time matches need to be displayed." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid "" +"The following example demonstrates how to use the :mod:`readline` module's " +"history reading and writing functions to automatically load and save a " +"history file named :file:`.python_history` from the user's home directory. " +"The code below would normally be executed automatically during interactive " +"sessions from the user's :envvar:`PYTHONSTARTUP` file. ::" +msgstr "" + +msgid "" +"This code is actually automatically run when Python is run " +"in :ref:`interactive mode ` (see :ref:`rlcompleter-config`)." +msgstr "" + +msgid "" +"The following example achieves the same goal but supports concurrent " +"interactive sessions, by only appending the new history. ::" +msgstr "" + +msgid "" +"The following example extends the :class:`code.InteractiveConsole` class to " +"support history save/restore. ::" +msgstr "" diff --git a/library/reprlib.po b/library/reprlib.po new file mode 100644 index 0000000000..a414b9f08b --- /dev/null +++ b/library/reprlib.po @@ -0,0 +1,140 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`reprlib` --- Alternate :func:`repr` implementation" +msgstr "" + +msgid "**Source code:** :source:`Lib/reprlib.py`" +msgstr "**Kod źródłowy:** :source:`Lib/reprlib.py`" + +msgid "" +"The :mod:`reprlib` module provides a means for producing object " +"representations with limits on the size of the resulting strings. This is " +"used in the Python debugger and may be useful in other contexts as well." +msgstr "" + +msgid "This module provides a class, an instance, and a function:" +msgstr "" + +msgid "" +"Class which provides formatting services useful in implementing functions " +"similar to the built-in :func:`repr`; size limits for different object " +"types are added to avoid the generation of representations which are " +"excessively long." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Decorator for :meth:`__repr__` methods to detect recursive calls within the " +"same thread. If a recursive call is made, the *fillvalue* is returned, " +"otherwise, the usual :meth:`__repr__` call is made. For example:" +msgstr "" + +msgid "Repr Objects" +msgstr "" + +msgid "" +":class:`Repr` instances provide several attributes which can be used to " +"provide size limits for the representations of different object types, and " +"methods which format specific object types." +msgstr "" + +msgid "" +"Depth limit on the creation of recursive representations. The default is " +"``6``." +msgstr "" + +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." +msgstr "" + +msgid "" +"Maximum number of characters in the representation for an integer. Digits " +"are dropped from the middle. The default is ``40``." +msgstr "" + +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 " +"source: if escape sequences are needed in the representation, these may be " +"mangled when the representation is shortened. The default is ``30``." +msgstr "" + +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``." +msgstr "" + +msgid "" +"The equivalent to the built-in :func:`repr` that uses the formatting imposed " +"by the instance." +msgstr "" + +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 " +"formatting, with ``level - 1`` for the value of *level* in the recursive " +"call." +msgstr "" + +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)``." +msgstr "" + +msgid "Subclassing Repr Objects" +msgstr "" + +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 " +"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 new file mode 100644 index 0000000000..020d536396 --- /dev/null +++ b/library/resource.po @@ -0,0 +1,478 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`resource` --- Resource usage information" +msgstr "" + +msgid "" +"This module provides basic mechanisms for measuring and controlling system " +"resources utilized by a program." +msgstr "" + +msgid "" +"Symbolic constants are used to specify particular system resources and to " +"request usage information about either the current process or its children." +msgstr "" + +msgid "An :exc:`OSError` is raised on syscall failure." +msgstr "" + +msgid "A deprecated alias of :exc:`OSError`." +msgstr "" + +msgid "Following :pep:`3151`, this class was made an alias of :exc:`OSError`." +msgstr "" + +msgid "Resource Limits" +msgstr "" + +msgid "" +"Resources usage can be limited using the :func:`setrlimit` function " +"described below. Each resource is controlled by a pair of limits: a soft " +"limit and a hard limit. The soft limit is the current limit, and may be " +"lowered or raised by a process over time. The soft limit can never exceed " +"the hard limit. The hard limit can be lowered to any value greater than the " +"soft limit, but not raised. (Only processes with the effective UID of the " +"super-user can raise a hard limit.)" +msgstr "" + +msgid "" +"The specific resources that can be limited are system dependent. They are " +"described in the :manpage:`getrlimit(2)` man page. The resources listed " +"below are supported when the underlying operating system supports them; " +"resources which cannot be checked or controlled by the operating system are " +"not defined in this module for those platforms." +msgstr "" + +msgid "Constant used to represent the limit for an unlimited resource." +msgstr "" + +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." +msgstr "" + +msgid "" +"Sets new limits of consumption of *resource*. The *limits* argument must be " +"a tuple ``(soft, hard)`` of two integers describing the new limits. A value " +"of :data:`~resource.RLIM_INFINITY` can be used to request a limit that is " +"unlimited." +msgstr "" + +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." +msgstr "" + +msgid "" +"``setrlimit`` may also raise :exc:`error` if the underlying system call " +"fails." +msgstr "" + +msgid "VxWorks only supports setting :data:`RLIMIT_NOFILE`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``resource.setrlimit`` with " +"arguments ``resource``, ``limits``." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``resource.prlimit`` with " +"arguments ``pid``, ``resource``, ``limits``." +msgstr "" + +msgid "" +":ref:`Availability `: Linux 2.6.36 or later with glibc 2.13 or " +"later." +msgstr "" + +msgid "" +"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 "" + +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 " +"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." +msgstr "" + +msgid "" +"The maximum size (in bytes) of a core file that the current process can " +"create. This may result in the creation of a partial core file if a larger " +"core would be required to contain the entire process image." +msgstr "" + +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. " +"(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 "" + +msgid "The maximum size of a file which the process may create." +msgstr "" + +msgid "The maximum size (in bytes) of the process's heap." +msgstr "" + +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." +msgstr "" + +msgid "" +"The maximum resident set size that should be made available to the process." +msgstr "" + +msgid "The maximum number of processes the current process may create." +msgstr "" + +msgid "The maximum number of open file descriptors for the current process." +msgstr "" + +msgid "The BSD name for :const:`RLIMIT_NOFILE`." +msgstr "" + +msgid "The maximum address space which may be locked in memory." +msgstr "" + +msgid "The largest area of mapped memory which the process may occupy." +msgstr "" + +msgid "" +"The maximum area (in bytes) of address space which may be taken by the " +"process." +msgstr "" + +msgid "The number of bytes that can be allocated for POSIX message queues." +msgstr "" + +msgid ":ref:`Availability `: Linux 2.6.8 or later." +msgstr "" + +msgid "The ceiling for the process's nice level (calculated as 20 - rlim_cur)." +msgstr "" + +msgid ":ref:`Availability `: Linux 2.6.12 or later." +msgstr "" + +msgid "The ceiling of the real-time priority." +msgstr "" + +msgid "" +"The time limit (in microseconds) on CPU time that a process can spend under " +"real-time scheduling without making a blocking syscall." +msgstr "" + +msgid ":ref:`Availability `: Linux 2.6.25 or later." +msgstr "" + +msgid "The number of signals which the process may queue." +msgstr "" + +msgid "" +"The maximum size (in bytes) of socket buffer usage for this user. This " +"limits the amount of network memory, and hence the amount of mbufs, that " +"this user may hold at any time." +msgstr "" + +msgid ":ref:`Availability `: FreeBSD 9 or later." +msgstr "" + +msgid "" +"The maximum size (in bytes) of the swap space that may be reserved or used " +"by all of this user id's processes. This limit is enforced only if bit 1 of " +"the vm.overcommit sysctl is set. Please see `tuning(7) `__ for a complete " +"description of this sysctl." +msgstr "" + +msgid "The maximum number of pseudo-terminals created by this user id." +msgstr "" + +msgid "The maximum number of kqueues this user id is allowed to create." +msgstr "" + +msgid ":ref:`Availability `: FreeBSD 11 or later." +msgstr "" + +msgid "Resource Usage" +msgstr "" + +msgid "These functions are used to retrieve resource usage information:" +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." +msgstr "" + +msgid "A simple example::" +msgstr "" + +msgid "" +"The fields of the return value each describe how a particular system " +"resource has been used, e.g. amount of time spent running is user mode or " +"number of times the process was swapped out of main memory. Some values are " +"dependent on the clock tick internal, e.g. the amount of memory the process " +"is using." +msgstr "" + +msgid "" +"For backward compatibility, the return value is also accessible as a tuple " +"of 16 elements." +msgstr "" + +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:" +msgstr "" + +msgid "Index" +msgstr "Indeks" + +msgid "Field" +msgstr "Pole" + +msgid "Resource" +msgstr "" + +msgid "``0``" +msgstr "``0``" + +msgid ":attr:`ru_utime`" +msgstr ":attr:`ru_utime`" + +msgid "time in user mode (float seconds)" +msgstr "" + +msgid "``1``" +msgstr "``1``" + +msgid ":attr:`ru_stime`" +msgstr ":attr:`ru_stime`" + +msgid "time in system mode (float seconds)" +msgstr "" + +msgid "``2``" +msgstr "``2``" + +msgid ":attr:`ru_maxrss`" +msgstr ":attr:`ru_maxrss`" + +msgid "maximum resident set size" +msgstr "" + +msgid "``3``" +msgstr "``3``" + +msgid ":attr:`ru_ixrss`" +msgstr ":attr:`ru_ixrss`" + +msgid "shared memory size" +msgstr "" + +msgid "``4``" +msgstr "``4``" + +msgid ":attr:`ru_idrss`" +msgstr ":attr:`ru_idrss`" + +msgid "unshared memory size" +msgstr "" + +msgid "``5``" +msgstr "``5``" + +msgid ":attr:`ru_isrss`" +msgstr ":attr:`ru_isrss`" + +msgid "unshared stack size" +msgstr "" + +msgid "``6``" +msgstr "``6``" + +msgid ":attr:`ru_minflt`" +msgstr ":attr:`ru_minflt`" + +msgid "page faults not requiring I/O" +msgstr "" + +msgid "``7``" +msgstr "``7``" + +msgid ":attr:`ru_majflt`" +msgstr ":attr:`ru_majflt`" + +msgid "page faults requiring I/O" +msgstr "" + +msgid "``8``" +msgstr "``8``" + +msgid ":attr:`ru_nswap`" +msgstr ":attr:`ru_nswap`" + +msgid "number of swap outs" +msgstr "" + +msgid "``9``" +msgstr "``9``" + +msgid ":attr:`ru_inblock`" +msgstr ":attr:`ru_inblock`" + +msgid "block input operations" +msgstr "" + +msgid "``10``" +msgstr "``10``" + +msgid ":attr:`ru_oublock`" +msgstr ":attr:`ru_oublock`" + +msgid "block output operations" +msgstr "" + +msgid "``11``" +msgstr "``11``" + +msgid ":attr:`ru_msgsnd`" +msgstr ":attr:`ru_msgsnd`" + +msgid "messages sent" +msgstr "" + +msgid "``12``" +msgstr "``12``" + +msgid ":attr:`ru_msgrcv`" +msgstr ":attr:`ru_msgrcv`" + +msgid "messages received" +msgstr "" + +msgid "``13``" +msgstr "``13``" + +msgid ":attr:`ru_nsignals`" +msgstr ":attr:`ru_nsignals`" + +msgid "signals received" +msgstr "" + +msgid "``14``" +msgstr "``14``" + +msgid ":attr:`ru_nvcsw`" +msgstr ":attr:`ru_nvcsw`" + +msgid "voluntary context switches" +msgstr "" + +msgid "``15``" +msgstr "``15``" + +msgid ":attr:`ru_nivcsw`" +msgstr ":attr:`ru_nivcsw`" + +msgid "involuntary context switches" +msgstr "" + +msgid "" +"This function will raise a :exc:`ValueError` if an invalid *who* parameter " +"is specified. It may also raise :exc:`error` exception in unusual " +"circumstances." +msgstr "" + +msgid "" +"Returns the number of bytes in a system page. (This need not be the same as " +"the hardware page size.)" +msgstr "" + +msgid "" +"The following :const:`RUSAGE_\\*` symbols are passed to " +"the :func:`getrusage` function to specify which processes information should " +"be provided for." +msgstr "" + +msgid "" +"Pass to :func:`getrusage` to request resources consumed by the calling " +"process, which is the sum of resources used by all threads in the process." +msgstr "" + +msgid "" +"Pass to :func:`getrusage` to request resources consumed by child processes " +"of the calling process which have been terminated and waited for." +msgstr "" + +msgid "" +"Pass to :func:`getrusage` to request resources consumed by both the current " +"process and child processes. May not be available on all systems." +msgstr "" + +msgid "" +"Pass to :func:`getrusage` to request resources consumed by the current " +"thread. May not be available on all systems." +msgstr "" diff --git a/library/rlcompleter.po b/library/rlcompleter.po new file mode 100644 index 0000000000..5334d3b21e --- /dev/null +++ b/library/rlcompleter.po @@ -0,0 +1,83 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`rlcompleter` --- Completion function for GNU readline" +msgstr "" + +msgid "**Source code:** :source:`Lib/rlcompleter.py`" +msgstr "**Kod źródłowy:** :source:`Lib/rlcompleter.py`" + +msgid "" +"The :mod:`rlcompleter` module defines a completion function suitable for " +"the :mod:`readline` module by completing valid Python identifiers and " +"keywords." +msgstr "" + +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." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +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`)." +msgstr "" + +msgid "" +"On platforms without :mod:`readline`, the :class:`Completer` class defined " +"by this module can still be used for custom purposes." +msgstr "" + +msgid "Completer Objects" +msgstr "" + +msgid "Completer objects have the following method:" +msgstr "" + +msgid "Return the *state*\\ th completion for *text*." +msgstr "" + +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)." +msgstr "" + +msgid "" +"If called for a dotted name, it will try to evaluate anything without " +"obvious side-effects (functions will not be evaluated, but it can generate " +"calls to :meth:`__getattr__`) up to the last part, and find matches for the " +"rest via the :func:`dir` function. Any exception raised during the " +"evaluation of the expression is caught, silenced and :const:`None` is " +"returned." +msgstr "" diff --git a/library/runpy.po b/library/runpy.po new file mode 100644 index 0000000000..85e2498134 --- /dev/null +++ b/library/runpy.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`runpy` --- Locating and executing Python modules" +msgstr "" + +msgid "**Source code:** :source:`Lib/runpy.py`" +msgstr "**Kod źródłowy:** :source:`Lib/runpy.py`" + +msgid "" +"The :mod:`runpy` module is used to locate and run Python modules without " +"importing them first. Its main use is to implement the :option:`-m` command " +"line switch that allows scripts to be located using the Python module " +"namespace rather than the filesystem." +msgstr "" + +msgid "" +"Note that this is *not* a sandbox module - all code is executed in the " +"current process, and any side effects (such as cached imports of other " +"modules) will remain in place after the functions have returned." +msgstr "" + +msgid "" +"Furthermore, any functions and classes defined by the executed code are not " +"guaranteed to work correctly after a :mod:`runpy` function has returned. If " +"that limitation is not acceptable for a given use case, :mod:`importlib` is " +"likely to be a more suitable choice than this module." +msgstr "" + +msgid "The :mod:`runpy` module provides two functions:" +msgstr "" + +msgid "" +"Execute the code of the specified module and return the resulting module " +"globals dictionary. The module's code is first located using the standard " +"import mechanism (refer to :pep:`302` for details) and then executed in a " +"fresh module namespace." +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." +msgstr "" + +msgid "" +"The optional dictionary argument *init_globals* may be used to pre-populate " +"the module's globals dictionary before the code is executed. The supplied " +"dictionary will not be modified. If any of the special global variables " +"below are defined in the supplied dictionary, those definitions are " +"overridden by :func:`run_module`." +msgstr "" + +msgid "" +"The special global variables ``__name__``, ``__spec__``, ``__file__``, " +"``__cached__``, ``__loader__`` and ``__package__`` are set in the globals " +"dictionary before the module code is executed (Note that this is a minimal " +"set of variables - other variables may be set implicitly as an interpreter " +"implementation detail)." +msgstr "" + +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." +msgstr "" + +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*)." +msgstr "" + +msgid "" +"``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` " +"are :ref:`set as normal ` based on the module spec." +msgstr "" + +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." +msgstr "" + +msgid "" +"Note that this manipulation of :mod:`sys` is not thread-safe. Other threads " +"may see the partially initialised module, as well as the altered list of " +"arguments. It is recommended that the :mod:`sys` module be left alone when " +"invoking this function from threaded code." +msgstr "" + +msgid "" +"The :option:`-m` option offering equivalent functionality from the command " +"line." +msgstr "" + +msgid "" +"Added ability to execute packages by looking for a ``__main__`` submodule." +msgstr "" + +msgid "Added ``__cached__`` global variable (see :pep:`3147`)." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Execute the code at the named filesystem location and return the resulting " +"module globals dictionary. As with a script name supplied to the CPython " +"command line, the supplied path may refer to a Python source file, a " +"compiled bytecode file or a valid sys.path entry containing a ``__main__`` " +"module (e.g. a zipfile containing a top-level ``__main__.py`` file)." +msgstr "" + +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 module at the specified location." +msgstr "" + +msgid "" +"The optional dictionary argument *init_globals* may be used to pre-populate " +"the module's globals dictionary before the code is executed. The supplied " +"dictionary will not be modified. If any of the special global variables " +"below are defined in the supplied dictionary, those definitions are " +"overridden by :func:`run_path`." +msgstr "" + +msgid "" +"``__name__`` is set to *run_name* if this optional argument is " +"not :const:`None` and to ``''`` otherwise." +msgstr "" + +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 " +"path, and ``__spec__``, ``__cached__``, ``__loader__`` and ``__package__`` " +"will all be set to :const:`None`." +msgstr "" + +msgid "" +"If the supplied path is a reference to a valid sys.path entry, then " +"``__spec__`` will be set appropriately for the imported ``__main__`` module " +"(that is, ``__spec__.name`` will always be ``__main__``). ``__file__``, " +"``__cached__``, ``__loader__`` and ``__package__`` will be :ref:`set as " +"normal ` based on the module spec." +msgstr "" + +msgid "" +"A number of alterations are also made to the :mod:`sys` module. Firstly, " +"``sys.path`` may be altered as described above. ``sys.argv[0]`` is updated " +"with the value of ``path_name`` and ``sys.modules[__name__]`` is updated " +"with a temporary module object for the module being executed. All " +"modifications to items in :mod:`sys` are reverted before the function " +"returns." +msgstr "" + +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." +msgstr "" + +msgid "" +":ref:`using-on-interface-options` for equivalent functionality on the " +"command line (``python path/to/script``)." +msgstr "" + +msgid "" +"Updated to take advantage of the module spec feature added by :pep:`451`. " +"This allows ``__cached__`` to be set correctly in the case where " +"``__main__`` is imported from a valid sys.path entry rather than being " +"executed directly." +msgstr "" + +msgid ":pep:`338` -- Executing modules as scripts" +msgstr "" + +msgid "PEP written and implemented by Nick Coghlan." +msgstr "" + +msgid ":pep:`366` -- Main module explicit relative imports" +msgstr "" + +msgid ":pep:`451` -- A ModuleSpec Type for the Import System" +msgstr "" + +msgid "PEP written and implemented by Eric Snow" +msgstr "" + +msgid ":ref:`using-on-general` - CPython command line details" +msgstr "" + +msgid "The :func:`importlib.import_module` function" +msgstr "" diff --git a/library/sched.po b/library/sched.po new file mode 100644 index 0000000000..10c2d55fa2 --- /dev/null +++ b/library/sched.po @@ -0,0 +1,135 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`sched` --- Event scheduler" +msgstr "" + +msgid "**Source code:** :source:`Lib/sched.py`" +msgstr "**Kod źródłowy:** :source:`Lib/sched.py`" + +msgid "" +"The :mod:`sched` module defines a class which implements a general purpose " +"event scheduler:" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "*timefunc* and *delayfunc* parameters are optional." +msgstr "" + +msgid "" +":class:`scheduler` class can be safely used in multi-threaded environments." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "Scheduler Objects" +msgstr "" + +msgid ":class:`scheduler` instances have the following methods and attributes:" +msgstr "" + +msgid "" +"Schedule a new event. The *time* argument should be a numeric type " +"compatible with the return value of the *timefunc* function passed to the " +"constructor. Events scheduled for the same *time* will be executed in the " +"order of their *priority*. A lower number represents a higher priority." +msgstr "" + +msgid "" +"Executing the event means executing ``action(*argument, **kwargs)``. " +"*argument* is a sequence holding the positional arguments for *action*. " +"*kwargs* is a dictionary holding the keyword arguments for *action*." +msgstr "" + +msgid "" +"Return value is an event which may be used for later cancellation of the " +"event (see :meth:`cancel`)." +msgstr "" + +msgid "*argument* parameter is optional." +msgstr "" + +msgid "*kwargs* parameter was added." +msgstr "" + +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 " +"for :meth:`enterabs`." +msgstr "" + +msgid "" +"Remove the event from the queue. If *event* is not an event currently in the " +"queue, this method will raise a :exc:`ValueError`." +msgstr "" + +msgid "Return ``True`` if the event queue is empty." +msgstr "" + +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." +msgstr "" + +msgid "" +"If *blocking* is false executes the scheduled events due to expire soonest " +"(if any) and then return the deadline of the next scheduled call in the " +"scheduler (if any)." +msgstr "" + +msgid "" +"Either *action* or *delayfunc* can raise an exception. In either case, the " +"scheduler will maintain a consistent state and propagate the exception. If " +"an exception is raised by *action*, the event will not be attempted in " +"future calls to :meth:`run`." +msgstr "" + +msgid "" +"If a sequence of events takes longer to run than the time available before " +"the next event, the scheduler will simply fall behind. No events will be " +"dropped; the calling code is responsible for canceling events which are no " +"longer pertinent." +msgstr "" + +msgid "*blocking* parameter was added." +msgstr "" + +msgid "" +"Read-only attribute returning a list of upcoming events in the order they " +"will be run. Each event is shown as a :term:`named tuple` with the " +"following fields: time, priority, action, argument, kwargs." +msgstr "" diff --git a/library/secrets.po b/library/secrets.po new file mode 100644 index 0000000000..a25ac46f73 --- /dev/null +++ b/library/secrets.po @@ -0,0 +1,167 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`secrets` --- Generate secure random numbers for managing secrets" +msgstr "" + +msgid "**Source code:** :source:`Lib/secrets.py`" +msgstr "**Kod źródłowy:** :source:`Lib/secrets.py`" + +msgid "" +"The :mod:`secrets` module is used for generating cryptographically strong " +"random numbers suitable for managing data such as passwords, account " +"authentication, security tokens, and related secrets." +msgstr "" + +msgid "" +"In particular, :mod:`secrets` should be used in preference to the default " +"pseudo-random number generator in the :mod:`random` module, which is " +"designed for modelling and simulation, not security or cryptography." +msgstr "" + +msgid ":pep:`506`" +msgstr ":pep:`506`" + +msgid "Random numbers" +msgstr "" + +msgid "" +"The :mod:`secrets` module provides access to the most secure source of " +"randomness that your operating system provides." +msgstr "" + +msgid "" +"A class for generating random numbers using the highest-quality sources " +"provided by the operating system. See :class:`random.SystemRandom` for " +"additional details." +msgstr "" + +msgid "Return a randomly chosen element from a non-empty sequence." +msgstr "" + +msgid "Return a random int in the range [0, *n*)." +msgstr "" + +msgid "Return an int with *k* random bits." +msgstr "" + +msgid "Generating tokens" +msgstr "" + +msgid "" +"The :mod:`secrets` module provides functions for generating secure tokens, " +"suitable for applications such as password resets, hard-to-guess URLs, and " +"similar." +msgstr "" + +msgid "" +"Return a random byte string containing *nbytes* number of bytes. If *nbytes* " +"is ``None`` or not supplied, a reasonable default is used." +msgstr "" + +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 " +"not supplied, a reasonable default is used." +msgstr "" + +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." +msgstr "" + +msgid "How many bytes should tokens use?" +msgstr "" + +msgid "" +"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 " +"is sufficient for the typical use-case expected for the :mod:`secrets` " +"module." +msgstr "" + +msgid "" +"For those who want to manage their own token length, you can explicitly " +"specify how much randomness is used for tokens by giving an :class:`int` " +"argument to the various ``token_*`` functions. That argument is taken as " +"the number of bytes of randomness to use." +msgstr "" + +msgid "" +"Otherwise, if no argument is provided, or if the argument is ``None``, the " +"``token_*`` functions will use a reasonable default instead." +msgstr "" + +msgid "" +"That default is subject to change at any time, including during maintenance " +"releases." +msgstr "" + +msgid "Other functions" +msgstr "" + +msgid "" +"Return ``True`` if strings or :term:`bytes-like objects ` " +"*a* and *b* are equal, otherwise ``False``, using a \"constant-time " +"compare\" to reduce the risk of `timing attacks `_. See :func:`hmac.compare_digest` for additional " +"details." +msgstr "" + +msgid "Recipes and best practices" +msgstr "" + +msgid "" +"This section shows recipes and best practices for using :mod:`secrets` to " +"manage a basic level of security." +msgstr "" + +msgid "Generate an eight-character alphanumeric password:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Generate a ten-character alphanumeric password with at least one lowercase " +"character, at least one uppercase character, and at least three digits:" +msgstr "" + +msgid "Generate an `XKCD-style passphrase `_:" +msgstr "" + +msgid "" +"Generate a hard-to-guess temporary URL containing a security token suitable " +"for password recovery applications:" +msgstr "" diff --git a/library/select.po b/library/select.po index 0f4955c98c..522ff16af4 100644 --- a/library/select.po +++ b/library/select.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# m_aciek , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-29 12:56+0000\n" -"PO-Revision-Date: 2021-06-28 01:12+0000\n" -"Last-Translator: m_aciek , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`select` --- Waiting for I/O completion" msgstr "" @@ -29,11 +29,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 "" msgid "" @@ -60,9 +60,10 @@ msgstr "" 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 "" msgid "The new file descriptor is :ref:`non-inheritable `." @@ -78,7 +79,7 @@ msgstr "" msgid "" "*sizehint* informs epoll about the expected number of events to be " -"registered. It must be positive, or `-1` to use the default. It is only " +"registered. It must be positive, or ``-1`` to use the default. It is only " "used on older systems where :c:func:`epoll_create1` is not available; " "otherwise it has no effect (though its value is still checked)." msgstr "" @@ -95,9 +96,9 @@ msgid "" msgstr "" 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 "" msgid "Added the *flags* parameter." @@ -121,13 +122,15 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -165,11 +168,11 @@ msgstr "" msgid "" "Among the acceptable object types in the iterables 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 "" msgid "" @@ -186,9 +189,10 @@ msgstr "" 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 "" msgid "This value is guaranteed by POSIX to be at least 512." @@ -220,18 +224,18 @@ msgid "Return the file descriptor number of the polling object." msgstr "" 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 "" 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`." +"default value is a combination of the " +"constants :const:`POLLIN`, :const:`POLLPRI`, and :const:`POLLOUT`." msgstr "" msgid "" @@ -246,9 +250,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -257,23 +261,24 @@ msgid "" msgstr "" msgid "" -"Polls the set of registered file descriptors, and returns a possibly-empty " +"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 "" msgid "Edge and Level Trigger Polling (epoll) Objects" msgstr "" msgid "https://linux.die.net/man/4/epoll" -msgstr "" +msgstr "https://linux.die.net/man/4/epoll" msgid "*eventmask*" msgstr "" @@ -285,43 +290,43 @@ msgid "Meaning" msgstr "Znaczenie" msgid ":const:`EPOLLIN`" -msgstr "" +msgstr ":const:`EPOLLIN`" msgid "Available for read" msgstr "" msgid ":const:`EPOLLOUT`" -msgstr "" +msgstr ":const:`EPOLLOUT`" msgid "Available for write" msgstr "" msgid ":const:`EPOLLPRI`" -msgstr "" +msgstr ":const:`EPOLLPRI`" msgid "Urgent data for read" msgstr "" msgid ":const:`EPOLLERR`" -msgstr "" +msgstr ":const:`EPOLLERR`" msgid "Error condition happened on the assoc. fd" msgstr "" msgid ":const:`EPOLLHUP`" -msgstr "" +msgstr ":const:`EPOLLHUP`" msgid "Hang up happened on the assoc. fd" msgstr "" msgid ":const:`EPOLLET`" -msgstr "" +msgstr ":const:`EPOLLET`" msgid "Set Edge Trigger behavior, the default is Level Trigger behavior" msgstr "" msgid ":const:`EPOLLONESHOT`" -msgstr "" +msgstr ":const:`EPOLLONESHOT`" msgid "" "Set one-shot behavior. After one event is pulled out, the fd is internally " @@ -329,7 +334,7 @@ msgid "" msgstr "" msgid ":const:`EPOLLEXCLUSIVE`" -msgstr "" +msgstr ":const:`EPOLLEXCLUSIVE`" msgid "" "Wake only one epoll object when the associated fd has an event. The default " @@ -337,38 +342,38 @@ msgid "" msgstr "" msgid ":const:`EPOLLRDHUP`" -msgstr "" +msgstr ":const:`EPOLLRDHUP`" msgid "" "Stream socket peer closed connection or shut down writing half of connection." msgstr "" msgid ":const:`EPOLLRDNORM`" -msgstr "" +msgstr ":const:`EPOLLRDNORM`" msgid "Equivalent to :const:`EPOLLIN`" msgstr "" msgid ":const:`EPOLLRDBAND`" -msgstr "" +msgstr ":const:`EPOLLRDBAND`" msgid "Priority data band can be read." msgstr "" msgid ":const:`EPOLLWRNORM`" -msgstr "" +msgstr ":const:`EPOLLWRNORM`" msgid "Equivalent to :const:`EPOLLOUT`" msgstr "" msgid ":const:`EPOLLWRBAND`" -msgstr "" +msgstr ":const:`EPOLLWRBAND`" msgid "Priority data may be written." msgstr "" msgid ":const:`EPOLLMSG`" -msgstr "" +msgstr ":const:`EPOLLMSG`" msgid "Ignored." msgstr "" @@ -421,50 +426,51 @@ msgstr "" 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." +"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 "" msgid ":const:`POLLIN`" -msgstr "" +msgstr ":const:`POLLIN`" msgid "There is data to read" msgstr "" msgid ":const:`POLLPRI`" -msgstr "" +msgstr ":const:`POLLPRI`" msgid "There is urgent data to read" msgstr "" msgid ":const:`POLLOUT`" -msgstr "" +msgstr ":const:`POLLOUT`" msgid "Ready for output: writing will not block" msgstr "" msgid ":const:`POLLERR`" -msgstr "" +msgstr ":const:`POLLERR`" msgid "Error condition of some sort" msgstr "" msgid ":const:`POLLHUP`" -msgstr "" +msgstr ":const:`POLLHUP`" msgid "Hung up" msgstr "" msgid ":const:`POLLRDHUP`" -msgstr "" +msgstr ":const:`POLLRDHUP`" msgid "" "Stream socket peer closed connection, or shut down writing half of connection" msgstr "" msgid ":const:`POLLNVAL`" -msgstr "" +msgstr ":const:`POLLNVAL`" msgid "Invalid request: descriptor not open" msgstr "" @@ -477,26 +483,27 @@ msgstr "" 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 "" 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 "" msgid "" -"Polls the set of registered file descriptors, and returns a possibly-empty " +"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 "" msgid "Kqueue Objects" @@ -542,51 +549,51 @@ msgid "Name of the kernel filter." msgstr "" msgid ":const:`KQ_FILTER_READ`" -msgstr "" +msgstr ":const:`KQ_FILTER_READ`" msgid "Takes a descriptor and returns whenever there is data available to read" msgstr "" msgid ":const:`KQ_FILTER_WRITE`" -msgstr "" +msgstr ":const:`KQ_FILTER_WRITE`" msgid "" "Takes a descriptor and returns whenever there is data available to write" msgstr "" msgid ":const:`KQ_FILTER_AIO`" -msgstr "" +msgstr ":const:`KQ_FILTER_AIO`" msgid "AIO requests" msgstr "" msgid ":const:`KQ_FILTER_VNODE`" -msgstr "" +msgstr ":const:`KQ_FILTER_VNODE`" msgid "" "Returns when one or more of the requested events watched in *fflag* occurs" msgstr "" msgid ":const:`KQ_FILTER_PROC`" -msgstr "" +msgstr ":const:`KQ_FILTER_PROC`" msgid "Watch for events on a process id" msgstr "" msgid ":const:`KQ_FILTER_NETDEV`" -msgstr "" +msgstr ":const:`KQ_FILTER_NETDEV`" -msgid "Watch for events on a network device [not available on Mac OS X]" +msgid "Watch for events on a network device [not available on macOS]" msgstr "" msgid ":const:`KQ_FILTER_SIGNAL`" -msgstr "" +msgstr ":const:`KQ_FILTER_SIGNAL`" msgid "Returns whenever the watched signal is delivered to the process" msgstr "" msgid ":const:`KQ_FILTER_TIMER`" -msgstr "" +msgstr ":const:`KQ_FILTER_TIMER`" msgid "Establishes an arbitrary timer" msgstr "" @@ -595,58 +602,58 @@ msgid "Filter action." msgstr "" msgid ":const:`KQ_EV_ADD`" -msgstr "" +msgstr ":const:`KQ_EV_ADD`" msgid "Adds or modifies an event" msgstr "" msgid ":const:`KQ_EV_DELETE`" -msgstr "" +msgstr ":const:`KQ_EV_DELETE`" msgid "Removes an event from the queue" msgstr "" msgid ":const:`KQ_EV_ENABLE`" -msgstr "" +msgstr ":const:`KQ_EV_ENABLE`" msgid "Permitscontrol() to returns the event" msgstr "" msgid ":const:`KQ_EV_DISABLE`" -msgstr "" +msgstr ":const:`KQ_EV_DISABLE`" msgid "Disablesevent" msgstr "" msgid ":const:`KQ_EV_ONESHOT`" -msgstr "" +msgstr ":const:`KQ_EV_ONESHOT`" msgid "Removes event after first occurrence" msgstr "" msgid ":const:`KQ_EV_CLEAR`" -msgstr "" +msgstr ":const:`KQ_EV_CLEAR`" msgid "Reset the state after an event is retrieved" msgstr "" msgid ":const:`KQ_EV_SYSFLAGS`" -msgstr "" +msgstr ":const:`KQ_EV_SYSFLAGS`" msgid "internal event" msgstr "" msgid ":const:`KQ_EV_FLAG1`" -msgstr "" +msgstr ":const:`KQ_EV_FLAG1`" msgid ":const:`KQ_EV_EOF`" -msgstr "" +msgstr ":const:`KQ_EV_EOF`" msgid "Filter specific EOF condition" msgstr "" msgid ":const:`KQ_EV_ERROR`" -msgstr "" +msgstr ":const:`KQ_EV_ERROR`" msgid "See return values" msgstr "" @@ -658,7 +665,7 @@ msgid ":const:`KQ_FILTER_READ` and :const:`KQ_FILTER_WRITE` filter flags:" msgstr "" msgid ":const:`KQ_NOTE_LOWAT`" -msgstr "" +msgstr ":const:`KQ_NOTE_LOWAT`" msgid "low water mark of a socket buffer" msgstr "" @@ -667,43 +674,43 @@ msgid ":const:`KQ_FILTER_VNODE` filter flags:" msgstr "" msgid ":const:`KQ_NOTE_DELETE`" -msgstr "" +msgstr ":const:`KQ_NOTE_DELETE`" msgid "*unlink()* was called" msgstr "" msgid ":const:`KQ_NOTE_WRITE`" -msgstr "" +msgstr ":const:`KQ_NOTE_WRITE`" msgid "a write occurred" msgstr "" msgid ":const:`KQ_NOTE_EXTEND`" -msgstr "" +msgstr ":const:`KQ_NOTE_EXTEND`" msgid "the file was extended" msgstr "" msgid ":const:`KQ_NOTE_ATTRIB`" -msgstr "" +msgstr ":const:`KQ_NOTE_ATTRIB`" msgid "an attribute was changed" msgstr "" msgid ":const:`KQ_NOTE_LINK`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINK`" msgid "the link count has changed" msgstr "" msgid ":const:`KQ_NOTE_RENAME`" -msgstr "" +msgstr ":const:`KQ_NOTE_RENAME`" msgid "the file was renamed" msgstr "" msgid ":const:`KQ_NOTE_REVOKE`" -msgstr "" +msgstr ":const:`KQ_NOTE_REVOKE`" msgid "access to the file was revoked" msgstr "" @@ -712,67 +719,67 @@ msgid ":const:`KQ_FILTER_PROC` filter flags:" msgstr "" msgid ":const:`KQ_NOTE_EXIT`" -msgstr "" +msgstr ":const:`KQ_NOTE_EXIT`" msgid "the process has exited" msgstr "" msgid ":const:`KQ_NOTE_FORK`" -msgstr "" +msgstr ":const:`KQ_NOTE_FORK`" msgid "the process has called *fork()*" msgstr "" msgid ":const:`KQ_NOTE_EXEC`" -msgstr "" +msgstr ":const:`KQ_NOTE_EXEC`" msgid "the process has executed a new process" msgstr "" msgid ":const:`KQ_NOTE_PCTRLMASK`" -msgstr "" +msgstr ":const:`KQ_NOTE_PCTRLMASK`" msgid "internal filter flag" msgstr "" msgid ":const:`KQ_NOTE_PDATAMASK`" -msgstr "" +msgstr ":const:`KQ_NOTE_PDATAMASK`" msgid ":const:`KQ_NOTE_TRACK`" -msgstr "" +msgstr ":const:`KQ_NOTE_TRACK`" msgid "follow a process across *fork()*" msgstr "" msgid ":const:`KQ_NOTE_CHILD`" -msgstr "" +msgstr ":const:`KQ_NOTE_CHILD`" msgid "returned on the child process for *NOTE_TRACK*" msgstr "" msgid ":const:`KQ_NOTE_TRACKERR`" -msgstr "" +msgstr ":const:`KQ_NOTE_TRACKERR`" msgid "unable to attach to a child" msgstr "" -msgid ":const:`KQ_FILTER_NETDEV` filter flags (not available on Mac OS X):" +msgid ":const:`KQ_FILTER_NETDEV` filter flags (not available on macOS):" msgstr "" msgid ":const:`KQ_NOTE_LINKUP`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINKUP`" msgid "link is up" msgstr "" msgid ":const:`KQ_NOTE_LINKDOWN`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINKDOWN`" msgid "link is down" msgstr "" msgid ":const:`KQ_NOTE_LINKINV`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINKINV`" msgid "link state is invalid" msgstr "" diff --git a/library/selectors.po b/library/selectors.po index 23e0616d27..49123087b9 100644 --- a/library/selectors.po +++ b/library/selectors.po @@ -1,35 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 -# Tomasz Rodzen , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:12+0000\n" -"Last-Translator: Tomasz Rodzen , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`selectors` --- High-level I/O multiplexing" msgstr "" msgid "**Source code:** :source:`Lib/selectors.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/selectors.py`" msgid "Introduction" msgstr "Wprowadzenie" @@ -42,11 +40,11 @@ msgstr "" 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 "" msgid "" @@ -63,20 +61,11 @@ msgid "" msgstr "" msgid ":mod:`select`" -msgstr "" +msgstr ":mod:`select`" msgid "Low-level I/O multiplexing module." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "Classes" msgstr "Klasy" @@ -132,11 +121,12 @@ 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 "" msgid "Register a file object for selection, monitoring it for I/O events." @@ -149,9 +139,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -163,25 +153,25 @@ msgid "*fileobj* must be a file object previously registered." msgstr "" 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 "" msgid "Change a registered file object's monitored events or attached data." msgstr "" msgid "" -"This is equivalent to :meth:`BaseSelector.unregister(fileobj)` followed by :" -"meth:`BaseSelector.register(fileobj, events, data)`, except that it can be " -"implemented more efficiently." +"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 "" 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 "" msgid "" @@ -266,16 +256,16 @@ msgid ":func:`select.devpoll`-based selector." msgstr "" 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 "" msgid ":func:`select.kqueue`-based selector." msgstr "" 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 "" msgid "Examples" diff --git a/library/shelve.po b/library/shelve.po new file mode 100644 index 0000000000..50578d5c0d --- /dev/null +++ b/library/shelve.po @@ -0,0 +1,213 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Blessing Oluronbi, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`shelve` --- Python object persistence" +msgstr "" + +msgid "**Source code:** :source:`Lib/shelve.py`" +msgstr "**Kod źródłowy:** :source:`Lib/shelve.py`" + +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 " +"strings." +msgstr "" + +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 " +"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`." +msgstr "" + +msgid "" +"By default, pickles created with :data:`pickle.DEFAULT_PROTOCOL` are used to " +"serialize values. The version of the pickle protocol can be specified with " +"the *protocol* parameter." +msgstr "" + +msgid "" +"Because of Python semantics, a shelf cannot know when a mutable persistent-" +"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 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)." +msgstr "" + +msgid "" +":data:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle protocol." +msgstr "" + +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::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Shelf objects support most of methods and operations supported by " +"dictionaries (except copying, constructors and operators ``|`` and ``|=``). " +"This eases the transition from dictionary based scripts to those requiring " +"persistent storage." +msgstr "" + +msgid "Two additional methods are supported:" +msgstr "" + +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 " +"dictionary on disk, if feasible. This is called automatically when the " +"shelf is closed with :meth:`close`." +msgstr "" + +msgid "" +"Synchronize and close the persistent *dict* object. Operations on a closed " +"shelf will fail with a :exc:`ValueError`." +msgstr "" + +msgid "" +"`Persistent dictionary recipe `_ with widely supported storage formats and having the speed of native " +"dictionaries." +msgstr "" + +msgid "Restrictions" +msgstr "" + +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 " +"the database should be fairly small, and in rare cases key collisions may " +"cause the database to refuse updates." +msgstr "" + +msgid "" +"The :mod:`shelve` module does not support *concurrent* read/write access to " +"shelved objects. (Multiple simultaneous read accesses are safe.) When a " +"program has a shelf open for writing, no other program should have it open " +"for reading or writing. Unix file locking can be used to solve this, but " +"this differs across Unix versions and requires knowledge about the database " +"implementation used." +msgstr "" + +msgid "" +"A subclass of :class:`collections.abc.MutableMapping` which stores pickled " +"values in the *dict* object." +msgstr "" + +msgid "" +"By default, pickles created with :data:`pickle.DEFAULT_PROTOCOL` 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." +msgstr "" + +msgid "" +"If the *writeback* parameter is ``True``, the object will hold a cache of " +"all entries accessed and write them back to the *dict* at sync and close " +"times. This allows natural operations on mutable entries, but can consume " +"much more memory and make sync and close take a long time." +msgstr "" + +msgid "" +"The *keyencoding* parameter is the encoding used to encode keys before they " +"are used with the underlying dict." +msgstr "" + +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." +msgstr "" + +msgid "" +"Added the *keyencoding* parameter; previously, keys were always encoded in " +"UTF-8." +msgstr "" + +msgid "Added context manager support." +msgstr "Dodano obsługę menedżera kontekstu v" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +msgid "" +"To summarize the interface (``key`` is a string, ``data`` is an arbitrary " +"object)::" +msgstr "" + +msgid "Module :mod:`dbm`" +msgstr "" + +msgid "Generic interface to ``dbm``-style databases." +msgstr "" + +msgid "Module :mod:`pickle`" +msgstr "moduł :mod:`pickle`" + +msgid "Object serialization used by :mod:`shelve`." +msgstr "" diff --git a/library/signal.po b/library/signal.po new file mode 100644 index 0000000000..35ba8d9d4e --- /dev/null +++ b/library/signal.po @@ -0,0 +1,689 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`signal` --- Set handlers for asynchronous events" +msgstr "" + +msgid "**Source code:** :source:`Lib/signal.py`" +msgstr "**Kod źródłowy:** :source:`Lib/signal.py`" + +msgid "This module provides mechanisms to use signal handlers in Python." +msgstr "" + +msgid "General rules" +msgstr "" + +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 " +"translated into a :exc:`KeyboardInterrupt` exception if the parent process " +"has not changed it." +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." +msgstr "" + +msgid "Execution of Python signal handlers" +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` " +"instruction). This has consequences:" +msgstr "" + +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 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." +msgstr "" + +msgid "" +"A long-running calculation implemented purely in C (such as regular " +"expression matching on a large body of text) may run uninterrupted for an " +"arbitrary amount of time, regardless of any signals received. The Python " +"signal handlers will be called when the calculation finishes." +msgstr "" + +msgid "" +"If the handler raises an exception, it will be raised \"out of thin air\" in " +"the main thread. See the :ref:`note below ` for a " +"discussion." +msgstr "" + +msgid "Signals and threads" +msgstr "" + +msgid "" +"Python signal handlers are always executed in the main Python thread of the " +"main interpreter, 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 synchronization primitives from the :mod:`threading` module " +"instead." +msgstr "" + +msgid "" +"Besides, only the main thread of the main interpreter is allowed to set a " +"new signal handler." +msgstr "" + +msgid "Module contents" +msgstr "" + +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 " +"`." +msgstr "" + +msgid "The variables defined in the :mod:`signal` module are:" +msgstr "" + +msgid "" +"This is one of two standard signal handling options; it will simply perform " +"the default function for the signal. For example, on most systems the " +"default action for :const:`SIGQUIT` is to dump core and exit, while the " +"default action for :const:`SIGCHLD` is to simply ignore it." +msgstr "" + +msgid "" +"This is another standard signal handler, which will simply ignore the given " +"signal." +msgstr "" + +msgid "Abort signal from :manpage:`abort(3)`." +msgstr "" + +msgid "Timer signal from :manpage:`alarm(2)`." +msgstr "" + +msgid ":ref:`Availability `: Unix." +msgstr "" + +msgid "Interrupt from keyboard (CTRL + BREAK)." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" + +msgid "Bus error (bad memory access)." +msgstr "" + +msgid "Child process stopped or terminated." +msgstr "" + +msgid "Alias to :data:`SIGCHLD`." +msgstr "" + +msgid "Continue the process if it is currently stopped" +msgstr "" + +msgid "Floating-point exception. For example, division by zero." +msgstr "" + +msgid "" +":exc:`ZeroDivisionError` is raised when the second argument of a division or " +"modulo operation is zero." +msgstr "" + +msgid "" +"Hangup detected on controlling terminal or death of controlling process." +msgstr "" + +msgid "Illegal instruction." +msgstr "" + +msgid "Interrupt from keyboard (CTRL + C)." +msgstr "" + +msgid "Default action is to raise :exc:`KeyboardInterrupt`." +msgstr "" + +msgid "Kill signal." +msgstr "" + +msgid "It cannot be caught, blocked, or ignored." +msgstr "" + +msgid "Broken pipe: write to pipe with no readers." +msgstr "" + +msgid "Default action is to ignore the signal." +msgstr "" + +msgid "Segmentation fault: invalid memory reference." +msgstr "" + +msgid "Termination signal." +msgstr "" + +msgid "User-defined signal 1." +msgstr "" + +msgid "User-defined signal 2." +msgstr "" + +msgid "Window resize signal." +msgstr "" + +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." +msgstr "" + +msgid "" +"The signal corresponding to the :kbd:`Ctrl+C` keystroke event. This signal " +"can only be used with :func:`os.kill`." +msgstr "" + +msgid "" +"The signal corresponding to the :kbd:`Ctrl+Break` keystroke event. This " +"signal can only be used with :func:`os.kill`." +msgstr "" + +msgid "One more than the number of the highest signal number." +msgstr "" + +msgid "" +"Decrements interval timer in real time, and delivers :const:`SIGALRM` upon " +"expiration." +msgstr "" + +msgid "" +"Decrements interval timer only when the process is executing, and delivers " +"SIGVTALRM upon expiration." +msgstr "" + +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 " +"timer is usually used to profile the time spent by the application in user " +"and kernel space. SIGPROF is delivered upon expiration." +msgstr "" + +msgid "" +"A possible value for the *how* parameter to :func:`pthread_sigmask` " +"indicating that signals are to be blocked." +msgstr "" + +msgid "" +"A possible value for the *how* parameter to :func:`pthread_sigmask` " +"indicating that signals are to be unblocked." +msgstr "" + +msgid "" +"A possible value for the *how* parameter to :func:`pthread_sigmask` " +"indicating that the signal mask is to be replaced." +msgstr "" + +msgid "The :mod:`signal` module defines one exception:" +msgstr "" + +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`." +msgstr "" + +msgid "" +"This error used to be a subtype of :exc:`IOError`, which is now an alias " +"of :exc:`OSError`." +msgstr "" + +msgid "The :mod:`signal` module defines the following functions:" +msgstr "" + +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 " +"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 "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`alarm(2)` for further information." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the system description of the signal *signalnum*, such as " +"\"Interrupt\", \"Segmentation fault\", etc. Returns :const:`None` if the " +"signal is not recognized." +msgstr "" + +msgid "" +"Return the set of valid signal numbers on this platform. This can be less " +"than ``range(1, NSIG)`` if some signals are reserved by the system for " +"internal use." +msgstr "" + +msgid "" +"Cause the process to sleep until a signal is received; the appropriate " +"handler will then be called. Returns nothing." +msgstr "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`signal(2)` for further information." +msgstr "" + +msgid "" +"See also :func:`sigwait`, :func:`sigwaitinfo`, :func:`sigtimedwait` " +"and :func:`sigpending`." +msgstr "" + +msgid "Sends a signal to the calling process. Returns nothing." +msgstr "" + +msgid "" +"Send signal *sig* to the process referred to by file descriptor *pidfd*. " +"Python does not currently support the *siginfo* parameter; it must be " +"``None``. The *flags* argument is provided for future extensions; no flag " +"values are currently defined." +msgstr "" + +msgid "See the :manpage:`pidfd_send_signal(2)` man page for more information." +msgstr "" + +msgid ":ref:`Availability `: Linux 5.1+" +msgstr "" + +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 " +"(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 of the main interpreter `. 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`." +msgstr "" + +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 "" + +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 "" + +msgid "" +"Raises an :ref:`auditing event ` ``signal.pthread_kill`` with " +"arguments ``thread_id``, ``signalnum``." +msgstr "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`pthread_kill(3)` for further information." +msgstr "" + +msgid "See also :func:`os.kill`." +msgstr "" + +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 "" + +msgid "" +"The behavior of the call is dependent on the value of *how*, as follows." +msgstr "" + +msgid "" +":data:`SIG_BLOCK`: The set of blocked signals is the union of the current " +"set and the *mask* argument." +msgstr "" + +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 "" + +msgid "" +":data:`SIG_SETMASK`: The set of blocked signals is set to the *mask* " +"argument." +msgstr "" + +msgid "" +"*mask* is a set of signal numbers (e.g. " +"{:const:`signal.SIGINT`, :const:`signal.SIGTERM`}). " +"Use :func:`~signal.valid_signals` for a full mask including all signals." +msgstr "" + +msgid "" +"For example, ``signal.pthread_sigmask(signal.SIG_BLOCK, [])`` reads the " +"signal mask of the calling thread." +msgstr "" + +msgid ":data:`SIGKILL` and :data:`SIGSTOP` cannot be blocked." +msgstr "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`sigprocmask(2)` and :manpage:`pthread_sigmask(3)` for further " +"information." +msgstr "" + +msgid "See also :func:`pause`, :func:`sigpending` and :func:`sigwait`." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "The old values are returned as a tuple: (delay, interval)." +msgstr "" + +msgid "" +"Attempting to pass an invalid interval timer will cause " +"an :exc:`ItimerError`." +msgstr "" + +msgid "Returns current value of a given interval timer specified by *which*." +msgstr "" + +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 " +"a library to wakeup a poll or select call, allowing the signal to be fully " +"processed." +msgstr "" + +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." +msgstr "" + +msgid "" +"When threads are enabled, this function can only be called from :ref:`the " +"main thread of the main interpreter `; attempting to " +"call it from other threads will cause a :exc:`ValueError` exception to be " +"raised." +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"buffer is empty or non-empty; a full buffer doesn't indicate a problem at " +"all. If you use this approach, then you should set " +"``warn_on_full_buffer=False``, so that your users are not confused by " +"spurious warning messages." +msgstr "" + +msgid "On Windows, the function now also supports socket handles." +msgstr "" + +msgid "Added ``warn_on_full_buffer`` parameter." +msgstr "" + +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 "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`siginterrupt(3)` for further information." +msgstr "" + +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." +msgstr "" + +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.)" +msgstr "" + +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)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`sigpending(2)` for further information." +msgstr "" + +msgid "See also :func:`pause`, :func:`pthread_sigmask` and :func:`sigwait`." +msgstr "" + +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." +msgstr "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`sigwait(3)` for further information." +msgstr "" + +msgid "" +"See " +"also :func:`pause`, :func:`pthread_sigmask`, :func:`sigpending`, :func:`sigwaitinfo` " +"and :func:`sigtimedwait`." +msgstr "" + +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*." +msgstr "" + +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`." +msgstr "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`sigwaitinfo(2)` for further information." +msgstr "" + +msgid "See also :func:`pause`, :func:`sigwait` and :func:`sigtimedwait`." +msgstr "" + +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 "" + +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 "" + +msgid "" +":ref:`Availability `: Unix. See the man " +"page :manpage:`sigtimedwait(2)` for further information." +msgstr "" + +msgid "See also :func:`pause`, :func:`sigwait` and :func:`sigwaitinfo`." +msgstr "" + +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 "" + +msgid "Example" +msgstr "Przykład" + +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 " +"signal will be sent, and the handler raises an exception. ::" +msgstr "" + +msgid "Note on SIGPIPE" +msgstr "" + +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::" +msgstr "" + +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 " +"unexpectedly whenever any socket connection is interrupted while your " +"program is still writing to it." +msgstr "" + +msgid "Note on Signal Handlers and Exceptions" +msgstr "" + +msgid "" +"If a signal handler raises an exception, the exception will be propagated to " +"the main thread and may be raised after any :term:`bytecode` instruction. " +"Most notably, a :exc:`KeyboardInterrupt` may appear at any point during " +"execution. Most Python code, including the standard library, cannot be made " +"robust against this, and so a :exc:`KeyboardInterrupt` (or any other " +"exception resulting from a signal handler) may on rare occasions put the " +"program in an unexpected state." +msgstr "" + +msgid "To illustrate this issue, consider the following code::" +msgstr "" + +msgid "" +"For many programs, especially those that merely want to exit " +"on :exc:`KeyboardInterrupt`, this is not a problem, but applications that " +"are complex or require high reliability should avoid raising exceptions from " +"signal handlers. They should also avoid catching :exc:`KeyboardInterrupt` as " +"a means of gracefully shutting down. Instead, they should install their " +"own :const:`SIGINT` handler. Below is an example of an HTTP server that " +"avoids :exc:`KeyboardInterrupt`::" +msgstr "" diff --git a/library/site.po b/library/site.po new file mode 100644 index 0000000000..f71a92dbd7 --- /dev/null +++ b/library/site.po @@ -0,0 +1,272 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`site` --- Site-specific configuration hook" +msgstr "" + +msgid "**Source code:** :source:`Lib/site.py`" +msgstr "**Kod źródłowy:** :source:`Lib/site.py`" + +msgid "" +"**This module is automatically imported during initialization.** The " +"automatic import can be suppressed using the interpreter's :option:`-S` " +"option." +msgstr "" + +msgid "" +"Importing this module will append site-specific paths to the module search " +"path and add a few builtins, unless :option:`-S` was used. In that case, " +"this module can be safely imported with no automatic modifications to the " +"module search path or additions to the builtins. To explicitly trigger the " +"usual site-specific additions, call the :func:`site.main` function." +msgstr "" + +msgid "" +"Importing the module used to trigger paths manipulation even when " +"using :option:`-S`." +msgstr "" + +msgid "" +"It starts by constructing up to four directories from a head and a tail " +"part. For the head part, it uses ``sys.prefix`` and ``sys.exec_prefix``; " +"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 macOS). 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 "" + +msgid "Support for the \"site-python\" directory has been removed." +msgstr "" + +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 \"true\" (case-" +"insensitive), the system-level prefixes will not be searched for site-" +"packages; otherwise they will." +msgstr "" + +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 "" + +msgid "" +"An executable line in a :file:`.pth` file is run at every Python startup, " +"regardless of whether a particular module is actually going to be used. Its " +"impact should thus be kept to a minimum. The primary intended purpose of " +"executable lines is to make the corresponding module(s) importable (load 3rd-" +"party import hooks, adjust :envvar:`PATH` etc). Any other initialization is " +"supposed to be done upon a module's actual import, if and when it happens. " +"Limiting a code chunk to a single line is a deliberate measure to discourage " +"putting anything more complex here." +msgstr "" + +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::" +msgstr "" + +msgid "and :file:`bar.pth` contains::" +msgstr "" + +msgid "" +"Then the following version-specific directories are added to ``sys.path``, " +"in this order::" +msgstr "" + +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." +msgstr "" + +msgid "" +"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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Readline configuration" +msgstr "" + +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." +msgstr "" + +msgid "Activation of rlcompleter and history was made automatic." +msgstr "" + +msgid "Module contents" +msgstr "" + +msgid "A list of prefixes for site-packages directories." +msgstr "" + +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." +msgstr "" + +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 " +"macOS builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for " +"macOS 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 "" + +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 macOS non-framework builds, :file:`~/" +"Library/Python/{X.Y}` for macOS 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 "" + +msgid "" +"Adds all the standard site-specific directories to the module search path. " +"This function is called automatically when this module is imported, unless " +"the Python interpreter was started with the :option:`-S` flag." +msgstr "" + +msgid "This function used to be called unconditionally." +msgstr "" + +msgid "" +"Add a directory to sys.path and process its :file:`.pth` files. Typically " +"used in :mod:`sitecustomize` or :mod:`usercustomize` (see above)." +msgstr "" + +msgid "Return a list containing all global site-packages directories." +msgstr "" + +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`." +msgstr "" + +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 :data:`USER_BASE`. To determine if the user-" +"specific site-packages was added to ``sys.path`` :data:`ENABLE_USER_SITE` " +"should be used." +msgstr "" + +msgid "Command Line Interface" +msgstr "Interfejs linii komend" + +msgid "" +"The :mod:`site` module also provides a way to get the user directories from " +"the command line:" +msgstr "" + +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`." +msgstr "" + +msgid "Print the path to the user base directory." +msgstr "" + +msgid "Print the path to the user site-packages directory." +msgstr "" + +msgid "" +"If both options are given, user base and user site will be printed (always " +"in this order), separated by :data:`os.pathsep`." +msgstr "" + +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 " +"administrator, and a value greater than 2 if there is an error." +msgstr "" + +msgid ":pep:`370` -- Per user site-packages directory" +msgstr "" diff --git a/library/smtpd.po b/library/smtpd.po index 967242b4f8..a831bd651b 100644 --- a/library/smtpd.po +++ b/library/smtpd.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:13+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`smtpd` --- SMTP Server" msgstr "" @@ -33,10 +33,10 @@ msgid "This module offers several classes to implement SMTP (email) servers." msgstr "" msgid "" -"The :mod:`smtpd` module is deprecated (see :pep:`PEP 594 <594#smtpd>` for " -"details). The `aiosmtpd `_ package is a " -"recommended replacement for this module. It is based on :mod:`asyncio` and " -"provides a more straightforward API." +":mod:`smtpd` will be removed in Python 3.12 (see :pep:`PEP 594 <594#smtpd>` " +"for details). The `aiosmtpd `_ package is " +"a recommended replacement for this module. It is based on :mod:`asyncio` " +"and provides a more straightforward API." msgstr "" msgid "" @@ -55,15 +55,6 @@ msgid "" "SMTPUTF8 extensions." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "SMTPServer Objects" msgstr "" @@ -191,6 +182,22 @@ msgid "" "good chance to make you into an open relay, so please be careful." msgstr "" +msgid "MailmanProxy Objects" +msgstr "" + +msgid "" +":class:`MailmanProxy` is deprecated, it depends on a ``Mailman`` module " +"which no longer exists and therefore is already broken." +msgstr "" + +msgid "" +"Create a new pure proxy server. Arguments are as per :class:`SMTPServer`. " +"Everything will be relayed to *remoteaddr*, unless local mailman " +"configurations knows about an address, in which case it will be handled via " +"mailman. Note that running this has a good chance to make you into an open " +"relay, so please be careful." +msgstr "" + msgid "SMTPChannel Objects" msgstr "" @@ -219,8 +226,8 @@ msgid "" msgstr "" 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 "" msgid "The *decode_data* and *enable_SMTPUTF8* parameters were added." @@ -236,14 +243,14 @@ msgid "Holds the socket object connecting to the client." msgstr "" 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 "" 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 "" msgid "" @@ -271,8 +278,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -297,16 +304,16 @@ msgid "HELO" msgstr "" 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 "" msgid "EHLO" msgstr "" 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 "" msgid "NOOP" @@ -325,8 +332,8 @@ msgid "MAIL" msgstr "" msgid "" -"Accepts the \"MAIL FROM:\" syntax and stores the supplied address as :attr:" -"`mailfrom`. In extended command mode, accepts the :rfc:`1870` SIZE " +"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 "" @@ -334,8 +341,8 @@ msgid "RCPT" msgstr "" 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 "" msgid "RSET" diff --git a/library/smtplib.po b/library/smtplib.po new file mode 100644 index 0000000000..c711fcbce8 --- /dev/null +++ b/library/smtplib.po @@ -0,0 +1,627 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`smtplib` --- SMTP protocol client" +msgstr "" + +msgid "**Source code:** :source:`Lib/smtplib.py`" +msgstr "**Kod źródłowy:** :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)." +msgstr "" + +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 " +"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:`TimeoutError` " +"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 "" + +msgid "" +"For normal use, you should only require the initialization/" +"connect, :meth:`sendmail`, and :meth:`SMTP.quit` methods. An example is " +"included below." +msgstr "" + +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.::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``smtplib.send`` with arguments " +"``self``, ``data``." +msgstr "" + +msgid "" +"All commands will raise an :ref:`auditing event ` " +"``smtplib.SMTP.send`` with arguments ``self`` and ``data``, where ``data`` " +"is the bytes about to be sent to the remote host." +msgstr "" + +msgid "Support for the :keyword:`with` statement was added." +msgstr "" + +msgid "source_address argument was added." +msgstr "" + +msgid "The SMTPUTF8 extension (:rfc:`6531`) is now supported." +msgstr "" + +msgid "" +"If the *timeout* parameter is set to be zero, it will raise " +"a :class:`ValueError` to prevent the creation of a non-blocking socket" +msgstr "" + +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 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 " +"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 " +"practices." +msgstr "" + +msgid "" +"*keyfile* and *certfile* are a legacy alternative to *context*, and can " +"point to a PEM formatted private key and certificate chain file for the SSL " +"connection." +msgstr "" + +msgid "*context* was added." +msgstr "" + +msgid "" +"The class now supports hostname check " +"with :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* " +"(see :data:`ssl.HAS_SNI`)." +msgstr "" + +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." +msgstr "" + +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 '/'." +msgstr "" + +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." +msgstr "" + +msgid "The optional *timeout* parameter was added." +msgstr "" + +msgid "A nice selection of exceptions is defined as well:" +msgstr "" + +msgid "" +"Subclass of :exc:`OSError` that is the base exception class for all the " +"other exceptions provided by this module." +msgstr "" + +msgid "SMTPException became subclass of :exc:`OSError`" +msgstr "" + +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." +msgstr "" + +msgid "" +"Base class for all exceptions that include an SMTP error code. These " +"exceptions are generated in some instances when the SMTP server returns an " +"error code. The error code is stored in the :attr:`smtp_code` attribute of " +"the error, and the :attr:`smtp_error` attribute is set to the error message." +msgstr "" + +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." +msgstr "" + +msgid "" +"All recipient addresses refused. The errors for each recipient are " +"accessible through the attribute :attr:`recipients`, which is a dictionary " +"of exactly the same sort as :meth:`SMTP.sendmail` returns." +msgstr "" + +msgid "The SMTP server refused to accept the message data." +msgstr "" + +msgid "Error occurred during establishment of a connection with the server." +msgstr "" + +msgid "The server refused our ``HELO`` message." +msgstr "" + +msgid "The command or option attempted is not supported by the server." +msgstr "" + +msgid "" +"SMTP authentication went wrong. Most probably the server didn't accept the " +"username/password combination provided." +msgstr "" + +msgid ":rfc:`821` - Simple Mail Transfer Protocol" +msgstr "" + +msgid "" +"Protocol definition for SMTP. This document covers the model, operating " +"procedure, and protocol details for SMTP." +msgstr "" + +msgid ":rfc:`1869` - SMTP Service Extensions" +msgstr "" + +msgid "" +"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 "" + +msgid "SMTP Objects" +msgstr "" + +msgid "An :class:`SMTP` instance has the following methods:" +msgstr "" + +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 " +"timestamped." +msgstr "" + +msgid "Added debuglevel 2." +msgstr "" + +msgid "" +"Send a command *cmd* to the server. The optional argument *args* is simply " +"concatenated to the command, separated by a space." +msgstr "" + +msgid "" +"This returns a 2-tuple composed of a numeric response code and the actual " +"response line (multiline responses are joined into one long line.)" +msgstr "" + +msgid "" +"In normal operation it should not be necessary to call this method " +"explicitly. It is used to implement other methods and may be useful for " +"testing private extensions." +msgstr "" + +msgid "" +"If the connection to the server is lost while waiting for the " +"reply, :exc:`SMTPServerDisconnected` will be raised." +msgstr "" + +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 " +"(``':'``) 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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``smtplib.connect`` with " +"arguments ``self``, ``host``, ``port``." +msgstr "" + +msgid "" +"Identify yourself to the SMTP server using ``HELO``. The hostname argument " +"defaults to the fully qualified domain name of the local host. The message " +"returned by the server is stored as the :attr:`helo_resp` attribute of the " +"object." +msgstr "" + +msgid "" +"In normal operation it should not be necessary to call this method " +"explicitly. It will be implicitly called by the :meth:`sendmail` when " +"necessary." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Unless you wish to use :meth:`has_extn` before sending mail, it should not " +"be necessary to call this method explicitly. It will be implicitly called " +"by :meth:`sendmail` when necessary." +msgstr "" + +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." +msgstr "" + +msgid ":exc:`SMTPHeloError`" +msgstr ":exc:`SMTPHeloError`" + +msgid "The server didn't reply properly to the ``HELO`` greeting." +msgstr "" + +msgid "" +"Return :const:`True` if *name* is in the set of SMTP service extensions " +"returned by the server, :const:`False` otherwise. Case is ignored." +msgstr "" + +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 " +"human name) if the user address is valid. Otherwise returns an SMTP error " +"code of 400 or greater and an error string." +msgstr "" + +msgid "Many sites disable SMTP ``VRFY`` in order to foil spammers." +msgstr "" + +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 " +"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:" +msgstr "" + +msgid ":exc:`SMTPAuthenticationError`" +msgstr ":exc:`SMTPAuthenticationError`" + +msgid "The server didn't accept the username/password combination." +msgstr "" + +msgid ":exc:`SMTPNotSupportedError`" +msgstr ":exc:`SMTPNotSupportedError`" + +msgid "The ``AUTH`` command is not supported by the server." +msgstr "" + +msgid ":exc:`SMTPException`" +msgstr ":exc:`SMTPException`" + +msgid "No suitable authentication method was found." +msgstr "" + +msgid "" +"Each of the authentication methods supported by :mod:`smtplib` are tried in " +"turn if they are advertised as supported by the server. See :meth:`auth` " +"for a list of supported authentication methods. *initial_response_ok* is " +"passed through to :meth:`auth`." +msgstr "" + +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 " +"requiring a challenge/response." +msgstr "" + +msgid "" +":exc:`SMTPNotSupportedError` may be raised, and the *initial_response_ok* " +"parameter was added." +msgstr "" + +msgid "" +"Issue an ``SMTP`` ``AUTH`` command for the specified authentication " +"*mechanism*, and handle the challenge response via *authobject*." +msgstr "" + +msgid "" +"*mechanism* specifies which authentication mechanism is to be used as " +"argument to the ``AUTH`` command; the valid values are those listed in the " +"``auth`` element of :attr:`esmtp_features`." +msgstr "" + +msgid "" +"*authobject* must be a callable object taking an optional single argument:" +msgstr "" + +msgid "data = authobject(challenge=None)" +msgstr "" + +msgid "" +"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 " +"``None`` when called with ``challenge=None``. If *initial_response_ok* is " +"false, then ``authobject()`` will not be called first with ``None``." +msgstr "" + +msgid "" +"If the initial response check returns ``None``, or if *initial_response_ok* " +"is false, ``authobject()`` will be called to process the server's challenge " +"response; the *challenge* argument it is passed will be a ``bytes``. It " +"should return ASCII ``str`` *data* that will be base64 encoded and sent to " +"the server." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Put the SMTP connection in TLS (Transport Layer Security) mode. All SMTP " +"commands that follow will be encrypted. You should then call :meth:`ehlo` " +"again." +msgstr "" + +msgid "" +"If *keyfile* and *certfile* are provided, they are used to create " +"an :class:`ssl.SSLContext`." +msgstr "" + +msgid "" +"Optional *context* parameter is an :class:`ssl.SSLContext` object; This is " +"an alternative to using a keyfile and a certfile and if specified both " +"*keyfile* and *certfile* should be ``None``." +msgstr "" + +msgid "" +"If there has been no previous ``EHLO`` or ``HELO`` command this session, " +"this method tries ESMTP ``EHLO`` first." +msgstr "" + +msgid "The server does not support the STARTTLS extension." +msgstr "" + +msgid ":exc:`RuntimeError`" +msgstr ":exc:`RuntimeError`" + +msgid "SSL/TLS support is not available to your Python interpreter." +msgstr "" + +msgid "" +"The method now supports hostname check " +"with :attr:`SSLContext.check_hostname` and *Server Name Indicator* " +"(see :data:`~ssl.HAS_SNI`)." +msgstr "" + +msgid "" +"The error raised for lack of STARTTLS support is now " +"the :exc:`SMTPNotSupportedError` subclass instead of the " +"base :exc:`SMTPException`." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The *from_addr* and *to_addrs* parameters are used to construct the message " +"envelope used by the transport agents. ``sendmail`` does not modify the " +"message headers in any way." +msgstr "" + +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." +msgstr "" + +msgid "" +"If there has been no previous ``EHLO`` or ``HELO`` command this session, " +"this method tries ESMTP ``EHLO`` first. If the server does ESMTP, message " +"size and each of the specified options will be passed to it (if the option " +"is in the feature set the server advertises). If ``EHLO`` fails, ``HELO`` " +"will be tried and ESMTP options suppressed." +msgstr "" + +msgid "" +"This method will return normally if the mail is accepted for at least one " +"recipient. Otherwise it will raise an exception. That is, if this method " +"does not raise an exception, then someone should get your mail. If this " +"method does not raise an exception, it returns a dictionary, with one entry " +"for each recipient that was refused. Each entry contains a tuple of the " +"SMTP error code and the accompanying error message sent by the server." +msgstr "" + +msgid "" +"If ``SMTPUTF8`` is included in *mail_options*, and the server supports it, " +"*from_addr* and *to_addrs* may contain non-ASCII characters." +msgstr "" + +msgid "This method may raise the following exceptions:" +msgstr "" + +msgid ":exc:`SMTPRecipientsRefused`" +msgstr ":exc:`SMTPRecipientsRefused`" + +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 " +"accepted)." +msgstr "" + +msgid ":exc:`SMTPSenderRefused`" +msgstr ":exc:`SMTPSenderRefused`" + +msgid "The server didn't accept the *from_addr*." +msgstr "" + +msgid ":exc:`SMTPDataError`" +msgstr ":exc:`SMTPDataError`" + +msgid "" +"The server replied with an unexpected error code (other than a refusal of a " +"recipient)." +msgstr "" + +msgid "" +"``SMTPUTF8`` was given in the *mail_options* but is not supported by the " +"server." +msgstr "" + +msgid "" +"Unless otherwise noted, the connection will be open even after an exception " +"is raised." +msgstr "" + +msgid "*msg* may be a byte string." +msgstr "" + +msgid "" +"``SMTPUTF8`` support added, and :exc:`SMTPNotSupportedError` may be raised " +"if ``SMTPUTF8`` is specified but the server does not support it." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +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*." +msgstr "" + +msgid "Support for internationalized addresses (``SMTPUTF8``)." +msgstr "" + +msgid "" +"Terminate the SMTP session and close the connection. Return the result of " +"the SMTP ``QUIT`` command." +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." +msgstr "" + +msgid "SMTP Example" +msgstr "" + +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 " +"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. ::" +msgstr "" + +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`." +msgstr "" diff --git a/library/sndhdr.po b/library/sndhdr.po index 212c469cab..01ebef486c 100644 --- a/library/sndhdr.po +++ b/library/sndhdr.po @@ -19,9 +19,9 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`sndhdr` --- Determine type of sound file" msgstr "" @@ -37,24 +37,24 @@ msgstr "" 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``, " -"``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 " -"the tuple, *bits_per_sample*, will either be the sample size in bits or " -"``'A'`` for A-LAW or ``'U'`` for u-LAW." +"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 the tuple, *bits_per_sample*, will either be the " +"sample size in bits or ``'A'`` for A-LAW or ``'U'`` for u-LAW." msgstr "" msgid "" -"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." +"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 "" msgid "Result changed from a tuple to a namedtuple." @@ -145,8 +145,9 @@ msgstr "" 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 "" msgid "" diff --git a/library/socket.po b/library/socket.po new file mode 100644 index 0000000000..6addc5f5ab --- /dev/null +++ b/library/socket.po @@ -0,0 +1,1845 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`socket` --- Low-level networking interface" +msgstr "" + +msgid "**Source code:** :source:`Lib/socket.py`" +msgstr "**Kod źródłowy:** :source:`Lib/socket.py`" + +msgid "" +"This module provides access to the BSD *socket* interface. It is available " +"on all modern Unix systems, Windows, MacOS, and probably additional " +"platforms." +msgstr "" + +msgid "" +"Some behavior may be platform dependent, since calls are made to the " +"operating system socket APIs." +msgstr "" + +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 :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 " +"automatic, and buffer length is implicit on send operations." +msgstr "" + +msgid "Module :mod:`socketserver`" +msgstr "" + +msgid "Classes that simplify writing network servers." +msgstr "" + +msgid "Module :mod:`ssl`" +msgstr "" + +msgid "A TLS/SSL wrapper for socket objects." +msgstr "" + +msgid "Socket families" +msgstr "" + +msgid "" +"Depending on the system and the build options, various socket families are " +"supported by this module." +msgstr "" + +msgid "" +"The address format required by a particular socket object is automatically " +"selected based on the address family specified when the socket object was " +"created. Socket addresses are represented as follows:" +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 " +"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." +msgstr "" + +msgid "" +"Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 encoding." +msgstr "" + +msgid "Writable :term:`bytes-like object` is now accepted." +msgstr "" + +msgid "" +"A pair ``(host, port)`` is used for the :const:`AF_INET` address family, " +"where *host* is a string representing either a hostname in internet domain " +"notation like ``'daring.cwi.nl'`` or an IPv4 address like " +"``'100.50.200.5'``, and *port* is an integer." +msgstr "" + +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." +msgstr "" + +msgid "" +"For :const:`AF_INET6` address family, a four-tuple ``(host, port, flowinfo, " +"scope_id)`` is used, where *flowinfo* and *scope_id* represent the " +"``sin6_flowinfo`` and ``sin6_scope_id`` members in :const:`struct " +"sockaddr_in6` in C. For :mod:`socket` module methods, *flowinfo* and " +"*scope_id* can be omitted just for backward compatibility. Note, however, " +"omission of *scope_id* can cause problems in manipulating scoped IPv6 " +"addresses." +msgstr "" + +msgid "" +"For multicast addresses (with *scope_id* meaningful) *address* may not " +"contain ``%scope_id`` (or ``zone id``) part. This information is superfluous " +"and may be safely omitted (recommended)." +msgstr "" + +msgid ":const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``." +msgstr "" + +msgid "" +"Linux-only support for TIPC is available using the :const:`AF_TIPC` address " +"family. TIPC is an open, non-IP based networked protocol designed for use " +"in clustered computer environments. Addresses are represented by a tuple, " +"and the fields depend on the address type. The general tuple form is " +"``(addr_type, v1, v2, v3 [, scope])``, where:" +msgstr "" + +msgid "" +"*addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, " +"or :const:`TIPC_ADDR_ID`." +msgstr "" + +msgid "" +"*scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, " +"and :const:`TIPC_NODE_SCOPE`." +msgstr "" + +msgid "" +"If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, " +"*v2* is the port identifier, and *v3* should be 0." +msgstr "" + +msgid "" +"If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, " +"*v2* is the lower port number, and *v3* is the upper port number." +msgstr "" + +msgid "" +"If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the " +"reference, and *v3* should be set to 0." +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." +msgstr "" + +msgid "" +":const:`CAN_ISOTP` protocol require a tuple ``(interface, rx_addr, " +"tx_addr)`` where both additional parameters are unsigned long integer that " +"represent a CAN identifier (standard or extended)." +msgstr "" + +msgid "" +":const:`CAN_J1939` protocol require a tuple ``(interface, name, pgn, addr)`` " +"where additional parameters are 64-bit unsigned integer representing the ECU " +"name, a 32-bit unsigned integer representing the Parameter Group Number " +"(PGN), and an 8-bit integer representing the address." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +":const:`AF_BLUETOOTH` supports the following protocols and address formats:" +msgstr "" + +msgid "" +":const:`BTPROTO_L2CAP` accepts ``(bdaddr, psm)`` where ``bdaddr`` is the " +"Bluetooth address as a string and ``psm`` is an integer." +msgstr "" + +msgid "" +":const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr`` is " +"the Bluetooth address as a string and ``channel`` is an integer." +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.)" +msgstr "" + +msgid "NetBSD and DragonFlyBSD support added." +msgstr "" + +msgid "" +":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 "" + +msgid "" +":const:`AF_ALG` is a Linux-only socket based interface to Kernel " +"cryptography. An algorithm socket is configured with a tuple of two to four " +"elements ``(type, name [, feat [, mask]])``, where:" +msgstr "" + +msgid "" +"*type* is the algorithm type as string, e.g. ``aead``, ``hash``, " +"``skcipher`` or ``rng``." +msgstr "" + +msgid "" +"*name* is the algorithm name and operation mode as string, e.g. ``sha256``, " +"``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``." +msgstr "" + +msgid "*feat* and *mask* are unsigned 32bit integers." +msgstr "" + +msgid "" +":const:`AF_VSOCK` allows communication between virtual machines and their " +"hosts. The sockets are represented as a ``(CID, port)`` tuple where the " +"context ID or CID and port are integers." +msgstr "" + +msgid "" +":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 "" + +msgid "*ifname* - String specifying the device name." +msgstr "" + +msgid "" +"*proto* - An in network-byte-order integer specifying the Ethernet protocol " +"number." +msgstr "" + +msgid "*pkttype* - Optional integer specifying the packet type:" +msgstr "" + +msgid "``PACKET_HOST`` (the default) - Packet addressed to the local host." +msgstr "" + +msgid "``PACKET_BROADCAST`` - Physical-layer broadcast packet." +msgstr "" + +msgid "" +"``PACKET_MULTIHOST`` - Packet sent to a physical-layer multicast address." +msgstr "" + +msgid "" +"``PACKET_OTHERHOST`` - Packet to some other host that has been caught by a " +"device driver in promiscuous mode." +msgstr "" + +msgid "" +"``PACKET_OUTGOING`` - Packet originating from the local host that is looped " +"back to a packet socket." +msgstr "" + +msgid "*hatype* - Optional integer specifying the ARP hardware address type." +msgstr "" + +msgid "" +"*addr* - Optional bytes-like object specifying the hardware physical " +"address, whose interpretation depends on the device." +msgstr "" + +msgid "" +":const:`AF_QIPCRTR` is a Linux-only socket based interface for communicating " +"with services running on co-processors in Qualcomm platforms. The address " +"family is represented as a ``(node, port)`` tuple where the *node* and " +"*port* are non-negative integers." +msgstr "" + +msgid "" +":const:`IPPROTO_UDPLITE` is a variant of UDP which allows you to specify " +"what portion of a packet is covered with the checksum. It adds two socket " +"options that you can change. ``self.setsockopt(IPPROTO_UDPLITE, " +"UDPLITE_SEND_CSCOV, length)`` will change what portion of outgoing packets " +"are covered by the checksum and ``self.setsockopt(IPPROTO_UDPLITE, " +"UDPLITE_RECV_CSCOV, length)`` will filter out packets which cover too little " +"of their data. In both cases ``length`` should be in ``range(8, 2**16, 8)``." +msgstr "" + +msgid "" +"Such a socket should be constructed with ``socket(AF_INET, SOCK_DGRAM, " +"IPPROTO_UDPLITE)`` for IPv4 or ``socket(AF_INET6, SOCK_DGRAM, " +"IPPROTO_UDPLITE)`` for IPv6." +msgstr "" + +msgid "" +"If you use a hostname in the *host* portion of IPv4/v6 socket address, the " +"program may show a nondeterministic behavior, as Python uses the first " +"address returned from the DNS resolution. The socket address will be " +"resolved differently into an actual IPv4/v6 address, depending on the " +"results from DNS resolution and/or the host configuration. For " +"deterministic behavior use a numeric address in *host* portion." +msgstr "" + +msgid "" +"All errors raise exceptions. The normal exceptions for invalid argument " +"types and out-of-memory conditions can be raised. Errors related to socket " +"or address semantics raise :exc:`OSError` or one of its subclasses." +msgstr "" + +msgid "" +"Non-blocking mode is supported through :meth:`~socket.setblocking`. A " +"generalization of this based on timeouts is supported " +"through :meth:`~socket.settimeout`." +msgstr "" + +msgid "Module contents" +msgstr "" + +msgid "The module :mod:`socket` exports the following elements." +msgstr "" + +msgid "Exceptions" +msgstr "Wyjątki" + +msgid "A deprecated alias of :exc:`OSError`." +msgstr "" + +msgid "Following :pep:`3151`, this class was made an alias of :exc:`OSError`." +msgstr "" + +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 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 "" + +msgid "This class was made a subclass of :exc:`OSError`." +msgstr "" + +msgid "" +"A subclass of :exc:`OSError`, this exception is raised for address-related " +"errors by :func:`getaddrinfo` and :func:`getnameinfo`. The accompanying " +"value is a pair ``(error, string)`` representing an error returned by a " +"library call. *string* represents the description of *error*, as returned " +"by the :c:func:`gai_strerror` C function. The numeric *error* value will " +"match one of the :const:`EAI_\\*` constants defined in this module." +msgstr "" + +msgid "A deprecated alias of :exc:`TimeoutError`." +msgstr "" + +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\"." +msgstr "" + +msgid "This class was made an alias of :exc:`TimeoutError`." +msgstr "" + +msgid "Constants" +msgstr "Stały" + +msgid "" +"The AF_* and SOCK_* constants are now :class:`AddressFamily` " +"and :class:`SocketKind` :class:`.IntEnum` collections." +msgstr "" + +msgid "" +"These constants represent the address (and protocol) families, used for the " +"first argument to :func:`.socket`. If the :const:`AF_UNIX` constant is not " +"defined then this protocol is unsupported. More constants may be available " +"depending on the system." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"These two constants, if defined, can be combined with the socket types and " +"allow you to set some flags atomically (thus avoiding possible race " +"conditions and the need for separate calls)." +msgstr "" + +msgid "" +"`Secure File Descriptor Handling `_ for a more thorough explanation." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 2.6.27." +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." +msgstr "" + +msgid "" +"``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``, " +"``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added." +msgstr "" + +msgid "" +"On Windows, ``TCP_FASTOPEN``, ``TCP_KEEPCNT`` appear if run-time Windows " +"supports." +msgstr "" + +msgid "``TCP_NOTSENT_LOWAT`` was added." +msgstr "" + +msgid "" +"On Windows, ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` appear if run-time Windows " +"supports." +msgstr "" + +msgid "" +"``IP_RECVTOS`` was added. Added ``TCP_KEEPALIVE``. On MacOS this constant " +"can be used in the same way that ``TCP_KEEPIDLE`` is used on Linux." +msgstr "" + +msgid "" +"Many constants of these forms, documented in the Linux documentation, are " +"also defined in the socket module." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 2.6.25." +msgstr "" + +msgid "" +"CAN_BCM, in the CAN protocol family, is the broadcast manager (BCM) " +"protocol. Broadcast manager constants, documented in the Linux " +"documentation, are also defined in the socket module." +msgstr "" + +msgid "" +"The :data:`CAN_BCM_CAN_FD_FRAME` flag is only available on Linux >= 4.8." +msgstr "" + +msgid "" +"Enables CAN FD support in a CAN_RAW socket. This is disabled by default. " +"This allows your application to send both CAN and CAN FD frames; however, " +"you must accept both CAN and CAN FD frames when reading from the socket." +msgstr "" + +msgid "This constant is documented in the Linux documentation." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 3.6." +msgstr "" + +msgid "" +"Joins the applied CAN filters such that only CAN frames that match all given " +"CAN filters are passed to user space." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 4.1." +msgstr "" + +msgid "" +"CAN_ISOTP, in the CAN protocol family, is the ISO-TP (ISO 15765-2) protocol. " +"ISO-TP constants, documented in the Linux documentation." +msgstr "" + +msgid "" +"CAN_J1939, in the CAN protocol family, is the SAE J1939 protocol. J1939 " +"constants, documented in the Linux documentation." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 5.4." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 2.2." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 2.6.30." +msgstr "" + +msgid "" +"Constants for Windows' WSAIoctl(). The constants are used as arguments to " +"the :meth:`~socket.socket.ioctl` method of socket objects." +msgstr "" + +msgid "``SIO_LOOPBACK_FAST_PATH`` was added." +msgstr "" + +msgid "" +"TIPC related constants, matching the ones exported by the C socket API. See " +"the TIPC documentation for more information." +msgstr "" + +msgid "Constants for Linux Kernel cryptography." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 2.6.38." +msgstr "" + +msgid "Constants for Linux host/guest communication." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 4.8." +msgstr "" + +msgid ":ref:`Availability `: BSD, macOS." +msgstr "" + +msgid "" +"This constant contains a boolean value which indicates if IPv6 is supported " +"on this platform." +msgstr "" + +msgid "" +"These are string constants containing Bluetooth addresses with special " +"meanings. For example, :const:`BDADDR_ANY` can be used to indicate any " +"address when specifying the binding socket with :const:`BTPROTO_RFCOMM`." +msgstr "" + +msgid "" +"For use with :const:`BTPROTO_HCI`. :const:`HCI_FILTER` is not available for " +"NetBSD or DragonFlyBSD. :const:`HCI_TIME_STAMP` and :const:`HCI_DATA_DIR` " +"are not available for FreeBSD, NetBSD, or DragonFlyBSD." +msgstr "" + +msgid "" +"Constant for Qualcomm's IPC router protocol, used to communicate with " +"service providing remote processors." +msgstr "" + +msgid ":ref:`Availability `: Linux >= 4.7." +msgstr "" + +msgid "Functions" +msgstr "Zadania" + +msgid "Creating sockets" +msgstr "" + +msgid "" +"The following functions all create :ref:`socket objects `." +msgstr "" + +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`, :const:`CAN_ISOTP` " +"or :const:`CAN_J1939`." +msgstr "" + +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()`." +msgstr "" + +msgid "The newly created socket is :ref:`non-inheritable `." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.__new__`` with arguments " +"``self``, ``family``, ``type``, ``protocol``." +msgstr "" + +msgid "The AF_CAN family was added. The AF_RDS family was added." +msgstr "" + +msgid "The CAN_BCM protocol was added." +msgstr "" + +msgid "The returned socket is now non-inheritable." +msgstr "" + +msgid "The CAN_ISOTP protocol was added." +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 "" + +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 "" + +msgid "The CAN_J1939 protocol was added." +msgstr "" + +msgid "The IPPROTO_MPTCP protocol was added." +msgstr "" + +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`." +msgstr "" + +msgid "The newly created sockets are :ref:`non-inheritable `." +msgstr "" + +msgid "" +"The returned socket objects now support the whole socket API, rather than a " +"subset." +msgstr "" + +msgid "The returned sockets are now non-inheritable." +msgstr "" + +msgid "Windows support added." +msgstr "" + +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 " +"succeeds. This makes it easy to write clients that are compatible to both " +"IPv4 and IPv6." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "*source_address* was added." +msgstr "" + +msgid "" +"Convenience function which creates a TCP socket bound to *address* (a 2-" +"tuple ``(host, port)``) and return the socket object." +msgstr "" + +msgid "" +"*family* should be either :data:`AF_INET` or :data:`AF_INET6`. *backlog* is " +"the queue size passed to :meth:`socket.listen`; if not specified , a default " +"reasonable value is chosen. *reuse_port* dictates whether to set " +"the :data:`SO_REUSEPORT` socket option." +msgstr "" + +msgid "" +"If *dualstack_ipv6* is true and the platform supports it the socket will be " +"able to accept both IPv4 and IPv6 connections, else it will " +"raise :exc:`ValueError`. Most POSIX platforms and Windows are supposed to " +"support this functionality. When this functionality is enabled the address " +"returned by :meth:`socket.getpeername` when an IPv4 connection occurs will " +"be an IPv6 address represented as an IPv4-mapped IPv6 address. If " +"*dualstack_ipv6* is false it will explicitly disable this functionality on " +"platforms that enable it by default (e.g. Linux). This parameter can be used " +"in conjunction with :func:`has_dualstack_ipv6`:" +msgstr "" + +msgid "" +"On POSIX platforms the :data:`SO_REUSEADDR` socket option is set in order to " +"immediately reuse previous sockets which were bound on the same *address* " +"and remained in TIME_WAIT state." +msgstr "" + +msgid "" +"Return ``True`` if the platform supports creating a TCP socket which can " +"handle both IPv4 and IPv6 connections." +msgstr "" + +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." +msgstr "" + +msgid "" +"Instantiate a socket from data obtained from the :meth:`socket.share` " +"method. The socket is assumed to be in blocking mode." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" + +msgid "" +"This is a Python type object that represents the socket object type. It is " +"the same as ``type(socket(...))``." +msgstr "" + +msgid "Other functions" +msgstr "" + +msgid "The :mod:`socket` module also offers various network-related services:" +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"domain name." +msgstr "" + +msgid "The function returns a list of 5-tuples with the following structure:" +msgstr "" + +msgid "``(family, type, proto, canonname, sockaddr)``" +msgstr "" + +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 " +"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 " +"*family* (a ``(address, port)`` 2-tuple for :const:`AF_INET`, a ``(address, " +"port, flowinfo, scope_id)`` 4-tuple for :const:`AF_INET6`), and is meant to " +"be passed to the :meth:`socket.connect` method." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.getaddrinfo`` with " +"arguments ``host``, ``port``, ``family``, ``type``, ``protocol``." +msgstr "" + +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 "" + +msgid "parameters can now be passed using keyword arguments." +msgstr "" + +msgid "" +"for IPv6 multicast addresses, string representing an address will not " +"contain ``%scope_id`` part." +msgstr "" + +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 and *name* " +"was provided, it is returned unchanged. If *name* was empty or equal to " +"``'0.0.0.0'``, the hostname from :func:`gethostname` is returned." +msgstr "" + +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 " +"resolution, and :func:`getaddrinfo` should be used instead for IPv4/v6 dual " +"stack support." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.gethostbyname`` with " +"argument ``hostname``." +msgstr "" + +msgid "" +"Translate a host name to IPv4 address format, extended interface. Return a " +"triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's " +"primary host name, *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 "" + +msgid "" +"Return a string containing the hostname of the machine where the Python " +"interpreter is currently executing." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.gethostname`` with no " +"arguments." +msgstr "" + +msgid "" +"Note: :func:`gethostname` doesn't always return the fully qualified domain " +"name; use :func:`getfqdn` for that." +msgstr "" + +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 " +"*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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.gethostbyaddr`` with " +"argument ``ip_address``." +msgstr "" + +msgid "" +"Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. " +"Depending on the settings of *flags*, the result can contain a fully " +"qualified domain name or numeric address representation in *host*. " +"Similarly, *port* can contain a string port name or a numeric port number." +msgstr "" + +msgid "" +"For IPv6 addresses, ``%scope_id`` is appended to the host part if *sockaddr* " +"contains meaningful *scope_id*. Usually this happens for multicast addresses." +msgstr "" + +msgid "" +"For more information about *flags* you can consult :manpage:`getnameinfo(3)`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.getnameinfo`` with " +"argument ``sockaddr``." +msgstr "" + +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 " +"chosen automatically if the protocol is omitted or zero." +msgstr "" + +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 "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.getservbyname`` with " +"arguments ``servicename``, ``protocolname``." +msgstr "" + +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 "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.getservbyport`` with " +"arguments ``port``, ``protocolname``." +msgstr "" + +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 "" + +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 "" + +msgid "" +"Raises :exc:`OverflowError` if *x* does not fit in a 16-bit unsigned integer." +msgstr "" + +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 "" + +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 "" + +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 " +"characters in length. This is useful when conversing with a program that " +"uses the standard C library and needs objects of type :c:struct:`in_addr`, " +"which is the C type for the 32-bit packed binary this function returns." +msgstr "" + +msgid "" +":func:`inet_aton` also accepts strings with less than three dots; see the " +"Unix manual page :manpage:`inet(3)` for details." +msgstr "" + +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`." +msgstr "" + +msgid "" +":func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be " +"used instead for IPv4/v6 dual stack support." +msgstr "" + +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, " +"'123.45.67.89'). This is useful when conversing with a program that uses " +"the standard C library and needs objects of type :c:struct:`in_addr`, which " +"is the C type for the 32-bit packed binary data this function takes as an " +"argument." +msgstr "" + +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 " +"IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual stack " +"support." +msgstr "" + +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:struct:`in_addr` (similar " +"to :func:`inet_aton`) or :c:struct:`in6_addr`." +msgstr "" + +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`." +msgstr "" + +msgid "" +":ref:`Availability `: Unix (maybe not all platforms), Windows." +msgstr "" + +msgid "Windows support added" +msgstr "" + +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, " +"``'7.10.0.5'`` or ``'5aef:2b::8'``). :func:`inet_ntop` is useful when a " +"library or network protocol returns an object of type :c:struct:`in_addr` " +"(similar to :func:`inet_ntoa`) or :c:struct:`in6_addr`." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +":ref:`Availability `: most Unix platforms, possibly others." +msgstr "" + +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." +msgstr "" + +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 " +"function may not precisely limit the amount of ancillary data that can be " +"received, since additional data may be able to fit into the padding area." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "" +"Set the machine's hostname to *name*. This will raise an :exc:`OSError` if " +"you don't have enough rights." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.sethostname`` with " +"argument ``name``." +msgstr "" + +msgid ":ref:`Availability `: Unix." +msgstr "" + +msgid "" +"Return a list of network interface information (index int, name string) " +"tuples. :exc:`OSError` if the system call fails." +msgstr "" + +msgid ":ref:`Availability `: Unix, Windows." +msgstr "" + +msgid "Windows support was added." +msgstr "" + +msgid "" +"On Windows network interfaces have different names in different contexts " +"(all names are examples):" +msgstr "" + +msgid "UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}``" +msgstr "UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}``" + +msgid "name: ``ethernet_32770``" +msgstr "name: ``ethernet_32770``" + +msgid "friendly name: ``vEthernet (nat)``" +msgstr "" + +msgid "description: ``Hyper-V Virtual Ethernet Adapter``" +msgstr "" + +msgid "" +"This function returns names of the second form from the list, " +"``ethernet_32770`` in this example case." +msgstr "" + +msgid "" +"Return a network interface index number corresponding to an interface " +"name. :exc:`OSError` if no interface with the given name exists." +msgstr "" + +msgid "\"Interface name\" is a name as documented in :func:`if_nameindex`." +msgstr "" + +msgid "" +"Return a network interface name corresponding to an interface index " +"number. :exc:`OSError` if no interface with the given index exists." +msgstr "" + +msgid "" +"Send the list of file descriptors *fds* over an :const:`AF_UNIX` socket " +"*sock*. The *fds* parameter is a sequence of file descriptors. " +"Consult :meth:`sendmsg` for the documentation of these parameters." +msgstr "" + +msgid "" +":ref:`Availability `: Unix supporting :meth:`~socket.sendmsg` " +"and :const:`SCM_RIGHTS` mechanism." +msgstr "" + +msgid "" +"Receive up to *maxfds* file descriptors from an :const:`AF_UNIX` socket " +"*sock*. Return ``(msg, list(fds), flags, addr)``. Consult :meth:`recvmsg` " +"for the documentation of these parameters." +msgstr "" + +msgid "" +":ref:`Availability `: Unix supporting :meth:`~socket.recvmsg` " +"and :const:`SCM_RIGHTS` mechanism." +msgstr "" + +msgid "Any truncated integers at the end of the list of file descriptors." +msgstr "" + +msgid "Socket Objects" +msgstr "" + +msgid "" +"Socket objects have the following methods. Except " +"for :meth:`~socket.makefile`, these correspond to Unix system calls " +"applicable to sockets." +msgstr "" + +msgid "" +"Support for the :term:`context manager` protocol was added. Exiting the " +"context manager is equivalent to calling :meth:`~socket.close`." +msgstr "" + +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 " +"connection." +msgstr "" + +msgid "The socket is now non-inheritable." +msgstr "" + +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)." +msgstr "" + +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 "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.bind`` with arguments " +"``self``, ``address``." +msgstr "" + +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 " +"flushed)." +msgstr "" + +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 "" + +msgid "" +":exc:`OSError` is now raised if an error occurs when the " +"underlying :c:func:`close` call is made." +msgstr "" + +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()`." +msgstr "" + +msgid "" +"Connect to a remote socket at *address*. (The format of *address* depends on " +"the address family --- see above.)" +msgstr "" + +msgid "" +"If the connection is interrupted by a signal, the method waits until the " +"connection completes, or raise a :exc:`TimeoutError` 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)." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.connect`` with arguments " +"``self``, ``address``." +msgstr "" + +msgid "" +"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 "" + +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, " +"asynchronous connects." +msgstr "" + +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 "" + +msgid "Duplicate the socket." +msgstr "" + +msgid "" +"Return the socket's file descriptor (a small integer), or -1 on failure. " +"This is useful with :func:`select.select`." +msgstr "" + +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 " +"have this limitation." +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"depends on the address family --- see above.)" +msgstr "" + +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)." +msgstr "" + +msgid "" +"Return ``True`` if socket is in blocking mode, ``False`` if in non-blocking." +msgstr "" + +msgid "This is equivalent to checking ``socket.gettimeout() == 0``." +msgstr "" + +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`." +msgstr "" + +msgid "platform" +msgstr "" + +msgid "Windows" +msgstr "Windows" + +msgid "" +"The :meth:`ioctl` method is a limited interface to the WSAIoctl system " +"interface. Please refer to the `Win32 documentation `_ for more " +"information." +msgstr "" + +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 "" + +msgid "" +"Currently only the following control codes are supported: ``SIO_RCVALL``, " +"``SIO_KEEPALIVE_VALS``, and ``SIO_LOOPBACK_FAST_PATH``." +msgstr "" + +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 " +"unaccepted connections that the system will allow before refusing new " +"connections. If not specified, a default reasonable value is chosen." +msgstr "" + +msgid "The *backlog* parameter is now optional." +msgstr "" + +msgid "" +"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 "" + +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 "" + +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." +msgstr "" + +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 "" + +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." +msgstr "" + +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 "" + +msgid "" +"Receive data from the socket. The return value is a pair ``(bytes, " +"address)`` where *bytes* is a bytes object representing the data 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 "" + +msgid "" +"For multicast IPv6 address, first item of *address* does not contain " +"``%scope_id`` part anymore. In order to get full IPv6 address " +"use :func:`getnameinfo`." +msgstr "" + +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 " +"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`." +msgstr "" + +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 " +"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 " +"receiving socket is unconnected, *address* is the address of the sending " +"socket, if available; otherwise, its value is unspecified." +msgstr "" + +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:expr:`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 "" + +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." +msgstr "" + +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`. ::" +msgstr "" + +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`." +msgstr "" + +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 " +"into the buffers, and *ancdata*, *msg_flags* and *address* are the same as " +"for :meth:`recvmsg`." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +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 " +"the meaning of the optional argument *flags*; it defaults to zero. (The " +"format of *address* depends on the address family --- see above.)" +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +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. Unlike :meth:`send`, this method continues to send data from *bytes* " +"until either all data has been sent or an error occurs. ``None`` is " +"returned on success. On error, an exception is raised, and there is no way " +"to determine how much data, if any, was successfully sent." +msgstr "" + +msgid "" +"The socket timeout is no longer reset each time data is sent successfully. " +"The socket timeout is now the maximum total duration to send all data." +msgstr "" + +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 " +"optional *flags* argument has the same meaning as for :meth:`recv` above. " +"Return the number of bytes sent. (The format of *address* depends on the " +"address family --- see above.)" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.sendto`` with arguments " +"``self``, ``address``." +msgstr "" + +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 " +"``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 " +"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 "" + +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` " +"mechanism. See also :meth:`recvmsg`. ::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``socket.sendmsg`` with arguments " +"``self``, ``address``." +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "" +"Set the :ref:`inheritable flag ` of the socket's file " +"descriptor or socket's handle." +msgstr "" + +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 "" + +msgid "" +"This method is a shorthand for certain :meth:`~socket.settimeout` calls:" +msgstr "" + +msgid "``sock.setblocking(True)`` is equivalent to ``sock.settimeout(None)``" +msgstr "" + +msgid "``sock.setblocking(False)`` is equivalent to ``sock.settimeout(0.0)``" +msgstr "" + +msgid "" +"The method no longer applies :const:`SOCK_NONBLOCK` flag " +"on :attr:`socket.type`." +msgstr "" + +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-" +"blocking mode. If ``None`` is given, the socket is put in blocking mode." +msgstr "" + +msgid "" +"For further information, please consult the :ref:`notes on socket timeouts " +"`." +msgstr "" + +msgid "" +"The method no longer toggles :const:`SOCK_NONBLOCK` flag " +"on :attr:`socket.type`." +msgstr "" + +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, ``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 " +"encode C structures as bytestrings). When *value* is set to ``None``, " +"*optlen* argument is required. It's equivalent to call :c:func:`setsockopt` " +"C function with ``optval=NULL`` and ``optlen=optlen``." +msgstr "" + +msgid "setsockopt(level, optname, None, optlen: int) form added." +msgstr "" + +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." +msgstr "" + +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 process." +msgstr "" + +msgid "" +"Note that there are no methods :meth:`read` or :meth:`write`; " +"use :meth:`~socket.recv` and :meth:`~socket.send` without *flags* argument " +"instead." +msgstr "" + +msgid "" +"Socket objects also have these (read-only) attributes that correspond to the " +"values given to the :class:`~socket.socket` constructor." +msgstr "" + +msgid "The socket family." +msgstr "" + +msgid "The socket type." +msgstr "" + +msgid "The socket protocol." +msgstr "" + +msgid "Notes on socket timeouts" +msgstr "" + +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 "" + +msgid "" +"In *blocking mode*, operations block until complete or the system returns an " +"error (such as connection timed out)." +msgstr "" + +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` module can be used to know when and whether a socket is " +"available for reading or writing." +msgstr "" + +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 "" + +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 " +"between file descriptors and socket objects that refer to the same network " +"endpoint. This implementation detail can have visible consequences if e.g. " +"you decide to use the :meth:`~socket.fileno()` of a socket." +msgstr "" + +msgid "Timeouts and the ``connect`` method" +msgstr "" + +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." +msgstr "" + +msgid "Timeouts and the ``accept`` method" +msgstr "" + +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:" +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +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`." +msgstr "" + +msgid "The first two examples support IPv4 only. ::" +msgstr "" + +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 " +"resolution, and sends traffic to the first one connected successfully. ::" +msgstr "" + +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 "" + +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 "" + +msgid "" +"After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the " +"socket, you can use the :meth:`socket.send` and :meth:`socket.recv` " +"operations (and their counterparts) on the socket object as usual." +msgstr "" + +msgid "This last example might require special privileges::" +msgstr "" + +msgid "" +"Running an example several times with too small delay between executions, " +"could lead to this error::" +msgstr "" + +msgid "" +"This is because the previous execution has left the socket in a " +"``TIME_WAIT`` state, and can't be immediately reused." +msgstr "" + +msgid "" +"There is a :mod:`socket` flag to set, in order to prevent " +"this, :data:`socket.SO_REUSEADDR`::" +msgstr "" + +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 "" + +msgid "" +"For an introduction to socket programming (in C), see the following papers:" +msgstr "" + +msgid "" +"*An Introductory 4.3BSD Interprocess Communication Tutorial*, by Stuart " +"Sechrest" +msgstr "" + +msgid "" +"*An Advanced 4.3BSD Interprocess Communication Tutorial*, by Samuel J. " +"Leffler et al," +msgstr "" + +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 " +"Extensions for IPv6." +msgstr "" diff --git a/library/socketserver.po b/library/socketserver.po index 35c741f667..7dac36514c 100644 --- a/library/socketserver.po +++ b/library/socketserver.po @@ -1,48 +1,39 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:13+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`socketserver` --- A framework for network servers" msgstr "" msgid "**Source code:** :source:`Lib/socketserver.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/socketserver.py`" msgid "" "The :mod:`socketserver` module simplifies the task of writing network " "servers." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "There are four basic concrete server classes:" msgstr "" @@ -84,9 +75,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 "" msgid "" @@ -96,8 +87,8 @@ msgid "" "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 "" msgid "" @@ -116,8 +107,7 @@ msgstr "" msgid "" "Note that :class:`UnixDatagramServer` derives from :class:`UDPServer`, not " "from :class:`UnixStreamServer` --- the only difference between an IP and a " -"Unix stream server is the address family, which is simply repeated in both " -"Unix server classes." +"Unix server is the address family." msgstr "" msgid "" @@ -127,9 +117,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -139,36 +129,37 @@ msgstr "" 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 "" 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 "" 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 "" msgid "These classes are pre-defined using the mix-in classes." msgstr "" 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 "" msgid "" @@ -193,8 +184,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 "" msgid "" @@ -215,8 +206,8 @@ msgstr "" 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." +"done in subclasses. The two parameters are stored in the " +"respective :attr:`server_address` and :attr:`RequestHandlerClass` attributes." msgstr "" msgid "" @@ -227,12 +218,13 @@ msgstr "" 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 "" msgid "" @@ -254,9 +246,9 @@ msgid "" msgstr "" 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." +"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 "" msgid "Clean up the server. May be overridden." @@ -274,9 +266,9 @@ msgstr "" 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 " -"containing a string giving the address, and an integer port number: " +"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 "" @@ -288,8 +280,8 @@ msgid "The server classes support the following class variables:" msgstr "" 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 "" msgid "" @@ -301,8 +293,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -347,10 +339,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -395,8 +387,8 @@ 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 "" msgid "" @@ -412,22 +404,19 @@ msgid "" msgstr "" 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." -msgstr "" - -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." +"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. " +"The :attr:`!rfile` attributes support the :class:`io.BufferedIOBase` " +"readable interface, and :attr:`!wfile` attributes support the :class:`!" +"io.BufferedIOBase` writable interface." msgstr "" msgid "" -":attr:`StreamRequestHandler.wfile` also supports the :class:`io." -"BufferedIOBase` writable interface." +":attr:`StreamRequestHandler.wfile` also supports " +"the :class:`io.BufferedIOBase` writable interface." msgstr "" msgid "Examples" @@ -476,8 +465,8 @@ msgid "Asynchronous Mixins" msgstr "" 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 "" msgid "An example for the :class:`ThreadingMixIn` class::" diff --git a/library/spwd.po b/library/spwd.po index 75114e3b06..a5c0bdeadb 100644 --- a/library/spwd.po +++ b/library/spwd.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:13+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`spwd` --- The shadow password database" msgstr "" @@ -36,15 +36,6 @@ msgid "" "available on various Unix versions." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "" "You must have enough privileges to access the shadow password database (this " "usually means you have to be root)." @@ -57,10 +48,10 @@ msgid "" msgstr "" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Meaning" msgstr "Znaczenie" @@ -93,7 +84,7 @@ msgid "Date of last change" msgstr "" msgid "3" -msgstr "" +msgstr "3" msgid "``sp_min``" msgstr "" @@ -111,7 +102,7 @@ msgid "Maximum number of days between changes" msgstr "" msgid "5" -msgstr "" +msgstr "5" msgid "``sp_warn``" msgstr "" @@ -120,7 +111,7 @@ msgid "Number of days before password expires to warn user about it" msgstr "" msgid "6" -msgstr "" +msgstr "6" msgid "``sp_inact``" msgstr "" @@ -129,7 +120,7 @@ msgid "Number of days after password expires until account is disabled" msgstr "" msgid "7" -msgstr "" +msgstr "7" msgid "``sp_expire``" msgstr "" @@ -147,8 +138,8 @@ msgid "Reserved" msgstr "" 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 "" msgid "The following functions are defined:" @@ -174,7 +165,7 @@ msgid "An interface to the group database, similar to this." msgstr "" msgid "Module :mod:`pwd`" -msgstr "" +msgstr "Moduł :mod:`pwd`" msgid "An interface to the normal password database, similar to this." msgstr "" diff --git a/library/sqlite3.po b/library/sqlite3.po index 48c4af124c..f01e2f6c1e 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -1,34 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:13+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`sqlite3` --- DB-API 2.0 interface for SQLite databases" msgstr "" msgid "**Source code:** :source:`Lib/sqlite3/`" -msgstr "" +msgstr "**Kod źródłowy:**. :source:`Lib/sqlite3/`" msgid "" "SQLite is a C library that provides a lightweight disk-based database that " @@ -41,8 +41,8 @@ msgstr "" msgid "" "The :mod:`!sqlite3` module was written by Gerhard Häring. It provides an " -"SQL interface compliant with the DB-API 2.0 specification described by :pep:" -"`249`, and requires SQLite 3.7.15 or newer." +"SQL interface compliant with the DB-API 2.0 specification described " +"by :pep:`249`, and requires SQLite 3.7.15 or newer." msgstr "" msgid "This document includes four main sections:" @@ -65,7 +65,7 @@ msgid "" msgstr "" msgid "https://www.sqlite.org" -msgstr "" +msgstr "https://www.sqlite.org" msgid "" "The SQLite web page; the documentation describes the syntax and the " @@ -73,7 +73,7 @@ msgid "" msgstr "" msgid "https://www.w3schools.com/sql/" -msgstr "" +msgstr "https://www.w3schools.com/sql/" msgid "Tutorial, reference and examples for learning SQL syntax." msgstr "" @@ -95,7 +95,7 @@ msgstr "" msgid "" "First, we need to create a new database and open a database connection to " -"allow :mod:`!sqlite3` to work with it. Call :func:`sqlite3.connect` to to " +"allow :mod:`!sqlite3` to work with it. Call :func:`sqlite3.connect` to " "create a connection to the database :file:`tutorial.db` in the current " "working directory, implicitly creating it if it does not exist:" msgstr "" @@ -107,8 +107,8 @@ msgstr "" msgid "" "In order to execute SQL statements and fetch results from SQL queries, we " -"will need to use a database cursor. Call :meth:`con.cursor() ` to create the :class:`Cursor`:" +"will need to use a database cursor. Call :meth:`con.cursor() " +"` to create the :class:`Cursor`:" msgstr "" msgid "" @@ -116,43 +116,44 @@ msgid "" "database table ``movie`` with columns for title, release year, and review " "score. For simplicity, we can just use column names in the table declaration " "-- thanks to the `flexible typing`_ feature of SQLite, specifying the data " -"types is optional. Execute the ``CREATE TABLE`` statement by calling :meth:" -"`cur.execute(...) `:" +"types is optional. Execute the ``CREATE TABLE`` statement by " +"calling :meth:`cur.execute(...) `:" msgstr "" msgid "" "We can verify that the new table has been created by querying the " "``sqlite_master`` table built-in to SQLite, which should now contain an " "entry for the ``movie`` table definition (see `The Schema Table`_ for " -"details). Execute that query by calling :meth:`cur.execute(...) `, assign the result to ``res``, and call :meth:`res.fetchone() " -"` to fetch the resulting row:" +"details). Execute that query by calling :meth:`cur.execute(...) " +"`, assign the result to ``res``, and " +"call :meth:`res.fetchone() ` to fetch the resulting row:" msgstr "" msgid "" -"We can see that the table has been created, as the query returns a :class:" -"`tuple` containing the table's name. If we query ``sqlite_master`` for a non-" -"existent table ``spam``, :meth:`!res.fetchone()` will return ``None``:" +"We can see that the table has been created, as the query returns " +"a :class:`tuple` containing the table's name. If we query ``sqlite_master`` " +"for a non-existent table ``spam``, :meth:`!res.fetchone()` will return " +"``None``:" msgstr "" msgid "" "Now, add two rows of data supplied as SQL literals by executing an " -"``INSERT`` statement, once again by calling :meth:`cur.execute(...) `:" +"``INSERT`` statement, once again by calling :meth:`cur.execute(...) " +"`:" msgstr "" msgid "" "The ``INSERT`` statement implicitly opens a transaction, which needs to be " "committed before changes are saved in the database (see :ref:`sqlite3-" -"controlling-transactions` for details). Call :meth:`con.commit() ` on the connection object to commit the transaction:" +"controlling-transactions` for details). Call :meth:`con.commit() " +"` on the connection object to commit the transaction:" msgstr "" msgid "" "We can verify that the data was inserted correctly by executing a ``SELECT`` " "query. Use the now-familiar :meth:`cur.execute(...) ` to " -"assign the result to ``res``, and call :meth:`res.fetchall() ` to return all resulting rows:" +"assign the result to ``res``, and call :meth:`res.fetchall() " +"` to return all resulting rows:" msgstr "" msgid "" @@ -161,8 +162,8 @@ msgid "" msgstr "" msgid "" -"Now, insert three more rows by calling :meth:`cur.executemany(...) `:" +"Now, insert three more rows by calling :meth:`cur.executemany(...) " +"`:" msgstr "" msgid "" @@ -183,9 +184,10 @@ msgid "" msgstr "" msgid "" -"Finally, verify that the database has been written to disk by calling :meth:" -"`con.close() ` to close the existing connection, opening a " -"new one, creating a new cursor, then querying the database:" +"Finally, verify that the database has been written to disk by " +"calling :meth:`con.close() ` to close the existing " +"connection, opening a new one, creating a new cursor, then querying the " +"database:" msgstr "" msgid "" @@ -197,23 +199,26 @@ msgid ":ref:`sqlite3-howtos` for further reading:" msgstr "" msgid ":ref:`sqlite3-placeholders`" -msgstr "" +msgstr ":ref:`sqlite3-placeholders`" msgid ":ref:`sqlite3-adapters`" -msgstr "" +msgstr ":ref:`sqlite3-adapters`" msgid ":ref:`sqlite3-converters`" -msgstr "" +msgstr ":ref:`sqlite3-converters`" msgid ":ref:`sqlite3-connection-context-manager`" -msgstr "" +msgstr ":ref:`sqlite3-connection-context-manager`" + +msgid ":ref:`sqlite3-howto-row-factory`" +msgstr ":ref:`sqlite3-howto-row-factory`" msgid "" ":ref:`sqlite3-explanation` for in-depth background on transaction control." msgstr "" msgid "Reference" -msgstr "" +msgstr "Dokumentacja" msgid "Module functions" msgstr "" @@ -222,7 +227,7 @@ msgid "Open a connection to an SQLite database." msgstr "" msgid "Parameters" -msgstr "" +msgstr "parametry" msgid "" "The path to the database file to be opened. Pass ``\":memory:\"`` to open a " @@ -230,22 +235,22 @@ msgid "" msgstr "" msgid "" -"How many seconds the connection should wait before raising an exception, if " -"the database is locked by another connection. If another connection opens a " -"transaction to modify the database, it will be locked until that transaction " -"is committed. Default five seconds." +"How many seconds the connection should wait before raising " +"an :exc:`OperationalError` when a table is locked. If another connection " +"opens a transaction to modify a table, that table will be locked until the " +"transaction is committed. Default five seconds." msgstr "" msgid "" "Control whether and how data types not :ref:`natively supported by SQLite " "` are looked up to be converted to Python types, using the " "converters registered with :func:`register_converter`. Set it to any " -"combination (using ``|``, bitwise or) of :const:`PARSE_DECLTYPES` and :const:" -"`PARSE_COLNAMES` to enable this. Column names takes precedence over declared " -"types if both flags are set. Types cannot be detected for generated fields " -"(for example ``max(data)``), even when the *detect_types* parameter is set; :" -"class:`str` will be returned instead. By default (``0``), type detection is " -"disabled." +"combination (using ``|``, bitwise or) of :const:`PARSE_DECLTYPES` " +"and :const:`PARSE_COLNAMES` to enable this. Column names takes precedence " +"over declared types if both flags are set. Types cannot be detected for " +"generated fields (for example ``max(data)``), even when the *detect_types* " +"parameter is set; :class:`str` will be returned instead. By default (``0``), " +"type detection is disabled." msgstr "" msgid "" @@ -257,9 +262,11 @@ msgid "" msgstr "" msgid "" -"If ``True`` (default), only the creating thread may use the connection. If " -"``False``, the connection may be shared across multiple threads; if so, " -"write operations should be serialized by the user to avoid data corruption." +"If ``True`` (default), :exc:`ProgrammingError` will be raised if the " +"database connection is used by a thread other than the one that created it. " +"If ``False``, the connection may be accessed in multiple threads; write " +"operations may need to be serialized by the user to avoid data corruption. " +"See :attr:`threadsafety` for more information." msgstr "" msgid "" @@ -269,7 +276,7 @@ msgstr "" msgid "" "The number of statements that :mod:`!sqlite3` should internally cache for " -"this connection, to avoid parsing overhead. By default, 128 statements." +"this connection, to avoid parsing overhead. By default, 100 statements." msgstr "" msgid "" @@ -311,7 +318,7 @@ msgid "" msgstr "" msgid "For example:" -msgstr "" +msgstr "Na przykład::" msgid "" "This function may be useful during command-line input to determine if the " @@ -324,12 +331,7 @@ msgid "" "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 :data:`sys.stderr`. Use ``False`` to disable the feature again." -msgstr "" - -msgid "" -"Register an :func:`unraisable hook handler ` for an " -"improved debug experience:" +"on ``sys.stderr``. Use ``False`` to disable the feature again." msgstr "" msgid "" @@ -404,15 +406,11 @@ msgstr "" msgid "" "String constant stating the type of parameter marker formatting expected by " -"the :mod:`!sqlite3` module. Required by the DB-API. Hard-coded to ``\"qmark" -"\"``." +"the :mod:`!sqlite3` module. Required by the DB-API. Hard-coded to " +"``\"qmark\"``." msgstr "" -msgid "" -"The :mod:`!sqlite3` module supports ``qmark``, ``numeric``, and ``named`` DB-" -"API parameter styles, because that is what the underlying SQLite library " -"supports. However, the DB-API does not allow multiple values for the " -"``paramstyle`` attribute." +msgid "The ``named`` DB-API parameter style is also supported." msgstr "" msgid "" @@ -420,81 +418,22 @@ msgid "" msgstr "" msgid "" -"Version number of the runtime SQLite library as a :class:`tuple` of :class:" -"`integers `." +"Version number of the runtime SQLite library as a :class:`tuple` " +"of :class:`integers `." msgstr "" msgid "" -"Integer constant required by the DB-API 2.0, stating the level of thread " -"safety the :mod:`!sqlite3` module supports. This attribute is set based on " -"the default `threading mode `_ the " -"underlying SQLite library is compiled with. The SQLite threading modes are:" +"Integer constant required by the DB-API, stating the level of thread safety " +"the :mod:`!sqlite3` module supports. Currently hard-coded to ``1``, meaning " +"*\"Threads may share the module, but not connections.\"* However, this may " +"not always be true. You can check the underlying SQLite library's compile-" +"time threaded mode using the following query::" msgstr "" msgid "" -"**Single-thread**: In this mode, all mutexes are disabled and SQLite is " -"unsafe to use in more than a single thread at once." -msgstr "" - -msgid "" -"**Multi-thread**: In this mode, SQLite can be safely used by multiple " -"threads provided that no single database connection is used simultaneously " -"in two or more threads." -msgstr "" - -msgid "" -"**Serialized**: In serialized mode, SQLite can be safely used by multiple " -"threads with no restriction." -msgstr "" - -msgid "" -"The mappings from SQLite threading modes to DB-API 2.0 threadsafety levels " -"are as follows:" -msgstr "" - -msgid "SQLite threading mode" -msgstr "" - -msgid "`threadsafety`_" -msgstr "" - -msgid "`SQLITE_THREADSAFE`_" -msgstr "" - -msgid "DB-API 2.0 meaning" -msgstr "" - -msgid "single-thread" -msgstr "" - -msgid "0" -msgstr "0" - -msgid "Threads may not share the module" -msgstr "" - -msgid "multi-thread" -msgstr "" - -msgid "1" -msgstr "1" - -msgid "2" -msgstr "2" - -msgid "Threads may share the module, but not connections" -msgstr "" - -msgid "serialized" -msgstr "" - -msgid "3" -msgstr "" - -msgid "Threads may share the module, connections and cursors" -msgstr "" - -msgid "Set *threadsafety* dynamically instead of hard-coding it to ``1``." +"Note that the `SQLITE_THREADSAFE levels `_ do not match the DB-API 2.0 ``threadsafety`` " +"levels." msgstr "" msgid "" @@ -512,12 +451,13 @@ msgstr "" msgid "" "Each open SQLite database is represented by a ``Connection`` object, which " -"is created using :func:`sqlite3.connect`. Their main purpose is creating :" -"class:`Cursor` objects, and :ref:`sqlite3-controlling-transactions`." +"is created using :func:`sqlite3.connect`. Their main purpose is " +"creating :class:`Cursor` objects, and :ref:`sqlite3-controlling-" +"transactions`." msgstr "" msgid ":ref:`sqlite3-connection-shortcuts`" -msgstr "" +msgstr ":ref:`sqlite3-connection-shortcuts`" msgid "An SQLite database connection has the following attributes and methods:" msgstr "" @@ -528,40 +468,6 @@ msgid "" "returning an instance of :class:`Cursor` or its subclasses." msgstr "" -msgid "" -"Open a :class:`Blob` handle to an existing :abbr:`BLOB (Binary Large " -"OBject)`." -msgstr "" - -msgid "The name of the table where the blob is located." -msgstr "" - -msgid "The name of the column where the blob is located." -msgstr "" - -msgid "The name of the row where the blob is located." -msgstr "" - -msgid "" -"Set to ``True`` if the blob should be opened without write permissions. " -"Defaults to ``False``." -msgstr "" - -msgid "" -"The name of the database where the blob is located. Defaults to ``\"main\"``." -msgstr "" - -msgid "Raises" -msgstr "" - -msgid "When trying to open a blob in a ``WITHOUT ROWID`` table." -msgstr "" - -msgid "" -"The blob size cannot be changed using the :class:`Blob` class. Use the SQL " -"function ``zeroblob`` to create a blob with a fixed size." -msgstr "" - msgid "" "Commit any pending transaction to the database. If there is no open " "transaction, this method is a no-op." @@ -616,6 +522,9 @@ msgid "" "optimizations." msgstr "" +msgid "Raises" +msgstr "" + msgid "If *deterministic* is used with SQLite versions older than 3.8.3." msgstr "" @@ -623,7 +532,7 @@ msgid "The *deterministic* parameter." msgstr "" msgid "Example:" -msgstr "" +msgstr "Przykład:" msgid "Create or remove a user-defined SQL aggregate function." msgstr "" @@ -663,53 +572,6 @@ msgstr "" msgid "Set to ``None`` to remove an existing SQL aggregate function." msgstr "" -msgid "Create or remove a user-defined aggregate window function." -msgstr "" - -msgid "The name of the SQL aggregate window function to create or remove." -msgstr "" - -msgid "" -"The number of arguments the SQL aggregate window function can accept. If " -"``-1``, it may take any number of arguments." -msgstr "" - -msgid "" -"A class that must implement the following methods: * ``step()``: Add a row " -"to the current window. * ``value()``: Return the current value of the " -"aggregate. * ``inverse()``: Remove a row from the current window. * " -"``finalize()``: Return the final result of the aggregate as :ref:`a type " -"natively supported by SQLite `. The number of arguments that " -"the ``step()`` and ``value()`` methods must accept is controlled by " -"*num_params*. Set to ``None`` to remove an existing SQL aggregate window " -"function." -msgstr "" - -msgid "A class that must implement the following methods:" -msgstr "" - -msgid "``step()``: Add a row to the current window." -msgstr "" - -msgid "``value()``: Return the current value of the aggregate." -msgstr "" - -msgid "``inverse()``: Remove a row from the current window." -msgstr "" - -msgid "" -"The number of arguments that the ``step()`` and ``value()`` methods must " -"accept is controlled by *num_params*." -msgstr "" - -msgid "Set to ``None`` to remove an existing SQL aggregate window function." -msgstr "" - -msgid "" -"If used with a version of SQLite older than 3.25.0, which does not support " -"aggregate window functions." -msgstr "" - msgid "" "Create a collation named *name* using the collating function *callable*. " "*callable* is passed two :class:`string ` arguments, and it should " @@ -731,14 +593,10 @@ msgstr "" msgid "Remove a collation function by setting *callable* to ``None``." msgstr "" -msgid "" -"The collation name can contain any Unicode character. Earlier, only ASCII " -"characters were allowed." -msgstr "" - msgid "" "Call this method from a different thread to abort any queries that might be " -"executing on the connection. Aborted queries will raise an exception." +"executing on the connection. Aborted queries will raise " +"an :exc:`OperationalError`." msgstr "" msgid "" @@ -765,12 +623,6 @@ msgid "" "module." msgstr "" -msgid "Passing ``None`` as *authorizer_callback* will disable the authorizer." -msgstr "" - -msgid "Added support for disabling the authorizer using ``None``." -msgstr "" - msgid "" "Register callable *progress_handler* to be invoked for every *n* " "instructions of the SQLite virtual machine. This is useful if you want to " @@ -797,10 +649,11 @@ msgstr "" msgid "" "The only argument passed to the callback is the statement (as :class:`str`) " "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 :ref:`transaction management " -"` of the :mod:`!sqlite3` module and the " -"execution of triggers defined in the current database." +"that the backend does not only run statements passed to " +"the :meth:`Cursor.execute` methods. Other sources include " +"the :ref:`transaction management ` of " +"the :mod:`!sqlite3` module and the execution of triggers defined in the " +"current database." msgstr "" msgid "Passing ``None`` as *trace_callback* will disable the trace callback." @@ -824,8 +677,8 @@ msgid "" "The :mod:`!sqlite3` module is not built with loadable extension support by " "default, because some platforms (notably macOS) have SQLite libraries which " "are compiled without this feature. To get loadable extension support, you " -"must pass the :option:`--enable-loadable-sqlite-extensions` option to :" -"program:`configure`." +"must pass the :option:`--enable-loadable-sqlite-extensions` option " +"to :program:`configure`." msgstr "" msgid "" @@ -852,8 +705,8 @@ msgstr "" msgid "" "Return an :term:`iterator` to dump the database as SQL source code. Useful " -"when saving an in-memory database for later restoration. Similar to the ``." -"dump`` command in the :program:`sqlite3` shell." +"when saving an in-memory database for later restoration. Similar to the " +"``.dump`` command in the :program:`sqlite3` shell." msgstr "" msgid "Create a backup of an SQLite database." @@ -896,84 +749,6 @@ msgstr "" msgid "Example 2, copy an existing database into a transient copy:" msgstr "" -msgid "Get a connection runtime limit." -msgstr "" - -msgid "The `SQLite limit category`_ to be queried." -msgstr "" - -msgid "If *category* is not recognised by the underlying SQLite library." -msgstr "" - -msgid "" -"Example, query the maximum length of an SQL statement for :class:" -"`Connection` ``con`` (the default is 1000000000):" -msgstr "" - -msgid "" -"Set a connection runtime limit. Attempts to increase a limit above its hard " -"upper bound are silently truncated to the hard upper bound. Regardless of " -"whether or not the limit was changed, the prior value of the limit is " -"returned." -msgstr "" - -msgid "The `SQLite limit category`_ to be set." -msgstr "" - -msgid "" -"The value of the new limit. If negative, the current limit is unchanged." -msgstr "" - -msgid "" -"Example, limit the number of attached databases to 1 for :class:`Connection` " -"``con`` (the default limit is 10):" -msgstr "" - -msgid "" -"Serialize a database into a :class:`bytes` object. For an ordinary on-disk " -"database file, the serialization is just a copy of the disk file. For an in-" -"memory database or a \"temp\" database, the serialization is the same " -"sequence of bytes which would be written to disk if that database were " -"backed up to disk." -msgstr "" - -msgid "The database name to be serialized. Defaults to ``\"main\"``." -msgstr "" - -msgid "" -"This method is only available if the underlying SQLite library has the " -"serialize API." -msgstr "" - -msgid "" -"Deserialize a :meth:`serialized ` database into a :class:" -"`Connection`. This method causes the database connection to disconnect from " -"database *name*, and reopen *name* as an in-memory database based on the " -"serialization contained in *data*." -msgstr "" - -msgid "A serialized database." -msgstr "" - -msgid "The database name to deserialize into. Defaults to ``\"main\"``." -msgstr "" - -msgid "" -"If the database connection is currently involved in a read transaction or a " -"backup operation." -msgstr "" - -msgid "If *data* does not contain a valid SQLite database." -msgstr "" - -msgid "If :func:`len(data) ` is larger than ``2**63 - 1``." -msgstr "" - -msgid "" -"This method is only available if the underlying SQLite library has the " -"deserialize API." -msgstr "" - msgid "" "This read-only attribute corresponds to the low-level SQLite `autocommit " "mode`_." @@ -999,18 +774,14 @@ msgid "" msgstr "" msgid "" -"A callable that accepts two arguments, a :class:`Cursor` object and the raw " -"row results as a :class:`tuple`, and returns a custom object representing an " -"SQLite row." +"The initial :attr:`~Cursor.row_factory` for :class:`Cursor` objects created " +"from this connection. Assigning to this attribute does not affect " +"the :attr:`!row_factory` of existing cursors belonging to this connection, " +"only new ones. Is ``None`` by default, meaning each row is returned as " +"a :class:`tuple`." msgstr "" -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 " -"optimized :class:`sqlite3.Row` type. :class:`Row` provides both index-based " -"and case-insensitive name-based access to columns with almost no memory " -"overhead. It will probably be better than your own custom dictionary-based " -"approach or even a db_row based solution." +msgid "See :ref:`sqlite3-howto-row-factory` for more details." msgstr "" msgid "" @@ -1031,30 +802,34 @@ msgstr "" msgid "" "A ``Cursor`` object represents a `database cursor`_ which is used to execute " "SQL statements, and manage the context of a fetch operation. Cursors are " -"created using :meth:`Connection.cursor`, or by using any of the :ref:" -"`connection shortcut methods `." +"created using :meth:`Connection.cursor`, or by using any of " +"the :ref:`connection shortcut methods `." msgstr "" msgid "" -"Cursor objects are :term:`iterators `, meaning that if you :meth:" -"`~Cursor.execute` a ``SELECT`` query, you can simply iterate over the cursor " -"to fetch the resulting rows:" +"Cursor objects are :term:`iterators `, meaning that if " +"you :meth:`~Cursor.execute` a ``SELECT`` query, you can simply iterate over " +"the cursor to fetch the resulting rows:" msgstr "" msgid "A :class:`Cursor` instance has the following attributes and methods." msgstr "" msgid "" -"Execute SQL statement *sql*. Bind values to the statement using :ref:" -"`placeholders ` that map to the :term:`sequence` or :" -"class:`dict` *parameters*." +"Execute SQL a single SQL statement, optionally binding Python values " +"using :ref:`placeholders `." +msgstr "" + +msgid "A single SQL statement." msgstr "" 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:" -"`ProgrammingError`. Use :meth:`executescript` if you want to execute " -"multiple SQL statements with one call." +"Python values to bind to placeholders in *sql*. A :class:`!dict` if named " +"placeholders are used. A :term:`!sequence` if unnamed placeholders are used. " +"See :ref:`sqlite3-placeholders`." +msgstr "" + +msgid "If *sql* contains more than one SQL statement." msgstr "" msgid "" @@ -1064,12 +839,26 @@ msgid "" "*sql*." msgstr "" +msgid "Use :meth:`executescript` to execute multiple SQL statements." +msgstr "" + +msgid "" +"For every item in *parameters*, repeatedly execute the :ref:`parameterized " +"` SQL statement *sql*." +msgstr "" + +msgid "Uses the same implicit transaction handling as :meth:`~Cursor.execute`." +msgstr "" + +msgid "A single SQL :abbr:`DML (Data Manipulation Language)` statement." +msgstr "" + msgid "" -"Execute :ref:`parameterized ` SQL statement *sql* " -"against all parameter sequences or mappings found in the sequence " -"*parameters*. It is also possible to use an :term:`iterator` yielding " -"parameters instead of a sequence. Uses the same implicit transaction " -"handling as :meth:`~Cursor.execute`." +"An :term:`!iterable` of parameters to bind with the placeholders in *sql*. " +"See :ref:`sqlite3-placeholders`." +msgstr "" + +msgid "If *sql* is not a DML statment." msgstr "" msgid "" @@ -1083,9 +872,9 @@ msgid "*sql_script* must be a :class:`string `." msgstr "" msgid "" -"If :attr:`~Connection.row_factory` is ``None``, return the next row query " -"result set as a :class:`tuple`. Else, pass it to the row factory and return " -"its result. Return ``None`` if no more data is available." +"If :attr:`~Cursor.row_factory` is ``None``, return the next row query result " +"set as a :class:`tuple`. Else, pass it to the row factory and return its " +"result. Return ``None`` if no more data is available." msgstr "" msgid "" @@ -1117,25 +906,25 @@ msgid "Close the cursor now (rather than whenever ``__del__`` is called)." msgstr "" 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 "" msgid "Required by the DB-API. Does nothing in :mod:`!sqlite3`." msgstr "" 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 " -"fetched per call." +"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 "" msgid "" "Read-only attribute that provides the SQLite database :class:`Connection` " -"belonging to the cursor. A :class:`Cursor` object created by calling :meth:" -"`con.cursor() ` will have a :attr:`connection` attribute " -"that refers to *con*:" +"belonging to the cursor. A :class:`Cursor` object created by " +"calling :meth:`con.cursor() ` will have " +"a :attr:`connection` attribute that refers to *con*:" msgstr "" msgid "" @@ -1170,73 +959,42 @@ msgid "" "methods." msgstr "" -msgid "Row objects" -msgstr "" - -msgid "" -"A :class:`!Row` instance serves as a highly optimized :attr:`~Connection." -"row_factory` for :class:`Connection` objects. It supports iteration, " -"equality testing, :func:`len`, and :term:`mapping` access by column name and " -"index." -msgstr "" - -msgid "Two row objects compare equal if have equal columns and equal members." -msgstr "" - -msgid "" -"Return a :class:`list` of column names as :class:`strings `. " -"Immediately after a query, it is the first member of each tuple in :attr:" -"`Cursor.description`." -msgstr "" - -msgid "Added support of slicing." -msgstr "" - -msgid "Blob objects" -msgstr "" - msgid "" -"A :class:`Blob` instance is a :term:`file-like object` that can read and " -"write data in an SQLite :abbr:`BLOB (Binary Large OBject)`. Call :func:" -"`len(blob) ` to get the size (number of bytes) of the blob. Use indices " -"and :term:`slices ` for direct access to the blob data." +"Control how a row fetched from this :class:`!Cursor` is represented. If " +"``None``, a row is represented as a :class:`tuple`. Can be set to the " +"included :class:`sqlite3.Row`; or a :term:`callable` that accepts two " +"arguments, a :class:`Cursor` object and the :class:`!tuple` of row values, " +"and returns a custom object representing an SQLite row." msgstr "" msgid "" -"Use the :class:`Blob` as a :term:`context manager` to ensure that the blob " -"handle is closed after use." +"Defaults to what :attr:`Connection.row_factory` was set to when the :class:`!" +"Cursor` was created. Assigning to this attribute does not " +"affect :attr:`Connection.row_factory` of the parent connection." msgstr "" -msgid "Close the blob." +msgid "Row objects" msgstr "" msgid "" -"The blob will be unusable from this point onward. An :class:`~sqlite3." -"Error` (or subclass) exception will be raised if any further operation is " -"attempted with the blob." +"A :class:`!Row` instance serves as a highly " +"optimized :attr:`~Connection.row_factory` for :class:`Connection` objects. " +"It supports iteration, equality testing, :func:`len`, and :term:`mapping` " +"access by column name and index." msgstr "" msgid "" -"Read *length* bytes of data from the blob at the current offset position. If " -"the end of the blob is reached, the data up to :abbr:`EOF (End of File)` " -"will be returned. When *length* is not specified, or is negative, :meth:" -"`~Blob.read` will read until the end of the blob." +"Two :class:`!Row` objects compare equal if they have identical column names " +"and values." msgstr "" msgid "" -"Write *data* to the blob at the current offset. This function cannot change " -"the blob length. Writing beyond the end of the blob will raise :exc:" -"`ValueError`." -msgstr "" - -msgid "Return the current access position of the blob." +"Return a :class:`list` of column names as :class:`strings `. " +"Immediately after a query, it is the first member of each tuple " +"in :attr:`Cursor.description`." msgstr "" -msgid "" -"Set the current access position of the blob to *offset*. The *origin* " -"argument defaults to :data:`os.SEEK_SET` (absolute blob positioning). Other " -"values for *origin* are :data:`os.SEEK_CUR` (seek relative to the current " -"position) and :data:`os.SEEK_END` (seek relative to the blob’s end)." +msgid "Added support of slicing." msgstr "" msgid "PrepareProtocol objects" @@ -1255,10 +1013,10 @@ msgid "The exception hierarchy is defined by the DB-API 2.0 (:pep:`249`)." msgstr "" msgid "" -"This exception is not currently raised by the :mod:`!sqlite3` module, but " -"may be raised by applications using :mod:`!sqlite3`, for example if a user-" -"defined function truncates data while inserting. ``Warning`` is a subclass " -"of :exc:`Exception`." +"This exception is raised by :mod:`!sqlite3` if an SQL query is not " +"a :class:`string `, or if multiple statements are passed " +"to :meth:`~Cursor.execute` or :meth:`~Cursor.executemany`. ``Warning`` is a " +"subclass of :exc:`Exception`." msgstr "" msgid "" @@ -1268,24 +1026,9 @@ msgid "" msgstr "" msgid "" -"If the exception originated from within the SQLite library, the following " -"two attributes are added to the exception:" -msgstr "" - -msgid "" -"The numeric error code from the `SQLite API `_" -msgstr "" - -msgid "" -"The symbolic name of the numeric error code from the `SQLite API `_" -msgstr "" - -msgid "" -"Exception raised for misuse of the low-level SQLite C API. In other words, " -"if this exception is raised, it probably indicates a bug in the :mod:`!" -"sqlite3` module. ``InterfaceError`` is a subclass of :exc:`Error`." +"This exception is raised by :mod:`!sqlite3` for fetch across rollback, or " +"if :mod:`!sqlite3` is unable to bind parameters. ``InterfaceError`` is a " +"subclass of :exc:`Error`." msgstr "" msgid "" @@ -1321,9 +1064,9 @@ msgstr "" msgid "" "Exception raised for :mod:`!sqlite3` API programming errors, for example " -"supplying the wrong number of bindings to a query, or trying to operate on a " -"closed :class:`Connection`. ``ProgrammingError`` is a subclass of :exc:" -"`DatabaseError`." +"trying to operate on a closed :class:`Connection`, or trying to execute non-" +"DML statements with :meth:`~Cursor.executemany`. ``ProgrammingError`` is a " +"subclass of :exc:`DatabaseError`." msgstr "" msgid "" @@ -1356,28 +1099,28 @@ msgid "``None``" msgstr "``None`` - z ang. - ``Żaden``" msgid "``NULL``" -msgstr "" +msgstr "``NULL``" msgid ":class:`int`" -msgstr "" +msgstr ":class:`int`" msgid "``INTEGER``" msgstr "" msgid ":class:`float`" -msgstr "" +msgstr ":class:`float`" msgid "``REAL``" msgstr "" msgid ":class:`str`" -msgstr "" +msgstr ":class:`str`" msgid "``TEXT``" msgstr "" msgid ":class:`bytes`" -msgstr "" +msgstr ":class:`bytes`" msgid "``BLOB``" msgstr "" @@ -1405,9 +1148,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1441,23 +1184,30 @@ msgstr "" msgid "" "SQL operations usually need to use values from Python variables. However, " "beware of using Python's string operations to assemble queries, as they are " -"vulnerable to `SQL injection attacks`_ (see the `xkcd webcomic `_ for a humorous example of what can go wrong)::" +"vulnerable to `SQL injection attacks`_. For example, an attacker can simply " +"close the single quote and inject ``OR TRUE`` to select all rows::" msgstr "" msgid "" "Instead, use the DB-API's parameter substitution. To insert a variable into " "a query string, use a placeholder in the string, and substitute the actual " "values into the query by providing them as a :class:`tuple` of values to the " -"second argument of the cursor's :meth:`~Cursor.execute` method. An SQL " -"statement may use one of two kinds of placeholders: question marks (qmark " -"style) or named placeholders (named style). For the qmark style, " -"``parameters`` must be a :term:`sequence `. For the named style, " -"it can be either a :term:`sequence ` or :class:`dict` instance. " -"The length of the :term:`sequence ` must match the number of " -"placeholders, or a :exc:`ProgrammingError` is raised. If a :class:`dict` is " -"given, it must contain keys for all named parameters. Any extra items are " -"ignored. Here's an example of both styles:" +"second argument of the cursor's :meth:`~Cursor.execute` method." +msgstr "" + +msgid "" +"An SQL statement may use one of two kinds of placeholders: question marks " +"(qmark style) or named placeholders (named style). For the qmark style, " +"*parameters* must be a :term:`sequence` whose length must match the number " +"of placeholders, or a :exc:`ProgrammingError` is raised. For the named " +"style, *parameters* should be an instance of a :class:`dict` (or a " +"subclass), which must contain keys for all named parameters; any extra items " +"are ignored. Here's an example of both styles:" +msgstr "" + +msgid "" +":pep:`249` numeric placeholders are *not* supported. If used, they will be " +"interpreted as named placeholders." msgstr "" msgid "How to adapt custom Python types to SQLite values" @@ -1536,8 +1286,8 @@ msgid "Explicit: set *detect_types* to :const:`PARSE_COLNAMES`" msgstr "" msgid "" -"Both: set *detect_types* to ``sqlite3.PARSE_DECLTYPES | sqlite3." -"PARSE_COLNAMES``. Column names take precedence over declared types." +"Both: set *detect_types* to ``sqlite3.PARSE_DECLTYPES | " +"sqlite3.PARSE_COLNAMES``. Column names take precedence over declared types." msgstr "" msgid "The following example illustrates the implicit and explicit approaches:" @@ -1553,14 +1303,14 @@ msgid "How to use connection shortcut methods" msgstr "" msgid "" -"Using the :meth:`~Connection.execute`, :meth:`~Connection.executemany`, and :" -"meth:`~Connection.executescript` methods of the :class:`Connection` class, " -"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 :meth:`~Connection.execute`, :meth:`~Connection.executemany`, " +"and :meth:`~Connection.executescript` methods of the :class:`Connection` " +"class, 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 "" msgid "How to use the connection context manager" @@ -1607,6 +1357,53 @@ msgid "" "found in the `SQLite URI documentation`_." msgstr "" +msgid "How to create and use row factories" +msgstr "" + +msgid "" +"By default, :mod:`!sqlite3` represents each row as a :class:`tuple`. If " +"a :class:`!tuple` does not suit your needs, you can use " +"the :class:`sqlite3.Row` class or a custom :attr:`~Cursor.row_factory`." +msgstr "" + +msgid "" +"While :attr:`!row_factory` exists as an attribute both on " +"the :class:`Cursor` and the :class:`Connection`, it is recommended to " +"set :class:`Connection.row_factory`, so all cursors created from the " +"connection will use the same row factory." +msgstr "" + +msgid "" +":class:`!Row` provides indexed and case-insensitive named access to columns, " +"with minimal memory overhead and performance impact over a :class:`!tuple`. " +"To use :class:`!Row` as a row factory, assign it to the :attr:`!row_factory` " +"attribute:" +msgstr "" + +msgid "Queries now return :class:`!Row` objects:" +msgstr "" + +msgid "" +"You can create a custom :attr:`~Cursor.row_factory` that returns each row as " +"a :class:`dict`, with column names mapped to values:" +msgstr "" + +msgid "" +"Using it, queries now return a :class:`!dict` instead of a :class:`!tuple`:" +msgstr "" + +msgid "The following row factory returns a :term:`named tuple`:" +msgstr "" + +msgid ":func:`!namedtuple_factory` can be used as follows:" +msgstr "" + +msgid "" +"With some adjustments, the above recipe can be adapted to use " +"a :class:`~dataclasses.dataclass`, or any other custom class, instead of " +"a :class:`~collections.namedtuple`." +msgstr "" + msgid "Explanation" msgstr "Wytłumaczenie" @@ -1620,15 +1417,15 @@ msgstr "" msgid "" "If the connection attribute :attr:`~Connection.isolation_level` is not " -"``None``, new transactions are implicitly opened before :meth:`~Cursor." -"execute` and :meth:`~Cursor.executemany` executes ``INSERT``, ``UPDATE``, " -"``DELETE``, or ``REPLACE`` statements; for other statements, no implicit " -"transaction handling is performed. Use the :meth:`~Connection.commit` and :" -"meth:`~Connection.rollback` methods to respectively commit and roll back " -"pending transactions. You can choose the underlying `SQLite transaction " -"behaviour`_ — that is, whether and what type of ``BEGIN`` statements :mod:`!" -"sqlite3` implicitly executes – via the :attr:`~Connection.isolation_level` " -"attribute." +"``None``, new transactions are implicitly opened " +"before :meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes " +"``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements; for other " +"statements, no implicit transaction handling is performed. Use " +"the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods to " +"respectively commit and roll back pending transactions. You can choose the " +"underlying `SQLite transaction behaviour`_ — that is, whether and what type " +"of ``BEGIN`` statements :mod:`!sqlite3` implicitly executes – via " +"the :attr:`~Connection.isolation_level` attribute." msgstr "" msgid "" @@ -1636,8 +1433,8 @@ msgid "" "are implicitly opened at all. This leaves the underlying SQLite library in " "`autocommit mode`_, but also allows the user to perform their own " "transaction handling using explicit SQL statements. The underlying SQLite " -"library autocommit mode can be queried using the :attr:`~Connection." -"in_transaction` attribute." +"library autocommit mode can be queried using " +"the :attr:`~Connection.in_transaction` attribute." msgstr "" msgid "" diff --git a/library/ssl.po b/library/ssl.po index e174b4df27..abf18633b7 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -1,35 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 -# Maciej Olko , 2021 -# Michał Biliński , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:13+0000\n" -"Last-Translator: Michał Biliński , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`ssl` --- TLS/SSL wrapper for socket objects" msgstr "" msgid "**Source code:** :source:`Lib/ssl.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/ssl.py`" msgid "" "This module provides access to Transport Layer Security (often known as " @@ -53,15 +51,6 @@ msgid "" "are not necessarily appropriate for your application." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "" "This section documents the objects and functions in the ``ssl`` module; for " "more general information about TLS, SSL, and certificates, the reader is " @@ -107,12 +96,13 @@ msgid "Socket creation" msgstr "" 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 "" msgid "Client socket example with default context and IPv4/IPv6 dual stack::" @@ -147,13 +137,13 @@ msgid "" msgstr "" msgid "" -"The settings are: :data:`PROTOCOL_TLS_CLIENT` or :data:" -"`PROTOCOL_TLS_SERVER`, :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 " +"The settings are: :data:`PROTOCOL_TLS_CLIENT` " +"or :data:`PROTOCOL_TLS_SERVER`, :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 "" @@ -170,8 +160,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -179,9 +169,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 "" msgid "RC4 was dropped from the default cipher string." @@ -197,8 +187,9 @@ msgid "Support for key logging to :envvar:`SSLKEYLOGFILE` was added." msgstr "" msgid "" -"The context now uses :data:`PROTOCOL_TLS_CLIENT` or :data:" -"`PROTOCOL_TLS_SERVER` protocol instead of generic :data:`PROTOCOL_TLS`." +"The context now uses :data:`PROTOCOL_TLS_CLIENT` " +"or :data:`PROTOCOL_TLS_SERVER` protocol instead of " +"generic :data:`PROTOCOL_TLS`." msgstr "" msgid "Exceptions" @@ -278,11 +269,11 @@ msgid "Random generation" msgstr "" 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 "" msgid "For almost all applications :func:`os.urandom` is preferable." @@ -310,15 +301,15 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -335,12 +326,12 @@ msgid "Certificate handling" msgstr "" 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 "" msgid "" @@ -373,8 +364,8 @@ msgstr "" 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 "" msgid "Here's an example:" @@ -395,18 +386,19 @@ 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. A timeout can be specified with the ``timeout`` parameter." +"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. A timeout can be specified with the " +"``timeout`` parameter." msgstr "" msgid "This function is now IPv6-compatible." msgstr "" 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 "" msgid "The *timeout* parameter was added." @@ -454,6 +446,11 @@ msgstr "" msgid ":attr:`openssl_capath` - hard coded path to a capath directory" msgstr "" +msgid "" +":ref:`Availability `: LibreSSL ignores the environment " +"vars :attr:`openssl_cafile_env` and :attr:`openssl_capath_env`." +msgstr "" + msgid "" "Retrieve certificates from Windows' system cert store. *store_name* may be " "one of ``CA``, ``ROOT`` or ``MY``. Windows may provide additional cert " @@ -462,14 +459,15 @@ msgstr "" 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 "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid ":ref:`Availability `: Windows." msgstr "" @@ -481,36 +479,38 @@ msgstr "" 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 "" 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 "" 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 "" 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 "" 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 "" msgid "Constants" @@ -540,8 +540,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 "" msgid "" @@ -565,9 +565,9 @@ msgid "" "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 " -"default." +"to verify the authenticity of a cert. :const:`PROTOCOL_TLS_CLIENT` " +"uses :const:`CERT_REQUIRED` and enables :attr:`~SSLContext.check_hostname` " +"by default." msgstr "" msgid "" @@ -589,8 +589,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 been loaded with :attr:`SSLContext." -"load_verify_locations`, validation will fail." +"ancestor CA). If no proper CRL has been loaded " +"with :attr:`SSLContext.load_verify_locations`, validation will fail." msgstr "" msgid "" @@ -633,8 +633,8 @@ msgstr "" msgid "" "TLS clients and servers require different default settings for secure " -"communication. The generic TLS protocol constant is deprecated in favor of :" -"data:`PROTOCOL_TLS_CLIENT` and :data:`PROTOCOL_TLS_SERVER`." +"communication. The generic TLS protocol constant is deprecated in favor " +"of :data:`PROTOCOL_TLS_CLIENT` and :data:`PROTOCOL_TLS_SERVER`." msgstr "" msgid "" @@ -682,9 +682,9 @@ msgstr "" msgid "" "OpenSSL has deprecated all version specific protocols. Use the default " -"protocol :data:`PROTOCOL_TLS_SERVER` or :data:`PROTOCOL_TLS_CLIENT` with :" -"attr:`SSLContext.minimum_version` and :attr:`SSLContext.maximum_version` " -"instead." +"protocol :data:`PROTOCOL_TLS_SERVER` or :data:`PROTOCOL_TLS_CLIENT` " +"with :attr:`SSLContext.minimum_version` " +"and :attr:`SSLContext.maximum_version` instead." msgstr "" msgid "Selects TLS version 1.0 as the channel encryption protocol." @@ -734,8 +734,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -893,33 +894,34 @@ msgid "" msgstr "" 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 "" msgid ":class:`enum.IntEnum` collection of ALERT_DESCRIPTION_* constants." msgstr "" 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 "" 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 "" msgid ":class:`enum.IntEnum` collection of SSL_ERROR_* constants." msgstr "" 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 "" msgid "" @@ -932,8 +934,8 @@ msgid "SSL 3.0 to TLS 1.3." msgstr "" msgid "" -"All :class:`TLSVersion` members except :attr:`TLSVersion.TLSv1_2` and :attr:" -"`TLSVersion.TLSv1_3` are deprecated." +"All :class:`TLSVersion` members except :attr:`TLSVersion.TLSv1_2` " +"and :attr:`TLSVersion.TLSv1_3` are deprecated." msgstr "" msgid "SSL Sockets" @@ -960,17 +962,13 @@ msgstr "" msgid ":meth:`~socket.socket.fileno()`" msgstr "" -msgid "" -":meth:`~socket.socket.getpeername()`, :meth:`~socket.socket.getsockname()`" +msgid ":meth:`~socket.socket.getpeername()`, :meth:`~socket.socket.getsockname()`" msgstr "" -msgid "" -":meth:`~socket.socket.getsockopt()`, :meth:`~socket.socket.setsockopt()`" +msgid ":meth:`~socket.socket.getsockopt()`, :meth:`~socket.socket.setsockopt()`" msgstr "" -msgid "" -":meth:`~socket.socket.gettimeout()`, :meth:`~socket.socket.settimeout()`, :" -"meth:`~socket.socket.setblocking()`" +msgid ":meth:`~socket.socket.gettimeout()`, :meth:`~socket.socket.settimeout()`, :meth:`~socket.socket.setblocking()`" msgstr "" msgid ":meth:`~socket.socket.listen()`" @@ -1005,8 +1003,8 @@ msgid "" msgstr "" 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 "" msgid "The :meth:`sendfile` method was added." @@ -1014,19 +1012,20 @@ msgstr "" 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 the maximum total duration of " +"the shutdown." msgstr "" 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 "" 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 "" msgid "" @@ -1045,8 +1044,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1055,8 +1054,8 @@ msgid "" msgstr "" msgid "" -"The socket timeout is no more reset each time bytes are received or sent. " -"The socket timeout is now to maximum total duration to read up to *len* " +"The socket timeout is no longer reset each time bytes are received or sent. " +"The socket timeout is now the maximum total duration to read up to *len* " "bytes." msgstr "" @@ -1069,8 +1068,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1079,8 +1078,8 @@ msgid "" msgstr "" msgid "" -"The socket timeout is no more reset each time bytes are received or sent. " -"The socket timeout is now to maximum total duration to write *buf*." +"The socket timeout is no longer reset each time bytes are received or sent. " +"The socket timeout is now the maximum total duration to write *buf*." msgstr "" msgid "Use :meth:`~SSLSocket.send` instead of :meth:`~SSLSocket.write`." @@ -1090,40 +1089,41 @@ 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." +"active SSL connection, i.e. the handshake was completed " +"and :meth:`SSLSocket.unwrap` was not called." msgstr "" 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 "" msgid "Perform the SSL setup handshake." msgstr "" 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 "" msgid "" -"The socket timeout is no more reset each time bytes are received or sent. " -"The socket timeout is now to maximum total duration of the handshake." +"The socket timeout is no longer reset each time bytes are received or sent. " +"The socket timeout is now the maximum total duration of the handshake." msgstr "" 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 " -"send to the peer." +"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 sent to the peer." msgstr "" 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 "" msgid "" @@ -1145,8 +1145,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1164,9 +1164,9 @@ msgstr "" 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 "" msgid "" @@ -1191,7 +1191,7 @@ msgid "" msgstr "" msgid "" -"Return the list of ciphers shared by the client during the handshake. Each " +"Return the list of ciphers available in both the client and server. 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 " @@ -1217,16 +1217,17 @@ msgstr "" 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." +"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 "" 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 "" msgid "" @@ -1250,8 +1251,8 @@ msgstr "" 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 "" msgid "" @@ -1261,8 +1262,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1273,8 +1274,8 @@ msgstr "" msgid "" "Return the actual SSL protocol version negotiated by the connection as a " "string, or ``None`` if 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 "" @@ -1303,15 +1304,15 @@ msgstr "" 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 "" 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 "" msgid "SSL Contexts" @@ -1410,27 +1411,26 @@ msgid "" msgstr "" 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 "" msgid "" ":class:`SSLContext` without protocol argument is deprecated. The context " -"class will either require :data:`PROTOCOL_TLS_CLIENT` or :data:" -"`PROTOCOL_TLS_SERVER` protocol in the future." +"class will either require :data:`PROTOCOL_TLS_CLIENT` " +"or :data:`PROTOCOL_TLS_SERVER` protocol in the future." msgstr "" msgid "" "The default cipher suites now include only secure AES and ChaCha20 ciphers " "with forward secrecy and security level 2. RSA and DH keys with less than " -"2048 bits and ECC keys with less than 224 bits are prohibited. :data:" -"`PROTOCOL_TLS`, :data:`PROTOCOL_TLS_CLIENT`, and :data:`PROTOCOL_TLS_SERVER` " -"use TLS 1.2 as minimum TLS version." +"2048 bits and ECC keys with less than 224 bits are " +"prohibited. :data:`PROTOCOL_TLS`, :data:`PROTOCOL_TLS_CLIENT`, " +"and :data:`PROTOCOL_TLS_SERVER` use TLS 1.2 as minimum TLS version." msgstr "" msgid ":class:`SSLContext` objects have the following methods and attributes:" @@ -1483,9 +1483,9 @@ msgstr "" 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 all systems it calls :meth:`SSLContext." -"set_default_verify_paths`. In the future the method may load CA certificates " -"from other locations, too." +"system stores. On all systems it " +"calls :meth:`SSLContext.set_default_verify_paths`. In the future the method " +"may load CA certificates from other locations, too." msgstr "" msgid "" @@ -1498,8 +1498,9 @@ msgstr "" 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." +"other peers' certificates when :data:`verify_mode` is other " +"than :data:`CERT_NONE`. At least one of *cafile* or *capath* must be " +"specified." msgstr "" msgid "" @@ -1517,8 +1518,8 @@ msgstr "" msgid "" "The *capath* string, if present, is the path to a directory containing " "several CA certificates in PEM format, following an `OpenSSL specific layout " -"`_." +"`_." msgstr "" msgid "" @@ -1546,8 +1547,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1573,15 +1574,15 @@ msgid "" msgstr "" msgid "" -"TLS 1.3 cipher suites cannot be disabled with :meth:`~SSLContext." -"set_ciphers`." +"TLS 1.3 cipher suites cannot be disabled " +"with :meth:`~SSLContext.set_ciphers`." msgstr "" 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', " -"'spdy/2']``, ordered by preference. The selection of a protocol will happen " -"during the handshake, and will play out according to :rfc:`7301`. After a " +"handshake. It should be a list of ASCII 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 :rfc:`7301`. After a " "successful handshake, the :meth:`SSLSocket.selected_alpn_protocol` method " "will return the agreed-upon protocol." msgstr "" @@ -1597,9 +1598,9 @@ msgid "" "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 " -"protocol." +"Layer_Protocol_Negotiation>`_. After a successful handshake, " +"the :meth:`SSLSocket.selected_npn_protocol` method will return the agreed-" +"upon protocol." msgstr "" msgid "" @@ -1631,33 +1632,41 @@ msgid "" msgstr "" 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 "" + +msgid "" +"If the callback assigns a new context to :attr:`SSLSocket.context`, any " +"further ClientHello message on the same connection (for example after a TLS " +"1.3 HelloRetryRequest) is dispatched to the new context's *sni_callback*, if " +"it has one; the original callback is not called again for that connection." msgstr "" 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`. The :meth:`SSLSocket." -"getpeercert`, :meth:`SSLSocket.cipher` and :meth:`SSLSocket.compression` " -"methods require that the TLS connection has progressed beyond the TLS Client " -"Hello and therefore will not return meaningful values nor can they be called " -"safely." +"methods and attributes are usable " +"like :meth:`SSLSocket.selected_alpn_protocol` and :attr:`SSLSocket.context`. " +"The :meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.cipher` " +"and :meth:`SSLSocket.compression` methods require that the TLS connection " +"has progressed beyond the TLS Client Hello and therefore will not return " +"meaningful values nor can they be called safely." msgstr "" 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 "" 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 "" msgid "" @@ -1665,6 +1674,12 @@ msgid "" "OPENSSL_NO_TLSEXT defined when it was built." msgstr "" +msgid "" +"After the callback assigns a new :attr:`SSLSocket.context`, later " +"ClientHello messages on the connection are dispatched to the new context's " +"*sni_callback*." +msgstr "" + msgid "" "This is a legacy API retained for backwards compatibility. When possible, " "you should use :attr:`sni_callback` instead. The given " @@ -1688,8 +1703,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1701,8 +1716,8 @@ msgid "" msgstr "" 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 "" msgid "This method is not available if :data:`HAS_ECDH` is ``False``." @@ -1717,10 +1732,11 @@ msgid "Vincent Bernat." msgstr "" 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 "" msgid "" @@ -1734,8 +1750,8 @@ msgid "" "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 "" msgid "" @@ -1749,19 +1765,19 @@ msgstr "" 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." +"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 "" 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 "" msgid "*session*, see :attr:`~SSLSocket.session`." @@ -1776,37 +1792,49 @@ msgid "*session* argument was added." msgstr "" msgid "" -"The method returns an instance of :attr:`SSLContext.sslsocket_class` instead " +"The method returns on instance of :attr:`SSLContext.sslsocket_class` instead " "of hard-coded :class:`SSLSocket`." msgstr "" 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 "" 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 "" msgid "" "The *server_side*, *server_hostname* and *session* parameters have the same " -"meaning as in :meth:`SSLContext.wrap_socket`." +"meaning as in :meth:`SSLContext.wrap_socket`, and are validated in the same " +"way: in particular a :exc:`DeprecationWarning` is raised " +"when :attr:`~SSLContext.check_hostname` is enabled but no *server_hostname* " +"is given, since there would be no name to match the peer's certificate " +"against. In Python 3.13 and later a ``ValueError`` is raised instead." msgstr "" msgid "" -"The method returns an instance of :attr:`SSLContext.sslobject_class` instead " +"The method returns on instance of :attr:`SSLContext.sslobject_class` instead " "of hard-coded :class:`SSLObject`." msgstr "" 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 *server_side*, *server_hostname* and *session* parameters are now " +"validated as :meth:`SSLContext.wrap_socket` validates them. Previously a " +"context with :attr:`~SSLContext.check_hostname` enabled and no " +"*server_hostname* was accepted, and verified the certificate chain but never " +"the peer's identity." +msgstr "" + +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`." msgstr "" msgid "" @@ -1819,21 +1847,22 @@ msgstr "" msgid "" "Whether to match the peer cert's 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 " +"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." +"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 "" 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 "" msgid "" @@ -1847,17 +1876,19 @@ msgstr "" 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 "" 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 "" msgid "" @@ -1866,15 +1897,15 @@ msgid "" msgstr "" msgid "" -"Control the number of TLS 1.3 session tickets of a :attr:" -"`PROTOCOL_TLS_SERVER` context. The setting has no impact on TLS 1.0 to 1.2 " -"connections." +"Control the number of TLS 1.3 session tickets of " +"a :attr:`PROTOCOL_TLS_SERVER` context. The setting has no impact on TLS 1.0 " +"to 1.2 connections." msgstr "" 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 "" msgid ":attr:`SSLContext.options` returns :class:`Options` flags:" @@ -1882,8 +1913,8 @@ msgstr "" msgid "" "All ``OP_NO_SSL*`` and ``OP_NO_TLS*`` options have been deprecated since " -"Python 3.7. Use :attr:`SSLContext.minimum_version` and :attr:`SSLContext." -"maximum_version` instead." +"Python 3.7. Use :attr:`SSLContext.minimum_version` " +"and :attr:`SSLContext.maximum_version` instead." msgstr "" msgid "" @@ -1901,8 +1932,9 @@ msgstr "" 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 "" msgid "" @@ -1928,9 +1960,9 @@ msgid "" msgstr "" 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)." +"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)." msgstr "" msgid ":attr:`SSLContext.verify_flags` returns :class:`VerifyFlags` flags:" @@ -1938,8 +1970,8 @@ msgstr "" 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 "" msgid ":attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:" @@ -1984,9 +2016,9 @@ msgid "" msgstr "" 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 "" msgid "Certificate chains" @@ -2016,9 +2048,9 @@ msgid "" "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 "" msgid "Combined key and certificate" @@ -2088,8 +2120,8 @@ msgid "" msgstr "" 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::" @@ -2121,8 +2153,9 @@ msgstr "" 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 "" msgid "" @@ -2150,10 +2183,10 @@ 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 "" @@ -2167,8 +2200,8 @@ msgid "" "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`." +"and :meth:`SSLSocket.send` failures, and retry after another call " +"to :func:`~select.select`." msgstr "" msgid "" @@ -2180,31 +2213,32 @@ msgid "" msgstr "" 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 "" 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 "" 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." +"the :mod:`selectors` module and " +"handles :exc:`SSLWantWriteError`, :exc:`SSLWantReadError` " +"and :exc:`BlockingIOError` exceptions. It runs the SSL handshake " +"asynchronously as well." msgstr "" msgid "Memory BIO Support" msgstr "" 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 "" @@ -2225,11 +2259,11 @@ 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." +"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 "" msgid "" @@ -2258,61 +2292,61 @@ msgid "The following methods are available:" msgstr "" msgid ":attr:`~SSLSocket.context`" -msgstr "" +msgstr ":attr:`~SSLSocket.context`" msgid ":attr:`~SSLSocket.server_side`" -msgstr "" +msgstr ":attr:`~SSLSocket.server_side`" msgid ":attr:`~SSLSocket.server_hostname`" -msgstr "" +msgstr ":attr:`~SSLSocket.server_hostname`" msgid ":attr:`~SSLSocket.session`" -msgstr "" +msgstr ":attr:`~SSLSocket.session`" msgid ":attr:`~SSLSocket.session_reused`" -msgstr "" +msgstr ":attr:`~SSLSocket.session_reused`" msgid ":meth:`~SSLSocket.read`" -msgstr "" +msgstr ":meth:`~SSLSocket.read`" msgid ":meth:`~SSLSocket.write`" -msgstr "" +msgstr ":meth:`~SSLSocket.write`" msgid ":meth:`~SSLSocket.getpeercert`" -msgstr "" +msgstr ":meth:`~SSLSocket.getpeercert`" msgid ":meth:`~SSLSocket.selected_alpn_protocol`" -msgstr "" +msgstr ":meth:`~SSLSocket.selected_alpn_protocol`" msgid ":meth:`~SSLSocket.selected_npn_protocol`" -msgstr "" +msgstr ":meth:`~SSLSocket.selected_npn_protocol`" msgid ":meth:`~SSLSocket.cipher`" -msgstr "" +msgstr ":meth:`~SSLSocket.cipher`" msgid ":meth:`~SSLSocket.shared_ciphers`" -msgstr "" +msgstr ":meth:`~SSLSocket.shared_ciphers`" msgid ":meth:`~SSLSocket.compression`" -msgstr "" +msgstr ":meth:`~SSLSocket.compression`" msgid ":meth:`~SSLSocket.pending`" -msgstr "" +msgstr ":meth:`~SSLSocket.pending`" msgid ":meth:`~SSLSocket.do_handshake`" -msgstr "" +msgstr ":meth:`~SSLSocket.do_handshake`" msgid ":meth:`~SSLSocket.verify_client_post_handshake`" -msgstr "" +msgstr ":meth:`~SSLSocket.verify_client_post_handshake`" msgid ":meth:`~SSLSocket.unwrap`" -msgstr "" +msgstr ":meth:`~SSLSocket.unwrap`" msgid ":meth:`~SSLSocket.get_channel_binding`" -msgstr "" +msgstr ":meth:`~SSLSocket.get_channel_binding`" msgid ":meth:`~SSLSocket.version`" -msgstr "" +msgstr ":meth:`~SSLSocket.version`" msgid "" "When compared to :class:`SSLSocket`, this object lacks the following " @@ -2331,8 +2365,8 @@ msgstr "" 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 "" msgid "" @@ -2341,9 +2375,9 @@ msgid "" msgstr "" 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 "" msgid "Some notes related to the use of :class:`SSLObject`:" @@ -2351,20 +2385,21 @@ msgstr "" 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 "" 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 "" 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 "" msgid "" @@ -2421,11 +2456,11 @@ msgstr "" 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 " -"settings." +"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 "" msgid "" @@ -2434,15 +2469,15 @@ msgid "" msgstr "" 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 "" 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 "" msgid "Manual settings" @@ -2452,22 +2487,23 @@ msgid "Verifying certificates" msgstr "" 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 "" 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 "" msgid "" @@ -2483,16 +2519,16 @@ msgstr "" 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 "" 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." +"The SSL context created above will only allow TLSv1.3 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." msgstr "" msgid "Cipher selection" @@ -2500,14 +2536,14 @@ msgstr "" 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." +"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 "" msgid "Multi-processing" @@ -2519,8 +2555,8 @@ msgid "" "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 "" msgid "TLS 1.3" @@ -2533,9 +2569,9 @@ msgstr "" 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 "" msgid "" diff --git a/library/stat.po b/library/stat.po new file mode 100644 index 0000000000..5e1fed3a51 --- /dev/null +++ b/library/stat.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`stat` --- Interpreting :func:`~os.stat` results" +msgstr "" + +msgid "**Source code:** :source:`Lib/stat.py`" +msgstr "**Kod źródłowy:** :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." +msgstr "" + +msgid "The stat module is backed by a C implementation." +msgstr "" + +msgid "" +"The :mod:`stat` module defines the following functions to test for specific " +"file types:" +msgstr "" + +msgid "Return non-zero if the mode is from a directory." +msgstr "" + +msgid "Return non-zero if the mode is from a character special device file." +msgstr "" + +msgid "Return non-zero if the mode is from a block special device file." +msgstr "" + +msgid "Return non-zero if the mode is from a regular file." +msgstr "" + +msgid "Return non-zero if the mode is from a FIFO (named pipe)." +msgstr "" + +msgid "Return non-zero if the mode is from a symbolic link." +msgstr "" + +msgid "Return non-zero if the mode is from a socket." +msgstr "" + +msgid "Return non-zero if the mode is from a door." +msgstr "" + +msgid "Return non-zero if the mode is from an event port." +msgstr "" + +msgid "Return non-zero if the mode is from a whiteout." +msgstr "" + +msgid "" +"Two additional functions are defined for more general manipulation of the " +"file's mode:" +msgstr "" + +msgid "" +"Return the portion of the file's mode that can be set by :func:`os.chmod`\\ " +"---that is, the file's permission bits, plus the sticky bit, set-group-id, " +"and set-user-id bits (on systems that support them)." +msgstr "" + +msgid "" +"Return the portion of the file's mode that describes the file type (used by " +"the :func:`S_IS\\*` functions above)." +msgstr "" + +msgid "" +"Normally, you would use the :func:`os.path.is\\*` functions for testing the " +"type of a file; the functions here are useful when you are doing multiple " +"tests of the same file and wish to avoid the overhead of the :c:func:`stat` " +"system call for each test. These are also useful when checking for " +"information about a file that isn't handled by :mod:`os.path`, like the " +"tests for block and character devices." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "" +"An additional utility function is provided to convert a file's mode in a " +"human readable string:" +msgstr "" + +msgid "Convert a file's mode to a string of the form '-rwxrwxrwx'." +msgstr "" + +msgid "" +"The function supports :data:`S_IFDOOR`, :data:`S_IFPORT` and :data:`S_IFWHT`." +msgstr "" + +msgid "" +"All the variables below are simply symbolic indexes into the 10-tuple " +"returned by :func:`os.stat`, :func:`os.fstat` or :func:`os.lstat`." +msgstr "" + +msgid "Inode protection mode." +msgstr "" + +msgid "Inode number." +msgstr "" + +msgid "Device inode resides on." +msgstr "" + +msgid "Number of links to the inode." +msgstr "" + +msgid "User id of the owner." +msgstr "" + +msgid "Group id of the owner." +msgstr "" + +msgid "" +"Size in bytes of a plain file; amount of data waiting on some special files." +msgstr "" + +msgid "Time of last access." +msgstr "" + +msgid "Time of last modification." +msgstr "" + +msgid "" +"The \"ctime\" as reported by the operating system. On some systems (like " +"Unix) is the time of the last metadata change, and, on others (like " +"Windows), is the creation time (see platform documentation for details)." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "The variables below define the flags used in the :data:`ST_MODE` field." +msgstr "" + +msgid "" +"Use of the functions above is more portable than use of the first set of " +"flags:" +msgstr "" + +msgid "Socket." +msgstr "" + +msgid "Symbolic link." +msgstr "" + +msgid "Regular file." +msgstr "" + +msgid "Block device." +msgstr "" + +msgid "Directory." +msgstr "" + +msgid "Character device." +msgstr "" + +msgid "FIFO." +msgstr "" + +msgid "Door." +msgstr "" + +msgid "Event port." +msgstr "" + +msgid "Whiteout." +msgstr "" + +msgid "" +":data:`S_IFDOOR`, :data:`S_IFPORT` or :data:`S_IFWHT` are defined as 0 when " +"the platform does not have support for the file types." +msgstr "" + +msgid "" +"The following flags can also be used in the *mode* argument " +"of :func:`os.chmod`:" +msgstr "" + +msgid "Set UID bit." +msgstr "" + +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 " +"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 " +"mandatory file/record locking (see also :data:`S_ENFMT`)." +msgstr "" + +msgid "" +"Sticky bit. When this bit is set on a directory it means that a file in " +"that directory can be renamed or deleted only by the owner of the file, by " +"the owner of the directory, or by a privileged process." +msgstr "" + +msgid "Mask for file owner permissions." +msgstr "" + +msgid "Owner has read permission." +msgstr "" + +msgid "Owner has write permission." +msgstr "" + +msgid "Owner has execute permission." +msgstr "" + +msgid "Mask for group permissions." +msgstr "" + +msgid "Group has read permission." +msgstr "" + +msgid "Group has write permission." +msgstr "" + +msgid "Group has execute permission." +msgstr "" + +msgid "Mask for permissions for others (not in group)." +msgstr "" + +msgid "Others have read permission." +msgstr "" + +msgid "Others have write permission." +msgstr "" + +msgid "Others have execute permission." +msgstr "" + +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." +msgstr "" + +msgid "Unix V7 synonym for :data:`S_IRUSR`." +msgstr "" + +msgid "Unix V7 synonym for :data:`S_IWUSR`." +msgstr "" + +msgid "Unix V7 synonym for :data:`S_IXUSR`." +msgstr "" + +msgid "" +"The following flags can be used in the *flags* argument " +"of :func:`os.chflags`:" +msgstr "" + +msgid "Do not dump the file." +msgstr "" + +msgid "The file may not be changed." +msgstr "" + +msgid "The file may only be appended to." +msgstr "" + +msgid "The directory is opaque when viewed through a union stack." +msgstr "" + +msgid "The file may not be renamed or deleted." +msgstr "" + +msgid "The file is stored compressed (macOS 10.6+)." +msgstr "" + +msgid "The file should not be displayed in a GUI (macOS 10.5+)." +msgstr "" + +msgid "The file may be archived." +msgstr "" + +msgid "The file is a snapshot file." +msgstr "" + +msgid "" +"See the \\*BSD or macOS systems man page :manpage:`chflags(2)` for more " +"information." +msgstr "" + +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." +msgstr "" + +msgid "" +"On Windows, the following constants are available for comparing against the " +"``st_reparse_tag`` member returned by :func:`os.lstat`. These are well-known " +"constants, but are not an exhaustive list." +msgstr "" diff --git a/library/statistics.po b/library/statistics.po new file mode 100644 index 0000000000..ff1bfbaa98 --- /dev/null +++ b/library/statistics.po @@ -0,0 +1,891 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`statistics` --- Mathematical statistics functions" +msgstr "" + +msgid "**Source code:** :source:`Lib/statistics.py`" +msgstr "**Kod źródłowy:** :source:`Lib/statistics.py`" + +msgid "" +"This module provides functions for calculating mathematical statistics of " +"numeric (:class:`~numbers.Real`-valued) data." +msgstr "" + +msgid "" +"The module is not intended to be a competitor to third-party libraries such " +"as `NumPy `_, `SciPy `_, or " +"proprietary full-featured statistics packages aimed at professional " +"statisticians such as Minitab, SAS and Matlab. It is aimed at the level of " +"graphing and scientific calculators." +msgstr "" + +msgid "" +"Unless explicitly noted, 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. Collections with a mix of " +"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, for example: ``map(float, input_data)``." +msgstr "" + +msgid "" +"Some datasets use ``NaN`` (not a number) values to represent missing data. " +"Since NaNs have unusual comparison semantics, they cause surprising or " +"undefined behaviors in the statistics functions that sort data or that count " +"occurrences. The functions affected are ``median()``, ``median_low()``, " +"``median_high()``, ``median_grouped()``, ``mode()``, ``multimode()``, and " +"``quantiles()``. The ``NaN`` values should be stripped before calling these " +"functions::" +msgstr "" + +msgid "Averages and measures of central location" +msgstr "" + +msgid "" +"These functions calculate an average or typical value from a population or " +"sample." +msgstr "" + +msgid ":func:`mean`" +msgstr ":func:`mean`" + +msgid "Arithmetic mean (\"average\") of data." +msgstr "" + +msgid ":func:`fmean`" +msgstr ":func:`fmean`" + +msgid "Fast, floating point arithmetic mean." +msgstr "" + +msgid ":func:`geometric_mean`" +msgstr ":func:`geometric_mean`" + +msgid "Geometric mean of data." +msgstr "" + +msgid ":func:`harmonic_mean`" +msgstr ":func:`harmonic_mean`" + +msgid "Harmonic mean of data." +msgstr "" + +msgid ":func:`median`" +msgstr ":func:`median`" + +msgid "Median (middle value) of data." +msgstr "" + +msgid ":func:`median_low`" +msgstr ":func:`median_low`" + +msgid "Low median of data." +msgstr "" + +msgid ":func:`median_high`" +msgstr ":func:`median_high`" + +msgid "High median of data." +msgstr "" + +msgid ":func:`median_grouped`" +msgstr ":func:`median_grouped`" + +msgid "Median, or 50th percentile, of grouped data." +msgstr "" + +msgid ":func:`mode`" +msgstr ":func:`mode`" + +msgid "Single mode (most common value) of discrete or nominal data." +msgstr "" + +msgid ":func:`multimode`" +msgstr ":func:`multimode`" + +msgid "List of modes (most common values) of discrete or nominal data." +msgstr "" + +msgid ":func:`quantiles`" +msgstr ":func:`quantiles`" + +msgid "Divide data into intervals with equal probability." +msgstr "" + +msgid "Measures of spread" +msgstr "" + +msgid "" +"These functions calculate a measure of how much the population or sample " +"tends to deviate from the typical or average values." +msgstr "" + +msgid ":func:`pstdev`" +msgstr ":func:`pstdev`" + +msgid "Population standard deviation of data." +msgstr "" + +msgid ":func:`pvariance`" +msgstr ":func:`pvariance`" + +msgid "Population variance of data." +msgstr "" + +msgid ":func:`stdev`" +msgstr ":func:`stdev`" + +msgid "Sample standard deviation of data." +msgstr "" + +msgid ":func:`variance`" +msgstr ":func:`variance`" + +msgid "Sample variance of data." +msgstr "" + +msgid "Statistics for relations between two inputs" +msgstr "" + +msgid "" +"These functions calculate statistics regarding relations between two inputs." +msgstr "" + +msgid ":func:`covariance`" +msgstr ":func:`covariance`" + +msgid "Sample covariance for two variables." +msgstr "" + +msgid ":func:`correlation`" +msgstr ":func:`correlation`" + +msgid "Pearson's correlation coefficient for two variables." +msgstr "" + +msgid ":func:`linear_regression`" +msgstr ":func:`linear_regression`" + +msgid "Slope and intercept for simple linear regression." +msgstr "" + +msgid "Function details" +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the sample arithmetic mean of *data* which can be a sequence or " +"iterable." +msgstr "" + +msgid "" +"The arithmetic mean is the sum of the data divided by the number of data " +"points. It is commonly called \"the average\", although it is only one of " +"many different mathematical averages. It is a measure of the central " +"location of the data." +msgstr "" + +msgid "If *data* is empty, :exc:`StatisticsError` will be raised." +msgstr "" + +msgid "Some examples of use:" +msgstr "" + +msgid "" +"The mean is strongly affected by `outliers `_ and is not necessarily a typical example of the data points. For " +"a more robust, although less efficient, measure of `central tendency " +"`_, see :func:`median`." +msgstr "" + +msgid "" +"The sample mean gives an unbiased estimate of the true population mean, so " +"that when taken on average over all the possible samples, ``mean(sample)`` " +"converges on the true mean of the entire population. If *data* represents " +"the entire population rather than a sample, then ``mean(data)`` is " +"equivalent to calculating the true population mean μ." +msgstr "" + +msgid "Convert *data* to floats and compute the arithmetic mean." +msgstr "" + +msgid "" +"This runs faster than the :func:`mean` function and it always returns " +"a :class:`float`. The *data* may be a sequence or iterable. If the input " +"dataset is empty, raises a :exc:`StatisticsError`." +msgstr "" + +msgid "Convert *data* to floats and compute the geometric mean." +msgstr "" + +msgid "" +"The geometric mean indicates the central tendency or typical value of the " +"*data* using the product of the values (as opposed to the arithmetic mean " +"which uses their sum)." +msgstr "" + +msgid "" +"Raises a :exc:`StatisticsError` if the input dataset is empty, if it " +"contains a zero, or if it contains a negative value. The *data* may be a " +"sequence or iterable." +msgstr "" + +msgid "" +"No special efforts are made to achieve exact results. (However, this may " +"change in the future.)" +msgstr "" + +msgid "" +"Return the harmonic mean of *data*, a sequence or iterable of real-valued " +"numbers. If *weights* is omitted or *None*, then equal weighting is assumed." +msgstr "" + +msgid "" +"The harmonic 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)``. If one of the " +"values is zero, the result will be zero." +msgstr "" + +msgid "" +"The harmonic mean is a type of average, a measure of the central location of " +"the data. It is often appropriate when averaging ratios or rates, for " +"example speeds." +msgstr "" + +msgid "" +"Suppose a car travels 10 km at 40 km/hr, then another 10 km at 60 km/hr. " +"What is the average speed?" +msgstr "" + +msgid "" +"Suppose a car travels 40 km/hr for 5 km, and when traffic clears, speeds-up " +"to 60 km/hr for the remaining 30 km of the journey. What is the average " +"speed?" +msgstr "" + +msgid "" +":exc:`StatisticsError` is raised if *data* is empty, any element is less " +"than zero, or if the weighted sum isn't positive." +msgstr "" + +msgid "" +"The current algorithm has an early-out when it encounters a zero in the " +"input. This means that the subsequent inputs are not tested for validity. " +"(This behavior may change in the future.)" +msgstr "" + +msgid "Added support for *weights*." +msgstr "" + +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 iterable." +msgstr "" + +msgid "" +"The median is a robust measure of central location and is less affected by " +"the presence of outliers. When the number of data points is odd, the middle " +"data point is returned:" +msgstr "" + +msgid "" +"When the number of data points is even, the median is interpolated by taking " +"the average of the two middle values:" +msgstr "" + +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 "" + +msgid "" +"If the data is ordinal (supports order operations) but not numeric (doesn't " +"support addition), consider using :func:`median_low` or :func:`median_high` " +"instead." +msgstr "" + +msgid "" +"Return the low median of numeric data. If *data* is " +"empty, :exc:`StatisticsError` is raised. *data* can be a sequence or " +"iterable." +msgstr "" + +msgid "" +"The low 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 smaller " +"of the two middle values is returned." +msgstr "" + +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 "" + +msgid "" +"Return the high median of data. If *data* is empty, :exc:`StatisticsError` " +"is raised. *data* can be a sequence or iterable." +msgstr "" + +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." +msgstr "" + +msgid "" +"Use the high median when your data are discrete and you prefer the median to " +"be an actual data point rather than interpolated." +msgstr "" + +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 iterable." +msgstr "" + +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:" +msgstr "" + +msgid "" +"Optional argument *interval* represents the class interval, and defaults to " +"1. Changing the class interval naturally will change the interpolation:" +msgstr "" + +msgid "" +"This function does not check whether the data points are at least *interval* " +"apart." +msgstr "" + +msgid "" +"Under some circumstances, :func:`median_grouped` may coerce data points to " +"floats. This behaviour is likely to change in the future." +msgstr "" + +msgid "" +"\"Statistics for the Behavioral Sciences\", Frederick J Gravetter and Larry " +"B Wallnau (8th Edition)." +msgstr "" + +msgid "" +"The `SSMEDIAN `_ function in the Gnome Gnumeric " +"spreadsheet, including `this discussion `_." +msgstr "" + +msgid "" +"Return the single most common data point from discrete or nominal *data*. " +"The mode (when it exists) is the most typical value and serves as a measure " +"of central location." +msgstr "" + +msgid "" +"If there are multiple modes with the same frequency, returns the first one " +"encountered in the *data*. If the smallest or largest of those is desired " +"instead, use ``min(multimode(data))`` or ``max(multimode(data))``. If the " +"input *data* is empty, :exc:`StatisticsError` is raised." +msgstr "" + +msgid "" +"``mode`` assumes discrete data and returns a single value. This is the " +"standard treatment of the mode as commonly taught in schools:" +msgstr "" + +msgid "" +"The mode is unique in that it is the only statistic in this package that " +"also applies to nominal (non-numeric) data:" +msgstr "" + +msgid "" +"Now handles multimodal datasets by returning the first mode encountered. " +"Formerly, it raised :exc:`StatisticsError` when more than one mode was found." +msgstr "" + +msgid "" +"Return a list of the most frequently occurring values in the order they were " +"first encountered in the *data*. Will return more than one result if there " +"are multiple modes or an empty list if the *data* is empty:" +msgstr "" + +msgid "" +"Return the population standard deviation (the square root of the population " +"variance). See :func:`pvariance` for arguments and other details." +msgstr "" + +msgid "" +"Return the population variance of *data*, a non-empty sequence or iterable " +"of real-valued numbers. Variance, or second moment about the mean, is a " +"measure of the variability (spread or dispersion) of data. A large variance " +"indicates that the data is spread out; a small variance indicates it is " +"clustered closely around the mean." +msgstr "" + +msgid "" +"If the optional second argument *mu* is given, it is typically the mean of " +"the *data*. It can also be used to compute the second moment around a point " +"that is not the mean. If it is missing or ``None`` (the default), the " +"arithmetic mean is automatically calculated." +msgstr "" + +msgid "" +"Use this function to calculate the variance from the entire population. To " +"estimate the variance from a sample, the :func:`variance` function is " +"usually a better choice." +msgstr "" + +msgid "Raises :exc:`StatisticsError` if *data* is empty." +msgstr "" + +msgid "Examples:" +msgstr "Przykłady:" + +msgid "" +"If you have already calculated the mean of your data, you can pass it as the " +"optional second argument *mu* to avoid recalculation:" +msgstr "" + +msgid "Decimals and Fractions are supported:" +msgstr "" + +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." +msgstr "" + +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 a random sample of the " +"population, the result will be an unbiased estimate of the population " +"variance." +msgstr "" + +msgid "" +"Return the sample standard deviation (the square root of the sample " +"variance). See :func:`variance` for arguments and other details." +msgstr "" + +msgid "" +"Return the sample variance of *data*, an iterable of at least two real-" +"valued numbers. Variance, or second moment about the mean, is a measure of " +"the variability (spread or dispersion) of data. A large variance indicates " +"that the data is spread out; a small variance indicates it is clustered " +"closely around the mean." +msgstr "" + +msgid "" +"If the optional second argument *xbar* is given, it should be the mean of " +"*data*. If it is missing or ``None`` (the default), the mean is " +"automatically calculated." +msgstr "" + +msgid "" +"Use this function when your data is a sample from a population. To calculate " +"the variance from the entire population, see :func:`pvariance`." +msgstr "" + +msgid "Raises :exc:`StatisticsError` if *data* has fewer than two values." +msgstr "" + +msgid "" +"If you have already calculated the mean of your data, you can pass it as the " +"optional second argument *xbar* to avoid recalculation:" +msgstr "" + +msgid "" +"This function does not attempt to verify that you have passed the actual " +"mean as *xbar*. Using arbitrary values for *xbar* can lead to invalid or " +"impossible results." +msgstr "" + +msgid "Decimal and Fraction values are supported:" +msgstr "" + +msgid "" +"This is the sample variance s² with Bessel's correction, also known as " +"variance with N-1 degrees of freedom. Provided that the data points are " +"representative (e.g. independent and identically distributed), the result " +"should be an unbiased estimate of the true population variance." +msgstr "" + +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 sample." +msgstr "" + +msgid "" +"Divide *data* into *n* continuous intervals with equal probability. Returns " +"a list of ``n - 1`` cut points separating the intervals." +msgstr "" + +msgid "" +"Set *n* to 4 for quartiles (the default). Set *n* to 10 for deciles. Set " +"*n* to 100 for percentiles which gives the 99 cuts points that separate " +"*data* into 100 equal sized groups. Raises :exc:`StatisticsError` if *n* is " +"not least 1." +msgstr "" + +msgid "" +"The *data* can be any iterable containing sample data. For meaningful " +"results, the number of data points in *data* should be larger than *n*. " +"Raises :exc:`StatisticsError` if there are not at least two data points." +msgstr "" + +msgid "" +"The cut points are linearly interpolated from the two nearest data points. " +"For example, if a cut point falls one-third of the distance between two " +"sample values, ``100`` and ``112``, the cut-point will evaluate to ``104``." +msgstr "" + +msgid "" +"The *method* for computing quantiles can be varied depending on whether the " +"*data* includes or excludes the lowest and highest possible values from the " +"population." +msgstr "" + +msgid "" +"The default *method* is \"exclusive\" and is used for data sampled from a " +"population that can have more extreme values than found in the samples. The " +"portion of the population falling below the *i-th* of *m* sorted data points " +"is computed as ``i / (m + 1)``. Given nine sample values, the method sorts " +"them and assigns the following percentiles: 10%, 20%, 30%, 40%, 50%, 60%, " +"70%, 80%, 90%." +msgstr "" + +msgid "" +"Setting the *method* to \"inclusive\" is used for describing population data " +"or for samples that are known to include the most extreme values from the " +"population. The minimum value in *data* is treated as the 0th percentile " +"and the maximum value is treated as the 100th percentile. The portion of the " +"population falling below the *i-th* of *m* sorted data points is computed as " +"``(i - 1) / (m - 1)``. Given 11 sample values, the method sorts them and " +"assigns the following percentiles: 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, " +"80%, 90%, 100%." +msgstr "" + +msgid "" +"Return the sample covariance of two inputs *x* and *y*. Covariance is a " +"measure of the joint variability of two inputs." +msgstr "" + +msgid "" +"Both inputs must be of the same length (no less than two), " +"otherwise :exc:`StatisticsError` is raised." +msgstr "" + +msgid "" +"Return the `Pearson's correlation coefficient `_ for two inputs. Pearson's correlation " +"coefficient *r* takes values between -1 and +1. It measures the strength and " +"direction of the linear relationship, where +1 means very strong, positive " +"linear relationship, -1 very strong, negative linear relationship, and 0 no " +"linear relationship." +msgstr "" + +msgid "" +"Both inputs must be of the same length (no less than two), and need not to " +"be constant, otherwise :exc:`StatisticsError` is raised." +msgstr "" + +msgid "" +"Return the slope and intercept of `simple linear regression `_ parameters estimated using " +"ordinary least squares. Simple linear regression describes the relationship " +"between an independent variable *x* and a dependent variable *y* in terms of " +"this linear function:" +msgstr "" + +msgid "*y = slope \\* x + intercept + noise*" +msgstr "" + +msgid "" +"where ``slope`` and ``intercept`` are the regression parameters that are " +"estimated, and ``noise`` represents the variability of the data that was not " +"explained by the linear regression (it is equal to the difference between " +"predicted and actual values of the dependent variable)." +msgstr "" + +msgid "" +"Both inputs must be of the same length (no less than two), and the " +"independent variable *x* cannot be constant; otherwise " +"a :exc:`StatisticsError` is raised." +msgstr "" + +msgid "" +"For example, we can use the `release dates of the Monty Python films " +"`_ to predict the " +"cumulative number of Monty Python films that would have been produced by " +"2019 assuming that they had kept the pace." +msgstr "" + +msgid "Exceptions" +msgstr "Wyjątki" + +msgid "A single exception is defined:" +msgstr "" + +msgid "Subclass of :exc:`ValueError` for statistics-related exceptions." +msgstr "" + +msgid ":class:`NormalDist` objects" +msgstr "" + +msgid "" +":class:`NormalDist` is a tool for creating and manipulating normal " +"distributions of a `random variable `_. It is a class that treats the mean and standard " +"deviation of data measurements as a single entity." +msgstr "" + +msgid "" +"Normal distributions arise from the `Central Limit Theorem `_ and have a wide range of " +"applications in statistics." +msgstr "" + +msgid "" +"Returns a new *NormalDist* object where *mu* represents the `arithmetic mean " +"`_ and *sigma* represents the " +"`standard deviation `_." +msgstr "" + +msgid "If *sigma* is negative, raises :exc:`StatisticsError`." +msgstr "" + +msgid "" +"A read-only property for the `arithmetic mean `_ of a normal distribution." +msgstr "" + +msgid "" +"A read-only property for the `median `_ of a normal distribution." +msgstr "" + +msgid "" +"A read-only property for the `mode `_ of a normal distribution." +msgstr "" + +msgid "" +"A read-only property for the `standard deviation `_ of a normal distribution." +msgstr "" + +msgid "" +"A read-only property for the `variance `_ of a normal distribution. Equal to the square of the standard " +"deviation." +msgstr "" + +msgid "" +"Makes a normal distribution instance with *mu* and *sigma* parameters " +"estimated from the *data* using :func:`fmean` and :func:`stdev`." +msgstr "" + +msgid "" +"The *data* can be any :term:`iterable` and should consist of values that can " +"be converted to type :class:`float`. If *data* does not contain at least " +"two elements, raises :exc:`StatisticsError` because it takes at least one " +"point to estimate a central value and at least two points to estimate " +"dispersion." +msgstr "" + +msgid "" +"Generates *n* random samples for a given mean and standard deviation. " +"Returns a :class:`list` of :class:`float` values." +msgstr "" + +msgid "" +"If *seed* is given, creates a new instance of the underlying random number " +"generator. This is useful for creating reproducible results, even in a " +"multi-threading context." +msgstr "" + +msgid "" +"Using a `probability density function (pdf) `_, compute the relative likelihood that a " +"random variable *X* will be near the given value *x*. Mathematically, it is " +"the limit of the ratio ``P(x <= X < x+dx) / dx`` as *dx* approaches zero." +msgstr "" + +msgid "" +"The relative likelihood is computed as the probability of a sample occurring " +"in a narrow range divided by the width of the range (hence the word " +"\"density\"). Since the likelihood is relative to other points, its value " +"can be greater than ``1.0``." +msgstr "" + +msgid "" +"Using a `cumulative distribution function (cdf) `_, compute the probability that a " +"random variable *X* will be less than or equal to *x*. Mathematically, it " +"is written ``P(X <= x)``." +msgstr "" + +msgid "" +"Compute the inverse cumulative distribution function, also known as the " +"`quantile function `_ or " +"the `percent-point `_ " +"function. Mathematically, it is written ``x : P(X <= x) = p``." +msgstr "" + +msgid "" +"Finds the value *x* of the random variable *X* such that the probability of " +"the variable being less than or equal to that value equals the given " +"probability *p*." +msgstr "" + +msgid "" +"Measures the agreement between two normal probability distributions. Returns " +"a value between 0.0 and 1.0 giving `the overlapping area for the two " +"probability density functions `_." +msgstr "" + +msgid "" +"Divide the normal distribution into *n* continuous intervals with equal " +"probability. Returns a list of (n - 1) cut points separating the intervals." +msgstr "" + +msgid "" +"Set *n* to 4 for quartiles (the default). Set *n* to 10 for deciles. Set " +"*n* to 100 for percentiles which gives the 99 cuts points that separate the " +"normal distribution into 100 equal sized groups." +msgstr "" + +msgid "" +"Compute the `Standard Score `_ describing *x* in terms of the number of standard " +"deviations above or below the mean of the normal distribution: ``(x - " +"mean) / stdev``." +msgstr "" + +msgid "" +"Instances of :class:`NormalDist` support addition, subtraction, " +"multiplication and division by a constant. These operations are used for " +"translation and scaling. For example:" +msgstr "" + +msgid "" +"Dividing a constant by an instance of :class:`NormalDist` is not supported " +"because the result wouldn't be normally distributed." +msgstr "" + +msgid "" +"Since normal distributions arise from additive effects of independent " +"variables, it is possible to `add and subtract two independent normally " +"distributed random variables `_ represented as instances " +"of :class:`NormalDist`. For example:" +msgstr "" + +msgid ":class:`NormalDist` Examples and Recipes" +msgstr "" + +msgid ":class:`NormalDist` readily solves classic probability problems." +msgstr "" + +msgid "" +"For example, given `historical data for SAT exams `_ showing that scores are " +"normally distributed with a mean of 1060 and a standard deviation of 195, " +"determine the percentage of students with test scores between 1100 and 1200, " +"after rounding to the nearest whole number:" +msgstr "" + +msgid "" +"Find the `quartiles `_ and `deciles " +"`_ for the SAT scores:" +msgstr "" + +msgid "" +"To estimate the distribution for a model than isn't easy to solve " +"analytically, :class:`NormalDist` can generate input samples for a `Monte " +"Carlo simulation `_:" +msgstr "" + +msgid "" +"Normal distributions can be used to approximate `Binomial distributions " +"`_ when the sample " +"size is large and when the probability of a successful trial is near 50%." +msgstr "" + +msgid "" +"For example, an open source conference has 750 attendees and two rooms with " +"a 500 person capacity. There is a talk about Python and another about Ruby. " +"In previous conferences, 65% of the attendees preferred to listen to Python " +"talks. Assuming the population preferences haven't changed, what is the " +"probability that the Python room will stay within its capacity limits?" +msgstr "" + +msgid "Normal distributions commonly arise in machine learning problems." +msgstr "" + +msgid "" +"Wikipedia has a `nice example of a Naive Bayesian Classifier `_. The " +"challenge is to predict a person's gender from measurements of normally " +"distributed features including height, weight, and foot size." +msgstr "" + +msgid "" +"We're given a training dataset with measurements for eight people. The " +"measurements are assumed to be normally distributed, so we summarize the " +"data with :class:`NormalDist`:" +msgstr "" + +msgid "" +"Next, we encounter a new person whose feature measurements are known but " +"whose gender is unknown:" +msgstr "" + +msgid "" +"Starting with a 50% `prior probability `_ of being male or female, we compute the posterior as " +"the prior times the product of likelihoods for the feature measurements " +"given the gender:" +msgstr "" + +msgid "" +"The final prediction goes to the largest posterior. This is known as the " +"`maximum a posteriori `_ or MAP:" +msgstr "" diff --git a/library/stdtypes.po b/library/stdtypes.po index 4e1c5a2907..fa1c97b983 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -1,46 +1,53 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:13+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Built-in Types" -msgstr "Typy wbudowane" +msgstr "Wbudowane typy" msgid "" "The following sections describe the standard types that are built into the " "interpreter." msgstr "" +"W poniższych sekcjach opisano standardowe typy wbudowane w interpreter." msgid "" "The principal built-in types are numerics, sequences, mappings, classes, " "instances and exceptions." msgstr "" +"Głównymi typami wbudowanymi są typy liczbowe, sekwencje, mapowania, klasy, " +"instancje i wyjątki." msgid "" "Some collection classes are mutable. The methods that add, subtract, or " "rearrange their members in place, and don't return a specific item, never " "return the collection instance itself but ``None``." msgstr "" +"Niektóre klasy kolekcji są mutowalne (zmienne). Metody, które dodają, " +"odejmują lub zmieniają kolejność swoich elementów w miejscu, a nie zwracają " +"konkretnego elementu, nigdy nie zwracają instancji kolekcji, lecz ``None``." msgid "" "Some operations are supported by several object types; in particular, " @@ -49,18 +56,27 @@ msgid "" "slightly different :func:`str` function). The latter function is implicitly " "used when an object is written by the :func:`print` function." msgstr "" +"Niektóre operacje są obsługiwane przez kilka typów obiektów; w szczególności " +"praktycznie wszystkie obiekty można porównywać pod kątem równości, sprawdzać " +"ich „prawdziwość” oraz konwertować na ciąg znaków (za pomocą " +"funkcji:func:`repr` lub nieco innej funkcji :func:`str`). Ta ostatnia " +"funkcja jest używana domyślnie, gdy obiekt jest zapisywany za pomocą " +"funkcji :func:`print`." msgid "Truth Value Testing" -msgstr "" +msgstr "Sprawdzanie wartości logicznej" 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 "" +"Każdy obiekt można poddać testowi „prawdziwości” jego wartości – w celu " +"wykorzystania w warunku typu :keyword:`if` lub :keyword:`while` albo jako " +"operand w poniższych operacjach logicznych." 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 "" @@ -77,6 +93,8 @@ msgid "" "empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, " "``range(0)``" msgstr "" +"puste sekwencje oraz kolekcje: ``''``, ``()``, ``[]``, ``{}``, ``set()``, " +"``range(0)``" msgid "" "Operations and built-in functions that have a Boolean result always return " @@ -84,6 +102,10 @@ msgid "" "otherwise stated. (Important exception: the Boolean operations ``or`` and " "``and`` always return one of their operands.)" msgstr "" +"Operacje oraz funkcje wbudowane, których wynikiem jest wartość logiczna, " +"zawsze zwracają ``0`` lub ``False`` dla fałszu oraz ``1`` lub ``True`` dla " +"prawdy, o ile nie zaznaczono inaczej. (Ważny wyjątek: operacje logiczne " +"``or`` oraz ``and`` zawsze zwracają jeden ze swoich operandów.)" msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" msgstr "" @@ -101,16 +123,16 @@ msgid "Notes" msgstr "Notatki" msgid "``x or y``" -msgstr "" +msgstr "``x or y``" -msgid "if *x* is false, then *y*, else *x*" +msgid "if *x* is true, then *x*, else *y*" msgstr "" msgid "\\(1)" msgstr "\\(1)" msgid "``x and y``" -msgstr "" +msgstr "``x and y``" msgid "if *x* is false, then *x*, else *y*" msgstr "" @@ -119,7 +141,7 @@ msgid "\\(2)" msgstr "\\(2)" msgid "``not x``" -msgstr "" +msgstr "``not x``" msgid "if *x* is false, then ``True``, else ``False``" msgstr "" @@ -163,49 +185,49 @@ msgid "Meaning" msgstr "Znaczenie" msgid "``<``" -msgstr "" +msgstr "``<``" msgid "strictly less than" msgstr "" msgid "``<=``" -msgstr "" +msgstr "``<=``" msgid "less than or equal" msgstr "" msgid "``>``" -msgstr "" +msgstr "``>``" msgid "strictly greater than" msgstr "" msgid "``>=``" -msgstr "" +msgstr "``>=``" msgid "greater than or equal" msgstr "" msgid "``==``" -msgstr "" +msgstr "``==``" msgid "equal" msgstr "" msgid "``!=``" -msgstr "" +msgstr "``!=``" msgid "not equal" msgstr "" msgid "``is``" -msgstr "" +msgstr "``is``" msgid "object identity" msgstr "" msgid "``is not``" -msgstr "" +msgstr "``is not``" msgid "negated object identity" msgstr "" @@ -227,10 +249,11 @@ msgstr "" 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:`~object.__lt__`, :meth:`~object.__le__`, :meth:`~object." -"__gt__`, and :meth:`~object.__ge__` (in general, :meth:`~object.__lt__` and :" -"meth:`~object.__eq__` are sufficient, if you want the conventional meanings " -"of the comparison operators)." +"the " +"methods :meth:`~object.__lt__`, :meth:`~object.__le__`, :meth:`~object.__gt__`, " +"and :meth:`~object.__ge__` (in general, :meth:`~object.__lt__` " +"and :meth:`~object.__eq__` are sufficient, if you want the conventional " +"meanings of the comparison operators)." msgstr "" msgid "" @@ -240,8 +263,8 @@ msgid "" msgstr "" 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 "" @@ -254,12 +277,13 @@ msgid "" "subtype of integers. Integers have unlimited precision. Floating point " "numbers are usually implemented using :c:expr:`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 the additional " -"numeric types :mod:`fractions.Fraction`, for rationals, and :mod:`decimal." -"Decimal`, for 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 the additional numeric types :mod:`fractions.Fraction`, for " +"rationals, and :mod:`decimal.Decimal`, for floating-point numbers with user-" +"definable precision.)" msgstr "" msgid "" @@ -295,55 +319,55 @@ msgid "Full documentation" msgstr "" msgid "``x + y``" -msgstr "" +msgstr "``x + y``" msgid "sum of *x* and *y*" msgstr "" msgid "``x - y``" -msgstr "" +msgstr "``x - y``" msgid "difference of *x* and *y*" msgstr "" msgid "``x * y``" -msgstr "" +msgstr "``x * y``" msgid "product of *x* and *y*" msgstr "" msgid "``x / y``" -msgstr "" +msgstr "``x / y``" msgid "quotient of *x* and *y*" msgstr "" msgid "``x // y``" -msgstr "" +msgstr "``x // y``" msgid "floored quotient of *x* and *y*" msgstr "" msgid "``x % y``" -msgstr "" +msgstr "``x % y``" msgid "remainder of ``x / y``" msgstr "" msgid "``-x``" -msgstr "" +msgstr "``-x``" msgid "*x* negated" msgstr "" msgid "``+x``" -msgstr "" +msgstr "``+x``" msgid "*x* unchanged" msgstr "" msgid "``abs(x)``" -msgstr "" +msgstr "``abs(x)``" msgid "absolute value or magnitude of *x*" msgstr "" @@ -352,7 +376,7 @@ msgid ":func:`abs`" msgstr ":func:`abs`" msgid "``int(x)``" -msgstr "" +msgstr "``int(x)``" msgid "*x* converted to integer" msgstr "" @@ -364,7 +388,7 @@ msgid ":func:`int`" msgstr ":func:`int`" msgid "``float(x)``" -msgstr "" +msgstr "``float(x)``" msgid "*x* converted to floating point" msgstr "" @@ -376,7 +400,7 @@ msgid ":func:`float`" msgstr ":func:`float`" msgid "``complex(re, im)``" -msgstr "" +msgstr "``complex(re, im)``" msgid "" "a complex number with real part *re*, imaginary part *im*. *im* defaults to " @@ -384,19 +408,19 @@ msgid "" msgstr "" msgid "\\(6)" -msgstr "" +msgstr "\\(6)" msgid ":func:`complex`" msgstr ":func:`complex`" msgid "``c.conjugate()``" -msgstr "" +msgstr "``c.conjugate()``" msgid "conjugate of the complex number *c*" msgstr "" msgid "``divmod(x, y)``" -msgstr "" +msgstr "``divmod(x, y)``" msgid "the pair ``(x // y, x % y)``" msgstr "" @@ -405,7 +429,7 @@ msgid ":func:`divmod`" msgstr ":func:`divmod`" msgid "``pow(x, y)``" -msgstr "" +msgstr "``pow(x, y)``" msgid "*x* to the power *y*" msgstr "" @@ -417,7 +441,7 @@ msgid ":func:`pow`" msgstr ":func:`pow`" msgid "``x ** y``" -msgstr "" +msgstr "``x ** y``" msgid "" "Also referred to as integer division. The resultant value is a whole " @@ -432,9 +456,9 @@ msgid "" msgstr "" 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 " -"conversions." +"Conversion from :class:`float` to :class:`int` truncates, discarding the " +"fractional part. See functions :func:`math.floor` and :func:`math.ceil` for " +"alternative conversions." msgstr "" msgid "" @@ -453,8 +477,9 @@ msgid "" msgstr "" msgid "" -"See https://www.unicode.org/Public/14.0.0/ucd/extracted/DerivedNumericType." -"txt for a complete list of code points with the ``Nd`` property." +"See https://www.unicode.org/Public/13.0.0/ucd/extracted/" +"DerivedNumericType.txt for a complete list of code points with the ``Nd`` " +"property." msgstr "" msgid "" @@ -463,13 +488,13 @@ msgid "" msgstr "" msgid ":func:`math.trunc(\\ x) `" -msgstr "" +msgstr ":func:`math.trunc(\\ x) `" msgid "*x* truncated to :class:`~numbers.Integral`" msgstr "" msgid ":func:`round(x[, n]) `" -msgstr "" +msgstr ":func:`round(x[, n]) `" msgid "" "*x* rounded to *n* digits, rounding half to even. If *n* is omitted, it " @@ -477,7 +502,7 @@ msgid "" msgstr "" msgid ":func:`math.floor(\\ x) `" -msgstr "" +msgstr ":func:`math.floor(\\ x) `" msgid "the greatest :class:`~numbers.Integral` <= *x*" msgstr "" @@ -513,7 +538,7 @@ msgid "This table lists the bitwise operations sorted in ascending priority:" msgstr "" msgid "``x | y``" -msgstr "" +msgstr "``x | y``" msgid "bitwise :dfn:`or` of *x* and *y*" msgstr "" @@ -522,19 +547,19 @@ msgid "\\(4)" msgstr "\\(4)" msgid "``x ^ y``" -msgstr "" +msgstr "``x ^ y``" msgid "bitwise :dfn:`exclusive or` of *x* and *y*" msgstr "" msgid "``x & y``" -msgstr "" +msgstr "``x & y``" msgid "bitwise :dfn:`and` of *x* and *y*" msgstr "" msgid "``x << n``" -msgstr "" +msgstr "``x << n``" msgid "*x* shifted left by *n* bits" msgstr "" @@ -543,7 +568,7 @@ msgid "(1)(2)" msgstr "(1)(2)" msgid "``x >> n``" -msgstr "" +msgstr "``x >> n``" msgid "*x* shifted right by *n* bits" msgstr "" @@ -552,7 +577,7 @@ msgid "(1)(3)" msgstr "" msgid "``~x``" -msgstr "" +msgstr "``~x``" msgid "the bits of *x* inverted" msgstr "" @@ -571,8 +596,8 @@ msgstr "" 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 " +"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 "" @@ -593,12 +618,12 @@ 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 "" msgid "Equivalent to::" -msgstr "" +msgstr "Odpowiednik::" msgid "" "Return the number of ones in the binary representation of the absolute value " @@ -609,16 +634,17 @@ msgid "Return an array of bytes representing an integer." msgstr "" msgid "" -"The integer is represented using *length* bytes, and defaults to 1. 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 "" msgid "" "The *byteorder* argument determines the byte order used to represent the " -"integer, and defaults to ``\"big\"``. 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." +"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 "" msgid "" @@ -628,15 +654,6 @@ msgid "" "``False``." msgstr "" -msgid "" -"The default values can be used to conveniently turn an integer into a single " -"byte object. However, when using the default arguments, don't try to " -"convert a value greater than 255 or you'll get an :exc:`OverflowError`::" -msgstr "" - -msgid "Added default argument values for ``length`` and ``byteorder``." -msgstr "" - msgid "Return the integer represented by the given array of bytes." msgstr "" @@ -645,23 +662,11 @@ msgid "" "iterable producing bytes." msgstr "" -msgid "" -"The *byteorder* argument determines the byte order used to represent the " -"integer, and defaults to ``\"big\"``. 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 "" - msgid "" "The *signed* argument indicates whether two's complement is used to " "represent the integer." msgstr "" -msgid "Added default argument value for ``byteorder``." -msgstr "" - msgid "" "Return a pair of integers whose ratio is exactly equal to the original " "integer and with a positive denominator. The integer ratio of integers " @@ -709,8 +714,8 @@ msgid "" msgstr "" 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 "" msgid "A hexadecimal string takes the form::" @@ -746,16 +751,17 @@ msgstr "" 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:`~object." -"__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 " +"that ``hash(x) == hash(y)`` whenever ``x == y`` (see " +"the :meth:`~object.__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`." msgstr "" @@ -793,16 +799,17 @@ msgstr "" 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 "" 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 "" msgid "Iterator Types" @@ -816,8 +823,8 @@ msgid "" msgstr "" msgid "" -"One method needs to be defined for container objects to provide :term:" -"`iterable` support:" +"One method needs to be defined for container objects to " +"provide :term:`iterable` support:" msgstr "" msgid "" @@ -826,9 +833,9 @@ msgid "" "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 "" msgid "" @@ -838,9 +845,10 @@ msgstr "" msgid "" "Return the :term:`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 "" msgid "" @@ -858,8 +866,8 @@ msgid "" msgstr "" 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 "" @@ -870,9 +878,10 @@ 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 "" msgid "Sequence Types --- :class:`list`, :class:`tuple`, :class:`range`" @@ -910,7 +919,7 @@ msgid "" msgstr "" msgid "``x in s``" -msgstr "" +msgstr "``x in s``" msgid "``True`` if an item of *s* is equal to *x*, else ``False``" msgstr "" @@ -922,7 +931,7 @@ msgid "``False`` if an item of *s* is equal to *x*, else ``True``" msgstr "" msgid "``s + t``" -msgstr "" +msgstr "``s + t``" msgid "the concatenation of *s* and *t*" msgstr "" @@ -940,13 +949,13 @@ msgid "(2)(7)" msgstr "" msgid "``s[i]``" -msgstr "" +msgstr "``s[i]``" msgid "*i*\\ th item of *s*, origin 0" msgstr "" msgid "``s[i:j]``" -msgstr "" +msgstr "``s[i:j]``" msgid "slice of *s* from *i* to *j*" msgstr "" @@ -955,7 +964,7 @@ msgid "(3)(4)" msgstr "" msgid "``s[i:j:k]``" -msgstr "" +msgstr "``s[i:j:k]``" msgid "slice of *s* from *i* to *j* with step *k*" msgstr "" @@ -964,25 +973,25 @@ msgid "(3)(5)" msgstr "" msgid "``len(s)``" -msgstr "" +msgstr "``len(s)``" msgid "length of *s*" msgstr "" msgid "``min(s)``" -msgstr "" +msgstr "``min(s)``" msgid "smallest item of *s*" msgstr "" msgid "``max(s)``" -msgstr "" +msgstr "``max(s)``" msgid "largest item of *s*" msgstr "" msgid "``s.index(x[, i[, j]])``" -msgstr "" +msgstr "``s.index(x[, i[, j]])``" msgid "" "index of the first occurrence of *x* in *s* (at or after index *i* and " @@ -990,10 +999,10 @@ msgid "" msgstr "" msgid "\\(8)" -msgstr "" +msgstr "\\(8)" msgid "``s.count(x)``" -msgstr "" +msgstr "``s.count(x)``" msgid "total number of occurrences of *x* in *s*" msgstr "" @@ -1009,9 +1018,9 @@ msgstr "" msgid "" "Forward and reversed iterators over mutable sequences access values using an " "index. That index will continue to march forward (or backward) even if the " -"underlying sequence is mutated. The iterator terminates only when an :exc:" -"`IndexError` or a :exc:`StopIteration` is encountered (or when the index " -"drops below zero)." +"underlying sequence is mutated. The iterator terminates only when " +"an :exc:`IndexError` or a :exc:`StopIteration` is encountered (or when the " +"index drops below zero)." msgstr "" msgid "" @@ -1074,16 +1083,16 @@ msgid "" msgstr "" msgid "" -"if concatenating :class:`str` objects, you can build a list and use :meth:" -"`str.join` at the end or else write to an :class:`io.StringIO` instance and " -"retrieve its value when complete" +"if concatenating :class:`str` objects, you can build a list and " +"use :meth:`str.join` at the end or else write to an :class:`io.StringIO` " +"instance and retrieve its value when complete" msgstr "" msgid "" -"if concatenating :class:`bytes` objects, you can similarly use :meth:`bytes." -"join` or :class:`io.BytesIO`, or you can do in-place concatenation with a :" -"class:`bytearray` object. :class:`bytearray` objects are mutable and have " -"an efficient overallocation mechanism" +"if concatenating :class:`bytes` objects, you can similarly " +"use :meth:`bytes.join` or :class:`io.BytesIO`, or you can do in-place " +"concatenation with a :class:`bytearray` object. :class:`bytearray` objects " +"are mutable and have an efficient overallocation mechanism" msgstr "" msgid "if concatenating :class:`tuple` objects, extend a :class:`list` instead" @@ -1112,14 +1121,14 @@ msgstr "" msgid "" "The only operation that immutable sequence types generally implement that is " -"not also implemented by mutable sequence types is support for the :func:" -"`hash` built-in." +"not also implemented by mutable sequence types is support for " +"the :func:`hash` built-in." msgstr "" msgid "" "This support allows immutable sequences, such as :class:`tuple` instances, " -"to be used as :class:`dict` keys and stored in :class:`set` and :class:" -"`frozenset` instances." +"to be used as :class:`dict` keys and stored in :class:`set` " +"and :class:`frozenset` instances." msgstr "" msgid "" @@ -1144,51 +1153,51 @@ msgid "" msgstr "" msgid "``s[i] = x``" -msgstr "" +msgstr "``s[i] = x``" msgid "item *i* of *s* is replaced by *x*" msgstr "" msgid "``s[i:j] = t``" -msgstr "" +msgstr "``s[i:j] = t``" msgid "" "slice of *s* from *i* to *j* is replaced by the contents of the iterable *t*" msgstr "" msgid "``del s[i:j]``" -msgstr "" +msgstr "``del s[i:j]``" msgid "same as ``s[i:j] = []``" msgstr "" msgid "``s[i:j:k] = t``" -msgstr "" +msgstr "``s[i:j:k] = t``" msgid "the elements of ``s[i:j:k]`` are replaced by those of *t*" msgstr "" msgid "``del s[i:j:k]``" -msgstr "" +msgstr "``del s[i:j:k]``" msgid "removes the elements of ``s[i:j:k]`` from the list" msgstr "" msgid "``s.append(x)``" -msgstr "" +msgstr "``s.append(x)``" msgid "" "appends *x* to the end of the sequence (same as ``s[len(s):len(s)] = [x]``)" msgstr "" msgid "``s.clear()``" -msgstr "" +msgstr "``s.clear()``" msgid "removes all items from *s* (same as ``del s[:]``)" msgstr "" msgid "``s.copy()``" -msgstr "" +msgstr "``s.copy()``" msgid "creates a shallow copy of *s* (same as ``s[:]``)" msgstr "" @@ -1202,13 +1211,13 @@ msgid "" msgstr "" msgid "``s *= n``" -msgstr "" +msgstr "``s *= n``" msgid "updates *s* with its contents repeated *n* times" msgstr "" msgid "``s.insert(i, x)``" -msgstr "" +msgstr "``s.insert(i, x)``" msgid "" "inserts *x* into *s* at the index given by *i* (same as ``s[i:i] = [x]``)" @@ -1221,13 +1230,13 @@ msgid "retrieves the item at *i* and also removes it from *s*" msgstr "" msgid "``s.remove(x)``" -msgstr "" +msgstr "``s.remove(x)``" msgid "remove the first item from *s* where ``s[i]`` is equal to *x*" msgstr "" msgid "``s.reverse()``" -msgstr "" +msgstr "``s.reverse()``" msgid "reverses the items of *s* in place" msgstr "" @@ -1252,19 +1261,20 @@ msgstr "" msgid "" ":meth:`clear` and :meth:`!copy` are included for consistency with the " "interfaces of mutable containers that don't support slicing operations (such " -"as :class:`dict` and :class:`set`). :meth:`!copy` is not part of the :class:" -"`collections.abc.MutableSequence` ABC, but most concrete mutable sequence " -"classes provide it." +"as :class:`dict` and :class:`set`). :meth:`!copy` is not part of " +"the :class:`collections.abc.MutableSequence` ABC, but most concrete mutable " +"sequence classes provide it." msgstr "" msgid ":meth:`clear` and :meth:`!copy` methods." msgstr "" msgid "" -"The value *n* is an integer, or an object implementing :meth:`~object." -"__index__`. Zero and negative values of *n* clear the sequence. Items in " -"the sequence are not copied; they are referenced multiple times, as " -"explained for ``s * n`` under :ref:`typesseq-common`." +"The value *n* is an integer, or an object " +"implementing :meth:`~object.__index__`. Zero and negative values of *n* " +"clear the sequence. Items in the sequence are not copied; they are " +"referenced multiple times, as explained for ``s * n`` under :ref:`typesseq-" +"common`." msgstr "" msgid "Lists" @@ -1321,8 +1331,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1342,6 +1352,8 @@ msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." msgstr "" +"*reverse* jest wartością logiczną. Jeśli jest ustawiona na ``True``, " +"elementy listy są sortowane tak, jakby każde porównanie było odwrócone." msgid "" "This method modifies the sequence in place for economy of space when sorting " @@ -1360,6 +1372,8 @@ msgstr "" msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" +"Przykłady sortowania i krótki samouczek sortowania można znaleźć na " +"stronie :ref:`sortinghowto`." msgid "" "While a list is being sorted, the effect of attempting to mutate, or even " @@ -1375,8 +1389,8 @@ 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 "" msgid "Tuples may be constructed in a number of ways:" @@ -1436,8 +1450,8 @@ msgid "" msgstr "" msgid "" -"The arguments to the range constructor must be integers (either built-in :" -"class:`int` or any object that implements the :meth:`~object.__index__` " +"The arguments to the range constructor must be integers (either built-" +"in :class:`int` or any object that implements the :meth:`~object.__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." @@ -1462,8 +1476,8 @@ msgstr "" 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 "" msgid "Range examples::" @@ -1490,8 +1504,8 @@ msgid "" msgstr "" 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)." @@ -1513,9 +1527,9 @@ msgid "" msgstr "" msgid "" -"Implement the Sequence ABC. Support slicing and negative indices. Test :" -"class:`int` objects for membership in constant time instead of iterating " -"through all items." +"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 "" msgid "" @@ -1538,9 +1552,9 @@ msgid "Text Sequence Type --- :class:`str`" msgstr "" 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 "" msgid "Single quotes: ``'allows embedded \"double\" quotes'``" @@ -1550,8 +1564,8 @@ msgid "Double quotes: ``\"allows embedded 'single' quotes\"``" msgstr "" msgid "" -"Triple quoted: ``'''Three single quotes'''``, ``\"\"\"Three double quotes" -"\"\"\"``" +"Triple quoted: ``'''Three single quotes'''``, ``\"\"\"Three double " +"quotes\"\"\"``" msgstr "" msgid "" @@ -1582,9 +1596,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1600,23 +1614,23 @@ msgid "" msgstr "" msgid "" -"If neither *encoding* nor *errors* is given, ``str(object)`` returns :meth:" -"`type(object).__str__(object) `, 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:`type(object).__str__(object) `, 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 "" 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." +"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 "" msgid "" @@ -1627,10 +1641,10 @@ msgid "" msgstr "" 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 "" msgid "String Methods" @@ -1643,11 +1657,11 @@ msgstr "" 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 " -"``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`)." +"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 "" msgid "" @@ -1676,8 +1690,8 @@ 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 "" msgid "" @@ -1698,28 +1712,38 @@ msgid "" msgstr "" 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-" -"handlers`. For a list of possible encodings, see section :ref:`standard-" -"encodings`." +"If *sub* is empty, returns the number of empty strings between characters " +"which is the length of the string plus one." +msgstr "" + +msgid "Return the string encoded to :class:`bytes`." +msgstr "" + +msgid "" +"*encoding* defaults to ``'utf-8'``; see :ref:`standard-encodings` for " +"possible values." +msgstr "" + +msgid "" +"*errors* controls how encoding errors are handled. If ``'strict'`` (the " +"default), a :exc:`UnicodeError` exception is raised. Other possible values " +"are ``'ignore'``, ``'replace'``, ``'xmlcharrefreplace'``, " +"``'backslashreplace'`` and any other name registered " +"via :func:`codecs.register_error`. See :ref:`error-handlers` for details." msgstr "" msgid "" -"By default, the *errors* argument is not checked for best performances, but " -"only used at the first encoding error. Enable the :ref:`Python Development " -"Mode `, or use a :ref:`debug build ` to check *errors*." +"For performance reasons, the value of *errors* is not checked for validity " +"unless an encoding error actually occurs, :ref:`devmode` is enabled or " +"a :ref:`debug build ` is used." msgstr "" -msgid "Support for keyword arguments added." +msgid "Added support for keyword arguments." msgstr "" msgid "" -"The *errors* is now checked in development mode and in :ref:`debug mode " -"`." +"The value of the *errors* argument is now checked in :ref:`devmode` and " +"in :ref:`debug mode `." msgstr "" msgid "" @@ -1737,9 +1761,9 @@ msgid "" "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 " +"(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 "" @@ -1752,8 +1776,8 @@ msgstr "" 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 "" msgid "" @@ -1771,13 +1795,14 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1799,23 +1824,23 @@ msgstr "" 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()``." +"alphanumeric if one of the following returns ``True``: ``c.isalpha()``, " +"``c.isdecimal()``, ``c.isdigit()``, or ``c.isnumeric()``." msgstr "" 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\" " -"property defined in the Unicode Standard." +"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 "" 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." +"ASCII, ``False`` otherwise. ASCII characters have code points in the range " +"U+0000-U+007F." msgstr "" msgid "" @@ -1878,9 +1903,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1896,8 +1922,8 @@ msgid "" msgstr "" 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 "" @@ -1932,8 +1958,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -2065,19 +2091,19 @@ msgid "Description" msgstr "Opis" msgid "``\\n``" -msgstr "" +msgstr "``\\n``" msgid "Line Feed" msgstr "" msgid "``\\r``" -msgstr "" +msgstr "``\\r``" msgid "Carriage Return" msgstr "" msgid "``\\r\\n``" -msgstr "" +msgstr "``\\r\\n``" msgid "Carriage Return + Line Feed" msgstr "" @@ -2095,37 +2121,37 @@ msgid "Form Feed" msgstr "" msgid "``\\x1c``" -msgstr "" +msgstr "``\\x1c``" msgid "File Separator" msgstr "" msgid "``\\x1d``" -msgstr "" +msgstr "``\\x1d``" msgid "Group Separator" msgstr "" msgid "``\\x1e``" -msgstr "" +msgstr "``\\x1e``" msgid "Record Separator" msgstr "" msgid "``\\x85``" -msgstr "" +msgstr "``\\x85``" msgid "Next Line (C1 Control Code)" msgstr "" msgid "``\\u2028``" -msgstr "" +msgstr "``\\u2028``" msgid "Line Separator" msgstr "" msgid "``\\u2029``" -msgstr "" +msgstr "``\\u2029``" msgid "Paragraph Separator" msgstr "" @@ -2166,8 +2192,8 @@ msgstr "" 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``." +"and vice versa. Note that it is not necessarily true that " +"``s.swapcase().swapcase() == s``." msgstr "" msgid "" @@ -2195,12 +2221,12 @@ msgstr "" 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 " -"delete the character from the return string; or raise a :exc:`LookupError` " -"exception, to map the character to itself." +"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 "" msgid "" @@ -2318,20 +2344,20 @@ msgid "Flag" msgstr "" msgid "``'#'``" -msgstr "" +msgstr "``'#'``" msgid "" "The value conversion will use the \"alternate form\" (where defined below)." msgstr "" msgid "``'0'``" -msgstr "" +msgstr "``'0'``" msgid "The conversion will be zero padded for numeric values." msgstr "" msgid "``'-'``" -msgstr "" +msgstr "``'-'``" msgid "" "The converted value is left adjusted (overrides the ``'0'`` conversion if " @@ -2339,7 +2365,7 @@ msgid "" msgstr "" msgid "``' '``" -msgstr "" +msgstr "``' '``" msgid "" "(a space) A blank should be left before a positive number (or empty string) " @@ -2347,7 +2373,7 @@ msgid "" msgstr "" msgid "``'+'``" -msgstr "" +msgstr "``'+'``" msgid "" "A sign character (``'+'`` or ``'-'``) will precede the conversion (overrides " @@ -2375,7 +2401,7 @@ msgid "``'i'``" msgstr "``'i'``" msgid "``'o'``" -msgstr "" +msgstr "``'o'``" msgid "Signed octal value." msgstr "" @@ -2387,25 +2413,25 @@ msgid "Obsolete type -- it is identical to ``'d'``." msgstr "" msgid "``'x'``" -msgstr "" +msgstr "``'x'``" msgid "Signed hexadecimal (lowercase)." msgstr "" msgid "``'X'``" -msgstr "" +msgstr "``'X'``" msgid "Signed hexadecimal (uppercase)." msgstr "" msgid "``'e'``" -msgstr "" +msgstr "``'e'``" msgid "Floating point exponential format (lowercase)." msgstr "" msgid "``'E'``" -msgstr "" +msgstr "``'E'``" msgid "Floating point exponential format (uppercase)." msgstr "" @@ -2417,10 +2443,10 @@ msgid "Floating point decimal format." msgstr "" msgid "``'F'``" -msgstr "" +msgstr "``'F'``" msgid "``'g'``" -msgstr "" +msgstr "``'g'``" msgid "" "Floating point format. Uses lowercase exponential format if exponent is less " @@ -2428,7 +2454,7 @@ msgid "" msgstr "" msgid "``'G'``" -msgstr "" +msgstr "``'G'``" msgid "" "Floating point format. Uses uppercase exponential format if exponent is less " @@ -2436,31 +2462,31 @@ msgid "" msgstr "" msgid "``'c'``" -msgstr "" +msgstr "``'c'``" msgid "Single character (accepts integer or single character string)." msgstr "" msgid "``'r'``" -msgstr "" +msgstr "``'r'``" msgid "String (converts any Python object using :func:`repr`)." msgstr "" msgid "``'s'``" -msgstr "" +msgstr "``'s'``" msgid "String (converts any Python object using :func:`str`)." msgstr "" msgid "``'a'``" -msgstr "" +msgstr "``'a'``" msgid "String (converts any Python object using :func:`ascii`)." msgstr "" msgid "``'%'``" -msgstr "" +msgstr "``'%'``" msgid "No argument is converted, results in a ``'%'`` character in the result." msgstr "" @@ -2500,7 +2526,7 @@ msgid "If precision is ``N``, the output is truncated to ``N`` characters." msgstr "" msgid "See :pep:`237`." -msgstr "" +msgstr "Zob. :pep:`237`." msgid "" "Since Python strings have an explicit length, ``%s`` conversions do not " @@ -2513,15 +2539,15 @@ msgid "" msgstr "" msgid "" -"Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:" -"`memoryview`" +"Binary Sequence Types " +"--- :class:`bytes`, :class:`bytearray`, :class:`memoryview`" msgstr "" 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 "" msgid "" @@ -2774,6 +2800,11 @@ msgid "" "integer in the range 0 to 255." msgstr "" +msgid "" +"If *sub* is empty, returns the number of empty slices between characters " +"which is the length of the bytes object plus one." +msgstr "" + msgid "Also accept an integer in the range 0 to 255 as the subsequence." msgstr "" @@ -2800,29 +2831,26 @@ msgstr "" msgid "The *suffix* may be any :term:`bytes-like object`." msgstr "" -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`." +msgid "Return the bytes decoded to a :class:`str`." msgstr "" msgid "" -"By default, the *errors* argument is not checked for best performances, but " -"only used at the first decoding error. Enable the :ref:`Python Development " -"Mode `, or use a :ref:`debug build ` to check *errors*." +"*errors* controls how decoding errors are handled. If ``'strict'`` (the " +"default), a :exc:`UnicodeError` exception is raised. Other possible values " +"are ``'ignore'``, ``'replace'``, and any other name registered " +"via :func:`codecs.register_error`. See :ref:`error-handlers` for details." msgstr "" msgid "" -"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." +"For performance reasons, the value of *errors* is not checked for validity " +"unless a decoding error actually occurs, :ref:`devmode` is enabled or " +"a :ref:`debug build ` is used." msgstr "" -msgid "Added support for keyword arguments." +msgid "" +"Passing the *encoding* argument to :class:`str` allows decoding " +"any :term:`bytes-like object` directly, without needing to make a " +"temporary :class:`!bytes` or :class:`!bytearray` object." msgstr "" msgid "" @@ -2844,8 +2872,8 @@ msgstr "" 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 "" msgid "" @@ -2863,10 +2891,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -3157,10 +3185,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -3208,8 +3236,8 @@ msgid "" "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." +"zero or more elements of *values*. The effect is similar to using " +"the :c:func:`sprintf` in the C language." msgstr "" msgid "" @@ -3253,7 +3281,7 @@ msgid "" msgstr "" msgid "\\(7)" -msgstr "" +msgstr "\\(7)" msgid "``b'%s'`` is deprecated, but will not be removed during the 3.x series." msgstr "" @@ -3319,19 +3347,19 @@ msgid "" msgstr "" 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())``::" +"One-dimensional memoryviews of :term:`hashable` (read-only) types with " +"formats 'B', 'b' or 'c' are also hashable. The hash is defined as ``hash(m) " +"== hash(m.tobytes())``::" msgstr "" msgid "" "One-dimensional memoryviews can now be sliced. One-dimensional memoryviews " -"with formats 'B', 'b' or 'c' are now hashable." +"with formats 'B', 'b' or 'c' are now :term:`hashable`." msgstr "" msgid "" -"memoryview is now registered automatically with :class:`collections.abc." -"Sequence`" +"memoryview is now registered automatically " +"with :class:`collections.abc.Sequence`" msgstr "" msgid "memoryviews can now be indexed with tuple of integers." @@ -3347,8 +3375,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -3402,8 +3431,8 @@ msgid "Return the data in the buffer as a list of elements. ::" msgstr "" 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 "" msgid "" @@ -3413,8 +3442,8 @@ msgstr "" 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 "" @@ -3439,9 +3468,10 @@ msgid "" msgstr "" 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 " -"'c'). The byte length of the result must be the same as the original length." +"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 "" msgid "Cast 1D/long to 1D/unsigned bytes::" @@ -3530,8 +3560,8 @@ msgid "" "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.)" +"in :class:`dict`, :class:`list`, and :class:`tuple` classes, and " +"the :mod:`collections` module.)" msgstr "" msgid "" @@ -3542,10 +3572,10 @@ msgid "" msgstr "" 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 " +"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 " @@ -3636,12 +3666,12 @@ msgid "Return a shallow copy of the set." msgstr "" msgid "" -"Note, the non-operator versions of :meth:`union`, :meth:`intersection`, :" -"meth:`difference`, :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')``." +"Note, the non-operator versions " +"of :meth:`union`, :meth:`intersection`, :meth:`difference`, :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 "" msgid "" @@ -3718,16 +3748,16 @@ msgid "Remove all elements from the set." msgstr "" 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 " -"argument." +"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 "" 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 "" msgid "Mapping Types --- :class:`dict`" @@ -3736,17 +3766,18 @@ msgstr "" 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 "" msgid "" -"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. Values that compare equal (such as ``1``, ``1.0``, " -"and ``True``) can be used interchangeably to index the same dictionary entry." +"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. Values that compare equal (such as ``1``, " +"``1.0``, and ``True``) can be used interchangeably to index the same " +"dictionary entry." msgstr "" msgid "" @@ -3819,15 +3850,15 @@ msgid "" "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 "" 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 "" msgid "Set ``d[key]`` to *value*." @@ -3885,8 +3916,8 @@ msgstr "" 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 "" msgid "" @@ -3896,8 +3927,8 @@ msgstr "" 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 "" msgid "" @@ -3973,18 +4004,18 @@ msgid "Dictionaries are now reversible." msgstr "" 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 "" msgid "Dictionary view objects" msgstr "" 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 "" msgid "" @@ -4002,9 +4033,9 @@ msgstr "" 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 "" msgid "" @@ -4034,12 +4065,13 @@ msgid "" msgstr "" 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 :term:`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 "" msgid "An example of dictionary view usage::" @@ -4064,8 +4096,9 @@ msgstr "" 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 "" msgid "" @@ -4115,9 +4148,10 @@ 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:" -"`~contextmanager.__enter__` and :meth:`~contextmanager.__exit__` methods, " -"rather than the iterator produced by an undecorated generator function." +"decorator, it will return a context manager implementing the " +"necessary :meth:`~contextmanager.__enter__` " +"and :meth:`~contextmanager.__exit__` methods, rather than the iterator " +"produced by an undecorated generator function." msgstr "" msgid "" @@ -4129,13 +4163,13 @@ msgid "" msgstr "" msgid "" -"Type Annotation Types --- :ref:`Generic Alias `, :ref:" -"`Union `" +"Type Annotation Types --- :ref:`Generic Alias `, :ref:`Union `" msgstr "" msgid "" -"The core built-in types for :term:`type annotations ` are :ref:" -"`Generic Alias ` and :ref:`Union `." +"The core built-in types for :term:`type annotations ` " +"are :ref:`Generic Alias ` and :ref:`Union `." msgstr "" msgid "Generic Alias Type" @@ -4164,8 +4198,8 @@ msgid "" "For a container class, the argument(s) supplied to a :ref:`subscription " "` of the class may indicate the type(s) of the elements an " "object contains. For example, ``set[bytes]`` can be used in type annotations " -"to signify a :class:`set` in which all the elements are of type :class:" -"`bytes`." +"to signify a :class:`set` in which all the elements are of " +"type :class:`bytes`." msgstr "" msgid "" @@ -4185,16 +4219,16 @@ msgstr "" msgid "" "If ``y = re.search(b'bar', b'bar')``, (note the ``b`` for :class:`bytes`), " -"``y`` will also be an instance of ``re.Match``, but the return values of ``y." -"group(0)`` and ``y[0]`` will both be of type :class:`bytes`. In type " +"``y`` will also be an instance of ``re.Match``, but the return values of " +"``y.group(0)`` and ``y[0]`` will both be of type :class:`bytes`. In type " "annotations, we would represent this variety of :ref:`re.Match ` objects with ``re.Match[bytes]``." msgstr "" msgid "" -"``GenericAlias`` objects are instances of the class :class:`types." -"GenericAlias`, which can also be used to create ``GenericAlias`` objects " -"directly." +"``GenericAlias`` objects are instances of the " +"class :class:`types.GenericAlias`, which can also be used to create " +"``GenericAlias`` objects directly." msgstr "" msgid "" @@ -4253,136 +4287,136 @@ msgid "" msgstr "" msgid ":class:`tuple`" -msgstr "" +msgstr ":class:`tuple`" msgid ":class:`list`" -msgstr "" +msgstr ":class:`list`" msgid ":class:`dict`" -msgstr "" +msgstr ":class:`dict`" msgid ":class:`set`" -msgstr "" +msgstr ":class:`set`" msgid ":class:`frozenset`" -msgstr "" +msgstr ":class:`frozenset`" msgid ":class:`type`" -msgstr "" +msgstr ":class:`type`" msgid ":class:`collections.deque`" -msgstr "" +msgstr ":class:`collections.deque`" msgid ":class:`collections.defaultdict`" -msgstr "" +msgstr ":class:`collections.defaultdict`" msgid ":class:`collections.OrderedDict`" -msgstr "" +msgstr ":class:`collections.OrderedDict`" msgid ":class:`collections.Counter`" -msgstr "" +msgstr ":class:`collections.Counter`" msgid ":class:`collections.ChainMap`" -msgstr "" +msgstr ":class:`collections.ChainMap`" msgid ":class:`collections.abc.Awaitable`" -msgstr "" +msgstr ":class:`collections.abc.Awaitable`" msgid ":class:`collections.abc.Coroutine`" -msgstr "" +msgstr ":class:`collections.abc.Coroutine`" msgid ":class:`collections.abc.AsyncIterable`" -msgstr "" +msgstr ":class:`collections.abc.AsyncIterable`" msgid ":class:`collections.abc.AsyncIterator`" -msgstr "" +msgstr ":class:`collections.abc.AsyncIterator`" msgid ":class:`collections.abc.AsyncGenerator`" -msgstr "" +msgstr ":class:`collections.abc.AsyncGenerator`" msgid ":class:`collections.abc.Iterable`" -msgstr "" +msgstr ":class:`collections.abc.Iterable`" msgid ":class:`collections.abc.Iterator`" -msgstr "" +msgstr ":class:`collections.abc.Iterator`" msgid ":class:`collections.abc.Generator`" -msgstr "" +msgstr ":class:`collections.abc.Generator`" msgid ":class:`collections.abc.Reversible`" -msgstr "" +msgstr ":class:`collections.abc.Reversible`" msgid ":class:`collections.abc.Container`" -msgstr "" +msgstr ":class:`collections.abc.Container`" msgid ":class:`collections.abc.Collection`" -msgstr "" +msgstr ":class:`collections.abc.Collection`" msgid ":class:`collections.abc.Callable`" -msgstr "" +msgstr ":class:`collections.abc.Callable`" msgid ":class:`collections.abc.Set`" -msgstr "" +msgstr ":class:`collections.abc.Set`" msgid ":class:`collections.abc.MutableSet`" -msgstr "" +msgstr ":class:`collections.abc.MutableSet`" msgid ":class:`collections.abc.Mapping`" -msgstr "" +msgstr ":class:`collections.abc.Mapping`" msgid ":class:`collections.abc.MutableMapping`" -msgstr "" +msgstr ":class:`collections.abc.MutableMapping`" msgid ":class:`collections.abc.Sequence`" -msgstr "" +msgstr ":class:`collections.abc.Sequence`" msgid ":class:`collections.abc.MutableSequence`" -msgstr "" +msgstr ":class:`collections.abc.MutableSequence`" msgid ":class:`collections.abc.ByteString`" -msgstr "" +msgstr ":class:`collections.abc.ByteString`" msgid ":class:`collections.abc.MappingView`" -msgstr "" +msgstr ":class:`collections.abc.MappingView`" msgid ":class:`collections.abc.KeysView`" -msgstr "" +msgstr ":class:`collections.abc.KeysView`" msgid ":class:`collections.abc.ItemsView`" -msgstr "" +msgstr ":class:`collections.abc.ItemsView`" msgid ":class:`collections.abc.ValuesView`" -msgstr "" +msgstr ":class:`collections.abc.ValuesView`" msgid ":class:`contextlib.AbstractContextManager`" -msgstr "" +msgstr ":class:`contextlib.AbstractContextManager`" msgid ":class:`contextlib.AbstractAsyncContextManager`" -msgstr "" +msgstr ":class:`contextlib.AbstractAsyncContextManager`" msgid ":class:`dataclasses.Field`" -msgstr "" +msgstr ":class:`dataclasses.Field`" msgid ":class:`functools.cached_property`" -msgstr "" +msgstr ":class:`functools.cached_property`" msgid ":class:`functools.partialmethod`" -msgstr "" +msgstr ":class:`functools.partialmethod`" msgid ":class:`os.PathLike`" -msgstr "" +msgstr ":class:`os.PathLike`" msgid ":class:`queue.LifoQueue`" -msgstr "" +msgstr ":class:`queue.LifoQueue`" msgid ":class:`queue.Queue`" -msgstr "" +msgstr ":class:`queue.Queue`" msgid ":class:`queue.PriorityQueue`" -msgstr "" +msgstr ":class:`queue.PriorityQueue`" msgid ":class:`queue.SimpleQueue`" -msgstr "" +msgstr ":class:`queue.SimpleQueue`" msgid ":ref:`re.Pattern `" msgstr "" @@ -4391,28 +4425,28 @@ msgid ":ref:`re.Match `" msgstr "" msgid ":class:`shelve.BsdDbShelf`" -msgstr "" +msgstr ":class:`shelve.BsdDbShelf`" msgid ":class:`shelve.DbfilenameShelf`" -msgstr "" +msgstr ":class:`shelve.DbfilenameShelf`" msgid ":class:`shelve.Shelf`" -msgstr "" +msgstr ":class:`shelve.Shelf`" msgid ":class:`types.MappingProxyType`" -msgstr "" +msgstr ":class:`types.MappingProxyType`" msgid ":class:`weakref.WeakKeyDictionary`" -msgstr "" +msgstr ":class:`weakref.WeakKeyDictionary`" msgid ":class:`weakref.WeakMethod`" -msgstr "" +msgstr ":class:`weakref.WeakMethod`" msgid ":class:`weakref.WeakSet`" -msgstr "" +msgstr ":class:`weakref.WeakSet`" msgid ":class:`weakref.WeakValueDictionary`" -msgstr "" +msgstr ":class:`weakref.WeakValueDictionary`" msgid "Special Attributes of ``GenericAlias`` objects" msgstr "" @@ -4436,13 +4470,9 @@ msgstr "" msgid "" "A ``GenericAlias`` object with :class:`typing.ParamSpec` parameters may not " -"have correct ``__parameters__`` after substitution because :class:`typing." -"ParamSpec` is intended primarily for static type checking." -msgstr "" - -msgid "" -"A boolean that is true if the alias has been unpacked using the ``*`` " -"operator (see :data:`~typing.TypeVarTuple`)." +"have correct ``__parameters__`` after substitution " +"because :class:`typing.ParamSpec` is intended primarily for static type " +"checking." msgstr "" msgid ":pep:`484` - Type Hints" @@ -4456,13 +4486,13 @@ msgstr "" msgid "" "Introducing the ability to natively parameterize standard-library classes, " -"provided they implement the special class method :meth:`~object." -"__class_getitem__`." +"provided they implement the special class " +"method :meth:`~object.__class_getitem__`." msgstr "" msgid "" -":ref:`Generics`, :ref:`user-defined generics ` and :" -"class:`typing.Generic`" +":ref:`Generics`, :ref:`user-defined generics ` " +"and :class:`typing.Generic`" msgstr "" msgid "" @@ -4477,15 +4507,15 @@ msgid "" "A union object holds the value of the ``|`` (bitwise or) operation on " "multiple :ref:`type objects `. These types are intended " "primarily for :term:`type annotations `. The union type " -"expression enables cleaner type hinting syntax compared to :data:`typing." -"Union`." +"expression enables cleaner type hinting syntax compared " +"to :data:`typing.Union`." msgstr "" msgid "" "Defines a union object which holds types *X*, *Y*, and so forth. ``X | Y`` " "means either X or Y. It is equivalent to ``typing.Union[X, Y]``. For " -"example, the following function expects an argument of type :class:`int` or :" -"class:`float`::" +"example, the following function expects an argument of type :class:`int` " +"or :class:`float`::" msgstr "" msgid "" @@ -4518,9 +4548,9 @@ msgid "" msgstr "" msgid "" -"The user-exposed type for the union object can be accessed from :data:`types." -"UnionType` and used for :func:`isinstance` checks. An object cannot be " -"instantiated from the type::" +"The user-exposed type for the union object can be accessed " +"from :data:`types.UnionType` and used for :func:`isinstance` checks. An " +"object cannot be instantiated from the type::" msgstr "" msgid "" @@ -4546,10 +4576,10 @@ msgstr "Moduły" 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 "" @@ -4557,16 +4587,16 @@ 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." +"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 "" msgid "" -"Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````." +"Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````." msgstr "" msgid "Classes and Class Instances" @@ -4605,13 +4635,13 @@ msgstr "" 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)``." +"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 "" msgid "" @@ -4634,13 +4664,13 @@ msgid "" "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 "" msgid "" -"Accessing ``__code__`` raises an :ref:`auditing event ` ``object." -"__getattr__`` with arguments ``obj`` and ``\"__code__\"``." +"Accessing ``__code__`` raises an :ref:`auditing event ` " +"``object.__getattr__`` with arguments ``obj`` and ``\"__code__\"``." msgstr "" msgid "" @@ -4678,9 +4708,9 @@ msgstr "" 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 "" msgid "It is written as ``Ellipsis`` or ``...``." @@ -4728,8 +4758,8 @@ msgstr "" 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." +"types, where they are relevant. Some of these are not reported by " +"the :func:`dir` built-in function." msgstr "" msgid "" @@ -4773,14 +4803,14 @@ msgid "Integer string conversion length limitation" msgstr "" msgid "" -"CPython has a global limit for converting between :class:`int` and :class:" -"`str` to mitigate denial of service attacks. This limit *only* applies to " -"decimal or other non-power-of-two number bases. Hexadecimal, octal, and " -"binary conversions are unlimited. The limit can be configured." +"CPython has a global limit for converting between :class:`int` " +"and :class:`str` to mitigate denial of service attacks. This limit *only* " +"applies to decimal or other non-power-of-two number bases. Hexadecimal, " +"octal, and binary conversions are unlimited. The limit can be configured." msgstr "" msgid "" -"The :class:`int` type in CPython is an abitrary length number stored in " +"The :class:`int` type in CPython is an arbitrary length number stored in " "binary form (commonly known as a \"bignum\"). There exists no algorithm that " "can convert a string to a binary integer or a binary integer to a string in " "linear time, *unless* the base is a power of 2. Even the best known " @@ -4804,10 +4834,10 @@ msgid "" msgstr "" msgid "" -"The default limit is 4300 digits as provided in :data:`sys.int_info." -"default_max_str_digits `. The lowest limit that can be " -"configured is 640 digits as provided in :data:`sys.int_info." -"str_digits_check_threshold `." +"The default limit is 4300 digits as provided " +"in :data:`sys.int_info.default_max_str_digits `. The lowest " +"limit that can be configured is 640 digits as provided " +"in :data:`sys.int_info.str_digits_check_threshold `." msgstr "" msgid "Verification:" @@ -4817,8 +4847,8 @@ msgid "Affected APIs" msgstr "" msgid "" -"The limitation only applies to potentially slow conversions between :class:" -"`int` and :class:`str` or :class:`bytes`:" +"The limitation only applies to potentially slow conversions " +"between :class:`int` and :class:`str` or :class:`bytes`:" msgstr "" msgid "``int(string)`` with default base 10." @@ -4828,14 +4858,14 @@ msgid "``int(string, base)`` for all bases that are not a power of 2." msgstr "" msgid "``str(integer)``." -msgstr "" +msgstr "``str(integer)``." -msgid "``repr(integer)``" -msgstr "" +msgid "``repr(integer)``." +msgstr "``repr(integer)``." msgid "" -"any other string conversion to base 10, for example ``f\"{integer}\"``, ``" -"\"{}\".format(integer)``, or ``b\"%d\" % integer``." +"any other string conversion to base 10, for example ``f\"{integer}\"``, " +"``\"{}\".format(integer)``, or ``b\"%d\" % integer``." msgstr "" msgid "The limitations do not apply to functions with a linear algorithm:" @@ -4848,7 +4878,7 @@ msgid ":func:`int.from_bytes` and :func:`int.to_bytes`." msgstr "" msgid ":func:`hex`, :func:`oct`, :func:`bin`." -msgstr "" +msgstr ":func:`hex`, :func:`oct`, :func:`bin`." msgid ":ref:`formatspec` for hex, octal, and binary numbers." msgstr "" @@ -4879,16 +4909,17 @@ msgid "" msgstr "" msgid "" -":data:`sys.flags.int_max_str_digits` contains the value of :envvar:" -"`PYTHONINTMAXSTRDIGITS` or :option:`-X int_max_str_digits <-X>`. If both the " -"env var and the ``-X`` option are set, the ``-X`` option takes precedence. A " -"value of *-1* indicates that both were unset, thus a value of :data:`sys." -"int_info.default_max_str_digits` was used during initilization." +":data:`sys.flags.int_max_str_digits` contains the value " +"of :envvar:`PYTHONINTMAXSTRDIGITS` or :option:`-X int_max_str_digits <-X>`. " +"If both the env var and the ``-X`` option are set, the ``-X`` option takes " +"precedence. A value of *-1* indicates that both were unset, thus a value " +"of :data:`sys.int_info.default_max_str_digits` was used during " +"initialization." msgstr "" msgid "" -"From code, you can inspect the current limit and set a new one using these :" -"mod:`sys` APIs:" +"From code, you can inspect the current limit and set a new one using " +"these :mod:`sys` APIs:" msgstr "" msgid "" @@ -4898,8 +4929,8 @@ msgid "" msgstr "" msgid "" -"Information about the default and minimum can be found in :attr:`sys." -"int_info`:" +"Information about the default and minimum can be found " +"in :attr:`sys.int_info`:" msgstr "" msgid "" @@ -4941,7 +4972,7 @@ msgid "" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "If you need to disable it entirely, set it to ``0``." msgstr "" @@ -4963,8 +4994,8 @@ msgid "They must have since the parser can't tell the type of the operands." msgstr "" 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 "" diff --git a/library/string.po b/library/string.po index 559bee027a..547a1dfd1a 100644 --- a/library/string.po +++ b/library/string.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`string` --- Common string operations" msgstr "" msgid "**Source code:** :source:`Lib/string.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/string.py`" msgid ":ref:`textseq`" msgstr ":ref:`textseq`" @@ -42,9 +42,9 @@ msgid "The constants defined in this module are:" msgstr "" 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 "" msgid "" @@ -73,8 +73,9 @@ msgstr "" 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 "" msgid "" @@ -100,8 +101,8 @@ msgstr "" 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 "" msgid "" @@ -113,9 +114,10 @@ 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 "" msgid "" @@ -142,9 +144,9 @@ msgstr "" 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 " +"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 " "*key* parameter to :meth:`get_value`." msgstr "" @@ -156,9 +158,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -170,13 +172,13 @@ 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 "" 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 "" msgid "" @@ -184,8 +186,9 @@ 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 "" msgid "" @@ -243,10 +246,10 @@ msgid "" "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__`." +"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 "" msgid "" @@ -271,9 +274,9 @@ msgid "" msgstr "" 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 "" msgid "Some examples::" @@ -308,10 +311,10 @@ msgstr "" 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 " -"how the format specification is to be interpreted." +"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 "" msgid "" @@ -349,7 +352,7 @@ msgid "Meaning" msgstr "Znaczenie" msgid "``'<'``" -msgstr "" +msgstr "``'<'``" msgid "" "Forces the field to be left-aligned within the available space (this is the " @@ -357,7 +360,7 @@ msgid "" msgstr "" msgid "``'>'``" -msgstr "" +msgstr "``'>'``" msgid "" "Forces the field to be right-aligned within the available space (this is the " @@ -365,7 +368,7 @@ msgid "" msgstr "" msgid "``'='``" -msgstr "" +msgstr "``'='``" msgid "" "Forces the padding to be placed after the sign (if any) but before the " @@ -375,7 +378,7 @@ msgid "" msgstr "" msgid "``'^'``" -msgstr "" +msgstr "``'^'``" msgid "Forces the field to be centered within the available space." msgstr "" @@ -392,7 +395,7 @@ msgid "" msgstr "" msgid "``'+'``" -msgstr "" +msgstr "``'+'``" msgid "" "indicates that a sign should be used for both positive as well as negative " @@ -400,7 +403,7 @@ msgid "" msgstr "" msgid "``'-'``" -msgstr "" +msgstr "``'-'``" msgid "" "indicates that a sign should be used only for negative numbers (this is the " @@ -415,15 +418,6 @@ msgid "" "minus sign on negative numbers." msgstr "" -msgid "" -"The ``'z'`` option coerces negative zero floating-point values to positive " -"zero after rounding to the format precision. This option is only valid for " -"floating-point presentation types." -msgstr "" - -msgid "Added the ``'z'`` option (see also :pep:`682`)." -msgstr "" - msgid "" "The ``'#'`` option causes the \"alternate form\" to be used for the " "conversion. The alternate form is defined differently for different types. " @@ -491,10 +485,10 @@ msgid "The available string presentation types are:" msgstr "" msgid "Type" -msgstr "" +msgstr "Typ" msgid "``'s'``" -msgstr "" +msgstr "``'s'``" msgid "String format. This is the default type for strings and may be omitted." msgstr "" @@ -515,7 +509,7 @@ msgid "Binary format. Outputs the number in base 2." msgstr "" msgid "``'c'``" -msgstr "" +msgstr "``'c'``" msgid "" "Character. Converts the integer to the corresponding unicode character " @@ -529,13 +523,13 @@ msgid "Decimal Integer. Outputs the number in base 10." msgstr "" msgid "``'o'``" -msgstr "" +msgstr "``'o'``" msgid "Octal format. Outputs the number in base 8." msgstr "" msgid "``'x'``" -msgstr "" +msgstr "``'x'``" msgid "" "Hex format. Outputs the number in base 16, using lower-case letters for the " @@ -543,7 +537,7 @@ msgid "" msgstr "" msgid "``'X'``" -msgstr "" +msgstr "``'X'``" msgid "" "Hex format. Outputs the number in base 16, using upper-case letters for the " @@ -552,7 +546,7 @@ msgid "" msgstr "" msgid "``'n'``" -msgstr "" +msgstr "``'n'``" msgid "" "Number. This is the same as ``'d'``, except that it uses the current locale " @@ -570,12 +564,12 @@ msgid "" msgstr "" msgid "" -"The available presentation types for :class:`float` and :class:`~decimal." -"Decimal` values are:" +"The available presentation types for :class:`float` " +"and :class:`~decimal.Decimal` values are:" msgstr "" msgid "``'e'``" -msgstr "" +msgstr "``'e'``" msgid "" "Scientific notation. For a given precision ``p``, formats the number in " @@ -583,13 +577,13 @@ msgid "" "exponent. The coefficient has one digit before and ``p`` digits after the " "decimal point, for a total of ``p + 1`` significant digits. With no " "precision given, uses a precision of ``6`` digits after the decimal point " -"for :class:`float`, and shows all coefficient digits for :class:`~decimal." -"Decimal`. If no digits follow the decimal point, the decimal point is also " -"removed unless the ``#`` option is used." +"for :class:`float`, and shows all coefficient digits " +"for :class:`~decimal.Decimal`. If no digits follow the decimal point, the " +"decimal point is also removed unless the ``#`` option is used." msgstr "" msgid "``'E'``" -msgstr "" +msgstr "``'E'``" msgid "" "Scientific notation. Same as ``'e'`` except it uses an upper case 'E' as the " @@ -610,7 +604,7 @@ msgid "" msgstr "" msgid "``'F'``" -msgstr "" +msgstr "``'F'``" msgid "" "Fixed-point notation. Same as ``'f'``, but converts ``nan`` to ``NAN`` and " @@ -618,7 +612,7 @@ msgid "" msgstr "" msgid "``'g'``" -msgstr "" +msgstr "``'g'``" msgid "" "General format. For a given precision ``p >= 1``, this rounds the number to " @@ -640,12 +634,12 @@ msgid "" msgstr "" msgid "" -"With no precision given, uses a precision of ``6`` significant digits for :" -"class:`float`. For :class:`~decimal.Decimal`, the coefficient of the result " -"is formed from the coefficient digits of the value; scientific notation is " -"used for values smaller than ``1e-6`` in absolute value and values where the " -"place value of the least significant digit is larger than 1, and fixed-point " -"notation is used otherwise." +"With no precision given, uses a precision of ``6`` significant digits " +"for :class:`float`. For :class:`~decimal.Decimal`, the coefficient of the " +"result is formed from the coefficient digits of the value; scientific " +"notation is used for values smaller than ``1e-6`` in absolute value and " +"values where the place value of the least significant digit is larger than " +"1, and fixed-point notation is used otherwise." msgstr "" msgid "" @@ -655,7 +649,7 @@ msgid "" msgstr "" msgid "``'G'``" -msgstr "" +msgstr "``'G'``" msgid "" "General format. Same as ``'g'`` except switches to ``'E'`` if the number " @@ -668,7 +662,7 @@ msgid "" msgstr "" msgid "``'%'``" -msgstr "" +msgstr "``'%'``" msgid "" "Percentage. Multiplies the number by 100 and displays in fixed (``'f'``) " @@ -753,12 +747,13 @@ msgid "Template strings" msgstr "" 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 "" msgid "" @@ -770,11 +765,12 @@ msgid "``$$`` is an escape; it is replaced with a single ``$``." msgstr "" 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 "" msgid "" @@ -784,8 +780,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -821,16 +817,6 @@ msgid "" "Python identifiers." msgstr "" -msgid "" -"Returns false if the template has invalid placeholders that will cause :meth:" -"`substitute` to raise :exc:`ValueError`." -msgstr "" - -msgid "" -"Returns a list of the valid identifiers in the template, in the order they " -"first appear, ignoring any invalid identifiers." -msgstr "" - msgid ":class:`Template` instances also provide one public data attribute:" msgstr "" @@ -852,10 +838,10 @@ msgstr "" 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 "" msgid "" @@ -919,19 +905,14 @@ msgid "" "single delimiter), and it should appear last in the regular expression." msgstr "" -msgid "" -"The methods on this class will raise :exc:`ValueError` if the pattern " -"matches the template without one of these named groups matching." -msgstr "" - msgid "Helper functions" msgstr "" 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/struct.po b/library/struct.po index 106e022c43..79b34f9e22 100644 --- a/library/struct.po +++ b/library/struct.po @@ -1,62 +1,63 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Tomasz Rodzen , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Tomasz Rodzen , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`struct` --- Interpret bytes as packed binary data" msgstr "" msgid "**Source code:** :source:`Lib/struct.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/struct.py`" msgid "" -"This module performs conversions between Python values and C structs " -"represented as Python :class:`bytes` objects. This can be used in handling " -"binary data stored in files or from network connections, among other " -"sources. It uses :ref:`struct-format-strings` as compact descriptions of " -"the layout of the C structs and the intended conversion to/from Python " -"values." +"This module converts between Python values and C structs represented as " +"Python :class:`bytes` objects. Compact :ref:`format strings ` describe the intended conversions to/from Python values. The " +"module's functions and objects can be used for two largely distinct " +"applications, data exchange with external sources (files or network " +"connections), or data transfer between the Python application and the C " +"layer." msgstr "" 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 " -"``native`` size and alignment: see :ref:`struct-alignment` for details." +"When no prefix character is given, native mode is the default. It packs or " +"unpacks data based on the platform and compiler on which the Python " +"interpreter was built. The result of packing a given C struct includes pad " +"bytes which maintain proper alignment for the C types involved; similarly, " +"alignment is taken into account when unpacking. In contrast, when " +"communicating data between external sources, the programmer is responsible " +"for defining byte ordering and padding between elements. See :ref:`struct-" +"alignment` for details." msgstr "" 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 "" msgid "Functions and Exceptions" @@ -116,11 +117,13 @@ msgid "Format Strings" msgstr "" msgid "" -"Format strings are the mechanism used to specify the expected layout when " -"packing and unpacking data. They are built up from :ref:`format-" -"characters`, which specify the type of data being packed/unpacked. In " -"addition, there are special characters for controlling the :ref:`struct-" -"alignment`." +"Format strings describe the data layout when packing and unpacking data. " +"They are built up from :ref:`format characters`, which " +"specify the type of data being packed/unpacked. In addition, special " +"characters control the :ref:`byte order, size and alignment`. Each format string consists of an optional prefix character " +"which describes the overall properties of the data and one or more format " +"characters which describe the actual data values and padding." msgstr "" msgid "Byte Order, Size, and Alignment" @@ -129,7 +132,10 @@ msgstr "" 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)." +"the rules used by the C compiler). This behavior is chosen so that the bytes " +"of a packed struct correspond exactly to the memory layout of the " +"corresponding C struct. Whether to use native byte ordering and padding or " +"standard formats depends on the application." msgstr "" msgid "" @@ -139,7 +145,7 @@ msgid "" msgstr "" msgid "Character" -msgstr "" +msgstr "Znak" msgid "Byte order" msgstr "" @@ -151,13 +157,13 @@ msgid "Alignment" msgstr "" msgid "``@``" -msgstr "" +msgstr "``@``" msgid "native" msgstr "" msgid "``=``" -msgstr "" +msgstr "``=``" msgid "standard" msgstr "" @@ -166,19 +172,19 @@ msgid "none" msgstr "" msgid "``<``" -msgstr "" +msgstr "``<``" msgid "little-endian" msgstr "" msgid "``>``" -msgstr "" +msgstr "``>``" msgid "big-endian" msgstr "" msgid "``!``" -msgstr "" +msgstr "``!``" msgid "network (= big-endian)" msgstr "" @@ -188,11 +194,9 @@ msgstr "" msgid "" "Native byte order is big-endian or little-endian, depending on the host " -"system. For example, Intel x86 and AMD64 (x86-64) are little-endian; IBM z " -"and most legacy architectures are big-endian; and ARM, RISC-V and IBM Power " -"feature switchable endianness (bi-endian, though the former two are nearly " -"always little-endian in practice). Use ``sys.byteorder`` to check the " -"endianness of your system." +"system. For example, Intel x86, AMD64 (x86-64), and Apple M1 are little-" +"endian; IBM z and many legacy architectures are big-endian. " +"Use :data:`sys.byteorder` to check the endianness of your system." msgstr "" msgid "" @@ -201,8 +205,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -255,7 +259,7 @@ msgid "Format" msgstr "Format" msgid "C Type" -msgstr "typ języka C " +msgstr "typ języka C" msgid "Python type" msgstr "" @@ -267,7 +271,7 @@ msgid "Notes" msgstr "Notatki" msgid "``x``" -msgstr "" +msgstr "``x``" msgid "pad byte" msgstr "" @@ -276,13 +280,13 @@ msgid "no value" msgstr "" msgid "\\(7)" -msgstr "" +msgstr "\\(7)" msgid "``c``" -msgstr "" +msgstr "``c``" msgid ":c:expr:`char`" -msgstr "" +msgstr ":c:expr:`char`" msgid "bytes of length 1" msgstr "" @@ -291,10 +295,10 @@ msgid "1" msgstr "1" msgid "``b``" -msgstr "" +msgstr "``b``" msgid ":c:expr:`signed char`" -msgstr "" +msgstr ":c:expr:`signed char`" msgid "integer" msgstr "" @@ -303,19 +307,19 @@ msgid "\\(1), \\(2)" msgstr "" msgid "``B``" -msgstr "" +msgstr "``B``" msgid ":c:expr:`unsigned char`" -msgstr "" +msgstr ":c:expr:`unsigned char`" msgid "\\(2)" msgstr "\\(2)" msgid "``?``" -msgstr "" +msgstr "``?``" msgid ":c:expr:`_Bool`" -msgstr "" +msgstr ":c:expr:`_Bool`" msgid "bool" msgstr "" @@ -324,64 +328,64 @@ msgid "\\(1)" msgstr "\\(1)" msgid "``h``" -msgstr "" +msgstr "``h``" msgid ":c:expr:`short`" -msgstr "" +msgstr ":c:expr:`short`" msgid "2" msgstr "2" msgid "``H``" -msgstr "" +msgstr "``H``" msgid ":c:expr:`unsigned short`" -msgstr "" +msgstr ":c:expr:`unsigned short`" msgid "``i``" -msgstr "" +msgstr "``i``" msgid ":c:expr:`int`" -msgstr "" +msgstr ":c:expr:`int`" msgid "4" msgstr "4" msgid "``I``" -msgstr "" +msgstr "``I``" msgid ":c:expr:`unsigned int`" -msgstr "" +msgstr ":c:expr:`unsigned int`" msgid "``l``" -msgstr "" +msgstr "``l``" msgid ":c:expr:`long`" -msgstr "" +msgstr ":c:expr:`long`" msgid "``L``" -msgstr "" +msgstr "``L``" msgid ":c:expr:`unsigned long`" -msgstr "" +msgstr ":c:expr:`unsigned long`" msgid "``q``" -msgstr "" +msgstr "``q``" msgid ":c:expr:`long long`" -msgstr "" +msgstr ":c:expr:`long long`" msgid "8" msgstr "8" msgid "``Q``" -msgstr "" +msgstr "``Q``" msgid ":c:expr:`unsigned long long`" msgstr "" msgid "``n``" -msgstr "" +msgstr "``n``" msgid ":c:expr:`ssize_t`" msgstr "" @@ -390,16 +394,16 @@ msgid "\\(3)" msgstr "\\(3)" msgid "``N``" -msgstr "" +msgstr "``N``" msgid ":c:expr:`size_t`" msgstr "" msgid "``e``" -msgstr "" +msgstr "``e``" msgid "\\(6)" -msgstr "" +msgstr "\\(6)" msgid "float" msgstr "typ (float) zmiennoprzecinkowy pojedynczej precyzji" @@ -408,34 +412,40 @@ msgid "\\(4)" msgstr "\\(4)" msgid "``f``" -msgstr "" +msgstr "``f``" msgid ":c:expr:`float`" -msgstr "" +msgstr ":c:expr:`float`" msgid "``d``" -msgstr "" +msgstr "``d``" msgid ":c:expr:`double`" -msgstr "" +msgstr ":c:expr:`double`" msgid "``s``" -msgstr "" +msgstr "``s``" msgid ":c:expr:`char[]`" -msgstr "" +msgstr ":c:expr:`char[]`" msgid "bytes" msgstr "" +msgid "\\(9)" +msgstr "\\(9)" + msgid "``p``" -msgstr "" +msgstr "``p``" + +msgid "\\(8)" +msgstr "\\(8)" msgid "``P``" -msgstr "" +msgstr "``P``" msgid ":c:expr:`void \\*`" -msgstr "" +msgstr ":c:expr:`void \\*`" msgid "\\(5)" msgstr "\\(5)" @@ -448,8 +458,8 @@ msgstr "" msgid "" "The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type defined " -"by C99. If this type is not available, it is simulated using a :c:expr:" -"`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:expr:`char`. In standard mode, it is always represented by one byte." msgstr "" msgid "" @@ -494,35 +504,51 @@ msgid "" "format `_ for more information." msgstr "" -msgid "For padding, ``x`` inserts null bytes." -msgstr "" - -msgid "" -"A format character may be preceded by an integral repeat count. For " -"example, the format string ``'4h'`` means exactly the same as ``'hhhh'``." +msgid "When packing, ``'x'`` inserts one NUL byte." msgstr "" msgid "" -"Whitespace characters between formats are ignored; a count and its format " -"must not contain whitespace though." +"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 ``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 consumes ``count`` bytes, but that the string returned can never " +"contain more than 255 bytes." msgstr "" msgid "" "For the ``'s'`` format character, the count is interpreted as the length of " "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 " +"example, ``'10s'`` means a single 10-byte string mapping to or from a single " +"Python byte string, while ``'10c'`` means 10 separate one byte character " +"elements (e.g., ``cccccccccc``) mapping to or from ten different Python byte " +"objects. (See :ref:`struct-examples` for a concrete demonstration of the " +"difference.) 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 " "number of bytes. As a special case, ``'0s'`` means a single, empty string " "(while ``'0c'`` means 0 characters)." msgstr "" +msgid "" +"A format character may be preceded by an integral repeat count. For " +"example, the format string ``'4h'`` means exactly the same as ``'hhhh'``." +msgstr "" + +msgid "" +"Whitespace characters between formats are ignored; a count and its format " +"must not contain whitespace though." +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 "" msgid "" @@ -530,19 +556,6 @@ msgid "" "raised :exc:`DeprecationWarning` instead of :exc:`struct.error`." msgstr "" -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 " -"``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 " -"consumes ``count`` bytes, but that the string returned can never contain " -"more than 255 bytes." -msgstr "" - msgid "" "For the ``'?'`` format character, the return value is either :const:`True` " "or :const:`False`. When packing, the truth value of the argument object is " @@ -554,31 +567,40 @@ msgid "Examples" msgstr "Przykłady" msgid "" -"All examples assume a native byte order, size, and alignment with a big-" -"endian machine." +"Native byte order examples (designated by the ``'@'`` format prefix or lack " +"of any prefix character) may not match what the reader's machine produces as " +"that depends on the platform and compiler." msgstr "" -msgid "A basic example of packing/unpacking three integers::" +msgid "" +"Pack and unpack integers of three different sizes, using big endian " +"ordering::" +msgstr "" + +msgid "Attempt to pack an integer which is too large for the defined field::" msgstr "" msgid "" -"Unpacked fields can be named by assigning them to variables or by wrapping " -"the result in a named tuple::" +"Demonstrate the difference between ``'s'`` and ``'c'`` format characters::" msgstr "" msgid "" -"The ordering of format characters may have an impact on size since the " -"padding needed to satisfy alignment requirements is different::" +"Unpacked fields can be named by assigning them to variables or by wrapping " +"the result in a named tuple::" msgstr "" msgid "" -"The following format ``'llh0l'`` specifies two pad bytes at the end, " -"assuming longs are aligned on 4-byte boundaries::" +"The ordering of format characters may have an impact on size in native mode " +"since padding is implicit. In standard mode, the user is responsible for " +"inserting any desired padding. Note in the first ``pack`` call below that " +"three NUL bytes were added after the packed ``'#'`` to align the following " +"integer on a four-byte boundary. In this example, the output was produced on " +"a little endian machine::" msgstr "" msgid "" -"This only works when native size and alignment are in effect; standard size " -"and alignment does not enforce any alignment." +"The following format ``'llh0l'`` results in two pad bytes being added at the " +"end, assuming the platform's longs are aligned on 4-byte boundaries::" msgstr "" msgid "Module :mod:`array`" @@ -587,10 +609,83 @@ msgstr "" msgid "Packed binary storage of homogeneous data." msgstr "" -msgid "Module :mod:`xdrlib`" +msgid "Module :mod:`json`" +msgstr "moduł :mod:`json`" + +msgid "JSON encoder and decoder." +msgstr "" + +msgid "Module :mod:`pickle`" +msgstr "moduł :mod:`pickle`" + +msgid "Python object serialization." +msgstr "" + +msgid "Applications" +msgstr "" + +msgid "" +"Two main applications for the :mod:`struct` module exist, data interchange " +"between Python and C code within an application or another application " +"compiled using the same compiler (:ref:`native formats`), and data interchange between applications using agreed upon data " +"layout (:ref:`standard formats`). Generally " +"speaking, the format strings constructed for these two domains are distinct." +msgstr "" + +msgid "Native Formats" +msgstr "" + +msgid "" +"When constructing format strings which mimic native layouts, the compiler " +"and machine architecture determine byte ordering and padding. In such cases, " +"the ``@`` format character should be used to specify native byte ordering " +"and data sizes. Internal pad bytes are normally inserted automatically. It " +"is possible that a zero-repeat format code will be needed at the end of a " +"format string to round up to the correct byte boundary for proper alignment " +"of consective chunks of data." +msgstr "" + +msgid "" +"Consider these two simple examples (on a 64-bit, little-endian machine)::" +msgstr "" + +msgid "" +"Data is not padded to an 8-byte boundary at the end of the second format " +"string without the use of extra padding. A zero-repeat format code solves " +"that problem::" +msgstr "" + +msgid "" +"The ``'x'`` format code can be used to specify the repeat, but for native " +"formats it is better to use a zero-repeat format like ``'0l'``." +msgstr "" + +msgid "" +"By default, native byte ordering and alignment is used, but it is better to " +"be explicit and use the ``'@'`` prefix character." +msgstr "" + +msgid "Standard Formats" msgstr "" -msgid "Packing and unpacking of XDR data." +msgid "" +"When exchanging data beyond your process such as networking or storage, be " +"precise. Specify the exact byte order, size, and alignment. Do not assume " +"they match the native order of a particular machine. For example, network " +"byte order is big-endian, while many popular CPUs are little-endian. By " +"defining this explicitly, the user need not care about the specifics of the " +"platform their code is running on. The first character should typically be " +"``<`` or ``>`` (or ``!``). Padding is the responsibility of the " +"programmer. The zero-repeat format character won't work. Instead, the user " +"must explicitly add ``'x'`` pad bytes where needed. Revisiting the examples " +"from the previous section, we have::" +msgstr "" + +msgid "" +"The above results (executed on a 64-bit machine) aren't guaranteed to match " +"when executed on different machines. For example, the examples below were " +"executed on a 32-bit machine::" msgstr "" msgid "Classes" @@ -601,16 +696,16 @@ msgstr "" msgid "" "Return a new Struct object which writes and reads binary data according to " -"the format string *format*. Creating a Struct object once and calling its " -"methods is more efficient than calling the :mod:`struct` functions with the " -"same format since the format string only needs to be compiled once." +"the format string *format*. Creating a ``Struct`` object once and calling " +"its methods is more efficient than calling module-level functions with the " +"same format since the format string is only compiled once." msgstr "" 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 "" msgid "Compiled Struct objects support the following methods and attributes:" @@ -631,8 +726,8 @@ msgstr "" msgid "" "Identical to the :func:`unpack_from` function, using the compiled format. " -"The buffer's size in bytes, starting at position *offset*, must be at least :" -"attr:`size`." +"The buffer's size in bytes, starting at position *offset*, must be at " +"least :attr:`size`." msgstr "" msgid "" diff --git a/library/subprocess.po b/library/subprocess.po index b85f58673b..1942bfdf2a 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -1,34 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 +# Blessing Oluronbi, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Blessing Oluronbi, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`subprocess` --- Subprocess management" msgstr "" msgid "**Source code:** :source:`Lib/subprocess.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/subprocess.py`" msgid "" "The :mod:`subprocess` module allows you to spawn new processes, connect to " @@ -44,15 +44,6 @@ msgstr "" msgid ":pep:`324` -- PEP proposing the subprocess module" msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "Using the :mod:`subprocess` Module" msgstr "" @@ -87,9 +78,9 @@ msgstr "" 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 "" msgid "" @@ -101,10 +92,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -119,11 +110,13 @@ 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. It is passed " -"directly to :class:`Popen`." +"directly to :class:`Popen`. This mapping can be str to str on any platform " +"or bytes to bytes on POSIX platforms much like :data:`os.environ` " +"or :data:`os.environb`." msgstr "" msgid "Examples::" -msgstr "" +msgstr "Przykłady::" msgid "Added *encoding* and *errors* parameters" msgstr "" @@ -133,6 +126,13 @@ msgid "" "*universal_newlines*. Added the *capture_output* parameter." msgstr "" +msgid "" +"Changed Windows shell search order for ``shell=True``. The current directory " +"and ``%PATH%`` are replaced with ``%COMSPEC%`` and ``%SystemRoot%" +"\\System32\\cmd.exe``. As a result, dropping a malicious program named " +"``cmd.exe`` into a current directory no longer works." +msgstr "" + msgid "" "The return value from :func:`run`, representing a process that has finished." msgstr "" @@ -152,9 +152,9 @@ msgid "" msgstr "" 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 " -"stdout was not captured." +"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 "" msgid "" @@ -163,9 +163,9 @@ msgid "" msgstr "" 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 " -"stderr was not captured." +"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 "" msgid "If :attr:`returncode` is non-zero, raise a :exc:`CalledProcessError`." @@ -204,10 +204,11 @@ msgid "Timeout in seconds." msgstr "" msgid "" -"Output of the child process if it was captured by :func:`run` or :func:" -"`check_output`. Otherwise, ``None``. This is always :class:`bytes` when " -"any output was captured regardless of the ``text=True`` setting. It may " -"remain ``None`` instead of ``b''`` when no output was observed." +"Output of the child process if it was captured by :func:`run` " +"or :func:`check_output`. Otherwise, ``None``. This is " +"always :class:`bytes` when any output was captured regardless of the " +"``text=True`` setting. It may remain ``None`` instead of ``b''`` when no " +"output was observed." msgstr "" msgid "Alias for output, for symmetry with :attr:`stderr`." @@ -224,9 +225,9 @@ msgid "*stdout* and *stderr* attributes added" msgstr "" msgid "" -"Subclass of :exc:`SubprocessError`, raised when a process run by :func:" -"`check_call`, :func:`check_output`, or :func:`run` (with ``check=True``) " -"returns a non-zero exit status." +"Subclass of :exc:`SubprocessError`, raised when a process run " +"by :func:`check_call`, :func:`check_output`, or :func:`run` (with " +"``check=True``) returns a non-zero exit status." msgstr "" msgid "" @@ -235,8 +236,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -304,9 +305,9 @@ msgid "Added the *text* parameter as an alias for *universal_newlines*." msgstr "" 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 "" msgid "" @@ -316,16 +317,17 @@ 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 "" 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 "" msgid "" @@ -348,15 +350,15 @@ msgid "" msgstr "" msgid "" -"Execute a child program in a new process. On POSIX, the class uses :meth:" -"`os.execvpe`-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.execvpe`-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 "" msgid "" -"*args* should be a sequence of program arguments or else a single string or :" -"term:`path-like object`. By default, the program to execute is the first " +"*args* should be a sequence of program arguments or else a single string " +"or :term:`path-like object`. 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 " @@ -439,8 +441,8 @@ 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 "" msgid "" @@ -462,16 +464,16 @@ msgid "" msgstr "" 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 ``text=True`` or " +"``universal_newlines=True``)" msgstr "" msgid "any other positive value means use a buffer of approximately that size" msgstr "" 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 "" msgid "" @@ -508,12 +510,12 @@ msgid "" "values are :data:`PIPE`, :data:`DEVNULL`, an existing file descriptor (a " "positive integer), an existing :term:`file object` with a valid file " "descriptor, 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." +"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 "" msgid "" @@ -522,15 +524,17 @@ msgid "" msgstr "" 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." +"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. " +"If you must use it, keep it trivial! Minimize the number of libraries you " +"call into." msgstr "" 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* and " -"*process_group* parameters should take the place of code using *preexec_fn* " -"to call :func:`os.setsid` or :func:`os.setpgid` in the child." +"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." msgstr "" msgid "" @@ -549,8 +553,8 @@ msgstr "" 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 "" msgid "" @@ -559,15 +563,15 @@ msgid "" msgstr "" 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 "" 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 "" msgid "The *pass_fds* parameter was added." @@ -575,10 +579,10 @@ msgstr "" msgid "" "If *cwd* is not ``None``, the function changes the working directory to " -"*cwd* before executing the child. *cwd* can be a string, bytes or :term:" -"`path-like ` object. On POSIX, the function looks for " -"*executable* (or for the first item in *args*) relative to *cwd* if the " -"executable path is a relative path." +"*cwd* before executing the child. *cwd* can be a string, bytes " +"or :term:`path-like ` object. On POSIX, the function " +"looks for *executable* (or for the first item in *args*) relative to *cwd* " +"if the executable path is a relative path." msgstr "" msgid "*cwd* parameter accepts a :term:`path-like object` on POSIX." @@ -600,25 +604,13 @@ msgid "*restore_signals* was added." msgstr "" 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." -msgstr "" - -msgid ":ref:`Availability `: POSIX" +"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 "" msgid "*start_new_session* was added." msgstr "" -msgid "" -"If *process_group* is a non-negative integer, the ``setpgid(0, value)`` " -"system call will be made in the child process prior to the execution of the " -"subprocess." -msgstr "" - -msgid "*process_group* was added." -msgstr "" - msgid "" "If *group* is not ``None``, the setregid() system call will be made in the " "child process prior to the execution of the subprocess. If the provided " @@ -627,6 +619,9 @@ msgid "" "passed verbatim. (POSIX only)" msgstr "" +msgid ":ref:`Availability `: POSIX" +msgstr "" + msgid "" "If *extra_groups* is not ``None``, the setgroups() system call will be made " "in the child process prior to the execution of the subprocess. Strings " @@ -643,6 +638,12 @@ msgid "" "passed verbatim. (POSIX only)" msgstr "" +msgid "" +"Specifying *user* will not drop existing supplementary group memberships! " +"The caller must also pass ``extra_groups=()`` to reduce the group membership " +"of the child process for security purposes." +msgstr "" + msgid "" "If *umask* is not negative, the umask() system call will be made in the " "child process prior to the execution of the subprocess." @@ -651,7 +652,9 @@ msgstr "" 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." +"behavior of inheriting the current process' environment. This mapping can be " +"str to str on any platform or bytes to bytes on POSIX platforms much " +"like :data:`os.environ` or :data:`os.environb`." msgstr "" msgid "" @@ -663,7 +666,7 @@ msgstr "" 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 " -"*encoding* and *errors*, as described above in :ref:`frequently-used-" +"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." @@ -682,40 +685,40 @@ msgid "" msgstr "" msgid ":data:`CREATE_NEW_CONSOLE`" -msgstr "" +msgstr ":data:`CREATE_NEW_CONSOLE`" msgid ":data:`CREATE_NEW_PROCESS_GROUP`" -msgstr "" +msgstr ":data:`CREATE_NEW_PROCESS_GROUP`" msgid ":data:`ABOVE_NORMAL_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`ABOVE_NORMAL_PRIORITY_CLASS`" msgid ":data:`BELOW_NORMAL_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`BELOW_NORMAL_PRIORITY_CLASS`" msgid ":data:`HIGH_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`HIGH_PRIORITY_CLASS`" msgid ":data:`IDLE_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`IDLE_PRIORITY_CLASS`" msgid ":data:`NORMAL_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`NORMAL_PRIORITY_CLASS`" msgid ":data:`REALTIME_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`REALTIME_PRIORITY_CLASS`" msgid ":data:`CREATE_NO_WINDOW`" -msgstr "" +msgstr ":data:`CREATE_NO_WINDOW`" msgid ":data:`DETACHED_PROCESS`" -msgstr "" +msgstr ":data:`DETACHED_PROCESS`" msgid ":data:`CREATE_DEFAULT_ERROR_MODE`" -msgstr "" +msgstr ":data:`CREATE_DEFAULT_ERROR_MODE`" msgid ":data:`CREATE_BREAKAWAY_FROM_JOB`" -msgstr "" +msgstr ":data:`CREATE_BREAKAWAY_FROM_JOB`" msgid "" "*pipesize* can be used to change the size of the pipe when :data:`PIPE` is " @@ -739,14 +742,14 @@ msgid "" msgstr "" msgid "" -"Popen and the other functions in this module that use it raise an :ref:" -"`auditing event ` ``subprocess.Popen`` with arguments " +"Popen and the other functions in this module that use it raise " +"an :ref:`auditing event ` ``subprocess.Popen`` with arguments " "``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may " "be a single string or a list of strings, depending on platform." msgstr "" msgid "Added context manager support." -msgstr "" +msgstr "Dodano obsługę menedżera kontekstu v" msgid "" "Popen destructor now emits a :exc:`ResourceWarning` warning if the child " @@ -757,8 +760,8 @@ msgid "" "Popen can use :func:`os.posix_spawn` in some cases for better performance. " "On Windows Subsystem for Linux and QEMU User Emulation, Popen constructor " "using :func:`os.posix_spawn` no longer raise an exception on errors like " -"missing program, but the child process fails with a non-zero :attr:`~Popen." -"returncode`." +"missing program, but the child process fails with a non-" +"zero :attr:`~Popen.returncode`." msgstr "" msgid "Exceptions" @@ -772,11 +775,11 @@ msgstr "" 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. Note that, when ``shell=True``, :exc:" -"`OSError` will be raised by the child only if the selected shell itself was " -"not found. To determine if the shell failed to find the requested " -"application, it is necessary to check the return code or output from the " -"subprocess." +"prepare for :exc:`OSError` exceptions. Note that, when " +"``shell=True``, :exc:`OSError` will be raised by the child only if the " +"selected shell itself was not found. To determine if the shell failed to " +"find the requested application, it is necessary to check the return code or " +"output from the subprocess." msgstr "" msgid "" @@ -785,14 +788,15 @@ msgid "" msgstr "" 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 "" msgid "" -"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." +"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 "" msgid "" @@ -806,8 +810,8 @@ msgid "Security Considerations" msgstr "" 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 library will not implicitly choose " +"to 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 " @@ -817,6 +821,16 @@ msgid "" "escaping." msgstr "" +msgid "" +"On Windows, batch files (:file:`*.bat` or :file:`*.cmd`) may be launched by " +"the operating system in a system shell regardless of the arguments passed to " +"this library. This could result in arguments being parsed according to shell " +"rules, but without any escaping added by Python. If you are intentionally " +"launching a batch file with arguments from untrusted sources, consider " +"passing ``shell=True`` to allow Python to escape special characters. " +"See :gh:`114539` for additional discussion." +msgstr "" + msgid "Popen Objects" msgstr "" @@ -824,19 +838,19 @@ msgid "Instances of the :class:`Popen` class have the following methods:" msgstr "" 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 "" 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 "" 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 "" msgid "" @@ -848,8 +862,8 @@ msgstr "" 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 "" msgid "*timeout* was added." @@ -877,9 +891,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -902,7 +916,7 @@ msgstr "" 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``." +"parameter which includes `CREATE_NEW_PROCESS_GROUP`." msgstr "" msgid "" @@ -916,7 +930,9 @@ msgid "" "Windows :meth:`kill` is an alias for :meth:`terminate`." msgstr "" -msgid "The following attributes are also available:" +msgid "" +"The following attributes are also set by the class for you to access. " +"Reassigning them to new values is unsupported:" msgstr "" msgid "" @@ -927,34 +943,34 @@ msgstr "" 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* " -"arguments were specified or the *universal_newlines* argument was ``True``, " -"the stream is a text stream, otherwise it is a byte stream. If the *stdin* " -"argument was not :data:`PIPE`, this attribute is ``None``." +"arguments were specified or the *text* or *universal_newlines* argument was " +"``True``, the stream is a text stream, otherwise it is a byte stream. If the " +"*stdin* argument was not :data:`PIPE`, this attribute is ``None``." msgstr "" 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 " -"not :data:`PIPE`, this attribute is ``None``." +"specified or the *text* or *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 "" 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``." +"were specified or the *text* or *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 "" 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 "" msgid "The process ID of the child process." @@ -1021,14 +1037,14 @@ msgid "" msgstr "" 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 "" msgid "" "A dictionary of additional attributes for process creation as given in " -"``STARTUPINFOEX``, see `UpdateProcThreadAttribute `__." +"``STARTUPINFOEX``, see `UpdateProcThreadAttribute `__." msgstr "" msgid "Supported attributes:" @@ -1043,18 +1059,18 @@ msgid "" msgstr "" 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 "" 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 " -"temporarily creates inheritable handles." +"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 "" msgid "Windows Constants" @@ -1082,9 +1098,9 @@ msgid "Hides the window. Another window will be activated." msgstr "" 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 "" msgid "" @@ -1199,20 +1215,21 @@ msgstr "" 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. If :func:`check_call` was unable " -"to start the process it will propagate the exception that was raised." +"code was zero then return, otherwise raise :exc:`CalledProcessError`. " +"The :exc:`CalledProcessError` object will have the return code in " +"the :attr:`~CalledProcessError.returncode` attribute. If :func:`check_call` " +"was unable to start the process it will propagate the exception that was " +"raised." msgstr "" msgid "Run command with arguments and return its output." msgstr "" 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 "" msgid "This is equivalent to::" @@ -1221,10 +1238,10 @@ msgstr "" 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 " -"passed directly through to that interface. One API deviation from :func:" -"`run` behavior exists: passing ``input=None`` will behave the same as " -"``input=b''`` (or ``input=''``, depending on other arguments) rather than " -"using the parent's standard input file handle." +"passed directly through to that interface. One API deviation " +"from :func:`run` behavior exists: passing ``input=None`` will behave the " +"same as ``input=b''`` (or ``input=''``, depending on other arguments) rather " +"than using the parent's standard input file handle." msgstr "" msgid "" @@ -1240,8 +1257,8 @@ msgid "" msgstr "" 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 "" msgid "Support for the *input* keyword argument was added." @@ -1260,15 +1277,15 @@ msgstr "" 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 "" 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 "" msgid "" @@ -1305,14 +1322,14 @@ msgid "Calling the program through the shell is usually not required." msgstr "" msgid "" -"The :func:`call` return value is encoded differently to that of :func:`os." -"system`." +"The :func:`call` return value is encoded differently to that " +"of :func:`os.system`." msgstr "" msgid "" "The :func:`os.system` function ignores SIGINT and SIGQUIT signals while the " -"command is running, but the caller must do this separately when using the :" -"mod:`subprocess` module." +"command is running, but the caller must do this separately when using " +"the :mod:`subprocess` module." msgstr "" msgid "A more realistic example would look like this::" @@ -1348,8 +1365,8 @@ msgid "" msgstr "" 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 "" msgid ":class:`Popen` raises an exception if the execution fails." @@ -1382,9 +1399,8 @@ msgstr "" msgid "" "Execute the string *cmd* in a shell with :meth:`Popen.check_output` and " -"return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to " -"decode output; see the notes on :ref:`frequently-used-arguments` for more " -"details." +"return a 2-tuple ``(exitcode, output)``. The locale encoding is used; see " +"the notes on :ref:`frequently-used-arguments` for more details." msgstr "" msgid "" @@ -1392,7 +1408,7 @@ msgid "" "command can be interpreted as the return code of subprocess. Example::" msgstr "" -msgid ":ref:`Availability `: Unix, Windows." +msgid ":ref:`Availability `: POSIX & Windows." msgstr "" msgid "Windows support was added." @@ -1400,11 +1416,8 @@ msgstr "" 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`." -msgstr "" - -msgid "Added *encoding* and *errors* arguments." +"it did in Python 3.3.3 and earlier. exitcode has the same value " +"as :attr:`~Popen.returncode`." msgstr "" msgid "Return output (stdout and stderr) of executing *cmd* in a shell." @@ -1458,54 +1471,7 @@ msgid "" msgstr "" msgid ":mod:`shlex`" -msgstr "" +msgstr ":mod:`shlex`" msgid "Module which provides function to parse and escape command lines." msgstr "" - -msgid "Disabling use of ``vfork()`` or ``posix_spawn()``" -msgstr "" - -msgid "" -"On Linux, :mod:`subprocess` defaults to using the ``vfork()`` system call " -"internally when it is safe to do so rather than ``fork()``. This greatly " -"improves performance." -msgstr "" - -msgid "" -"If you ever encounter a presumed highly unusual situation where you need to " -"prevent ``vfork()`` from being used by Python, you can set the :attr:" -"`subprocess._USE_VFORK` attribute to a false value." -msgstr "" - -msgid "subprocess._USE_VFORK = False # See CPython issue gh-NNNNNN." -msgstr "" - -msgid "" -"Setting this has no impact on use of ``posix_spawn()`` which could use " -"``vfork()`` internally within its libc implementation. There is a similar :" -"attr:`subprocess._USE_POSIX_SPAWN` attribute if you need to prevent use of " -"that." -msgstr "" - -msgid "subprocess._USE_POSIX_SPAWN = False # See CPython issue gh-NNNNNN." -msgstr "" - -msgid "" -"It is safe to set these to false on any Python version. They will have no " -"effect on older versions when unsupported. Do not assume the attributes are " -"available to read. Despite their names, a true value does not indicate that " -"the corresponding function will be used, only that that it may be." -msgstr "" - -msgid "" -"Please file issues any time you have to use these private knobs with a way " -"to reproduce the issue you were seeing. Link to that issue from a comment in " -"your code." -msgstr "" - -msgid "``_USE_POSIX_SPAWN``" -msgstr "" - -msgid "``_USE_VFORK``" -msgstr "" diff --git a/library/sunau.po b/library/sunau.po index a611695aa5..90c7ba0a0f 100644 --- a/library/sunau.po +++ b/library/sunau.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Stefan Ocetkiewicz , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`sunau` --- Read and write Sun AU files" msgstr "" @@ -36,8 +36,8 @@ msgstr "" 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 "" msgid "" @@ -46,7 +46,7 @@ msgid "" msgstr "" msgid "Field" -msgstr "" +msgstr "Pole" msgid "Contents" msgstr "Zawartość" @@ -108,13 +108,13 @@ msgid "" msgstr "" msgid "``'r'``" -msgstr "" +msgstr "``'r'``" msgid "Read only mode." msgstr "" msgid "``'w'``" -msgstr "" +msgstr "``'w'``" msgid "Write only mode." msgstr "" @@ -191,8 +191,8 @@ msgstr "" 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 "" msgid "" @@ -210,8 +210,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -220,12 +220,12 @@ msgid "" msgstr "" 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 "" msgid "Returns ``None``." -msgstr "" +msgstr "Returns ``None``." msgid "Raise an error." msgstr "" @@ -267,8 +267,8 @@ msgid "" msgstr "" 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 "" msgid "Write audio frames, without correcting *nframes*." @@ -287,6 +287,6 @@ msgid "This method is called upon deletion." msgstr "" 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 "" diff --git a/library/symtable.po b/library/symtable.po index 363df4d62b..42d3c8a0aa 100644 --- a/library/symtable.po +++ b/library/symtable.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`symtable` --- Access to the compiler's symbol tables" msgstr "" msgid "**Source code:** :source:`Lib/symtable.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/symtable.py`" msgid "" "Symbol tables are generated by the compiler from AST just before bytecode is " @@ -80,8 +80,8 @@ msgid "" msgstr "" msgid "" -"Return a view object containing the names of symbols in the table. See the :" -"ref:`documentation of view objects `." +"Return a view object containing the names of symbols in the table. See " +"the :ref:`documentation of view objects `." msgstr "" msgid "Lookup *name* in the table and return a :class:`Symbol` instance." @@ -94,8 +94,8 @@ msgid "Return a list of the nested symbol tables." msgstr "" 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 "" msgid "Return a tuple containing names of parameters to this function." @@ -181,6 +181,6 @@ msgid "Return a list of namespaces bound to this name." msgstr "" msgid "" -"Return the namespace bound to this name. If more than one or no namespace is " -"bound to this name, a :exc:`ValueError` is raised." +"Return the namespace bound to this name. If more than one namespace is " +"bound, :exc:`ValueError` is raised." msgstr "" diff --git a/library/sys.po b/library/sys.po index 0166d6c84f..439d6c62fa 100644 --- a/library/sys.po +++ b/library/sys.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`sys` --- System-specific parameters and functions" msgstr "" @@ -58,8 +57,14 @@ msgid "" msgstr "" msgid "" -"Raises an :ref:`auditing event ` ``sys.addaudithook`` with no " -"arguments." +"Note that audit hooks are primarily for collecting information about " +"internal or otherwise unobservable actions, whether by Python or libraries " +"written in Python. They are not suitable for implementing a \"sandbox\". In " +"particular, malicious code can trivially disable or bypass hooks added using " +"this function. At a minimum, any security-sensitive hooks must be added " +"using the C API :c:func:`PySys_AddAuditHook` before initialising the " +"runtime, and any modules allowing arbitrary memory modification (such " +"as :mod:`ctypes`) should be completely removed or closely monitored." msgstr "" msgid "" @@ -133,8 +138,8 @@ msgid "" msgstr "" msgid "" -"Hooks are added using the :func:`sys.addaudithook` or :c:func:" -"`PySys_AddAuditHook` functions." +"Hooks are added using the :func:`sys.addaudithook` " +"or :c:func:`PySys_AddAuditHook` functions." msgstr "" msgid "" @@ -148,23 +153,25 @@ msgid "" msgstr "" 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 "" 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 `, " -"the values will stay the same; if ``site.py`` finds that a virtual " +"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 "" msgid "" @@ -252,27 +259,28 @@ msgid "" msgstr "" 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, " +"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." +"``*args`` and ``**kws``, and whatever ``function()`` returns, " +"``sys.breakpointhook()`` returns to the built-in :func:`breakpoint` function." msgstr "" 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 "" 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 "" msgid "" @@ -298,18 +306,18 @@ msgid ":ref:`Availability `: Windows." msgstr "" 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 "" 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 "" msgid "Pseudo-code::" @@ -321,9 +329,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 "" msgid "" @@ -342,9 +350,9 @@ msgstr "" msgid "" "This value is initially set based on the value of the :option:`-X` " -"``pycache_prefix=PATH`` command-line option or the :envvar:" -"`PYTHONPYCACHEPREFIX` environment variable (command-line takes precedence). " -"If neither are set, it is ``None``." +"``pycache_prefix=PATH`` command-line option or " +"the :envvar:`PYTHONPYCACHEPREFIX` environment variable (command-line takes " +"precedence). If neither are set, it is ``None``." msgstr "" msgid "" @@ -352,13 +360,13 @@ msgid "" msgstr "" 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 "" msgid "" @@ -371,14 +379,14 @@ msgid "" "``type``, ``value``, ``traceback`` when an uncaught exception occurs. If no " "hook has been set, ``hook`` may be ``None``. If any hook raises an exception " "derived from :class:`RuntimeError` the call to the hook will be suppressed. " -"Otherwise, the audit hook exception will be reported as unraisable and ``sys." -"excepthook`` will be called." +"Otherwise, the audit hook exception will be reported as unraisable and " +"``sys.excepthook`` will be called." msgstr "" msgid "" "The :func:`sys.unraisablehook` function handles unraisable exceptions and " -"the :func:`threading.excepthook` function handles exception raised by :func:" -"`threading.Thread.run`." +"the :func:`threading.excepthook` function handles exception raised " +"by :func:`threading.Thread.run`." msgstr "" msgid "" @@ -390,10 +398,10 @@ msgid "" msgstr "" msgid "__breakpointhook__" -msgstr "" +msgstr "__breakpointhook__" msgid "__unraisablehook__" -msgstr "" +msgstr "__unraisablehook__" msgid "" "This function returns a tuple of three values that give information about " @@ -421,17 +429,17 @@ msgid "" "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``." +"(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 "" 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 "" msgid "" @@ -470,9 +478,9 @@ msgid "" msgstr "" 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 " -"streams), the exit status is changed to 120." +"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 "" msgid "" @@ -490,13 +498,13 @@ msgid ":const:`debug`" msgstr "" msgid ":option:`-d`" -msgstr "" +msgstr ":option:`-d`" msgid ":const:`inspect`" msgstr "" msgid ":option:`-i`" -msgstr "" +msgstr ":option:`-i`" msgid ":const:`interactive`" msgstr "" @@ -505,7 +513,7 @@ msgid ":const:`isolated`" msgstr "" msgid ":option:`-I`" -msgstr "" +msgstr ":option:`-I`" msgid ":const:`optimize`" msgstr "" @@ -517,49 +525,49 @@ msgid ":const:`dont_write_bytecode`" msgstr "" msgid ":option:`-B`" -msgstr "" +msgstr ":option:`-B`" msgid ":const:`no_user_site`" msgstr "" msgid ":option:`-s`" -msgstr "" +msgstr ":option:`-s`" msgid ":const:`no_site`" msgstr "" msgid ":option:`-S`" -msgstr "" +msgstr ":option:`-S`" msgid ":const:`ignore_environment`" msgstr "" msgid ":option:`-E`" -msgstr "" +msgstr ":option:`-E`" msgid ":const:`verbose`" msgstr "" msgid ":option:`-v`" -msgstr "" +msgstr ":option:`-v`" msgid ":const:`bytes_warning`" msgstr "" msgid ":option:`-b`" -msgstr "" +msgstr ":option:`-b`" msgid ":const:`quiet`" msgstr "" msgid ":option:`-q`" -msgstr "" +msgstr ":option:`-q`" msgid ":const:`hash_randomization`" msgstr "" msgid ":option:`-R`" -msgstr "" +msgstr ":option:`-R`" msgid ":const:`dev_mode`" msgstr "" @@ -617,10 +625,10 @@ msgstr "" msgid "explanation" msgstr "" -msgid ":const:`epsilon`" +msgid "``epsilon``" msgstr "" -msgid "DBL_EPSILON" +msgid "``DBL_EPSILON``" msgstr "" msgid "" @@ -631,10 +639,10 @@ msgstr "" msgid "See also :func:`math.ulp`." msgstr "" -msgid ":const:`dig`" +msgid "``dig``" msgstr "" -msgid "DBL_DIG" +msgid "``DBL_DIG``" msgstr "" msgid "" @@ -642,10 +650,10 @@ msgid "" "float; see below" msgstr "" -msgid ":const:`mant_dig`" +msgid "``mant_dig``" msgstr "" -msgid "DBL_MANT_DIG" +msgid "``DBL_MANT_DIG``" msgstr "" msgid "" @@ -653,19 +661,19 @@ msgid "" "float" msgstr "" -msgid ":const:`max`" +msgid "``max``" msgstr "" -msgid "DBL_MAX" +msgid "``DBL_MAX``" msgstr "" msgid "maximum representable positive finite float" msgstr "" -msgid ":const:`max_exp`" +msgid "``max_exp``" msgstr "" -msgid "DBL_MAX_EXP" +msgid "``DBL_MAX_EXP``" msgstr "" msgid "" @@ -673,10 +681,10 @@ msgid "" "float" msgstr "" -msgid ":const:`max_10_exp`" +msgid "``max_10_exp``" msgstr "" -msgid "DBL_MAX_10_EXP" +msgid "``DBL_MAX_10_EXP``" msgstr "" msgid "" @@ -684,10 +692,10 @@ msgid "" "finite floats" msgstr "" -msgid ":const:`min`" +msgid "``min``" msgstr "" -msgid "DBL_MIN" +msgid "``DBL_MIN``" msgstr "" msgid "minimum representable positive *normalized* float" @@ -698,51 +706,57 @@ msgid "" "*denormalized* representable float." msgstr "" -msgid ":const:`min_exp`" +msgid "``min_exp``" msgstr "" -msgid "DBL_MIN_EXP" +msgid "``DBL_MIN_EXP``" msgstr "" msgid "minimum integer *e* such that ``radix**(e-1)`` is a normalized float" msgstr "" -msgid ":const:`min_10_exp`" +msgid "``min_10_exp``" msgstr "" -msgid "DBL_MIN_10_EXP" +msgid "``DBL_MIN_10_EXP``" msgstr "" msgid "minimum integer *e* such that ``10**e`` is a normalized float" msgstr "" -msgid ":const:`radix`" +msgid "``radix``" msgstr "" -msgid "FLT_RADIX" +msgid "``FLT_RADIX``" msgstr "" msgid "radix of exponent representation" msgstr "" -msgid ":const:`rounds`" +msgid "``rounds``" +msgstr "" + +msgid "``FLT_ROUNDS``" msgstr "" -msgid "FLT_ROUNDS" +msgid "" +"integer representing the rounding mode for floating-point arithmetic. This " +"reflects the value of the system ``FLT_ROUNDS`` macro at interpreter startup " +"time: ``-1`` indeterminable, ``0`` toward zero, ``1`` to nearest, ``2`` " +"toward positive infinity, ``3`` toward negative infinity" msgstr "" msgid "" -"integer constant representing the rounding mode used for arithmetic " -"operations. This reflects the value of the system FLT_ROUNDS macro at " -"interpreter startup time. See section 5.2.4.2.2 of the C99 standard for an " -"explanation of the possible values and their meanings." +"All other values for ``FLT_ROUNDS`` characterize implementation-defined " +"rounding behavior." msgstr "" 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 "" msgid "" @@ -763,9 +777,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 "" msgid "" @@ -797,8 +811,8 @@ msgid "" "Get the :term:`filesystem encoding `: " "the encoding used with the :term:`filesystem error handler ` to convert between Unicode filenames and bytes " -"filenames. The filesystem error handler is returned from :func:" -"`getfilesystemencoding`." +"filenames. The filesystem error handler is returned " +"from :func:`getfilesystemencodeerrors`." msgstr "" msgid "" @@ -815,17 +829,17 @@ msgstr "" msgid "" "The :term:`filesystem encoding and error handler` are configured at Python " -"startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig." -"filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :" -"c:type:`PyConfig`." +"startup by the :c:func:`PyConfig_Read` function: " +"see :c:member:`~PyConfig.filesystem_encoding` " +"and :c:member:`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`." msgstr "" msgid ":func:`getfilesystemencoding` result cannot be ``None`` anymore." msgstr "" 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 "" msgid "" @@ -836,8 +850,8 @@ msgid "" "Get the :term:`filesystem error handler `: the error handler used with the :term:`filesystem encoding " "` to convert between Unicode " -"filenames and bytes filenames. The filesystem encoding is returned from :" -"func:`getfilesystemencoding`." +"filenames and bytes filenames. The filesystem encoding is returned " +"from :func:`getfilesystemencoding`." msgstr "" msgid "" @@ -851,11 +865,17 @@ msgid "" "reference as an argument to :func:`getrefcount`." msgstr "" +msgid "" +"Note that the returned value may not actually reflect how many references to " +"the object are actually held. Consequently, do not rely on the returned " +"value to be accurate, other than a value of 0 or 1." +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 "" msgid "" @@ -887,8 +907,8 @@ msgid "" msgstr "" msgid "" -"Return the interpreter's \"thread switch interval\"; see :func:" -"`setswitchinterval`." +"Return the interpreter's \"thread switch interval\"; " +"see :func:`setswitchinterval`." msgstr "" msgid "" @@ -928,9 +948,9 @@ msgid "" "*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." +"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 "" msgid "*platform* will be :const:`2 (VER_PLATFORM_WIN32_NT)`." @@ -991,12 +1011,12 @@ msgid "Added *platform_version*" msgstr "" 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 " -"are used to schedule finalization of an asynchronous generator by an event " -"loop." +"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 "" msgid "See :pep:`525` for more details." @@ -1008,8 +1028,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1114,8 +1134,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1129,10 +1149,10 @@ msgstr "" 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." +"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 "" msgid "" @@ -1146,7 +1166,7 @@ msgid "" msgstr "" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Explanation" msgstr "Wytłumaczenie" @@ -1177,8 +1197,9 @@ msgid ":const:`str_digits_check_threshold`" msgstr "" msgid "" -"minimum non-zero value for :func:`sys.set_int_max_str_digits`, :envvar:" -"`PYTHONINTMAXSTRDIGITS`, or :option:`-X int_max_str_digits <-X>`." +"minimum non-zero value " +"for :func:`sys.set_int_max_str_digits`, :envvar:`PYTHONINTMAXSTRDIGITS`, " +"or :option:`-X int_max_str_digits <-X>`." msgstr "" msgid "Added ``default_max_str_digits`` and ``str_digits_check_threshold``." @@ -1234,8 +1255,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1256,27 +1277,28 @@ msgid "" msgstr "" 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. By default, it holds entries that " -"implement Python's default import semantics. 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. By default, it " +"holds entries that implement Python's default import semantics. " +"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 "" msgid ":class:`importlib.abc.MetaPathFinder`" -msgstr "" +msgstr ":class:`importlib.abc.MetaPathFinder`" 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 "" msgid ":class:`importlib.machinery.ModuleSpec`" -msgstr "" +msgstr ":class:`importlib.machinery.ModuleSpec`" msgid "" "The concrete class which :meth:`~importlib.abc.MetaPathFinder.find_spec` " @@ -1284,11 +1306,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1323,8 +1345,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 "" msgid "" @@ -1334,14 +1356,14 @@ msgid "" msgstr "" 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 "" 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 "" msgid "Originally specified in :pep:`302`." @@ -1379,7 +1401,7 @@ msgid "System" msgstr "" msgid "``platform`` value" -msgstr "" +msgstr "``platform`` value" msgid "AIX" msgstr "" @@ -1391,22 +1413,22 @@ msgid "Linux" msgstr "" msgid "``'linux'``" -msgstr "" +msgstr "``'linux'``" msgid "Windows" -msgstr "" +msgstr "Windows" msgid "``'win32'``" -msgstr "" +msgstr "``'win32'``" msgid "Windows/Cygwin" msgstr "" msgid "``'cygwin'``" -msgstr "" +msgstr "``'cygwin'``" msgid "macOS" -msgstr "" +msgstr "macOS" msgid "``'darwin'``" msgstr "" @@ -1442,8 +1464,8 @@ msgstr "" msgid "" "It is equal to ``\"lib\"`` on most platforms. On Fedora and SuSE, it is " -"equal to ``\"lib64\"`` on 64-bit platforms which gives the following ``sys." -"path`` paths (where ``X.Y`` is the Python ``major.minor`` version):" +"equal to ``\"lib64\"`` on 64-bit platforms which gives the following " +"``sys.path`` paths (where ``X.Y`` is the Python ``major.minor`` version):" msgstr "" msgid "" @@ -1458,8 +1480,8 @@ msgid "" msgstr "" msgid "" -"``/usr/lib/pythonX.Y/site-packages/`` (always use ``lib``, not :data:`sys." -"platlibdir`): Third-party modules" +"``/usr/lib/pythonX.Y/site-packages/`` (always use ``lib``, " +"not :data:`sys.platlibdir`): Third-party modules" msgstr "" msgid "" @@ -1469,10 +1491,10 @@ msgstr "" msgid "" "A string giving the site-specific directory prefix where the platform " -"independent Python files are installed; on Unix, the default is ``'/usr/" -"local'``. This can be set at build time with the ``--prefix`` argument to " -"the :program:`configure` script. See :ref:`installation_paths` for derived " -"paths." +"independent Python files are installed; on Unix, the default is :file:`/usr/" +"local`. This can be set at build time with the :option:`--prefix` argument " +"to the :program:`configure` script. See :ref:`installation_paths` for " +"derived paths." msgstr "" msgid "" @@ -1496,14 +1518,14 @@ msgid "" "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 "" msgid "" "Set the :ref:`integer string conversion length limitation " -"` used by this interpreter. See also :func:" -"`get_int_max_str_digits`." +"` used by this interpreter. See " +"also :func:`get_int_max_str_digits`." msgstr "" msgid "" @@ -1544,7 +1566,7 @@ msgid "" msgstr "" msgid "``'return'``" -msgstr "" +msgstr "``'return'``" msgid "" "A function (or other code block) is about to return. The profile function " @@ -1553,7 +1575,7 @@ msgid "" msgstr "" msgid "``'c_call'``" -msgstr "" +msgstr "``'c_call'``" msgid "" "A C function is about to be called. This may be an extension function or a " @@ -1561,13 +1583,13 @@ msgid "" msgstr "" msgid "``'c_return'``" -msgstr "" +msgstr "``'c_return'``" msgid "A C function has returned. *arg* is the C function object." msgstr "" msgid "``'c_exception'``" -msgstr "" +msgstr "``'c_exception'``" msgid "A C function has raised an exception. *arg* is the C function object." msgstr "" @@ -1586,8 +1608,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1609,8 +1631,8 @@ 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 "" msgid "" @@ -1652,8 +1674,8 @@ msgid "" "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." +"events may be disabled for a frame by setting :attr:`f_trace_lines` " +"to :const:`False` on that frame." msgstr "" msgid "" @@ -1679,8 +1701,8 @@ 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." +"emitted by default: they must be explicitly requested by " +"setting :attr:`f_trace_opcodes` to :const:`True` on the frame." msgstr "" msgid "" @@ -1694,11 +1716,11 @@ msgid "" "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 "" msgid "For more information on code and frame objects, refer to :ref:`types`." @@ -1717,26 +1739,26 @@ msgid "" msgstr "" 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 "" 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." msgstr "" msgid "" -"Raises an :ref:`auditing event ` ``sys." -"set_asyncgen_hooks_firstiter`` with no arguments." +"Raises an :ref:`auditing event ` " +"``sys.set_asyncgen_hooks_firstiter`` with no arguments." msgstr "" msgid "" -"Raises an :ref:`auditing event ` ``sys." -"set_asyncgen_hooks_finalizer`` with no arguments." +"Raises an :ref:`auditing event ` " +"``sys.set_asyncgen_hooks_finalizer`` with no arguments." msgstr "" msgid "" @@ -1746,8 +1768,8 @@ msgstr "" 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 "" msgid "" @@ -1778,8 +1800,8 @@ msgid "" msgstr "" msgid "" -"See also :func:`sys.getfilesystemencoding` and :func:`sys." -"getfilesystemencodeerrors`." +"See also :func:`sys.getfilesystemencoding` " +"and :func:`sys.getfilesystemencodeerrors`." msgstr "" msgid "See :pep:`529` for more details." @@ -1791,8 +1813,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1809,8 +1831,9 @@ msgid "" msgstr "" msgid "" -"The encoding and error handling are is initialized from :c:member:`PyConfig." -"stdio_encoding` and :c:member:`PyConfig.stdio_errors`." +"The encoding and error handling are is initialized " +"from :c:member:`PyConfig.stdio_encoding` " +"and :c:member:`PyConfig.stdio_errors`." msgstr "" msgid "" @@ -1830,19 +1853,20 @@ msgid "" msgstr "" 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 "" msgid "" "When interactive, the ``stdout`` stream is line-buffered. Otherwise, it is " "block-buffered like regular text files. The ``stderr`` stream is line-" "buffered in both cases. You can make both streams unbuffered by passing " -"the :option:`-u` command-line option or setting the :envvar:" -"`PYTHONUNBUFFERED` environment variable." +"the :option:`-u` command-line option or setting " +"the :envvar:`PYTHONUNBUFFERED` environment variable." msgstr "" msgid "" @@ -2037,8 +2061,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 "" msgid "Added named component attributes." @@ -2053,9 +2077,9 @@ msgstr "" 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." +"major and minor versions of the running Python interpreter. 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 "" msgid "" diff --git a/library/syslog.po b/library/syslog.po index 3a7c1bf170..5dc7577b3b 100644 --- a/library/syslog.po +++ b/library/syslog.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`syslog` --- Unix syslog library routines" msgstr "" @@ -34,17 +34,8 @@ msgstr "" 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`." -msgstr "" - -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." +"library that can speak to a syslog server is available in " +"the :mod:`logging.handlers` module as :class:`SysLogHandler`." msgstr "" msgid "The module defines the following functions:" @@ -60,8 +51,8 @@ msgid "" msgstr "" msgid "" -"If :func:`openlog` has not been called prior to the call to :func:`syslog`, :" -"func:`openlog` will be called with no arguments." +"If :func:`openlog` has not been called prior to the call " +"to :func:`syslog`, :func:`openlog` will be called with no arguments." msgstr "" msgid "" @@ -76,9 +67,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -107,8 +98,8 @@ msgstr "" 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." +"(if :func:`openlog` hasn't already been called), and *ident* and " +"other :func:`openlog` parameters are reset to defaults." msgstr "" msgid "" @@ -136,20 +127,16 @@ msgstr "" msgid "Priority levels (high to low):" msgstr "" -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`." +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`." msgstr "" msgid "Facilities:" msgstr "" 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 "" msgid "Log options:" @@ -157,8 +144,8 @@ msgstr "" 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_ODELAY`, :const:`LOG_NOWAIT`, " +"and :const:`LOG_PERROR`." msgstr "" msgid "Examples" diff --git a/library/tarfile.po b/library/tarfile.po new file mode 100644 index 0000000000..1ba9173bf9 --- /dev/null +++ b/library/tarfile.po @@ -0,0 +1,1405 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`tarfile` --- Read and write tar archive files" +msgstr "" + +msgid "**Source code:** :source:`Lib/tarfile.py`" +msgstr "**Kod źródłowy:** :source:`Lib/tarfile.py`" + +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 " +"in :ref:`shutil `." +msgstr "" + +msgid "Some facts and figures:" +msgstr "" + +msgid "" +"reads and writes :mod:`gzip`, :mod:`bz2` and :mod:`lzma` compressed archives " +"if the respective modules are available." +msgstr "" + +msgid "read/write support for the POSIX.1-1988 (ustar) format." +msgstr "" + +msgid "" +"read/write support for the GNU tar format including *longname* and " +"*longlink* extensions, read-only support for all variants of the *sparse* " +"extension including restoration of sparse files." +msgstr "" + +msgid "read/write support for the POSIX.1-2001 (pax) format." +msgstr "" + +msgid "" +"handles directories, regular files, hardlinks, symbolic links, fifos, " +"character devices and block devices and is able to acquire and restore file " +"information like timestamp, access permissions and owner." +msgstr "" + +msgid "Added support for :mod:`lzma` compression." +msgstr "" + +msgid "" +"Return a :class:`TarFile` object for the pathname *name*. For detailed " +"information on :class:`TarFile` objects and the keyword arguments that are " +"allowed, see :ref:`tarfile-objects`." +msgstr "" + +msgid "" +"*mode* has to be a string of the form ``'filemode[:compression]'``, it " +"defaults to ``'r'``. Here is a full list of mode combinations:" +msgstr "" + +msgid "mode" +msgstr "" + +msgid "action" +msgstr "" + +msgid "``'r' or 'r:*'``" +msgstr "``'r' or 'r:*'``" + +msgid "Open for reading with transparent compression (recommended)." +msgstr "" + +msgid "``'r:'``" +msgstr "``'r:'``" + +msgid "Open for reading exclusively without compression." +msgstr "" + +msgid "``'r:gz'``" +msgstr "``'r:gz'``" + +msgid "Open for reading with gzip compression." +msgstr "" + +msgid "``'r:bz2'``" +msgstr "``'r:bz2'``" + +msgid "Open for reading with bzip2 compression." +msgstr "" + +msgid "``'r:xz'``" +msgstr "``'r:xz'``" + +msgid "Open for reading with lzma compression." +msgstr "" + +msgid "``'x'`` or ``'x:'``" +msgstr "``'x'`` or ``'x:'``" + +msgid "" +"Create a tarfile exclusively without compression. Raise " +"an :exc:`FileExistsError` exception if it already exists." +msgstr "" + +msgid "``'x:gz'``" +msgstr "``'x:gz'``" + +msgid "" +"Create a tarfile with gzip compression. Raise an :exc:`FileExistsError` " +"exception if it already exists." +msgstr "" + +msgid "``'x:bz2'``" +msgstr "``'x:bz2'``" + +msgid "" +"Create a tarfile with bzip2 compression. Raise an :exc:`FileExistsError` " +"exception if it already exists." +msgstr "" + +msgid "``'x:xz'``" +msgstr "``'x:xz'``" + +msgid "" +"Create a tarfile with lzma compression. Raise an :exc:`FileExistsError` " +"exception if it already exists." +msgstr "" + +msgid "``'a' or 'a:'``" +msgstr "``'a' or 'a:'``" + +msgid "" +"Open for appending with no compression. The file is created if it does not " +"exist." +msgstr "" + +msgid "``'w' or 'w:'``" +msgstr "``'w' or 'w:'``" + +msgid "Open for uncompressed writing." +msgstr "" + +msgid "``'w:gz'``" +msgstr "``'w:gz'``" + +msgid "Open for gzip compressed writing." +msgstr "" + +msgid "``'w:bz2'``" +msgstr "``'w:bz2'``" + +msgid "Open for bzip2 compressed writing." +msgstr "" + +msgid "``'w:xz'``" +msgstr "``'w:xz'``" + +msgid "Open for lzma compressed writing." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"For modes ``'w:xz'`` and ``'x:xz'``, :func:`tarfile.open` accepts the " +"keyword argument *preset* to specify the compression level of the file." +msgstr "" + +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:" +msgstr "" + +msgid "Mode" +msgstr "Tryb" + +msgid "Action" +msgstr "" + +msgid "``'r|*'``" +msgstr "``'r|*'``" + +msgid "Open a *stream* of tar blocks for reading with transparent compression." +msgstr "" + +msgid "``'r|'``" +msgstr "``'r|'``" + +msgid "Open a *stream* of uncompressed tar blocks for reading." +msgstr "" + +msgid "``'r|gz'``" +msgstr "``'r|gz'``" + +msgid "Open a gzip compressed *stream* for reading." +msgstr "" + +msgid "``'r|bz2'``" +msgstr "``'r|bz2'``" + +msgid "Open a bzip2 compressed *stream* for reading." +msgstr "" + +msgid "``'r|xz'``" +msgstr "``'r|xz'``" + +msgid "Open an lzma compressed *stream* for reading." +msgstr "" + +msgid "``'w|'``" +msgstr "``'w|'``" + +msgid "Open an uncompressed *stream* for writing." +msgstr "" + +msgid "``'w|gz'``" +msgstr "``'w|gz'``" + +msgid "Open a gzip compressed *stream* for writing." +msgstr "" + +msgid "``'w|bz2'``" +msgstr "``'w|bz2'``" + +msgid "Open a bzip2 compressed *stream* for writing." +msgstr "" + +msgid "``'w|xz'``" +msgstr "``'w|xz'``" + +msgid "Open an lzma compressed *stream* for writing." +msgstr "" + +msgid "The ``'x'`` (exclusive creation) mode was added." +msgstr "" + +msgid "The *name* parameter accepts a :term:`path-like object`." +msgstr "" + +msgid "" +"Class for reading and writing tar archives. Do not use this class directly: " +"use :func:`tarfile.open` instead. See :ref:`tarfile-objects`." +msgstr "" + +msgid "" +"Return :const:`True` if *name* is a tar archive file, that " +"the :mod:`tarfile` module can read. *name* may be a :class:`str`, file, or " +"file-like object." +msgstr "" + +msgid "Support for file and file-like objects." +msgstr "" + +msgid "The :mod:`tarfile` module defines the following exceptions:" +msgstr "" + +msgid "Base class for all :mod:`tarfile` exceptions." +msgstr "" + +msgid "" +"Is raised when a tar archive is opened, that either cannot be handled by " +"the :mod:`tarfile` module or is somehow invalid." +msgstr "" + +msgid "" +"Is raised when a compression method is not supported or when the data cannot " +"be decoded properly." +msgstr "" + +msgid "" +"Is raised for the limitations that are typical for stream-" +"like :class:`TarFile` objects." +msgstr "" + +msgid "" +"Is raised for *non-fatal* errors when using :meth:`TarFile.extract`, but " +"only if :attr:`TarFile.errorlevel`\\ ``== 2``." +msgstr "" + +msgid "Is raised by :meth:`TarInfo.frombuf` if the buffer it gets is invalid." +msgstr "" + +msgid "" +"Base class for members :ref:`refused ` by filters." +msgstr "" + +msgid "" +"Information about the member that the filter refused to extract, " +"as :ref:`TarInfo `." +msgstr "" + +msgid "Raised to refuse extracting a member with an absolute path." +msgstr "" + +msgid "Raised to refuse extracting a member outside the destination directory." +msgstr "" + +msgid "Raised to refuse extracting a special file (e.g. a device or pipe)." +msgstr "" + +msgid "Raised to refuse extracting a symbolic link with an absolute path." +msgstr "" + +msgid "" +"Raised to refuse extracting a symbolic link pointing outside the destination " +"directory." +msgstr "" + +msgid "" +"Raised to refuse emulating a link (hard or symbolic) by extracting another " +"archive member, when that member would be rejected by the filter location. " +"The exception that was raised to reject the replacement member is available " +"as :attr:`!BaseException.__context__`." +msgstr "" + +msgid "The following constants are available at the module level:" +msgstr "" + +msgid "" +"The default character encoding: ``'utf-8'`` on Windows, the value returned " +"by :func:`sys.getfilesystemencoding` otherwise." +msgstr "" + +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 details." +msgstr "" + +msgid "POSIX.1-1988 (ustar) format." +msgstr "" + +msgid "GNU tar format." +msgstr "" + +msgid "POSIX.1-2001 (pax) format." +msgstr "" + +msgid "" +"The default format for creating archives. This is " +"currently :const:`PAX_FORMAT`." +msgstr "" + +msgid "" +"The default format for new archives was changed to :const:`PAX_FORMAT` " +"from :const:`GNU_FORMAT`." +msgstr "" + +msgid "Module :mod:`zipfile`" +msgstr "" + +msgid "Documentation of the :mod:`zipfile` standard module." +msgstr "" + +msgid ":ref:`archiving-operations`" +msgstr ":ref:`archiving-operations`" + +msgid "" +"Documentation of the higher-level archiving facilities provided by the " +"standard :mod:`shutil` module." +msgstr "" + +msgid "" +"`GNU tar manual, Basic Tar Format `_" +msgstr "" + +msgid "Documentation for tar archive files, including GNU tar extensions." +msgstr "" + +msgid "TarFile Objects" +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." +msgstr "" + +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." +msgstr "" + +msgid "Added support for the context management protocol." +msgstr "" + +msgid "" +"All following arguments are optional and can be accessed as instance " +"attributes as well." +msgstr "" + +msgid "" +"*name* is the pathname of the archive. *name* may be a :term:`path-like " +"object`. It can be omitted if *fileobj* is given. In this case, the file " +"object's :attr:`name` attribute is used if it exists." +msgstr "" + +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 " +"existing one, or ``'x'`` to create a new file only if it does not already " +"exist." +msgstr "" + +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." +msgstr "" + +msgid "*fileobj* is not closed, when :class:`TarFile` is closed." +msgstr "" + +msgid "" +"*format* controls the archive format for writing. It must be one of the " +"constants :const:`USTAR_FORMAT`, :const:`GNU_FORMAT` or :const:`PAX_FORMAT` " +"that are defined at module level. When reading, format will be automatically " +"detected, even if different formats are present in a single archive." +msgstr "" + +msgid "" +"The *tarinfo* argument can be used to replace the default :class:`TarInfo` " +"class with a different one." +msgstr "" + +msgid "" +"If *dereference* is :const:`False`, add symbolic and hard links to the " +"archive. If it is :const:`True`, add the content of the target files to the " +"archive. This has no effect on systems that do not support symbolic links." +msgstr "" + +msgid "" +"If *ignore_zeros* is :const:`False`, treat an empty block as the end of the " +"archive. If it is :const:`True`, skip empty (and invalid) blocks and try to " +"get as many members as possible. This is only useful for reading " +"concatenated or damaged archives." +msgstr "" + +msgid "" +"*debug* can be set from ``0`` (no debug messages) up to ``3`` (all debug " +"messages). The messages are written to ``sys.stderr``." +msgstr "" + +msgid "" +"*errorlevel* controls how extraction errors are handled, see :attr:`the " +"corresponding attribute <~TarFile.errorlevel>`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *pax_headers* argument is an optional dictionary of strings which will " +"be added as a pax global header if *format* is :const:`PAX_FORMAT`." +msgstr "" + +msgid "Use ``'surrogateescape'`` as the default for the *errors* argument." +msgstr "" + +msgid "" +"Alternative constructor. The :func:`tarfile.open` function is actually a " +"shortcut to this classmethod." +msgstr "" + +msgid "" +"Return a :class:`TarInfo` object for member *name*. If *name* can not be " +"found in the archive, :exc:`KeyError` is raised." +msgstr "" + +msgid "" +"If a member occurs more than once in the archive, its last occurrence is " +"assumed to be the most up-to-date version." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the members as a list of their names. It has the same order as the " +"list returned by :meth:`getmembers`." +msgstr "" + +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 " +"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 "" + +msgid "Added the *members* parameter." +msgstr "" + +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 more available." +msgstr "" + +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, " +"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 " +"directory's permissions do not allow writing, extracting files to it will " +"fail." +msgstr "" + +msgid "" +"If *numeric_owner* is :const:`True`, the uid and gid numbers from the " +"tarfile are used to set the owner/group for the extracted files. Otherwise, " +"the named values from the tarfile are used." +msgstr "" + +msgid "" +"The *filter* argument, which was added in Python 3.10.12, specifies how " +"``members`` are modified or rejected before extraction. See :ref:`tarfile-" +"extraction-filter` for details. It is recommended to set this explicitly " +"depending on which *tar* features you need to support." +msgstr "" + +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 ``\".." +"\"``." +msgstr "" + +msgid "" +"Set ``filter='data'`` to prevent the most dangerous security issues, and " +"read the :ref:`tarfile-extraction-filter` section for details." +msgstr "" + +msgid "Added the *numeric_owner* parameter." +msgstr "" + +msgid "The *path* parameter accepts a :term:`path-like object`." +msgstr "" + +msgid "Added the *filter* parameter." +msgstr "" + +msgid "" +"Extract a member from the archive to the current working directory, using " +"its full name. Its file information is extracted as accurately as possible. " +"*member* may be a filename or a :class:`TarInfo` object. You can specify a " +"different directory using *path*. *path* may be a :term:`path-like object`. " +"File attributes (owner, mtime, mode) are set unless *set_attrs* is false." +msgstr "" + +msgid "" +"The *numeric_owner* and *filter* arguments are the same as " +"for :meth:`extractall`." +msgstr "" + +msgid "" +"The :meth:`extract` method does not take care of several extraction issues. " +"In most cases you should consider using the :meth:`extractall` method." +msgstr "" + +msgid "See the warning for :meth:`extractall`." +msgstr "" + +msgid "Added the *set_attrs* parameter." +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. For all other " +"existing members, :const:`None` is returned. If *member* does not appear in " +"the archive, :exc:`KeyError` is raised." +msgstr "" + +msgid "Return an :class:`io.BufferedReader` object." +msgstr "" + +msgid "" +"If *errorlevel* is ``0``, errors are ignored when " +"using :meth:`TarFile.extract` and :meth:`TarFile.extractall`. Nevertheless, " +"they appear as error messages in the debug output when *debug* is greater " +"than 0. If ``1`` (the default), all *fatal* errors are raised " +"as :exc:`OSError` or :exc:`FilterError` exceptions. If ``2``, all *non-" +"fatal* errors are raised as :exc:`TarError` exceptions as well." +msgstr "" + +msgid "" +"Some exceptions, e.g. ones caused by wrong argument types or data " +"corruption, are always raised." +msgstr "" + +msgid "" +"Custom :ref:`extraction filters ` should " +"raise :exc:`FilterError` for *fatal* errors and :exc:`ExtractError` for *non-" +"fatal* ones." +msgstr "" + +msgid "" +"Note that when an exception is raised, the archive may be partially " +"extracted. It is the user’s responsibility to clean up." +msgstr "" + +msgid "" +"The :ref:`extraction filter ` used as a default " +"for the *filter* argument of :meth:`~TarFile.extract` " +"and :meth:`~TarFile.extractall`." +msgstr "" + +msgid "" +"The attribute may be ``None`` or a callable. String names are not allowed " +"for this attribute, unlike the *filter* argument to :meth:`~TarFile.extract`." +msgstr "" + +msgid "" +"If ``extraction_filter`` is ``None`` (the default), calling an extraction " +"method without a *filter* argument will use the :func:`fully_trusted " +"` filter for compatibility with previous Python " +"versions." +msgstr "" + +msgid "" +"In Python 3.12+, leaving ``extraction_filter=None`` will emit a " +"``DeprecationWarning``." +msgstr "" + +msgid "" +"In Python 3.14+, leaving ``extraction_filter=None`` will cause extraction " +"methods to use the :func:`data ` filter by default." +msgstr "" + +msgid "" +"The attribute may be set on instances or overridden in subclasses. It also " +"is possible to set it on the ``TarFile`` class itself to set a global " +"default, although, since it affects all uses of *tarfile*, it is best " +"practice to only do so in top-level applications or :mod:`site configuration " +"`. To set a global default this way, a filter function needs to be " +"wrapped in :func:`staticmethod()` to prevent injection of a ``self`` " +"argument." +msgstr "" + +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." +msgstr "" + +msgid "Recursion adds entries in sorted order." +msgstr "" + +msgid "" +"Add the :class:`TarInfo` object *tarinfo* to the archive. If *fileobj* is " +"given, it should be a :term:`binary file`, and ``tarinfo.size`` bytes are " +"read from it and added to the archive. You can create :class:`TarInfo` " +"objects directly, or by using :meth:`gettarinfo`." +msgstr "" + +msgid "" +"Create a :class:`TarInfo` object from the result of :func:`os.stat` or " +"equivalent on an existing file. The file is either named by *name*, or " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Close the :class:`TarFile`. In write mode, two finishing zero blocks are " +"appended to the archive." +msgstr "" + +msgid "A dictionary containing key-value pairs of pax global headers." +msgstr "" + +msgid "TarInfo Objects" +msgstr "" + +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 " +"type. It does *not* contain the file's data itself." +msgstr "" + +msgid "" +":class:`TarInfo` objects are returned by :class:`TarFile`'s " +"methods :meth:`~TarFile.getmember`, :meth:`~TarFile.getmembers` " +"and :meth:`~TarFile.gettarinfo`." +msgstr "" + +msgid "" +"Modifying the objects returned by :meth:`~!TarFile.getmember` or :meth:`~!" +"TarFile.getmembers` will affect all subsequent operations on the archive. " +"For cases where this is unwanted, you can use :mod:`copy.copy() ` or " +"call the :meth:`~TarInfo.replace` method to create a modified copy in one " +"step." +msgstr "" + +msgid "" +"Several attributes can be set to ``None`` to indicate that a piece of " +"metadata is unused or unknown. Different :class:`TarInfo` methods handle " +"``None`` differently:" +msgstr "" + +msgid "" +"The :meth:`~TarFile.extract` or :meth:`~TarFile.extractall` methods will " +"ignore the corresponding metadata, leaving it set to a default." +msgstr "" + +msgid ":meth:`~TarFile.addfile` will fail." +msgstr "" + +msgid ":meth:`~TarFile.list` will print a placeholder string." +msgstr "" + +msgid "Added :meth:`~TarInfo.replace` and handling of ``None``." +msgstr "" + +msgid "Create a :class:`TarInfo` object." +msgstr "" + +msgid "Create and return a :class:`TarInfo` object from string buffer *buf*." +msgstr "" + +msgid "Raises :exc:`HeaderError` if the buffer is invalid." +msgstr "" + +msgid "" +"Read the next member from the :class:`TarFile` object *tarfile* and return " +"it as a :class:`TarInfo` object." +msgstr "" + +msgid "" +"Create a string buffer from a :class:`TarInfo` object. For information on " +"the arguments see the constructor of the :class:`TarFile` class." +msgstr "" + +msgid "A ``TarInfo`` object has the following public data attributes:" +msgstr "" + +msgid "Name of the archive member." +msgstr "" + +msgid "Size in bytes." +msgstr "" + +msgid "" +"Time of last modification in seconds since the :ref:`epoch `, as " +"in :attr:`os.stat_result.st_mtime`." +msgstr "" + +msgid "" +"Can be set to ``None`` for :meth:`~TarFile.extract` " +"and :meth:`~TarFile.extractall`, causing extraction to skip applying this " +"attribute." +msgstr "" + +msgid "Permission bits, as for :func:`os.chmod`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Name of the target file name, which is only present in :class:`TarInfo` " +"objects of type :const:`LNKTYPE` and :const:`SYMTYPE`." +msgstr "" + +msgid "" +"For symbolic links (``SYMTYPE``), the *linkname* is relative to the " +"directory that contains the link. For hard links (``LNKTYPE``), the " +"*linkname* is relative to the root of the archive." +msgstr "" + +msgid "User ID of the user who originally stored this member." +msgstr "" + +msgid "Group ID of the user who originally stored this member." +msgstr "" + +msgid "User name." +msgstr "" + +msgid "Group name." +msgstr "" + +msgid "" +"A dictionary containing key-value pairs of an associated pax extended header." +msgstr "" + +msgid "" +"Return a *new* copy of the :class:`!TarInfo` object with the given " +"attributes changed. For example, to return a ``TarInfo`` with the group name " +"set to ``'staff'``, use::" +msgstr "" + +msgid "" +"By default, a deep copy is made. If *deep* is false, the copy is shallow, " +"i.e. ``pax_headers`` and any custom attributes are shared with the original " +"``TarInfo`` object." +msgstr "" + +msgid "A :class:`TarInfo` object also provides some convenient query methods:" +msgstr "" + +msgid "Return :const:`True` if the :class:`Tarinfo` object is a regular file." +msgstr "" + +msgid "Same as :meth:`isfile`." +msgstr "" + +msgid "Return :const:`True` if it is a directory." +msgstr "" + +msgid "Return :const:`True` if it is a symbolic link." +msgstr "" + +msgid "Return :const:`True` if it is a hard link." +msgstr "" + +msgid "Return :const:`True` if it is a character device." +msgstr "" + +msgid "Return :const:`True` if it is a block device." +msgstr "" + +msgid "Return :const:`True` if it is a FIFO." +msgstr "" + +msgid "" +"Return :const:`True` if it is one of character device, block device or FIFO." +msgstr "" + +msgid "Extraction filters" +msgstr "" + +msgid "" +"The *tar* format is designed to capture all details of a UNIX-like " +"filesystem, which makes it very powerful. Unfortunately, the features make " +"it easy to create tar files that have unintended -- and possibly malicious " +"-- effects when extracted. For example, extracting a tar file can overwrite " +"arbitrary files in various ways (e.g. by using absolute paths, ``..`` path " +"components, or symlinks that affect later members)." +msgstr "" + +msgid "" +"In most cases, the full functionality is not needed. Therefore, *tarfile* " +"supports extraction filters: a mechanism to limit functionality, and thus " +"mitigate some of the security issues." +msgstr "" + +msgid ":pep:`706`" +msgstr ":pep:`706`" + +msgid "Contains further motivation and rationale behind the design." +msgstr "" + +msgid "" +"The *filter* argument to :meth:`TarFile.extract` " +"or :meth:`~TarFile.extractall` can be:" +msgstr "" + +msgid "" +"the string ``'fully_trusted'``: Honor all metadata as specified in the " +"archive. Should be used if the user trusts the archive completely, or " +"implements their own complex verification." +msgstr "" + +msgid "" +"the string ``'tar'``: Honor most *tar*-specific features (i.e. features of " +"UNIX-like filesystems), but block features that are very likely to be " +"surprising or malicious. See :func:`tar_filter` for details." +msgstr "" + +msgid "" +"the string ``'data'``: Ignore or block most features specific to UNIX-like " +"filesystems. Intended for extracting cross-platform data archives. " +"See :func:`data_filter` for details." +msgstr "" + +msgid "``None`` (default): Use :attr:`TarFile.extraction_filter`." +msgstr "" + +msgid "" +"If that is also ``None`` (the default), the ``'fully_trusted'`` filter will " +"be used (for compatibility with earlier versions of Python)." +msgstr "" + +msgid "In Python 3.12, the default will emit a ``DeprecationWarning``." +msgstr "" + +msgid "" +"In Python 3.14, the ``'data'`` filter will become the default instead. It's " +"possible to switch earlier; see :attr:`TarFile.extraction_filter`." +msgstr "" + +msgid "" +"A callable which will be called for each extracted member with " +"a :ref:`TarInfo ` describing the member and the destination " +"path to where the archive is extracted (i.e. the same path is used for all " +"members)::" +msgstr "" + +msgid "" +"The callable is called just before each member is extracted, so it can take " +"the current state of the disk into account. It can:" +msgstr "" + +msgid "" +"return a :class:`TarInfo` object which will be used instead of the metadata " +"in the archive, or" +msgstr "" + +msgid "return ``None``, in which case the member will be skipped, or" +msgstr "" + +msgid "" +"raise an exception to abort the operation or skip the member, depending " +"on :attr:`~TarFile.errorlevel`. Note that when extraction is " +"aborted, :meth:`~TarFile.extractall` may leave the archive partially " +"extracted. It does not attempt to clean up." +msgstr "" + +msgid "Default named filters" +msgstr "" + +msgid "" +"The pre-defined, named filters are available as functions, so they can be " +"reused in custom filters:" +msgstr "" + +msgid "Return *member* unchanged." +msgstr "" + +msgid "This implements the ``'fully_trusted'`` filter." +msgstr "" + +msgid "Implements the ``'tar'`` filter." +msgstr "" + +msgid "Strip leading slashes (``/`` and :attr:`os.sep`) from filenames." +msgstr "" + +msgid "" +":ref:`Refuse ` to extract files with absolute " +"paths (in case the name is absolute even after stripping slashes, e.g. ``C:/" +"foo`` on Windows). This raises :class:`~tarfile.AbsolutePathError`." +msgstr "" + +msgid "" +"Normalize filenames (:attr:`TarInfo.name`) that contain ``..`` components " +"using :func:`os.path.normpath`. Note that this removes internal ``..`` " +"components, which may change the meaning of the name if it traverses " +"symbolic links." +msgstr "" + +msgid "" +":ref:`Refuse ` to extract files whose absolute " +"path (after following symlinks) would end up outside the destination. This " +"raises :class:`~tarfile.OutsideDestinationError`." +msgstr "" + +msgid "" +"Clear high mode bits (setuid, setgid, sticky) and group/other write bits " +"(:attr:`~stat.S_IWGRP`|:attr:`~stat.S_IWOTH`)." +msgstr "" + +msgid "Return the modified ``TarInfo`` member." +msgstr "" + +msgid "Filenames containing ``..`` components are now normalized." +msgstr "" + +msgid "" +"Implements the ``'data'`` filter. In addition to what ``tar_filter`` does:" +msgstr "" + +msgid "" +"Normalize link targets (:attr:`TarInfo.linkname`) " +"using :func:`os.path.normpath`. Note that this removes internal ``..`` " +"components, which may change the meaning of the link if the path in :attr:`!" +"TarInfo.linkname` traverses symbolic links." +msgstr "" + +msgid "" +":ref:`Refuse ` to extract links (hard or soft) " +"that link to absolute paths, or ones that link outside the destination." +msgstr "" + +msgid "" +"This raises :class:`~tarfile.AbsoluteLinkError` " +"or :class:`~tarfile.LinkOutsideDestinationError`." +msgstr "" + +msgid "" +"Note that such files are refused even on platforms that do not support " +"symbolic links." +msgstr "" + +msgid "" +":ref:`Refuse ` to extract device files (including " +"pipes). This raises :class:`~tarfile.SpecialFileError`." +msgstr "" + +msgid "For regular files, including hard links:" +msgstr "" + +msgid "" +"Set the owner read and write permissions " +"(:attr:`~stat.S_IRUSR`|:attr:`~stat.S_IWUSR`)." +msgstr "" + +msgid "" +"Remove the group & other executable permission " +"(:attr:`~stat.S_IXGRP`|:attr:`~stat.S_IXOTH`) if the owner doesn’t have it " +"(:attr:`~stat.S_IXUSR`)." +msgstr "" + +msgid "" +"For other files (directories), set ``mode`` to ``None``, so that extraction " +"methods skip applying permission bits." +msgstr "" + +msgid "" +"Set user and group info (``uid``, ``gid``, ``uname``, ``gname``) to " +"``None``, so that extraction methods skip setting it." +msgstr "" + +msgid "Link targets are now normalized." +msgstr "" + +msgid "Filter errors" +msgstr "" + +msgid "" +"When a filter refuses to extract a file, it will raise an appropriate " +"exception, a subclass of :class:`~tarfile.FilterError`. This will abort the " +"extraction if :attr:`TarFile.errorlevel` is 1 or more. With ``errorlevel=0`` " +"the error will be logged and the member will be skipped, but extraction will " +"continue." +msgstr "" + +msgid "Hints for further verification" +msgstr "" + +msgid "" +"Even with ``filter='data'``, *tarfile* is not suited for extracting " +"untrusted files without prior inspection. Among other issues, the pre-" +"defined filters do not prevent denial-of-service attacks. Users should do " +"additional checks." +msgstr "" + +msgid "Here is an incomplete list of things to consider:" +msgstr "" + +msgid "" +"Extract to a :func:`new temporary directory ` to prevent " +"e.g. exploiting pre-existing links, and to make it easier to clean up after " +"a failed extraction." +msgstr "" + +msgid "Disallow symbolic links if you do not need the functionality." +msgstr "" + +msgid "" +"When working with untrusted data, use external (e.g. OS-level) limits on " +"disk, memory and CPU usage." +msgstr "" + +msgid "" +"Check filenames against an allow-list of characters (to filter out control " +"characters, confusables, foreign path separators, etc.)." +msgstr "" + +msgid "" +"Check that filenames have expected extensions (discouraging files that " +"execute when you “click on them”, or extension-less files like Windows " +"special device names)." +msgstr "" + +msgid "" +"Limit the number of extracted files, total size of extracted data, filename " +"length (including symlink length), and size of individual files." +msgstr "" + +msgid "Check for files that would be shadowed on case-insensitive filesystems." +msgstr "" + +msgid "Also note that:" +msgstr "" + +msgid "" +"Tar files may contain multiple versions of the same file. Later ones are " +"expected to overwrite any earlier ones. This feature is crucial to allow " +"updating tape archives, but can be abused maliciously." +msgstr "" + +msgid "" +"*tarfile* does not protect against issues with “live” data, e.g. an attacker " +"tinkering with the destination (or source) directory while extraction (or " +"archiving) is in progress." +msgstr "" + +msgid "Supporting older Python versions" +msgstr "" + +msgid "" +"Extraction filters were added to Python 3.12, and are backported to older " +"versions as security updates. To check whether the feature is available, use " +"e.g. ``hasattr(tarfile, 'data_filter')`` rather than checking the Python " +"version." +msgstr "" + +msgid "" +"The following examples show how to support Python versions with and without " +"the feature. Note that setting ``extraction_filter`` will affect any " +"subsequent operations." +msgstr "" + +msgid "Fully trusted archive::" +msgstr "" + +msgid "" +"Use the ``'data'`` filter if available, but revert to Python 3.11 behavior " +"(``'fully_trusted'``) if this feature is not available::" +msgstr "" + +msgid "Use the ``'data'`` filter; *fail* if it is not available::" +msgstr "" + +msgid "or::" +msgstr "lub::" + +msgid "Use the ``'data'`` filter; *warn* if it is not available::" +msgstr "" + +msgid "Stateful extraction filter example" +msgstr "" + +msgid "" +"While *tarfile*'s extraction methods take a simple *filter* callable, custom " +"filters may be more complex objects with an internal state. It may be useful " +"to write these as context managers, to be used like this::" +msgstr "" + +msgid "Such a filter can be written as, for example::" +msgstr "" + +msgid "Command-Line Interface" +msgstr "" + +msgid "" +"The :mod:`tarfile` module provides a simple command-line interface to " +"interact with tar archives." +msgstr "" + +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:" +msgstr "" + +msgid "Passing a directory is also acceptable:" +msgstr "" + +msgid "" +"If you want to extract a tar archive into the current directory, use " +"the :option:`-e` option:" +msgstr "" + +msgid "" +"You can also extract a tar archive into a different directory by passing the " +"directory's name:" +msgstr "" + +msgid "For a list of the files in a tar archive, use the :option:`-l` option:" +msgstr "" + +msgid "Command-line options" +msgstr "" + +msgid "List files in a tarfile." +msgstr "" + +msgid "Create tarfile from source files." +msgstr "" + +msgid "" +"Extract tarfile into the current directory if *output_dir* is not specified." +msgstr "" + +msgid "Test whether the tarfile is valid or not." +msgstr "" + +msgid "Verbose output." +msgstr "" + +msgid "" +"Specifies the *filter* for ``--extract``. See :ref:`tarfile-extraction-" +"filter` for details. Only string names are accepted (that is, " +"``fully_trusted``, ``tar``, and ``data``)." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "How to extract an entire tar archive to the current working directory::" +msgstr "" + +msgid "" +"How to extract a subset of a tar archive with :meth:`TarFile.extractall` " +"using a generator function instead of a list::" +msgstr "" + +msgid "How to create an uncompressed tar archive from a list of filenames::" +msgstr "" + +msgid "The same example using the :keyword:`with` statement::" +msgstr "" + +msgid "" +"How to read a gzip compressed tar archive and display some member " +"information::" +msgstr "" + +msgid "" +"How to create an archive and reset the user information using the *filter* " +"parameter in :meth:`TarFile.add`::" +msgstr "" + +msgid "Supported tar formats" +msgstr "" + +msgid "" +"There are three tar formats that can be created with the :mod:`tarfile` " +"module:" +msgstr "" + +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." +msgstr "" + +msgid "" +"The GNU tar format (:const:`GNU_FORMAT`). It supports long filenames and " +"linknames, files bigger than 8 GiB and sparse files. It is the de facto " +"standard on GNU/Linux systems. :mod:`tarfile` fully supports the GNU tar " +"extensions for long names, sparse file support is read-only." +msgstr "" + +msgid "" +"The POSIX.1-2001 pax format (:const:`PAX_FORMAT`). It is the most flexible " +"format with virtually no limits. It supports long filenames and linknames, " +"large files and stores pathnames in a portable way. Modern tar " +"implementations, including GNU tar, bsdtar/libarchive and star, fully " +"support extended *pax* features; some old or unmaintained libraries may not, " +"but should treat *pax* archives as if they were in the universally supported " +"*ustar* format. It is the current default format for new archives." +msgstr "" + +msgid "" +"It extends the existing *ustar* format with 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." +msgstr "" + +msgid "" +"There are some more variants of the tar format which can be read, but not " +"created:" +msgstr "" + +msgid "" +"The ancient V7 format. This is the first tar format from Unix Seventh " +"Edition, storing only regular files and directories. Names must not be " +"longer than 100 characters, there is no user/group name information. Some " +"archives have miscalculated header checksums in case of fields with non-" +"ASCII characters." +msgstr "" + +msgid "" +"The SunOS tar extended format. This format is a variant of the POSIX.1-2001 " +"pax format, but is not compatible." +msgstr "" + +msgid "Unicode issues" +msgstr "" + +msgid "" +"The tar format was originally conceived to make backups on tape drives with " +"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* " +"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. " +"It stores non-ASCII metadata using the universal character encoding *UTF-8*." +msgstr "" + +msgid "" +"The details of character conversion in :mod:`tarfile` are controlled by the " +"*encoding* and *errors* keyword arguments of the :class:`TarFile` class." +msgstr "" + +msgid "" +"*encoding* defines the character encoding to use for the metadata in the " +"archive. The default value is :func:`sys.getfilesystemencoding` or " +"``'ascii'`` as a fallback. Depending on whether the archive is read or " +"written, the metadata must be either decoded or encoded. If *encoding* is " +"not set appropriately, this conversion may fail." +msgstr "" + +msgid "" +"The *errors* argument defines how characters are treated that cannot be " +"converted. Possible values are listed in section :ref:`error-handlers`. The " +"default scheme is ``'surrogateescape'`` which Python also uses for its file " +"system calls, see :ref:`os-filenames`." +msgstr "" + +msgid "" +"For :const:`PAX_FORMAT` archives (the default), *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 surrogate characters are stored." +msgstr "" diff --git a/library/tempfile.po b/library/tempfile.po index fe5f1121e0..09eaa41dd7 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -1,41 +1,41 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:14+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`tempfile` --- Generate temporary files and directories" msgstr "" msgid "**Source code:** :source:`Lib/tempfile.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/tempfile.py`" 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 " -"managers. :func:`mkstemp` and :func:`mkdtemp` are lower-level functions " -"which require manual cleanup." +"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 "" msgid "" @@ -111,19 +111,15 @@ 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 " -"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). 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 a normal file." -msgstr "" - -msgid "" -"On POSIX (only), a process that is terminated abruptly with SIGKILL cannot " -"automatically delete any NamedTemporaryFiles it created." +"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). 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 a normal " +"file." msgstr "" msgid "" @@ -150,16 +146,10 @@ msgid "the truncate method now accepts a ``size`` argument." msgstr "" msgid "" -"Fully implements the :class:`io.BufferedIOBase` and :class:`io.TextIOBase` " -"abstract base classes (depending on whether binary or text *mode* was " -"specified)." -msgstr "" - -msgid "" -"This class 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 " +"This class 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 "" @@ -213,8 +203,8 @@ msgstr "" 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 "" msgid "" @@ -267,8 +257,8 @@ msgid "" msgstr "" 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 "" msgid ":func:`mkdtemp` returns the absolute pathname of the new directory." @@ -302,8 +292,8 @@ msgid "" msgstr "" 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 "" msgid "As a last resort, the current working directory." @@ -353,11 +343,11 @@ msgstr "" msgid "" "Beware that if you set ``tempdir`` to a bytes value, there is a nasty side " -"effect: The global default return type of :func:`mkstemp` and :func:" -"`mkdtemp` changes to bytes when no explicit ``prefix``, ``suffix``, or " -"``dir`` arguments of type str are supplied. Please do not write code " -"expecting or depending on this. This awkward behavior is maintained for " -"compatibility with the historical implementation." +"effect: The global default return type of :func:`mkstemp` " +"and :func:`mkdtemp` changes to bytes when no explicit ``prefix``, " +"``suffix``, or ``dir`` arguments of type str are supplied. Please do not " +"write code expecting or depending on this. This awkward behavior is " +"maintained for compatibility with the historical implementation." msgstr "" msgid "Examples" diff --git a/library/termios.po b/library/termios.po new file mode 100644 index 0000000000..45c1a18bcc --- /dev/null +++ b/library/termios.po @@ -0,0 +1,107 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`termios` --- POSIX style tty control" +msgstr "" + +msgid "" +"This module provides an interface to the POSIX calls for tty I/O control. " +"For a complete description of these calls, see :manpage:`termios(3)` Unix " +"manual page. It is only available for those Unix versions that support " +"POSIX *termios* style tty I/O control configured during installation." +msgstr "" + +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." +msgstr "" + +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 " +"terminal control interfaces." +msgstr "" + +msgid "The module defines the following functions:" +msgstr "" + +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 " +"as well as the indexing in the *cc* array must be done using the symbolic " +"constants defined in the :mod:`termios` module." +msgstr "" + +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 " +"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." +msgstr "" + +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 "" + +msgid "" +"Wait until all output written to file descriptor *fd* has been transmitted." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "Module :mod:`tty`" +msgstr "" + +msgid "Convenience functions for common terminal control operations." +msgstr "" + +msgid "Example" +msgstr "Przykład" + +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::" +msgstr "" diff --git a/library/text.po b/library/text.po index b87861441d..62916f734f 100644 --- a/library/text.po +++ b/library/text.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:15+0000\n" -"Last-Translator: Stefan Ocetkiewicz , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Text Processing Services" msgstr "Usługi przetwarzania tekstu" diff --git a/library/textwrap.po b/library/textwrap.po index 43f62f5acf..3e9b9ac99f 100644 --- a/library/textwrap.po +++ b/library/textwrap.po @@ -1,40 +1,40 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:15+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`textwrap` --- Text wrapping and filling" msgstr "" msgid "**Source code:** :source:`Lib/textwrap.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/textwrap.py`" 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 "" msgid "" @@ -44,13 +44,13 @@ msgid "" msgstr "" msgid "" -"Optional keyword arguments correspond to the instance attributes of :class:" -"`TextWrapper`, documented below." +"Optional keyword arguments correspond to the instance attributes " +"of :class:`TextWrapper`, documented below." msgstr "" 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 "" msgid "" @@ -59,8 +59,8 @@ msgid "" msgstr "" 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 "" msgid "Collapse and truncate the given *text* to fit in the given *width*." @@ -74,11 +74,12 @@ msgid "" msgstr "" 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 "" msgid "Remove any common leading whitespace from every line in *text*." @@ -121,17 +122,17 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -156,9 +157,9 @@ msgstr "" 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." +"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 "" msgid "" @@ -173,8 +174,8 @@ msgid "" msgstr "" 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 "" @@ -269,11 +270,11 @@ msgid "" msgstr "" 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 " -"lines, without final newlines. If the wrapped output has no content, the " -"returned list is empty." +"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 "" msgid "" diff --git a/library/time.po b/library/time.po index 4ba9884f60..d6fb70306f 100644 --- a/library/time.po +++ b/library/time.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:15+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`time` --- Time access and conversions" msgstr "" @@ -43,8 +43,9 @@ msgid "An explanation of some terminology and conventions is in order." msgstr "" msgid "" -"The :dfn:`epoch` is the point where the time starts, the return value of " -"``time.gmtime(0)``. It is January 1, 1970, 00:00:00 (UTC) on all platforms." +"The :dfn:`epoch` is the point where the time starts, and is platform " +"dependent. For Unix, the epoch is January 1, 1970, 00:00:00 (UTC). To find " +"out what the epoch is on a given platform, look at ``time.gmtime(0)``." msgstr "" msgid "" @@ -54,9 +55,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -89,18 +90,18 @@ msgstr "" 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 "" 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 "" msgid "See :class:`struct_time` for a description of these objects." @@ -136,28 +137,29 @@ msgid ":class:`struct_time` in UTC" msgstr "" msgid ":func:`gmtime`" -msgstr "" +msgstr ":func:`gmtime`" msgid ":class:`struct_time` in local time" msgstr "" msgid ":func:`localtime`" -msgstr "" +msgstr ":func:`localtime`" msgid ":func:`calendar.timegm`" -msgstr "" +msgstr ":func:`calendar.timegm`" msgid ":func:`mktime`" -msgstr "" +msgstr ":func:`mktime`" msgid "Functions" msgstr "Zadania" 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'``. The day field is two characters long and is space " -"padded if the day is a single digit, e.g.: ``'Wed Jun 9 04:26:40 1993'``." +"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'``. The day field is two characters long and is " +"space padded if the day is a single digit, e.g.: ``'Wed Jun 9 04:26:40 " +"1993'``." msgstr "" msgid "" @@ -186,12 +188,9 @@ msgid "" "such as segmentation fault." msgstr "" -msgid ":ref:`Availability `: Unix" -msgstr "" - msgid "" -"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 "" msgid "" @@ -208,38 +207,38 @@ msgid "" msgstr "" msgid "" -"Use :func:`clock_gettime_ns` to avoid the precision loss caused by the :" -"class:`float` type." +"Use :func:`clock_gettime_ns` to avoid the precision loss caused by " +"the :class:`float` type." msgstr "" msgid "Similar to :func:`clock_gettime` but return time as nanoseconds." msgstr "" 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 "" msgid "" -"Use :func:`clock_settime_ns` to avoid the precision loss caused by the :" -"class:`float` type." +"Use :func:`clock_settime_ns` to avoid the precision loss caused by " +"the :class:`float` type." msgstr "" msgid "Similar to :func:`clock_settime` but set time with nanoseconds." msgstr "" msgid "" -"Convert a time expressed in seconds since the epoch_ to a string of a form: " +"Convert a time expressed in seconds since the epoch to a string of a form: " "``'Sun Jun 20 23:21:05 1993'`` representing local time. The day field is two " "characters long and is space padded if the day is a single digit, e.g.: " "``'Wed Jun 9 04:26:40 1993'``." msgstr "" msgid "" -"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`." +"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 "" msgid "" @@ -248,19 +247,19 @@ msgid "" msgstr "" msgid "``'monotonic'``: :func:`time.monotonic`" -msgstr "" +msgstr "``'monotonic'``: :func:`time.monotonic`" msgid "``'perf_counter'``: :func:`time.perf_counter`" -msgstr "" +msgstr "``'perf_counter'``: :func:`time.perf_counter`" msgid "``'process_time'``: :func:`time.process_time`" -msgstr "" +msgstr "``'process_time'``: :func:`time.process_time`" msgid "``'thread_time'``: :func:`time.thread_time`" -msgstr "" +msgstr "``'thread_time'``: :func:`time.thread_time`" msgid "``'time'``: :func:`time.time`" -msgstr "" +msgstr "``'time'``: :func:`time.time`" msgid "The result has the following attributes:" msgstr "" @@ -283,12 +282,12 @@ msgid "*resolution*: The resolution of the clock in seconds (:class:`float`)" msgstr "" 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 "" msgid "" @@ -300,18 +299,18 @@ msgstr "" msgid "" ":func:`localtime` may raise :exc:`OverflowError`, if the timestamp is " "outside 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 " +"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 " "between 1970 and 2038." msgstr "" 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 " +"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 " +"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-" "dependent." @@ -325,8 +324,8 @@ msgid "" msgstr "" msgid "" -"Use :func:`monotonic_ns` to avoid the precision loss caused by the :class:" -"`float` type." +"Use :func:`monotonic_ns` to avoid the precision loss caused by " +"the :class:`float` type." msgstr "" msgid "The function is now always available and always system-wide." @@ -347,8 +346,8 @@ msgid "" msgstr "" msgid "" -"Use :func:`perf_counter_ns` to avoid the precision loss caused by the :class:" -"`float` type." +"Use :func:`perf_counter_ns` to avoid the precision loss caused by " +"the :class:`float` type." msgstr "" msgid "On Windows, the function is now system-wide." @@ -366,8 +365,8 @@ msgid "" msgstr "" msgid "" -"Use :func:`process_time_ns` to avoid the precision loss caused by the :class:" -"`float` type." +"Use :func:`process_time_ns` to avoid the precision loss caused by " +"the :class:`float` type." msgstr "" msgid "Similar to :func:`process_time` but return time as nanoseconds." @@ -376,44 +375,11 @@ msgstr "" 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." -msgstr "" - -msgid "" -"If the sleep is interrupted by a signal and no exception is raised by the " -"signal handler, the sleep is restarted with a recomputed timeout." -msgstr "" - -msgid "" -"The suspension time may be longer than requested by an arbitrary amount, " -"because of the scheduling of other activity in the system." -msgstr "" - -msgid "" -"On Windows, if *secs* is zero, the thread relinquishes the remainder of its " -"time slice to any other thread that is ready to run. If there are no other " -"threads ready to run, the function returns immediately, and the thread " -"continues execution. On Windows 8.1 and newer the implementation uses a " -"`high-resolution timer `_ which provides resolution of 100 " -"nanoseconds. If *secs* is zero, ``Sleep(0)`` is used." -msgstr "" - -msgid "Unix implementation:" -msgstr "" - -msgid "Use ``clock_nanosleep()`` if available (resolution: 1 nanosecond);" -msgstr "" - -msgid "Or use ``nanosleep()`` if available (resolution: 1 nanosecond);" -msgstr "" - -msgid "Or use ``select()`` (resolution: 1 microsecond)." -msgstr "" - -msgid "" -"On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now " -"used if available. On Windows, a waitable timer is now used." +"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." msgstr "" msgid "" @@ -423,11 +389,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -451,73 +417,73 @@ msgid "Notes" msgstr "Notatki" msgid "``%a``" -msgstr "" +msgstr "``%a``" msgid "Locale's abbreviated weekday name." msgstr "" msgid "``%A``" -msgstr "" +msgstr "``%A``" msgid "Locale's full weekday name." msgstr "" msgid "``%b``" -msgstr "" +msgstr "``%b``" msgid "Locale's abbreviated month name." msgstr "" msgid "``%B``" -msgstr "" +msgstr "``%B``" msgid "Locale's full month name." msgstr "" msgid "``%c``" -msgstr "" +msgstr "``%c``" msgid "Locale's appropriate date and time representation." msgstr "" msgid "``%d``" -msgstr "" +msgstr "``%d``" msgid "Day of the month as a decimal number [01,31]." msgstr "" msgid "``%H``" -msgstr "" +msgstr "``%H``" msgid "Hour (24-hour clock) as a decimal number [00,23]." msgstr "" msgid "``%I``" -msgstr "" +msgstr "``%I``" msgid "Hour (12-hour clock) as a decimal number [01,12]." msgstr "" msgid "``%j``" -msgstr "" +msgstr "``%j``" msgid "Day of the year as a decimal number [001,366]." msgstr "" msgid "``%m``" -msgstr "" +msgstr "``%m``" msgid "Month as a decimal number [01,12]." msgstr "" msgid "``%M``" -msgstr "" +msgstr "``%M``" msgid "Minute as a decimal number [00,59]." msgstr "" msgid "``%p``" -msgstr "" +msgstr "``%p``" msgid "Locale's equivalent of either AM or PM." msgstr "" @@ -526,7 +492,7 @@ msgid "\\(1)" msgstr "\\(1)" msgid "``%S``" -msgstr "" +msgstr "``%S``" msgid "Second as a decimal number [00,61]." msgstr "" @@ -535,7 +501,7 @@ msgid "\\(2)" msgstr "\\(2)" msgid "``%U``" -msgstr "" +msgstr "``%U``" msgid "" "Week number of the year (Sunday as the first day of the week) as a decimal " @@ -547,13 +513,13 @@ msgid "\\(3)" msgstr "\\(3)" msgid "``%w``" -msgstr "" +msgstr "``%w``" msgid "Weekday as a decimal number [0(Sunday),6]." msgstr "" msgid "``%W``" -msgstr "" +msgstr "``%W``" msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " @@ -562,31 +528,31 @@ msgid "" msgstr "" msgid "``%x``" -msgstr "" +msgstr "``%x``" msgid "Locale's appropriate date representation." msgstr "" msgid "``%X``" -msgstr "" +msgstr "``%X``" msgid "Locale's appropriate time representation." msgstr "" msgid "``%y``" -msgstr "" +msgstr "``%y``" msgid "Year without century as a decimal number [00,99]." msgstr "" msgid "``%Y``" -msgstr "" +msgstr "``%Y``" msgid "Year with century as a decimal number." msgstr "" msgid "``%z``" -msgstr "" +msgstr "``%z``" msgid "" "Time zone offset indicating a positive or negative time difference from UTC/" @@ -595,13 +561,13 @@ msgid "" msgstr "" msgid "``%Z``" -msgstr "" +msgstr "``%Z``" msgid "Time zone name (no characters if no time zone exists). Deprecated. [1]_" msgstr "" msgid "``%%``" -msgstr "" +msgstr "``%%``" msgid "A literal ``'%'`` character." msgstr "" @@ -634,15 +600,15 @@ msgstr "" 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." +"of format codes supported on your platform, consult " +"the :manpage:`strftime(3)` documentation." msgstr "" 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 "" msgid "" @@ -651,17 +617,17 @@ msgid "" msgstr "" 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 "" msgid "For example:" -msgstr "" +msgstr "Na przykład::" msgid "" "Support for the ``%Z`` directive is based on the values contained in " @@ -679,17 +645,17 @@ msgid "" msgstr "" 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 "" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Values" msgstr "" @@ -722,7 +688,7 @@ msgid "range [1, 31]" msgstr "" msgid "3" -msgstr "" +msgstr "3" msgid ":attr:`tm_hour`" msgstr "" @@ -740,7 +706,7 @@ msgid "range [0, 59]" msgstr "" msgid "5" -msgstr "" +msgstr "5" msgid ":attr:`tm_sec`" msgstr "" @@ -749,7 +715,7 @@ msgid "range [0, 61]; see **(2)** in :func:`strftime` description" msgstr "" msgid "6" -msgstr "" +msgstr "6" msgid ":attr:`tm_wday`" msgstr "" @@ -758,7 +724,7 @@ msgid "range [0, 6], Monday is 0" msgstr "" msgid "7" -msgstr "" +msgstr "7" msgid ":attr:`tm_yday`" msgstr "" @@ -803,17 +769,19 @@ msgid "" msgstr "" 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 "" msgid "" "Return the time in seconds since the epoch_ as a floating point number. The " -"handling of `leap seconds`_ is platform dependent. On Windows and most Unix " -"systems, the leap seconds are not counted towards the time in seconds since " -"the epoch_. This is commonly referred to as `Unix time `_." +"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)``." msgstr "" msgid "" @@ -826,11 +794,11 @@ msgstr "" 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 " -"returned, from which the components of the calendar date may be accessed as " -"attributes." +"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 "" msgid "" @@ -852,14 +820,13 @@ msgid "" msgstr "" msgid "" -"Use :func:`thread_time_ns` to avoid the precision loss caused by the :class:" -"`float` type." -msgstr "" - -msgid ":ref:`Availability `: Linux, Unix, Windows." +"Use :func:`thread_time_ns` to avoid the precision loss caused by " +"the :class:`float` type." msgstr "" -msgid "Unix systems supporting ``CLOCK_THREAD_CPUTIME_ID``." +msgid "" +":ref:`Availability `: Windows, Linux, Unix systems supporting " +"``CLOCK_THREAD_CPUTIME_ID``." msgstr "" msgid "Similar to :func:`thread_time` but return time as nanoseconds." @@ -877,8 +844,8 @@ msgstr "" 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 "" msgid "The :envvar:`TZ` environment variable should contain no whitespace." @@ -911,7 +878,7 @@ msgid "" msgstr "" msgid "``start[/time], end[/time]``" -msgstr "" +msgstr "``start[/time], end[/time]``" msgid "" "Indicates when to change to and back from DST. The format of the start and " @@ -919,7 +886,7 @@ msgid "" msgstr "" msgid ":samp:`J{n}`" -msgstr "" +msgstr ":samp:`J{n}`" msgid "" "The Julian day *n* (1 <= *n* <= 365). Leap days are not counted, so in all " @@ -927,7 +894,7 @@ msgid "" msgstr "" msgid ":samp:`{n}`" -msgstr "" +msgstr ":samp:`{n}`" msgid "" "The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it " @@ -935,12 +902,12 @@ msgid "" msgstr "" msgid ":samp:`M{m}.{n}.{d}`" -msgstr "" +msgstr ":samp:`M{m}.{n}.{d}`" 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 " +"*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 "" @@ -963,8 +930,8 @@ msgid "Clock ID Constants" msgstr "" 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 "" msgid "" @@ -979,7 +946,7 @@ msgid "" "similar." msgstr "" -msgid ":ref:`Availability `: Linux >= 2.6.39." +msgid ":ref:`Availability `: Linux 2.6.39 or later." msgstr "" msgid "" @@ -1001,13 +968,16 @@ msgid "" "based time that is not subject to NTP adjustments." msgstr "" -msgid ":ref:`Availability `: Linux >= 2.6.28, macOS >= 10.12." +msgid "" +":ref:`Availability `: Linux 2.6.28 and newer, macOS 10.12 and " +"newer." msgstr "" msgid "High-resolution per-process timer from the CPU." msgstr "" -msgid ":ref:`Availability `: FreeBSD, NetBSD >= 7, OpenBSD." +msgid "" +":ref:`Availability `: FreeBSD, NetBSD 7 or later, OpenBSD." msgstr "" msgid "" @@ -1031,7 +1001,7 @@ msgid "" "suspended, providing accurate uptime measurement, both absolute and interval." msgstr "" -msgid ":ref:`Availability `: FreeBSD, OpenBSD >= 5.5." +msgid ":ref:`Availability `: FreeBSD, OpenBSD 5.5 or later." msgstr "" msgid "" @@ -1040,12 +1010,12 @@ msgid "" "the system is asleep." msgstr "" -msgid ":ref:`Availability `: macOS >= 10.12." +msgid ":ref:`Availability `: macOS 10.12 and newer." msgstr "" 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 "" msgid "" @@ -1079,12 +1049,13 @@ msgid "" msgstr "" 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 "" msgid "Module :mod:`datetime`" @@ -1098,8 +1069,8 @@ msgstr "" 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 "" msgid "Module :mod:`calendar`" diff --git a/library/timeit.po b/library/timeit.po index 9e59797520..8c38f5db03 100644 --- a/library/timeit.po +++ b/library/timeit.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:15+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`timeit` --- Measure execution time of small code snippets" msgstr "" msgid "**Source code:** :source:`Lib/timeit.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/timeit.py`" msgid "" "This module provides a simple way to time small bits of Python code. It has " @@ -38,7 +38,7 @@ msgid "" msgstr "" msgid "Basic Examples" -msgstr "" +msgstr "Podstawowe przykłady" msgid "" "The following example shows how the :ref:`timeit-command-line-interface` can " @@ -53,8 +53,8 @@ msgstr "" 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." +"repetitions only when the command-line interface is used. In " +"the :ref:`timeit-examples` section you can find more advanced examples." msgstr "" msgid "Python Interface" @@ -103,9 +103,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -212,8 +212,7 @@ msgid "" msgstr "" msgid "" -"specify a time unit for timer output; can select ``nsec``, ``usec``, " -"``msec``, or ``sec``" +"specify a time unit for timer output; can select nsec, usec, msec, or sec" msgstr "" msgid "print raw timing results; repeat for more digits precision" @@ -238,8 +237,8 @@ msgstr "" 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 " +"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 "" @@ -273,8 +272,9 @@ msgstr "" 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 "" msgid "" diff --git a/library/tkinter.po b/library/tkinter.po index 833ee2cb41..b5a02014ce 100644 --- a/library/tkinter.po +++ b/library/tkinter.po @@ -1,34 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:15+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`tkinter` --- Python interface to Tcl/Tk" msgstr "" msgid "**Source code:** :source:`Lib/tkinter/__init__.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/tkinter/__init__.py`" msgid "" "The :mod:`tkinter` package (\"Tk interface\") is the standard Python " @@ -165,10 +164,11 @@ msgstr "" msgid "" "Tk is a `Tcl package `_ implemented in C " -"that adds custom commands to create and manipulate GUI widgets. Each :class:" -"`Tk` object embeds its own Tcl interpreter instance with Tk loaded into it. " -"Tk's widgets are very customizable, though at the cost of a dated " -"appearance. Tk uses Tcl's event queue to generate and process GUI events." +"that adds custom commands to create and manipulate GUI widgets. " +"Each :class:`Tk` object embeds its own Tcl interpreter instance with Tk " +"loaded into it. Tk's widgets are very customizable, though at the cost of a " +"dated appearance. Tk uses Tcl's event queue to generate and process GUI " +"events." msgstr "" msgid "Ttk" @@ -182,8 +182,8 @@ msgid "" msgstr "" msgid "" -"Internally, Tk and Ttk use facilities of the underlying operating system, i." -"e., Xlib on Unix/X11, Cocoa on macOS, GDI on Windows." +"Internally, Tk and Ttk use facilities of the underlying operating system, " +"i.e., Xlib on Unix/X11, Cocoa on macOS, GDI on Windows." msgstr "" msgid "" @@ -271,11 +271,11 @@ msgid "" msgstr "" msgid "" -":class:`Tk` reads and interprets profile files, named :file:`.{className}." -"tcl` and :file:`.{baseName}.tcl`, into the Tcl interpreter and calls :func:" -"`exec` on the contents of :file:`.{className}.py` and :file:`.{baseName}." -"py`. The path for the profile files is the :envvar:`HOME` environment " -"variable or, if that isn't defined, then :attr:`os.curdir`." +":class:`Tk` reads and interprets profile files, named :file:`." +"{className}.tcl` and :file:`.{baseName}.tcl`, into the Tcl interpreter and " +"calls :func:`exec` on the contents of :file:`.{className}.py` and :file:`." +"{baseName}.py`. The path for the profile files is the :envvar:`HOME` " +"environment variable or, if that isn't defined, then :attr:`os.curdir`." msgstr "" msgid "" @@ -306,63 +306,63 @@ msgid "" "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." +"window created (and the Tk subsystem initialized) by calling " +"its :meth:`loadtk` method." msgstr "" msgid "The modules that provide Tk support include:" msgstr "" msgid ":mod:`tkinter`" -msgstr "" +msgstr ":mod:`tkinter`" msgid "Main Tkinter module." msgstr "" msgid ":mod:`tkinter.colorchooser`" -msgstr "" +msgstr ":mod:`tkinter.colorchooser`" msgid "Dialog to let the user choose a color." msgstr "" msgid ":mod:`tkinter.commondialog`" -msgstr "" +msgstr ":mod:`tkinter.commondialog`" msgid "Base class for the dialogs defined in the other modules listed here." msgstr "" msgid ":mod:`tkinter.filedialog`" -msgstr "" +msgstr ":mod:`tkinter.filedialog`" msgid "Common dialogs to allow the user to specify a file to open or save." msgstr "" msgid ":mod:`tkinter.font`" -msgstr "" +msgstr ":mod:`tkinter.font`" msgid "Utilities to help work with fonts." msgstr "" msgid ":mod:`tkinter.messagebox`" -msgstr "" +msgstr ":mod:`tkinter.messagebox`" msgid "Access to standard Tk dialog boxes." msgstr "" msgid ":mod:`tkinter.scrolledtext`" -msgstr "" +msgstr ":mod:`tkinter.scrolledtext`" msgid "Text widget with a vertical scroll bar built in." msgstr "" msgid ":mod:`tkinter.simpledialog`" -msgstr "" +msgstr ":mod:`tkinter.simpledialog`" msgid "Basic dialogs and convenience functions." msgstr "" msgid ":mod:`tkinter.ttk`" -msgstr "" +msgstr ":mod:`tkinter.ttk`" msgid "" "Themed widget set introduced in Tk 8.5, providing modern alternatives for " @@ -373,7 +373,7 @@ msgid "Additional modules:" msgstr "" msgid ":mod:`_tkinter`" -msgstr "" +msgstr ":mod:`_tkinter`" msgid "" "A binary module that contains the low-level interface to Tcl/Tk. It is " @@ -384,24 +384,24 @@ msgid "" msgstr "" msgid ":mod:`idlelib`" -msgstr "" +msgstr ":mod:`idlelib`" msgid "" -"Python's Integrated Development and Learning Environment (IDLE). Based on :" -"mod:`tkinter`." +"Python's Integrated Development and Learning Environment (IDLE). Based " +"on :mod:`tkinter`." msgstr "" msgid ":mod:`tkinter.constants`" -msgstr "" +msgstr ":mod:`tkinter.constants`" msgid "" "Symbolic constants that can be used in place of strings when passing various " -"parameters to Tkinter calls. Automatically imported by the main :mod:" -"`tkinter` module." +"parameters to Tkinter calls. Automatically imported by the " +"main :mod:`tkinter` module." msgstr "" msgid ":mod:`tkinter.dnd`" -msgstr "" +msgstr ":mod:`tkinter.dnd`" msgid "" "(experimental) Drag-and-drop support for :mod:`tkinter`. This will become " @@ -417,7 +417,7 @@ msgid "" msgstr "" msgid ":mod:`turtle`" -msgstr "" +msgstr ":mod:`turtle`" msgid "Turtle graphics in a Tk window." msgstr "" @@ -463,9 +463,10 @@ msgid "" msgstr "" msgid "" -"The next line creates a label widget holding a static text string. The :meth:" -"`grid` method is used to specify the relative layout (position) of the label " -"within its containing frame widget, similar to how tables in HTML work." +"The next line creates a label widget holding a static text string. " +"The :meth:`grid` method is used to specify the relative layout (position) of " +"the label within its containing frame widget, similar to how tables in HTML " +"work." msgstr "" msgid "" @@ -489,8 +490,8 @@ msgstr "" msgid "" "A Tkinter user interface is made up of individual *widgets*. Each widget is " -"represented as a Python object, instantiated from classes like :class:`ttk." -"Frame`, :class:`ttk.Label`, and :class:`ttk.Button`." +"represented as a Python object, instantiated from classes " +"like :class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`." msgstr "" msgid "widget hierarchy" @@ -661,32 +662,32 @@ msgstr "" msgid "" "In the official Tcl/Tk reference documentation, you'll find most operations " "that look like method calls on the man page for a specific widget (e.g., " -"you'll find the :meth:`invoke` method on the `ttk::button `_ man page), while functions that take a " -"widget as a parameter often have their own man page (e.g., `grid `_)." +"you'll find the :meth:`invoke` method on the `ttk::button `_ man page), while functions " +"that take a widget as a parameter often have their own man page (e.g., `grid " +"`_)." msgstr "" msgid "" -"You'll find many common options and methods in the `options `_ or `ttk::widget `_ man pages, while others are found in the man " -"page for a specific widget class." +"You'll find many common options and methods in the `options `_ or `ttk::widget `_ man pages, while others are " +"found in the man page for a specific widget class." msgstr "" msgid "" -"You'll also find that many Tkinter methods have compound names, e.g., :func:" -"`winfo_x`, :func:`winfo_height`, :func:`winfo_viewable`. You'd find " -"documentation for all of these in the `winfo `_ man page." +"You'll also find that many Tkinter methods have compound names, " +"e.g., :func:`winfo_x`, :func:`winfo_height`, :func:`winfo_viewable`. You'd " +"find documentation for all of these in the `winfo `_ man page." msgstr "" msgid "" "Somewhat confusingly, there are also methods on all Tkinter widgets that " "don't actually operate on the widget, but operate at a global scope, " "independent of any widget. Examples are methods for accessing the clipboard " -"or the system bell. (They happen to be implemented as methods in the base :" -"class:`Widget` class that all Tkinter widgets inherit from)." +"or the system bell. (They happen to be implemented as methods in the " +"base :class:`Widget` class that all Tkinter widgets inherit from)." msgstr "" msgid "Threading model" @@ -716,14 +717,14 @@ msgstr "" msgid "" "Tcl/Tk applications are normally event-driven, meaning that after " -"initialization, the interpreter runs an event loop (i.e. :func:`Tk." -"mainloop`) and responds to events. Because it is single-threaded, event " -"handlers must respond quickly, otherwise they will block other events from " -"being processed. To avoid this, any long-running computations should not run " -"in an event handler, but are either broken into smaller pieces using timers, " -"or run in another thread. This is different from many GUI toolkits where the " -"GUI runs in a completely separate thread from all application code including " -"event handlers." +"initialization, the interpreter runs an event loop " +"(i.e. :func:`Tk.mainloop`) and responds to events. Because it is single-" +"threaded, event handlers must respond quickly, otherwise they will block " +"other events from being processed. To avoid this, any long-running " +"computations should not run in an event handler, but are either broken into " +"smaller pieces using timers, or run in another thread. This is different " +"from many GUI toolkits where the GUI runs in a completely separate thread " +"from all application code including event handlers." msgstr "" msgid "" @@ -736,16 +737,16 @@ msgid "A number of special cases exist:" msgstr "" msgid "" -"Tcl/Tk libraries can be built so they are not thread-aware. In this case, :" -"mod:`tkinter` calls the library from the originating Python thread, even if " -"this is different than the thread that created the Tcl interpreter. A global " -"lock ensures only one call occurs at a time." +"Tcl/Tk libraries can be built so they are not thread-aware. In this " +"case, :mod:`tkinter` calls the library from the originating Python thread, " +"even if this is different than the thread that created the Tcl interpreter. " +"A global lock ensures only one call occurs at a time." msgstr "" msgid "" -"While :mod:`tkinter` allows you to create more than one instance of a :class:" -"`Tk` object (with its own interpreter), all interpreters that are part of " -"the same thread share a common event queue, which gets ugly fast. In " +"While :mod:`tkinter` allows you to create more than one instance of " +"a :class:`Tk` object (with its own interpreter), all interpreters that are " +"part of the same thread share a common event queue, which gets ugly fast. In " "practice, don't create more than one instance of :class:`Tk` at a time. " "Otherwise, it's best to create them in separate threads and ensure you're " "running a thread-aware Tcl/Tk build." @@ -794,8 +795,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 "" msgid "" @@ -822,13 +823,13 @@ msgid "" msgstr "" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Meaning" msgstr "Znaczenie" msgid "Example" -msgstr "" +msgstr "Przykład" msgid "0" msgstr "0" @@ -855,7 +856,7 @@ msgid "``'Relief'``" msgstr "" msgid "3" -msgstr "" +msgstr "3" msgid "default value" msgstr "wartość domyślna" @@ -873,7 +874,7 @@ msgid "``'groove'``" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "" "Of course, the dictionary printed will include all the options available and " @@ -984,12 +985,12 @@ msgid "" msgstr "" 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 "" msgid "For example::" @@ -1011,10 +1012,10 @@ 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 " -"fact that this function is part of the implementation, and not an interface " -"to Tk functionality." +"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 "" msgid "Here are some examples of typical usage::" @@ -1024,9 +1025,9 @@ msgid "Tk Option Data Types" msgstr "" 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 "" msgid "bitmap" @@ -1056,10 +1057,10 @@ msgstr "" 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 "" msgid "cursor" @@ -1122,9 +1123,9 @@ msgid "relief" msgstr "" 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 "" msgid "scrollcommand" @@ -1154,12 +1155,12 @@ msgid "where:" msgstr "" msgid "sequence" -msgstr "" +msgstr "sekwencja" msgid "" -"is a string that denotes the target kind of event. (See the :manpage:" -"`bind(3tk)` man page, and page 201 of John Ousterhout's book, :title-" -"reference:`Tcl and the Tk Toolkit (2nd edition)`, for details)." +"is a string that denotes the target kind of event. (See " +"the :manpage:`bind(3tk)` man page, and page 201 of John Ousterhout's " +"book, :title-reference:`Tcl and the Tk Toolkit (2nd edition)`, for details)." msgstr "" msgid "func" @@ -1193,97 +1194,97 @@ msgid "Tkinter Event Field" msgstr "" msgid "%f" -msgstr "" +msgstr "%f" msgid "focus" msgstr "" msgid "%A" -msgstr "" +msgstr "%A" msgid "char" msgstr "" msgid "%h" -msgstr "" +msgstr "%h" msgid "height" msgstr "" msgid "%E" -msgstr "" +msgstr "%E" msgid "send_event" msgstr "" msgid "%k" -msgstr "" +msgstr "%k" msgid "keycode" msgstr "" msgid "%K" -msgstr "" +msgstr "%K" msgid "keysym" msgstr "" msgid "%s" -msgstr "" +msgstr "%s" msgid "state" msgstr "" msgid "%N" -msgstr "" +msgstr "%N" msgid "keysym_num" msgstr "" msgid "%t" -msgstr "" +msgstr "%t" msgid "time" msgstr "" msgid "%T" -msgstr "" +msgstr "%T" msgid "type" -msgstr "" +msgstr "typ" msgid "%w" -msgstr "" +msgstr "%w" msgid "width" msgstr "" msgid "%W" -msgstr "" +msgstr "%W" msgid "widget" msgstr "" msgid "%x" -msgstr "" +msgstr "%x" msgid "x" msgstr "" msgid "%X" -msgstr "" +msgstr "%X" msgid "x_root" msgstr "" msgid "%y" -msgstr "" +msgstr "%y" msgid "y" msgstr "" msgid "%Y" -msgstr "" +msgstr "%Y" msgid "y_root" msgstr "" @@ -1401,12 +1402,12 @@ msgstr "" 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 "" msgid "" diff --git a/library/tkinter_dnd.po b/library/tkinter_dnd.po new file mode 100644 index 0000000000..68f41c4852 --- /dev/null +++ b/library/tkinter_dnd.po @@ -0,0 +1,98 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`tkinter.dnd` --- Drag and drop support" +msgstr "" + +msgid "**Source code:** :source:`Lib/tkinter/dnd.py`" +msgstr "**Kod źródłowy:** :source:`Lib/tkinter/dnd.py`" + +msgid "" +"This is experimental and due to be deprecated when it is replaced with the " +"Tk DND." +msgstr "" + +msgid "" +"The :mod:`tkinter.dnd` module provides drag-and-drop support for objects " +"within a single application, within the same window or between windows. To " +"enable an object to be dragged, you must create an event binding for it that " +"starts the drag-and-drop process. Typically, you bind a ButtonPress event to " +"a callback function that you write (see :ref:`Bindings-and-Events`). The " +"function should call :func:`dnd_start`, where 'source' is the object to be " +"dragged, and 'event' is the event that invoked the call (the argument to " +"your callback function)." +msgstr "" + +msgid "Selection of a target object occurs as follows:" +msgstr "" + +msgid "Top-down search of area under mouse for target widget" +msgstr "" + +msgid "Target widget should have a callable *dnd_accept* attribute" +msgstr "" + +msgid "" +"If *dnd_accept* is not present or returns None, search moves to parent widget" +msgstr "" + +msgid "If no target widget is found, then the target object is None" +msgstr "" + +msgid "Call to *.dnd_leave(source, event)*" +msgstr "" + +msgid "Call to *.dnd_enter(source, event)*" +msgstr "" + +msgid "Call to *.dnd_commit(source, event)* to notify of drop" +msgstr "" + +msgid "" +"Call to *.dnd_end(target, event)* to signal end of drag-and-drop" +msgstr "" + +msgid "" +"The *DndHandler* class handles drag-and-drop events tracking Motion and " +"ButtonRelease events on the root of the event widget." +msgstr "" + +msgid "Cancel the drag-and-drop process." +msgstr "" + +msgid "Execute end of drag-and-drop functions." +msgstr "" + +msgid "Inspect area below mouse for target objects while drag is performed." +msgstr "" + +msgid "Signal end of drag when the release pattern is triggered." +msgstr "" + +msgid "Factory function for drag-and-drop process." +msgstr "" + +msgid ":ref:`Bindings-and-Events`" +msgstr ":ref:`Bindings-and-Events`" diff --git a/library/tkinter_ttk.po b/library/tkinter_ttk.po new file mode 100644 index 0000000000..7f9576b33f --- /dev/null +++ b/library/tkinter_ttk.po @@ -0,0 +1,1717 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`tkinter.ttk` --- Tk themed widgets" +msgstr "" + +msgid "**Source code:** :source:`Lib/tkinter/ttk.py`" +msgstr "**Kod źródłowy:** :source:`Lib/tkinter/ttk.py`" + +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)." +msgstr "" + +msgid "" +"The basic idea for :mod:`tkinter.ttk` is to separate, to the extent " +"possible, the code implementing a widget's behavior from the code " +"implementing its appearance." +msgstr "" + +msgid "" +"`Tk Widget Styling Support `_" +msgstr "" + +msgid "A document introducing theming support for Tk" +msgstr "" + +msgid "Using Ttk" +msgstr "" + +msgid "To start using Ttk, import its module::" +msgstr "" + +msgid "" +"To override the basic Tk widgets, the import should follow the Tk import::" +msgstr "" + +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." +msgstr "" + +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 " +"styling effects." +msgstr "" + +msgid "" +"`Converting existing applications to use Tile widgets `_" +msgstr "" + +msgid "" +"A monograph (using Tcl terminology) about differences typically encountered " +"when moving applications to use the new widgets." +msgstr "" + +msgid "Ttk Widgets" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Using the Ttk widgets gives the application an improved look and feel. As " +"discussed above, there are differences in how the styling is coded." +msgstr "" + +msgid "Tk code::" +msgstr "" + +msgid "Ttk code::" +msgstr "" + +msgid "" +"For more information about TtkStyling_, see the :class:`Style` class " +"documentation." +msgstr "" + +msgid "Widget" +msgstr "" + +msgid "" +":class:`ttk.Widget` defines standard options and methods supported by Tk " +"themed widgets and is not supposed to be directly instantiated." +msgstr "" + +msgid "Standard Options" +msgstr "" + +msgid "All the :mod:`ttk` Widgets accepts the following options:" +msgstr "" + +msgid "Option" +msgstr "" + +msgid "Description" +msgstr "Opis" + +msgid "class" +msgstr "klasa" + +msgid "" +"Specifies the window class. The class is used when querying the option " +"database for the window's other options, to determine the default bindtags " +"for the window, and to select the widget's default layout and style. This " +"option is read-only, and may only be specified when the window is created." +msgstr "" + +msgid "cursor" +msgstr "" + +msgid "" +"Specifies the mouse cursor to be used for the widget. If set to the empty " +"string (the default), the cursor is inherited for the parent widget." +msgstr "" + +msgid "takefocus" +msgstr "" + +msgid "" +"Determines whether the window accepts the focus during keyboard traversal. " +"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." +msgstr "" + +msgid "style" +msgstr "styl" + +msgid "May be used to specify a custom widget style." +msgstr "" + +msgid "Scrollable Widget Options" +msgstr "" + +msgid "" +"The following options are supported by widgets that are controlled by a " +"scrollbar." +msgstr "" + +msgid "xscrollcommand" +msgstr "" + +msgid "Used to communicate with horizontal scrollbars." +msgstr "" + +msgid "" +"When the view in the widget's window change, the widget will generate a Tcl " +"command based on the scrollcommand." +msgstr "" + +msgid "" +"Usually this option consists of the method :meth:`Scrollbar.set` of some " +"scrollbar. This will cause the scrollbar to be updated whenever the view in " +"the window changes." +msgstr "" + +msgid "yscrollcommand" +msgstr "" + +msgid "" +"Used to communicate with vertical scrollbars. For some more information, see " +"above." +msgstr "" + +msgid "Label Options" +msgstr "" + +msgid "" +"The following options are supported by labels, buttons and other button-like " +"widgets." +msgstr "" + +msgid "text" +msgstr "" + +msgid "Specifies a text string to be displayed inside the widget." +msgstr "" + +msgid "textvariable" +msgstr "" + +msgid "" +"Specifies a name whose value will be used in place of the text option " +"resource." +msgstr "" + +msgid "underline" +msgstr "" + +msgid "" +"If set, specifies the index (0-based) of a character to underline in the " +"text string. The underline character is used for mnemonic activation." +msgstr "" + +msgid "image" +msgstr "" + +msgid "" +"Specifies an image to display. This is a list of 1 or more elements. The " +"first element is the default image name. The rest of the list if a sequence " +"of statespec/value pairs as defined by :meth:`Style.map`, specifying " +"different images to use when the widget is in a particular state or a " +"combination of states. All images in the list should have the same size." +msgstr "" + +msgid "compound" +msgstr "" + +msgid "" +"Specifies how to display the image relative to the text, in the case both " +"text and images options are present. Valid values are:" +msgstr "" + +msgid "text: display text only" +msgstr "" + +msgid "image: display image only" +msgstr "" + +msgid "" +"top, bottom, left, right: display image above, below, left of, or right of " +"the text, respectively." +msgstr "" + +msgid "none: the default. display the image if present, otherwise the text." +msgstr "" + +msgid "width" +msgstr "" + +msgid "" +"If greater than zero, specifies how much space, in character widths, to " +"allocate for the text label, if less than zero, specifies a minimum width. " +"If zero or unspecified, the natural width of the text label is used." +msgstr "" + +msgid "Compatibility Options" +msgstr "" + +msgid "state" +msgstr "" + +msgid "" +"May be set to \"normal\" or \"disabled\" to control the \"disabled\" state " +"bit. This is a write-only option: setting it changes the widget state, but " +"the :meth:`Widget.state` method does not affect this option." +msgstr "" + +msgid "Widget States" +msgstr "" + +msgid "The widget state is a bitmap of independent state flags." +msgstr "" + +msgid "Flag" +msgstr "" + +msgid "active" +msgstr "" + +msgid "" +"The mouse cursor is over the widget and pressing a mouse button will cause " +"some action to occur" +msgstr "" + +msgid "disabled" +msgstr "" + +msgid "Widget is disabled under program control" +msgstr "" + +msgid "focus" +msgstr "" + +msgid "Widget has keyboard focus" +msgstr "" + +msgid "pressed" +msgstr "" + +msgid "Widget is being pressed" +msgstr "" + +msgid "selected" +msgstr "" + +msgid "" +"\"On\", \"true\", or \"current\" for things like Checkbuttons and " +"radiobuttons" +msgstr "" + +msgid "background" +msgstr "" + +msgid "" +"Windows and Mac have a notion of an \"active\" or foreground window. The " +"*background* state is set for widgets in a background window, and cleared " +"for those in the foreground window" +msgstr "" + +msgid "readonly" +msgstr "" + +msgid "Widget should not allow user modification" +msgstr "" + +msgid "alternate" +msgstr "" + +msgid "A widget-specific alternate display format" +msgstr "" + +msgid "invalid" +msgstr "" + +msgid "The widget's value is invalid" +msgstr "" + +msgid "" +"A state specification is a sequence of state names, optionally prefixed with " +"an exclamation point indicating that the bit is off." +msgstr "" + +msgid "ttk.Widget" +msgstr "" + +msgid "" +"Besides the methods described below, the :class:`ttk.Widget` supports the " +"methods :meth:`tkinter.Widget.cget` and :meth:`tkinter.Widget.configure`." +msgstr "" + +msgid "" +"Returns the name of the element at position *x* *y*, or the empty string if " +"the point does not lie within any element." +msgstr "" + +msgid "*x* and *y* are pixel coordinates relative to the widget." +msgstr "" + +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*." +msgstr "" + +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." +msgstr "" + +msgid "*statespec* will usually be a list or a tuple." +msgstr "" + +msgid "Combobox" +msgstr "" + +msgid "" +"The :class:`ttk.Combobox` widget combines a text field with a pop-down list " +"of values. This widget is a subclass of :class:`Entry`." +msgstr "" + +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`." +msgstr "" + +msgid "Options" +msgstr "" + +msgid "This widget accepts the following specific options:" +msgstr "" + +msgid "exportselection" +msgstr "" + +msgid "" +"Boolean value. If set, the widget selection is linked to the Window Manager " +"selection (which can be returned by invoking Misc.selection_get, for " +"example)." +msgstr "" + +msgid "justify" +msgstr "" + +msgid "" +"Specifies how the text is aligned within the widget. One of \"left\", " +"\"center\", or \"right\"." +msgstr "" + +msgid "height" +msgstr "" + +msgid "Specifies the height of the pop-down listbox, in rows." +msgstr "" + +msgid "postcommand" +msgstr "" + +msgid "" +"A script (possibly registered with Misc.register) that is called immediately " +"before displaying the values. It may specify which values to display." +msgstr "" + +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." +msgstr "" + +msgid "" +"Specifies a name whose value is linked to the widget value. Whenever the " +"value associated with that name changes, the widget value is updated, and " +"vice versa. See :class:`tkinter.StringVar`." +msgstr "" + +msgid "values" +msgstr "" + +msgid "Specifies the list of values to display in the drop-down listbox." +msgstr "" + +msgid "" +"Specifies an integer value indicating the desired width of the entry window, " +"in average-size characters of the widget's font." +msgstr "" + +msgid "Virtual events" +msgstr "" + +msgid "" +"The combobox widgets generates a **<>** virtual event when " +"the user selects an element from the list of values." +msgstr "" + +msgid "ttk.Combobox" +msgstr "" + +msgid "" +"If *newindex* is specified, sets the combobox value to the element position " +"*newindex*. Otherwise, returns the index of the current value or -1 if the " +"current value is not in the values list." +msgstr "" + +msgid "Returns the current value of the combobox." +msgstr "" + +msgid "Sets the value of the combobox to *value*." +msgstr "" + +msgid "Spinbox" +msgstr "" + +msgid "" +"The :class:`ttk.Spinbox` widget is a :class:`ttk.Entry` enhanced with " +"increment and decrement arrows. It can be used for numbers or lists of " +"string values. This widget is a subclass of :class:`Entry`." +msgstr "" + +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`." +msgstr "" + +msgid "from" +msgstr "" + +msgid "" +"Float value. If set, this is the minimum value to which the decrement " +"button will decrement. Must be spelled as ``from_`` when used as an " +"argument, since ``from`` is a Python keyword." +msgstr "" + +msgid "to" +msgstr "" + +msgid "" +"Float value. If set, this is the maximum value to which the increment " +"button will increment." +msgstr "" + +msgid "increment" +msgstr "" + +msgid "" +"Float value. Specifies the amount which the increment/decrement buttons " +"change the value. Defaults to 1.0." +msgstr "" + +msgid "" +"Sequence of string or float values. If specified, the increment/decrement " +"buttons will cycle through the items in this sequence rather than " +"incrementing or decrementing numbers." +msgstr "" + +msgid "wrap" +msgstr "" + +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`` " +"value, respectively." +msgstr "" + +msgid "format" +msgstr "format" + +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." +msgstr "" + +msgid "command" +msgstr "" + +msgid "" +"Python callable. Will be called with no arguments whenever either of the " +"increment or decrement buttons are pressed." +msgstr "" + +msgid "" +"The spinbox widget generates an **<>** virtual event when the " +"user presses , and a **<>** virtual event when the user " +"presses ." +msgstr "" + +msgid "ttk.Spinbox" +msgstr "" + +msgid "Returns the current value of the spinbox." +msgstr "" + +msgid "Sets the value of the spinbox to *value*." +msgstr "" + +msgid "Notebook" +msgstr "" + +msgid "" +"Ttk Notebook widget manages a collection of windows and displays a single " +"one at a time. Each child window is associated with a tab, which the user " +"may select to change the currently displayed window." +msgstr "" + +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." +msgstr "" + +msgid "padding" +msgstr "" + +msgid "" +"Specifies the amount of extra space to add around the outside of the " +"notebook. The padding is a list up to four length specifications left top " +"right bottom. If fewer than four elements are specified, bottom defaults to " +"top, right defaults to left, and top defaults to left." +msgstr "" + +msgid "" +"If present and greater than zero, specified the desired width of the pane " +"area (not including internal padding). Otherwise, the maximum width of all " +"panes is used." +msgstr "" + +msgid "Tab Options" +msgstr "" + +msgid "There are also specific options for tabs:" +msgstr "" + +msgid "" +"Either \"normal\", \"disabled\" or \"hidden\". If \"disabled\", then the tab " +"is not selectable. If \"hidden\", then the tab is not shown." +msgstr "" + +msgid "sticky" +msgstr "" + +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." +msgstr "" + +msgid "" +"Specifies the amount of extra space to add between the notebook and this " +"pane. Syntax is the same as for the option padding used by this widget." +msgstr "" + +msgid "Specifies a text to be displayed in the tab." +msgstr "" + +msgid "" +"Specifies an image to display in the tab. See the option image described " +"in :class:`Widget`." +msgstr "" + +msgid "" +"Specifies how to display the image relative to the text, in the case both " +"options text and image are present. See `Label Options`_ for legal values." +msgstr "" + +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." +msgstr "" + +msgid "Tab Identifiers" +msgstr "" + +msgid "" +"The tab_id present in several methods of :class:`ttk.Notebook` may take any " +"of the following forms:" +msgstr "" + +msgid "An integer between zero and the number of tabs" +msgstr "" + +msgid "The name of a child window" +msgstr "" + +msgid "" +"A positional specification of the form \"@x,y\", which identifies the tab" +msgstr "" + +msgid "" +"The literal string \"current\", which identifies the currently selected tab" +msgstr "" + +msgid "" +"The literal string \"end\", which returns the number of tabs (only valid " +"for :meth:`Notebook.index`)" +msgstr "" + +msgid "Virtual Events" +msgstr "" + +msgid "" +"This widget generates a **<>** virtual event after a new " +"tab is selected." +msgstr "" + +msgid "ttk.Notebook" +msgstr "" + +msgid "Adds a new tab to the notebook." +msgstr "" + +msgid "" +"If window is currently managed by the notebook but hidden, it is restored to " +"its previous position." +msgstr "" + +msgid "See `Tab Options`_ for the list of available options." +msgstr "" + +msgid "" +"Removes the tab specified by *tab_id*, unmaps and unmanages the associated " +"window." +msgstr "" + +msgid "Hides the tab specified by *tab_id*." +msgstr "" + +msgid "" +"The tab will not be displayed, but the associated window remains managed by " +"the notebook and its configuration remembered. Hidden tabs may be restored " +"with the :meth:`add` command." +msgstr "" + +msgid "" +"Returns the name of the tab element at position *x*, *y*, or the empty " +"string if none." +msgstr "" + +msgid "" +"Returns the numeric index of the tab specified by *tab_id*, or the total " +"number of tabs if *tab_id* is the string \"end\"." +msgstr "" + +msgid "Inserts a pane at the specified position." +msgstr "" + +msgid "" +"*pos* is either the string \"end\", an integer index, or the name of a " +"managed child. If *child* is already managed by the notebook, moves it to " +"the specified position." +msgstr "" + +msgid "Selects the specified *tab_id*." +msgstr "" + +msgid "" +"The associated child window will be displayed, and the previously selected " +"window (if different) is unmapped. If *tab_id* is omitted, returns the " +"widget name of the currently selected pane." +msgstr "" + +msgid "Query or modify the options of the specific *tab_id*." +msgstr "" + +msgid "" +"If *kw* is not given, returns a dictionary of the tab option values. If " +"*option* is specified, returns the value of that *option*. Otherwise, sets " +"the options to the corresponding values." +msgstr "" + +msgid "Returns a list of windows managed by the notebook." +msgstr "" + +msgid "" +"Enable keyboard traversal for a toplevel window containing this notebook." +msgstr "" + +msgid "" +"This will extend the bindings for the toplevel window containing the " +"notebook as follows:" +msgstr "" + +msgid "" +":kbd:`Control-Tab`: selects the tab following the currently selected one." +msgstr "" + +msgid "" +":kbd:`Shift-Control-Tab`: selects the tab preceding the currently selected " +"one." +msgstr "" + +msgid "" +":kbd:`Alt-K`: where *K* is the mnemonic (underlined) character of any tab, " +"will select that tab." +msgstr "" + +msgid "" +"Multiple notebooks in a single toplevel may be enabled for traversal, " +"including nested notebooks. However, notebook traversal only works properly " +"if all panes have the notebook they are in as master." +msgstr "" + +msgid "Progressbar" +msgstr "" + +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 " +"know that work is progressing." +msgstr "" + +msgid "orient" +msgstr "" + +msgid "" +"One of \"horizontal\" or \"vertical\". Specifies the orientation of the " +"progress bar." +msgstr "" + +msgid "length" +msgstr "" + +msgid "" +"Specifies the length of the long axis of the progress bar (width if " +"horizontal, height if vertical)." +msgstr "" + +msgid "mode" +msgstr "" + +msgid "One of \"determinate\" or \"indeterminate\"." +msgstr "" + +msgid "maximum" +msgstr "" + +msgid "A number specifying the maximum value. Defaults to 100." +msgstr "" + +msgid "value" +msgstr "" + +msgid "" +"The current value of the progress bar. In \"determinate\" mode, this " +"represents the amount of work completed. In \"indeterminate\" mode, it is " +"interpreted as modulo *maximum*; that is, the progress bar completes one " +"\"cycle\" when its value increases by *maximum*." +msgstr "" + +msgid "variable" +msgstr "" + +msgid "" +"A name which is linked to the option value. If specified, the value of the " +"progress bar is automatically set to the value of this name whenever the " +"latter is modified." +msgstr "" + +msgid "phase" +msgstr "" + +msgid "" +"Read-only option. The widget periodically increments the value of this " +"option whenever its value is greater than 0 and, in determinate mode, less " +"than maximum. This option may be used by the current theme to provide " +"additional animation effects." +msgstr "" + +msgid "ttk.Progressbar" +msgstr "" + +msgid "" +"Begin autoincrement mode: schedules a recurring timer event that " +"calls :meth:`Progressbar.step` every *interval* milliseconds. If omitted, " +"*interval* defaults to 50 milliseconds." +msgstr "" + +msgid "Increments the progress bar's value by *amount*." +msgstr "" + +msgid "*amount* defaults to 1.0 if omitted." +msgstr "" + +msgid "" +"Stop autoincrement mode: cancels any recurring timer event initiated " +"by :meth:`Progressbar.start` for this progress bar." +msgstr "" + +msgid "Separator" +msgstr "" + +msgid "" +"The :class:`ttk.Separator` widget displays a horizontal or vertical " +"separator bar." +msgstr "" + +msgid "" +"It has no other methods besides the ones inherited from :class:`ttk.Widget`." +msgstr "" + +msgid "This widget accepts the following specific option:" +msgstr "" + +msgid "" +"One of \"horizontal\" or \"vertical\". Specifies the orientation of the " +"separator." +msgstr "" + +msgid "Sizegrip" +msgstr "" + +msgid "" +"The :class:`ttk.Sizegrip` widget (also known as a grow box) allows the user " +"to resize the containing toplevel window by pressing and dragging the grip." +msgstr "" + +msgid "" +"This widget has neither specific options nor specific methods, besides the " +"ones inherited from :class:`ttk.Widget`." +msgstr "" + +msgid "Platform-specific notes" +msgstr "" + +msgid "" +"On macOS, toplevel windows automatically include a built-in size grip by " +"default. Adding a :class:`Sizegrip` is harmless, since the built-in grip " +"will just mask the widget." +msgstr "" + +msgid "Bugs" +msgstr "" + +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 " +"resize the window." +msgstr "" + +msgid "This widget supports only \"southeast\" resizing." +msgstr "" + +msgid "Treeview" +msgstr "" + +msgid "" +"The :class:`ttk.Treeview` widget displays a hierarchical collection of " +"items. Each item has a textual label, an optional image, and an optional " +"list of data values. The data values are displayed in successive columns " +"after the tree label." +msgstr "" + +msgid "" +"The order in which data values are displayed may be controlled by setting " +"the widget option ``displaycolumns``. The tree widget can also display " +"column headings. Columns may be accessed by number or symbolic names listed " +"in the widget option columns. See `Column Identifiers`_." +msgstr "" + +msgid "" +"Each item is identified by a unique name. The widget will generate item IDs " +"if they are not supplied by the caller. There is a distinguished root item, " +"named ``{}``. The root item itself is not displayed; its children appear at " +"the top level of the hierarchy." +msgstr "" + +msgid "" +"Each item also has a list of tags, which can be used to associate event " +"bindings with individual items and control the appearance of the item." +msgstr "" + +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`." +msgstr "" + +msgid "columns" +msgstr "" + +msgid "" +"A list of column identifiers, specifying the number of columns and their " +"names." +msgstr "" + +msgid "displaycolumns" +msgstr "" + +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\"." +msgstr "" + +msgid "" +"Specifies the number of rows which should be visible. Note: the requested " +"width is determined from the sum of the column widths." +msgstr "" + +msgid "" +"Specifies the internal padding for the widget. The padding is a list of up " +"to four length specifications." +msgstr "" + +msgid "selectmode" +msgstr "" + +msgid "" +"Controls how the built-in class bindings manage the selection. One of " +"\"extended\", \"browse\" or \"none\". If set to \"extended\" (the default), " +"multiple items may be selected. If \"browse\", only a single item will be " +"selected at a time. If \"none\", the selection will not be changed." +msgstr "" + +msgid "" +"Note that the application code and tag bindings can set the selection " +"however they wish, regardless of the value of this option." +msgstr "" + +msgid "show" +msgstr "" + +msgid "" +"A list containing zero or more of the following values, specifying which " +"elements of the tree to display." +msgstr "" + +msgid "tree: display tree labels in column #0." +msgstr "" + +msgid "headings: display the heading row." +msgstr "" + +msgid "The default is \"tree headings\", i.e., show all elements." +msgstr "" + +msgid "" +"**Note**: Column #0 always refers to the tree column, even if show=\"tree\" " +"is not specified." +msgstr "" + +msgid "Item Options" +msgstr "" + +msgid "" +"The following item options may be specified for items in the insert and item " +"widget commands." +msgstr "" + +msgid "The textual label to display for the item." +msgstr "" + +msgid "A Tk Image, displayed to the left of the label." +msgstr "" + +msgid "The list of values associated with the item." +msgstr "" + +msgid "" +"Each item should have the same number of values as the widget option " +"columns. If there are fewer values than columns, the remaining values are " +"assumed empty. If there are more values than columns, the extra values are " +"ignored." +msgstr "" + +msgid "open" +msgstr "otwórz" + +msgid "" +"``True``/``False`` value indicating whether the item's children should be " +"displayed or hidden." +msgstr "" + +msgid "tags" +msgstr "" + +msgid "A list of tags associated with this item." +msgstr "" + +msgid "Tag Options" +msgstr "" + +msgid "The following options may be specified on tags:" +msgstr "" + +msgid "foreground" +msgstr "" + +msgid "Specifies the text foreground color." +msgstr "" + +msgid "Specifies the cell or item background color." +msgstr "" + +msgid "font" +msgstr "" + +msgid "Specifies the font to use when drawing text." +msgstr "" + +msgid "Specifies the item image, in case the item's image option is empty." +msgstr "" + +msgid "Column Identifiers" +msgstr "" + +msgid "Column identifiers take any of the following forms:" +msgstr "" + +msgid "A symbolic name from the list of columns option." +msgstr "" + +msgid "An integer n, specifying the nth data column." +msgstr "" + +msgid "" +"A string of the form #n, where n is an integer, specifying the nth display " +"column." +msgstr "" + +msgid "Notes:" +msgstr "Uwagi:" + +msgid "" +"Item's option values may be displayed in a different order than the order in " +"which they are stored." +msgstr "" + +msgid "" +"Column #0 always refers to the tree column, even if show=\"tree\" is not " +"specified." +msgstr "" + +msgid "" +"A data column number is an index into an item's option values list; a " +"display column number is the column number in the tree where the values are " +"displayed. Tree labels are displayed in column #0. If option displaycolumns " +"is not set, then data column n is displayed in column #n+1. Again, **column " +"#0 always refers to the tree column**." +msgstr "" + +msgid "The Treeview widget generates the following virtual events." +msgstr "" + +msgid "Event" +msgstr "Zdarzenie" + +msgid "<>" +msgstr "" + +msgid "Generated whenever the selection changes." +msgstr "" + +msgid "<>" +msgstr "" + +msgid "Generated just before settings the focus item to open=True." +msgstr "" + +msgid "<>" +msgstr "" + +msgid "Generated just after setting the focus item to open=False." +msgstr "" + +msgid "" +"The :meth:`Treeview.focus` and :meth:`Treeview.selection` methods can be " +"used to determine the affected item or items." +msgstr "" + +msgid "ttk.Treeview" +msgstr "" + +msgid "" +"Returns the bounding box (relative to the treeview widget's window) of the " +"specified *item* in the form (x, y, width, height)." +msgstr "" + +msgid "" +"If *column* is specified, returns the bounding box of that cell. If the " +"*item* is not visible (i.e., if it is a descendant of a closed item or is " +"scrolled offscreen), returns an empty string." +msgstr "" + +msgid "Returns the list of children belonging to *item*." +msgstr "" + +msgid "If *item* is not specified, returns root children." +msgstr "" + +msgid "Replaces *item*'s child with *newchildren*." +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." +msgstr "" + +msgid "Query or modify the options for the specified *column*." +msgstr "" + +msgid "" +"If *kw* is not given, returns a dict of the column option values. If " +"*option* is specified then the value for that *option* is returned. " +"Otherwise, sets the options to the corresponding values." +msgstr "" + +msgid "The valid options/values are:" +msgstr "" + +msgid "id" +msgstr "" + +msgid "Returns the column name. This is a read-only option." +msgstr "" + +msgid "anchor: One of the standard Tk anchor values." +msgstr "" + +msgid "" +"Specifies how the text in this column should be aligned with respect to the " +"cell." +msgstr "" + +msgid "minwidth: width" +msgstr "" + +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 " +"resized or the user drags a column." +msgstr "" + +msgid "stretch: ``True``/``False``" +msgstr "" + +msgid "" +"Specifies whether the column's width should be adjusted when the widget is " +"resized." +msgstr "" + +msgid "width: width" +msgstr "" + +msgid "The width of the column in pixels." +msgstr "" + +msgid "To configure the tree column, call this with column = \"#0\"" +msgstr "" + +msgid "Delete all specified *items* and all their descendants." +msgstr "" + +msgid "The root item may not be deleted." +msgstr "" + +msgid "Unlinks all of the specified *items* from the tree." +msgstr "" + +msgid "" +"The items and all of their descendants are still present, and may be " +"reinserted at another point in the tree, but will not be displayed." +msgstr "" + +msgid "The root item may not be detached." +msgstr "" + +msgid "Returns ``True`` if the specified *item* is present in the tree." +msgstr "" + +msgid "" +"If *item* is specified, sets the focus item to *item*. Otherwise, returns " +"the current focus item, or '' if there is none." +msgstr "" + +msgid "Query or modify the heading options for the specified *column*." +msgstr "" + +msgid "" +"If *kw* is not given, returns a dict of the heading option values. If " +"*option* is specified then the value for that *option* is returned. " +"Otherwise, sets the options to the corresponding values." +msgstr "" + +msgid "text: text" +msgstr "" + +msgid "The text to display in the column heading." +msgstr "" + +msgid "image: imageName" +msgstr "" + +msgid "Specifies an image to display to the right of the column heading." +msgstr "" + +msgid "anchor: anchor" +msgstr "" + +msgid "" +"Specifies how the heading text should be aligned. One of the standard Tk " +"anchor values." +msgstr "" + +msgid "command: callback" +msgstr "" + +msgid "A callback to be invoked when the heading label is pressed." +msgstr "" + +msgid "To configure the tree column heading, call this with column = \"#0\"." +msgstr "" + +msgid "" +"Returns a description of the specified *component* under the point given by " +"*x* and *y*, or the empty string if no such *component* is present at that " +"position." +msgstr "" + +msgid "Returns the item ID of the item at position *y*." +msgstr "" + +msgid "Returns the data column identifier of the cell at position *x*." +msgstr "" + +msgid "The tree column has ID #0." +msgstr "" + +msgid "Returns one of:" +msgstr "" + +msgid "region" +msgstr "" + +msgid "meaning" +msgstr "" + +msgid "heading" +msgstr "" + +msgid "Tree heading area." +msgstr "" + +msgid "separator" +msgstr "" + +msgid "Space between two columns headings." +msgstr "" + +msgid "tree" +msgstr "" + +msgid "The tree area." +msgstr "" + +msgid "cell" +msgstr "" + +msgid "A data cell." +msgstr "" + +msgid "Availability: Tk 8.6." +msgstr "" + +msgid "Returns the element at position *x*, *y*." +msgstr "" + +msgid "" +"Returns the integer index of *item* within its parent's list of children." +msgstr "" + +msgid "" +"Creates a new item and returns the item identifier of the newly created item." +msgstr "" + +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 " +"*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 " +"unique identifier is generated." +msgstr "" + +msgid "See `Item Options`_ for the list of available points." +msgstr "" + +msgid "Query or modify the options for the specified *item*." +msgstr "" + +msgid "" +"If no options are given, a dict with options/values for the item is " +"returned. If *option* is specified then the value for that option is " +"returned. Otherwise, sets the options to the corresponding values as given " +"by *kw*." +msgstr "" + +msgid "Moves *item* to position *index* in *parent*'s list of children." +msgstr "" + +msgid "" +"It is illegal to move an item under one of its descendants. If *index* is " +"less than or equal to zero, *item* is moved to the beginning; if greater " +"than or equal to the number of children, it is moved to the end. If *item* " +"was detached it is reattached." +msgstr "" + +msgid "" +"Returns the identifier of *item*'s next sibling, or '' if *item* is the last " +"child of its parent." +msgstr "" + +msgid "" +"Returns the ID of the parent of *item*, or '' if *item* is at the top level " +"of the hierarchy." +msgstr "" + +msgid "" +"Returns the identifier of *item*'s previous sibling, or '' if *item* is the " +"first child of its parent." +msgstr "" + +msgid "An alias for :meth:`Treeview.move`." +msgstr "" + +msgid "Ensure that *item* is visible." +msgstr "" + +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." +msgstr "" + +msgid "Returns a tuple of selected items." +msgstr "" + +msgid "" +"``selection()`` no longer takes arguments. For changing the selection state " +"use the following selection methods." +msgstr "" + +msgid "*items* becomes the new selection." +msgstr "" + +msgid "" +"*items* can be passed as separate arguments, not just as a single tuple." +msgstr "" + +msgid "Add *items* to the selection." +msgstr "" + +msgid "Remove *items* from the selection." +msgstr "" + +msgid "Toggle the selection state of each item in *items*." +msgstr "" + +msgid "" +"With one argument, returns a dictionary of column/value pairs for the " +"specified *item*. With two arguments, returns the current value of the " +"specified *column*. With three arguments, sets the value of given *column* " +"in given *item* to the specified *value*." +msgstr "" + +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 " +"option are called." +msgstr "" + +msgid "Query or modify the options for the specified *tagname*." +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*." +msgstr "" + +msgid "" +"If *item* is specified, returns 1 or 0 depending on whether the specified " +"*item* has the given *tagname*. Otherwise, returns a list of all items that " +"have the specified tag." +msgstr "" + +msgid "Availability: Tk 8.6" +msgstr "" + +msgid "Query or modify horizontal position of the treeview." +msgstr "" + +msgid "Query or modify vertical position of the treeview." +msgstr "" + +msgid "Ttk Styling" +msgstr "" + +msgid "" +"Each widget in :mod:`ttk` is assigned a style, which specifies the set of " +"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())." +msgstr "" + +msgid "" +"`Tcl'2004 conference presentation `_" +msgstr "" + +msgid "This document explains how the theme engine works" +msgstr "" + +msgid "This class is used to manipulate the style database." +msgstr "" + +msgid "Query or set the default value of the specified option(s) in *style*." +msgstr "" + +msgid "" +"Each key in *kw* is an option and each value is a string identifying the " +"value for that option." +msgstr "" + +msgid "" +"For example, to change every default button to be a flat button with some " +"padding and a different background color::" +msgstr "" + +msgid "Query or sets dynamic values of the specified option(s) in *style*." +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." +msgstr "" + +msgid "An example may make it more understandable::" +msgstr "" + +msgid "" +"Note that the order of the (states, value) sequences for an option does " +"matter, if the order is changed to ``[('active', 'blue'), ('pressed', " +"'red')]`` in the foreground option, for example, the result would be a blue " +"foreground when the widget were in active or pressed states." +msgstr "" + +msgid "Returns the value specified for *option* in *style*." +msgstr "" + +msgid "" +"If *state* is specified, it is expected to be a sequence of one or more " +"states. If the *default* argument is set, it is used as a fallback value in " +"case no specification for option is found." +msgstr "" + +msgid "To check what font a Button uses by default::" +msgstr "" + +msgid "" +"Define the widget layout for given *style*. If *layoutspec* is omitted, " +"return the layout specification for given style." +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`_." +msgstr "" + +msgid "" +"To understand the format, see the following example (it is not intended to " +"do anything useful)::" +msgstr "" + +msgid "" +"Create a new element in the current theme, of the given *etype* which is " +"expected to be either \"image\", \"from\" or \"vsapi\". The latter is only " +"available in Tk 8.6a for Windows XP and Vista and is not described here." +msgstr "" + +msgid "" +"If \"image\" is used, *args* should contain the default image name followed " +"by statespec/value pairs (this is the imagespec), and *kw* may have the " +"following options:" +msgstr "" + +msgid "border=padding" +msgstr "" + +msgid "" +"padding is a list of up to four integers, specifying the left, top, right, " +"and bottom borders, respectively." +msgstr "" + +msgid "height=height" +msgstr "" + +msgid "" +"Specifies a minimum height for the element. If less than zero, the base " +"image's height is used as a default." +msgstr "" + +msgid "padding=padding" +msgstr "" + +msgid "" +"Specifies the element's interior padding. Defaults to border's value if not " +"specified." +msgstr "" + +msgid "sticky=spec" +msgstr "" + +msgid "" +"Specifies how the image is placed within the final parcel. spec contains " +"zero or more characters \"n\", \"s\", \"w\", or \"e\"." +msgstr "" + +msgid "width=width" +msgstr "" + +msgid "" +"Specifies a minimum width for the element. If less than zero, the base " +"image's width is used as a default." +msgstr "" + +msgid "" +"If \"from\" is used as the value of *etype*, :meth:`element_create` will " +"clone an existing element. *args* is expected to contain a themename, from " +"which the element will be cloned, and optionally an element to clone from. " +"If this element to clone from is not specified, an empty element will be " +"used. *kw* is discarded." +msgstr "" + +msgid "Returns the list of elements defined in the current theme." +msgstr "" + +msgid "Returns the list of *elementname*'s options." +msgstr "" + +msgid "Create a new theme." +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`." +msgstr "" + +msgid "" +"Temporarily sets the current theme to *themename*, apply specified " +"*settings* and then restore the previous theme." +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` respectively." +msgstr "" + +msgid "As an example, let's change the Combobox for the default theme a bit::" +msgstr "" + +msgid "Returns a list of all known themes." +msgstr "" + +msgid "" +"If *themename* is not given, returns the theme in use. Otherwise, sets the " +"current theme to *themename*, refreshes all widgets and emits a " +"<> event." +msgstr "" + +msgid "Layouts" +msgstr "" + +msgid "" +"A layout can be just ``None``, if it takes no options, or a dict of options " +"specifying how to arrange the element. The layout mechanism uses a " +"simplified version of the pack geometry manager: given an initial cavity, " +"each element is allocated a parcel. Valid options/values are:" +msgstr "" + +msgid "side: whichside" +msgstr "" + +msgid "" +"Specifies which side of the cavity to place the element; one of top, right, " +"bottom or left. If omitted, the element occupies the entire cavity." +msgstr "" + +msgid "sticky: nswe" +msgstr "" + +msgid "Specifies where the element is placed inside its allocated parcel." +msgstr "" + +msgid "unit: 0 or 1" +msgstr "" + +msgid "" +"If set to 1, causes the element and all of its descendants to be treated as " +"a single element for the purposes of :meth:`Widget.identify` et al. It's " +"used for things like scrollbar thumbs with grips." +msgstr "" + +msgid "children: [sublayout... ]" +msgstr "" + +msgid "" +"Specifies a list of elements to place inside the element. Each element is a " +"tuple (or other sequence type) where the first item is the layout name, and " +"the other is a `Layout`_." +msgstr "" diff --git a/library/token.po b/library/token.po new file mode 100644 index 0000000000..4f5eb7bfb9 --- /dev/null +++ b/library/token.po @@ -0,0 +1,247 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`token` --- Constants used with Python parse trees" +msgstr "" + +msgid "**Source code:** :source:`Lib/token.py`" +msgstr "**Kod źródłowy:**. :source:`Lib/token.py`" + +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/" +"Tokens` 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 "" + +msgid "" +"The module also provides a mapping from numeric codes to names and some " +"functions. The functions mirror definitions in the Python C header files." +msgstr "" + +msgid "" +"Dictionary mapping the numeric values of the constants defined in this " +"module back to name strings, allowing more human-readable representation of " +"parse trees to be generated." +msgstr "" + +msgid "Return ``True`` for terminal token values." +msgstr "" + +msgid "Return ``True`` for non-terminal token values." +msgstr "" + +msgid "Return ``True`` if *x* is the marker indicating the end of input." +msgstr "" + +msgid "The token constants are:" +msgstr "" + +msgid "Token value for ``\"(\"``." +msgstr "" + +msgid "Token value for ``\")\"``." +msgstr "" + +msgid "Token value for ``\"[\"``." +msgstr "" + +msgid "Token value for ``\"]\"``." +msgstr "" + +msgid "Token value for ``\":\"``." +msgstr "" + +msgid "Token value for ``\",\"``." +msgstr "" + +msgid "Token value for ``\";\"``." +msgstr "" + +msgid "Token value for ``\"+\"``." +msgstr "" + +msgid "Token value for ``\"-\"``." +msgstr "" + +msgid "Token value for ``\"*\"``." +msgstr "" + +msgid "Token value for ``\"/\"``." +msgstr "" + +msgid "Token value for ``\"|\"``." +msgstr "" + +msgid "Token value for ``\"&\"``." +msgstr "" + +msgid "Token value for ``\"<\"``." +msgstr "" + +msgid "Token value for ``\">\"``." +msgstr "" + +msgid "Token value for ``\"=\"``." +msgstr "" + +msgid "Token value for ``\".\"``." +msgstr "" + +msgid "Token value for ``\"%\"``." +msgstr "" + +msgid "Token value for ``\"{\"``." +msgstr "" + +msgid "Token value for ``\"}\"``." +msgstr "" + +msgid "Token value for ``\"==\"``." +msgstr "" + +msgid "Token value for ``\"!=\"``." +msgstr "" + +msgid "Token value for ``\"<=\"``." +msgstr "" + +msgid "Token value for ``\">=\"``." +msgstr "" + +msgid "Token value for ``\"~\"``." +msgstr "" + +msgid "Token value for ``\"^\"``." +msgstr "" + +msgid "Token value for ``\"<<\"``." +msgstr "" + +msgid "Token value for ``\">>\"``." +msgstr "" + +msgid "Token value for ``\"**\"``." +msgstr "" + +msgid "Token value for ``\"+=\"``." +msgstr "" + +msgid "Token value for ``\"-=\"``." +msgstr "" + +msgid "Token value for ``\"*=\"``." +msgstr "" + +msgid "Token value for ``\"/=\"``." +msgstr "" + +msgid "Token value for ``\"%=\"``." +msgstr "" + +msgid "Token value for ``\"&=\"``." +msgstr "" + +msgid "Token value for ``\"|=\"``." +msgstr "" + +msgid "Token value for ``\"^=\"``." +msgstr "" + +msgid "Token value for ``\"<<=\"``." +msgstr "" + +msgid "Token value for ``\">>=\"``." +msgstr "" + +msgid "Token value for ``\"**=\"``." +msgstr "" + +msgid "Token value for ``\"//\"``." +msgstr "" + +msgid "Token value for ``\"//=\"``." +msgstr "" + +msgid "Token value for ``\"@\"``." +msgstr "" + +msgid "Token value for ``\"@=\"``." +msgstr "" + +msgid "Token value for ``\"->\"``." +msgstr "" + +msgid "Token value for ``\"...\"``." +msgstr "" + +msgid "Token value for ``\":=\"``." +msgstr "" + +msgid "" +"The following token type values aren't used by the C tokenizer but are " +"needed for the :mod:`tokenize` module." +msgstr "" + +msgid "Token value used to indicate a comment." +msgstr "" + +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 " +"lines." +msgstr "" + +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 " +"an ``ENCODING`` token." +msgstr "" + +msgid "" +"Token value indicating that a type comment was recognized. Such tokens are " +"only produced when :func:`ast.parse()` is invoked with " +"``type_comments=True``." +msgstr "" + +msgid "Added :data:`AWAIT` and :data:`ASYNC` tokens." +msgstr "" + +msgid "Added :data:`COMMENT`, :data:`NL` and :data:`ENCODING` tokens." +msgstr "" + +msgid "" +"Removed :data:`AWAIT` and :data:`ASYNC` tokens. \"async\" and \"await\" are " +"now tokenized as :data:`NAME` tokens." +msgstr "" + +msgid "" +"Added :data:`TYPE_COMMENT`, :data:`TYPE_IGNORE`, :data:`COLONEQUAL`. " +"Added :data:`AWAIT` and :data:`ASYNC` tokens back (they're needed to support " +"parsing older Python versions for :func:`ast.parse` with ``feature_version`` " +"set to 6 or lower)." +msgstr "" diff --git a/library/tokenize.po b/library/tokenize.po index e7d23760b5..fa2557f0c0 100644 --- a/library/tokenize.po +++ b/library/tokenize.po @@ -1,34 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:16+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`tokenize` --- Tokenizer for Python source" msgstr "" msgid "**Source code:** :source:`Lib/tokenize.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/tokenize.py`" msgid "" "The :mod:`tokenize` module provides a lexical scanner for Python source " @@ -38,11 +37,19 @@ msgid "" msgstr "" 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 "" + +msgid "" +"Note that the functions in this module are only designed to parse " +"syntactically valid Python code (code that does not raise when parsed " +"using :func:`ast.parse`). The behavior of the functions in this module is " +"**undefined** when providing invalid Python code and it can change at any " +"point." msgstr "" msgid "Tokenizing Input" @@ -53,9 +60,9 @@ msgstr "" 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 "" msgid "" @@ -96,13 +103,13 @@ msgid "" msgstr "" msgid "" -"The result is an iterator yielding named tuples, exactly like :func:`." -"tokenize`. It does not yield an :data:`~token.ENCODING` token." +"The result is an iterator yielding named tuples, exactly " +"like :func:`.tokenize`. It does not yield an :data:`~token.ENCODING` token." msgstr "" 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 "" msgid "" @@ -160,13 +167,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" diff --git a/library/tomllib.po b/library/tomllib.po deleted file mode 100644 index ae9295e0a3..0000000000 --- a/library/tomllib.po +++ /dev/null @@ -1,162 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -# Translators: -# Maciej Olko , 2022 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.11\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2022-11-05 19:49+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" - -msgid ":mod:`tomllib` --- Parse TOML files" -msgstr "" - -msgid "**Source code:** :source:`Lib/tomllib`" -msgstr "" - -msgid "" -"This module provides an interface for parsing TOML (Tom's Obvious Minimal " -"Language, `https://toml.io `_). This module does not " -"support writing TOML." -msgstr "" - -msgid "" -"The `Tomli-W package `__ is a TOML writer " -"that can be used in conjunction with this module, providing a write API " -"familiar to users of the standard library :mod:`marshal` and :mod:`pickle` " -"modules." -msgstr "" - -msgid "" -"The `TOML Kit package `__ is a style-" -"preserving TOML library with both read and write capability. It is a " -"recommended replacement for this module for editing already existing TOML " -"files." -msgstr "" - -msgid "This module defines the following functions:" -msgstr "" - -msgid "" -"Read a TOML file. The first argument should be a readable and binary file " -"object. Return a :class:`dict`. Convert TOML types to Python using this :ref:" -"`conversion table `." -msgstr "" - -msgid "" -"*parse_float* will be called with the string of every TOML float to be " -"decoded. By default, this is equivalent to ``float(num_str)``. This can be " -"used to use another datatype or parser for TOML floats (e.g. :class:`decimal." -"Decimal`). The callable must not return a :class:`dict` or a :class:`list`, " -"else a :exc:`ValueError` is raised." -msgstr "" - -msgid "A :exc:`TOMLDecodeError` will be raised on an invalid TOML document." -msgstr "" - -msgid "" -"Load TOML from a :class:`str` object. Return a :class:`dict`. Convert TOML " -"types to Python using this :ref:`conversion table `. The " -"*parse_float* argument has the same meaning as in :func:`load`." -msgstr "" - -msgid "The following exceptions are available:" -msgstr "" - -msgid "Subclass of :exc:`ValueError`." -msgstr "" - -msgid "Examples" -msgstr "Przykłady" - -msgid "Parsing a TOML file::" -msgstr "" - -msgid "Parsing a TOML string::" -msgstr "" - -msgid "Conversion Table" -msgstr "" - -msgid "TOML" -msgstr "" - -msgid "Python" -msgstr "" - -msgid "table" -msgstr "" - -msgid "dict" -msgstr "" - -msgid "string" -msgstr "" - -msgid "str" -msgstr "" - -msgid "integer" -msgstr "" - -msgid "int" -msgstr "int" - -msgid "float" -msgstr "typ (float) zmiennoprzecinkowy pojedynczej precyzji" - -msgid "float (configurable with *parse_float*)" -msgstr "" - -msgid "boolean" -msgstr "" - -msgid "bool" -msgstr "" - -msgid "offset date-time" -msgstr "" - -msgid "" -"datetime.datetime (``tzinfo`` attribute set to an instance of ``datetime." -"timezone``)" -msgstr "" - -msgid "local date-time" -msgstr "" - -msgid "datetime.datetime (``tzinfo`` attribute set to ``None``)" -msgstr "" - -msgid "local date" -msgstr "" - -msgid "datetime.date" -msgstr "" - -msgid "local time" -msgstr "" - -msgid "datetime.time" -msgstr "" - -msgid "array" -msgstr "" - -msgid "list" -msgstr "" diff --git a/library/traceback.po b/library/traceback.po new file mode 100644 index 0000000000..838b7cee18 --- /dev/null +++ b/library/traceback.po @@ -0,0 +1,405 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`traceback` --- Print or retrieve a stack traceback" +msgstr "" + +msgid "**Source code:** :source:`Lib/traceback.py`" +msgstr "**Kod źródłowy:** :source:`Lib/traceback.py`" + +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 " +"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." +msgstr "" + +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 " +"from :func:`sys.exc_info`." +msgstr "" + +msgid "Module :mod:`faulthandler`" +msgstr "" + +msgid "" +"Used to dump Python tracebacks explicitly, on a fault, after a timeout, or " +"on a user signal." +msgstr "" + +msgid "Module :mod:`pdb`" +msgstr "" + +msgid "Interactive source code debugger for Python programs." +msgstr "" + +msgid "The module defines the following functions:" +msgstr "" + +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." +msgstr "" + +msgid "Added negative *limit* support." +msgstr "" + +msgid "" +"Print exception information and stack trace entries from traceback object " +"*tb* to *file*. This differs from :func:`print_tb` in the following ways:" +msgstr "" + +msgid "" +"if *tb* is not ``None``, it prints a header ``Traceback (most recent call " +"last):``" +msgstr "" + +msgid "it prints the exception type and *value* after the stack trace" +msgstr "" + +msgid "" +"if *type(value)* is :exc:`SyntaxError` and *value* has the appropriate " +"format, it prints the line where the syntax error occurred with a caret " +"indicating the approximate position of the error." +msgstr "" + +msgid "" +"Since Python 3.10, instead of passing *value* and *tb*, an exception object " +"can be passed as the first argument. If *value* and *tb* are provided, the " +"first argument is ignored in order to provide backwards compatibility." +msgstr "" + +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." +msgstr "" + +msgid "The *etype* argument is ignored and inferred from the type of *value*." +msgstr "" + +msgid "" +"The *etype* parameter has been renamed to *exc* and is now positional-only." +msgstr "" + +msgid "" +"This is a shorthand for ``print_exception(*sys.exc_info(), limit, file, " +"chain)``." +msgstr "" + +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`)." +msgstr "" + +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 " +"optional *file* argument has the same meaning as for :func:`print_tb`." +msgstr "" + +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 stripped; if the source is not available it " +"is ``None``." +msgstr "" + +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`." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Format the exception part of a traceback using an exception value such as " +"given by ``sys.last_value``. The return value is a list of strings, each " +"ending in a newline. Normally, the list contains a single string; however, " +"for :exc:`SyntaxError` exceptions, it contains several lines that (when " +"printed) display detailed information about where the syntax error occurred. " +"The message indicating which exception occurred is the always last string in " +"the list." +msgstr "" + +msgid "" +"Since Python 3.10, instead of passing *value*, an exception object can be " +"passed as the first argument. If *value* is provided, the first argument is " +"ignored in order to provide backwards compatibility." +msgstr "" + +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 " +"containing internal newlines. When these lines are concatenated and " +"printed, exactly the same text is printed as does :func:`print_exception`." +msgstr "" + +msgid "" +"This function's behavior and signature were modified to " +"match :func:`print_exception`." +msgstr "" + +msgid "" +"This is like ``print_exc(limit)`` but returns a string instead of printing " +"to a file." +msgstr "" + +msgid "A shorthand for ``format_list(extract_tb(tb, limit))``." +msgstr "" + +msgid "A shorthand for ``format_list(extract_stack(f, limit))``." +msgstr "" + +msgid "" +"Clears the local variables of all the stack frames in a traceback *tb* by " +"calling the :meth:`clear` method of each frame object." +msgstr "" + +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 " +"used. This helper is used with :meth:`StackSummary.extract`." +msgstr "" + +msgid "" +"Walk a traceback following ``tb_next`` yielding the frame and line number " +"for each frame. This helper is used with :meth:`StackSummary.extract`." +msgstr "" + +msgid "The module also defines the following classes:" +msgstr "" + +msgid ":class:`TracebackException` Objects" +msgstr "" + +msgid "" +":class:`TracebackException` objects are created from actual exceptions to " +"capture data for later printing in a lightweight fashion." +msgstr "" + +msgid "" +"Capture an exception for later rendering. *limit*, *lookup_lines* and " +"*capture_locals* are as for the :class:`StackSummary` class." +msgstr "" + +msgid "" +"If *compact* is true, only data that is required " +"by :class:`TracebackException`'s ``format`` method is saved in the class " +"attributes. In particular, the ``__context__`` field is calculated only if " +"``__cause__`` is ``None`` and ``__suppress_context__`` is false." +msgstr "" + +msgid "" +"Note that when locals are captured, they are also shown in the traceback." +msgstr "" + +msgid "A :class:`TracebackException` of the original ``__cause__``." +msgstr "" + +msgid "A :class:`TracebackException` of the original ``__context__``." +msgstr "" + +msgid "The ``__suppress_context__`` value from the original exception." +msgstr "" + +msgid "A :class:`StackSummary` representing the traceback." +msgstr "" + +msgid "The class of the original traceback." +msgstr "" + +msgid "For syntax errors - the file name where the error occurred." +msgstr "" + +msgid "For syntax errors - the line number where the error occurred." +msgstr "" + +msgid "" +"For syntax errors - the end line number where the error occurred. Can be " +"``None`` if not present." +msgstr "" + +msgid "For syntax errors - the text where the error occurred." +msgstr "" + +msgid "For syntax errors - the offset into the text where the error occurred." +msgstr "" + +msgid "" +"For syntax errors - the end offset into the text where the error occurred. " +"Can be ``None`` if not present." +msgstr "" + +msgid "For syntax errors - the compiler error message." +msgstr "" + +msgid "Format the exception." +msgstr "" + +msgid "" +"If *chain* is not ``True``, ``__cause__`` and ``__context__`` will not be " +"formatted." +msgstr "" + +msgid "" +"The return value is a generator of strings, each ending in a newline and " +"some containing internal newlines. :func:`~traceback.print_exception` is a " +"wrapper around this method which just prints the lines to a file." +msgstr "" + +msgid "" +"The message indicating which exception occurred is always the last string in " +"the output." +msgstr "" + +msgid "Format the exception part of the traceback." +msgstr "" + +msgid "The return value is a generator of strings, each ending in a newline." +msgstr "" + +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." +msgstr "" + +msgid "Added the *compact* parameter." +msgstr "" + +msgid ":class:`StackSummary` Objects" +msgstr "" + +msgid "" +":class:`StackSummary` objects represent a call stack ready for formatting." +msgstr "" + +msgid "" +"Construct a :class:`StackSummary` object from a frame generator (such as is " +"returned by :func:`~traceback.walk_stack` or :func:`~traceback.walk_tb`)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns a list of strings ready for printing. Each string in the resulting " +"list corresponds to a single frame from the stack. Each string ends in a " +"newline; the strings may contain internal newlines as well, for those items " +"with source text lines." +msgstr "" + +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 " +"repetitions." +msgstr "" + +msgid "Long sequences of repeated frames are now abbreviated." +msgstr "" + +msgid ":class:`FrameSummary` Objects" +msgstr "" + +msgid ":class:`FrameSummary` objects represent a single frame in a traceback." +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." +msgstr "" + +msgid "Traceback Examples" +msgstr "" + +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. ::" +msgstr "" + +msgid "" +"The following example demonstrates the different ways to print and format " +"the exception and traceback:" +msgstr "" + +msgid "The output for the example would look similar to this:" +msgstr "" + +msgid "" +"The following example shows the different ways to print and format the " +"stack::" +msgstr "" + +msgid "This last example demonstrates the final few formatting functions:" +msgstr "" diff --git a/library/tracemalloc.po b/library/tracemalloc.po index 120cbf07dc..221d81157d 100644 --- a/library/tracemalloc.po +++ b/library/tracemalloc.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:16+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`tracemalloc` --- Trace memory allocations" msgstr "" msgid "**Source code:** :source:`Lib/tracemalloc.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/tracemalloc.py`" msgid "" "The tracemalloc module is a debug tool to trace memory blocks allocated by " @@ -55,9 +55,9 @@ msgstr "" 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." +"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 "" msgid "Examples" @@ -94,9 +94,9 @@ 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 "" msgid "" @@ -157,7 +157,7 @@ msgid "" msgstr "" msgid "API" -msgstr "" +msgstr "API" msgid "Functions" msgstr "Zadania" @@ -169,9 +169,10 @@ msgid "See also :func:`stop`." msgstr "" 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 "" msgid "See also :func:`gc.get_referrers` and :func:`sys.getsizeof` functions." @@ -189,8 +190,8 @@ msgid "The limit is set by the :func:`start` function." msgstr "" 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 "" msgid "" @@ -205,9 +206,9 @@ msgstr "" msgid "" "This function only modifies the recorded peak size, and does not modify or " -"clear any traces, unlike :func:`clear_traces`. Snapshots taken with :func:" -"`take_snapshot` before a call to :func:`reset_peak` can be meaningfully " -"compared to snapshots taken after the call." +"clear any traces, unlike :func:`clear_traces`. Snapshots taken " +"with :func:`take_snapshot` before a call to :func:`reset_peak` can be " +"meaningfully compared to snapshots taken after the call." msgstr "" msgid "See also :func:`get_traced_memory`." @@ -240,14 +241,14 @@ msgstr "" 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 "" 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 "" msgid "" @@ -283,8 +284,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -331,16 +332,16 @@ msgid "" msgstr "" msgid "Examples:" -msgstr "" +msgstr "Przykłady:" 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 "" msgid "" -"``Filter(False, tracemalloc.__file__)`` excludes traces of the :mod:" -"`tracemalloc` module" +"``Filter(False, tracemalloc.__file__)`` excludes traces of " +"the :mod:`tracemalloc` module" msgstr "" msgid "``Filter(False, \"\")`` excludes empty tracebacks" @@ -362,14 +363,14 @@ msgstr "" 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 "" 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 "" msgid "" @@ -386,9 +387,9 @@ msgid "" msgstr "" msgid "" -"This attribute has no effect if the traceback limit is ``1``. See the :func:" -"`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` " -"attribute." +"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 "" msgid "Frame" @@ -401,7 +402,7 @@ msgid "The :class:`Traceback` class is a sequence of :class:`Frame` instances." msgstr "" msgid "Filename (``str``)." -msgstr "" +msgstr "Filename (``str``)." msgid "Line number (``int``)." msgstr "" @@ -426,10 +427,10 @@ msgid "" msgstr "" 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 "" msgid "Write the snapshot into a file." @@ -497,8 +498,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -543,8 +545,8 @@ msgid "StatisticDiff" msgstr "" 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 "" msgid "" @@ -608,11 +610,11 @@ msgid "" msgstr "" msgid "" -"When a snapshot is taken, tracebacks of traces are limited to :func:" -"`get_traceback_limit` frames. See the :func:`take_snapshot` function. The " -"original number of frames of the traceback is stored in the :attr:`Traceback." -"total_nframe` attribute. That allows to know if a traceback has been " -"truncated by the traceback limit." +"When a snapshot is taken, tracebacks of traces are limited " +"to :func:`get_traceback_limit` frames. See the :func:`take_snapshot` " +"function. The original number of frames of the traceback is stored in " +"the :attr:`Traceback.total_nframe` attribute. That allows to know if a " +"traceback has been truncated by the traceback limit." msgstr "" msgid "" @@ -643,9 +645,9 @@ msgid "" msgstr "" 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 "" msgid "Example::" -msgstr "" +msgstr "Przykład::" diff --git a/library/tty.po b/library/tty.po new file mode 100644 index 0000000000..8a506376ed --- /dev/null +++ b/library/tty.po @@ -0,0 +1,60 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`tty` --- Terminal control functions" +msgstr "" + +msgid "**Source code:** :source:`Lib/tty.py`" +msgstr "**Kod źródłowy:** :source:`Lib/tty.py`" + +msgid "" +"The :mod:`tty` module defines functions for putting the tty into cbreak and " +"raw modes." +msgstr "" + +msgid "" +"Because it requires the :mod:`termios` module, it will work only on Unix." +msgstr "" + +msgid "The :mod:`tty` module defines the following functions:" +msgstr "" + +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`." +msgstr "" + +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`." +msgstr "" + +msgid "Module :mod:`termios`" +msgstr "" + +msgid "Low-level terminal control interface." +msgstr "" diff --git a/library/turtle.po b/library/turtle.po new file mode 100644 index 0000000000..f677308cec --- /dev/null +++ b/library/turtle.po @@ -0,0 +1,2337 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Rafael Fontenelle , 2026 +# Barbara Mroczek, 2026 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`turtle` --- Turtle graphics" +msgstr ":mod:`turtle` --- Grafika żółwia" + +msgid "**Source code:** :source:`Lib/turtle.py`" +msgstr "**Kod źródłowy:** :source:`Lib/turtle.py`" + +msgid "Introduction" +msgstr "Wprowadzenie" + +msgid "" +"Turtle graphics is a popular way for introducing programming to kids. It " +"was part of the original Logo programming language developed by Wally " +"Feurzeig, Seymour Papert and Cynthia Solomon in 1967." +msgstr "" + +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." +msgstr "" +"Wyobraźmy sobie żółwia-robota rozpoczynającego ruch w punkcie (0, 0) na " +"płaszczyźnie x-y. Po ``import turtle``, wydaj polecenie " +"``turtle.forward(15)``, a przesunie się (na ekranie!) o 15 pikseli w " +"kierunku, w którym jest zwrócony, rysując linię podczas ruchu. Wydaj " +"polecenie ``turtle.right(25)``, a obróci się w miejscu o 25 stopni zgodnie z " +"ruchem wskazówek zegara." + +msgid "" +"Turtle can draw intricate shapes using programs that repeat simple moves." +msgstr "" +"Żółw może rysować skomplikowane kształty za pomocą programów, które " +"powtarzają proste ruchy." + +msgid "" +"By combining together these and similar commands, intricate shapes and " +"pictures can easily be drawn." +msgstr "" + +msgid "" +"The :mod:`turtle` module is an extended reimplementation of the same-named " +"module from the Python standard distribution up to version Python 2.5." +msgstr "" + +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 " +"programmer to use all the commands, classes and methods interactively when " +"using the module from within IDLE run with the ``-n`` switch." +msgstr "" + +msgid "" +"The turtle module provides turtle graphics primitives, in both object-" +"oriented and procedure-oriented ways. Because it uses :mod:`tkinter` for " +"the underlying graphics, it needs a version of Python installed with Tk " +"support." +msgstr "" + +msgid "The object-oriented interface uses essentially two+two classes:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"All methods of TurtleScreen/Screen also exist as functions, i.e. as part of " +"the procedure-oriented interface." +msgstr "" + +msgid "" +":class:`RawTurtle` (alias: :class:`RawPen`) defines Turtle objects which " +"draw on a :class:`TurtleScreen`. Its constructor needs a Canvas, " +"ScrolledCanvas or TurtleScreen as argument, so the RawTurtle objects know " +"where to draw." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"All methods of RawTurtle/Turtle also exist as functions, i.e. part of the " +"procedure-oriented interface." +msgstr "" + +msgid "" +"The procedural interface provides functions which are derived from the " +"methods of the classes :class:`Screen` and :class:`Turtle`. They have the " +"same names as the corresponding methods. A screen object is automatically " +"created whenever a function derived from a Screen method is called. An " +"(unnamed) turtle object is automatically created whenever any of the " +"functions derived from a Turtle method is called." +msgstr "" + +msgid "" +"To use multiple turtles on a screen one has to use the object-oriented " +"interface." +msgstr "" + +msgid "" +"In the following documentation the argument list for functions is given. " +"Methods, of course, have the additional first argument *self* which is " +"omitted here." +msgstr "" +"W poniższej dokumentacji podano listę argumentów dla funkcji. Metody, " +"oczywiście, mają dodatkowy pierwszy argument *self*, który jest tutaj " +"pominięty." + +msgid "Overview of available Turtle and Screen methods" +msgstr "" + +msgid "Turtle methods" +msgstr "Metody żółwia" + +msgid "Turtle motion" +msgstr "Ruch żółwia" + +msgid "Move and draw" +msgstr "Przesuwanie i rysowanie" + +msgid ":func:`forward` | :func:`fd`" +msgstr ":func:`forward` | :func:`fd`" + +msgid ":func:`backward` | :func:`bk` | :func:`back`" +msgstr ":func:`backward` | :func:`bk` | :func:`back`" + +msgid ":func:`right` | :func:`rt`" +msgstr ":func:`right` | :func:`rt`" + +msgid ":func:`left` | :func:`lt`" +msgstr ":func:`left` | :func:`lt`" + +msgid ":func:`goto` | :func:`setpos` | :func:`setposition`" +msgstr ":func:`goto` | :func:`setpos` | :func:`setposition`" + +msgid ":func:`setx`" +msgstr ":func:`setx`" + +msgid ":func:`sety`" +msgstr ":func:`sety`" + +msgid ":func:`setheading` | :func:`seth`" +msgstr ":func:`setheading` | :func:`seth`" + +msgid ":func:`home`" +msgstr ":func:`home`" + +msgid ":func:`circle`" +msgstr ":func:`circle`" + +msgid ":func:`dot`" +msgstr ":func:`dot`" + +msgid ":func:`stamp`" +msgstr ":func:`stamp`" + +msgid ":func:`clearstamp`" +msgstr ":func:`clearstamp`" + +msgid ":func:`clearstamps`" +msgstr ":func:`clearstamps`" + +msgid ":func:`undo`" +msgstr ":func:`undo`" + +msgid ":func:`speed`" +msgstr ":func:`speed`" + +msgid "Tell Turtle's state" +msgstr "Pobieranie stanu żółwia" + +msgid ":func:`position` | :func:`pos`" +msgstr ":func:`position` | :func:`pos`" + +msgid ":func:`towards`" +msgstr ":func:`towards`" + +msgid ":func:`xcor`" +msgstr ":func:`xcor`" + +msgid ":func:`ycor`" +msgstr ":func:`ycor`" + +msgid ":func:`heading`" +msgstr ":func:`heading`" + +msgid ":func:`distance`" +msgstr ":func:`distance`" + +msgid "Setting and measurement" +msgstr "Ustawienia i pomiary" + +msgid ":func:`degrees`" +msgstr ":func:`degrees`" + +msgid ":func:`radians`" +msgstr ":func:`radians`" + +msgid "Pen control" +msgstr "Kontrola pióra" + +msgid "Drawing state" +msgstr "Stan rysowania" + +msgid ":func:`pendown` | :func:`pd` | :func:`down`" +msgstr ":func:`pendown` | :func:`pd` | :func:`down`" + +msgid ":func:`penup` | :func:`pu` | :func:`up`" +msgstr ":func:`penup` | :func:`pu` | :func:`up`" + +msgid ":func:`pensize` | :func:`width`" +msgstr ":func:`pensize` | :func:`width`" + +msgid ":func:`pen`" +msgstr ":func:`pen`" + +msgid ":func:`isdown`" +msgstr ":func:`isdown`" + +msgid "Color control" +msgstr "Kontrola koloru" + +msgid ":func:`color`" +msgstr ":func:`color`" + +msgid ":func:`pencolor`" +msgstr ":func:`pencolor`" + +msgid ":func:`fillcolor`" +msgstr ":func:`fillcolor`" + +msgid "Filling" +msgstr "Wypełnienie" + +msgid ":func:`filling`" +msgstr ":func:`filling`" + +msgid ":func:`begin_fill`" +msgstr ":func:`begin_fill`" + +msgid ":func:`end_fill`" +msgstr ":func:`end_fill`" + +msgid "More drawing control" +msgstr "Więcej kontroli rysowania" + +msgid ":func:`reset`" +msgstr ":func:`reset`" + +msgid ":func:`clear`" +msgstr ":func:`clear`" + +msgid ":func:`write`" +msgstr ":func:`write`" + +msgid "Turtle state" +msgstr "Stan żółwia" + +msgid "Visibility" +msgstr "Widoczność" + +msgid ":func:`showturtle` | :func:`st`" +msgstr ":func:`showturtle` | :func:`st`" + +msgid ":func:`hideturtle` | :func:`ht`" +msgstr ":func:`hideturtle` | :func:`ht`" + +msgid ":func:`isvisible`" +msgstr ":func:`isvisible`" + +msgid "Appearance" +msgstr "Wygląd" + +msgid ":func:`shape`" +msgstr ":func:`shape`" + +msgid ":func:`resizemode`" +msgstr ":func:`resizemode`" + +msgid ":func:`shapesize` | :func:`turtlesize`" +msgstr ":func:`shapesize` | :func:`turtlesize`" + +msgid ":func:`shearfactor`" +msgstr ":func:`shearfactor`" + +msgid ":func:`settiltangle`" +msgstr ":func:`settiltangle`" + +msgid ":func:`tiltangle`" +msgstr ":func:`tiltangle`" + +msgid ":func:`tilt`" +msgstr ":func:`tilt`" + +msgid ":func:`shapetransform`" +msgstr ":func:`shapetransform`" + +msgid ":func:`get_shapepoly`" +msgstr ":func:`get_shapepoly`" + +msgid "Using events" +msgstr "Korzystanie ze zdarzeń" + +msgid ":func:`onclick`" +msgstr ":func:`onclick`" + +msgid ":func:`onrelease`" +msgstr ":func:`onrelease`" + +msgid ":func:`ondrag`" +msgstr ":func:`ondrag`" + +msgid "Special Turtle methods" +msgstr "Specjalne metody żółwi" + +msgid ":func:`begin_poly`" +msgstr ":func:`begin_poly`" + +msgid ":func:`end_poly`" +msgstr ":func:`end_poly`" + +msgid ":func:`get_poly`" +msgstr ":func:`get_poly`" + +msgid ":func:`clone`" +msgstr ":func:`clone`" + +msgid ":func:`getturtle` | :func:`getpen`" +msgstr ":func:`getturtle` | :func:`getpen`" + +msgid ":func:`getscreen`" +msgstr ":func:`getscreen`" + +msgid ":func:`setundobuffer`" +msgstr ":func:`setundobuffer`" + +msgid ":func:`undobufferentries`" +msgstr ":func:`undobufferentries`" + +msgid "Methods of TurtleScreen/Screen" +msgstr "Metody TurtleScreen/Screen" + +msgid "Window control" +msgstr "Kontrola okna" + +msgid ":func:`bgcolor`" +msgstr ":func:`bgcolor`" + +msgid ":func:`bgpic`" +msgstr ":func:`bgpic`" + +msgid ":func:`clearscreen`" +msgstr ":func:`clearscreen`" + +msgid ":func:`resetscreen`" +msgstr ":func:`resetscreen`" + +msgid ":func:`screensize`" +msgstr ":func:`screensize`" + +msgid ":func:`setworldcoordinates`" +msgstr ":func:`setworldcoordinates`" + +msgid "Animation control" +msgstr "Kontrola animacji" + +msgid ":func:`delay`" +msgstr ":func:`delay`" + +msgid ":func:`tracer`" +msgstr ":func:`tracer`" + +msgid ":func:`update`" +msgstr ":func:`update`" + +msgid "Using screen events" +msgstr "Korzystanie ze zdarzeń ekranowych" + +msgid ":func:`listen`" +msgstr ":func:`listen`" + +msgid ":func:`onkey` | :func:`onkeyrelease`" +msgstr ":func:`onkey` | :func:`onkeyrelease`" + +msgid ":func:`onkeypress`" +msgstr ":func:`onkeypress`" + +msgid ":func:`onclick` | :func:`onscreenclick`" +msgstr ":func:`onclick` | :func:`onscreenclick`" + +msgid ":func:`ontimer`" +msgstr ":func:`ontimer`" + +msgid ":func:`mainloop` | :func:`done`" +msgstr ":func:`mainloop` | :func:`done`" + +msgid "Settings and special methods" +msgstr "Ustawienia i metody specjalne" + +msgid ":func:`mode`" +msgstr ":func:`mode`" + +msgid ":func:`colormode`" +msgstr ":func:`colormode`" + +msgid ":func:`getcanvas`" +msgstr ":func:`getcanvas`" + +msgid ":func:`getshapes`" +msgstr ":func:`getshapes`" + +msgid ":func:`register_shape` | :func:`addshape`" +msgstr ":func:`register_shape` | :func:`addshape`" + +msgid ":func:`turtles`" +msgstr ":func:`turtles`" + +msgid ":func:`window_height`" +msgstr ":func:`window_height`" + +msgid ":func:`window_width`" +msgstr ":func:`window_width`" + +msgid "Input methods" +msgstr "Metody wprowadzania danych" + +msgid ":func:`textinput`" +msgstr ":func:`textinput`" + +msgid ":func:`numinput`" +msgstr ":func:`numinput`" + +msgid "Methods specific to Screen" +msgstr "Metody specyficzne dla klasy Screen" + +msgid ":func:`bye`" +msgstr ":func:`bye`" + +msgid ":func:`exitonclick`" +msgstr ":func:`exitonclick`" + +msgid ":func:`setup`" +msgstr ":func:`setup`" + +msgid ":func:`title`" +msgstr ":func:`title`" + +msgid "Methods of RawTurtle/Turtle and corresponding functions" +msgstr "Metody RawTurtle/Turtle i odpowiadające im funkcje" + +msgid "" +"Most of the examples in this section refer to a Turtle instance called " +"``turtle``." +msgstr "" +"Większość przykładów w tej sekcji odnosi się do instancji klasy Turtle o " +"nazwie ``turtle``." + +msgid "Parameters" +msgstr "parametry" + +msgid "a number (integer or float)" +msgstr "liczba (całkowita lub zmiennoprzecinkowa)" + +msgid "" +"Move the turtle forward by the specified *distance*, in the direction the " +"turtle is headed." +msgstr "" +"Przesuwa żółwia do przodu o określony *dystans*, w kierunku, w którym żółw " +"jest skierowany." + +msgid "a number" +msgstr "liczba" + +msgid "" +"Move the turtle backward by *distance*, opposite to the direction the turtle " +"is headed. Do not change the turtle's heading." +msgstr "" +"Przesuwa żółwia do tyłu o *dystans*, w kierunku przeciwnym do kierunku, w " +"którym żółw jest skierowany. Nie zmienia kierunku żółwia." + +msgid "" +"Turn turtle right by *angle* units. (Units are by default degrees, but can " +"be set via the :func:`degrees` and :func:`radians` functions.) Angle " +"orientation depends on the turtle mode, see :func:`mode`." +msgstr "" +"Obraca żółwia w prawo o jednostki *kąta*. (Jednostki to domyślnie stopnie, " +"ale można je ustawić za pomocą funkcji :func:`degrees` i :func:`radians`.) " +"Orientacja kąta zależy od trybu żółwia, patrz :func:`mode`." + +msgid "" +"Turn turtle left by *angle* units. (Units are by default degrees, but can " +"be set via the :func:`degrees` and :func:`radians` functions.) Angle " +"orientation depends on the turtle mode, see :func:`mode`." +msgstr "" +"Obraca żółwia w lewo o jednostki *kąta*. (Jednostki to domyślnie stopnie, " +"ale można je ustawić za pomocą funkcji :func:`degrees` i :func:`radians`.) " +"Orientacja kąta zależy od trybu żółwia, patrz :func:`mode`." + +msgid "a number or a pair/vector of numbers" +msgstr "liczba lub para/wektor liczb" + +msgid "a number or ``None``" +msgstr "liczba lub ``None``" + +msgid "" +"If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` " +"(e.g. as returned by :func:`pos`)." +msgstr "" +"Jeśli *y* to ``None``, *x* musi być parą współrzędnych lub " +"obiektem :class:`Vec2D` (np. zwróconym przez :func:`pos`)." + +msgid "" +"Move turtle to an absolute position. If the pen is down, draw line. Do not " +"change the turtle's orientation." +msgstr "" +"Przesuwa żółwia do pozycji bezwzględnej. Jeśli pióro jest opuszczone, rysuje " +"linię. Nie zmienia orientacji żółwia." + +msgid "" +"Set the turtle's first coordinate to *x*, leave second coordinate unchanged." +msgstr "" +"Ustawia pierwszą współrzędną żółwia na *x*, drugą pozostawiając bez zmian." + +msgid "" +"Set the turtle's second coordinate to *y*, leave first coordinate unchanged." +msgstr "" +"Ustawia drugą współrzędną żółwia na *y*, pozostawiąc pierwszą współrzędną " +"bez zmian." + +msgid "" +"Set the orientation of the turtle to *to_angle*. Here are some common " +"directions in degrees:" +msgstr "" +"Ustawia orientację żółwia na *to_angle*. Oto kilka często używanych " +"kierunków w stopniach:" + +msgid "standard mode" +msgstr "tryb standardowy" + +msgid "logo mode" +msgstr "tryb logo" + +msgid "0 - east" +msgstr "0 – wschód" + +msgid "0 - north" +msgstr "0 – północ" + +msgid "90 - north" +msgstr "90 – północ" + +msgid "90 - east" +msgstr "90 – wschód" + +msgid "180 - west" +msgstr "180 – zachód" + +msgid "180 - south" +msgstr "180 – południe" + +msgid "270 - south" +msgstr "270 – południe" + +msgid "270 - west" +msgstr "270 – zachód" + +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`)." +msgstr "" +"Przesuwa żółwia do punktu początkowego – współrzędne (0,0) – i ustawia jego " +"kurs na orientację początkową (która zależy od trybu, patrz :func:`mode`)." + +msgid "a number (or ``None``)" +msgstr "liczba (lub ``None``)" + +msgid "an integer (or ``None``)" +msgstr "liczba całkowita (lub ``None``)" + +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 " +"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, " +"otherwise in clockwise direction. Finally the direction of the turtle is " +"changed by the amount of *extent*." +msgstr "" +"Rysuje okrąg o podanym *promieniu*. Środek znajduje się w odległości " +"*radius* na lewo od żółwia; *extent* – kąt – określa, która część okręgu " +"zostanie narysowana. Jeśli *extent* nie jest podany, rysowany jest cały " +"okrąg. Jeśli *extent* nie jest pełnym okręgiem, jednym z punktów końcowych " +"łuku jest bieżąca pozycja pióra. Rysuje łuk w kierunku przeciwnym do ruchu " +"wskazówek zegara, jeśli *radius* jest dodatni, w przeciwnym razie w kierunku " +"zgodnym z ruchem wskazówek zegara. Kierunek żółwia jest zmieniany o wartość " +"*extent*." + +msgid "" +"As the circle is approximated by an inscribed regular polygon, *steps* " +"determines the number of steps to use. If not given, it will be calculated " +"automatically. May be used to draw regular polygons." +msgstr "" +"Ponieważ okrąg jest przybliżany przez wpisany wielokąt foremny, *steps* " +"określa liczbę kroków do użycia. Jeśli nie zostanie podana, zostanie " +"obliczona automatycznie. Może być używana do rysowania wielokątów foremnych." + +msgid "an integer >= 1 (if given)" +msgstr "liczba całkowita >= 1 (jeśli podano)" + +msgid "a colorstring or a numeric color tuple" +msgstr "colorstring lub numeryczna krotka koloru" + +msgid "" +"Draw a circular dot with diameter *size*, using *color*. If *size* is not " +"given, the maximum of pensize+4 and 2*pensize is used." +msgstr "" +"Rysuje okrągłą kropkę o średnicy *size*, używając koloru *color*. Jeśli nie " +"podano *size*, używana jest maksymalna wartość z pensize+4 i 2*pensize." + +msgid "" +"Stamp a copy of the turtle shape onto the canvas at the current turtle " +"position. Return a stamp_id for that stamp, which can be used to delete it " +"by calling ``clearstamp(stamp_id)``." +msgstr "" +"Stempluje kopię kształtu żółwia na płótnie w bieżącej pozycji żółwia. Zwraca " +"stamp_id dla tego stempla, który może być użyty do usunięcia go przez " +"wywołanie ``clearstamp(stamp_id)``." + +msgid "an integer, must be return value of previous :func:`stamp` call" +msgstr "" +"liczba całkowita, musi być wartością zwróconą przez wywołanie " +"poprzedniego :func:`stamp`" + +msgid "Delete stamp with given *stampid*." +msgstr "Usunięcie stempla z podanym *stampid*." + +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." +msgstr "" +"Usuwa wszystkie lub pierwsze/ostatnie *n* stempli żółwia. Jeśli *n* to " +"``None``, usuwa wszystkie stemple, jeśli *n* > 0 usuwa pierwsze *n* stempli, " +"inaczej jeśli *n* < 0 usuwa ostatnie *n* stempli." + +msgid "" +"Undo (repeatedly) the last turtle action(s). Number of available undo " +"actions is determined by the size of the undobuffer." +msgstr "" +"Cofa (wielokrotnie) ostatnią akcję (akcje) żółwia. Liczba dostępnych cofnięć " +"zależy od rozmiaru bufora cofania." + +msgid "an integer in the range 0..10 or a speedstring (see below)" +msgstr "liczba całkowita w zakresie 0..10 lub nazwa prędkości (patrz poniżej)" + +msgid "" +"Set the turtle's speed to an integer value in the range 0..10. If no " +"argument is given, return current speed." +msgstr "" +"Ustawia prędkość żółwia na wartość liczby całkowitej w zakresie 0..10. Jeśli " +"nie podano argumentu, zwraca aktualną prędkość." + +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:" +msgstr "" +"Jeśli wartość wejściowa jest większa niż 10 lub mniejsza niż 0,5, prędkość " +"jest ustawiana na 0. Nazwy prędkości są mapowane na wartości prędkości w " +"następujący sposób:" + +msgid "\"fastest\": 0" +msgstr "\"fastest\": 0" + +msgid "\"fast\": 10" +msgstr "\"fast\": 10" + +msgid "\"normal\": 6" +msgstr "\"normal\": 6" + +msgid "\"slow\": 3" +msgstr "\"slow\": 3" + +msgid "\"slowest\": 1" +msgstr "\"slowest\": 1" + +msgid "" +"Speeds from 1 to 10 enforce increasingly faster animation of line drawing " +"and turtle turning." +msgstr "" +"Prędkości od 1 do 10 wymuszają coraz szybszą animację rysowania linii i " +"obracania żółwia." + +msgid "" +"Attention: *speed* = 0 means that *no* animation takes place. forward/back " +"makes turtle jump and likewise left/right make the turtle turn instantly." +msgstr "" +"Uwaga: *speed* = 0 oznacza, że *żadna* animacja nie ma miejsca. forward/back " +"sprawia, że żółw skacze i podobnie left/right sprawia, że żółw natychmiast " +"się obraca." + +msgid "" +"Return the turtle's current location (x,y) (as a :class:`Vec2D` vector)." +msgstr "Zwraca bieżącą lokalizację żółwia (x,y) (jako wektor :class:`Vec2D`)." + +msgid "a number or a pair/vector of numbers or a turtle instance" +msgstr "liczba lub para/wektor liczb lub instancja żółwia" + +msgid "a number if *x* is a number, else ``None``" +msgstr "liczba, jeśli *x* jest liczbą, w przeciwnym razie ``None``" + +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 " +"start orientation which depends on the mode - \"standard\"/\"world\" or " +"\"logo\"." +msgstr "" +"Zwraca kąt między linią od pozycji żółwia do pozycji określonej przez (x,y), " +"wektor lub drugiego żółwia. Zależy to od orientacji początkowej żółwia, " +"która zależy od trybu – „standard”/„world” lub „logo”." + +msgid "Return the turtle's x coordinate." +msgstr "Zwraca współrzędną x żółwia." + +msgid "Return the turtle's y coordinate." +msgstr "Zwraca współrzędną y żółwia." + +msgid "" +"Return the turtle's current heading (value depends on the turtle mode, " +"see :func:`mode`)." +msgstr "" +"Zwraca aktualny kierunek żółwia (wartość zależy od trybu żółwia, " +"patrz :func:`mode`)." + +msgid "" +"Return the distance from the turtle to (x,y), the given vector, or the given " +"other turtle, in turtle step units." +msgstr "" +"Zwraca odległość od żółwia do (x,y), podanego wektora lub podanego innego " +"żółwia, w jednostkach kroku żółwia." + +msgid "Settings for measurement" +msgstr "Ustawienia pomiarowe" + +msgid "" +"Set angle measurement units, i.e. set number of \"degrees\" for a full " +"circle. Default value is 360 degrees." +msgstr "" +"Ustawia jednostki pomiaru kąta, tj. liczbę „stopni” dla pełnego okręgu. " +"Domyślna wartość to 360 stopni." + +msgid "" +"Set the angle measurement units to radians. Equivalent to " +"``degrees(2*math.pi)``." +msgstr "" +"Ustawia jednostki miary kąta na radiany. Odpowiednik ``degrees(2*math.pi)``." + +msgid "Pull the pen down -- drawing when moving." +msgstr "Opuszcza pióro w dół – rysowanie podczas ruchu." + +msgid "Pull the pen up -- no drawing when moving." +msgstr "Podnosi pióro do góry – nierysowanie podczas ruchu." + +msgid "a positive number" +msgstr "liczba dodatnia" + +msgid "" +"Set the line thickness to *width* or return it. If resizemode is set to " +"\"auto\" and turtleshape is a polygon, that polygon is drawn with the same " +"line thickness. If no argument is given, the current pensize is returned." +msgstr "" +"Ustawia grubość linii na *width* lub zwraca ją. Jeśli resizemode jest " +"ustawiony na „auto”, a turtleshape jest wielokątem, wielokąt ten jest " +"rysowany z taką samą grubością linii. Jeśli nie podano argumentu, zwracany " +"jest bieżący rozmiar pióra." + +msgid "a dictionary with some or all of the below listed keys" +msgstr "słownik z niektórymi lub wszystkimi z poniższych kluczy" + +msgid "one or more keyword-arguments with the below listed keys as keywords" +msgstr "" +"jedno lub więcej argumentów nazwanych z poniższymi kluczami jako nazwami" + +msgid "" +"Return or set the pen's attributes in a \"pen-dictionary\" with the " +"following key/value pairs:" +msgstr "" +"Zwraca lub ustawia atrybuty pióra w „pióro-słowniku” z następującymi parami " +"klucz/wartość:" + +msgid "\"shown\": True/False" +msgstr "„shown”: True/False" + +msgid "\"pendown\": True/False" +msgstr "„pendown”: True/False" + +msgid "\"pencolor\": color-string or color-tuple" +msgstr "„pencolor”: nazwa koloru (color-string) lub kolor-krotka" + +msgid "\"fillcolor\": color-string or color-tuple" +msgstr "„fillcolor”: nazwa koloru (color-string) lub kolor-krotka" + +msgid "\"pensize\": positive number" +msgstr "„pensize”: liczba dodatnia" + +msgid "\"speed\": number in range 0..10" +msgstr "„speed”: liczba z przedziału 0..10" + +msgid "\"resizemode\": \"auto\" or \"user\" or \"noresize\"" +msgstr "„resizemode”: „auto” lub „user” lub „noresize”" + +msgid "\"stretchfactor\": (positive number, positive number)" +msgstr "„stretchfactor”: (liczba dodatnia, liczba dodatnia)" + +msgid "\"outline\": positive number" +msgstr "„outline”: liczba dodatnia" + +msgid "\"tilt\": number" +msgstr "„tilt”: liczba" + +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 " +"can be provided as keyword-arguments. This can be used to set several pen " +"attributes in one statement." +msgstr "" +"Ten słownik może być użyty jako argument dla kolejnego wywołania :func:`pen` " +"w celu przywrócenia poprzedniego stanu pióra. Co więcej, jeden lub więcej z " +"tych atrybutów może być przekazany jako argument nazwany. Można to " +"wykorzystać do ustawienia kilku atrybutów pióra w jednej instrukcji." + +msgid "Return ``True`` if pen is down, ``False`` if it's up." +msgstr "" +"Zwraca ``True`` jeśli pióro jest opuszczone, ``False`` jeśli jest " +"podniesione." + +msgid "Return or set the pencolor." +msgstr "Zwraca lub ustawia kolor pióra." + +msgid "Four input formats are allowed:" +msgstr "Dozwolone są cztery formaty wejściowe:" + +msgid "``pencolor()``" +msgstr "``pencolor()``" + +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." +msgstr "" +"Zwraca bieżący kolor pióra jako ciąg specyfikacji koloru lub jako krotkę " +"(patrz przykład). Może być użyty jako dane wejściowe do innego wywołania " +"color/pencolor/fillcolor." + +msgid "``pencolor(colorstring)``" +msgstr "``pencolor(colorstring)``" + +msgid "" +"Set pencolor to *colorstring*, which is a Tk color specification string, " +"such as ``\"red\"``, ``\"yellow\"``, or ``\"#33cc8c\"``." +msgstr "" +"Ustawia kolor pióra na *colorstring*, który jest ciągiem specyfikacji koloru " +"Tk, takim jak ``\"red\"``, ``\"yellow\"``, lub ``\"#33cc8c\"``." + +msgid "``pencolor((r, g, b))``" +msgstr "``pencolor((r, g, b))``" + +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 " +"colormode is either 1.0 or 255 (see :func:`colormode`)." +msgstr "" +"Ustawia kolor pióra na kolor RGB reprezentowany przez krotkę *r*, *g* i *b*. " +"Każda z *r*, *g* i *b* musi należeć do zakresu 0..colormode, gdzie colormode " +"to 1.0 lub 255 (patrz :func:`colormode`)." + +msgid "``pencolor(r, g, b)``" +msgstr "``pencolor(r, g, b)``" + +msgid "" +"Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of " +"*r*, *g*, and *b* must be in the range 0..colormode." +msgstr "" +"Ustawia kolor pióra na kolor RGB reprezentowany przez *r*, *g* i *b*. Każda " +"z *r*, *g* i *b* musi należeć do zakresu 0..colormode." + +msgid "" +"If turtleshape is a polygon, the outline of that polygon is drawn with the " +"newly set pencolor." +msgstr "" +"Jeśli turtleshape jest wielokątem, kontur tego wielokąta jest rysowany przy " +"użyciu nowo ustawionego koloru pióra." + +msgid "Return or set the fillcolor." +msgstr "Zwraca lub ustawia kolor wypełnienia." + +msgid "``fillcolor()``" +msgstr "``fillcolor()``" + +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." +msgstr "" +"Zwraca bieżący kolor wypełnienia jako ciąg specyfikacji koloru, ewentualnie " +"w formacie krotki (patrz przykład). Może być użyty jako dane wejściowe do " +"innego wywołania color/pencolor/fillcolor." + +msgid "``fillcolor(colorstring)``" +msgstr "``fillcolor(colorstring)``" + +msgid "" +"Set fillcolor to *colorstring*, which is a Tk color specification string, " +"such as ``\"red\"``, ``\"yellow\"``, or ``\"#33cc8c\"``." +msgstr "" +"Ustawia kolor wypełnienia na *colorstring*, który jest ciągiem specyfikacji " +"koloru Tk, takim jak ``\"red\"``, ``\"yellow\"``, lub ``\"#33cc8c\"``." + +msgid "``fillcolor((r, g, b))``" +msgstr "``fillcolor((r, g, b))``" + +msgid "" +"Set fillcolor 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 "" +"Ustawia kolor wypełnienia na kolor RGB reprezentowany przez krotkę *r*, *g* " +"i *b*. Każdy z *r*, *g* i *b* musi należeć do zakresu 0..colormode, gdzie " +"colormode to 1.0 lub 255 (patrz :func:`colormode`)." + +msgid "``fillcolor(r, g, b)``" +msgstr "``fillcolor(r, g, b)``" + +msgid "" +"Set fillcolor to the RGB color represented by *r*, *g*, and *b*. Each of " +"*r*, *g*, and *b* must be in the range 0..colormode." +msgstr "" +"Ustawia kolor wypełnienia na kolor RGB reprezentowany przez *r*, *g* i *b*. " +"Każde z *r*, *g* i *b* musi należeć do zakresu 0..colormode." + +msgid "" +"If turtleshape is a polygon, the interior of that polygon is drawn with the " +"newly set fillcolor." +msgstr "" +"Jeśli turtleshape jest wielokątem, wnętrze tego wielokąta jest rysowane z " +"nowo ustawionym kolorem wypełnienia." + +msgid "Return or set pencolor and fillcolor." +msgstr "Zwraca lub ustawia kolor pióra i wypełnienia." + +msgid "" +"Several input formats are allowed. They use 0 to 3 arguments as follows:" +msgstr "" +"Dozwolonych jest kilka formatów wejściowych. Używają one od 0 do 3 " +"argumentów w następujący sposób:" + +msgid "``color()``" +msgstr "``color()``" + +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`." +msgstr "" +"Zwraca bieżący kolor pióra i bieżący kolor wypełnienia jako parę ciągów " +"specyfikacji kolorów lub krotek zwracanych przez :func:`pencolor` " +"i :func:`fillcolor`." + +msgid "``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)``" +msgstr "``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)``" + +msgid "" +"Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the " +"given value." +msgstr "" +"Dane wejściowe jak w :func:`pencolor`, ustawiają zarówno kolor wypełnienia, " +"jak i kolor pióra na podaną wartość." + +msgid "" +"``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``" +msgstr "" +"``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``" + +msgid "" +"Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)`` and " +"analogously if the other input format is used." +msgstr "" +"Odpowiednik dla ``pencolor(colorstring1)`` i ``fillcolor(colorstring2)`` " +"oraz analogicznie, jeśli używany jest inny format wejścia." + +msgid "" +"If turtleshape is a polygon, outline and interior of that polygon is drawn " +"with the newly set colors." +msgstr "" +"Jeśli turtleshape jest wielokątem, kontur i wnętrze tego wielokąta są " +"rysowane z nowo ustawionymi kolorami." + +msgid "See also: Screen method :func:`colormode`." +msgstr "Zobacz także: Metoda klasy Screen :func:`colormode`." + +msgid "Return fillstate (``True`` if filling, ``False`` else)." +msgstr "" +"Zwraca fillstate (``True`` jeśli wypełnienie, ``False`` w przeciwnym razie)." + +msgid "To be called just before drawing a shape to be filled." +msgstr "Do wywołania tuż przed rysowaniem kształtu do wypełnienia." + +msgid "Fill the shape drawn after the last call to :func:`begin_fill`." +msgstr "Wypełnia kształt narysowany po ostatnim wywołaniu :func:`begin_fill`." + +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 "" +"To, czy obszary nakładania się przecinających się wielokątów lub wielu " +"kształtów są wypełnione, zależy od grafiki systemu operacyjnego, typu " +"nakładania się i liczby nakładających się obszarów. Na przykład żółwiowa " +"gwiazda na górze rozdziału może być cała żółta lub mieć kilka białych " +"obszarów." + +msgid "" +"Delete the turtle's drawings from the screen, re-center the turtle and set " +"variables to the default values." +msgstr "" +"Usuń rysunki żółwia z ekranu, ponownie wyśrodkuj żółwia i ustaw zmienne na " +"wartości domyślne." + +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 "" +"Usuwa rysunki żółwia z ekranu. Nie rusza żółwia. Stan i pozycja żółwia, a " +"także rysunki innych żółwi, nie zostaną zmienione." + +msgid "object to be written to the TurtleScreen" +msgstr "obiekt, który ma zostać zapisany na TurtleScreen" + +msgid "True/False" +msgstr "True/False" + +msgid "one of the strings \"left\", \"center\" or right\"" +msgstr "jedna z wartości „left”, „center” lub „right”" + +msgid "a triple (fontname, fontsize, fonttype)" +msgstr "trójka wartości (fontname, fontsize, fonttype)" + +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``." +msgstr "" +"Pisze tekst – reprezentację obiektu *arg* – w bieżącej pozycji żółwia " +"zgodnie z *align* (\"left\", \"center\" lub \"right\") i z podaną czcionką. " +"Jeśli *move* to ``True``, pióro jest przesuwane do prawego dolnego rogu " +"tekstu. Domyślnie *move* ma wartość ``False``." + +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 "" +"Czyni żółwia niewidocznym. Dobrym pomysłem jest zrobienie tego w trakcie " +"wykonywania złożonego rysunku, ponieważ ukrycie żółwia znacznie przyspiesza " +"rysowanie." + +msgid "Make the turtle visible." +msgstr "Sprawia, że żółw jest widoczny." + +msgid "Return ``True`` if the Turtle is shown, ``False`` if it's hidden." +msgstr "Zwraca ``True`` jeśli żółw jest widoczny, ``False`` jeśli jest ukryty." + +msgid "a string which is a valid shapename" +msgstr "ciąg znaków, który jest prawidłową nazwą kształtu" + +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`." +msgstr "" +"Ustawia kształt żółwia na kształt o podanej nazwie *name* lub, jeśli nazwa " +"nie została podana, zwraca nazwę bieżącego kształtu. Kształt o nazwie *name* " +"musi istnieć w słowniku kształtów TurtleScreen. Początkowo dostępne są " +"następujące kształty wielokątów: \"arrow\", \"turtle\", \"circle\", " +"\"square\", \"triangle\", \"classic\". Aby dowiedzieć się, jak radzić sobie " +"z kształtami, zobacz metodę Screen :func:`register_shape`." + +msgid "one of the strings \"auto\", \"user\", \"noresize\"" +msgstr "jeden z ciągów znaków „auto”, „user”, „noresize”" + +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:" +msgstr "" +"Ustawia tryb zmiany rozmiaru na jedną z wartości: „auto”, „user”, " +"„noresize”. Jeśli nie podano *rmode*, zwraca bieżący tryb zmiany rozmiaru. " +"Różne tryby zmiany rozmiaru mają następujące skutki:" + +msgid "" +"\"auto\": adapts the appearance of the turtle corresponding to the value of " +"pensize." +msgstr "\"auto\": dostosowuje wygląd żółwia do wartości rozmiaru pióra." + +msgid "" +"\"user\": adapts the appearance of the turtle according to the values of " +"stretchfactor and outlinewidth (outline), which are set by :func:`shapesize`." +msgstr "" +"\"user\": dostosowuje wygląd żółwia zgodnie z wartościami stretchfactor i " +"outlinewidth (outline), które są ustawiane przez :func:`shapesize`." + +msgid "\"noresize\": no adaption of the turtle's appearance takes place." +msgstr "\"noresize\": nie następuje adaptacja wyglądu żółwia." + +msgid "" +"``resizemode(\"user\")`` is called by :func:`shapesize` when used with " +"arguments." +msgstr "" +"``resizemode(\"user\")`` jest wywoływana przez :func:`shapesize`, gdy jest " +"użyte z argumentami." + +msgid "positive number" +msgstr "liczba dodatnia" + +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 " +"turtle will be displayed stretched according to its stretchfactors: " +"*stretch_wid* is stretchfactor perpendicular to its orientation, " +"*stretch_len* is stretchfactor in direction of its orientation, *outline* " +"determines the width of the shape's outline." +msgstr "" +"Zwraca lub ustawia współczynniki x/y rozciągnięcia i/lub konturu pióra. " +"Ustawia tryb zmiany rozmiaru na \"user\". Wtedy i tylko wtedy, gdy " +"resizemode jest ustawione na \"user\", żółw będzie wyświetlany rozciągnięty " +"zgodnie ze swoimi współczynnikami rozciągnięcia: *stretch_wid* to " +"współczynnik rozciągnięcia prostopadły do jego orientacji, *stretch_len* to " +"współczynnik rozciągnięcia w kierunku jego orientacji, *outline* określa " +"szerokość obrysu kształtu." + +msgid "number (optional)" +msgstr "liczba (opcjonalna)" + +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." +msgstr "" +"Ustawia lub zwraca bieżący współczynnik odchylenia. Odchyla kształt żółwia " +"zgodnie z podanym współczynnikiem, który jest tangensem kąta odchylenia. Nie " +"*zmienia* kursu żółwia (kierunku ruchu). Jeśli nie podano współczynnika: " +"zwraca aktualny współczynnik odchylenia, tj. tangens kąta odchylenia, o " +"który odchylają się linie równoległe do kierunku ruchu żółwia." + +msgid "" +"Rotate the turtleshape by *angle* from its current tilt-angle, but do *not* " +"change the turtle's heading (direction of movement)." +msgstr "" +"Obróć żółwia o *kąt* w stosunku do jego aktualnego kąta nachylenia, ale " +"*nie* zmieniaj jego kursu (kierunku ruchu)." + +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 "" + +msgid "a number (optional)" +msgstr "liczba (opcjonalna)" + +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 " +"current tilt-angle. Do *not* change the turtle's heading (direction of " +"movement). If angle is not given: return the current tilt-angle, i. e. the " +"angle between the orientation of the turtleshape and the heading of the " +"turtle (its direction of movement)." +msgstr "" +"Ustawia lub zwraca bieżący kąt nachylenia. Jeśli podano kąt, obraca żółwia " +"tak, aby wskazywał kierunek określony przez kąt, niezależnie od jego " +"aktualnego kąta nachylenia. Nie *zmienia* kierunku żółwia (kierunku ruchu). " +"Jeśli nie podano kąta: zwraca aktualny kąt nachylenia, tj. kąt między " +"orientacją kształtu żółwia a jego kursem (kierunkiem ruchu)." + +msgid "Set or return the current transformation matrix of the turtle shape." +msgstr "Ustawia lub zwraca bieżącą macierz transformacji kształtu żółwia." + +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 " +"second row t21, t22. 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 "" +"Jeśli nie podano żadnego z elementów macierzy, zwraca macierz transformacji " +"jako krotkę 4 elementów. W przeciwnym razie ustawia podane elementy i " +"przekształca kształt żółwia zgodnie z macierzą składającą się z pierwszego " +"wiersza t11, t12 i drugiego wiersza t21, t22. Wyznacznik t11 * t22 - t12 * " +"t21 nie może być równy zero, w przeciwnym razie zostanie rzucony błąd. " +"Modyfikuje stretchfactor, shearfactor i tiltangle zgodnie z podaną macierzą." + +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 "" +"Zwraca bieżący wielokąt kształtu jako krotkę par współrzędnych. Może to być " +"wykorzystane do zdefiniowania nowego kształtu lub komponentów kształtu " +"złożonego." + +msgid "" +"a function with two arguments which will be called with the coordinates of " +"the clicked point on the canvas" +msgstr "" +"funkcja z dwoma argumentami, która zostanie wywołana ze współrzędnymi " +"klikniętego punktu na płótnie" + +msgid "number of the mouse-button, defaults to 1 (left mouse button)" +msgstr "numer przycisku myszy, domyślnie 1 (lewy przycisk myszy)" + +msgid "" +"``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise " +"it will replace a former binding" +msgstr "" +"``True`` lub ``False`` -- jeśli ``True``, zostanie dodane nowe powiązanie, w " +"przeciwnym razie zastąpi poprzednie powiązanie" + +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 "" +"Wiąże *fun* ze zdarzeniami kliknięcia myszą na tym żółwiu. Jeśli *fun* to " +"``None``, istniejące powiązania są usuwane. Przykład dla anonimowego żółwia, " +"tj. sposób proceduralny:" + +msgid "" +"Bind *fun* to mouse-button-release events on this turtle. If *fun* is " +"``None``, existing bindings are removed." +msgstr "" +"Powiąż *fun* ze zdarzeniami zwolnienia przycisku myszy na tym żółwiu. Jeśli " +"*fun* to ``None``, istniejące powiązania są usuwane." + +msgid "" +"Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``, " +"existing bindings are removed." +msgstr "" +"Powiąż *fun* ze zdarzeniami ruchu myszy na tym żółwiu. Jeśli *fun* to " +"``None``, istniejące powiązania są usuwane." + +msgid "" +"Remark: Every sequence of mouse-move-events on a turtle is preceded by a " +"mouse-click event on that turtle." +msgstr "" +"Uwaga: Każda sekwencja zdarzeń ruchu myszą na żółwiu jest poprzedzona " +"zdarzeniem kliknięcia myszą na tym żółwiu." + +msgid "" +"Subsequently, clicking and dragging the Turtle will move it across the " +"screen thereby producing handdrawings (if pen is down)." +msgstr "" +"Następnie kliknięcie i przeciągnięcie żółwia spowoduje przesunięcie go po " +"ekranie, tworząc rysunki odręczne (jeśli pióro jest opuszczone)." + +msgid "" +"Start recording the vertices of a polygon. Current turtle position is first " +"vertex of polygon." +msgstr "" +"Rozpoczyna rejestrowanie wierzchołków wielokąta. Bieżąca pozycja żółwia to " +"pierwszy wierzchołek wielokąta." + +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 "" +"Zatrzymuje rejestrowanie wierzchołków wielokąta. Bieżąca pozycja żółwia to " +"ostatni wierzchołek wielokąta. Zostanie on połączony z pierwszym " +"wierzchołkiem." + +msgid "Return the last recorded polygon." +msgstr "Zwraca ostatni zarejestrowany wielokąt." + +msgid "" +"Create and return a clone of the turtle with same position, heading and " +"turtle properties." +msgstr "" +"Utwórz i zwróć klona żółwia z tą samą pozycją, kursem i właściwościami." + +msgid "" +"Return the Turtle object itself. Only reasonable use: as a function to " +"return the \"anonymous turtle\":" +msgstr "" +"Zwraca sam obiekt Turtle. Jedyne rozsądne zastosowanie: jako funkcja do " +"zwracania \"anonimowego żółwia\":" + +msgid "" +"Return the :class:`TurtleScreen` object the turtle is drawing on. " +"TurtleScreen methods can then be called for that object." +msgstr "" +"Zwraca obiekt :class:`TurtleScreen`, na którym żółw rysuje. Następnie można " +"wywoływać metody TurtleScreen na tym obiekcie." + +msgid "an integer or ``None``" +msgstr "liczba całkowita lub ``None``" + +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 " +"that can be undone by the :func:`undo` method/function. If *size* is " +"``None``, the undobuffer is disabled." +msgstr "" +"Ustawia lub wyłącza undobuffer. Jeśli *size* jest liczbą całkowitą, " +"instalowany jest pusty undobuffer o podanym rozmiarze. *size* podaje " +"maksymalną liczbę akcji żółwia, które mogą być cofnięte przez metodę/" +"funkcję :func:`undo`. Jeśli *size* to ``None``, undobuffer jest wyłączany." + +msgid "Return number of entries in the undobuffer." +msgstr "Zwraca liczba wpisów w undobuffer." + +msgid "Compound shapes" +msgstr "Kształty złożone" + +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 "" +"Aby korzystać ze złożonych kształtów żółwia, składających się z kilku " +"wielokątów o różnych kolorach, należy jawnie użyć klasy " +"pomocniczej :class:`Shape`, zgodnie z poniższym opisem:" + +msgid "Create an empty Shape object of type \"compound\"." +msgstr "Utwórz pusty obiekt Shape o typie „compound”." + +msgid "" +"Add as many components to this object as desired, using " +"the :meth:`~Shape.addcomponent` method." +msgstr "" +"Dodaj dowolną liczbę komponentów do tego obiektu, korzystając z " +"metody :meth:`~Shape.addcomponent`." + +msgid "For example:" +msgstr "Na przykład::" + +msgid "Now add the Shape to the Screen's shapelist and use it:" +msgstr "Teraz dodaj obiekt Shape do listy kształtów obiektu Screen i użyj go:" + +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 "" +"Klasa :class:`Shape` jest używana wewnętrznie przez :func:`register_shape` " +"metoda na różne sposoby. Programista aplikacji powinien używać klasy Shape " +"*tylko* podczas korzystania z kształtów złożonych, jak pokazano powyżej!" + +msgid "Methods of TurtleScreen/Screen and corresponding functions" +msgstr "Metody TurtleScreen/Screen i odpowiadające im funkcje" + +msgid "" +"Most of the examples in this section refer to a TurtleScreen instance called " +"``screen``." +msgstr "" +"Większość przykładów w tej sekcji odnosi się do instancji TurtleScreen o " +"nazwie ``screen``." + +msgid "" +"a color string or three numbers in the range 0..colormode or a 3-tuple of " +"such numbers" +msgstr "" + +msgid "Set or return background color of the TurtleScreen." +msgstr "" + +msgid "a string, name of a gif-file or ``\"nopic\"``, or ``None``" +msgstr "" + +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. ::" +msgstr "" +"Ustawia obraz tła lub zwraca nazwę bieżącego obrazu tła. Jeśli *picname* " +"jest nazwą pliku, ustawia odpowiedni obraz jako tło. Jeśli *picname* to " +"``\"nopic\"``, usuwa obraz tła, o ile istnieje. Jeśli *picname* to ``None``, " +"zwraca nazwę pliku bieżącego obrazu tła. ::" + +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 "" +"Ta metoda TurtleScreen jest dostępna jako globalna funkcja wyłącznie pod " +"nazwą ``clearscreen``. Globalna funkcja ``clear`` to inna funkcja pochodząca " +"się z metody Turtle ``clear``." + +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 "" +"Usuwa wszystkie rysunki i wszystkie żółwie z TurtleScreen. Przywraca pusty " +"ekran TurtleScreen do stanu początkowego: białe tło, brak obrazu tła, brak " +"powiązań zdarzeń oraz włączona funkcja śledzenia." + +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 "" +"Ta metoda TurtleScreen jest dostępna jako globalna funkcja wyłącznie pod " +"nazwą ``resetscreen``. Globalna funkcja ``reset`` wywodzi się z metody " +"Turtle ``reset``." + +msgid "Reset all Turtles on the Screen to their initial state." +msgstr "" +"Przywraca wszystkie obiekty Turtle na ekranie Screen do stanu początkowego." + +msgid "positive integer, new width of canvas in pixels" +msgstr "dodatnia liczba całkowita, nowa szerokość płótna w pikselach" + +msgid "positive integer, new height of canvas in pixels" +msgstr "dodatnia liczba całkowita, nowa wysokość płótna w pikselach" + +msgid "colorstring or color-tuple, new background color" +msgstr "nazwa koloru (color-string) lub kolor-krotka, nowy kolor tła" + +msgid "" +"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 "" +"Jeśli nie podano argumentów, zwraca aktualne (szerokość płótna, wysokość " +"płótna). W przeciwnym razie zmienia rozmiar płótna, na którym rysują żółwie. " +"Nie zmienia okna rysowania. Aby obejrzeć ukryte części obszaru rysowania, " +"należy użyć pasków przewijania. Za pomocą tej metody można uwidocznić te " +"części rysunku, które wcześniej znajdowały się poza obszarem płótna." + +msgid "e.g. to search for an erroneously escaped turtle ;-)" +msgstr "np. aby poszukać żółwia, który przypadkiem uciekł ;-)" + +msgid "a number, x-coordinate of lower left corner of canvas" +msgstr "liczba, współrzędna x lewego dolnego rogu płótna" + +msgid "a number, y-coordinate of lower left corner of canvas" +msgstr "liczba, współrzędna y lewego dolnego rogu płótna" + +msgid "a number, x-coordinate of upper right corner of canvas" +msgstr "liczba, współrzędna x prawego górnego rogu płótna" + +msgid "a number, y-coordinate of upper right corner of canvas" +msgstr "liczba, współrzędna y prawego górnego rogu płótna" + +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 "" +"Konfiguruje układ współrzędnych zdefiniowany przez użytkownika i w razie " +"potrzeby przełącza do trybu „world”. Powoduje to wykonanie " +"``screen.reset()``. Jeśli tryb „world” jest już aktywny, wszystkie rysunki " +"zostaną ponownie wygenerowane zgodnie z nowymi współrzędnymi." + +msgid "" +"**ATTENTION**: in user-defined coordinate systems angles may appear " +"distorted." +msgstr "" + +msgid "positive integer" +msgstr "dodatnia liczba całkowita" + +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 "" +"Ustawia lub zwraca opóźnienie rysowania w milisekundach. (Jest to w " +"przybliżeniu odstęp czasu między dwiema kolejnymi aktualizacjami obszaru " +"rysowania.) Im dłuższe opóźnienie rysowania, tym wolniejsza animacja." + +msgid "Optional argument:" +msgstr "Opcjonalny argument:" + +msgid "nonnegative integer" +msgstr "nieujemna liczba całkowita" + +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 " +"used to accelerate the drawing of complex graphics.) When called without " +"arguments, returns the currently stored value of n. Second argument sets " +"delay value (see :func:`delay`)." +msgstr "" +"Włącza/wyłącza animację żółwia oraz ustawia opóźnienie aktualizacji " +"rysunków. Jeśli podano wartość *n*, wykonywana jest tylko co n-ta regularna " +"aktualizacja ekranu. (Może być wykorzystane do przyspieszenia rysowania " +"złożonej grafiki.) Jeśli wywołane bez argumentów, zwraca aktualnie " +"przechowywaną wartość n. Drugi argument ustawia wartość opóźnienia " +"(zobacz :func:`delay`)." + +msgid "Perform a TurtleScreen update. To be used when tracer is turned off." +msgstr "" +"Wykonuje aktualizację ekranu TurtleScreen. Do użycia, gdy automatyczne " +"odświeżanie ekranu (tracer) jest wyłączone." + +msgid "See also the RawTurtle/Turtle method :func:`speed`." +msgstr "Zobacz również metodę :func:`speed` klasy RawTurtle/Turtle." + +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 " +"method." +msgstr "" +"Ustawia fokus na TurtleScreen, aby umożliwić odbieranie zdarzeń klawiatury. " +"Funkcja przyjmuje dodatkowe, nieużywane argumenty, dzięki czemu " +"funkcję :func:`listen`można przekazać do metody onclick." + +msgid "a function with no arguments or ``None``" +msgstr "funkcja bez argumentów lub ``None``" + +msgid "a string: key (e.g. \"a\") or key-symbol (e.g. \"space\")" +msgstr "ciąg znaków: klawisz (np. \"a\") lub symbol klawisza (np. \"space\")" + +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 "" +"Wiąże funkcję *fun* ze zdarzeniem zwolnienia klawisza. Jeśli *fun* ma " +"wartość ``None``, metoda usuwa istniejące powiązania zdarzeń. Uwaga: aby " +"można było rejestrować zdarzenia klawiatury, TurtleScreen musi mieć fokus. " +"(Zobacz metodę :func:`listen`.)" + +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 "" +"Wiąże funkcję *fun* ze zdarzeniem naciśnięcia podanego klawisza albo ze " +"zdarzeniem naciśnięcia dowolnego klawisza, jeśli klawisz nie został podany. " +"Uwaga: aby można było rejestrować zdarzenia klawiatury, TurtleScreen musi " +"mieć fokus. (Zobacz metodę :func:`listen`.)" + +msgid "" +"Bind *fun* to mouse-click events on this screen. If *fun* is ``None``, " +"existing bindings are removed." +msgstr "" +"Wiąże funkcję *fun* ze zdarzeniami kliknięcia myszą na tym ekranie. Jeśli " +"*fun* ma wartość ``None``, metoda usuwa istniejące powiązania." + +msgid "" +"Example for a TurtleScreen instance named ``screen`` and a Turtle instance " +"named ``turtle``:" +msgstr "" +"Przykład dla obiektu TurtleScreen przypisanego do zmiennej ``screen`` oraz " +"obiektu Turtle przypisanego do zmiennej ``turtle``:" + +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 "" +"Ta metoda TurtleScreen jest dostępna jako globalna funkcja wyłącznie pod " +"nazwą ``onscreenclick``. Globalna funkcja ``onclick`` jest inną funkcją, " +"wywodzącą się z metody ``onclick`` klasy Turtle." + +msgid "a function with no arguments" +msgstr "funkcja bez argumentów" + +msgid "a number >= 0" +msgstr "liczba >= 0" + +msgid "Install a timer that calls *fun* after *t* milliseconds." +msgstr "" +"Ustaw czasomierz, który wywoła funkcję *fun* po upływie *t* milisekund." + +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 " +"run from within IDLE in -n mode (No subprocess) - for interactive use of " +"turtle graphics. ::" +msgstr "" +"Uruchamia pętlę zdarzeń, wywołując funkcję mainloop biblioteki Tkinter. Musi " +"być ostatnią instrukcją programu korzystającego z grafiki żółwia. *Nie* " +"wolno jej używać, jeśli skrypt jest uruchamiany z poziomu IDLE w trybie -n " +"(bez podprocesów), służącym do interaktywnej pracy z grafiką żółwia. ::" + +msgid "string" +msgstr "ciąg znaków" + +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``. ::" +msgstr "" +"Wyświetla okno dialogowe służące do wprowadzenia ciągu znaków. Parametr " +"title to tytuł okna dialogowego, a prompt to tekst opisujący, jakie " +"informacje należy wprowadzić. Zwraca wprowadzony ciąg znaków. Jeśli okno " +"dialogowe zostanie zamknięte, zwraca ``None``. ::" + +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: " +"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 "" + +msgid "one of the strings \"standard\", \"logo\" or \"world\"" +msgstr "jeden z ciągów znaków: „standard”, „logo” lub „world”" + +msgid "" +"Set turtle mode (\"standard\", \"logo\" or \"world\") and perform reset. If " +"mode is not given, current mode is returned." +msgstr "" +"Ustawia tryb żółwia („standard”, „logo” lub „world”) i wykonuje reset. Jeśli " +"nie podano trybu, zwraca bieżący tryb." + +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 " +"if ``x/y`` unit-ratio doesn't equal 1." +msgstr "" + +msgid "Mode" +msgstr "Tryb" + +msgid "Initial turtle heading" +msgstr "początkowy kierunek żółwia" + +msgid "positive angles" +msgstr "" + +msgid "\"standard\"" +msgstr "\"standard\"" + +msgid "to the right (east)" +msgstr "" + +msgid "counterclockwise" +msgstr "przeciwnie do ruchu wskazówek zegara" + +msgid "\"logo\"" +msgstr "\"logo\"" + +msgid "upward (north)" +msgstr "w górę (na północ)" + +msgid "clockwise" +msgstr "" + +msgid "one of the values 1.0 or 255" +msgstr "" + +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 "" + +msgid "" +"Return the Canvas of this TurtleScreen. Useful for insiders who know what " +"to do with a Tkinter Canvas." +msgstr "" + +msgid "Return a list of names of all currently available turtle shapes." +msgstr "" + +msgid "There are three different ways to call this function:" +msgstr "" + +msgid "" +"*name* is the name of a gif-file and *shape* is ``None``: Install the " +"corresponding image shape. ::" +msgstr "" + +msgid "" +"Image shapes *do not* rotate when turning the turtle, so they do not display " +"the heading of the turtle!" +msgstr "" + +msgid "" +"*name* is an arbitrary string and *shape* is a tuple of pairs of " +"coordinates: Install the corresponding polygon shape." +msgstr "" + +msgid "" +"*name* is an arbitrary string and shape is a (compound) :class:`Shape` " +"object: Install the corresponding compound shape." +msgstr "" + +msgid "" +"Add a turtle shape to TurtleScreen's shapelist. Only thusly registered " +"shapes can be used by issuing the command ``shape(shapename)``." +msgstr "" + +msgid "Return the list of turtles on the screen." +msgstr "" + +msgid "Return the height of the turtle window. ::" +msgstr "" + +msgid "Return the width of the turtle window. ::" +msgstr "" + +msgid "Methods specific to Screen, not inherited from TurtleScreen" +msgstr "" + +msgid "Shut the turtlegraphics window." +msgstr "" + +msgid "Bind ``bye()`` method to mouse clicks on the Screen." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"if an integer, a size in pixels, if a float, a fraction of the screen; " +"default is 50% of screen" +msgstr "" + +msgid "" +"if an integer, the height in pixels, if a float, a fraction of the screen; " +"default is 75% of screen" +msgstr "" + +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 "" + +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" +msgstr "" + +msgid "a string that is shown in the titlebar of the turtle graphics window" +msgstr "" + +msgid "Set title of turtle window to *titlestring*." +msgstr "" + +msgid "Public classes" +msgstr "" + +msgid "" +"a :class:`tkinter.Canvas`, a :class:`ScrolledCanvas` or " +"a :class:`TurtleScreen`" +msgstr "" + +msgid "" +"Create a turtle. The turtle has all methods described above as \"methods of " +"Turtle/RawTurtle\"." +msgstr "" + +msgid "" +"Subclass of RawTurtle, has the same interface but draws on a " +"default :class:`Screen` object created automatically when needed for the " +"first time." +msgstr "" + +msgid "a :class:`tkinter.Canvas`" +msgstr "" + +msgid "" +"Provides screen oriented methods like :func:`bgcolor` etc. that are " +"described above." +msgstr "" + +msgid "" +"Subclass of TurtleScreen, with :ref:`four methods added `." +msgstr "" + +msgid "" +"some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas " +"with scrollbars added" +msgstr "" + +msgid "" +"Used by class Screen, which thus automatically provides a ScrolledCanvas as " +"playground for the turtles." +msgstr "" + +msgid "one of the strings \"polygon\", \"image\", \"compound\"" +msgstr "" + +msgid "" +"Data structure modeling shapes. The pair ``(type_, data)`` must follow this " +"specification:" +msgstr "" + +msgid "*type_*" +msgstr "" + +msgid "*data*" +msgstr "" + +msgid "\"polygon\"" +msgstr "" + +msgid "a polygon-tuple, i.e. a tuple of pairs of coordinates" +msgstr "" + +msgid "\"image\"" +msgstr "" + +msgid "an image (in this form only used internally!)" +msgstr "" + +msgid "\"compound\"" +msgstr "" + +msgid "" +"``None`` (a compound shape has to be constructed using " +"the :meth:`addcomponent` method)" +msgstr "" + +msgid "a polygon, i.e. a tuple of pairs of numbers" +msgstr "" + +msgid "a color the *poly* will be filled with" +msgstr "" + +msgid "a color for the poly's outline (if given)" +msgstr "" + +msgid "Example:" +msgstr "Przykład:" + +msgid "See :ref:`compoundshapes`." +msgstr "" + +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 "" + +msgid "Provides (for *a*, *b* vectors, *k* number):" +msgstr "" + +msgid "``a + b`` vector addition" +msgstr "" + +msgid "``a - b`` vector subtraction" +msgstr "" + +msgid "``a * b`` inner product" +msgstr "" + +msgid "``k * a`` and ``a * k`` multiplication with scalar" +msgstr "" + +msgid "``abs(a)`` absolute value of a" +msgstr "" + +msgid "``a.rotate(angle)`` rotation" +msgstr "``a.rotate(angle)`` rotation" + +msgid "Help and configuration" +msgstr "" + +msgid "How to use help" +msgstr "" + +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 "" + +msgid "" +"When using IDLE, tooltips show the signatures and first lines of the " +"docstrings of typed in function-/method calls." +msgstr "" + +msgid "Calling :func:`help` on methods or functions displays the docstrings::" +msgstr "" + +msgid "" +"The docstrings of the functions which are derived from methods have a " +"modified form::" +msgstr "" + +msgid "" +"These modified docstrings are created automatically together with the " +"function definitions that are derived from the methods at import time." +msgstr "" + +msgid "Translation of docstrings into different languages" +msgstr "" + +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 "" + +msgid "a string, used as filename" +msgstr "" + +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 " +"turtle graphics classes). The docstring dictionary will be written to the " +"Python script :file:`{filename}.py`. It is intended to serve as a template " +"for translation of the docstrings into different languages." +msgstr "" + +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`." +msgstr "" + +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 "" + +msgid "" +"At the time of this writing there are docstring dictionaries in German and " +"in Italian. (Requests please to glingl@aon.at.)" +msgstr "" + +msgid "How to configure Screen and Turtles" +msgstr "" + +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." +msgstr "" + +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 " +"a classroom, you can prepare a configuration file ``turtle.cfg`` which will " +"be read at import time and modify the configuration according to its " +"settings." +msgstr "" + +msgid "" +"The built in configuration would correspond to the following ``turtle.cfg``:" +msgstr "" + +msgid "Short explanation of selected entries:" +msgstr "" + +msgid "" +"The first four lines correspond to the arguments of the :func:`Screen.setup " +"` method." +msgstr "" + +msgid "" +"Line 5 and 6 correspond to the arguments of the " +"method :func:`Screen.screensize `." +msgstr "" + +msgid "" +"*shape* can be any of the built-in shapes, e.g: arrow, turtle, etc. For " +"more info try ``help(shape)``." +msgstr "" + +msgid "" +"If you want to use no fill color (i.e. make the turtle transparent), you " +"have to write ``fillcolor = \"\"`` (but all nonempty strings must not have " +"quotes in the cfg file)." +msgstr "" + +msgid "" +"If you want to reflect the turtle its state, you have to use ``resizemode = " +"auto``." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The entries *exampleturtle* and *examplescreen* define the names of these " +"objects as they occur in the docstrings. The transformation of method-" +"docstrings to function-docstrings will delete these names from the " +"docstrings." +msgstr "" + +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 " +"enter the mainloop." +msgstr "" + +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 "" + +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 "" + +msgid ":mod:`turtledemo` --- Demo scripts" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Alternatively, you can run the demo scripts individually. For example, ::" +msgstr "" + +msgid "The :mod:`turtledemo` package directory contains:" +msgstr "" + +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 "" + +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 "" + +msgid "" +"A :file:`turtle.cfg` file which serves as an example of how to write and use " +"such files." +msgstr "" + +msgid "The demo scripts are:" +msgstr "" + +msgid "Name" +msgstr "Nazwa" + +msgid "Description" +msgstr "Opis" + +msgid "Features" +msgstr "" + +msgid "bytedesign" +msgstr "" + +msgid "complex classical turtle graphics pattern" +msgstr "" + +msgid ":func:`tracer`, delay, :func:`update`" +msgstr "" + +msgid "chaos" +msgstr "" + +msgid "" +"graphs Verhulst dynamics, shows that computer's computations can generate " +"results sometimes against the common sense expectations" +msgstr "" + +msgid "world coordinates" +msgstr "" + +msgid "clock" +msgstr "" + +msgid "analog clock showing time of your computer" +msgstr "" + +msgid "turtles as clock's hands, ontimer" +msgstr "" + +msgid "colormixer" +msgstr "" + +msgid "experiment with r, g, b" +msgstr "" + +msgid "forest" +msgstr "" + +msgid "3 breadth-first trees" +msgstr "" + +msgid "randomization" +msgstr "" + +msgid "fractalcurves" +msgstr "" + +msgid "Hilbert & Koch curves" +msgstr "" + +msgid "recursion" +msgstr "" + +msgid "lindenmayer" +msgstr "" + +msgid "ethnomathematics (indian kolams)" +msgstr "" + +msgid "L-System" +msgstr "" + +msgid "minimal_hanoi" +msgstr "" + +msgid "Towers of Hanoi" +msgstr "" + +msgid "Rectangular Turtles as Hanoi discs (shape, shapesize)" +msgstr "" + +msgid "nim" +msgstr "" + +msgid "" +"play the classical nim game with three heaps of sticks against the computer." +msgstr "" + +msgid "turtles as nimsticks, event driven (mouse, keyboard)" +msgstr "" + +msgid "paint" +msgstr "" + +msgid "super minimalistic drawing program" +msgstr "" + +msgid "peace" +msgstr "" + +msgid "elementary" +msgstr "" + +msgid "turtle: appearance and animation" +msgstr "" + +msgid "penrose" +msgstr "" + +msgid "aperiodic tiling with kites and darts" +msgstr "" + +msgid "planet_and_moon" +msgstr "" + +msgid "simulation of gravitational system" +msgstr "" + +msgid "compound shapes, :class:`Vec2D`" +msgstr "" + +msgid "rosette" +msgstr "" + +msgid "a pattern from the wikipedia article on turtle graphics" +msgstr "" + +msgid ":func:`clone`, :func:`undo`" +msgstr "" + +msgid "round_dance" +msgstr "" + +msgid "dancing turtles rotating pairwise in opposite direction" +msgstr "" + +msgid "compound shapes, clone shapesize, tilt, get_shapepoly, update" +msgstr "" + +msgid "sorting_animate" +msgstr "" + +msgid "visual demonstration of different sorting methods" +msgstr "" + +msgid "simple alignment, randomization" +msgstr "" + +msgid "tree" +msgstr "" + +msgid "a (graphical) breadth first tree (using generators)" +msgstr "" + +msgid "two_canvases" +msgstr "" + +msgid "simple design" +msgstr "" + +msgid "turtles on two canvases" +msgstr "" + +msgid "yinyang" +msgstr "" + +msgid "another elementary example" +msgstr "" + +msgid "Have fun!" +msgstr "" + +msgid "Changes since Python 2.6" +msgstr "" + +msgid "" +"The methods :func:`Turtle.tracer `, :func:`Turtle.window_width " +"` and :func:`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.)" +msgstr "" + +msgid "" +"The method :func:`!Turtle.fill` has been eliminated. The behaviour " +"of :func:`begin_fill` and :func:`end_fill` have changed slightly: now every " +"filling process must be completed with an ``end_fill()`` call." +msgstr "" + +msgid "" +"A method :func:`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 "" + +msgid "Changes since Python 3.0" +msgstr "" + +msgid "" +"The :class:`Turtle` methods :func:`shearfactor`, :func:`shapetransform` " +"and :func:`get_shapepoly` have been added. Thus the full range of regular " +"linear transforms is now available for transforming turtle " +"shapes. :func:`tiltangle` has been enhanced in functionality: it now can be " +"used to get or set the tilt angle. :func:`settiltangle` has been deprecated." +msgstr "" + +msgid "" +"The :class:`Screen` method :func:`onkeypress` has been added as a complement " +"to :func:`onkey`. As the latter binds actions to the key release event, an " +"alias: :func:`onkeyrelease` was also added for it." +msgstr "" + +msgid "" +"The method :func:`Screen.mainloop ` has been added, so there is no " +"longer a need to use the standalone :func:`mainloop` function when working " +"with :class:`Screen` and :class:`Turtle` objects." +msgstr "" + +msgid "" +"Two input methods have been added: :func:`Screen.textinput ` " +"and :func:`Screen.numinput `. These pop up input dialogs and " +"return strings and numbers respectively." +msgstr "" + +msgid "" +"Two example scripts :file:`tdemo_nim.py` and :file:`tdemo_round_dance.py` " +"have been added to the :file:`Lib/turtledemo` directory." +msgstr "" diff --git a/library/types.po b/library/types.po new file mode 100644 index 0000000000..c9a0ecc09e --- /dev/null +++ b/library/types.po @@ -0,0 +1,464 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`types` --- Dynamic type creation and names for built-in types" +msgstr "" + +msgid "**Source code:** :source:`Lib/types.py`" +msgstr "**Kod źródłowy:** :source:`Lib/types.py`" + +msgid "" +"This module defines utility functions to assist in dynamic creation of new " +"types." +msgstr "" + +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." +msgstr "" + +msgid "" +"Finally, it provides some additional type-related utility classes and " +"functions that are not fundamental enough to be builtins." +msgstr "" + +msgid "Dynamic Type Creation" +msgstr "" + +msgid "Creates a class object dynamically using the appropriate metaclass." +msgstr "" + +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 " +"(such as ``metaclass``)." +msgstr "" + +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: " +"None``." +msgstr "" + +msgid "Calculates the appropriate metaclass and creates the class namespace." +msgstr "" + +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 " +"``metaclass``)." +msgstr "" + +msgid "The return value is a 3-tuple: ``metaclass, namespace, kwds``" +msgstr "" + +msgid "" +"*metaclass* is the appropriate metaclass, *namespace* is the prepared class " +"namespace and *kwds* is an updated copy of the passed in *kwds* argument " +"with any ``'metaclass'`` entry removed. If no *kwds* argument is passed in, " +"this will be an empty dict." +msgstr "" + +msgid "" +"The default value for the ``namespace`` element of the returned tuple has " +"changed. Now an insertion-order-preserving mapping is used when the " +"metaclass does not have a ``__prepare__`` method." +msgstr "" + +msgid ":ref:`metaclasses`" +msgstr ":ref:`metaclasses`" + +msgid "Full details of the class creation process supported by these functions" +msgstr "" + +msgid ":pep:`3115` - Metaclasses in Python 3000" +msgstr "" + +msgid "Introduced the ``__prepare__`` namespace hook" +msgstr "" + +msgid "Resolve MRO entries dynamically as specified by :pep:`560`." +msgstr "" + +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 " +"``__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 "" + +msgid ":pep:`560` - Core support for typing module and generic types" +msgstr "" + +msgid "Standard Interpreter Types" +msgstr "" + +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 " +"``listiterator`` type." +msgstr "" + +msgid "" +"Typical use of these names is for :func:`isinstance` or :func:`issubclass` " +"checks." +msgstr "" + +msgid "" +"If you instantiate any of these types, note that signatures may vary between " +"Python versions." +msgstr "" + +msgid "Standard names are defined for the following types:" +msgstr "" + +msgid "The type of :data:`None`." +msgstr "" + +msgid "" +"The type of user-defined functions and functions created " +"by :keyword:`lambda` expressions." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``function.__new__`` with " +"argument ``code``." +msgstr "" + +msgid "" +"The audit event only occurs for direct instantiation of function objects, " +"and is not raised for normal compilation." +msgstr "" + +msgid "" +"The type of :term:`generator`-iterator objects, created by generator " +"functions." +msgstr "" + +msgid "" +"The type of :term:`coroutine` objects, created by :keyword:`async def` " +"functions." +msgstr "" + +msgid "" +"The type of :term:`asynchronous generator`-iterator objects, created by " +"asynchronous generator functions." +msgstr "" + +msgid "The type for code objects such as returned by :func:`compile`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``code.__new__`` with arguments " +"``code``, ``filename``, ``name``, ``argcount``, ``posonlyargcount``, " +"``kwonlyargcount``, ``nlocals``, ``stacksize``, ``flags``." +msgstr "" + +msgid "" +"Note that the audited arguments may not match the names or positions " +"required by the initializer. The audit event only occurs for direct " +"instantiation of code objects, and is not raised for normal compilation." +msgstr "" + +msgid "" +"Return a copy of the code object with new values for the specified fields." +msgstr "" + +msgid "" +"The type for cell objects: such objects are used as containers for a " +"function's free variables." +msgstr "" + +msgid "The type of methods of user-defined class instances." +msgstr "" + +msgid "" +"The type of built-in functions like :func:`len` or :func:`sys.exit`, and " +"methods of built-in classes. (Here, the term \"built-in\" means \"written " +"in C\".)" +msgstr "" + +msgid "" +"The type of methods of some built-in data types and base classes such " +"as :meth:`object.__init__` or :meth:`object.__lt__`." +msgstr "" + +msgid "" +"The type of *bound* methods of some built-in data types and base classes. " +"For example it is the type of :code:`object().__str__`." +msgstr "" + +msgid "The type of :data:`NotImplemented`." +msgstr "" + +msgid "" +"The type of methods of some built-in data types such as :meth:`str.join`." +msgstr "" + +msgid "" +"The type of *unbound* class methods of some built-in data types such as " +"``dict.__dict__['fromkeys']``." +msgstr "" + +msgid "" +"The type of :term:`modules `. The constructor takes the name of the " +"module to be created and optionally its :term:`docstring`." +msgstr "" + +msgid "" +"Use :func:`importlib.util.module_from_spec` to create a new module if you " +"wish to set the various import-controlled attributes." +msgstr "" + +msgid "The :term:`docstring` of the module. Defaults to ``None``." +msgstr "" + +msgid "The :term:`loader` which loaded the module. Defaults to ``None``." +msgstr "" + +msgid "" +"This attribute is to match :attr:`importlib.machinery.ModuleSpec.loader` as " +"stored in the :attr:`__spec__` object." +msgstr "" + +msgid "" +"A future version of Python may stop setting this attribute by default. To " +"guard against this potential change, preferably read from " +"the :attr:`__spec__` attribute instead or use ``getattr(module, " +"\"__loader__\", None)`` if you explicitly need to use this attribute." +msgstr "" + +msgid "Defaults to ``None``. Previously the attribute was optional." +msgstr "" + +msgid "" +"The name of the module. Expected to " +"match :attr:`importlib.machinery.ModuleSpec.name`." +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``." +msgstr "" + +msgid "" +"This attribute is to match :attr:`importlib.machinery.ModuleSpec.parent` as " +"stored in the :attr:`__spec__` object." +msgstr "" + +msgid "" +"A future version of Python may stop setting this attribute by default. To " +"guard against this potential change, preferably read from " +"the :attr:`__spec__` attribute instead or use ``getattr(module, " +"\"__package__\", None)`` if you explicitly need to use this attribute." +msgstr "" + +msgid "" +"A record of the module's import-system-related state. Expected to be an " +"instance of :class:`importlib.machinery.ModuleSpec`." +msgstr "" + +msgid "The type of :data:`Ellipsis`." +msgstr "" + +msgid "" +"The type of :ref:`parameterized generics ` such as " +"``list[int]``." +msgstr "" + +msgid "" +"``t_origin`` should be a non-parameterized generic class, such as ``list``, " +"``tuple`` or ``dict``. ``t_args`` should be a :class:`tuple` (possibly of " +"length 1) of types which parameterize ``t_origin``::" +msgstr "" + +msgid "This type can now be subclassed." +msgstr "" + +msgid "The type of :ref:`union type expressions`." +msgstr "" + +msgid "The type of traceback objects such as found in ``sys.exc_info()[2]``." +msgstr "" + +msgid "" +"See :ref:`the language reference ` for details of the " +"available attributes and operations, and guidance on creating tracebacks " +"dynamically." +msgstr "" + +msgid "" +"The type of frame objects such as found in ``tb.tb_frame`` if ``tb`` is a " +"traceback object." +msgstr "" + +msgid "" +"See :ref:`the language reference ` for details of the " +"available attributes and operations." +msgstr "" + +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." +msgstr "" + +msgid "" +"The type of objects defined in extension modules with ``PyMemberDef``, such " +"as ``datetime.timedelta.days``. This type is used as descriptor for simple " +"C data members which use standard conversion functions; it has the same " +"purpose as the :class:`property` type, but for classes defined in extension " +"modules." +msgstr "" + +msgid "" +"In other implementations of Python, this type may be identical to " +"``GetSetDescriptorType``." +msgstr "" + +msgid "" +"Read-only proxy of a mapping. It provides a dynamic view on the mapping's " +"entries, which means that when the mapping changes, the view reflects these " +"changes." +msgstr "" + +msgid "" +"Updated to support the new union (``|``) operator from :pep:`584`, which " +"simply delegates to the underlying mapping." +msgstr "" + +msgid "" +"Return ``True`` if the underlying mapping has a key *key*, else ``False``." +msgstr "" + +msgid "" +"Return the item of the underlying mapping with key *key*. Raises " +"a :exc:`KeyError` if *key* is not in the underlying mapping." +msgstr "" + +msgid "" +"Return an iterator over the keys of the underlying mapping. This is a " +"shortcut for ``iter(proxy.keys())``." +msgstr "" + +msgid "Return the number of items in the underlying mapping." +msgstr "" + +msgid "Return a shallow copy of the underlying mapping." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Return a new view of the underlying mapping's items (``(key, value)`` pairs)." +msgstr "" + +msgid "Return a new view of the underlying mapping's keys." +msgstr "" + +msgid "Return a new view of the underlying mapping's values." +msgstr "" + +msgid "Return a reverse iterator over the keys of the underlying mapping." +msgstr "" + +msgid "Additional Utility Classes and Functions" +msgstr "" + +msgid "" +"A simple :class:`object` subclass that provides attribute access to its " +"namespace, as well as a meaningful repr." +msgstr "" + +msgid "" +"Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove " +"attributes. If a ``SimpleNamespace`` object is initialized with keyword " +"arguments, those are directly added to the underlying namespace." +msgstr "" + +msgid "The type is roughly equivalent to the following code::" +msgstr "" + +msgid "" +"``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``. " +"However, for a structured record type use :func:`~collections.namedtuple` " +"instead." +msgstr "" + +msgid "" +"Attribute order in the repr changed from alphabetical to insertion (like " +"``dict``)." +msgstr "" + +msgid "Route attribute access on a class to __getattr__." +msgstr "" + +msgid "" +"This is a descriptor, used to define attributes that act differently when " +"accessed through an instance and through a class. Instance access remains " +"normal, but access to an attribute through a class will be routed to the " +"class's __getattr__ method; this is done by raising AttributeError." +msgstr "" + +msgid "" +"This allows one to have properties active on an instance, and have virtual " +"attributes on the class with the same name (see :class:`enum.Enum` for an " +"example)." +msgstr "" + +msgid "Coroutine Utility Functions" +msgstr "" + +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`. " +"However, it may not necessarily implement the :meth:`~object.__await__` " +"method." +msgstr "" + +msgid "If *gen_func* is a generator function, it will be modified in-place." +msgstr "" + +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 " +"wrapped in an *awaitable* proxy object. All other types of objects will be " +"returned as is." +msgstr "" diff --git a/library/unicodedata.po b/library/unicodedata.po index 1698a886c2..a7422d9ddc 100644 --- a/library/unicodedata.po +++ b/library/unicodedata.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:16+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`unicodedata` --- Unicode Database" msgstr "" @@ -29,8 +29,8 @@ 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 14.0.0 `_." +"in this database is compiled from the `UCD version 13.0.0 `_." msgstr "" msgid "" @@ -55,20 +55,20 @@ msgstr "" 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 "" 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 "" 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 "" msgid "Returns the general category assigned to the character *chr* as string." @@ -160,13 +160,13 @@ msgid "" msgstr "" msgid "Examples:" -msgstr "" +msgstr "Przykłady:" msgid "Footnotes" msgstr "Przypisy" -msgid "https://www.unicode.org/Public/14.0.0/ucd/NameAliases.txt" +msgid "https://www.unicode.org/Public/13.0.0/ucd/NameAliases.txt" msgstr "" -msgid "https://www.unicode.org/Public/14.0.0/ucd/NamedSequences.txt" +msgid "https://www.unicode.org/Public/13.0.0/ucd/NamedSequences.txt" msgstr "" diff --git a/library/unittest.po b/library/unittest.po new file mode 100644 index 0000000000..71b1e0b8b7 --- /dev/null +++ b/library/unittest.po @@ -0,0 +1,2530 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`unittest` --- Unit testing framework" +msgstr "" + +msgid "**Source code:** :source:`Lib/unittest/__init__.py`" +msgstr "**Kod źródłowy:** :source:`Lib/unittest/__init__.py`" + +msgid "" +"(If you are already familiar with the basic concepts of testing, you might " +"want to skip to :ref:`the list of assert methods `.)" +msgstr "" + +msgid "" +"The :mod:`unittest` unit testing framework was originally inspired by JUnit " +"and has a similar flavor as major unit testing frameworks in other " +"languages. It supports test automation, sharing of setup and shutdown code " +"for tests, aggregation of tests into collections, and independence of the " +"tests from the reporting framework." +msgstr "" + +msgid "" +"To achieve this, :mod:`unittest` supports some important concepts in an " +"object-oriented way:" +msgstr "" + +msgid "test fixture" +msgstr "" + +msgid "" +"A :dfn:`test fixture` represents the preparation needed to perform one or " +"more tests, and any associated cleanup actions. This may involve, for " +"example, creating temporary or proxy databases, directories, or starting a " +"server process." +msgstr "" + +msgid "test case" +msgstr "" + +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." +msgstr "" + +msgid "test suite" +msgstr "" + +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." +msgstr "" + +msgid "test runner" +msgstr "" + +msgid "" +"A :dfn:`test runner` is a component which orchestrates the execution of " +"tests and provides the outcome to the user. The runner may use a graphical " +"interface, a textual interface, or return a special value to indicate the " +"results of executing the tests." +msgstr "" + +msgid "Module :mod:`doctest`" +msgstr "" + +msgid "Another test-support module with a very different flavor." +msgstr "" + +msgid "" +"`Simple Smalltalk Testing: With Patterns `_" +msgstr "" + +msgid "" +"Kent Beck's original paper on testing frameworks using the pattern shared " +"by :mod:`unittest`." +msgstr "" + +msgid "`pytest `_" +msgstr "" + +msgid "" +"Third-party unittest framework with a lighter-weight syntax for writing " +"tests. For example, ``assert func(10) == 42``." +msgstr "" + +msgid "" +"`The Python Testing Tools Taxonomy `_" +msgstr "" + +msgid "" +"An extensive list of Python testing tools including functional testing " +"frameworks and mock object libraries." +msgstr "" + +msgid "" +"`Testing in Python Mailing List `_" +msgstr "" + +msgid "" +"A special-interest-group for discussion of testing, and testing tools, in " +"Python." +msgstr "" + +msgid "" +"The script :file:`Tools/unittestgui/unittestgui.py` in the Python source " +"distribution is a GUI tool for test discovery and execution. This is " +"intended largely for ease of use for those new to unit testing. For " +"production environments it is recommended that tests be driven by a " +"continuous integration system such as `Buildbot `_, " +"`Jenkins `_ or `Travis-CI `_, or " +"`AppVeyor `_." +msgstr "" + +msgid "Basic example" +msgstr "" + +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 " +"suffice to meet the needs of most users." +msgstr "" + +msgid "Here is a short script to test three string methods::" +msgstr "" + +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 " +"methods represent tests." +msgstr "" + +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 "" + +msgid "" +"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 "" + +msgid "" +"The final block shows a simple way to run the tests. :func:`unittest.main` " +"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 "" + +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::" +msgstr "" + +msgid "" +"The above examples show the most commonly used :mod:`unittest` features " +"which are sufficient to meet many everyday testing needs. The remainder of " +"the documentation explores the full feature set from first principles." +msgstr "" + +msgid "Command-Line Interface" +msgstr "" + +msgid "" +"The unittest module can be used from the command line to run tests from " +"modules, classes or even individual test methods::" +msgstr "" + +msgid "" +"You can pass in a list with any combination of module names, and fully " +"qualified class or method names." +msgstr "" + +msgid "Test modules can be specified by file path as well::" +msgstr "" + +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 " +"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 "" + +msgid "" +"You can run tests with more detail (higher verbosity) by passing in the -v " +"flag::" +msgstr "" + +msgid "" +"When executed without arguments :ref:`unittest-test-discovery` is started::" +msgstr "" + +msgid "For a list of all the command-line options::" +msgstr "" + +msgid "" +"In earlier versions it was only possible to run individual test methods and " +"not modules or classes." +msgstr "" + +msgid "Command-line options" +msgstr "" + +msgid ":program:`unittest` supports these command-line options:" +msgstr "" + +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." +msgstr "" + +msgid "" +":kbd:`Control-C` during the test run waits for the current test to end and " +"then reports all the results so far. A second :kbd:`Control-C` raises the " +"normal :exc:`KeyboardInterrupt` exception." +msgstr "" + +msgid "" +"See `Signal Handling`_ for the functions that provide this functionality." +msgstr "" + +msgid "Stop the test run on the first error or failure." +msgstr "" + +msgid "" +"Only run test methods and classes that match the pattern or substring. This " +"option may be used multiple times, in which case all test cases that match " +"any of the given patterns are included." +msgstr "" + +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." +msgstr "" + +msgid "" +"Patterns are matched against the fully qualified test method name as " +"imported by the test loader." +msgstr "" + +msgid "" +"For example, ``-k foo`` matches ``foo_tests.SomeTest.test_something``, " +"``bar_tests.SomeTest.test_foo``, but not " +"``bar_tests.FooTest.test_something``." +msgstr "" + +msgid "Show local variables in tracebacks." +msgstr "" + +msgid "The command-line options ``-b``, ``-c`` and ``-f`` were added." +msgstr "" + +msgid "The command-line option ``--locals``." +msgstr "" + +msgid "The command-line option ``-k``." +msgstr "" + +msgid "" +"The command line can also be used for test discovery, for running all of the " +"tests in a project or just a subset." +msgstr "" + +msgid "Test Discovery" +msgstr "" + +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 " +"`)." +msgstr "" + +msgid "" +"Test discovery is implemented in :meth:`TestLoader.discover`, but can also " +"be used from the command line. The basic command-line usage is::" +msgstr "" + +msgid "" +"As a shortcut, ``python -m unittest`` is the equivalent of ``python -m " +"unittest discover``. If you want to pass arguments to test discovery the " +"``discover`` sub-command must be used explicitly." +msgstr "" + +msgid "The ``discover`` sub-command has the following options:" +msgstr "" + +msgid "Verbose output" +msgstr "" + +msgid "Directory to start discovery (``.`` default)" +msgstr "" + +msgid "Pattern to match test files (``test*.py`` default)" +msgstr "" + +msgid "Top level directory of project (defaults to start directory)" +msgstr "" + +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 " +"equivalent::" +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." +msgstr "" + +msgid "" +"Test discovery loads tests by importing them. Once test discovery has found " +"all the test files from the start directory you specify it turns the paths " +"into package names to import. For example :file:`foo/bar/baz.py` will be " +"imported as ``foo.bar.baz``." +msgstr "" + +msgid "" +"If you have a package installed globally and attempt test discovery on a " +"different copy of the package then the import *could* happen from the wrong " +"place. If this happens test discovery will warn you and exit." +msgstr "" + +msgid "" +"If you supply the start directory as a package name rather than a path to a " +"directory then discover assumes that whichever location it imports from is " +"the location you intended, so you will not get the warning." +msgstr "" + +msgid "" +"Test modules and packages can customize test loading and discovery by " +"through the `load_tests protocol`_." +msgstr "" + +msgid "" +"Test discovery supports :term:`namespace packages ` for " +"the start directory. Note that you need to specify the top level directory " +"too (e.g. ``python -m unittest discover -s root/namespace -t root``)." +msgstr "" + +msgid "Organizing test code" +msgstr "" + +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`." +msgstr "" + +msgid "" +"The testing code of a :class:`TestCase` instance should be entirely self " +"contained, such that it can be run either in isolation or in arbitrary " +"combination with any number of other test cases." +msgstr "" + +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::" +msgstr "" + +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` " +"will identify the test case as a :dfn:`failure`. Any other exceptions will " +"be treated as :dfn:`errors`." +msgstr "" + +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::" +msgstr "" + +msgid "" +"The order in which the various tests will be run is determined by sorting " +"the test method names with respect to the built-in ordering for strings." +msgstr "" + +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." +msgstr "" + +msgid "" +"Similarly, we can provide a :meth:`~TestCase.tearDown` method that tidies up " +"after the test method has been run::" +msgstr "" + +msgid "" +"If :meth:`~TestCase.setUp` succeeded, :meth:`~TestCase.tearDown` will be run " +"whether the test method succeeded or not." +msgstr "" + +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." +msgstr "" + +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 execute them." +msgstr "" + +msgid "" +"However, should you want to customize the building of your test suite, you " +"can do it yourself::" +msgstr "" + +msgid "" +"You can place the definitions of test cases and test suites in the same " +"modules as the code they are to test (such as :file:`widget.py`), but there " +"are several advantages to placing the test code in a separate module, such " +"as :file:`test_widget.py`:" +msgstr "" + +msgid "The test module can be run standalone from the command line." +msgstr "" + +msgid "The test code can more easily be separated from shipped code." +msgstr "" + +msgid "" +"There is less temptation to change test code to fit the code it tests " +"without a good reason." +msgstr "" + +msgid "" +"Test code should be modified much less frequently than the code it tests." +msgstr "" + +msgid "Tested code can be refactored more easily." +msgstr "" + +msgid "" +"Tests for modules written in C must be in separate modules anyway, so why " +"not be consistent?" +msgstr "" + +msgid "" +"If the testing strategy changes, there is no need to change the source code." +msgstr "" + +msgid "Re-using old test code" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "Given the following test function::" +msgstr "" + +msgid "" +"one can create an equivalent test case instance as follows, with optional " +"set-up and tear-down methods::" +msgstr "" + +msgid "" +"Even though :class:`FunctionTestCase` can be used to quickly convert an " +"existing test base over to a :mod:`unittest`\\ -based system, this approach " +"is not recommended. Taking the time to set up proper :class:`TestCase` " +"subclasses will make future test refactorings infinitely easier." +msgstr "" + +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." +msgstr "" + +msgid "Skipping tests and expected failures" +msgstr "" + +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 " +"on a :class:`TestResult`." +msgstr "" + +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." +msgstr "" + +msgid "Basic skipping looks like this::" +msgstr "" + +msgid "This is the output of running the example above in verbose mode::" +msgstr "" + +msgid "Classes can be skipped just like methods::" +msgstr "" + +msgid "" +":meth:`TestCase.setUp` can also skip the test. This is useful when a " +"resource that needs to be set up is not available." +msgstr "" + +msgid "Expected failures use the :func:`expectedFailure` decorator. ::" +msgstr "" + +msgid "" +"It's easy to roll your own skipping decorators by making a decorator that " +"calls :func:`skip` on the test when it wants it to be skipped. This " +"decorator skips the test unless the passed object has a certain attribute::" +msgstr "" + +msgid "" +"The following decorators and exception implement test skipping and expected " +"failures:" +msgstr "" + +msgid "" +"Unconditionally skip the decorated test. *reason* should describe why the " +"test is being skipped." +msgstr "" + +msgid "Skip the decorated test if *condition* is true." +msgstr "" + +msgid "Skip the decorated test unless *condition* is true." +msgstr "" + +msgid "" +"Mark the test as an expected failure or error. If the test fails or errors " +"in the test function itself (rather than in one of the :dfn:`test fixture` " +"methods) then it will be considered a success. If the test passes, it will " +"be considered a failure." +msgstr "" + +msgid "This exception is raised to skip a test." +msgstr "" + +msgid "" +"Usually you can use :meth:`TestCase.skipTest` or one of the skipping " +"decorators instead of raising this directly." +msgstr "" + +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." +msgstr "" + +msgid "Distinguishing test iterations using subtests" +msgstr "" + +msgid "" +"When there are very small differences among your tests, for instance some " +"parameters, unittest allows you to distinguish them inside the body of a " +"test method using the :meth:`~TestCase.subTest` context manager." +msgstr "" + +msgid "For example, the following test::" +msgstr "" + +msgid "will produce the following output::" +msgstr "" + +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::" +msgstr "" + +msgid "Classes and functions" +msgstr "" + +msgid "This section describes in depth the API of :mod:`unittest`." +msgstr "" + +msgid "Test cases" +msgstr "" + +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 " +"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 " +"report various kinds of failure." +msgstr "" + +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 " +"change the *methodName* nor reimplement the default ``runTest()`` method." +msgstr "" + +msgid "" +":class:`TestCase` can be instantiated successfully without providing a " +"*methodName*. This makes it easier to experiment with :class:`TestCase` from " +"the interactive interpreter." +msgstr "" + +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." +msgstr "" + +msgid "Methods in the first group (running the test) are:" +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"A class method called before tests in an individual class are run. " +"``setUpClass`` is called with the class as the only argument and must be " +"decorated as a :func:`classmethod`::" +msgstr "" + +msgid "See `Class and Module Fixtures`_ for more details." +msgstr "" + +msgid "" +"A class method called after tests in an individual class have run. " +"``tearDownClass`` is called with the class as the only argument and must be " +"decorated as a :meth:`classmethod`::" +msgstr "" + +msgid "" +"Run the test, collecting the result into the :class:`TestResult` object " +"passed as *result*. If *result* is omitted or ``None``, a temporary result " +"object is created (by calling the :meth:`defaultTestResult` method) and " +"used. The result object is returned to :meth:`run`'s caller." +msgstr "" + +msgid "" +"The same effect may be had by simply calling the :class:`TestCase` instance." +msgstr "" + +msgid "" +"Previous versions of ``run`` did not return the result. Neither did calling " +"an instance." +msgstr "" + +msgid "" +"Calling this during a test method or :meth:`setUp` skips the current test. " +"See :ref:`unittest-skipping` for more information." +msgstr "" + +msgid "" +"Return a context manager which executes the enclosed code block as a " +"subtest. *msg* and *params* are optional, arbitrary values which are " +"displayed whenever a subtest fails, allowing you to identify them clearly." +msgstr "" + +msgid "" +"A test case can contain any number of subtest declarations, and they can be " +"arbitrarily nested." +msgstr "" + +msgid "See :ref:`subtests` for more information." +msgstr "" + +msgid "" +"Run the test 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 "" + +msgid "" +"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 "" + +msgid "Method" +msgstr "" + +msgid "Checks that" +msgstr "" + +msgid "New in" +msgstr "" + +msgid ":meth:`assertEqual(a, b) `" +msgstr "" + +msgid "``a == b``" +msgstr "``a == b``" + +msgid ":meth:`assertNotEqual(a, b) `" +msgstr "" + +msgid "``a != b``" +msgstr "``a != b``" + +msgid ":meth:`assertTrue(x) `" +msgstr ":meth:`assertTrue(x) `" + +msgid "``bool(x) is True``" +msgstr "``bool(x) is True``" + +msgid ":meth:`assertFalse(x) `" +msgstr ":meth:`assertFalse(x) `" + +msgid "``bool(x) is False``" +msgstr "``bool(x) is False``" + +msgid ":meth:`assertIs(a, b) `" +msgstr "" + +msgid "``a is b``" +msgstr "``a is b``" + +msgid "3.1" +msgstr "" + +msgid ":meth:`assertIsNot(a, b) `" +msgstr "" + +msgid "``a is not b``" +msgstr "" + +msgid ":meth:`assertIsNone(x) `" +msgstr ":meth:`assertIsNone(x) `" + +msgid "``x is None``" +msgstr "``x is None``" + +msgid ":meth:`assertIsNotNone(x) `" +msgstr ":meth:`assertIsNotNone(x) `" + +msgid "``x is not None``" +msgstr "" + +msgid ":meth:`assertIn(a, b) `" +msgstr "" + +msgid "``a in b``" +msgstr "``a in b``" + +msgid ":meth:`assertNotIn(a, b) `" +msgstr "" + +msgid "``a not in b``" +msgstr "" + +msgid ":meth:`assertIsInstance(a, b) `" +msgstr "" + +msgid "``isinstance(a, b)``" +msgstr "``isinstance(a, b)``" + +msgid "3.2" +msgstr "" + +msgid ":meth:`assertNotIsInstance(a, b) `" +msgstr "" + +msgid "``not isinstance(a, b)``" +msgstr "``not isinstance(a, b)``" + +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." +msgstr "" + +msgid "" +"Test that *first* and *second* are equal. If the values do not compare " +"equal, the test will fail." +msgstr "" + +msgid "" +"In addition, if *first* and *second* are the exact same type and one of " +"list, tuple, dict, set, frozenset or str or any type that a subclass " +"registers with :meth:`addTypeEqualityFunc` the type-specific equality " +"function will be called in order to generate a more useful default error " +"message (see also the :ref:`list of type-specific methods `)." +msgstr "" + +msgid "Added the automatic calling of type-specific equality function." +msgstr "" + +msgid "" +":meth:`assertMultiLineEqual` added as the default type equality function for " +"comparing strings." +msgstr "" + +msgid "" +"Test that *first* and *second* are not equal. If the values do compare " +"equal, the test will fail." +msgstr "" + +msgid "Test that *expr* is true (or false)." +msgstr "" + +msgid "" +"Note that this is equivalent to ``bool(expr) is True`` and not to ``expr is " +"True`` (use ``assertIs(expr, True)`` for the latter). This method should " +"also be avoided when more specific methods are available (e.g. " +"``assertEqual(a, b)`` instead of ``assertTrue(a == b)``), because they " +"provide a better error message in case of failure." +msgstr "" + +msgid "Test that *first* and *second* are (or are not) the same object." +msgstr "" + +msgid "Test that *expr* is (or is not) ``None``." +msgstr "" + +msgid "Test that *member* is (or is not) in *container*." +msgstr "" + +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 " +"exact type, use :func:`assertIs(type(obj), cls) `." +msgstr "" + +msgid "" +"It is also possible to check the production of exceptions, warnings, and log " +"messages using the following methods:" +msgstr "" + +msgid ":meth:`assertRaises(exc, fun, *args, **kwds) `" +msgstr "" + +msgid "``fun(*args, **kwds)`` raises *exc*" +msgstr "" + +msgid "" +":meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) " +"`" +msgstr "" + +msgid "``fun(*args, **kwds)`` raises *exc* and the message matches regex *r*" +msgstr "" + +msgid ":meth:`assertWarns(warn, fun, *args, **kwds) `" +msgstr "" + +msgid "``fun(*args, **kwds)`` raises *warn*" +msgstr "" + +msgid "" +":meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) " +"`" +msgstr "" + +msgid "``fun(*args, **kwds)`` raises *warn* and the message matches regex *r*" +msgstr "" + +msgid ":meth:`assertLogs(logger, level) `" +msgstr "" + +msgid "The ``with`` block logs on *logger* with minimum *level*" +msgstr "" + +msgid "3.4" +msgstr "" + +msgid ":meth:`assertNoLogs(logger, level) `" +msgstr "" + +msgid "The ``with`` block does not log on" +msgstr "" + +msgid "*logger* with minimum *level*" +msgstr "" + +msgid "3.10" +msgstr "" + +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*." +msgstr "" +"Sprawdza czy rzucany jest wyjątek przy wywołaniu *callable* z dowolnymi " +"pozycyjnymi lub nazwanymi argumentami, które są też przekazane " +"do :meth:`assertRaises`. Test przechodzi pomyślnie, jeśli rzucony jest " +"wyjątek *exception*, kończy się błędem, jeśli rzucony jest inny wyjątek, lub " +"kończy się niepowodzeniem, jeśli żaden wyjątek nie jest rzucony. Aby " +"przechwycić dowolny z grupy wyjątków, jako *exception* można przekazać " +"krotkę zawierającą klasy wyjątków." + +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 " +"than as a function::" +msgstr "" + +msgid "" +"When used as a context manager, :meth:`assertRaises` accepts the additional " +"keyword argument *msg*." +msgstr "" + +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::" +msgstr "" + +msgid "Added the ability to use :meth:`assertRaises` as a context manager." +msgstr "" + +msgid "Added the :attr:`exception` attribute." +msgstr "" + +msgid "Added the *msg* keyword argument when used as a context manager." +msgstr "" + +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::" +msgstr "" + +msgid "or::" +msgstr "lub::" + +msgid "Added under the name ``assertRaisesRegexp``." +msgstr "" + +msgid "Renamed to :meth:`assertRaisesRegex`." +msgstr "" + +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*." +msgstr "" + +msgid "" +"If only the *warning* 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 "" + +msgid "" +"When used as a context manager, :meth:`assertWarns` accepts the additional " +"keyword argument *msg*." +msgstr "" + +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::" +msgstr "" + +msgid "" +"This method works regardless of the warning filters in place when it is " +"called." +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::" +msgstr "" + +msgid "" +"A context manager to test that at least one message is logged on the " +"*logger* or one of its children, with at least the given *level*." +msgstr "" + +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 that were not blocked by a non-propagating " +"descendent logger." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The test passes if at least one message emitted inside the ``with`` block " +"matches the *logger* and *level* conditions, otherwise it fails." +msgstr "" + +msgid "" +"The object returned by the context manager is a recording helper which keeps " +"tracks of the matching log messages. It has two attributes:" +msgstr "" + +msgid "" +"A list of :class:`logging.LogRecord` objects of the matching log messages." +msgstr "" + +msgid "" +"A list of :class:`str` objects with the formatted output of matching " +"messages." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "" +"A context manager to test that no messages are logged on the *logger* or one " +"of its children, with at least the given *level*." +msgstr "" + +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." +msgstr "" + +msgid "" +"Unlike :meth:`assertLogs`, nothing will be returned by the context manager." +msgstr "" + +msgid "" +"There are also other methods used to perform more specific checks, such as:" +msgstr "" + +msgid ":meth:`assertAlmostEqual(a, b) `" +msgstr "" + +msgid "``round(a-b, 7) == 0``" +msgstr "``round(a-b, 7) == 0``" + +msgid ":meth:`assertNotAlmostEqual(a, b) `" +msgstr "" + +msgid "``round(a-b, 7) != 0``" +msgstr "" + +msgid ":meth:`assertGreater(a, b) `" +msgstr "" + +msgid "``a > b``" +msgstr "``a > b``" + +msgid ":meth:`assertGreaterEqual(a, b) `" +msgstr "" + +msgid "``a >= b``" +msgstr "``a >= b``" + +msgid ":meth:`assertLess(a, b) `" +msgstr "" + +msgid "``a < b``" +msgstr "``a < b``" + +msgid ":meth:`assertLessEqual(a, b) `" +msgstr "" + +msgid "``a <= b``" +msgstr "``a <= b``" + +msgid ":meth:`assertRegex(s, r) `" +msgstr "" + +msgid "``r.search(s)``" +msgstr "``r.search(s)``" + +msgid ":meth:`assertNotRegex(s, r) `" +msgstr "" + +msgid "``not r.search(s)``" +msgstr "``not r.search(s)``" + +msgid ":meth:`assertCountEqual(a, b) `" +msgstr "" + +msgid "" +"*a* and *b* have the same elements in the same number, regardless of their " +"order." +msgstr "" + +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*." +msgstr "" + +msgid "" +"If *delta* is supplied instead of *places* then the difference between " +"*first* and *second* must be less or equal to (or greater than) *delta*." +msgstr "" + +msgid "Supplying both *delta* and *places* raises a :exc:`TypeError`." +msgstr "" + +msgid "" +":meth:`assertAlmostEqual` automatically considers almost equal objects that " +"compare equal. :meth:`assertNotAlmostEqual` automatically fails if the " +"objects compare equal. Added the *delta* keyword argument." +msgstr "" + +msgid "" +"Test that *first* is respectively >, >=, < or <= than *second* depending on " +"the method name. If not, the test will fail::" +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 " +"suitable for use by :func:`re.search`." +msgstr "" + +msgid "Added under the name ``assertRegexpMatches``." +msgstr "" + +msgid "" +"The method ``assertRegexpMatches()`` has been renamed " +"to :meth:`.assertRegex`." +msgstr "" + +msgid ":meth:`.assertNotRegex`." +msgstr ":meth:`.assertNotRegex`." + +msgid "" +"The name ``assertNotRegexpMatches`` is a deprecated alias " +"for :meth:`.assertNotRegex`." +msgstr "" + +msgid "" +"Test that sequence *first* contains the same elements as *second*, " +"regardless of their order. When they don't, an error message listing the " +"differences between the sequences will be generated." +msgstr "" + +msgid "" +"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 "" + +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 " +"register new methods using :meth:`addTypeEqualityFunc`:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Used to compare" +msgstr "" + +msgid ":meth:`assertMultiLineEqual(a, b) `" +msgstr "" + +msgid "strings" +msgstr "" + +msgid ":meth:`assertSequenceEqual(a, b) `" +msgstr "" + +msgid "sequences" +msgstr "" + +msgid ":meth:`assertListEqual(a, b) `" +msgstr "" + +msgid "lists" +msgstr "" + +msgid ":meth:`assertTupleEqual(a, b) `" +msgstr "" + +msgid "tuples" +msgstr "" + +msgid ":meth:`assertSetEqual(a, b) `" +msgstr "" + +msgid "sets or frozensets" +msgstr "" + +msgid ":meth:`assertDictEqual(a, b) `" +msgstr "" + +msgid "dicts" +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"This method is not called directly by :meth:`assertEqual`, but it's used to " +"implement :meth:`assertListEqual` and :meth:`assertTupleEqual`." +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`." +msgstr "" +"Sprawdza, czy dwie listy lub krotki są równe. Jeśli nie, tworzony jest " +"komunikat o błędzie, który pokazuje tylko różnice między nimi. Błąd jest " +"również rzucany jeśli którykolwiek z parametrów jest niewłaściwego typu. " +"Metody te są używane domyślnie podczas porównywania list lub krotek przy " +"użyciu :meth:`assertEqual`." + +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`." +msgstr "" + +msgid "" +"Fails if either of *first* or *second* does not have " +"a :meth:`set.difference` method." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Finally the :class:`TestCase` provides the following methods and attributes:" +msgstr "" + +msgid "" +"Signals a test failure unconditionally, with *msg* or ``None`` for the error " +"message." +msgstr "" + +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`." +msgstr "" + +msgid "" +"This class attribute determines what happens when a custom failure message " +"is passed as the msg argument to an assertXYY call that fails. ``True`` is " +"the default value. In this case, the custom message is appended to the end " +"of the standard failure message. When set to ``False``, the custom message " +"replaces the standard message." +msgstr "" + +msgid "" +"The class setting can be overridden in individual test methods by assigning " +"an instance attribute, self.longMessage, to ``True`` or ``False`` before " +"calling the assert methods." +msgstr "" + +msgid "The class setting gets reset before each test call." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Setting ``maxDiff`` to ``None`` means that there is no maximum length of " +"diffs." +msgstr "" + +msgid "" +"Testing frameworks can use the following methods to collect information on " +"the test:" +msgstr "" + +msgid "" +"Return the number of tests represented by this test object. " +"For :class:`TestCase` instances, this will always be ``1``." +msgstr "" + +msgid "" +"Return an instance of the test result class that should be used for this " +"test case class (if no other result instance is provided to the :meth:`run` " +"method)." +msgstr "" + +msgid "" +"For :class:`TestCase` instances, this will always be an instance " +"of :class:`TestResult`; subclasses of :class:`TestCase` should override this " +"as necessary." +msgstr "" + +msgid "" +"Return a string identifying the specific test case. This is usually the " +"full name of the test method, including the module and class name." +msgstr "" + +msgid "" +"Returns a description of the test, or ``None`` if no description has been " +"provided. The default implementation of this method returns the first line " +"of the test method's docstring, if available, or ``None``." +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"If :meth:`setUp` fails, meaning that :meth:`tearDown` is not called, then " +"any cleanup functions added will still be called." +msgstr "" + +msgid "" +"This method is called unconditionally after :meth:`tearDown`, or " +"after :meth:`setUp` if :meth:`setUp` raises an exception." +msgstr "" + +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." +msgstr "" + +msgid "" +":meth:`doCleanups` pops methods off the stack of cleanup functions one at a " +"time, so it can be called at any time." +msgstr "" + +msgid "" +"Add a function to be called after :meth:`tearDownClass` to cleanup resources " +"used during the test class. 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:`addClassCleanup` " +"when they are added." +msgstr "" + +msgid "" +"If :meth:`setUpClass` fails, meaning that :meth:`tearDownClass` is not " +"called, then any cleanup functions added will still be called." +msgstr "" + +msgid "" +"This method is called unconditionally after :meth:`tearDownClass`, or " +"after :meth:`setUpClass` if :meth:`setUpClass` raises an exception." +msgstr "" + +msgid "" +"It is responsible for calling all the cleanup functions added " +"by :meth:`addClassCleanup`. If you need cleanup functions to be called " +"*prior* to :meth:`tearDownClass` then you can call :meth:`doClassCleanups` " +"yourself." +msgstr "" + +msgid "" +":meth:`doClassCleanups` pops methods off the stack of cleanup functions one " +"at a time, so it can be called at any time." +msgstr "" + +msgid "" +"This class provides an API similar to :class:`TestCase` and also accepts " +"coroutines as test functions." +msgstr "" + +msgid "" +"Method called to prepare the test fixture. This is called " +"after :meth:`setUp`. 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." +msgstr "" + +msgid "" +"Method called immediately after the test method has been called and the " +"result recorded. This is called before :meth:`tearDown`. 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 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:`asyncSetUp` succeeds, regardless of " +"the outcome of the test method. The default implementation does nothing." +msgstr "" + +msgid "This method accepts a coroutine that can be used as a cleanup function." +msgstr "" + +msgid "" +"Sets up a new event loop to run the test, collecting the result into " +"the :class:`TestResult` object passed as *result*. If *result* is omitted " +"or ``None``, a temporary result object is created (by calling " +"the :meth:`defaultTestResult` method) and used. The result object is " +"returned to :meth:`run`'s caller. At the end of the test all the tasks in " +"the event loop are cancelled." +msgstr "" + +msgid "An example illustrating the order::" +msgstr "" + +msgid "" +"After running the test, ``events`` would contain ``[\"setUp\", " +"\"asyncSetUp\", \"test_response\", \"asyncTearDown\", \"tearDown\", " +"\"cleanup\"]``." +msgstr "" + +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." +msgstr "" + +msgid "Deprecated aliases" +msgstr "" + +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:" +msgstr "" + +msgid "Method Name" +msgstr "" + +msgid "Deprecated alias" +msgstr "" + +msgid ":meth:`.assertEqual`" +msgstr ":meth:`.assertEqual`" + +msgid "failUnlessEqual" +msgstr "" + +msgid "assertEquals" +msgstr "" + +msgid ":meth:`.assertNotEqual`" +msgstr ":meth:`.assertNotEqual`" + +msgid "failIfEqual" +msgstr "" + +msgid "assertNotEquals" +msgstr "" + +msgid ":meth:`.assertTrue`" +msgstr ":meth:`.assertTrue`" + +msgid "failUnless" +msgstr "" + +msgid "assert\\_" +msgstr "" + +msgid ":meth:`.assertFalse`" +msgstr ":meth:`.assertFalse`" + +msgid "failIf" +msgstr "" + +msgid ":meth:`.assertRaises`" +msgstr ":meth:`.assertRaises`" + +msgid "failUnlessRaises" +msgstr "" + +msgid ":meth:`.assertAlmostEqual`" +msgstr ":meth:`.assertAlmostEqual`" + +msgid "failUnlessAlmostEqual" +msgstr "" + +msgid "assertAlmostEquals" +msgstr "" + +msgid ":meth:`.assertNotAlmostEqual`" +msgstr ":meth:`.assertNotAlmostEqual`" + +msgid "failIfAlmostEqual" +msgstr "" + +msgid "assertNotAlmostEquals" +msgstr "" + +msgid ":meth:`.assertRegex`" +msgstr ":meth:`.assertRegex`" + +msgid "assertRegexpMatches" +msgstr "" + +msgid ":meth:`.assertNotRegex`" +msgstr ":meth:`.assertNotRegex`" + +msgid "assertNotRegexpMatches" +msgstr "" + +msgid ":meth:`.assertRaisesRegex`" +msgstr ":meth:`.assertRaisesRegex`" + +msgid "assertRaisesRegexp" +msgstr "" + +msgid "The fail* aliases listed in the second column have been deprecated." +msgstr "" + +msgid "The assert* aliases listed in the third column have been deprecated." +msgstr "" + +msgid "" +"``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed " +"to :meth:`.assertRegex` and :meth:`.assertRaisesRegex`." +msgstr "" + +msgid "" +"The ``assertNotRegexpMatches`` name is deprecated in favor " +"of :meth:`.assertNotRegex`." +msgstr "" + +msgid "Grouping tests" +msgstr "" + +msgid "" +"This class represents an aggregation of individual test cases and test " +"suites. The class presents the interface needed by the test runner to allow " +"it to be run as any other test case. Running a :class:`TestSuite` instance " +"is the same as iterating over the suite, running each test individually." +msgstr "" + +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." +msgstr "" + +msgid "" +":class:`TestSuite` objects behave much like :class:`TestCase` objects, " +"except they do not actually implement a test. Instead, they are used to " +"aggregate tests into groups of tests that should be run together. Some " +"additional methods are available to add tests to :class:`TestSuite` " +"instances:" +msgstr "" + +msgid "Add a :class:`TestCase` or :class:`TestSuite` to the suite." +msgstr "" + +msgid "" +"Add all the tests from an iterable of :class:`TestCase` " +"and :class:`TestSuite` instances to this test suite." +msgstr "" + +msgid "" +"This is equivalent to iterating over *tests*, calling :meth:`addTest` for " +"each element." +msgstr "" + +msgid ":class:`TestSuite` shares the following methods with :class:`TestCase`:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the number of tests represented by this test object, including all " +"individual tests and sub-suites." +msgstr "" + +msgid "" +"Tests grouped by a :class:`TestSuite` are always accessed by iteration. " +"Subclasses can lazily provide tests by overriding :meth:`__iter__`. Note " +"that this method may be called several times on a single suite (for example " +"when counting tests or comparing for equality) so the tests returned by " +"repeated iterations before :meth:`TestSuite.run` must be the same for each " +"call iteration. After :meth:`TestSuite.run`, callers should not rely on the " +"tests returned by this method unless the caller uses a subclass that " +"overrides :meth:`TestSuite._removeTestAtIndex` to preserve test references." +msgstr "" + +msgid "" +"In earlier versions the :class:`TestSuite` accessed tests directly rather " +"than through iteration, so overriding :meth:`__iter__` wasn't sufficient for " +"providing tests." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "Loading and running tests" +msgstr "" + +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." +msgstr "" + +msgid ":class:`TestLoader` objects have the following attributes:" +msgstr "" + +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 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 "" + +msgid ":class:`TestLoader` objects have the following methods:" +msgstr "" + +msgid "" +"Return a suite of all test cases contained in the :class:`TestCase`\\ " +"-derived :class:`testCaseClass`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a suite of all test cases contained in the given module. This method " +"searches *module* for classes derived from :class:`TestCase` and creates an " +"instance of the class for each test method defined for the class." +msgstr "" + +msgid "" +"While using a hierarchy of :class:`TestCase`\\ -derived classes can be " +"convenient in sharing fixtures and helper functions, defining test methods " +"on base classes that are not intended to be instantiated directly does not " +"play well with this method. Doing so, however, can be useful when the " +"fixtures are different and defined in subclasses." +msgstr "" + +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 " +"`load_tests protocol`_. The *pattern* argument is passed as the third " +"argument to ``load_tests``." +msgstr "" + +msgid "Support for ``load_tests`` added." +msgstr "" + +msgid "" +"The undocumented and unofficial *use_load_tests* default argument is " +"deprecated and ignored, although it is still accepted for backward " +"compatibility. The method also now accepts a keyword-only argument " +"*pattern* which is passed to ``load_tests`` as the third argument." +msgstr "" + +msgid "Return a suite of all test cases given a string specifier." +msgstr "" + +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\"." +msgstr "" + +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." +msgstr "" + +msgid "The method optionally resolves *name* relative to the given *module*." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return a sorted sequence of method names found within *testCaseClass*; this " +"should be a subclass of :class:`TestCase`." +msgstr "" + +msgid "" +"Find all the test modules by recursing into subdirectories from the " +"specified start directory, and return a TestSuite object containing them. " +"Only test files that match *pattern* will be loaded. (Using shell style " +"pattern matching.) Only module names that are importable (i.e. are valid " +"Python identifiers) will be loaded." +msgstr "" + +msgid "" +"All test modules must be importable from the top level of the project. If " +"the start directory is not the top level directory then the top level " +"directory must be specified separately." +msgstr "" + +msgid "" +"If importing a module fails, for example due to a syntax error, then this " +"will be recorded as a single error and discovery will continue. If the " +"import failure is due to :exc:`SkipTest` being raised, it will be recorded " +"as a skip instead of an error." +msgstr "" + +msgid "" +"If a package (a directory containing a file named :file:`__init__.py`) is " +"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``." +msgstr "" + +msgid "" +"If ``load_tests`` exists then discovery does *not* recurse into the package, " +"``load_tests`` is responsible for loading all tests in the package." +msgstr "" + +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()``." +msgstr "" + +msgid "*start_dir* can be a dotted module name as well as a directory." +msgstr "" + +msgid "" +"Modules that raise :exc:`SkipTest` on import are recorded as skips, not " +"errors." +msgstr "" + +msgid "*start_dir* can be a :term:`namespace packages `." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +"The following attributes of a :class:`TestLoader` can be configured either " +"by subclassing or assignment on an instance:" +msgstr "" + +msgid "" +"String giving the prefix of method names which will be interpreted as test " +"methods. The default value is ``'test'``." +msgstr "" + +msgid "" +"This affects :meth:`getTestCaseNames` and all the :meth:`loadTestsFrom\\*` " +"methods." +msgstr "" + +msgid "" +"Function to be used to compare method names when sorting them " +"in :meth:`getTestCaseNames` and all the :meth:`loadTestsFrom\\*` methods." +msgstr "" + +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." +msgstr "" + +msgid "This affects all the :meth:`loadTestsFrom\\*` methods." +msgstr "" + +msgid "" +"List of Unix shell-style wildcard test name patterns that test methods have " +"to match to be included in test suites (see ``-k`` option)." +msgstr "" + +msgid "" +"If this attribute is not ``None`` (the default), all test methods to be " +"included in test suites must match one of the patterns in this list. Note " +"that matches are always performed using :meth:`fnmatch.fnmatchcase`, so " +"unlike patterns passed to the ``-k`` option, simple substring patterns will " +"have to be converted using ``*`` wildcards." +msgstr "" + +msgid "" +"This class is used to compile information about which tests have succeeded " +"and which have failed." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +":class:`TestResult` instances have the following attributes that will be of " +"interest when inspecting the results of running a set of tests:" +msgstr "" + +msgid "" +"A list containing 2-tuples of :class:`TestCase` instances and strings " +"holding formatted tracebacks. Each tuple represents a test which raised an " +"unexpected exception." +msgstr "" + +msgid "" +"A list containing 2-tuples of :class:`TestCase` instances and strings " +"holding formatted tracebacks. Each tuple represents a test where a failure " +"was explicitly signalled using the :meth:`TestCase.assert\\*` methods." +msgstr "" + +msgid "" +"A list containing 2-tuples of :class:`TestCase` instances and strings " +"holding the reason for skipping the test." +msgstr "" + +msgid "" +"A list containing 2-tuples of :class:`TestCase` instances and strings " +"holding formatted tracebacks. Each tuple represents an expected failure or " +"error of the test case." +msgstr "" + +msgid "" +"A list containing :class:`TestCase` instances that were marked as expected " +"failures, but succeeded." +msgstr "" + +msgid "" +"Set to ``True`` when the execution of tests should stop by :meth:`stop`." +msgstr "" + +msgid "The total number of tests run so far." +msgstr "" + +msgid "" +"If set to true, ``sys.stdout`` and ``sys.stderr`` will be buffered in " +"between :meth:`startTest` and :meth:`stopTest` being called. Collected " +"output will only be echoed onto the real ``sys.stdout`` and ``sys.stderr`` " +"if the test fails or errors. Any output is also attached to the failure / " +"error message." +msgstr "" + +msgid "" +"If set to true :meth:`stop` will be called on the first failure or error, " +"halting the test run." +msgstr "" + +msgid "If set to true then local variables will be shown in tracebacks." +msgstr "" + +msgid "" +"Return ``True`` if all tests run so far have passed, otherwise returns " +"``False``." +msgstr "" + +msgid "" +"Returns ``False`` if there were any :attr:`unexpectedSuccesses` from tests " +"marked with the :func:`expectedFailure` decorator." +msgstr "" + +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." +msgstr "" + +msgid "" +"For example, this feature is used by the :class:`TextTestRunner` class to " +"stop the test framework when the user signals an interrupt from the " +"keyboard. Interactive tools which provide :class:`TestRunner` " +"implementations can use this in a similar manner." +msgstr "" + +msgid "" +"The following methods of the :class:`TestResult` class are used to maintain " +"the internal data structures, and may be extended in subclasses to support " +"additional reporting requirements. This is particularly useful in building " +"tools which support interactive reporting while tests are being run." +msgstr "" + +msgid "Called when the test case *test* is about to be run." +msgstr "" + +msgid "" +"Called after the test case *test* has been executed, regardless of the " +"outcome." +msgstr "" + +msgid "Called once before any tests are executed." +msgstr "" + +msgid "Called once after all tests are executed." +msgstr "" + +msgid "" +"Called when the test case *test* raises an unexpected exception. *err* is a " +"tuple of the form returned by :func:`sys.exc_info`: ``(type, value, " +"traceback)``." +msgstr "" + +msgid "" +"The default implementation appends a tuple ``(test, formatted_err)`` to the " +"instance's :attr:`errors` attribute, where *formatted_err* is a formatted " +"traceback derived from *err*." +msgstr "" + +msgid "" +"Called when the test case *test* signals a failure. *err* is a tuple of the " +"form returned by :func:`sys.exc_info`: ``(type, value, traceback)``." +msgstr "" + +msgid "" +"The default implementation appends a tuple ``(test, formatted_err)`` to the " +"instance's :attr:`failures` attribute, where *formatted_err* is a formatted " +"traceback derived from *err*." +msgstr "" + +msgid "Called when the test case *test* succeeds." +msgstr "" + +msgid "The default implementation does nothing." +msgstr "" + +msgid "" +"Called when the test case *test* is skipped. *reason* is the reason the " +"test gave for skipping." +msgstr "" + +msgid "" +"The default implementation appends a tuple ``(test, reason)`` to the " +"instance's :attr:`skipped` attribute." +msgstr "" + +msgid "" +"Called when the test case *test* fails or errors, but was marked with " +"the :func:`expectedFailure` decorator." +msgstr "" + +msgid "" +"The default implementation appends a tuple ``(test, formatted_err)`` to the " +"instance's :attr:`expectedFailures` attribute, where *formatted_err* is a " +"formatted traceback derived from *err*." +msgstr "" + +msgid "" +"Called when the test case *test* was marked with the :func:`expectedFailure` " +"decorator, but succeeded." +msgstr "" + +msgid "" +"The default implementation appends the test to the " +"instance's :attr:`unexpectedSuccesses` attribute." +msgstr "" + +msgid "" +"Called when a subtest finishes. *test* is the test case corresponding to " +"the test method. *subtest* is a custom :class:`TestCase` instance " +"describing the subtest." +msgstr "" + +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)``." +msgstr "" + +msgid "" +"The default implementation does nothing when the outcome is a success, and " +"records subtest failures as normal failures." +msgstr "" + +msgid "" +"A concrete implementation of :class:`TestResult` used by " +"the :class:`TextTestRunner`." +msgstr "" + +msgid "" +"This class was previously named ``_TextTestResult``. The old name still " +"exists as an alias but is deprecated." +msgstr "" + +msgid "" +"Instance of the :class:`TestLoader` class intended to be shared. If no " +"customization of the :class:`TestLoader` is needed, this instance can be " +"used instead of repeatedly creating new instances." +msgstr "" + +msgid "" +"A basic test runner implementation that outputs results to a stream. If " +"*stream* is ``None``, the default, :data:`sys.stderr` is used as the output " +"stream. This class has a few configurable parameters, but is essentially " +"very simple. Graphical applications which run test suites should provide " +"alternate implementations. Such implementations should accept ``**kwargs`` " +"as the interface to construct runners changes when features are added to " +"unittest." +msgstr "" + +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``." +msgstr "" + +msgid "Added the ``warnings`` argument." +msgstr "" + +msgid "" +"The default stream is set to :data:`sys.stderr` at instantiation time rather " +"than import time." +msgstr "" + +msgid "Added the tb_locals parameter." +msgstr "" + +msgid "" +"This method returns the instance of ``TestResult`` used by :meth:`run`. It " +"is not intended to be called directly, but can be overridden in subclasses " +"to provide a custom ``TestResult``." +msgstr "" + +msgid "" +"``_makeResult()`` instantiates the class or callable passed in the " +"``TextTestRunner`` constructor as the ``resultclass`` argument. It defaults " +"to :class:`TextTestResult` if no ``resultclass`` is provided. The result " +"class is instantiated with the following arguments::" +msgstr "" + +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." +msgstr "" + +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 " +"of a test script::" +msgstr "" + +msgid "" +"You can run tests with more detailed information by passing in the verbosity " +"argument::" +msgstr "" + +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 " +"tests found in *module* are run." +msgstr "" + +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 " +"values of :data:`sys.argv` are used." +msgstr "" + +msgid "" +"The *testRunner* argument can either be a test runner class or an already " +"created instance of it. By default ``main`` calls :func:`sys.exit` with an " +"exit code indicating success or failure of the tests run." +msgstr "" + +msgid "" +"The *testLoader* argument has to be a :class:`TestLoader` instance, and " +"defaults to :data:`defaultTestLoader`." +msgstr "" + +msgid "" +"``main`` supports being used from the interactive interpreter by passing in " +"the argument ``exit=False``. This displays the result on standard output " +"without calling :func:`sys.exit`::" +msgstr "" + +msgid "" +"The *failfast*, *catchbreak* and *buffer* parameters have the same effect as " +"the same-name `command-line options`_." +msgstr "" + +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'``." +msgstr "" + +msgid "" +"Calling ``main`` actually returns an instance of the ``TestProgram`` class. " +"This stores the result of the tests run as the ``result`` attribute." +msgstr "" + +msgid "The *exit* parameter was added." +msgstr "" + +msgid "" +"The *verbosity*, *failfast*, *catchbreak*, *buffer* and *warnings* " +"parameters were added." +msgstr "" + +msgid "" +"The *defaultTest* parameter was changed to also accept an iterable of test " +"names." +msgstr "" + +msgid "load_tests Protocol" +msgstr "" + +msgid "" +"Modules or packages can customize how tests are loaded from them during " +"normal test runs or test discovery by implementing a function called " +"``load_tests``." +msgstr "" + +msgid "" +"If a test module defines ``load_tests`` it will be called " +"by :meth:`TestLoader.loadTestsFromModule` with the following arguments::" +msgstr "" + +msgid "" +"where *pattern* is passed straight through from ``loadTestsFromModule``. It " +"defaults to ``None``." +msgstr "" + +msgid "It should return a :class:`TestSuite`." +msgstr "" + +msgid "" +"*loader* is the instance of :class:`TestLoader` doing the loading. " +"*standard_tests* are the tests that would be loaded by default from the " +"module. It is common for test modules to only want to add or remove tests " +"from the standard set of tests. The third argument is used when loading " +"packages as part of test discovery." +msgstr "" + +msgid "" +"A typical ``load_tests`` function that loads tests from a specific set " +"of :class:`TestCase` classes may look like::" +msgstr "" + +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 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::" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Because the pattern is passed into ``load_tests`` the package is free to " +"continue (and potentially modify) test discovery. A 'do nothing' " +"``load_tests`` function for a test package would look like::" +msgstr "" + +msgid "" +"Discovery no longer checks package names for matching *pattern* due to the " +"impossibility of package names matching the default pattern." +msgstr "" + +msgid "Class and Module Fixtures" +msgstr "" + +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." +msgstr "" + +msgid "" +"Similarly if a test is from a different module from the previous test then " +"``tearDownModule`` from the previous module is run, followed by " +"``setUpModule`` from the new module." +msgstr "" + +msgid "" +"After all the tests have run the final ``tearDownClass`` and " +"``tearDownModule`` are run." +msgstr "" + +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." +msgstr "" + +msgid "" +"The default ordering of tests created by the unittest test loaders is to " +"group all tests from the same modules and classes together. This will lead " +"to ``setUpClass`` / ``setUpModule`` (etc) being called exactly once per " +"class and module. If you randomize the order, so that tests from different " +"modules and classes are adjacent to each other, then these shared fixture " +"functions may be called multiple times in a single test run." +msgstr "" + +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." +msgstr "" + +msgid "" +"If there are any exceptions raised during one of the shared fixture " +"functions the test is reported as an error. Because there is no " +"corresponding test instance an ``_ErrorHolder`` object (that has the same " +"interface as a :class:`TestCase`) is created to represent the error. If you " +"are just using the standard unittest test runner then this detail doesn't " +"matter, but if you are a framework author it may be relevant." +msgstr "" + +msgid "setUpClass and tearDownClass" +msgstr "" + +msgid "These must be implemented as class methods::" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "setUpModule and tearDownModule" +msgstr "" + +msgid "These should be implemented as functions::" +msgstr "" + +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." +msgstr "" + +msgid "" +"To add cleanup code that must be run even in the case of an exception, use " +"``addModuleCleanup``:" +msgstr "" + +msgid "" +"Add a function to be called after :func:`tearDownModule` to cleanup " +"resources used during the test class. 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:`addModuleCleanup` when they are added." +msgstr "" + +msgid "" +"If :meth:`setUpModule` fails, meaning that :func:`tearDownModule` is not " +"called, then any cleanup functions added will still be called." +msgstr "" + +msgid "" +"This function is called unconditionally after :func:`tearDownModule`, or " +"after :func:`setUpModule` if :func:`setUpModule` raises an exception." +msgstr "" + +msgid "" +"It is responsible for calling all the cleanup functions added " +"by :func:`addModuleCleanup`. If you need cleanup functions to be called " +"*prior* to :func:`tearDownModule` then you can call :func:`doModuleCleanups` " +"yourself." +msgstr "" + +msgid "" +":func:`doModuleCleanups` pops methods off the stack of cleanup functions one " +"at a time, so it can be called at any time." +msgstr "" + +msgid "Signal Handling" +msgstr "" + +msgid "" +"The :option:`-c/--catch ` command-line option to unittest, " +"along with the ``catchbreak`` parameter to :func:`unittest.main()`, provide " +"more friendly handling of control-C during a test run. With catch break " +"behavior enabled control-C will allow the currently running test to " +"complete, and the test run will then end and report all the results so far. " +"A second control-c will raise a :exc:`KeyboardInterrupt` in the usual way." +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." +msgstr "" + +msgid "" +"There are a few utility functions for framework authors to enable control-c " +"handling functionality within test frameworks." +msgstr "" + +msgid "" +"Install the control-c handler. When a :const:`signal.SIGINT` is received " +"(usually in response to the user pressing control-c) all registered results " +"have :meth:`~TestResult.stop` called." +msgstr "" + +msgid "" +"Register a :class:`TestResult` object for control-c handling. Registering a " +"result stores a weak reference to it, so it doesn't prevent the result from " +"being garbage collected." +msgstr "" + +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." +msgstr "" + +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 response to a control-c." +msgstr "" + +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::" +msgstr "" diff --git a/library/unittest_mock.po b/library/unittest_mock.po new file mode 100644 index 0000000000..5cb9332e31 --- /dev/null +++ b/library/unittest_mock.po @@ -0,0 +1,2023 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`unittest.mock` --- mock object library" +msgstr "" + +msgid "**Source code:** :source:`Lib/unittest/mock.py`" +msgstr "**Kod źródłowy:** :source:`Lib/unittest/mock.py`" + +msgid "" +":mod:`unittest.mock` is a library for testing in Python. It allows you to " +"replace parts of your system under test with mock objects and make " +"assertions about how they have been used." +msgstr "" + +msgid "" +":mod:`unittest.mock` provides a core :class:`Mock` class removing the need " +"to create a host of stubs throughout your test suite. After performing an " +"action, you can make assertions about which methods / attributes were used " +"and arguments they were called with. You can also specify return values and " +"set needed attributes in the normal way." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Mock is designed for use with :mod:`unittest` and is based on the 'action -> " +"assertion' pattern instead of 'record -> replay' used by many mocking " +"frameworks." +msgstr "" + +msgid "" +"There is a backport of :mod:`unittest.mock` for earlier versions of Python, " +"available as `mock on PyPI `_." +msgstr "" + +msgid "Quick Guide" +msgstr "" + +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 " +"available, and then make assertions about how they have been used:" +msgstr "" + +msgid "" +":attr:`side_effect` allows you to perform side effects, including raising an " +"exception when a mock is called:" +msgstr "" + +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 " +"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 "" + +msgid "" +"The :func:`patch` decorator / context manager makes it easy to mock classes " +"or objects in a module under test. The object you specify will be replaced " +"with a mock (or other object) during the test and restored when the test " +"ends::" +msgstr "" + +msgid "" +"When you nest patch decorators the mocks are passed in to the decorated " +"function in the same order they applied (the normal *Python* order that " +"decorators are applied). This means from the bottom up, so in the example " +"above the mock for ``module.ClassName1`` is passed in first." +msgstr "" + +msgid "" +"With :func:`patch` it matters that you patch objects in the namespace where " +"they are looked up. This is normally straightforward, but for a quick guide " +"read :ref:`where to patch `." +msgstr "" + +msgid "" +"As well as a decorator :func:`patch` can be used as a context manager in a " +"with statement:" +msgstr "" + +msgid "" +"There is also :func:`patch.dict` for setting values in a dictionary just " +"during a scope and restoring the dictionary to its original state when the " +"test ends:" +msgstr "" + +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:" +msgstr "" + +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)." +msgstr "" + +msgid "" +"The following is an example of using magic methods with the ordinary Mock " +"class:" +msgstr "" + +msgid "" +"For ensuring that the mock objects in your tests have the same api as the " +"objects they are replacing, you can use :ref:`auto-speccing `. Auto-speccing can be done through the *autospec* argument to " +"patch, or the :func:`create_autospec` function. Auto-speccing creates mock " +"objects that have the same attributes and methods as the objects they are " +"replacing, and any functions and methods (including constructors) have the " +"same call signature as the real object." +msgstr "" + +msgid "" +"This ensures that your mocks will fail in the same way as your production " +"code if they are used incorrectly:" +msgstr "" + +msgid "" +":func:`create_autospec` can also be used on classes, where it copies the " +"signature of the ``__init__`` method, and on callable objects where it " +"copies the signature of the ``__call__`` method." +msgstr "" + +msgid "The Mock Class" +msgstr "" + +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 " +"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." +msgstr "" + +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`" +msgstr "" + +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` " +"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 "" + +msgid "" +"Create a new :class:`Mock` object. :class:`Mock` takes several optional " +"arguments that specify the behaviour of the Mock object:" +msgstr "" + +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 " +"(excluding unsupported magic attributes and methods). Accessing any " +"attribute not in this list will raise an :exc:`AttributeError`." +msgstr "" + +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." +msgstr "" + +msgid "" +"*spec_set*: A stricter variant of *spec*. If used, attempting to *set* or " +"get an attribute on the mock that isn't on the object passed as *spec_set* " +"will raise an :exc:`AttributeError`." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Alternatively *side_effect* can be an exception class or instance. In this " +"case the exception will be raised when the mock is called." +msgstr "" + +msgid "" +"If *side_effect* is an iterable then each call to the mock will return the " +"next value from the iterable." +msgstr "" + +msgid "A *side_effect* can be cleared by setting it to ``None``." +msgstr "" + +msgid "" +"*return_value*: The value returned when the mock is called. By default this " +"is a new Mock (created on first access). See the :attr:`return_value` " +"attribute." +msgstr "" + +msgid "" +"*unsafe*: By default, accessing any attribute with name starting with " +"*assert*, *assret*, *asert*, *aseert* or *assrt* will raise " +"an :exc:`AttributeError`. Passing ``unsafe=True`` will allow access to these " +"attributes." +msgstr "" + +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 " +"that wraps the corresponding attribute of the wrapped object (so attempting " +"to access an attribute that doesn't exist will raise " +"an :exc:`AttributeError`)." +msgstr "" + +msgid "" +"If the mock has an explicit *return_value* set then calls are not passed to " +"the wrapped object and the *return_value* is returned instead." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Assert that the mock was called at least once." +msgstr "" + +msgid "Assert that the mock was called exactly once." +msgstr "" + +msgid "" +"This method is a convenient way of asserting that the last call has been " +"made in a particular way:" +msgstr "" + +msgid "" +"Assert that the mock was called exactly once and that call was with the " +"specified arguments." +msgstr "" + +msgid "assert the mock has been called with the specified arguments." +msgstr "" + +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." +msgstr "" + +msgid "" +"assert the mock has been called with the specified calls. " +"The :attr:`mock_calls` list is checked for the calls." +msgstr "" + +msgid "" +"If *any_order* is false then the calls must be sequential. There can be " +"extra calls before or after the specified calls." +msgstr "" + +msgid "" +"If *any_order* is true then the calls can be in any order, but they must all " +"appear in :attr:`mock_calls`." +msgstr "" + +msgid "Assert the mock was never called." +msgstr "" + +msgid "The reset_mock method resets all the call attributes on a mock object:" +msgstr "" + +msgid "Added two keyword-only arguments to the reset_mock function." +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." +msgstr "" + +msgid "*return_value*, and :attr:`side_effect` are keyword-only arguments." +msgstr "" + +msgid "" +"Add a spec to a mock. *spec* can either be an object or a list of strings. " +"Only attributes on the *spec* can be fetched as attributes from the mock." +msgstr "" + +msgid "If *spec_set* is true then only attributes on the spec can be set." +msgstr "" + +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." +msgstr "" + +msgid "Set attributes on the mock through keyword arguments." +msgstr "" + +msgid "" +"Attributes plus return values and side effects can be set on child mocks " +"using standard dot notation and unpacking a dictionary in the method call:" +msgstr "" + +msgid "The same thing can be achieved in the constructor call to mocks:" +msgstr "" + +msgid "" +":meth:`configure_mock` exists to make it easier to do configuration after " +"the mock has been created." +msgstr "" + +msgid "" +":class:`Mock` objects limit the results of ``dir(some_mock)`` to useful " +"results. For mocks with a *spec* this includes all the permitted attributes " +"for the mock." +msgstr "" + +msgid "" +"See :data:`FILTER_DIR` for what this filtering does, and how to switch it " +"off." +msgstr "" + +msgid "" +"Create the child mocks for attributes and return value. By default child " +"mocks will be the same type as the parent. Subclasses of Mock may want to " +"override this to customize the way child mocks are made." +msgstr "" + +msgid "" +"For non-callable mocks the callable variant will be used (rather than any " +"custom subclass)." +msgstr "" + +msgid "A boolean representing whether or not the mock object has been called:" +msgstr "" + +msgid "An integer telling you how many times the mock object has been called:" +msgstr "" + +msgid "Set this to configure the value returned by calling the mock:" +msgstr "" + +msgid "" +"The default return value is a mock object and you can configure it in the " +"normal way:" +msgstr "" + +msgid ":attr:`return_value` can also be set in the constructor:" +msgstr "" + +msgid "" +"This can either be a function to be called when the mock is called, an " +"iterable or an exception (class or instance) to be raised." +msgstr "" +"Może to być albo funkcja do wywołania, gdy wywoływany jest mock, iterable " +"lub wyjątek (klasa lub instancja) do rzucenia." + +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`)." +msgstr "" +"Jeśli przekażesz funkcję, zostanie ona wywołana z tymi samymi argumentami co " +"mock i dopóki funkcja nie zwróci singletona :data:`DEFAULT`, wywołanie mocka " +"będzie zwracać cokolwiek zwraca funkcja. Jeśli funkcja " +"zwróci :data:`DEFAULT`, to mock zwróci swoją normalną wartość " +"(z :attr:`return_value`)." + +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)." +msgstr "" +"Jeśli przekażesz iterable, zostanie on użyty do pobrania iteratora, który " +"musi zwrócić wartość przy każdym wywołaniu. Wartość ta może być albo " +"instancją wyjątku, która ma być rzucony, albo wartością, która ma być " +"zwrócona z wywołania mocka (obsługa :data:`DEFAULT` jest identyczna do " +"przypadku funkcji)." + +msgid "" +"An example of a mock that raises an exception (to test exception handling of " +"an API):" +msgstr "" + +msgid "Using :attr:`side_effect` to return a sequence of values:" +msgstr "" + +msgid "Using a callable:" +msgstr "" + +msgid "" +":attr:`side_effect` can be set in the constructor. Here's an example that " +"adds one to the value the mock is called with and returns it:" +msgstr "" + +msgid "Setting :attr:`side_effect` to ``None`` clears it:" +msgstr "" + +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, which can also be accessed through the ``args`` property, is " +"any ordered arguments the mock was called with (or an empty tuple) and the " +"second member, which can also be accessed through the ``kwargs`` property, " +"is any keyword arguments (or an empty dictionary)." +msgstr "" + +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 are tuples, so they can be unpacked to get " +"at the individual arguments and make more complex assertions. " +"See :ref:`calls as tuples `." +msgstr "" + +msgid "Added ``args`` and ``kwargs`` properties." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Members of :attr:`call_args_list` are :data:`call` objects. These can be " +"unpacked as tuples to get at the individual arguments. See :ref:`calls as " +"tuples `." +msgstr "" + +msgid "" +"As well as tracking calls to themselves, mocks also track calls to methods " +"and attributes, and *their* methods and attributes:" +msgstr "" + +msgid "" +"Members of :attr:`method_calls` are :data:`call` objects. These can be " +"unpacked as tuples to get at the individual arguments. See :ref:`calls as " +"tuples `." +msgstr "" + +msgid "" +":attr:`mock_calls` records *all* calls to the mock object, its methods, " +"magic methods *and* return value mocks." +msgstr "" + +msgid "" +"Members of :attr:`mock_calls` are :data:`call` objects. These can be " +"unpacked as tuples to get at the individual arguments. See :ref:`calls as " +"tuples `." +msgstr "" + +msgid "" +"The way :attr:`mock_calls` are recorded means that where nested calls are " +"made, the parameters of ancestor calls are not recorded and so will always " +"compare equal:" +msgstr "" + +msgid "" +"Normally the :attr:`__class__` attribute of an object will return its type. " +"For a mock object with a :attr:`spec`, ``__class__`` returns the spec class " +"instead. This allows mock objects to pass :func:`isinstance` tests for the " +"object they are replacing / masquerading as:" +msgstr "" + +msgid "" +":attr:`__class__` is assignable to, this allows a mock to pass " +"an :func:`isinstance` check without forcing you to use a spec:" +msgstr "" + +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 " +"*side_effect* which have no meaning on a non-callable mock." +msgstr "" + +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:" +msgstr "" + +msgid "" +"The :class:`Mock` classes have support for mocking magic methods. " +"See :ref:`magic methods ` for the full details." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The return value and side effect of child mocks can be set in the same way, " +"using dotted notation. As you can't use dotted names directly in a call you " +"have to create a dictionary and unpack it using ``**``:" +msgstr "" + +msgid "" +"A callable mock which was created with a *spec* (or a *spec_set*) will " +"introspect the specification object's signature when matching calls to the " +"mock. Therefore, it can match the actual call's arguments regardless of " +"whether they were passed positionally or by name::" +msgstr "" + +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." +msgstr "" + +msgid "Added signature introspection on specced and autospecced mock objects." +msgstr "" + +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." +msgstr "" + +msgid "" +"Fetching a :class:`PropertyMock` instance from an object calls the mock, " +"with no args. Setting it calls the mock with the value being set. ::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"An asynchronous version of :class:`MagicMock`. The :class:`AsyncMock` object " +"will behave so the object is recognized as an async function, and the result " +"of a call is an awaitable." +msgstr "" + +msgid "" +"The result of ``mock()`` is an async function which will have the outcome of " +"``side_effect`` or ``return_value`` after it has been awaited:" +msgstr "" + +msgid "" +"if ``side_effect`` is a function, the async function will return the result " +"of that function," +msgstr "" + +msgid "" +"if ``side_effect`` is an exception, the async function will raise the " +"exception," +msgstr "" + +msgid "" +"if ``side_effect`` is an iterable, the async function will return the next " +"value of the iterable, however, if the sequence of result is exhausted, " +"``StopAsyncIteration`` is raised immediately," +msgstr "" + +msgid "" +"if ``side_effect`` is not defined, the async function will return the value " +"defined by ``return_value``, hence, by default, the async function returns a " +"new :class:`AsyncMock` object." +msgstr "" + +msgid "" +"Setting the *spec* of a :class:`Mock` or :class:`MagicMock` to an async " +"function will result in a coroutine object being returned after calling." +msgstr "" + +msgid "" +"Setting the *spec* of a :class:`Mock`, :class:`MagicMock`, " +"or :class:`AsyncMock` to a class with asynchronous and synchronous functions " +"will automatically detect the synchronous functions and set them " +"as :class:`MagicMock` (if the parent mock is :class:`AsyncMock` " +"or :class:`MagicMock`) or :class:`Mock` (if the parent mock " +"is :class:`Mock`). All asynchronous functions will be :class:`AsyncMock`." +msgstr "" + +msgid "" +"Assert that the mock was awaited at least once. Note that this is separate " +"from the object having been called, the ``await`` keyword must be used:" +msgstr "" + +msgid "Assert that the mock was awaited exactly once." +msgstr "" + +msgid "Assert that the last await was with the specified arguments." +msgstr "" + +msgid "" +"Assert that the mock was awaited exactly once and with the specified " +"arguments." +msgstr "" + +msgid "Assert the mock has ever been awaited with the specified arguments." +msgstr "" + +msgid "" +"Assert the mock has been awaited with the specified calls. " +"The :attr:`await_args_list` list is checked for the awaits." +msgstr "" + +msgid "" +"If *any_order* is false then the awaits must be sequential. There can be " +"extra calls before or after the specified awaits." +msgstr "" + +msgid "" +"If *any_order* is true then the awaits can be in any order, but they must " +"all appear in :attr:`await_args_list`." +msgstr "" + +msgid "Assert that the mock was never awaited." +msgstr "" + +msgid "" +"See :func:`Mock.reset_mock`. Also sets :attr:`await_count` to " +"0, :attr:`await_args` to None, and clears the :attr:`await_args_list`." +msgstr "" + +msgid "" +"An integer keeping track of how many times the mock object has been awaited." +msgstr "" + +msgid "" +"This is either ``None`` (if the mock hasn’t been awaited), or the arguments " +"that the mock was last awaited with. Functions the same " +"as :attr:`Mock.call_args`." +msgstr "" + +msgid "" +"This is a list of all the awaits made to the mock object in sequence (so the " +"length of the list is the number of times it has been awaited). Before any " +"awaits have been made it is an empty list." +msgstr "" + +msgid "Calling" +msgstr "" + +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 explicitly or by calling the Mock) - but it is stored and the same " +"one returned each time." +msgstr "" + +msgid "" +"Calls made to the object will be recorded in the attributes " +"like :attr:`~Mock.call_args` and :attr:`~Mock.call_args_list`." +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid "" +"If :attr:`side_effect` is a function then whatever that function returns is " +"what calls to the mock return. The :attr:`side_effect` function is called " +"with the same arguments as the mock. This allows you to vary the return " +"value of the call dynamically, based on the input:" +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`:" +msgstr "" + +msgid "" +"To remove a :attr:`side_effect`, and return to the default behaviour, set " +"the :attr:`side_effect` to ``None``:" +msgstr "" + +msgid "" +"The :attr:`side_effect` can also be any iterable object. Repeated calls to " +"the mock will return values from the iterable (until the iterable is " +"exhausted and a :exc:`StopIteration` is raised):" +msgstr "" + +msgid "" +"If any members of the iterable are exceptions they will be raised instead of " +"returned::" +msgstr "" + +msgid "Deleting Attributes" +msgstr "" + +msgid "" +"Mock objects create attributes on demand. This allows them to pretend to be " +"objects of any type." +msgstr "" + +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." +msgstr "" + +msgid "" +"You \"block\" attributes by deleting them. Once deleted, accessing an " +"attribute will raise an :exc:`AttributeError`." +msgstr "" + +msgid "Mock names and the name attribute" +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`::" +msgstr "" + +msgid "" +"A simpler option is to simply set the \"name\" attribute after mock " +"creation::" +msgstr "" + +msgid "Attaching Mocks as Attributes" +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 " +"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:" +msgstr "" + +msgid "" +"The exception to this is if the mock has a name. This allows you to prevent " +"the \"parenting\" if for some reason you don't want it to happen." +msgstr "" + +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::" +msgstr "" + +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 " +"support see :ref:`magic methods `." +msgstr "" + +msgid "The patchers" +msgstr "" + +msgid "" +"The patch decorators are used for patching objects only within the scope of " +"the function they decorate. They automatically handle the unpatching for " +"you, even if exceptions are raised. All of these functions can also be used " +"in with statements or as class decorators." +msgstr "" + +msgid "patch" +msgstr "" + +msgid "" +"The key is to do the patching in the right namespace. See the section `where " +"to patch`_." +msgstr "" + +msgid "" +":func:`patch` acts as a function decorator, class decorator or a context " +"manager. Inside the body of the function or with statement, the *target* is " +"patched with a *new* object. When the function/with statement exits the " +"patch is undone." +msgstr "" + +msgid "" +"If *new* is omitted, then the target is replaced with an :class:`AsyncMock` " +"if the patched object is an async function or a :class:`MagicMock` " +"otherwise. 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." +msgstr "" + +msgid "" +"*target* should be a string in the form ``'package.module.ClassName'``. The " +"*target* is imported and the specified object replaced with the *new* " +"object, so the *target* must be importable from the environment you are " +"calling :func:`patch` from. The target is imported when the decorated " +"function is executed, not at decoration time." +msgstr "" + +msgid "" +"The *spec* and *spec_set* keyword arguments are passed to " +"the :class:`MagicMock` if patch is creating one for you." +msgstr "" + +msgid "" +"In addition you can pass ``spec=True`` or ``spec_set=True``, which causes " +"patch to pass in the object being mocked as the spec/spec_set object." +msgstr "" + +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:`AsyncMock` is used for async functions " +"and :class:`MagicMock` for the rest." +msgstr "" + +msgid "" +"A more powerful form of *spec* is *autospec*. If you set ``autospec=True`` " +"then the mock will be created with a spec from the object being replaced. " +"All attributes of the mock will also have the spec of the corresponding " +"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`." +msgstr "" + +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." +msgstr "" + +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 " +"write passing tests against APIs that don't actually exist!" +msgstr "" + +msgid "" +"If you are patching builtins in a module then you don't need to pass " +"``create=True``, it will be added by default." +msgstr "" + +msgid "" +"Patch can be used as a :class:`TestCase` class decorator. It works by " +"decorating each test method in the class. This reduces the boilerplate code " +"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``." +msgstr "" + +msgid "" +"Patch can be used as a context manager, with the with statement. Here the " +"patching applies to the indented block after the with statement. If you use " +"\"as\" then the patched object will be bound to the name after the \"as\"; " +"very useful if :func:`patch` is creating a mock object for you." +msgstr "" + +msgid "" +":func:`patch` takes arbitrary keyword arguments. These will be passed " +"to :class:`AsyncMock` if the patched object is asynchronous, " +"to :class:`MagicMock` otherwise or to *new_callable* if specified." +msgstr "" + +msgid "" +"``patch.dict(...)``, ``patch.multiple(...)`` and ``patch.object(...)`` are " +"available for alternate use-cases." +msgstr "" + +msgid "" +":func:`patch` as function decorator, creating the mock for you and passing " +"it into the decorated function::" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"To configure return values on methods of *instances* on the patched class " +"you must do this on the :attr:`return_value`. For example::" +msgstr "" + +msgid "" +"If you use *spec* or *spec_set* and :func:`patch` is replacing a *class*, " +"then the return value of the created mock will have the same spec. ::" +msgstr "" + +msgid "" +"The *new_callable* argument is useful where you want to use an alternative " +"class to the default :class:`MagicMock` for the created mock. For example, " +"if you wanted a :class:`NonCallableMock` to be used::" +msgstr "" + +msgid "" +"Another use case might be to replace an object with an :class:`io.StringIO` " +"instance::" +msgstr "" + +msgid "" +"When :func:`patch` is creating a mock for you, it is common that the first " +"thing you need to do is to configure the mock. Some of that configuration " +"can be done in the call to patch. Any arbitrary keywords you pass into the " +"call will be used to set attributes on the created mock::" +msgstr "" + +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 ``**``::" +msgstr "" + +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`::" +msgstr "" + +msgid "" +"but adding ``create=True`` in the call to :func:`patch` will make the " +"previous example work as expected::" +msgstr "" + +msgid "" +":func:`patch` now returns an :class:`AsyncMock` if the target is an async " +"function." +msgstr "" + +msgid "patch.object" +msgstr "" + +msgid "" +"patch the named member (*attribute*) on an object (*target*) with a mock " +"object." +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 configuring the mock object it creates." +msgstr "" + +msgid "" +"When used as a class decorator :func:`patch.object` honours " +"``patch.TEST_PREFIX`` for choosing which methods to wrap." +msgstr "" + +msgid "" +"You can either call :func:`patch.object` with three arguments or two " +"arguments. The three argument form takes the object to be patched, the " +"attribute name and the object to replace the attribute with." +msgstr "" + +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 " +"decorated function:" +msgstr "" + +msgid "" +"*spec*, *create* and the other arguments to :func:`patch.object` have the " +"same meaning as they do for :func:`patch`." +msgstr "" + +msgid "patch.dict" +msgstr "" + +msgid "" +"Patch a dictionary, or dictionary like object, and restore the dictionary to " +"its original state after the test." +msgstr "" + +msgid "" +"*in_dict* can be a dictionary or a mapping like container. If it is a " +"mapping then it must at least support getting, setting and deleting items " +"plus iterating over keys." +msgstr "" + +msgid "" +"*in_dict* can also be a string specifying the name of the dictionary, which " +"will then be fetched by importing it." +msgstr "" + +msgid "" +"*values* can be a dictionary of values to set in the dictionary. *values* " +"can also be an iterable of ``(key, value)`` pairs." +msgstr "" + +msgid "" +"If *clear* is true then the dictionary will be cleared before the new values " +"are set." +msgstr "" + +msgid "" +":func:`patch.dict` can also be called with arbitrary keyword arguments to " +"set values in the dictionary." +msgstr "" + +msgid "" +":func:`patch.dict` now returns the patched dictionary when used as a context " +"manager." +msgstr "" + +msgid "" +":func:`patch.dict` can be used as a context manager, decorator or class " +"decorator:" +msgstr "" + +msgid "" +"When used as a class decorator :func:`patch.dict` honours " +"``patch.TEST_PREFIX`` (default to ``'test'``) for choosing which methods to " +"wrap:" +msgstr "" + +msgid "" +"If you want to use a different prefix for your test, you can inform the " +"patchers of the different prefix by setting ``patch.TEST_PREFIX``. For more " +"details about how to change the value of see :ref:`test-prefix`." +msgstr "" + +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 " +"test ends." +msgstr "" + +msgid "" +"Keywords can be used in the :func:`patch.dict` call to set values in the " +"dictionary:" +msgstr "" + +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__`." +msgstr "" + +msgid "patch.multiple" +msgstr "" + +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 " +"keyword arguments for the patches::" +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." +msgstr "" + +msgid "" +":func:`patch.multiple` can be used as a decorator, class decorator or a " +"context manager. The arguments *spec*, *spec_set*, *create*, *autospec* and " +"*new_callable* have the same meaning as for :func:`patch`. These arguments " +"will be applied to *all* patches done by :func:`patch.multiple`." +msgstr "" + +msgid "" +"When used as a class decorator :func:`patch.multiple` honours " +"``patch.TEST_PREFIX`` for choosing which methods to wrap." +msgstr "" + +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 " +"decorator then the created mocks are passed into the decorated function by " +"keyword. ::" +msgstr "" + +msgid "" +":func:`patch.multiple` can be nested with other ``patch`` decorators, but " +"put arguments passed by keyword *after* any of the standard arguments " +"created by :func:`patch`::" +msgstr "" + +msgid "" +"If :func:`patch.multiple` is used as a context manager, the value returned " +"by the context manager is a dictionary where created mocks are keyed by " +"name::" +msgstr "" + +msgid "patch methods: start and stop" +msgstr "" + +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." +msgstr "" + +msgid "" +"To use them call :func:`patch`, :func:`patch.object` or :func:`patch.dict` " +"as normal and keep a reference to the returned ``patcher`` object. You can " +"then call :meth:`start` to put the patch in place and :meth:`stop` to undo " +"it." +msgstr "" + +msgid "" +"If you are using :func:`patch` to create a mock for you then it will be " +"returned by the call to ``patcher.start``. ::" +msgstr "" + +msgid "" +"A typical use case for this might be for doing multiple patches in the " +"``setUp`` method of a :class:`TestCase`::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"As an added bonus you no longer need to keep a reference to the ``patcher`` " +"object." +msgstr "" + +msgid "" +"It is also possible to stop all patches which have been started by " +"using :func:`patch.stopall`." +msgstr "" + +msgid "Stop all active patches. Only stops patches started with ``start``." +msgstr "" + +msgid "patch builtins" +msgstr "" + +msgid "" +"You can patch any builtins within a module. The following example patches " +"builtin :func:`ord`::" +msgstr "" + +msgid "TEST_PREFIX" +msgstr "" + +msgid "" +"All of the patchers can be used as class decorators. When used in this way " +"they wrap every test method on the class. The patchers recognise methods " +"that start with ``'test'`` as being test methods. This is the same way that " +"the :class:`unittest.TestLoader` finds test methods by default." +msgstr "" + +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``::" +msgstr "" + +msgid "Nesting Patch Decorators" +msgstr "" + +msgid "" +"If you want to perform multiple patches then you can simply stack up the " +"decorators." +msgstr "" + +msgid "You can stack up multiple patch decorators using this pattern:" +msgstr "" + +msgid "" +"Note that the decorators are applied from the bottom upwards. This is the " +"standard way that Python applies decorators. The order of the created mocks " +"passed into your test function matches this order." +msgstr "" + +msgid "Where to patch" +msgstr "" + +msgid "" +":func:`patch` works by (temporarily) changing the object that a *name* " +"points to with another one. There can be many names pointing to any " +"individual object, so for patching to work you must ensure that you patch " +"the name used by the system under test." +msgstr "" + +msgid "" +"The basic principle is that you patch where an object is *looked up*, which " +"is not necessarily the same place as where it is defined. A couple of " +"examples will help to clarify this." +msgstr "" + +msgid "" +"Imagine we have a project that we want to test with the following structure::" +msgstr "" + +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." +msgstr "" + +msgid "" +"The key is to patch out ``SomeClass`` where it is used (or where it is " +"looked up). In this case ``some_function`` will actually look up " +"``SomeClass`` in module b, where we have imported it. The patching should " +"look like::" +msgstr "" + +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::" +msgstr "" + +msgid "Patching Descriptors and Proxy Objects" +msgstr "" + +msgid "" +"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 `_." +msgstr "" + +msgid "MagicMock and magic method support" +msgstr "" + +msgid "Mocking Magic Methods" +msgstr "" + +msgid "" +":class:`Mock` supports mocking the Python protocol methods, also known as " +"\"magic methods\". This allows mock objects to replace containers or other " +"objects that implement Python protocols." +msgstr "" + +msgid "" +"Because magic methods are looked up differently from normal methods [#]_, " +"this support has been specially implemented. This means that only specific " +"magic methods are supported. The supported list includes *almost* all of " +"them. If there are any missing that you need please let us know." +msgstr "" + +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 [#]_." +msgstr "" + +msgid "" +"One use case for this is for mocking objects used as context managers in " +"a :keyword:`with` statement:" +msgstr "" + +msgid "" +"Calls to magic methods do not appear in :attr:`~Mock.method_calls`, but they " +"are recorded in :attr:`~Mock.mock_calls`." +msgstr "" + +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`." +msgstr "" + +msgid "The full list of supported magic methods is:" +msgstr "" + +msgid "``__hash__``, ``__sizeof__``, ``__repr__`` and ``__str__``" +msgstr "" + +msgid "``__dir__``, ``__format__`` and ``__subclasses__``" +msgstr "" + +msgid "``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``" +msgstr "" + +msgid "" +"Comparisons: ``__lt__``, ``__gt__``, ``__le__``, ``__ge__``, ``__eq__`` and " +"``__ne__``" +msgstr "" + +msgid "" +"Container methods: ``__getitem__``, ``__setitem__``, ``__delitem__``, " +"``__contains__``, ``__len__``, ``__iter__``, ``__reversed__`` and " +"``__missing__``" +msgstr "" + +msgid "" +"Context manager: ``__enter__``, ``__exit__``, ``__aenter__`` and " +"``__aexit__``" +msgstr "" + +msgid "Unary numeric methods: ``__neg__``, ``__pos__`` and ``__invert__``" +msgstr "" + +msgid "" +"The numeric methods (including right hand and in-place variants): " +"``__add__``, ``__sub__``, ``__mul__``, ``__matmul__``, ``__div__``, " +"``__truediv__``, ``__floordiv__``, ``__mod__``, ``__divmod__``, " +"``__lshift__``, ``__rshift__``, ``__and__``, ``__xor__``, ``__or__``, and " +"``__pow__``" +msgstr "" + +msgid "" +"Numeric conversion methods: ``__complex__``, ``__int__``, ``__float__`` and " +"``__index__``" +msgstr "" + +msgid "Descriptor methods: ``__get__``, ``__set__`` and ``__delete__``" +msgstr "" + +msgid "" +"Pickling: ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, " +"``__getnewargs__``, ``__getstate__`` and ``__setstate__``" +msgstr "" + +msgid "File system path representation: ``__fspath__``" +msgstr "" + +msgid "Asynchronous iteration methods: ``__aiter__`` and ``__anext__``" +msgstr "" + +msgid "Added support for :func:`os.PathLike.__fspath__`." +msgstr "" + +msgid "" +"Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and " +"``__anext__``." +msgstr "" + +msgid "" +"The following methods exist but are *not* supported as they are either in " +"use by mock, can't be set dynamically, or can cause problems:" +msgstr "" + +msgid "``__getattr__``, ``__setattr__``, ``__init__`` and ``__new__``" +msgstr "" + +msgid "" +"``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``" +msgstr "" + +msgid "Magic Mock" +msgstr "" + +msgid "" +"There are two ``MagicMock`` variants: :class:`MagicMock` " +"and :class:`NonCallableMagicMock`." +msgstr "" + +msgid "" +"``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 "" + +msgid "The constructor parameters have the same meaning as for :class:`Mock`." +msgstr "" + +msgid "" +"If you use the *spec* or *spec_set* arguments then *only* magic methods that " +"exist in the spec will be created." +msgstr "" + +msgid "A non-callable version of :class:`MagicMock`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The magic methods are setup with :class:`MagicMock` objects, so you can " +"configure them and use them in the usual way:" +msgstr "" + +msgid "" +"By default many of the protocol methods are required to return objects of a " +"specific type. These methods are preconfigured with a default return value, " +"so that they can be used without you having to do anything if you aren't " +"interested in the return value. You can still *set* the return value " +"manually if you want to change the default." +msgstr "" + +msgid "Methods and their defaults:" +msgstr "" + +msgid "``__lt__``: ``NotImplemented``" +msgstr "" + +msgid "``__gt__``: ``NotImplemented``" +msgstr "" + +msgid "``__le__``: ``NotImplemented``" +msgstr "" + +msgid "``__ge__``: ``NotImplemented``" +msgstr "" + +msgid "``__int__``: ``1``" +msgstr "``__int__``: ``1``" + +msgid "``__contains__``: ``False``" +msgstr "``__contains__``: ``False``" + +msgid "``__len__``: ``0``" +msgstr "``__len__``: ``0``" + +msgid "``__iter__``: ``iter([])``" +msgstr "``__iter__``: ``iter([])``" + +msgid "``__exit__``: ``False``" +msgstr "``__exit__``: ``False``" + +msgid "``__aexit__``: ``False``" +msgstr "``__aexit__``: ``False``" + +msgid "``__complex__``: ``1j``" +msgstr "``__complex__``: ``1j``" + +msgid "``__float__``: ``1.0``" +msgstr "``__float__``: ``1.0``" + +msgid "``__bool__``: ``True``" +msgstr "``__bool__``: ``True``" + +msgid "``__index__``: ``1``" +msgstr "``__index__``: ``1``" + +msgid "``__hash__``: default hash for the mock" +msgstr "" + +msgid "``__str__``: default str for the mock" +msgstr "" + +msgid "``__sizeof__``: default sizeof for the mock" +msgstr "" + +msgid "For example:" +msgstr "Na przykład::" + +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::" +msgstr "" + +msgid "" +"The return value of :meth:`MagicMock.__iter__` can be any iterable object " +"and isn't required to be an iterator:" +msgstr "" + +msgid "" +"If the return value *is* an iterator, then iterating over it once will " +"consume it and subsequent iterations will result in an empty list:" +msgstr "" + +msgid "" +"``MagicMock`` has all of the supported magic methods configured except for " +"some of the obscure and obsolete ones. You can still set these up if you " +"want." +msgstr "" + +msgid "" +"Magic methods that are supported but not setup by default in ``MagicMock`` " +"are:" +msgstr "" + +msgid "``__subclasses__``" +msgstr "``__subclasses__``" + +msgid "``__dir__``" +msgstr "``__dir__``" + +msgid "``__format__``" +msgstr "``__format__``" + +msgid "``__get__``, ``__set__`` and ``__delete__``" +msgstr "" + +msgid "``__reversed__`` and ``__missing__``" +msgstr "" + +msgid "" +"``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``, " +"``__getstate__`` and ``__setstate__``" +msgstr "" + +msgid "``__getformat__`` and ``__setformat__``" +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." +msgstr "" + +msgid "" +"The function is basically hooked up to the class, but each ``Mock`` instance " +"is kept isolated from the others." +msgstr "" + +msgid "Helpers" +msgstr "" + +msgid "sentinel" +msgstr "" + +msgid "" +"The ``sentinel`` object provides a convenient way of providing unique " +"objects for your tests." +msgstr "" + +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." +msgstr "" + +msgid "" +"The ``sentinel`` attributes now preserve their identity when they " +"are :mod:`copied ` or :mod:`pickled `." +msgstr "" + +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." +msgstr "" + +msgid "" +"In this example we monkey patch ``method`` to return " +"``sentinel.some_object``:" +msgstr "" + +msgid "DEFAULT" +msgstr "" + +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." +msgstr "" + +msgid "call" +msgstr "" + +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`." +msgstr "" + +msgid "" +"For a call object that represents multiple calls, :meth:`call_list` returns " +"a list of all the intermediate calls as well as the final call." +msgstr "" + +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 " +"constructing the sequence of calls can be tedious." +msgstr "" + +msgid "" +":meth:`~call.call_list` can construct the sequence of calls from the same " +"chained call:" +msgstr "" + +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." +msgstr "" + +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)." +msgstr "" + +msgid "" +"You can use their \"tupleness\" to pull out the individual arguments for " +"more complex introspection and assertions. The positional arguments are a " +"tuple (an empty tuple if there are no positional arguments) and the keyword " +"arguments are a dictionary:" +msgstr "" + +msgid "create_autospec" +msgstr "" + +msgid "" +"Create a mock object using another object as a spec. Attributes on the mock " +"will use the corresponding attribute on the *spec* object as their spec." +msgstr "" + +msgid "" +"Functions or methods being mocked will have their arguments checked to " +"ensure that they are called with the correct signature." +msgstr "" + +msgid "" +"If *spec_set* is ``True`` then attempting to set attributes that don't exist " +"on the spec object will raise an :exc:`AttributeError`." +msgstr "" + +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." +msgstr "" + +msgid "" +":func:`create_autospec` also takes arbitrary keyword arguments that are " +"passed to the constructor of the created mock." +msgstr "" + +msgid "" +"See :ref:`auto-speccing` for examples of how to use auto-speccing " +"with :func:`create_autospec` and the *autospec* argument to :func:`patch`." +msgstr "" + +msgid "" +":func:`create_autospec` now returns an :class:`AsyncMock` if the target is " +"an async function." +msgstr "" + +msgid "ANY" +msgstr "" + +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 " +"pull them individually out of :attr:`~Mock.call_args` and make more complex " +"assertions on them." +msgstr "" + +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." +msgstr "" + +msgid "" +":data:`ANY` can also be used in comparisons with call lists " +"like :attr:`~Mock.mock_calls`:" +msgstr "" + +msgid "FILTER_DIR" +msgstr "" + +msgid "" +":data:`FILTER_DIR` is a module level variable that controls the way mock " +"objects respond to :func:`dir` (only for Python 2.6 or more recent). The " +"default is ``True``, which uses the filtering described below, to only show " +"useful members. If you dislike this filtering, or need to switch it off for " +"diagnostic purposes, then set ``mock.FILTER_DIR = False``." +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 " +"yet:" +msgstr "" + +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 " +"dislike this behaviour you can switch it off by setting the module level " +"switch :data:`FILTER_DIR`:" +msgstr "" + +msgid "" +"Alternatively you can just use ``vars(my_mock)`` (instance members) and " +"``dir(type(my_mock))`` (type members) to bypass the filtering irrespective " +"of :data:`mock.FILTER_DIR`." +msgstr "" + +msgid "mock_open" +msgstr "" + +msgid "" +"A helper function to create a mock to replace the use of :func:`open`. It " +"works for :func:`open` called directly or used as a context manager." +msgstr "" + +msgid "" +"The *mock* argument is the mock object to configure. If ``None`` (the " +"default) then a :class:`MagicMock` will be created for you, with the API " +"limited to methods or attributes available on standard file handles." +msgstr "" + +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." +msgstr "" + +msgid "" +"Added :meth:`~io.IOBase.readline` and :meth:`~io.IOBase.readlines` support. " +"The mock of :meth:`~io.IOBase.read` changed to consume *read_data* rather " +"than returning it on each call." +msgstr "" + +msgid "*read_data* is now reset on each call to the *mock*." +msgstr "" + +msgid "" +"Added :meth:`__iter__` to implementation so that iteration (such as in for " +"loops) correctly consumes *read_data*." +msgstr "" + +msgid "" +"Using :func:`open` as a context manager is a great way to ensure your file " +"handles are closed properly and is becoming common::" +msgstr "" + +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)." +msgstr "" + +msgid "" +"Mocking context managers with a :class:`MagicMock` is common enough and " +"fiddly enough that a helper function is useful. ::" +msgstr "" + +msgid "And for reading files::" +msgstr "" + +msgid "Autospeccing" +msgstr "" + +msgid "" +"Autospeccing is based on the existing :attr:`spec` feature of mock. It " +"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." +msgstr "" + +msgid "Before I explain how auto-speccing works, here's why it is needed." +msgstr "" + +msgid "" +":class:`Mock` is a very powerful and flexible object, but it suffers from " +"two flaws when used to mock out objects from a system under test. One of " +"these flaws is specific to the :class:`Mock` api and the other is a more " +"general problem with using mock objects." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Because mocks auto-create attributes on demand, and allow you to call them " +"with arbitrary arguments, if you misspell one of these assert methods then " +"your assertion is gone:" +msgstr "" + +msgid "Your tests can pass silently and incorrectly because of the typo." +msgstr "" + +msgid "" +"The second issue is more general to mocking. If you refactor some of your " +"code, rename members and so on, any tests for code that is still using the " +"*old api* but uses mocks instead of the real objects will still pass. This " +"means your tests can all pass even though your code is broken." +msgstr "" + +msgid "" +"Note that this is another reason why you need integration tests as well as " +"unit tests. Testing everything in isolation is all fine and dandy, but if " +"you don't test how your units are \"wired together\" there is still lots of " +"room for bugs that tests might have caught." +msgstr "" + +msgid "" +":mod:`mock` already provides a feature to help with this, called speccing. " +"If you use a class or instance as the :attr:`spec` for a mock then you can " +"only access attributes on the mock that exist on the real class:" +msgstr "" + +msgid "" +"The spec only applies to the mock itself, so we still have the same issue " +"with any methods on the mock:" +msgstr "" + +msgid "" +"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 " +"is created as attributes on the mock are accessed) you can use it with very " +"complex or deeply nested objects (like modules that import modules that " +"import modules) without a big performance hit." +msgstr "" + +msgid "Here's an example of it in use::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"The spec also applies to instantiated classes (i.e. the return value of " +"specced mocks)::" +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::" +msgstr "" + +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." +msgstr "" + +msgid "" +"As well as using *autospec* through :func:`patch` there is " +"a :func:`create_autospec` for creating autospecced mocks directly:" +msgstr "" + +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 [#]_." +msgstr "" + +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. ::" +msgstr "" + +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::" +msgstr "" + +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:" +msgstr "" + +msgid "" +"Probably the best way of solving the problem is to add class attributes as " +"default values for instance members initialised in :meth:`__init__`. Note " +"that if you are only setting default attributes in :meth:`__init__` then " +"providing them via class attributes (shared between instances of course) is " +"faster too. e.g." +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):" +msgstr "" + +msgid "" +"If modifying your production classes to add defaults isn't to your liking " +"then there are more options. One of these is simply to use an instance as " +"the spec rather than the class. The other is to create a subclass of the " +"production class and add the defaults to the subclass without affecting the " +"production class. Both of these require you to use an alternative object as " +"the spec. Thankfully :func:`patch` supports this - you can simply pass the " +"alternative object as the *autospec* argument::" +msgstr "" + +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." +msgstr "" + +msgid "Sealing mocks" +msgstr "" + +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." +msgstr "" + +msgid "" +"If a mock instance with a name or a spec is assigned to an attribute it " +"won't be considered in the sealing chain. This allows one to prevent seal " +"from fixing part of the mock object. ::" +msgstr "" diff --git a/library/unix.po b/library/unix.po new file mode 100644 index 0000000000..46fd68104e --- /dev/null +++ b/library/unix.po @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Unix Specific Services" +msgstr "Unix Usługi specjalne" + +msgid "" +"The modules described in this chapter provide interfaces to features that " +"are unique to the Unix operating system, or in some cases to some or many " +"variants of it. Here's an overview:" +msgstr "" diff --git a/library/urllib_parse.po b/library/urllib_parse.po index efed367cb8..a2d5a61927 100644 --- a/library/urllib_parse.po +++ b/library/urllib_parse.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`urllib.parse` --- Parse URLs into components" msgstr "" msgid "**Source code:** :source:`Lib/urllib/parse.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/urllib/parse.py`" msgid "" "This module defines a standard interface to break Uniform Resource Locator " @@ -61,9 +61,9 @@ msgstr "" 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 into smaller parts (for example, the " +"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 into 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:" @@ -95,10 +95,10 @@ msgid "" msgstr "" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Value" msgstr "Wartość" @@ -107,7 +107,7 @@ msgid "Value if not present" msgstr "" msgid ":attr:`scheme`" -msgstr "" +msgstr ":attr:`scheme`" msgid "0" msgstr "0" @@ -119,7 +119,7 @@ msgid "*scheme* parameter" msgstr "" msgid ":attr:`netloc`" -msgstr "" +msgstr ":attr:`netloc`" msgid "1" msgstr "1" @@ -131,7 +131,7 @@ msgid "empty string" msgstr "" msgid ":attr:`path`" -msgstr "" +msgstr ":attr:`path`" msgid "2" msgstr "2" @@ -140,16 +140,16 @@ msgid "Hierarchical path" msgstr "" msgid ":attr:`params`" -msgstr "" +msgstr ":attr:`params`" msgid "3" -msgstr "" +msgstr "3" msgid "Parameters for last path element" msgstr "" msgid ":attr:`query`" -msgstr "" +msgstr ":attr:`query`" msgid "4" msgstr "4" @@ -158,37 +158,37 @@ msgid "Query component" msgstr "" msgid ":attr:`fragment`" -msgstr "" +msgstr ":attr:`fragment`" msgid "5" -msgstr "" +msgstr "5" msgid "Fragment identifier" msgstr "" msgid ":attr:`username`" -msgstr "" +msgstr ":attr:`username`" msgid "User name" msgstr "" msgid ":const:`None`" -msgstr "" +msgstr ":const:`None`" msgid ":attr:`password`" -msgstr "" +msgstr ":attr:`password`" msgid "Password" msgstr "" msgid ":attr:`hostname`" -msgstr "" +msgstr ":attr:`hostname`" msgid "Host name (lower case)" msgstr "" msgid ":attr:`port`" -msgstr "" +msgstr ":attr:`port`" msgid "Port number as integer, if present" msgstr "" @@ -200,8 +200,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -213,9 +213,14 @@ msgstr "" 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 " -"object replacing specified fields with new values." +"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 "" + +msgid "" +":func:`urlparse` does not perform validation. See :ref:`URL parsing " +"security ` for details." msgstr "" msgid "Added IPv6 URL parsing capabilities." @@ -228,8 +233,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -238,10 +243,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -260,8 +265,8 @@ msgstr "" 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 "" msgid "" @@ -294,9 +299,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -327,13 +332,23 @@ msgid "" msgstr "" msgid "" -"Following the `WHATWG spec`_ that updates RFC 3986, ASCII newline ``\\n``, ``" -"\\r`` and tab ``\\t`` characters are stripped from the URL." +"Following some of the `WHATWG spec`_ that updates RFC 3986, leading C0 " +"control and space characters are stripped from the URL. ``\\n``, ``\\r`` and " +"tab ``\\t`` characters are removed from the URL at any position." +msgstr "" + +msgid "" +":func:`urlsplit` does not perform validation. See :ref:`URL parsing " +"security ` for details." msgstr "" msgid "ASCII newline and tab characters are stripped from the URL." msgstr "" +msgid "" +"Leading WHATWG C0 control and space characters are stripped from the URL." +msgstr "" + msgid "" "Combine the elements of a tuple as returned by :func:`urlsplit` into a " "complete URL as a string. The *parts* argument can be any five-item " @@ -350,8 +365,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -376,7 +391,7 @@ msgid "" msgstr "" msgid ":attr:`url`" -msgstr "" +msgstr ":attr:`url`" msgid "URL with no fragment" msgstr "" @@ -390,10 +405,35 @@ msgid "Result is a structured object rather than a simple 2-tuple." msgstr "" msgid "" -"Extract the url from a wrapped URL (that is, a string formatted as ````, ````, ``URL:scheme://host/path`` " -"or ``scheme://host/path``). If *url* is not a wrapped URL, it is returned " -"without changes." +"Extract the url from a wrapped URL (that is, a string formatted as " +"````, ````, ``URL:scheme://host/" +"path`` or ``scheme://host/path``). If *url* is not a wrapped URL, it is " +"returned without changes." +msgstr "" + +msgid "URL parsing security" +msgstr "" + +msgid "" +"The :func:`urlsplit` and :func:`urlparse` APIs do not perform **validation** " +"of inputs. They may not raise errors on inputs that other applications " +"consider invalid. They may also succeed on some inputs that might not be " +"considered URLs elsewhere. Their purpose is for practical functionality " +"rather than purity." +msgstr "" + +msgid "" +"Instead of raising an exception on unusual input, they may instead return " +"some component parts as empty strings. Or components may contain more than " +"perhaps they should." +msgstr "" + +msgid "" +"We recommend that users of these APIs where the values may be used anywhere " +"with security implications code defensively. Do some verification within " +"your code before trusting a returned component part. Does that ``scheme`` " +"make sense? Is that a sensible ``path``? Is there anything strange about " +"that ``hostname``? etc." msgstr "" msgid "Parsing ASCII Encoded Bytes" @@ -403,33 +443,34 @@ 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 "" 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 "" 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 "" 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 " -"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)." +"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)." msgstr "" msgid "" @@ -452,9 +493,9 @@ msgid "Structured Parse Results" msgstr "" 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 "" @@ -549,8 +590,8 @@ msgid "" "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." +"*errors* must not be supplied if *string* is a :class:`bytes`, or " +"a :class:`TypeError` is raised." msgstr "" msgid "" @@ -572,8 +613,8 @@ msgid "Example: ``quote_plus('/El Niño/')`` yields ``'%2FEl+Ni%C3%B1o%2F'``." msgstr "" 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 "" msgid "Example: ``quote_from_bytes(b'a&\\xef')`` yields ``'a%26%EF'``." @@ -610,8 +651,8 @@ msgid "Example: ``unquote_plus('/El+Ni%C3%B1o/')`` yields ``'/El Niño/'``." msgstr "" msgid "" -"Replace ``%xx`` escapes with their single-octet equivalent, and return a :" -"class:`bytes` object." +"Replace ``%xx`` escapes with their single-octet equivalent, and return " +"a :class:`bytes` object." msgstr "" msgid "" @@ -664,9 +705,9 @@ msgid "" msgstr "" msgid "" -"Refer to :ref:`urllib examples ` to find out how the :func:" -"`urllib.parse.urlencode` method can be used for generating the query string " -"of a URL or data for a POST request." +"Refer to :ref:`urllib examples ` to find out how " +"the :func:`urllib.parse.urlencode` method can be used for generating the " +"query string of a URL or data for a POST request." msgstr "" msgid "*query* supports bytes and string objects." diff --git a/library/urllib_robotparser.po b/library/urllib_robotparser.po new file mode 100644 index 0000000000..e718198a58 --- /dev/null +++ b/library/urllib_robotparser.po @@ -0,0 +1,92 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`urllib.robotparser` --- Parser for robots.txt" +msgstr "" + +msgid "**Source code:** :source:`Lib/urllib/robotparser.py`" +msgstr "**Kod źródłowy:** :source:`Lib/urllib/robotparser.py`" + +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 " +"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." +msgstr "" + +msgid "" +"This class provides methods to read, parse and answer questions about " +"the :file:`robots.txt` file at *url*." +msgstr "" + +msgid "Sets the URL referring to a :file:`robots.txt` file." +msgstr "" + +msgid "Reads the :file:`robots.txt` URL and feeds it to the parser." +msgstr "" + +msgid "Parses the lines argument." +msgstr "" + +msgid "" +"Returns ``True`` if the *useragent* is allowed to fetch the *url* according " +"to the rules contained in the parsed :file:`robots.txt` file." +msgstr "" + +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." +msgstr "" + +msgid "" +"Sets the time the ``robots.txt`` file was last fetched to the current time." +msgstr "" + +msgid "" +"Returns the value of the ``Crawl-delay`` parameter from ``robots.txt`` for " +"the *useragent* in question. If there is no such parameter or it doesn't " +"apply to the *useragent* specified or the ``robots.txt`` entry for this " +"parameter has invalid syntax, return ``None``." +msgstr "" + +msgid "" +"Returns the contents of the ``Request-rate`` parameter from ``robots.txt`` " +"as a :term:`named tuple` ``RequestRate(requests, seconds)``. If there is no " +"such parameter or it doesn't apply to the *useragent* specified or the " +"``robots.txt`` entry for this parameter has invalid syntax, return ``None``." +msgstr "" + +msgid "" +"Returns the contents of the ``Sitemap`` parameter from ``robots.txt`` in the " +"form of a :func:`list`. If there is no such parameter or the ``robots.txt`` " +"entry for this parameter has invalid syntax, return ``None``." +msgstr "" + +msgid "" +"The following example demonstrates basic use of the :class:`RobotFileParser` " +"class::" +msgstr "" diff --git a/library/uu.po b/library/uu.po index e30046b07c..704a0e02a6 100644 --- a/library/uu.po +++ b/library/uu.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`uu` --- Encode and decode uuencode files" msgstr "" diff --git a/library/uuid.po b/library/uuid.po index e7e6b5e6e1..3c1eb9e1b7 100644 --- a/library/uuid.po +++ b/library/uuid.po @@ -1,44 +1,44 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`uuid` --- UUID objects according to :rfc:`4122`" msgstr "" msgid "**Source code:** :source:`Lib/uuid.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/uuid.py`" 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 "" 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 "" @@ -81,9 +81,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -111,7 +111,7 @@ msgid "" msgstr "" msgid "Field" -msgstr "" +msgstr "Pole" msgid "Meaning" msgstr "Znaczenie" @@ -169,13 +169,14 @@ msgstr "" 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 "" 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 "" msgid "" @@ -271,7 +272,7 @@ msgid "" msgstr "" msgid "Example" -msgstr "" +msgstr "Przykład" msgid "Here are some examples of typical usage of the :mod:`uuid` module::" msgstr "" diff --git a/library/venv.po b/library/venv.po new file mode 100644 index 0000000000..242e5c303d --- /dev/null +++ b/library/venv.po @@ -0,0 +1,547 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`venv` --- Creation of virtual environments" +msgstr "" + +msgid "**Source code:** :source:`Lib/venv/`" +msgstr "**Kod źródłowy:**. :source:`Lib/venv/`" + +msgid "" +"The :mod:`!venv` module supports creating lightweight \"virtual " +"environments\", each with their own independent set of Python packages " +"installed in their :mod:`site` directories. A virtual environment is created " +"on top of an existing Python installation, known as the virtual " +"environment's \"base\" Python, and may optionally be isolated from the " +"packages in the base environment, so only those explicitly installed in the " +"virtual environment are available." +msgstr "" + +msgid "" +"When used from within a virtual environment, common installation tools such " +"as `pip`_ will install Python packages into a virtual environment without " +"needing to be told to do so explicitly." +msgstr "" + +msgid "See :pep:`405` for more background on Python virtual environments." +msgstr "" + +msgid "" +"`Python Packaging User Guide: Creating and using virtual environments " +"`__" +msgstr "" + +msgid "Creating virtual environments" +msgstr "Tworzenie środowisk wirtualnych" + +msgid "" +"Creation of :ref:`virtual environments ` is done by executing the " +"command ``venv``::" +msgstr "" + +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 " +"command was run (a common name for the target directory is ``.venv``). 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 time). It also creates an " +"(initially empty) ``lib/pythonX.Y/site-packages`` subdirectory (on Windows, " +"this is ``Lib\\site-packages``). If an existing directory is specified, it " +"will be re-used." +msgstr "" + +msgid "" +"``pyvenv`` was the recommended tool for creating virtual environments for " +"Python 3.3 and 3.4, and is :ref:`deprecated in Python 3.6 `." +msgstr "" + +msgid "" +"The use of ``venv`` is now recommended for creating virtual environments." +msgstr "" +"Korzystanie z ``venv`` jest obecnie zalecane do tworzenia środowisk " +"wirtualnych." + +msgid "On Windows, invoke the ``venv`` command as follows::" +msgstr "" + +msgid "" +"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " +"your :ref:`Python installation `::" +msgstr "" + +msgid "The command, if run with ``-h``, will show the available options::" +msgstr "" + +msgid "" +"Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on " +"PyPI" +msgstr "" + +msgid "" +"Installs pip by default, added the ``--without-pip`` and ``--copies`` " +"options" +msgstr "" + +msgid "" +"In earlier versions, if the target directory already existed, an error was " +"raised, unless the ``--clear`` or ``--upgrade`` option was provided." +msgstr "" + +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." +msgstr "" + +msgid "" +"On Microsoft Windows, it may be required to enable the ``Activate.ps1`` " +"script by setting the execution policy for the user. You can do this by " +"issuing the following PowerShell command:" +msgstr "" + +msgid "" +"PS C:\\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" +msgstr "" +"PS C:\\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" + +msgid "" +"See `About Execution Policies `_ for more information." +msgstr "" +"Więcej informacji można znaleźć w `Zasady wykonywania `_." + +msgid "" +"The created ``pyvenv.cfg`` file also includes the ``include-system-site-" +"packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" +"packages`` option, ``false`` otherwise." +msgstr "" + +msgid "" +"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " +"invoked to bootstrap ``pip`` into the virtual environment." +msgstr "" + +msgid "" +"Multiple paths can be given to ``venv``, in which case an identical virtual " +"environment will be created, according to the given options, at each " +"provided path." +msgstr "" + +msgid "How venvs work" +msgstr "Jak działają venvs" + +msgid "" +"When a Python interpreter is running from a virtual " +"environment, :data:`sys.prefix` and :data:`sys.exec_prefix` point to the " +"directories of the virtual environment, whereas :data:`sys.base_prefix` " +"and :data:`sys.base_exec_prefix` point to those of the base Python used to " +"create the environment. It is sufficient to check ``sys.prefix == " +"sys.base_prefix`` to determine if the current interpreter is running from a " +"virtual environment." +msgstr "" + +msgid "" +"A virtual environment may be \"activated\" using a script in its binary " +"directory (``bin`` on POSIX; ``Scripts`` on Windows). This will prepend that " +"directory to your :envvar:`!PATH`, so that running :program:`python` will " +"invoke the environment's Python interpreter and you can run installed " +"scripts without having to use their full path. The invocation of the " +"activation script is platform-specific (:samp:`{}` must be replaced by " +"the path to the directory containing the virtual environment):" +msgstr "" + +msgid "Platform" +msgstr "Platforma" + +msgid "Shell" +msgstr "Shell" + +msgid "Command to activate virtual environment" +msgstr "Aktywacja środowiska wirtualnego" + +msgid "POSIX" +msgstr "POSIX" + +msgid "bash/zsh" +msgstr "bash/zsh" + +msgid ":samp:`$ source {}/bin/activate`" +msgstr ":samp:`$ source {}/bin/activate`" + +msgid "fish" +msgstr "ryba" + +msgid ":samp:`$ source {}/bin/activate.fish`" +msgstr ":samp:`$ source {}/bin/activate.fish`" + +msgid "csh/tcsh" +msgstr "csh/tcsh" + +msgid ":samp:`$ source {}/bin/activate.csh`" +msgstr ":samp:`$ source {}/bin/activate.csh`" + +msgid "PowerShell" +msgstr "PowerShell" + +msgid ":samp:`$ {}/bin/Activate.ps1`" +msgstr ":samp:`$ {}/bin/Activate.ps1`" + +msgid "Windows" +msgstr "Windows" + +msgid "cmd.exe" +msgstr "cmd.exe" + +msgid ":samp:`C:\\\\> {}\\\\Scripts\\\\activate.bat`" +msgstr ":samp:`C:\\\\> {}\\\\Scripts\\\\activate.bat`" + +msgid ":samp:`PS C:\\\\> {}\\\\Scripts\\\\Activate.ps1`" +msgstr ":samp:`PS C:\\\\> {}\\\\Scripts\\\\Activate.ps1`" + +msgid ":program:`fish` and :program:`csh` activation scripts." +msgstr ":program:`fish` oraz skrypty aktywacyjne :program:`csh`." + +msgid "" +"PowerShell activation scripts installed under POSIX for PowerShell Core " +"support." +msgstr "" + +msgid "" +"You don't specifically *need* to activate a virtual environment, as you can " +"just specify the full path to that environment's Python interpreter when " +"invoking Python. Furthermore, all scripts installed in the environment " +"should be runnable without activating it." +msgstr "" + +msgid "" +"In order to achieve this, scripts installed into virtual environments have a " +"\"shebang\" line which points to the environment's Python interpreter, " +"i.e. :samp:`#!/{}/bin/python`. This means that the script will " +"run with that interpreter regardless of the value of :envvar:`!PATH`. On " +"Windows, \"shebang\" line processing is supported if you have " +"the :ref:`launcher` installed. Thus, double-clicking an installed script in " +"a Windows Explorer window should run it with the correct interpreter without " +"the environment needing to be activated or on the :envvar:`!PATH`." +msgstr "" + +msgid "" +"When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV` " +"environment variable is set to the path of the environment. Since explicitly " +"activating a virtual environment is not required to use it, :envvar:`!" +"VIRTUAL_ENV` cannot be relied upon to determine whether a virtual " +"environment is being used." +msgstr "" + +msgid "" +"Because scripts installed in environments should not expect the environment " +"to be activated, their shebang lines contain the absolute paths to their " +"environment's interpreters. Because of this, environments are inherently non-" +"portable, in the general case. You should always have a simple means of " +"recreating an environment (for example, if you have a requirements file " +"``requirements.txt``, you can invoke ``pip install -r requirements.txt`` " +"using the environment's ``pip`` to install all of the packages needed by the " +"environment). If for any reason you need to move the environment to a new " +"location, you should recreate it at the desired location and delete the one " +"at the old location. If you move an environment because you moved a parent " +"directory of it, you should recreate the environment in its new location. " +"Otherwise, software installed into the environment may not work as expected." +msgstr "" + +msgid "" +"You can deactivate a virtual environment by typing ``deactivate`` in your " +"shell. The exact mechanism is platform-specific and is an internal " +"implementation detail (typically, a script or shell function will be used)." +msgstr "" + +msgid "API" +msgstr "API" + +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." +msgstr "" + +msgid "" +"The :class:`EnvBuilder` class accepts the following keyword arguments on " +"instantiation:" +msgstr "" + +msgid "" +"``system_site_packages`` -- a Boolean value indicating that the system " +"Python site-packages should be available to the environment (defaults to " +"``False``)." +msgstr "" + +msgid "" +"``clear`` -- a Boolean value which, if true, will delete the contents of any " +"existing target directory, before creating the environment." +msgstr "" + +msgid "" +"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " +"Python binary rather than copying." +msgstr "" + +msgid "" +"``upgrade`` -- a Boolean value which, if true, will upgrade an existing " +"environment with the running Python - for use when that Python has been " +"upgraded in-place (defaults to ``False``)." +msgstr "" + +msgid "" +"``with_pip`` -- a Boolean value which, if true, ensures pip is installed in " +"the virtual environment. This uses :mod:`ensurepip` with the ``--default-" +"pip`` option." +msgstr "" + +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). If the special string ``\".\"`` is provided, the basename of the " +"current directory is used as the prompt." +msgstr "" + +msgid "``upgrade_deps`` -- Update the base venv modules to the latest on PyPI" +msgstr "" + +msgid "Added the ``with_pip`` parameter" +msgstr "Dodano ``with_pip`` parametr" + +msgid "Added the ``prompt`` parameter" +msgstr "Dodano ``prompt`` parametr" + +msgid "Added the ``upgrade_deps`` parameter" +msgstr "Dodano ``upgrade_deps`` parametr" + +msgid "" +"Creators of third-party virtual environment tools will be free to use the " +"provided :class:`EnvBuilder` class as a base class." +msgstr "" + +msgid "The returned env-builder is an object which has a method, ``create``:" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks " +"available for subclass customization::" +msgstr "" + +msgid "" +"Each of the " +"methods :meth:`ensure_directories`, :meth:`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` " +"and :meth:`post_setup` can be overridden." +msgstr "" + +msgid "" +"Creates the environment directory and all necessary subdirectories that " +"don't already exist, and returns a context object. This context object is " +"just a holder for attributes (such as paths) for use by the other methods. " +"If the :class:`EnvBuilder` is created with the arg ``clear=True``, contents " +"of the environment directory will be cleared and then all necessary " +"subdirectories will be recreated." +msgstr "" + +msgid "" +"The returned context object is a :class:`types.SimpleNamespace` with the " +"following attributes:" +msgstr "" + +msgid "" +"``env_dir`` - The location of the virtual environment. Used for " +"``__VENV_DIR__`` in activation scripts (see :meth:`install_scripts`)." +msgstr "" + +msgid "" +"``env_name`` - The name of the virtual environment. Used for " +"``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`)." +msgstr "" + +msgid "" +"``prompt`` - The prompt to be used by the activation scripts. Used for " +"``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`)." +msgstr "" + +msgid "" +"``executable`` - The underlying Python executable used by the virtual " +"environment. This takes into account the case where a virtual environment is " +"created from another virtual environment." +msgstr "" + +msgid "``inc_path`` - The include path for the virtual environment." +msgstr "" + +msgid "``lib_path`` - The purelib path for the virtual environment." +msgstr "" + +msgid "``bin_path`` - The script path for the virtual environment." +msgstr "" + +msgid "" +"``bin_name`` - The name of the script path relative to the virtual " +"environment location. Used for ``__VENV_BIN_NAME__`` in activation scripts " +"(see :meth:`install_scripts`)." +msgstr "" + +msgid "" +"``env_exe`` - The name of the Python interpreter in the virtual environment. " +"Used for ``__VENV_PYTHON__`` in activation scripts " +"(see :meth:`install_scripts`)." +msgstr "" + +msgid "" +"``env_exec_cmd`` - The name of the Python interpreter, taking into account " +"filesystem redirections. This can be used to run Python in the virtual " +"environment." +msgstr "" + +msgid "" +"The attribute ``lib_path`` was added to the context, and the context object " +"was documented." +msgstr "" + +msgid "" +"The *venv* :ref:`sysconfig installation scheme ` is used " +"to construct the paths of the created directories." +msgstr "" + +msgid "Creates the ``pyvenv.cfg`` configuration file in the environment." +msgstr "" + +msgid "" +"Creates a copy or symlink to the Python executable in the environment. On " +"POSIX systems, if a specific executable ``python3.x`` was used, symlinks to " +"``python`` and ``python3`` will be created pointing to that executable, " +"unless files with those names already exist." +msgstr "" + +msgid "" +"Installs activation scripts appropriate to the platform into the virtual " +"environment." +msgstr "" + +msgid "" +"Upgrades the core venv dependency packages (currently ``pip`` and " +"``setuptools``) in the environment. This is done by shelling out to the " +"``pip`` executable in the environment." +msgstr "" + +msgid "" +"A placeholder method which can be overridden in third party implementations " +"to pre-install packages in the virtual environment or perform other post-" +"creation steps." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"In addition, :class:`EnvBuilder` provides this utility method that can be " +"called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to " +"assist in installing custom scripts into the virtual environment." +msgstr "" + +msgid "" +"*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 "" + +msgid "" +"``__VENV_DIR__`` is replaced with the absolute path of the environment " +"directory." +msgstr "" + +msgid "" +"``__VENV_NAME__`` is replaced with the environment name (final path segment " +"of environment directory)." +msgstr "" + +msgid "" +"``__VENV_PROMPT__`` is replaced with the prompt (the environment name " +"surrounded by parentheses and with a following space)" +msgstr "" + +msgid "" +"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either " +"``bin`` or ``Scripts``)." +msgstr "" + +msgid "" +"``__VENV_PYTHON__`` is replaced with the absolute path of the environment's " +"executable." +msgstr "" + +msgid "" +"The directories are allowed to exist (for when an existing environment is " +"being upgraded)." +msgstr "" + +msgid "There is also a module-level convenience function:" +msgstr "" + +msgid "" +"Create an :class:`EnvBuilder` with the given keyword arguments, and call " +"its :meth:`~EnvBuilder.create` method with the *env_dir* argument." +msgstr "" + +msgid "An example of extending ``EnvBuilder``" +msgstr "Przykład rozszerzenia ``EnvBuilder``" + +msgid "" +"The following script shows how to extend :class:`EnvBuilder` by implementing " +"a subclass which installs setuptools and pip into a created virtual " +"environment::" +msgstr "" + +msgid "" +"This script is also available for download `online `_." +msgstr "" +"Ten skrypt jest również dostępny do pobrania `online `_." diff --git a/library/warnings.po b/library/warnings.po index ab1b875524..be024ad18a 100644 --- a/library/warnings.po +++ b/library/warnings.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`warnings` --- Warning control" msgstr "" msgid "**Source code:** :source:`Lib/warnings.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/warnings.py`" msgid "" "Warning messages are typically issued in situations where it is useful to " @@ -39,15 +39,15 @@ msgstr "" 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 "" msgid "" "Warning messages are normally written to :data:`sys.stderr`, but their " "disposition can be changed flexibly, from ignoring all warnings to turning " -"them into exceptions. The disposition of warnings can vary based on the :" -"ref:`warning category `, the text of the warning " +"them into exceptions. The disposition of warnings can vary based on " +"the :ref:`warning category `, 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." msgstr "" @@ -60,11 +60,11 @@ msgid "" msgstr "" msgid "" -"The determination whether to issue a warning message is controlled by the :" -"ref:`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`." +"The determination whether to issue a warning message is controlled by " +"the :ref:`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 "" msgid "" @@ -109,7 +109,7 @@ msgid "Description" msgstr "Opis" msgid ":exc:`Warning`" -msgstr "" +msgstr ":exc:`Warning`" msgid "" "This is the base class of all warning category classes. It is a subclass " @@ -117,13 +117,13 @@ msgid "" msgstr "" msgid ":exc:`UserWarning`" -msgstr "" +msgstr ":exc:`UserWarning`" msgid "The default category for :func:`warn`." msgstr "" msgid ":exc:`DeprecationWarning`" -msgstr "" +msgstr ":exc:`DeprecationWarning`" msgid "" "Base category for warnings about deprecated features when those warnings are " @@ -132,19 +132,19 @@ msgid "" msgstr "" msgid ":exc:`SyntaxWarning`" -msgstr "" +msgstr ":exc:`SyntaxWarning`" msgid "Base category for warnings about dubious syntactic features." msgstr "" msgid ":exc:`RuntimeWarning`" -msgstr "" +msgstr ":exc:`RuntimeWarning`" msgid "Base category for warnings about dubious runtime features." msgstr "" msgid ":exc:`FutureWarning`" -msgstr "" +msgstr ":exc:`FutureWarning`" msgid "" "Base category for warnings about deprecated features when those warnings are " @@ -152,7 +152,7 @@ msgid "" msgstr "" msgid ":exc:`PendingDeprecationWarning`" -msgstr "" +msgstr ":exc:`PendingDeprecationWarning`" msgid "" "Base category for warnings about features that will be deprecated in the " @@ -160,7 +160,7 @@ msgid "" msgstr "" msgid ":exc:`ImportWarning`" -msgstr "" +msgstr ":exc:`ImportWarning`" msgid "" "Base category for warnings triggered during the process of importing a " @@ -168,20 +168,20 @@ msgid "" msgstr "" msgid ":exc:`UnicodeWarning`" -msgstr "" +msgstr ":exc:`UnicodeWarning`" msgid "Base category for warnings related to Unicode." msgstr "" msgid ":exc:`BytesWarning`" -msgstr "" +msgstr ":exc:`BytesWarning`" msgid "" "Base category for warnings related to :class:`bytes` and :class:`bytearray`." msgstr "" msgid ":exc:`ResourceWarning`" -msgstr "" +msgstr ":exc:`ResourceWarning`" msgid "" "Base category for warnings related to resource usage (ignored by default)." @@ -262,10 +262,10 @@ msgstr "" msgid "" "*message* is a string containing a regular expression that the start of the " -"warning message must match, case-insensitively. In :option:`-W` and :envvar:" -"`PYTHONWARNINGS`, *message* is a literal string that the start of the " -"warning message must contain (case-insensitively), ignoring any whitespace " -"at the start or end of *message*." +"warning message must match, case-insensitively. In :option:`-W` " +"and :envvar:`PYTHONWARNINGS`, *message* is a literal string that the start " +"of the warning message must contain (case-insensitively), ignoring any " +"whitespace at the start or end of *message*." msgstr "" msgid "" @@ -315,11 +315,11 @@ msgstr "" 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 "" msgid "" @@ -348,8 +348,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -369,10 +369,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 "" msgid "" @@ -500,8 +500,8 @@ msgid "" msgstr "" 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 "" msgid "Added *source* parameter." @@ -532,18 +532,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 :data:`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 "" 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 " -"*lineno*." +"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 "" msgid "" @@ -559,10 +559,10 @@ msgstr "" 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 " -"and line number match." +"`. 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 "" msgid "" @@ -576,12 +576,13 @@ msgstr "" 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 "" msgid "" @@ -590,18 +591,9 @@ msgid "" "This argument exists primarily for testing the :mod:`warnings` module itself." msgstr "" -msgid "" -"If the *action* argument is not ``None``, the remaining arguments are passed " -"to :func:`simplefilter` as if it were called immediately on entering the " -"context." -msgstr "" - msgid "" "The :class:`catch_warnings` manager works by replacing and then later " "restoring the module's :func:`showwarning` function and internal list of " "filter specifications. This means the context manager is modifying global " "state and therefore is not thread-safe." msgstr "" - -msgid "Added the *action*, *category*, *lineno*, and *append* parameters." -msgstr "" diff --git a/library/wave.po b/library/wave.po new file mode 100644 index 0000000000..e8a7bac3e2 --- /dev/null +++ b/library/wave.po @@ -0,0 +1,236 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`wave` --- Read and write WAV files" +msgstr "" + +msgid "**Source code:** :source:`Lib/wave.py`" +msgstr "**Kod źródłowy:** :source:`Lib/wave.py`" + +msgid "" +"The :mod:`wave` module provides a convenient interface to the WAV sound " +"format. Only files using ``WAVE_FORMAT_PCM`` are supported. Note that this " +"does not include files using ``WAVE_FORMAT_EXTENSIBLE`` even if the " +"subformat is PCM." +msgstr "" + +msgid "The :mod:`wave` module defines the following function and exception:" +msgstr "" + +msgid "" +"If *file* is a string, open the file by that name, otherwise treat it as a " +"file-like object. *mode* can be:" +msgstr "" + +msgid "``'rb'``" +msgstr "``'rb'``" + +msgid "Read only mode." +msgstr "" + +msgid "``'wb'``" +msgstr "``'wb'``" + +msgid "Write only mode." +msgstr "" + +msgid "Note that it does not allow read/write WAV files." +msgstr "" + +msgid "" +"A *mode* of ``'rb'`` returns a :class:`Wave_read` object, while a *mode* of " +"``'wb'`` returns a :class:`Wave_write` object. If *mode* is omitted and a " +"file-like object is passed as *file*, ``file.mode`` is used as the default " +"value for *mode*." +msgstr "" + +msgid "" +"If you pass in a file-like object, the wave object will not close it when " +"its :meth:`close` method is called; it is the caller's responsibility to " +"close the file object." +msgstr "" + +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." +msgstr "" + +msgid "Added support for unseekable files." +msgstr "" + +msgid "" +"An error raised when something is impossible because it violates the WAV " +"specification or hits an implementation deficiency." +msgstr "" + +msgid "Wave_read Objects" +msgstr "" + +msgid "" +"Wave_read objects, as returned by :func:`.open`, have the following methods:" +msgstr "" + +msgid "" +"Close the stream if it was opened by :mod:`wave`, and make the instance " +"unusable. This is called automatically on object collection." +msgstr "" + +msgid "Returns number of audio channels (``1`` for mono, ``2`` for stereo)." +msgstr "" + +msgid "Returns sample width in bytes." +msgstr "" + +msgid "Returns sampling frequency." +msgstr "" + +msgid "Returns number of audio frames." +msgstr "" + +msgid "Returns compression type (``'NONE'`` is the only supported type)." +msgstr "" + +msgid "" +"Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'`` " +"parallels ``'NONE'``." +msgstr "" + +msgid "" +"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " +"framerate, nframes, comptype, compname)``, equivalent to output of " +"the :meth:`get\\*` methods." +msgstr "" + +msgid "" +"Reads and returns at most *n* frames of audio, as a :class:`bytes` object." +msgstr "" + +msgid "Rewind the file pointer to the beginning of the audio stream." +msgstr "" + +msgid "" +"The following two methods are defined for compatibility with the :mod:`aifc` " +"module, and don't do anything interesting." +msgstr "" + +msgid "Returns ``None``." +msgstr "Returns ``None``." + +msgid "Raise an error." +msgstr "" + +msgid "" +"The following two methods define a term \"position\" which is compatible " +"between them, and is otherwise implementation dependent." +msgstr "" + +msgid "Set the file pointer to the specified position." +msgstr "" + +msgid "Return current file pointer position." +msgstr "" + +msgid "Wave_write Objects" +msgstr "" + +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 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 before writing the frame data." +msgstr "" + +msgid "" +"Wave_write objects, as returned by :func:`.open`, have the following methods:" +msgstr "" + +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." +msgstr "" + +msgid "Set the number of channels." +msgstr "" + +msgid "Set the sample width to *n* bytes." +msgstr "" + +msgid "Set the frame rate to *n*." +msgstr "" + +msgid "A non-integral input to this method is rounded to the nearest integer." +msgstr "" + +msgid "" +"Set the number of frames to *n*. This will be changed later if the number " +"of frames actually written is different (this update attempt will raise an " +"error if the output stream is not seekable)." +msgstr "" + +msgid "" +"Set the compression type and description. At the moment, only compression " +"type ``NONE`` is supported, meaning no compression." +msgstr "" + +msgid "" +"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, " +"compname)``, with values valid for the :meth:`set\\*` methods. Sets all " +"parameters." +msgstr "" + +msgid "" +"Return current position in the file, with the same disclaimer for " +"the :meth:`Wave_read.tell` and :meth:`Wave_read.setpos` methods." +msgstr "" + +msgid "Write audio frames, without correcting *nframes*." +msgstr "" + +msgid "Any :term:`bytes-like object` is now accepted." +msgstr "" + +msgid "" +"Write audio frames and make sure *nframes* is correct. It will raise an " +"error if the output stream is not seekable and the total number of frames " +"that have been written after *data* has been written does not match the " +"previously set value for *nframes*." +msgstr "" + +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`." +msgstr "" diff --git a/library/weakref.po b/library/weakref.po new file mode 100644 index 0000000000..857a113fe7 --- /dev/null +++ b/library/weakref.po @@ -0,0 +1,498 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`weakref` --- Weak references" +msgstr "" + +msgid "**Source code:** :source:`Lib/weakref.py`" +msgstr "**Kod źródłowy:** :source:`Lib/weakref.py`" + +msgid "" +"The :mod:`weakref` module allows the Python programmer to create :dfn:`weak " +"references` to objects." +msgstr "" + +msgid "" +"In the following, the term :dfn:`referent` means the object which is " +"referred to by a weak reference." +msgstr "" + +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." +msgstr "" + +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 " +"solely because it appears in a cache or mapping." +msgstr "" + +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 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 collection can reclaim the object, and its " +"corresponding entries in weak mappings are simply deleted." +msgstr "" + +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." +msgstr "" + +msgid "" +":class:`finalize` provides a straight forward way to register a cleanup " +"function to be called when an object is garbage collected. This is simpler " +"to use than setting up a callback function on a raw weak reference, since " +"the module automatically ensures that the finalizer remains alive until the " +"object is collected." +msgstr "" + +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 your own weak references directly. The low-level machinery is " +"exposed by the :mod:`weakref` module for the benefit of advanced uses." +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." +msgstr "" + +msgid "Added support for thread.lock, threading.Lock, and code objects." +msgstr "" + +msgid "" +"Several built-in types such as :class:`list` and :class:`dict` do not " +"directly support weak references but can add support through subclassing::" +msgstr "" + +msgid "" +"Other built-in types such as :class:`tuple` and :class:`int` do not support " +"weak references even when subclassed." +msgstr "" + +msgid "" +"Extension types can easily be made to support weak references; " +"see :ref:`weakref-support`." +msgstr "" + +msgid "" +"When ``__slots__`` are defined for a given type, weak reference support is " +"disabled unless a ``'__weakref__'`` string is also present in the sequence " +"of strings in the ``__slots__`` declaration. See :ref:`__slots__ " +"documentation ` for details." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Exceptions raised by the callback will be noted on the standard error " +"output, but cannot be propagated; they are handled in exactly the same way " +"as exceptions raised from an object's :meth:`__del__` method." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Weak references support tests for equality, but not ordering. If the " +"referents are still alive, two references have the same equality " +"relationship as their referents (regardless of the *callback*). If either " +"referent has been deleted, the references are equal only if the reference " +"objects are the same object." +msgstr "" + +msgid "This is a subclassable type rather than a factory function." +msgstr "" + +msgid "" +"This read-only attribute returns the callback currently associated to the " +"weakref. If there is no callback or if the referent of the weakref is no " +"longer alive then this attribute will have value ``None``." +msgstr "" + +msgid "Added the :attr:`__callback__` attribute." +msgstr "" + +msgid "" +"Return a proxy to *object* which uses a weak reference. This supports use " +"of the proxy in most contexts instead of requiring the explicit " +"dereferencing used with weak reference objects. The returned object will " +"have a type of either ``ProxyType`` or ``CallableProxyType``, depending on " +"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." +msgstr "" + +msgid "" +"Accessing an attribute of the proxy object after the referent is garbage " +"collected raises :exc:`ReferenceError`." +msgstr "" + +msgid "" +"Extended the operator support on proxy objects to include the matrix " +"multiplication operators ``@`` and ``@=``." +msgstr "" + +msgid "" +"Return the number of weak references and proxies which refer to *object*." +msgstr "" + +msgid "" +"Return a list of all weak reference and proxy objects which refer to " +"*object*." +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 " +"especially useful with objects that override attribute accesses." +msgstr "" + +msgid "" +"Note that when a key with equal value to an existing key (but not equal " +"identity) is inserted into the dictionary, it replaces the value but does " +"not replace the existing key. Due to this, when the reference to the " +"original key is deleted, it also deletes the entry in the dictionary::" +msgstr "" + +msgid "A workaround would be to remove the key prior to reassignment::" +msgstr "" + +msgid "Added support for ``|`` and ``|=`` operators, specified in :pep:`584`." +msgstr "" + +msgid "" +":class:`WeakKeyDictionary` objects have an additional method that exposes " +"the internal references directly. The references are not guaranteed to be " +"\"live\" at the time they are used, so the result of calling the references " +"needs to be checked before being used. This can be used to avoid creating " +"references that will cause the garbage collector to keep the keys around " +"longer than needed." +msgstr "" + +msgid "Return an iterable of the weak references to the keys." +msgstr "" + +msgid "" +"Mapping class that references values weakly. Entries in the dictionary will " +"be discarded when no strong reference to the value exists any more." +msgstr "" + +msgid "" +"Added support for ``|`` and ``|=`` operators, as specified in :pep:`584`." +msgstr "" + +msgid "" +":class:`WeakValueDictionary` objects have an additional method that has the " +"same issues as the :meth:`keyrefs` method of :class:`WeakKeyDictionary` " +"objects." +msgstr "" + +msgid "Return an iterable of the weak references to the values." +msgstr "" + +msgid "" +"Set class that keeps weak references to its elements. An element will be " +"discarded when no strong reference to it exists any more." +msgstr "" + +msgid "" +"A custom :class:`ref` subclass which simulates a weak reference to a bound " +"method (i.e., a method defined on a class and looked up on an instance). " +"Since a bound method is ephemeral, a standard weak reference cannot keep " +"hold of it. :class:`WeakMethod` has special code to recreate the bound " +"method until either the object or the original function dies::" +msgstr "" + +msgid "" +"Return a callable finalizer object which will be called when *obj* is " +"garbage collected. Unlike an ordinary weak reference, a finalizer will " +"always survive until the reference object is collected, greatly simplifying " +"lifecycle management." +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`." +msgstr "" + +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." +msgstr "" + +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 order of creation." +msgstr "" + +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 " +"replaced by :const:`None`." +msgstr "" + +msgid "" +"If *self* is alive then mark it as dead and return the result of calling " +"``func(*args, **kwargs)``. If *self* is dead then return :const:`None`." +msgstr "" + +msgid "" +"If *self* is alive then mark it as dead and return the tuple ``(obj, func, " +"args, kwargs)``. If *self* is dead then return :const:`None`." +msgstr "" + +msgid "" +"If *self* is alive then return the tuple ``(obj, func, args, kwargs)``. If " +"*self* is dead then return :const:`None`." +msgstr "" + +msgid "Property which is true if the finalizer is alive, false otherwise." +msgstr "" + +msgid "" +"A writable boolean property which by default is true. When the program " +"exits, it calls all remaining live finalizers for which :attr:`.atexit` is " +"true. They are called in reverse order of creation." +msgstr "" + +msgid "" +"It is important to ensure that *func*, *args* and *kwargs* do not own any " +"references to *obj*, either directly or indirectly, since otherwise *obj* " +"will never be garbage collected. In particular, *func* should not be a " +"bound method of *obj*." +msgstr "" + +msgid "The type object for weak references objects." +msgstr "" + +msgid "The type object for proxies of objects which are not callable." +msgstr "" + +msgid "The type object for proxies of callable objects." +msgstr "" + +msgid "" +"Sequence containing all the type objects for proxies. This can make it " +"simpler to test if an object is a proxy without being dependent on naming " +"both proxy types." +msgstr "" + +msgid ":pep:`205` - Weak References" +msgstr "" + +msgid "" +"The proposal and rationale for this feature, including links to earlier " +"implementations and information about similar features in other languages." +msgstr "" + +msgid "Weak Reference Objects" +msgstr "" + +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:" +msgstr "" + +msgid "" +"If the referent no longer exists, calling the reference object " +"returns :const:`None`:" +msgstr "" + +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 "" + +msgid "" +"Using a separate test for \"liveness\" creates race conditions in threaded " +"applications; another thread can cause a weak reference to become " +"invalidated before the weak reference is called; the idiom shown above is " +"safe in threaded applications as well as single-threaded applications." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "Example" +msgstr "Przykład" + +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 can still be retrieved by ID if they do." +msgstr "" + +msgid "Finalizer Objects" +msgstr "" + +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 "" + +msgid "" +"The finalizer can be called directly as well. However the finalizer will " +"invoke the callback at most once." +msgstr "" + +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." +msgstr "" + +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 "" + +msgid "Comparing finalizers with :meth:`__del__` methods" +msgstr "" + +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:" +msgstr "" + +msgid "the object is garbage collected," +msgstr "" + +msgid "the object's :meth:`remove` method is called, or" +msgstr "" + +msgid "the program exits." +msgstr "" + +msgid "" +"We might try to implement the class using a :meth:`__del__` method as " +"follows::" +msgstr "" + +msgid "" +"Starting with Python 3.4, :meth:`__del__` methods no longer prevent " +"reference cycles from being garbage collected, and module globals are no " +"longer forced to :const:`None` during :term:`interpreter shutdown`. So this " +"code should work without any issues on CPython." +msgstr "" + +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 "" + +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::" +msgstr "" + +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 " +"garbage collected the finalizer will still be called at exit." +msgstr "" + +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 "" + +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." +msgstr "" diff --git a/library/webbrowser.po b/library/webbrowser.po index a348296eb0..7adfa5d9e0 100644 --- a/library/webbrowser.po +++ b/library/webbrowser.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`webbrowser` --- Convenient web-browser controller" msgstr "" msgid "**Source code:** :source:`Lib/webbrowser.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/webbrowser.py`" msgid "" "The :mod:`webbrowser` module provides a high-level interface to allow " @@ -45,10 +45,10 @@ 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 "" msgid "" @@ -67,15 +67,6 @@ msgid "" "are, naturally, mutually exclusive. Usage example::" msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "The following exception is defined:" msgstr "" @@ -122,18 +113,18 @@ msgid "" msgstr "" 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``." msgstr "" 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 "" @@ -156,13 +147,13 @@ msgid "Notes" msgstr "Notatki" msgid "``'mozilla'``" -msgstr "" +msgstr "``'mozilla'``" msgid ":class:`Mozilla('mozilla')`" msgstr "" msgid "``'firefox'``" -msgstr "" +msgstr "``'firefox'``" msgid "``'netscape'``" msgstr "" @@ -210,7 +201,7 @@ msgid ":class:`BackgroundBrowser('mosaic')`" msgstr "" msgid "``'opera'``" -msgstr "" +msgstr "``'opera'``" msgid ":class:`Opera()`" msgstr "" @@ -240,13 +231,13 @@ msgid ":class:`GenericBrowser('lynx')`" msgstr "" msgid "``'w3m'``" -msgstr "" +msgstr "``'w3m'``" msgid ":class:`GenericBrowser('w3m')`" msgstr "" msgid "``'windows-default'``" -msgstr "" +msgstr "``'windows-default'``" msgid ":class:`WindowsDefault`" msgstr "" @@ -255,7 +246,7 @@ msgid "\\(2)" msgstr "\\(2)" msgid "``'macosx'``" -msgstr "" +msgstr "``'macosx'``" msgid ":class:`MacOSXOSAScript('default')`" msgstr "" @@ -270,25 +261,25 @@ msgid ":class:`MacOSXOSAScript('safari')`" msgstr "" msgid "``'google-chrome'``" -msgstr "" +msgstr "``'google-chrome'``" msgid ":class:`Chrome('google-chrome')`" msgstr "" msgid "``'chrome'``" -msgstr "" +msgstr "``'chrome'``" msgid ":class:`Chrome('chrome')`" msgstr "" msgid "``'chromium'``" -msgstr "" +msgstr "``'chromium'``" msgid ":class:`Chromium('chromium')`" msgstr "" msgid "``'chromium-browser'``" -msgstr "" +msgstr "``'chromium-browser'``" msgid ":class:`Chromium('chromium-browser')`" msgstr "" @@ -300,9 +291,9 @@ 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 " -"best strategy for running Konqueror." +"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 "" msgid "Only on Windows platforms." @@ -314,9 +305,6 @@ msgstr "" msgid "Support for Chrome/Chromium has been added." msgstr "" -msgid ":class:`MacOSX` is deprecated, use :class:`MacOSXOSAScript` instead." -msgstr "" - msgid "Here are some simple examples::" msgstr "" @@ -328,9 +316,6 @@ msgid "" "level convenience functions:" msgstr "" -msgid "System-dependent name for the browser." -msgstr "" - 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 " @@ -339,8 +324,8 @@ msgstr "" 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 "" msgid "" diff --git a/library/winreg.po b/library/winreg.po index edad5f0ac5..bf990f7aad 100644 --- a/library/winreg.po +++ b/library/winreg.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Michał Biliński , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Michał Biliński , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`winreg` --- Windows registry access" msgstr "" @@ -69,8 +68,8 @@ msgid "*key* is the predefined handle to connect to." msgstr "" 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 "" msgid "" @@ -118,8 +117,8 @@ msgstr "" 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 "" msgid "Deletes the specified key." @@ -205,19 +204,19 @@ msgid "The result is a tuple of 3 items:" msgstr "" msgid "Index" -msgstr "" +msgstr "Indeks" msgid "Meaning" msgstr "Znaczenie" msgid "``0``" -msgstr "" +msgstr "``0``" msgid "A string that identifies the value name" msgstr "" msgid "``1``" -msgstr "" +msgstr "``1``" msgid "" "An object that holds the value data, and whose type depends on the " @@ -225,7 +224,7 @@ msgid "" msgstr "" msgid "``2``" -msgstr "" +msgstr "``2``" msgid "" "An integer that identifies the type of the value data (see table in docs " @@ -238,13 +237,13 @@ msgid "" msgstr "" 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 "" msgid "" -"Raises an :ref:`auditing event ` ``winreg." -"ExpandEnvironmentStrings`` with argument ``str``." +"Raises an :ref:`auditing event ` " +"``winreg.ExpandEnvironmentStrings`` with argument ``str``." msgstr "" msgid "Writes all the attributes of a key to the registry." @@ -253,11 +252,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 "" msgid "" @@ -285,10 +284,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -314,8 +314,8 @@ msgstr "" 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 "" msgid "The result is a new handle to the specified key." @@ -364,8 +364,8 @@ msgstr "" 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." +"underlying API call doesn't return the type, so always " +"use :func:`QueryValueEx` if possible." msgstr "" msgid "" @@ -388,8 +388,8 @@ msgid "The value of the registry item." msgstr "" 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 "" msgid "Saves the specified key, and all its subkeys to the specified file." @@ -429,8 +429,8 @@ msgstr "" 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 "" msgid "*value* is a string that specifies the new value." @@ -448,8 +448,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -579,25 +579,25 @@ msgid "Access Rights" msgstr "" msgid "" -"For more information, see `Registry Key Security and Access `__." +"For more information, see `Registry Key Security and Access `__." msgstr "" 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 "" 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 "" 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 "" msgid "Equivalent to :const:`KEY_READ`." @@ -663,8 +663,8 @@ msgid "A 32-bit number in big-endian format." msgstr "" msgid "" -"Null-terminated string containing references to environment variables (``" -"%PATH%``)." +"Null-terminated string containing references to environment variables " +"(``%PATH%``)." msgstr "" msgid "A Unicode symbolic link." @@ -702,8 +702,9 @@ msgstr "" 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 "" msgid "All registry functions in this module return one of these objects." @@ -728,10 +729,10 @@ msgid "" msgstr "" 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 " -"returned. You can also use the :meth:`~PyHKEY.Detach` method to return the " -"integer handle, and also disconnect the Windows handle from the handle " +"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." msgstr "" @@ -762,9 +763,9 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/winsound.po b/library/winsound.po index a1de1ec2cd..e3a724cf0f 100644 --- a/library/winsound.po +++ b/library/winsound.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`winsound` --- Sound-playing interface for Windows" msgstr "" @@ -42,12 +42,12 @@ msgstr "" 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 " +"*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." +"waveform sound is stopped. If the system indicates an " +"error, :exc:`RuntimeError` is raised." msgstr "" msgid "" @@ -62,15 +62,15 @@ msgid "" msgstr "" 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 "" 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`." +"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 "" msgid "" @@ -85,31 +85,31 @@ msgid "Corresponding Control Panel Sound name" msgstr "" msgid "``'SystemAsterisk'``" -msgstr "" +msgstr "``'SystemAsterisk'``" msgid "Asterisk" msgstr "" msgid "``'SystemExclamation'``" -msgstr "" +msgstr "``'SystemExclamation'``" msgid "Exclamation" msgstr "" msgid "``'SystemExit'``" -msgstr "" +msgstr "``'SystemExit'``" msgid "Exit Windows" msgstr "" msgid "``'SystemHand'``" -msgstr "" +msgstr "``'SystemHand'``" msgid "Critical Stop" msgstr "" msgid "``'SystemQuestion'``" -msgstr "" +msgstr "``'SystemQuestion'``" msgid "Question" msgstr "" @@ -129,8 +129,8 @@ msgstr "" 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 "" msgid "Stop playing all instances of the specified sound." diff --git a/library/wsgiref.po b/library/wsgiref.po new file mode 100644 index 0000000000..d2364014ce --- /dev/null +++ b/library/wsgiref.po @@ -0,0 +1,752 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`wsgiref` --- WSGI Utilities and Reference Implementation" +msgstr "" + +msgid "**Source code:** :source:`Lib/wsgiref`" +msgstr "**Kod źródłowy:** :source:`Lib/wsgiref`" + +msgid "" +":mod:`wsgiref` is a reference implementation and is not recommended for " +"production. The module only implements basic security checks." +msgstr "" + +msgid "" +"The Web Server Gateway Interface (WSGI) is a standard interface between web " +"server software and web applications written in Python. Having a standard " +"interface makes it easy to use an application that supports WSGI with a " +"number of different web servers." +msgstr "" + +msgid "" +"Only authors of web servers and programming frameworks need to know every " +"detail and corner case of the WSGI design. You don't need to understand " +"every detail of WSGI just to install a WSGI application or to write a web " +"application using an existing framework." +msgstr "" + +msgid "" +":mod:`wsgiref` is a reference implementation of the WSGI specification that " +"can be used to add WSGI support to a web server or framework. It provides " +"utilities for manipulating WSGI environment variables and response headers, " +"base classes for implementing WSGI servers, a demo HTTP server that serves " +"WSGI applications, and a validation tool that checks WSGI servers and " +"applications for conformance to the WSGI specification (:pep:`3333`)." +msgstr "" + +msgid "" +"See `wsgi.readthedocs.io `_ for more " +"information about WSGI, and links to tutorials and other resources." +msgstr "" + +msgid ":mod:`wsgiref.util` -- WSGI environment utilities" +msgstr "" + +msgid "" +"This module provides a variety of utility functions for working with WSGI " +"environments. A WSGI environment is a dictionary containing HTTP request " +"variables as described in :pep:`3333`. All of the functions taking an " +"*environ* parameter expect a WSGI-compliant dictionary to be supplied; " +"please see :pep:`3333` for a detailed specification." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Return the full request URI, optionally including the query string, using " +"the algorithm found in the \"URL Reconstruction\" section of :pep:`3333`. " +"If *include_query* is false, the query string is not included in the " +"resulting URI." +msgstr "" + +msgid "" +"Similar to :func:`request_uri`, except that the ``PATH_INFO`` and " +"``QUERY_STRING`` variables are ignored. The result is the base URI of the " +"application object addressed by the request." +msgstr "" + +msgid "" +"Shift a single name from ``PATH_INFO`` to ``SCRIPT_NAME`` and return the " +"name. The *environ* dictionary is *modified* in-place; use a copy if you " +"need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact." +msgstr "" + +msgid "" +"If there are no remaining path segments in ``PATH_INFO``, ``None`` is " +"returned." +msgstr "" + +msgid "" +"Typically, this routine is used to process each portion of a request URI " +"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``." +msgstr "" + +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." +msgstr "" + +msgid "Update *environ* with trivial defaults for testing purposes." +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." +msgstr "" + +msgid "" +"This routine is intended to make it easier for unit tests of WSGI servers " +"and applications to set up dummy environments. It should NOT be used by " +"actual WSGI servers or applications, since the data is fake!" +msgstr "" + +msgid "Example usage::" +msgstr "" + +msgid "" +"In addition to the environment functions above, the :mod:`wsgiref.util` " +"module also provides these miscellaneous utilities:" +msgstr "" + +msgid "" +"Return ``True`` if 'header_name' is an HTTP/1.1 \"Hop-by-Hop\" header, as " +"defined by :rfc:`2616`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "Support for :meth:`sequence protocol <__getitem__>` is deprecated." +msgstr "" + +msgid ":mod:`wsgiref.headers` -- WSGI response header tools" +msgstr "" + +msgid "" +"This module provides a single class, :class:`Headers`, for convenient " +"manipulation of WSGI response headers using a mapping-like interface." +msgstr "" + +msgid "" +"Create a mapping-like object wrapping *headers*, which must be a list of " +"header name/value tuples as described in :pep:`3333`. The default value of " +"*headers* is an empty list." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid "Return a list of all the values for the named header." +msgstr "" + +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 " +"no fields exist with the given name, returns an empty list." +msgstr "" + +msgid "" +"Add a (possibly multi-valued) header, with optional MIME parameters " +"specified via keyword arguments." +msgstr "" + +msgid "" +"*name* is the header field to add. Keyword arguments can be used to set " +"MIME parameters for the header field. Each parameter must be a string or " +"``None``. Underscores in parameter names are converted to dashes, since " +"dashes are illegal in Python identifiers, but many MIME parameter names " +"include dashes. If the parameter value is a string, it is added to the " +"header value parameters in the form ``name=\"value\"``. If it is ``None``, " +"only the parameter name is added. (This is used for MIME parameters without " +"a value.) Example usage::" +msgstr "" + +msgid "The above will add a header that looks like this::" +msgstr "" + +msgid "*headers* parameter is optional." +msgstr "" + +msgid ":mod:`wsgiref.simple_server` -- a simple WSGI HTTP server" +msgstr "" + +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`.)" +msgstr "" + +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`." +msgstr "" + +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 " +"WSGI application correctly." +msgstr "" + +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." +msgstr "" + +msgid "" +"You do not normally need to call this constructor, as " +"the :func:`make_server` function can handle all the details for you." +msgstr "" + +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:" +msgstr "" + +msgid "" +"Sets the callable *application* as the WSGI application that will receive " +"requests." +msgstr "" + +msgid "Returns the currently set application callable." +msgstr "" + +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." +msgstr "" + +msgid "" +"Create an HTTP handler for the given *request* (i.e. a socket), " +"*client_address* (a ``(host,port)`` tuple), and *server* " +"(:class:`WSGIServer` instance)." +msgstr "" + +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:" +msgstr "" + +msgid "" +"Returns a dictionary containing the WSGI environment for a request. The " +"default implementation copies the contents of the :class:`WSGIServer` " +"object's :attr:`base_environ` dictionary attribute and then adds various " +"headers derived from the HTTP request. Each call to this method should " +"return a new dictionary containing all of the relevant CGI environment " +"variables as specified in :pep:`3333`." +msgstr "" + +msgid "" +"Return the object that should be used as the ``wsgi.errors`` stream. The " +"default implementation just returns ``sys.stderr``." +msgstr "" + +msgid "" +"Process the HTTP request. The default implementation creates a handler " +"instance using a :mod:`wsgiref.handlers` class to implement the actual WSGI " +"application interface." +msgstr "" + +msgid ":mod:`wsgiref.validate` --- WSGI conformance checker" +msgstr "" + +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 application objects that validate communications between a WSGI server " +"or gateway and a WSGI application object, to check both sides for protocol " +"conformance." +msgstr "" + +msgid "" +"Note that this utility does not guarantee complete :pep:`3333` compliance; " +"an absence of errors from this module does not necessarily mean that errors " +"do not exist. However, if this module does produce an error, then it is " +"virtually certain that either the server or application is not 100% " +"compliant." +msgstr "" + +msgid "" +"This module is based on the :mod:`paste.lint` module from Ian Bicking's " +"\"Python Paste\" library." +msgstr "" + +msgid "" +"Wrap *application* and return a new WSGI application object. The returned " +"application will forward all requests to the original *application*, and " +"will check that both the *application* and the server invoking it are " +"conforming to the WSGI specification and to :rfc:`2616`." +msgstr "" + +msgid "" +"Any detected nonconformance results in an :exc:`AssertionError` being " +"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 " +"stream." +msgstr "" + +msgid "" +"This wrapper may also generate output using the :mod:`warnings` module to " +"indicate behaviors that are questionable but which may not actually be " +"prohibited by :pep:`3333`. Unless they are suppressed using Python command-" +"line options or the :mod:`warnings` API, any such warnings will be written " +"to ``sys.stderr`` (*not* ``wsgi.errors``, unless they happen to be the same " +"object)." +msgstr "" + +msgid ":mod:`wsgiref.handlers` -- server/gateway base classes" +msgstr "" + +msgid "" +"This module provides base handler classes for implementing WSGI servers and " +"gateways. These base classes handle most of the work of communicating with " +"a WSGI application, as long as they are given a CGI-like environment, along " +"with input, output, and error streams." +msgstr "" + +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 " +"``app`` is the WSGI application object you wish to invoke." +msgstr "" + +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." +msgstr "" + +msgid "" +"A specialized alternative to :class:`CGIHandler`, for use when deploying on " +"Microsoft's IIS web server, without having set the config allowPathInfo " +"option (IIS>=7) or metabase allowPathInfoForScriptMappings (IIS<7)." +msgstr "" + +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 " +"routing. This handler strips any such duplicated path." +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 " +"IIS<7 is almost never deployed with the fix (Even IIS7 rarely uses it " +"because there is still no UI for it.)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"This class is a subclass of :class:`SimpleHandler` intended for use with " +"software other than HTTP \"origin servers\". If you are writing a gateway " +"protocol implementation (such as CGI, FastCGI, SCGI, etc.) that uses a " +"``Status:`` header to send an HTTP status, you probably want to subclass " +"this instead of :class:`SimpleHandler`." +msgstr "" + +msgid "" +"Similar to :class:`BaseCGIHandler`, but designed for use with HTTP origin " +"servers. If you are writing an HTTP server implementation, you will " +"probably want to subclass this instead of :class:`BaseCGIHandler`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :meth:`~io.BufferedIOBase.write` method of *stdout* should write each " +"chunk in full, like :class:`io.BufferedIOBase`." +msgstr "" + +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." +msgstr "" + +msgid "" +":class:`BaseHandler` instances have only one method intended for external " +"use:" +msgstr "" + +msgid "Run the specified WSGI application, *app*." +msgstr "" + +msgid "" +"All of the other :class:`BaseHandler` methods are invoked by this method in " +"the process of running the application, and thus exist primarily to allow " +"customizing the process." +msgstr "" + +msgid "The following methods MUST be overridden in a subclass:" +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." +msgstr "" + +msgid "" +"Force buffered data to be transmitted to the client. It's okay if this " +"method is a no-op (i.e., if :meth:`_write` actually sends the data)." +msgstr "" + +msgid "" +"Return an input stream object suitable for use as the ``wsgi.input`` of the " +"request currently being processed." +msgstr "" + +msgid "" +"Return an output stream object suitable for use as the ``wsgi.errors`` of " +"the request currently being processed." +msgstr "" + +msgid "" +"Insert CGI variables for the current request into the :attr:`environ` " +"attribute." +msgstr "" + +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." +msgstr "" + +msgid "Attributes and methods for customizing the WSGI environment:" +msgstr "" + +msgid "" +"The value to be used for the ``wsgi.multithread`` 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 "" + +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 " +"(or be set by the constructor) in the other subclasses." +msgstr "" + +msgid "" +"The value to be used for the ``wsgi.run_once`` environment variable. It " +"defaults to false in :class:`BaseHandler`, but :class:`CGIHandler` sets it " +"to true by default." +msgstr "" + +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 considered read-only, since the default value is shared between multiple " +"classes and instances." +msgstr "" + +msgid "" +"If the :attr:`origin_server` attribute is set, this attribute's value is " +"used to set the default ``SERVER_SOFTWARE`` WSGI environment variable, and " +"also to set a default ``Server:`` header in HTTP responses. It is ignored " +"for handlers (such as :class:`BaseCGIHandler` and :class:`CGIHandler`) that " +"are not HTTP origin servers." +msgstr "" + +msgid "" +"The term \"Python\" is replaced with implementation specific term like " +"\"CPython\", \"Jython\" etc." +msgstr "" + +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." +msgstr "" + +msgid "" +"Set the :attr:`environ` attribute to a fully populated WSGI environment. " +"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." +msgstr "" + +msgid "Methods and attributes for customizing exception handling:" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"The maximum number of frames to include in tracebacks output by the " +"default :meth:`log_exception` method. If ``None``, all frames are included." +msgstr "" + +msgid "" +"This method is a WSGI application to generate an error page for the user. " +"It is only invoked if an error occurs before headers are sent to the client." +msgstr "" + +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`)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The HTTP headers used for error responses. This should be a list of WSGI " +"response headers (``(name, value)`` tuples), as described in :pep:`3333`. " +"The default list just sets the content type to ``text/plain``." +msgstr "" + +msgid "" +"The error response body. This should be an HTTP response body bytestring. " +"It defaults to the plain text, \"A server error occurred. Please contact " +"the administrator.\"" +msgstr "" + +msgid "" +"Methods and attributes for :pep:`3333`'s \"Optional Platform-Specific File " +"Handling\" feature:" +msgstr "" + +msgid "" +"A ``wsgi.file_wrapper`` factory, or ``None``. The default value of this " +"attribute is the :class:`wsgiref.util.FileWrapper` class." +msgstr "" + +msgid "" +"Override to implement platform-specific file transmission. This method is " +"called only if the application's return value is an instance of the class " +"specified by the :attr:`wsgi_file_wrapper` attribute. It should return a " +"true value if it was able to successfully transmit the file, so that the " +"default transmission code will not be executed. The default implementation " +"of this method just returns a false value." +msgstr "" + +msgid "Miscellaneous methods and attributes:" +msgstr "" + +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, " +"rather than via a CGI-like gateway protocol that wants the HTTP status in a " +"special ``Status:`` header." +msgstr "" + +msgid "" +"This attribute's default value is true in :class:`BaseHandler`, but false " +"in :class:`BaseCGIHandler` and :class:`CGIHandler`." +msgstr "" + +msgid "" +"If :attr:`origin_server` is true, this string attribute is used to set the " +"HTTP version of the response set to the client. It defaults to ``\"1.0\"``." +msgstr "" + +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 " +"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)." +msgstr "" + +msgid "" +"If you are implementing a CGI-based handler of your own, you probably want " +"to use this routine instead of just copying values out of ``os.environ`` " +"directly." +msgstr "" + +msgid "Examples" +msgstr "Przykłady" + +msgid "This is a working \"Hello World\" WSGI application::" +msgstr "" + +msgid "" +"Example of a WSGI application serving the current directory, accept optional " +"directory and port number (default: 8000) on the command line:" +msgstr "" diff --git a/library/xdrlib.po b/library/xdrlib.po index f5024d84f3..a8c27678c3 100644 --- a/library/xdrlib.po +++ b/library/xdrlib.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:17+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`xdrlib` --- Encode and decode XDR data" msgstr "" @@ -47,8 +47,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -86,8 +86,9 @@ 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`." +"are " +"supported: :meth:`pack_uint`, :meth:`pack_int`, :meth:`pack_enum`, :meth:`pack_bool`, :meth:`pack_uhyper`, " +"and :meth:`pack_hyper`." msgstr "" msgid "Packs the single-precision floating point number *value*." @@ -111,8 +112,8 @@ msgstr "" 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 "" msgid "" @@ -186,8 +187,8 @@ msgid "Unpacks a single-precision floating point number." msgstr "" 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 "" msgid "" @@ -200,8 +201,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -211,13 +212,13 @@ msgid "" msgstr "" 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 "" 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 "" msgid "The following methods support unpacking arrays and lists:" @@ -250,8 +251,8 @@ msgid "Exceptions in this module are coded as class instances:" msgstr "" 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 "" msgid "" diff --git a/library/xml_dom.po b/library/xml_dom.po index 75321a7ece..ff1658f3b1 100644 --- a/library/xml_dom.po +++ b/library/xml_dom.po @@ -1,34 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:18+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`xml.dom` --- The Document Object Model API" msgstr "" msgid "**Source code:** :source:`Lib/xml/dom/__init__.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/xml/dom/__init__.py`" msgid "" "The Document Object Model, or \"DOM,\" is a cross-language API from the " @@ -56,9 +55,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -91,8 +90,8 @@ msgid "" msgstr "" msgid "" -"`Document Object Model (DOM) Level 2 Specification `_" +"`Document Object Model (DOM) Level 2 Specification `_" msgstr "" msgid "The W3C recommendation upon which the Python DOM API is based." @@ -175,8 +174,8 @@ msgid "" "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 " +"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 "" @@ -205,91 +204,91 @@ msgid "Purpose" msgstr "" msgid ":class:`DOMImplementation`" -msgstr "" +msgstr ":class:`DOMImplementation`" msgid ":ref:`dom-implementation-objects`" -msgstr "" +msgstr ":ref:`dom-implementation-objects`" msgid "Interface to the underlying implementation." msgstr "" msgid ":class:`Node`" -msgstr "" +msgstr ":class:`Node`" msgid ":ref:`dom-node-objects`" -msgstr "" +msgstr ":ref:`dom-node-objects`" msgid "Base interface for most objects in a document." msgstr "" msgid ":class:`NodeList`" -msgstr "" +msgstr ":class:`NodeList`" msgid ":ref:`dom-nodelist-objects`" -msgstr "" +msgstr ":ref:`dom-nodelist-objects`" msgid "Interface for a sequence of nodes." msgstr "" msgid ":class:`DocumentType`" -msgstr "" +msgstr ":class:`DocumentType`" msgid ":ref:`dom-documenttype-objects`" -msgstr "" +msgstr ":ref:`dom-documenttype-objects`" msgid "Information about the declarations needed to process a document." msgstr "" msgid ":class:`Document`" -msgstr "" +msgstr ":class:`Document`" msgid ":ref:`dom-document-objects`" -msgstr "" +msgstr ":ref:`dom-document-objects`" msgid "Object which represents an entire document." msgstr "" msgid ":class:`Element`" -msgstr "" +msgstr ":class:`Element`" msgid ":ref:`dom-element-objects`" -msgstr "" +msgstr ":ref:`dom-element-objects`" msgid "Element nodes in the document hierarchy." msgstr "" msgid ":class:`Attr`" -msgstr "" +msgstr ":class:`Attr`" msgid ":ref:`dom-attr-objects`" -msgstr "" +msgstr ":ref:`dom-attr-objects`" msgid "Attribute value nodes on element nodes." msgstr "" msgid ":class:`Comment`" -msgstr "" +msgstr ":class:`Comment`" msgid ":ref:`dom-comment-objects`" -msgstr "" +msgstr ":ref:`dom-comment-objects`" msgid "Representation of comments in the source document." msgstr "" msgid ":class:`Text`" -msgstr "" +msgstr ":class:`Text`" msgid ":ref:`dom-text-objects`" -msgstr "" +msgstr ":ref:`dom-text-objects`" msgid "Nodes containing textual content from the document." msgstr "" msgid ":class:`ProcessingInstruction`" -msgstr "" +msgstr ":class:`ProcessingInstruction`" msgid ":ref:`dom-pi-objects`" -msgstr "" +msgstr ":ref:`dom-pi-objects`" msgid "Processing instruction representation." msgstr "" @@ -305,8 +304,9 @@ msgstr "" 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." +"DOM Level 2 added the ability to create new :class:`Document` " +"and :class:`DocumentType` objects using the :class:`DOMImplementation` as " +"well." msgstr "" msgid "" @@ -315,12 +315,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -338,10 +338,8 @@ msgstr "" 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`. " +"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 "" @@ -369,8 +367,8 @@ msgid "" msgstr "" 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 "" @@ -406,9 +404,9 @@ 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 " -"attribute will be either a string or ``None``. This is a read-only " +"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 "" @@ -451,9 +449,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -462,9 +461,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -478,9 +477,10 @@ 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 "" msgid "" @@ -500,16 +500,16 @@ 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 " +"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 "" 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 "" msgid "DocumentType Objects" @@ -518,11 +518,11 @@ 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 " -"for the document, the document's :attr:`doctype` attribute will be set to " -"``None`` instead of an instance of this interface." +"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 "" msgid "" @@ -588,8 +588,8 @@ 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 "" msgid "" @@ -612,9 +612,9 @@ msgstr "" 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 "" msgid "" @@ -680,8 +680,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -700,8 +700,8 @@ 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 "" msgid "" @@ -738,8 +738,8 @@ msgid "" msgstr "" 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 "" msgid "NamedNodeMap Objects" @@ -760,8 +760,9 @@ msgstr "" 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 "" msgid "Comment Objects" @@ -784,9 +785,9 @@ 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 "" msgid "" @@ -828,19 +829,19 @@ msgid "Exceptions" msgstr "Wyjątki" 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 "" 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 " "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 "" msgid "" @@ -936,94 +937,94 @@ msgid "Exception" msgstr "" msgid ":const:`DOMSTRING_SIZE_ERR`" -msgstr "" +msgstr ":const:`DOMSTRING_SIZE_ERR`" msgid ":exc:`DomstringSizeErr`" -msgstr "" +msgstr ":exc:`DomstringSizeErr`" msgid ":const:`HIERARCHY_REQUEST_ERR`" -msgstr "" +msgstr ":const:`HIERARCHY_REQUEST_ERR`" msgid ":exc:`HierarchyRequestErr`" -msgstr "" +msgstr ":exc:`HierarchyRequestErr`" msgid ":const:`INDEX_SIZE_ERR`" -msgstr "" +msgstr ":const:`INDEX_SIZE_ERR`" msgid ":exc:`IndexSizeErr`" -msgstr "" +msgstr ":exc:`IndexSizeErr`" msgid ":const:`INUSE_ATTRIBUTE_ERR`" -msgstr "" +msgstr ":const:`INUSE_ATTRIBUTE_ERR`" msgid ":exc:`InuseAttributeErr`" -msgstr "" +msgstr ":exc:`InuseAttributeErr`" msgid ":const:`INVALID_ACCESS_ERR`" -msgstr "" +msgstr ":const:`INVALID_ACCESS_ERR`" msgid ":exc:`InvalidAccessErr`" -msgstr "" +msgstr ":exc:`InvalidAccessErr`" msgid ":const:`INVALID_CHARACTER_ERR`" -msgstr "" +msgstr ":const:`INVALID_CHARACTER_ERR`" msgid ":exc:`InvalidCharacterErr`" -msgstr "" +msgstr ":exc:`InvalidCharacterErr`" msgid ":const:`INVALID_MODIFICATION_ERR`" -msgstr "" +msgstr ":const:`INVALID_MODIFICATION_ERR`" msgid ":exc:`InvalidModificationErr`" -msgstr "" +msgstr ":exc:`InvalidModificationErr`" msgid ":const:`INVALID_STATE_ERR`" -msgstr "" +msgstr ":const:`INVALID_STATE_ERR`" msgid ":exc:`InvalidStateErr`" -msgstr "" +msgstr ":exc:`InvalidStateErr`" msgid ":const:`NAMESPACE_ERR`" -msgstr "" +msgstr ":const:`NAMESPACE_ERR`" msgid ":exc:`NamespaceErr`" -msgstr "" +msgstr ":exc:`NamespaceErr`" msgid ":const:`NOT_FOUND_ERR`" -msgstr "" +msgstr ":const:`NOT_FOUND_ERR`" msgid ":exc:`NotFoundErr`" -msgstr "" +msgstr ":exc:`NotFoundErr`" msgid ":const:`NOT_SUPPORTED_ERR`" -msgstr "" +msgstr ":const:`NOT_SUPPORTED_ERR`" msgid ":exc:`NotSupportedErr`" -msgstr "" +msgstr ":exc:`NotSupportedErr`" msgid ":const:`NO_DATA_ALLOWED_ERR`" -msgstr "" +msgstr ":const:`NO_DATA_ALLOWED_ERR`" msgid ":exc:`NoDataAllowedErr`" -msgstr "" +msgstr ":exc:`NoDataAllowedErr`" msgid ":const:`NO_MODIFICATION_ALLOWED_ERR`" -msgstr "" +msgstr ":const:`NO_MODIFICATION_ALLOWED_ERR`" msgid ":exc:`NoModificationAllowedErr`" -msgstr "" +msgstr ":exc:`NoModificationAllowedErr`" msgid ":const:`SYNTAX_ERR`" -msgstr "" +msgstr ":const:`SYNTAX_ERR`" msgid ":exc:`SyntaxErr`" -msgstr "" +msgstr ":exc:`SyntaxErr`" msgid ":const:`WRONG_DOCUMENT_ERR`" -msgstr "" +msgstr ":const:`WRONG_DOCUMENT_ERR`" msgid ":exc:`WrongDocumentErr`" -msgstr "" +msgstr ":exc:`WrongDocumentErr`" msgid "Conformance" msgstr "" @@ -1049,28 +1050,28 @@ msgid "Python Type" msgstr "typ Pythona" msgid "``boolean``" -msgstr "" +msgstr "``boolean``" msgid "``bool`` or ``int``" -msgstr "" +msgstr "``bool`` or ``int``" msgid "``int``" -msgstr "" +msgstr "``int``" msgid "``long int``" -msgstr "" +msgstr "``long int``" msgid "``unsigned int``" -msgstr "" +msgstr "``unsigned int``" msgid "``DOMString``" -msgstr "" +msgstr "``DOMString``" msgid "``str`` or ``bytes``" -msgstr "" +msgstr "``str`` or ``bytes``" msgid "``null``" -msgstr "" +msgstr "``null``" msgid "``None``" msgstr "``None`` - z ang. - ``Żaden``" @@ -1085,12 +1086,13 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1114,7 +1116,7 @@ msgstr "" 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." +"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_minidom.po b/library/xml_dom_minidom.po index 8191432af0..438f6c4242 100644 --- a/library/xml_dom_minidom.po +++ b/library/xml_dom_minidom.po @@ -1,40 +1,40 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:18+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`xml.dom.minidom` --- Minimal DOM implementation" msgstr "" msgid "**Source code:** :source:`Lib/xml/dom/minidom.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/xml/dom/minidom.py`" 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 "" msgid "" @@ -44,8 +44,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -67,8 +67,8 @@ msgstr "" 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`." +"an :class:`io.StringIO` object for the string and passes that on " +"to :func:`parse`." msgstr "" msgid "" @@ -88,27 +88,27 @@ msgstr "" 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 " -"add child nodes to it to populate the 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 add child nodes to it to populate the DOM::" 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 " -"document: the one that holds all others. Here is an example program::" +"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 "" 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 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 essentially " +"useless. Otherwise, Python's garbage collector will eventually take care of " +"the objects in the tree." msgstr "" msgid "" @@ -123,9 +123,9 @@ msgid "DOM Objects" msgstr "" 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 "" msgid "" @@ -139,8 +139,8 @@ msgstr "" 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 "" msgid "" @@ -201,8 +201,8 @@ msgid "" msgstr "" msgid "" -"The *encoding* argument behaves like the corresponding argument of :meth:" -"`toxml`." +"The *encoding* argument behaves like the corresponding argument " +"of :meth:`toxml`." msgstr "" msgid "" @@ -273,8 +273,8 @@ msgstr "" 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 "" msgid "" @@ -290,10 +290,10 @@ msgid "" msgstr "" msgid ":class:`DOMTimeStamp`" -msgstr "" +msgstr ":class:`DOMTimeStamp`" msgid ":class:`EntityReference`" -msgstr "" +msgstr ":class:`EntityReference`" msgid "" "Most of these reflect information in the XML document that is not of general " diff --git a/library/xml_dom_pulldom.po b/library/xml_dom_pulldom.po new file mode 100644 index 0000000000..1a6fecd14b --- /dev/null +++ b/library/xml_dom_pulldom.po @@ -0,0 +1,149 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`xml.dom.pulldom` --- Support for building partial DOM trees" +msgstr "" + +msgid "**Source code:** :source:`Lib/xml/dom/pulldom.py`" +msgstr "**Kod źródłowy:** :source:`Lib/xml/dom/pulldom.py`" + +msgid "" +"The :mod:`xml.dom.pulldom` module provides a \"pull parser\" which can also " +"be asked to produce DOM-accessible fragments of the document where " +"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." +msgstr "" + +msgid "" +"The :mod:`xml.dom.pulldom` module is not secure against maliciously " +"constructed data. If you need to parse untrusted or unauthenticated data " +"see :ref:`xml-vulnerabilities`." +msgstr "" + +msgid "" +"The SAX parser no longer processes general external entities by default to " +"increase security by default. To enable processing of external entities, " +"pass a custom parser instance in::" +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "``event`` is a constant and can be one of:" +msgstr "" + +msgid ":data:`START_ELEMENT`" +msgstr ":data:`START_ELEMENT`" + +msgid ":data:`END_ELEMENT`" +msgstr ":data:`END_ELEMENT`" + +msgid ":data:`COMMENT`" +msgstr ":data:`COMMENT`" + +msgid ":data:`START_DOCUMENT`" +msgstr ":data:`START_DOCUMENT`" + +msgid ":data:`END_DOCUMENT`" +msgstr ":data:`END_DOCUMENT`" + +msgid ":data:`CHARACTERS`" +msgstr ":data:`CHARACTERS`" + +msgid ":data:`PROCESSING_INSTRUCTION`" +msgstr ":data:`PROCESSING_INSTRUCTION`" + +msgid ":data:`IGNORABLE_WHITESPACE`" +msgstr ":data:`IGNORABLE_WHITESPACE`" + +msgid "" +"``node`` is an object of " +"type :class:`xml.dom.minidom.Document`, :class:`xml.dom.minidom.Element` " +"or :class:`xml.dom.minidom.Text`." +msgstr "" + +msgid "" +"Since the document is treated as a \"flat\" stream of events, the document " +"\"tree\" is implicitly traversed and the desired elements are found " +"regardless of their depth in the tree. In other words, one does not need to " +"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." +msgstr "" + +msgid "Subclass of :class:`xml.sax.handler.ContentHandler`." +msgstr "" + +msgid "" +"Return a :class:`DOMEventStream` from the given input. *stream_or_string* " +"may be either a file name, or a file-like object. *parser*, if given, must " +"be an :class:`~xml.sax.xmlreader.XMLReader` object. This function will " +"change the document handler of the parser and activate namespace support; " +"other parser configuration (like setting an entity resolver) must have been " +"done in advance." +msgstr "" + +msgid "" +"If you have XML in a string, you can use the :func:`parseString` function " +"instead:" +msgstr "" + +msgid "" +"Return a :class:`DOMEventStream` that represents the (Unicode) *string*." +msgstr "" + +msgid "Default value for the *bufsize* parameter to :func:`parse`." +msgstr "" + +msgid "" +"The value of this variable can be changed before calling :func:`parse` and " +"the new value will take effect." +msgstr "" + +msgid "DOMEventStream Objects" +msgstr "" + +msgid "Support for :meth:`sequence protocol <__getitem__>` is deprecated." +msgstr "" + +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 children, " +"unless :func:`expandNode` is called." +msgstr "" + +msgid "Expands all children of *node* into *node*. Example::" +msgstr "" diff --git a/library/xml_etree_elementtree.po b/library/xml_etree_elementtree.po index 062c62d40d..60a185b4c6 100644 --- a/library/xml_etree_elementtree.po +++ b/library/xml_etree_elementtree.po @@ -1,34 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:18+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`xml.etree.ElementTree` --- The ElementTree XML API" msgstr "" msgid "**Source code:** :source:`Lib/xml/etree/ElementTree.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/xml/etree/ElementTree.py`" msgid "" "The :mod:`xml.etree.ElementTree` module implements a simple and efficient " @@ -61,12 +61,12 @@ msgstr "" 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." +"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 "" msgid "Parsing XML" @@ -84,10 +84,10 @@ msgid "Or directly from a string::" msgstr "" 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 "" msgid "" @@ -116,9 +116,9 @@ msgstr "" 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 " +"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." @@ -146,6 +146,12 @@ msgid "" "memory." msgstr "" +msgid "" +"Where *immediate* feedback through events is wanted, calling " +"method :meth:`XMLPullParser.flush` can help reduce delay; please make sure " +"to study the related security notes." +msgstr "" + msgid "Finding interesting elements" msgstr "" @@ -215,11 +221,11 @@ msgstr "" 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." +"XML_namespace>`__, 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 "" msgid "" @@ -229,8 +235,8 @@ msgstr "" 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`::" +"every tag or attribute in the xpath of a :meth:`~Element.find` " +"or :meth:`~Element.findall`::" msgstr "" msgid "" @@ -245,19 +251,19 @@ msgid "XPath support" msgstr "" 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 "" msgid "Example" -msgstr "" +msgstr "Przykład" 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 "" msgid "" @@ -290,7 +296,7 @@ msgid "Support for star-wildcards was added." msgstr "" msgid "``*``" -msgstr "" +msgstr "``*``" msgid "" "Selects all child elements, including comments and processing instructions. " @@ -298,7 +304,7 @@ msgid "" msgstr "" msgid "``.``" -msgstr "" +msgstr "``.``" msgid "" "Selects the current node. This is mostly useful at the beginning of the " @@ -306,7 +312,7 @@ msgid "" msgstr "" msgid "``//``" -msgstr "" +msgstr "``//``" msgid "" "Selects all subelements, on all levels beneath the current element. For " @@ -314,7 +320,7 @@ msgid "" msgstr "" msgid "``..``" -msgstr "" +msgstr "``..``" msgid "" "Selects the parent element. Returns ``None`` if the path attempts to reach " @@ -322,13 +328,13 @@ msgid "" msgstr "" msgid "``[@attrib]``" -msgstr "" +msgstr "``[@attrib]``" msgid "Selects all elements that have the given attribute." msgstr "" msgid "``[@attrib='value']``" -msgstr "" +msgstr "``[@attrib='value']``" msgid "" "Selects all elements for which the given attribute has the given value. The " @@ -336,7 +342,7 @@ msgid "" msgstr "" msgid "``[@attrib!='value']``" -msgstr "" +msgstr "``[@attrib!='value']``" msgid "" "Selects all elements for which the given attribute does not have the given " @@ -352,7 +358,7 @@ msgid "" msgstr "" msgid "``[.='text']``" -msgstr "" +msgstr "``[.='text']``" msgid "" "Selects all elements whose complete text content, including descendants, " @@ -360,7 +366,7 @@ msgid "" msgstr "" msgid "``[.!='text']``" -msgstr "" +msgstr "``[.!='text']``" msgid "" "Selects all elements whose complete text content, including descendants, " @@ -368,7 +374,7 @@ msgid "" msgstr "" msgid "``[tag='text']``" -msgstr "" +msgstr "``[tag='text']``" msgid "" "Selects all elements that have a child named ``tag`` whose complete text " @@ -376,7 +382,7 @@ msgid "" msgstr "" msgid "``[tag!='text']``" -msgstr "" +msgstr "``[tag!='text']``" msgid "" "Selects all elements that have a child named ``tag`` whose complete text " @@ -400,7 +406,7 @@ msgid "" msgstr "" msgid "Reference" -msgstr "" +msgstr "Dokumentacja" msgid "Functions" msgstr "Zadania" @@ -441,8 +447,8 @@ msgid "(default: false)" msgstr "" msgid "" -"*rewrite_prefixes*: set to true to replace namespace prefixes by " -"\"n{number}\"" +"*rewrite_prefixes*: set to true to replace namespace prefixes by \"n{number}" +"\"" msgstr "" msgid "*qname_aware_tags*: a set of qname aware tag names in which prefixes" @@ -477,8 +483,8 @@ msgstr "" 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." +"comment nodes if they have been inserted into to the tree using one of " +"the :class:`Element` methods." msgstr "" msgid "" @@ -502,8 +508,8 @@ 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 "" msgid "" @@ -531,14 +537,14 @@ 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` " "containing XML data. *events* is a sequence of events to report back. The " -"supported events are the strings ``\"start\"``, ``\"end\"``, ``\"comment" -"\"``, ``\"pi\"``, ``\"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." +"supported events are the strings ``\"start\"``, ``\"end\"``, " +"``\"comment\"``, ``\"pi\"``, ``\"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 "" msgid "" @@ -568,8 +574,8 @@ 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 "" msgid "" @@ -612,10 +618,10 @@ msgid "" "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" -"\"``). *xml_declaration*, *default_namespace* and *short_empty_elements* has " -"the same meaning as in :meth:`ElementTree.write`. Returns an (optionally) " -"encoded string containing the XML data." +"is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default is " +"``\"xml\"``). *xml_declaration*, *default_namespace* and " +"*short_empty_elements* has the same meaning as in :meth:`ElementTree.write`. " +"Returns an (optionally) encoded string containing the XML data." msgstr "" msgid "The *short_empty_elements* parameter." @@ -634,12 +640,12 @@ msgid "" "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" -"\"``). *xml_declaration*, *default_namespace* and *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)``." +"is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default is " +"``\"xml\"``). *xml_declaration*, *default_namespace* and " +"*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 "" msgid "" @@ -650,24 +656,25 @@ msgstr "" 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 "" 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." +"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 "" msgid "XInclude support" msgstr "" msgid "" -"This module provides limited support for `XInclude directives `_, via the :mod:`xml.etree.ElementInclude` helper " +"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 "" @@ -686,8 +693,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -713,19 +720,19 @@ 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 "" 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`. *base_url* is base URL of the original " -"file, to resolve relative include file references. *max_depth* is the " -"maximum number of recursive inclusions. Limited to reduce the risk of " +"*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`. *base_url* is base URL of the " +"original file, to resolve relative include file references. *max_depth* is " +"the maximum number of recursive inclusions. Limited to reduce the risk of " "malicious content explosion. Pass a negative value to disable the limitation." msgstr "" @@ -776,8 +783,8 @@ msgid "" msgstr "" 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 "" msgid "Applications may store arbitrary objects in these attributes." @@ -824,8 +831,8 @@ msgstr "" 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 "" msgid "" @@ -860,8 +867,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -897,8 +904,8 @@ msgstr "" 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 "" msgid "" @@ -921,8 +928,8 @@ msgid "" "infoset/>`_ explicitly excludes the attribute order from conveying " "information. Code should be prepared to deal with any ordering on input. In " "cases where deterministic XML output is required, e.g. for cryptographic " -"signing or test data sets, canonical serialisation is available with the :" -"func:`canonicalize` function." +"signing or test data sets, canonical serialisation is available with " +"the :func:`canonicalize` function." msgstr "" msgid "" @@ -983,25 +990,26 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -1025,8 +1033,8 @@ msgid "" "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." +"interpreted as a URI, and this argument is interpreted as a local " +"name. :class:`QName` instances are opaque." msgstr "" msgid "TreeBuilder Objects" @@ -1119,13 +1127,13 @@ msgid "XMLParser Objects" msgstr "" 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. 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. " +"If *encoding* [1]_ is given, the value overrides the encoding specified in " +"the XML file." msgstr "" msgid "" @@ -1142,6 +1150,23 @@ msgstr "" msgid "Feeds data to the parser. *data* is encoded data." msgstr "" +msgid "" +"Triggers parsing of any previously fed unparsed data, which can be used to " +"ensure more immediate feedback, in particular with Expat >=2.6.0. The " +"implementation of :meth:`flush` temporarily disables reparse deferral with " +"Expat (if currently enabled) and triggers a reparse. Disabling reparse " +"deferral has security consequences; please " +"see :meth:`xml.parsers.expat.xmlparser.SetReparseDeferralEnabled` for " +"details." +msgstr "" + +msgid "" +"Note that :meth:`flush` has been backported to some prior releases of " +"CPython as a security fix. Check for availability of :meth:`flush` " +"using :func:`hasattr` if used in code running across a variety of Python " +"versions." +msgstr "" + 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 " @@ -1160,20 +1185,20 @@ msgid "" "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" -"\"``, ``\"comment\"``, ``\"pi\"``, ``\"start-ns\"`` and ``\"end-ns\"`` (the " -"\"ns\" events are used to get detailed namespace information). If *events* " -"is omitted, only ``\"end\"`` events are reported." +"report back. The supported events are the strings ``\"start\"``, " +"``\"end\"``, ``\"comment\"``, ``\"pi\"``, ``\"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 "" msgid "Feed the given bytes data to the parser." msgstr "" 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 "" msgid "" @@ -1225,8 +1250,8 @@ msgid "" msgstr "" 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 "" msgid "" diff --git a/library/xmlrpc.po b/library/xmlrpc.po new file mode 100644 index 0000000000..90e797c997 --- /dev/null +++ b/library/xmlrpc.po @@ -0,0 +1,44 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`xmlrpc` --- XMLRPC server and client modules" +msgstr "" + +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 " +"server (the server is named by a URI) and get back structured data." +msgstr "" + +msgid "" +"``xmlrpc`` is a package that collects server and client modules implementing " +"XML-RPC. The modules are:" +msgstr "" + +msgid ":mod:`xmlrpc.client`" +msgstr ":mod:`xmlrpc.client`" + +msgid ":mod:`xmlrpc.server`" +msgstr ":mod:`xmlrpc.server`" diff --git a/library/xmlrpc_client.po b/library/xmlrpc_client.po index ea77cc66d8..eb2a99f596 100644 --- a/library/xmlrpc_client.po +++ b/library/xmlrpc_client.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:18+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`xmlrpc.client` --- XML-RPC client access" msgstr "" msgid "**Source code:** :source:`Lib/xmlrpc/client.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/xmlrpc/client.py`" msgid "" "XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP(S) " @@ -48,15 +48,6 @@ msgid "" "certificate and hostname checks by default." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - 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 " @@ -74,17 +65,17 @@ msgid "" "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 " -"*headers* parameter is an optional sequence of HTTP headers to send with " -"each request, expressed as a sequence of 2-tuples representing the header " -"name and value. (e.g. ``[('Header-Name', 'value')]``). The obsolete " -"*use_datetime* flag is similar to *use_builtin_types* but it applies only to " -"date/time values." +"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 *headers* parameter is an optional " +"sequence of HTTP headers to send with each request, expressed as a sequence " +"of 2-tuples representing the header name and value. (e.g. ``[('Header-Name', " +"'value')]``). The obsolete *use_datetime* flag is similar to " +"*use_builtin_types* but it applies only to date/time values." msgstr "" msgid "The *use_builtin_types* flag was added." @@ -95,13 +86,13 @@ msgstr "" 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." +"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 "" msgid "" @@ -125,10 +116,10 @@ msgid "Python type" msgstr "" msgid "``boolean``" -msgstr "" +msgstr "``boolean``" msgid ":class:`bool`" -msgstr "" +msgstr ":class:`bool`" msgid "``int``, ``i1``, ``i2``, ``i4``, ``i8`` or ``biginteger``" msgstr "" @@ -139,19 +130,19 @@ msgid "" msgstr "" msgid "``double`` or ``float``" -msgstr "" +msgstr "``double`` or ``float``" msgid ":class:`float`. Values get the ```` tag." msgstr "" msgid "``string``" -msgstr "" +msgstr "``string``" msgid ":class:`str`" -msgstr "" +msgstr ":class:`str`" msgid "``array``" -msgstr "" +msgstr "``array``" msgid "" ":class:`list` or :class:`tuple` containing conformable elements. Arrays are " @@ -159,16 +150,16 @@ msgid "" msgstr "" msgid "``struct``" -msgstr "" +msgstr "``struct``" 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 "" msgid "``dateTime.iso8601``" -msgstr "" +msgstr "``dateTime.iso8601``" msgid "" ":class:`DateTime` or :class:`datetime.datetime`. Returned type depends on " @@ -176,7 +167,7 @@ msgid "" msgstr "" msgid "``base64``" -msgstr "" +msgstr "``base64``" msgid "" ":class:`Binary`, :class:`bytes` or :class:`bytearray`. Returned type " @@ -184,14 +175,14 @@ msgid "" msgstr "" msgid "``nil``" -msgstr "" +msgstr "``nil``" msgid "" "The ``None`` constant. Passing is allowed only if *allow_none* is true." msgstr "" msgid "``bigdecimal``" -msgstr "" +msgstr "``bigdecimal``" msgid ":class:`decimal.Decimal`. Returned type only." msgstr "" @@ -212,8 +203,9 @@ 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 "" msgid "" @@ -242,8 +234,8 @@ msgid "" msgstr "" msgid "" -"`XML-RPC Introspection `_" +"`XML-RPC Introspection `_" msgstr "" msgid "Describes the XML-RPC protocol extension for introspection." @@ -292,8 +284,8 @@ msgstr "" 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 " +"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 "" @@ -380,8 +372,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -435,8 +427,8 @@ msgid "" msgstr "" 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 "" msgid "MultiCall Objects" diff --git a/library/xmlrpc_server.po b/library/xmlrpc_server.po new file mode 100644 index 0000000000..2729372b91 --- /dev/null +++ b/library/xmlrpc_server.po @@ -0,0 +1,294 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`xmlrpc.server` --- Basic XML-RPC servers" +msgstr "" + +msgid "**Source code:** :source:`Lib/xmlrpc/server.py`" +msgstr "**Kod źródłowy:** :source:`Lib/xmlrpc/server.py`" + +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`." +msgstr "" + +msgid "" +"The :mod:`xmlrpc.server` module is not secure against maliciously " +"constructed data. If you need to parse untrusted or unauthenticated data " +"see :ref:`xml-vulnerabilities`." +msgstr "" + +msgid "" +"Create a new server instance. This class provides methods for registration " +"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 "" + +msgid "The *use_builtin_types* flag was added." +msgstr "" + +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 "" + +msgid "" +"Create a new request handler instance. This request handler supports " +"``POST`` requests and modifies logging so that the *logRequests* parameter " +"to the :class:`SimpleXMLRPCServer` constructor parameter is honored." +msgstr "" + +msgid "SimpleXMLRPCServer Objects" +msgstr "" + +msgid "" +"The :class:`SimpleXMLRPCServer` class is based " +"on :class:`socketserver.TCPServer` and provides a means of creating simple, " +"stand alone XML-RPC servers." +msgstr "" + +msgid "" +"Register a function that can respond to XML-RPC requests. If *name* is " +"given, it will be the method name associated with *function*, otherwise " +"``function.__name__`` will be used. *name* is a string, and may contain " +"characters not legal in Python identifiers, including the period character." +msgstr "" + +msgid "" +"This method can also be used as a decorator. When used as a decorator, " +"*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 "" + +msgid ":meth:`register_function` can be used as a decorator." +msgstr "" + +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 " +"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 "" + +msgid "" +"If the optional *allow_dotted_names* argument is true and the instance does " +"not have a :meth:`_dispatch` method, then 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 "" + +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 option on a secure, closed network." +msgstr "" + +msgid "" +"Registers the XML-RPC introspection functions ``system.listMethods``, " +"``system.methodHelp`` and ``system.methodSignature``." +msgstr "" + +msgid "Registers the XML-RPC multicall function system.multicall." +msgstr "" + +msgid "" +"An attribute value that must be a tuple listing valid path portions of the " +"URL for receiving XML-RPC requests. Requests posted to other paths will " +"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 "" + +msgid "SimpleXMLRPCServer Example" +msgstr "" + +msgid "Server code::" +msgstr "" + +msgid "" +"The following client code will call the methods made available by the " +"preceding server::" +msgstr "" + +msgid "" +":meth:`register_function` can also be used as a decorator. The previous " +"server example can register functions in a decorator way::" +msgstr "" + +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 "" + +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." +msgstr "" + +msgid "This ExampleService demo can be invoked from the command line::" +msgstr "" + +msgid "" +"The client that interacts with the above server is included in ``Lib/xmlrpc/" +"client.py``::" +msgstr "" + +msgid "" +"This client which interacts with the demo XMLRPC server can be invoked as::" +msgstr "" + +msgid "CGIXMLRPCRequestHandler" +msgstr "" + +msgid "" +"The :class:`CGIXMLRPCRequestHandler` class can be used to handle XML-RPC " +"requests sent to Python CGI scripts." +msgstr "" + +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 " +"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 "" + +msgid "" +"Register the XML-RPC introspection functions ``system.listMethods``, " +"``system.methodHelp`` and ``system.methodSignature``." +msgstr "" + +msgid "Register the XML-RPC multicall function ``system.multicall``." +msgstr "" + +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 " +"used." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "Documenting XMLRPC server" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Create a new server instance. All parameters have the same meaning as " +"for :class:`SimpleXMLRPCServer`; *requestHandler* defaults " +"to :class:`DocXMLRPCRequestHandler`." +msgstr "" + +msgid "Create a new instance to handle XML-RPC requests in a CGI environment." +msgstr "" + +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 " +"parameter is honored." +msgstr "" + +msgid "DocXMLRPCServer Objects" +msgstr "" + +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 " +"documentation." +msgstr "" + +msgid "" +"Set the title used in the generated HTML documentation. This title will be " +"used inside the HTML \"title\" element." +msgstr "" + +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." +msgstr "" + +msgid "" +"Set the description used in the generated HTML documentation. This " +"description will appear as a paragraph, below the server name, in the " +"documentation." +msgstr "" + +msgid "DocCGIXMLRPCRequestHandler" +msgstr "" + +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 "" diff --git a/library/zipapp.po b/library/zipapp.po index 4db942840e..db90b74be9 100644 --- a/library/zipapp.po +++ b/library/zipapp.po @@ -1,33 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:18+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`zipapp` --- Manage executable Python zip archives" msgstr "" msgid "**Source code:** :source:`Lib/zipapp.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/zipapp.py`" msgid "" "This module provides tools to manage the creation of zip files containing " @@ -200,8 +200,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 "" msgid "Added the *filter* and *compressed* arguments." @@ -234,12 +234,12 @@ msgid "" msgstr "" 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:`~io.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 "" msgid "Specifying the Interpreter" @@ -337,9 +337,9 @@ 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 "" msgid "" @@ -368,8 +368,8 @@ msgstr "" 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 "" msgid "" @@ -413,9 +413,9 @@ msgid "" "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 :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 "" msgid "The Python Zip Application Archive Format" diff --git a/library/zipfile.po b/library/zipfile.po new file mode 100644 index 0000000000..96e90fb97d --- /dev/null +++ b/library/zipfile.po @@ -0,0 +1,853 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`zipfile` --- Work with ZIP archives" +msgstr "" + +msgid "**Source code:** :source:`Lib/zipfile.py`" +msgstr "" + +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`_." +msgstr "" + +msgid "" +"This module does not currently handle multi-disk ZIP files. It can handle " +"ZIP files that use the ZIP64 extensions (that is ZIP files that are more " +"than 4 GiB in size). It supports decryption of encrypted files in ZIP " +"archives, but it currently cannot create an encrypted file. Decryption is " +"extremely slow as it is implemented in native Python rather than C." +msgstr "" + +msgid "The module defines the following items:" +msgstr "Moduł definiuje następujące pozycje:" + +msgid "The error raised for bad ZIP files." +msgstr "" + +msgid "" +"Alias of :exc:`BadZipFile`, for compatibility with older Python versions." +msgstr "" + +msgid "" +"The error raised when a ZIP file would require ZIP64 functionality but that " +"has not been enabled." +msgstr "" + +msgid "" +"The class for reading and writing ZIP files. See section :ref:`zipfile-" +"objects` for constructor details." +msgstr "" + +msgid "" +"Class that implements a subset of the interface provided " +"by :class:`pathlib.Path`, including the " +"full :class:`importlib.resources.abc.Traversable` interface." +msgstr "" + +msgid "Class for creating ZIP archives containing Python libraries." +msgstr "" + +msgid "" +"Class used to represent information about a member of an archive. Instances " +"of this class are returned by the :meth:`.getinfo` and :meth:`.infolist` " +"methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` " +"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`." +msgstr "" + +msgid "" +"Returns ``True`` if *filename* is a valid ZIP file based on its magic " +"number, otherwise returns ``False``. *filename* may be a file or file-like " +"object too." +msgstr "" + +msgid "Support for file and file-like objects." +msgstr "" + +msgid "The numeric constant for an uncompressed archive member." +msgstr "" + +msgid "" +"The numeric constant for the usual ZIP compression method. This requires " +"the :mod:`zlib` module." +msgstr "" + +msgid "" +"The numeric constant for the BZIP2 compression method. This requires " +"the :mod:`bz2` module." +msgstr "" + +msgid "" +"The numeric constant for the LZMA compression method. This requires " +"the :mod:`lzma` module." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "`PKZIP Application Note`_" +msgstr "" + +msgid "" +"Documentation on the ZIP file format by Phil Katz, the creator of the format " +"and algorithms used." +msgstr "" + +msgid "`Info-ZIP Home Page `_" +msgstr "" + +msgid "" +"Information about the Info-ZIP project's ZIP archive programs and " +"development libraries." +msgstr "" + +msgid "ZipFile Objects" +msgstr "" + +msgid "" +"Open a ZIP file, where *file* can be a path to a file (a string), a file-" +"like object or a :term:`path-like object`." +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 " +"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 " +"``'a'`` and the file does not exist at all, it is created. If *mode* is " +"``'r'`` or ``'a'``, the file should be seekable." +msgstr "" + +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 "" + +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 " +"``false`` :mod:`zipfile` will raise an exception when the ZIP file would " +"require ZIP64 extensions." +msgstr "" + +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)." +msgstr "" + +msgid "" +"The *strict_timestamps* argument, when set to ``False``, allows to zip files " +"older than 1980-01-01 at the cost of setting the timestamp to 1980-01-01. " +"Similar behavior occurs with files newer than 2107-12-31, the timestamp is " +"also set to the limit." +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "Added the ability to use :class:`ZipFile` as a context manager." +msgstr "" + +msgid "Added support for :mod:`bzip2 ` and :mod:`lzma` compression." +msgstr "" + +msgid "ZIP64 extensions are enabled by default." +msgstr "" + +msgid "" +"Added support for writing to unseekable streams. Added support for the " +"``'x'`` mode." +msgstr "" + +msgid "" +"Previously, a plain :exc:`RuntimeError` was raised for unrecognized " +"compression values." +msgstr "" + +msgid "The *file* parameter accepts a :term:`path-like object`." +msgstr "" + +msgid "Add the *compresslevel* parameter." +msgstr "" + +msgid "The *strict_timestamps* keyword-only argument" +msgstr "" + +msgid "" +"Close the archive file. You must call :meth:`close` before exiting your " +"program or essential records will not be written." +msgstr "" + +msgid "" +"Return a :class:`ZipInfo` object with information about the archive member " +"*name*. Calling :meth:`getinfo` for a name not currently contained in the " +"archive will raise a :exc:`KeyError`." +msgstr "" + +msgid "" +"Return a list containing a :class:`ZipInfo` object for each member of the " +"archive. The objects are in the same order as their entries in the actual " +"ZIP file on disk if an existing archive was opened." +msgstr "" + +msgid "Return a list of archive members by name." +msgstr "" + +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 as " +"a :class:`bytes` object." +msgstr "" + +msgid "" +":meth:`~ZipFile.open` is also a context manager and therefore supports " +"the :keyword:`with` statement::" +msgstr "" + +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:`~container.__iter__`, :meth:`~iterator.__next__`. " +"These objects can operate independently of the ZipFile." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Removed support of ``mode='U'``. Use :class:`io.TextIOWrapper` for reading " +"compressed text files in :term:`universal newlines` mode." +msgstr "" + +msgid "" +":meth:`ZipFile.open` can now be used to write files into the archive with " +"the ``mode='w'`` option." +msgstr "" + +msgid "" +"Calling :meth:`.open` on a closed ZipFile will raise a :exc:`ValueError`. " +"Previously, a :exc:`RuntimeError` was raised." +msgstr "" + +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 as a :class:`bytes` object." +msgstr "" + +msgid "Returns the normalized path created (a directory or new file)." +msgstr "" + +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 " +"(``_``)." +msgstr "" + +msgid "" +"Calling :meth:`extract` on a closed ZipFile will raise a :exc:`ValueError`. " +"Previously, a :exc:`RuntimeError` was raised." +msgstr "" + +msgid "The *path* parameter accepts a :term:`path-like object`." +msgstr "" + +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 as a :class:`bytes` object." +msgstr "" + +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." +msgstr "" + +msgid "" +"Calling :meth:`extractall` on a closed ZipFile will raise " +"a :exc:`ValueError`. Previously, a :exc:`RuntimeError` was raised." +msgstr "" + +msgid "Print a table of contents for the archive to ``sys.stdout``." +msgstr "" + +msgid "" +"Set *pwd* (a :class:`bytes` object) as default password to extract encrypted " +"files." +msgstr "" + +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 as " +"a :class:`bytes` object and, if specified, overrides 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 "" + +msgid "" +"Calling :meth:`read` on a closed ZipFile will raise a :exc:`ValueError`. " +"Previously, a :exc:`RuntimeError` was raised." +msgstr "" + +msgid "" +"Read all the files in the archive and check their CRC's and file headers. " +"Return the name of the first bad file, or else return ``None``." +msgstr "" + +msgid "" +"Calling :meth:`testzip` on a closed ZipFile will raise a :exc:`ValueError`. " +"Previously, a :exc:`RuntimeError` was raised." +msgstr "" + +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'``, " +"``'x'`` or ``'a'``." +msgstr "" + +msgid "" +"Archive names should be relative to the archive root, that is, they should " +"not start with a path separator." +msgstr "" + +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." +msgstr "" + +msgid "" +"A leading slash in the filename may lead to the archive being impossible to " +"open in some zip programs on Windows systems." +msgstr "" + +msgid "" +"Calling :meth:`write` on a ZipFile created with mode ``'r'`` or a closed " +"ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` " +"was raised." +msgstr "" + +msgid "" +"Write a file into the archive. The contents is *data*, which may be either " +"a :class:`str` or a :class:`bytes` instance; if it is a :class:`str`, it is " +"encoded as UTF-8 first. *zinfo_or_arcname* is either the file name it will " +"be given in the archive, or a :class:`ZipInfo` instance. If it's an " +"instance, at least the filename, date, and time must be given. If it's a " +"name, the date and time is set to the current date and time. The archive " +"must be opened with mode ``'w'``, ``'x'`` or ``'a'``." +msgstr "" + +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 " +"override the constructor if given." +msgstr "" + +msgid "" +"When passing a :class:`ZipInfo` instance as the *zinfo_or_arcname* " +"parameter, the compression method used will be that specified in the " +"*compress_type* member of the given :class:`ZipInfo` instance. By default, " +"the :class:`ZipInfo` constructor sets this member to :const:`ZIP_STORED`." +msgstr "" + +msgid "The *compress_type* argument." +msgstr "" + +msgid "" +"Calling :meth:`writestr` on a ZipFile created with mode ``'r'`` or a closed " +"ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` " +"was raised." +msgstr "" + +msgid "The following data attributes are also available:" +msgstr "" + +msgid "Name of the ZIP file." +msgstr "" + +msgid "" +"The level of debug output to use. This may be set from ``0`` (the default, " +"no output) to ``3`` (the most output). Debugging information is written to " +"``sys.stdout``." +msgstr "" + +msgid "" +"The comment associated with the ZIP file as a :class:`bytes` object. If " +"assigning a comment to a :class:`ZipFile` instance created with mode " +"``'w'``, ``'x'`` or ``'a'``, it should be no longer than 65535 bytes. " +"Comments longer than this will be truncated." +msgstr "" + +msgid "Path Objects" +msgstr "" + +msgid "" +"Construct a Path object from a ``root`` zipfile (which may be " +"a :class:`ZipFile` instance or ``file`` suitable for passing to " +"the :class:`ZipFile` constructor)." +msgstr "" + +msgid "" +"``at`` specifies the location of this Path within the zipfile, e.g. 'dir/" +"file.txt', 'dir/', or ''. Defaults to the empty string, indicating the root." +msgstr "" + +msgid "" +"Path objects expose the following features of :mod:`pathlib.Path` objects:" +msgstr "" + +msgid "Path objects are traversable using the ``/`` operator or ``joinpath``." +msgstr "" + +msgid "The final path component." +msgstr "" + +msgid "" +"Invoke :meth:`ZipFile.open` on the current path. Allows opening for read or " +"write, text or binary through supported modes: 'r', 'w', 'rb', 'wb'. " +"Positional and keyword arguments are passed through " +"to :class:`io.TextIOWrapper` when opened as text and ignored otherwise. " +"``pwd`` is the ``pwd`` parameter to :meth:`ZipFile.open`." +msgstr "" + +msgid "" +"Added support for text and binary modes for open. Default mode is now text." +msgstr "" + +msgid "" +"The ``encoding`` parameter can be supplied as a positional argument without " +"causing a :exc:`TypeError`. As it could in 3.9. Code needing to be " +"compatible with unpatched 3.10 and 3.11 versions must pass " +"all :class:`io.TextIOWrapper` arguments, ``encoding`` included, as keywords." +msgstr "" + +msgid "Enumerate the children of the current directory." +msgstr "" + +msgid "Return ``True`` if the current context references a directory." +msgstr "" + +msgid "Return ``True`` if the current context references a file." +msgstr "" + +msgid "" +"Return ``True`` if the current context references a file or directory in the " +"zip file." +msgstr "" + +msgid "" +"Read the current file as unicode text. Positional and keyword arguments are " +"passed through to :class:`io.TextIOWrapper` (except ``buffer``, which is " +"implied by the context)." +msgstr "" + +msgid "Read the current file as bytes." +msgstr "" + +msgid "" +"Return a new Path object with each of the *other* arguments joined. The " +"following are equivalent::" +msgstr "" + +msgid "" +"Prior to 3.10, ``joinpath`` was undocumented and accepted exactly one " +"parameter." +msgstr "" + +msgid "PyZipFile Objects" +msgstr "" + +msgid "" +"The :class:`PyZipFile` constructor takes the same parameters as " +"the :class:`ZipFile` constructor, and one additional parameter, *optimize*." +msgstr "" + +msgid "The *optimize* parameter." +msgstr "" + +msgid "" +"Instances have one method in addition to those of :class:`ZipFile` objects:" +msgstr "" + +msgid "" +"Search for files :file:`\\*.py` and add the corresponding file to the " +"archive." +msgstr "" + +msgid "" +"If the *optimize* parameter to :class:`PyZipFile` was not given or ``-1``, " +"the corresponding file is a :file:`\\*.pyc` file, compiling if necessary." +msgstr "" + +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 " +"the archive, compiling if necessary." +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 subdirectories are package directories, all of these are added " +"recursively in sorted order." +msgstr "" + +msgid "*basename* is intended for internal use only." +msgstr "" + +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) " +"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::" +msgstr "" + +msgid "The :meth:`writepy` method makes archives with file names like this::" +msgstr "" + +msgid "The *filterfunc* parameter." +msgstr "" + +msgid "The *pathname* parameter accepts a :term:`path-like object`." +msgstr "" + +msgid "Recursion sorts directory entries." +msgstr "" + +msgid "ZipInfo Objects" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"There is one classmethod to make a :class:`ZipInfo` instance for a " +"filesystem file:" +msgstr "" + +msgid "" +"Construct a :class:`ZipInfo` instance for a file on the filesystem, in " +"preparation for adding it to a zip file." +msgstr "" + +msgid "*filename* should be the path to a file or directory on the filesystem." +msgstr "" + +msgid "" +"If *arcname* is specified, it is used as the name within the archive. If " +"*arcname* is not specified, the name will be the same as *filename*, but " +"with any drive letter and leading path separators removed." +msgstr "" + +msgid "The *filename* parameter accepts a :term:`path-like object`." +msgstr "" + +msgid "Instances have the following methods and attributes:" +msgstr "" + +msgid "Return ``True`` if this archive member is a directory." +msgstr "" + +msgid "This uses the entry's name: directories should always end with ``/``." +msgstr "" + +msgid "Name of the file in the archive." +msgstr "" + +msgid "" +"The time and date of the last modification to the archive member. This is a " +"tuple of six values:" +msgstr "" + +msgid "Index" +msgstr "Indeks" + +msgid "Value" +msgstr "Wartość" + +msgid "``0``" +msgstr "``0``" + +msgid "Year (>= 1980)" +msgstr "" + +msgid "``1``" +msgstr "``1``" + +msgid "Month (one-based)" +msgstr "" + +msgid "``2``" +msgstr "``2``" + +msgid "Day of month (one-based)" +msgstr "" + +msgid "``3``" +msgstr "``3``" + +msgid "Hours (zero-based)" +msgstr "" + +msgid "``4``" +msgstr "``4``" + +msgid "Minutes (zero-based)" +msgstr "" + +msgid "``5``" +msgstr "``5``" + +msgid "Seconds (zero-based)" +msgstr "" + +msgid "The ZIP file format does not support timestamps before 1980." +msgstr "" + +msgid "Type of compression for the archive member." +msgstr "" + +msgid "Comment for the individual archive member as a :class:`bytes` object." +msgstr "" + +msgid "" +"Expansion field data. The `PKZIP Application Note`_ contains some comments " +"on the internal structure of the data contained in this :class:`bytes` " +"object." +msgstr "" + +msgid "System which created ZIP archive." +msgstr "" + +msgid "PKZIP version which created ZIP archive." +msgstr "" + +msgid "PKZIP version needed to extract archive." +msgstr "" + +msgid "Must be zero." +msgstr "" + +msgid "ZIP flag bits." +msgstr "" + +msgid "Volume number of file header." +msgstr "" + +msgid "Internal attributes." +msgstr "" + +msgid "External file attributes." +msgstr "" + +msgid "Byte offset to the file header." +msgstr "" + +msgid "CRC-32 of the uncompressed file." +msgstr "" + +msgid "Size of the compressed data." +msgstr "" + +msgid "Size of the uncompressed file." +msgstr "" + +msgid "Command-Line Interface" +msgstr "" + +msgid "" +"The :mod:`zipfile` module provides a simple command-line interface to " +"interact with ZIP archives." +msgstr "" + +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:" +msgstr "" + +msgid "Passing a directory is also acceptable:" +msgstr "" + +msgid "" +"If you want to extract a ZIP archive into the specified directory, use " +"the :option:`-e` option:" +msgstr "" + +msgid "For a list of the files in a ZIP archive, use the :option:`-l` option:" +msgstr "" + +msgid "Command-line options" +msgstr "" + +msgid "List files in a zipfile." +msgstr "" + +msgid "Create zipfile from source files." +msgstr "" + +msgid "Extract zipfile into target directory." +msgstr "" + +msgid "Test whether the zipfile is valid or not." +msgstr "" + +msgid "Decompression pitfalls" +msgstr "" + +msgid "" +"The extraction in zipfile module might fail due to some pitfalls listed " +"below." +msgstr "" + +msgid "From file itself" +msgstr "" + +msgid "" +"Decompression may fail due to incorrect password / CRC checksum / ZIP format " +"or unsupported compression method / decryption." +msgstr "" + +msgid "File System limitations" +msgstr "" + +msgid "" +"Exceeding limitations on different file systems can cause decompression " +"failed. Such as allowable characters in the directory entries, length of the " +"file name, length of the pathname, size of a single file, and number of " +"files, etc." +msgstr "" + +msgid "Resources limitations" +msgstr "" + +msgid "" +"The lack of memory or disk volume would lead to decompression failed. For " +"example, decompression bombs (aka `ZIP bomb`_) apply to zipfile library that " +"can cause disk volume exhaustion." +msgstr "" + +msgid "Interruption" +msgstr "" + +msgid "" +"Interruption during the decompression, such as pressing control-C or killing " +"the decompression process may result in incomplete decompression of the " +"archive." +msgstr "" + +msgid "Default behaviors of extraction" +msgstr "" + +msgid "" +"Not knowing the default extraction behaviors can cause unexpected " +"decompression results. For example, when extracting the same archive twice, " +"it overwrites files without asking." +msgstr "" diff --git a/library/zipimport.po b/library/zipimport.po index 0c15d45b02..833776cc62 100644 --- a/library/zipimport.po +++ b/library/zipimport.po @@ -1,40 +1,40 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:18+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`zipimport` --- Import modules from Zip archives" msgstr "" msgid "**Source code:** :source:`Lib/zipimport.py`" -msgstr "" +msgstr "**Kod źródłowy:** :source:`Lib/zipimport.py`" 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 "" msgid "" @@ -49,8 +49,8 @@ msgstr "" msgid "" "Any files may be present in the ZIP archive, but importers are only invoked " -"for :file:`.py` and :file:`.pyc` files. ZIP import of dynamic modules (:" -"file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only " +"for :file:`.py` and :file:`.pyc` files. 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." @@ -75,8 +75,8 @@ 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`." +"written by Just van Rossum that uses the import hooks described " +"in :pep:`302`." msgstr "" msgid ":mod:`importlib` - The implementation of the import machinery" @@ -90,8 +90,8 @@ msgid "This module defines an exception:" msgstr "" 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 "" msgid "zipimporter Objects" @@ -103,9 +103,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 "" msgid "" @@ -114,8 +114,8 @@ msgid "" msgstr "" msgid "" -"Implementation of :meth:`importlib.abc.Loader.create_module` that returns :" -"const:`None` to explicitly request the default semantics." +"Implementation of :meth:`importlib.abc.Loader.create_module` that " +"returns :const:`None` to explicitly request the default semantics." msgstr "" msgid "Implementation of :meth:`importlib.abc.Loader.exec_module`." @@ -163,8 +163,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -193,14 +193,14 @@ msgstr "" 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 "" msgid "Examples" msgstr "Przykłady" 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 new file mode 100644 index 0000000000..b715f4a980 --- /dev/null +++ b/library/zlib.po @@ -0,0 +1,388 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid ":mod:`zlib` --- Compression compatible with :program:`gzip`" +msgstr "" + +msgid "" +"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 https://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 using 1.1.4 or later." +msgstr "" + +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." +msgstr "" + +msgid "For reading and writing ``.gz`` files see the :mod:`gzip` module." +msgstr "" + +msgid "The available exception and functions in this module are:" +msgstr "" + +msgid "Exception raised on compression and decompression errors." +msgstr "" + +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 " +"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 " +"concatenation of several inputs. The algorithm is not cryptographically " +"strong, and should not be used for authentication or digital signatures. " +"Since the algorithm is designed for use as a checksum algorithm, it is not " +"suitable for use as a general hash algorithm." +msgstr "" + +msgid "" +"The result is always unsigned. To generate the same numeric value when using " +"Python 2 or earlier, use ``adler32(data) & 0xffffffff``." +msgstr "" + +msgid "" +"Compresses the bytes in *data*, returning a bytes object containing " +"compressed data. *level* is an integer from ``0`` to ``9`` or ``-1`` " +"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 " +"level 6). Raises the :exc:`error` exception if any error occurs." +msgstr "" + +msgid "*level* can now be used as a keyword parameter." +msgstr "" + +msgid "" +"Returns a compression object, to be used for compressing data streams that " +"won't fit into memory at once." +msgstr "" + +msgid "" +"*level* is the compression level -- an integer from ``0`` to ``9`` or " +"``-1``. A value of ``1`` (Z_BEST_SPEED) is fastest and produces the least " +"compression, while a value of ``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 " +"level 6)." +msgstr "" + +msgid "" +"*method* is the compression algorithm. Currently, the only supported value " +"is :const:`DEFLATED`." +msgstr "" + +msgid "" +"The *wbits* argument controls the size of the history buffer (or the " +"\"window size\") used when compressing data, and whether a header and " +"trailer is included in the output. It can take several ranges of values, " +"defaulting to ``15`` (MAX_WBITS):" +msgstr "" + +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 " +"expense of greater memory usage. The resulting output will include a zlib-" +"specific header and trailer." +msgstr "" + +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 "" + +msgid "" +"+25 to +31 = 16 + (9 to 15): Uses the low 4 bits of the value as the window " +"size logarithm, while including a basic :program:`gzip` header and trailing " +"checksum in the output." +msgstr "" + +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." +msgstr "" + +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)." +msgstr "" + +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." +msgstr "" + +msgid "Added the *zdict* parameter and keyword argument support." +msgstr "" + +msgid "" +"Computes a CRC (Cyclic Redundancy Check) checksum of *data*. 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 0 is used. " +"Passing in *value* allows computing a running checksum over the " +"concatenation of several inputs. The algorithm is not cryptographically " +"strong, and should not be used for authentication or digital signatures. " +"Since the algorithm is designed for use as a checksum algorithm, it is not " +"suitable for use as a general hash algorithm." +msgstr "" + +msgid "" +"The result is always unsigned. To generate the same numeric value when using " +"Python 2 or earlier, use ``crc32(data) & 0xffffffff``." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *wbits* parameter controls the size of the history buffer (or \"window " +"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 "" + +msgid "" +"+8 to +15: The base-two logarithm of the window size. The input must " +"include a zlib header and trailer." +msgstr "" + +msgid "" +"0: Automatically determine the window size from the zlib header. Only " +"supported since zlib 1.2.3.5." +msgstr "" + +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." +msgstr "" + +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 "" + +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 "" + +msgid "" +"When decompressing a stream, the window size must not be smaller than the " +"size originally used to compress the stream; using a too-small value may " +"result in an :exc:`error` exception. The default *wbits* value corresponds " +"to the largest window size and requires a zlib header and trailer to be " +"included." +msgstr "" + +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 " +"few calls to :c:func:`malloc`." +msgstr "" + +msgid "*wbits* and *bufsize* can be used as keyword arguments." +msgstr "" + +msgid "" +"Returns a decompression object, to be used for decompressing data streams " +"that won't fit into memory at once." +msgstr "" + +msgid "" +"The *wbits* parameter controls the size of the history buffer (or the " +"\"window size\"), and what header and trailer format is expected. It has " +"the same meaning as `described for decompress() <#decompress-wbits>`__." +msgstr "" + +msgid "" +"The *zdict* parameter specifies a predefined compression dictionary. If " +"provided, this must be the same dictionary as was used by the compressor " +"that produced the data that is to be decompressed." +msgstr "" + +msgid "" +"If *zdict* is a mutable object (such as a :class:`bytearray`), you must not " +"modify its contents between the call to :func:`decompressobj` and the first " +"call to the decompressor's ``decompress()`` method." +msgstr "" + +msgid "Added the *zdict* parameter." +msgstr "" + +msgid "Compression objects support the following methods:" +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Returns a copy of the compression object. This can be used to efficiently " +"compress a set of data that share a common initial prefix." +msgstr "" + +msgid "" +"Added :func:`copy.copy` and :func:`copy.deepcopy` support to compression " +"objects." +msgstr "" + +msgid "Decompression objects support the following methods and attributes:" +msgstr "" + +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 " +"compression data is available. If the whole bytestring turned out to " +"contain compressed data, this is ``b\"\"``, an empty bytes object." +msgstr "" + +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 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." +msgstr "" + +msgid "" +"A boolean indicating whether the end of the compressed data stream has been " +"reached." +msgstr "" + +msgid "" +"This makes it possible to distinguish between a properly formed compressed " +"stream, and an incomplete or truncated one." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "*max_length* can be used as a keyword argument." +msgstr "" + +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." +msgstr "" + +msgid "" +"The optional parameter *length* sets the initial size of the output buffer." +msgstr "" + +msgid "" +"Returns a copy of the decompression object. This can be used to save the " +"state of the decompressor midway through the data stream in order to speed " +"up random seeks into the stream at a future point." +msgstr "" + +msgid "" +"Added :func:`copy.copy` and :func:`copy.deepcopy` support to decompression " +"objects." +msgstr "" + +msgid "" +"Information about the version of the zlib library in use is available " +"through the following constants:" +msgstr "" + +msgid "" +"The version string of the zlib library that was used for building the " +"module. This may be different from the zlib library actually used at " +"runtime, which is available as :const:`ZLIB_RUNTIME_VERSION`." +msgstr "" + +msgid "" +"The version string of the zlib library actually loaded by the interpreter." +msgstr "" + +msgid "Module :mod:`gzip`" +msgstr "" + +msgid "Reading and writing :program:`gzip`\\ -format files." +msgstr "" + +msgid "http://www.zlib.net" +msgstr "http://www.zlib.net" + +msgid "The zlib library home page." +msgstr "" + +msgid "http://www.zlib.net/manual.html" +msgstr "http://www.zlib.net/manual.html" + +msgid "" +"The zlib manual explains the semantics and usage of the library's many " +"functions." +msgstr "" diff --git a/library/zoneinfo.po b/library/zoneinfo.po index 6c4d295bb9..1bc8ad2a59 100644 --- a/library/zoneinfo.po +++ b/library/zoneinfo.po @@ -1,31 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:19+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid ":mod:`zoneinfo` --- IANA time zone support" msgstr "" +msgid "**Source code:** :source:`Lib/zoneinfo`" +msgstr "**Kod źródłowy:** :source:`Lib/zoneinfo`" + msgid "" "The :mod:`zoneinfo` module provides a concrete time zone implementation to " "support the IANA time zone database as originally specified in :pep:`615`. " @@ -50,24 +53,15 @@ msgid "" "zone data via PyPI." msgstr "" -msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" - -msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." -msgstr "" - msgid "Using ``ZoneInfo``" msgstr "" msgid "" -":class:`ZoneInfo` is a concrete implementation of the :class:`datetime." -"tzinfo` abstract base class, and is intended to be attached to ``tzinfo``, " -"either via the constructor, the :meth:`datetime.replace ` method or :meth:`datetime.astimezone `::" +":class:`ZoneInfo` is a concrete implementation of " +"the :class:`datetime.tzinfo` abstract base class, and is intended to be " +"attached to ``tzinfo``, either via the constructor, " +"the :meth:`datetime.replace ` method " +"or :meth:`datetime.astimezone `::" msgstr "" msgid "" @@ -137,8 +131,8 @@ msgid "" "those building Python from source who know where their system time zone data " "is deployed may change the default time zone path by specifying the compile-" "time option ``TZPATH`` (or, more likely, the :option:`configure flag --with-" -"tzpath <--with-tzpath>`), which should be a string delimited by :data:`os." -"pathsep`." +"tzpath <--with-tzpath>`), which should be a string delimited " +"by :data:`os.pathsep`." msgstr "" msgid "" @@ -150,10 +144,10 @@ msgid "Environment configuration" msgstr "" msgid "" -"When initializing :data:`TZPATH` (either at import time or whenever :func:" -"`reset_tzpath` is called with no arguments), the ``zoneinfo`` module will " -"use the environment variable ``PYTHONTZPATH``, if it exists, to set the " -"search path." +"When initializing :data:`TZPATH` (either at import time or " +"whenever :func:`reset_tzpath` is called with no arguments), the ``zoneinfo`` " +"module will use the environment variable ``PYTHONTZPATH``, if it exists, to " +"set the search path." msgstr "" msgid "" @@ -175,11 +169,11 @@ msgid "Runtime configuration" msgstr "" msgid "" -"The TZ search path can also be configured at runtime using the :func:" -"`reset_tzpath` function. This is generally not an advisable operation, " -"though it is reasonable to use it in test functions that require the use of " -"a specific time zone path (or require disabling access to the system time " -"zones)." +"The TZ search path can also be configured at runtime using " +"the :func:`reset_tzpath` function. This is generally not an advisable " +"operation, though it is reasonable to use it in test functions that require " +"the use of a specific time zone path (or require disabling access to the " +"system time zones)." msgstr "" msgid "The ``ZoneInfo`` class" @@ -200,22 +194,22 @@ msgid "" msgstr "" msgid "" -"If no file matching ``key`` is found, the constructor will raise :exc:" -"`ZoneInfoNotFoundError`." +"If no file matching ``key`` is found, the constructor will " +"raise :exc:`ZoneInfoNotFoundError`." msgstr "" msgid "The ``ZoneInfo`` class has two alternate constructors:" msgstr "" msgid "" -"Constructs a ``ZoneInfo`` object from a file-like object returning bytes (e." -"g. a file opened in binary mode or an :class:`io.BytesIO` object). Unlike " +"Constructs a ``ZoneInfo`` object from a file-like object returning bytes " +"(e.g. a file opened in binary mode or an :class:`io.BytesIO` object). Unlike " "the primary constructor, this always constructs a new object." msgstr "" msgid "" -"The ``key`` parameter sets the name of the zone for the purposes of :py:meth:" -"`~object.__str__` and :py:meth:`~object.__repr__`." +"The ``key`` parameter sets the name of the zone for the purposes " +"of :py:meth:`~object.__str__` and :py:meth:`~object.__repr__`." msgstr "" msgid "" @@ -288,9 +282,9 @@ msgid "String representations" msgstr "" msgid "" -"The string representation returned when calling :py:class:`str` on a :class:" -"`ZoneInfo` object defaults to using the :attr:`ZoneInfo.key` attribute (see " -"the note on usage in the attribute documentation)::" +"The string representation returned when calling :py:class:`str` on " +"a :class:`ZoneInfo` object defaults to using the :attr:`ZoneInfo.key` " +"attribute (see the note on usage in the attribute documentation)::" msgstr "" msgid "" @@ -389,10 +383,10 @@ msgid "" msgstr "" msgid "" -"The ``to`` parameter must be a :term:`sequence` of strings or :class:`os." -"PathLike` and not a string, all of which must be absolute paths. :exc:" -"`ValueError` will be raised if something other than an absolute path is " -"passed." +"The ``to`` parameter must be a :term:`sequence` of strings " +"or :class:`os.PathLike` and not a string, all of which must be absolute " +"paths. :exc:`ValueError` will be raised if something other than an absolute " +"path is passed." msgstr "" msgid "Globals" @@ -411,14 +405,14 @@ msgstr "" msgid "" "The object that ``zoneinfo.TZPATH`` points to may change in response to a " -"call to :func:`reset_tzpath`, so it is recommended to use ``zoneinfo." -"TZPATH`` rather than importing ``TZPATH`` from ``zoneinfo`` or assigning a " -"long-lived variable to ``zoneinfo.TZPATH``." +"call to :func:`reset_tzpath`, so it is recommended to use " +"``zoneinfo.TZPATH`` rather than importing ``TZPATH`` from ``zoneinfo`` or " +"assigning a long-lived variable to ``zoneinfo.TZPATH``." msgstr "" msgid "" -"For more information on configuring the time zone search path, see :ref:" -"`zoneinfo_data_configuration`." +"For more information on configuring the time zone search path, " +"see :ref:`zoneinfo_data_configuration`." msgstr "" msgid "Exceptions and warnings" @@ -426,8 +420,8 @@ msgstr "" msgid "" "Raised when construction of a :class:`ZoneInfo` object fails because the " -"specified key could not be found on the system. This is a subclass of :exc:" -"`KeyError`." +"specified key could not be found on the system. This is a subclass " +"of :exc:`KeyError`." msgstr "" msgid "" diff --git a/license.po b/license.po index 28cb083dd4..cc9e8558d3 100644 --- a/license.po +++ b/license.po @@ -1,27 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "History and License" msgstr "Historia i zapisy prawne" @@ -153,10 +154,10 @@ msgid "2.1.3" msgstr "2.1.3" msgid "2.2 and above" -msgstr "" +msgstr "2.2 i wyższe" msgid "2001-now" -msgstr "" +msgstr "2001-teraz" msgid "" "GPL-compatible doesn't mean that we're distributing Python under the GPL. " @@ -186,9 +187,7 @@ msgstr "" "pytonowskiego." msgid "Terms and conditions for accessing or otherwise using Python" -msgstr "" -"Zasady i warunki postępowania z programem języka pytonowskiego i ogólnie " -"jego użycia. " +msgstr "Zasady i warunki postępowania z Pythonem i ogólnie jego użycia" msgid "" "Python software and documentation are licensed under the :ref:`PSF License " @@ -197,30 +196,33 @@ msgstr "" msgid "" "Starting with Python 3.8.6, examples, recipes, and other code in the " -"documentation are dual licensed under the PSF License Agreement and the :ref:" -"`Zero-Clause BSD license `." +"documentation are dual licensed under the PSF License Agreement and " +"the :ref:`Zero-Clause BSD license `." msgstr "" msgid "" "Some software incorporated into Python is under different licenses. The " -"licenses are listed with code falling under that license. See :ref:" -"`OtherLicenses` for an incomplete list of these licenses." +"licenses are listed with code falling under that license. " +"See :ref:`OtherLicenses` for an incomplete list of these licenses." msgstr "" +"Niektóre programy zawarte w Pythonie są objęte różnymi licencjami. Licencje " +"te są wymienione wraz z kodem, który podlega danej licencji. Niekompletną " +"listę tych licencji można znaleźć pod adresem :ref:`OtherLicenses`." msgid "PSF LICENSE AGREEMENT FOR PYTHON |release|" msgstr "" msgid "BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0" -msgstr "" +msgstr "BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0" msgid "BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1" -msgstr "" +msgstr "BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1" msgid "CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1" -msgstr "" +msgstr "CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1" msgid "CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2" -msgstr "" +msgstr "CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2" msgid "ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON |release| DOCUMENTATION" msgstr "" @@ -233,27 +235,30 @@ msgid "" "acknowledgements for third-party software incorporated in the Python " "distribution." msgstr "" +"Ta sekcja zawiera niekompletną, ale stale uzupełnianą listę licencji i " +"podziękowań dotyczących oprogramowania osób trzecich, wchodzącego w skład " +"dystrybucji Python." msgid "Mersenne Twister" -msgstr "" +msgstr "Mersenne Twister" 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 "" msgid "Sockets" -msgstr "" +msgstr "Sockets" msgid "" -"The :mod:`socket` module uses the functions, :func:`getaddrinfo`, and :func:" -"`getnameinfo`, which are coded in separate source files from the WIDE " -"Project, https://www.wide.ad.jp/. ::" +"The :mod:`socket` module uses the functions, :func:`getaddrinfo`, " +"and :func:`getnameinfo`, which are coded in separate source files from the " +"WIDE Project, https://www.wide.ad.jp/. ::" msgstr "" msgid "Asynchronous socket services" -msgstr "" +msgstr "Usługi asynchronicznych socketów" msgid "" "The :mod:`asynchat` and :mod:`asyncore` modules contain the following " @@ -261,19 +266,19 @@ msgid "" msgstr "" msgid "Cookie management" -msgstr "" +msgstr "Zarządzanie plikami cookie" msgid "The :mod:`http.cookies` module contains the following notice::" -msgstr "" +msgstr "Moduł :mod:`http.cookies` zawiera następującą informację::" msgid "Execution tracing" msgstr "" msgid "The :mod:`trace` module contains the following notice::" -msgstr "" +msgstr "Moduł :mod:`trace` zawiera następującą informację::" msgid "UUencode and UUdecode functions" -msgstr "" +msgstr "Funkcje UUencode i UUdecode" msgid "The :mod:`uu` module contains the following notice::" msgstr "" @@ -282,44 +287,56 @@ msgid "XML Remote Procedure Calls" msgstr "" msgid "The :mod:`xmlrpc.client` module contains the following notice::" -msgstr "" +msgstr "Moduł :mod:`xmlrpc.client` zawiera następującą informację::" msgid "test_epoll" -msgstr "" +msgstr "test_epoll" msgid "The :mod:`test_epoll` module contains the following notice::" msgstr "" msgid "Select kqueue" -msgstr "" +msgstr "Select kqueue" msgid "" "The :mod:`select` module contains the following notice for the kqueue " "interface::" msgstr "" +"Moduł :mod:`select` zawiera następującą informację dotyczącą interfejsu " +"kqueue::" msgid "SipHash24" -msgstr "" +msgstr "SipHash24" msgid "" "The file :file:`Python/pyhash.c` contains Marek Majkowski' implementation of " "Dan Bernstein's SipHash24 algorithm. It contains the following note::" msgstr "" +"Plik :file:`Python/pyhash.c` zawiera implementację algorytmu SipHash24 " +"autorstwa Dana Bernsteina, opracowaną przez Marka Majkowskiego. Znajduje się " +"w nim następująca uwaga::" msgid "strtod and dtoa" -msgstr "" +msgstr "strtod i dtoa" 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 https://web.archive." -"org/web/20220517033456/http://www.netlib.org/fp/dtoa.c. The original file, " -"as retrieved on March 16, 2009, contains the following copyright and " -"licensing notice::" -msgstr "" +"the same name by David M. Gay, currently available from https://" +"web.archive.org/web/20220517033456/http://www.netlib.org/fp/dtoa.c. The " +"original file, as retrieved on March 16, 2009, contains the following " +"copyright and licensing notice::" +msgstr "" +"Plik :file:`Python/dtoa.c`, zawierający funkcje C funkcja dtoa oraz strtod " +"służące do konwersji wartości typu double w języku C na format napisu i " +"odwrotnie, pochodzi z pliku o tej samej nazwie autorstwa Davida M. Gay’a, " +"dostępnego obecnie pod adresem https://web.archive.org/web/20220517033456/" +"http://www.netlib.org/fp/dtoa.c. Oryginalny plik, pobrany 16 marca 2009 r., " +"zawiera następujące informacje o prawie autorskim oraz informację o " +"licencji::" msgid "OpenSSL" -msgstr "" +msgstr "OpenSSL" msgid "" "The modules :mod:`hashlib`, :mod:`posix`, :mod:`ssl`, :mod:`crypt` use the " @@ -330,7 +347,7 @@ msgid "" msgstr "" msgid "expat" -msgstr "" +msgstr "expat" msgid "" "The :mod:`pyexpat` extension is built using an included copy of the expat " @@ -338,7 +355,7 @@ msgid "" msgstr "" msgid "libffi" -msgstr "" +msgstr "libffi" msgid "" "The :mod:`_ctypes` extension is built using an included copy of the libffi " @@ -346,24 +363,29 @@ msgid "" msgstr "" msgid "zlib" -msgstr "" +msgstr "zlib" msgid "" "The :mod:`zlib` extension is built using an included copy of the zlib " "sources if the zlib version found on the system is too old to be used for " "the build::" msgstr "" +"Rozszerzenie :mod:`zlib` jest kompilowane przy użyciu dołączonej kopii " +"źródeł biblioteki zlib, jeśli wersja biblioteki zlib dostępna w systemie " +"jest zbyt stara, by można ją było wykorzystać do kompilacji::" msgid "cfuhash" -msgstr "" +msgstr "cfuhash" msgid "" "The implementation of the hash table used by the :mod:`tracemalloc` is based " "on the cfuhash project::" msgstr "" +"Implementacja tablicy skrótów wykorzystywanej przez :mod:`tracemalloc` " +"opiera się na projekcie cfuhash::" msgid "libmpdec" -msgstr "" +msgstr "libmpdec" msgid "" "The :mod:`_decimal` module is built using an included copy of the libmpdec " @@ -378,28 +400,48 @@ msgid "" "c14n-20/``) was retrieved from the W3C website at https://www.w3.org/TR/xml-" "c14n2-testcases/ and is distributed under the 3-clause BSD license::" msgstr "" +"Zestaw testów C14N 2.0 zawarty w pakiecie :mod:`test` (``Lib/test/" +"xmltestdata/c14n-20/``) został pobrany ze strony internetowej W3C pod " +"adresem https://www.w3.org/TR/xml-c14n2-testcases/ i jest udostępniany na 3-" +"klauzulowej licencji BSD::" msgid "Audioop" msgstr "" msgid "" -"The audioop module uses the code base in g771.c file of the SoX project::" +"The audioop module uses the code base in g771.c file of the SoX project. " +"https://sourceforge.net/projects/sox/files/sox/12.17.7/sox-12.17.7.tar.gz" +msgstr "" + +msgid "" +"This source code is a product of Sun Microsystems, Inc. and is provided for " +"unrestricted use. Users may copy or modify this source code without charge." +msgstr "" + +msgid "" +"SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING " +"THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR " +"PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE." +msgstr "" + +msgid "" +"Sun source code is provided with no support and without any obligation on " +"the part of Sun Microsystems, Inc. to assist in its use, correction, " +"modification or enhancement." +msgstr "" + +msgid "" +"SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE " +"INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE OR " +"ANY PART THEREOF." +msgstr "" + +msgid "" +"In no event will Sun Microsystems, Inc. be liable for any lost revenue or " +"profits or other special, indirect and consequential damages, even if Sun " +"has been advised of the possibility of such damages." msgstr "" msgid "" -"Programming the AdLib/Sound Blaster FM Music Chips Version 2.0 (24 Feb 1992) " -"Copyright (c) 1991, 1992 by Jeffrey S. Lee jlee@smylex.uucp Warranty and " -"Copyright Policy This document is provided on an \"as-is\" basis, and its " -"author makes no warranty or representation, express or implied, with respect " -"to its quality performance or fitness for a particular purpose. In no event " -"will the author of this document be liable for direct, indirect, special, " -"incidental, or consequential damages arising out of the use or inability to " -"use the information contained within. Use of this document is at your own " -"risk. This file may be used and copied freely so long as the applicable " -"copyright notices are retained, and no modifications are made to the text of " -"the document. No money shall be charged for its distribution beyond " -"reasonable shipping, handling and duplication costs, nor shall proprietary " -"changes be made to this document so that it cannot be distributed freely. " -"This document may not be included in published material or commercial " -"packages without the written consent of its author." +"Sun Microsystems, Inc. 2550 Garcia Avenue Mountain View, California 94043" msgstr "" diff --git a/manage_translation.py b/manage_translation.py index 4b0a19da10..c21f8b6874 100755 --- a/manage_translation.py +++ b/manage_translation.py @@ -11,13 +11,21 @@ # files. # * recreate_readme: recreate readme to update translation progress. # * regenerate_tx_config: recreate configuration for all resources. +# * generate_commit_msg: generates commit message with co-authors from argparse import ArgumentParser from collections import Counter import os -from re import match -from subprocess import call, run +from dataclasses import dataclass +from pathlib import Path +from re import match, search +from subprocess import call, run, CalledProcessError import sys +from typing import Self +from urllib.parse import unquote +from warnings import warn + +from polib import pofile, POFile LANGUAGE = 'pl' @@ -44,7 +52,7 @@ def fetch(): RESOURCE_NAME_MAP = {'glossary_': 'glossary'} -PROJECT_SLUG = 'python-newest' +PROJECT_SLUG = 'python-310' def recreate_tx_config(): @@ -60,7 +68,7 @@ def recreate_tx_config(): ) ) for resource in resources: - slug = resource['slug'] + slug = resource.slug name = RESOURCE_NAME_MAP.get(slug, slug) if slug == '0': continue @@ -87,13 +95,55 @@ def recreate_tx_config(): 'source_lang = en\n', ) ) + warn_about_files_to_delete() + +def warn_about_files_to_delete(): + files = list(_get_files_to_delete()) + if not files: + return + warn(f'Found {len(files)} file(s) to delete: {", ".join(files)}.') + +def _get_files_to_delete(): + with open('.tx/config') as config_file: + config = config_file.read() + for file in Path().rglob('*.po'): + if os.fsdecode(file) not in config: + yield os.fsdecode(file) + + +@dataclass +class Resource: + slug: str + + @classmethod + def from_api_v3_entry(cls, data: dict) -> Self: + return cls(slug=data['attributes']['slug']) + + +@dataclass +class ResourceLanguageStatistics: + name: str + total_words: int + translated_words: int + total_strings: int + translated_strings: int + + @classmethod + def from_api_v3_entry(cls, data: dict) -> Self: + return cls( + name=search('r:([^:]*)', data['id']).group(1), + total_words=data['attributes']['total_words'], + translated_words=data['attributes']['translated_words'], + total_strings=data['attributes']['total_strings'], + translated_strings=data['attributes']['translated_strings'], + ) -def _get_resources(): +def _get_from_api_v3_with_cursor(url: str, params: dict): from requests import get resources = [] - offset = 0 + cursor = None if os.path.exists('.tx/api-key'): with open('.tx/api-key') as f: transifex_api_key = f.read() @@ -101,19 +151,35 @@ def _get_resources(): transifex_api_key = os.getenv('TX_TOKEN') while True: response = get( - f'https://api.transifex.com/organizations/python-doc/projects/{PROJECT_SLUG}/resources/', - params={'language_code': LANGUAGE, 'offset': offset}, - auth=('api', transifex_api_key), + url, + params=params | ({'page[cursor]': cursor} if cursor else {}), + headers={'Authorization': f'Bearer {transifex_api_key}'} ) response.raise_for_status() - response_list = response.json() + response_json = response.json() + response_list = response_json['data'] resources.extend(response_list) - if len(response_list) < 100: + if not response_json['links'].get('next'): # for stats no key, for list resources null break - offset += len(response_list) + cursor = unquote(search('page\[cursor]=([^&]*)', response_json['links']['next']).group(1)) return resources +def _get_resources(): + resources = _get_from_api_v3_with_cursor( + 'https://rest.api.transifex.com/resources', {'filter[project]': f'o:python-doc:p:{PROJECT_SLUG}'} + ) + return [Resource.from_api_v3_entry(entry) for entry in resources] + + +def _get_resource_language_stats(): + resources = _get_from_api_v3_with_cursor( + 'https://rest.api.transifex.com/resource_language_stats', + {'filter[project]': f'o:python-doc:p:{PROJECT_SLUG}', 'filter[language]': f'l:{LANGUAGE}'} + ) + return [ResourceLanguageStatistics.from_api_v3_entry(entry) for entry in resources] + + def _get_number_of_translators(): process = run( ['grep', '-ohP', r'(?<=^# )(.+)(?=, \d+$)', '-r', '.'], @@ -128,18 +194,18 @@ def _get_number_of_translators(): def recreate_readme(): def language_switcher(entry): return ( - entry['name'].startswith('bugs') - or entry['name'].startswith('tutorial') - or entry['name'].startswith('library--functions') + entry.name.startswith('bugs') + or entry.name.startswith('tutorial') + or entry.name.startswith('library--functions') ) def average(averages, weights): return sum([a * w for a, w in zip(averages, weights)]) / sum(weights) - resources = _get_resources() + resources = _get_resource_language_stats() filtered = list(filter(language_switcher, resources)) - average_list = [e['stats']['translated']['percentage'] for e in filtered] - weights_list = [e['wordcount'] for e in filtered] + average_list = [e.translated_strings / e.total_strings for e in filtered] + weights_list = [e.total_words for e in filtered] language_switcher_status = average(average_list, weights=weights_list) * 100 number_of_translators = _get_number_of_translators() @@ -208,8 +274,62 @@ def average(averages, weights): ) +def generate_commit_msg(): + """Generate a commit message + Parses staged files and generates a commit message with Last-Translator's as + co-authors. + """ + translators: set[str] = set() + + result = run( + ['git', 'diff', '--cached', '--name-only', '--diff-filter=ACM'], + capture_output=True, + text=True, + check=True, + ) + staged = [ + filename for filename in result.stdout.splitlines() if filename.endswith('.po') + ] + + for file in staged: + staged_file = run( + ['git', 'show', f':{file}'], capture_output=True, text=True, check=True + ).stdout + try: + old_file = run( + ['git', 'show', f'HEAD:{file}'], + capture_output=True, + text=True, + check=True, + ).stdout + except CalledProcessError: + old_file = '' + + new_po = pofile(staged_file) + old_po = pofile(old_file) if old_file else POFile() + old_entries = {entry.msgid: entry.msgstr for entry in old_po} + + for entry in new_po: + if entry.msgstr and ( + entry.msgid not in old_entries + or old_entries[entry.msgid] != entry.msgstr + ): + translator = new_po.metadata.get('Last-Translator') + translator = translator.split(',')[0].strip() + if translator: + translators.add(f'Co-Authored-By: {translator}') + break + + print('Update translation from Transifex\n\n' + '\n'.join(translators)) + + if __name__ == "__main__": - RUNNABLE_SCRIPTS = ('fetch', 'recreate_tx_config', 'recreate_readme') + RUNNABLE_SCRIPTS = ( + 'fetch', + 'recreate_tx_config', + 'recreate_readme', 'warn_about_files_to_delete', + 'generate_commit_msg', + ) parser = ArgumentParser() parser.add_argument('cmd', choices=RUNNABLE_SCRIPTS) diff --git a/reference/compound_stmts.po b/reference/compound_stmts.po new file mode 100644 index 0000000000..a897219bd1 --- /dev/null +++ b/reference/compound_stmts.po @@ -0,0 +1,1461 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Compound statements" +msgstr "" + +msgid "" +"Compound statements contain (groups of) other statements; they affect or " +"control the execution of those other statements in some way. In general, " +"compound statements span multiple lines, although in simple incarnations a " +"whole compound statement may be contained in one line." +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." +msgstr "" + +msgid "" +"A compound statement consists of one or more 'clauses.' A clause consists " +"of a header and a 'suite.' The clause headers of a particular compound " +"statement are all at the same indentation level. Each clause header begins " +"with a uniquely identifying keyword and ends with a colon. A suite is a " +"group of statements controlled by a clause. A suite can be one or more " +"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::" +msgstr "" + +msgid "" +"Also note that the semicolon binds tighter than the colon in this context, " +"so that in the following example, either all or none of the :func:`print` " +"calls are executed::" +msgstr "" + +msgid "Summarizing:" +msgstr "" + +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)." +msgstr "" + +msgid "" +"The formatting of the grammar rules in the following sections places each " +"clause on a separate line for clarity." +msgstr "" + +msgid "The :keyword:`!if` statement" +msgstr "" + +msgid "The :keyword:`if` statement is used for conditional execution:" +msgstr "" + +msgid "" +"It selects exactly one of the suites by evaluating the expressions one by " +"one until one is found to be true (see section :ref:`booleans` for the " +"definition of true and false); then that suite is executed (and no other " +"part of the :keyword:`if` statement is executed or evaluated). If all " +"expressions are false, the suite of the :keyword:`else` clause, if present, " +"is executed." +msgstr "" + +msgid "The :keyword:`!while` statement" +msgstr "" + +msgid "" +"The :keyword:`while` statement is used for repeated execution as long as an " +"expression is true:" +msgstr "" + +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 " +"loop terminates." +msgstr "" + +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." +msgstr "" + +msgid "The :keyword:`!for` statement" +msgstr "" + +msgid "" +"The :keyword:`for` statement is used to iterate over the elements of a " +"sequence (such as a string, tuple or list) or other iterable object:" +msgstr "" + +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 " +"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 " +"when the sequence is empty or an iterator raises a :exc:`StopIteration` " +"exception), the suite in the :keyword:`!else` clause, if present, is " +"executed, and the loop terminates." +msgstr "" + +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." +msgstr "" + +msgid "" +"The for-loop makes assignments to the variables in the target list. This " +"overwrites all previous assignments to those variables including those made " +"in the suite of the for-loop::" +msgstr "" + +msgid "" +"Names in the target list are not deleted when the loop is finished, but if " +"the sequence is empty, they will not have been assigned to at all by the " +"loop. Hint: the built-in type :func:`range` represents immutable arithmetic " +"sequences of integers. For instance, iterating ``range(3)`` successively " +"yields 0, 1, and then 2." +msgstr "" + +msgid "The :keyword:`!try` statement" +msgstr "" + +msgid "" +"The :keyword:`try` statement specifies exception handlers and/or cleanup " +"code for a group of statements:" +msgstr "" + +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 " +"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 " +"expression-less except clause, if present, must be last; it matches any " +"exception. For an except clause with an expression, that expression is " +"evaluated, and the clause matches the exception if the resulting object is " +"\"compatible\" with the exception. An object is compatible with an " +"exception if the object is the class or a :term:`non-virtual base class " +"` of the exception object, or a tuple containing an " +"item that is the class or a non-virtual base class of the exception object." +msgstr "" + +msgid "" +"If no except clause matches the exception, the search for an exception " +"handler continues in the surrounding code and on the invocation stack. [#]_" +msgstr "" + +msgid "" +"If the evaluation of an expression in the header of an except clause raises " +"an exception, the original search for a handler is canceled and a search " +"starts for the new exception in the surrounding code and on the call stack " +"(it is treated as if the entire :keyword:`try` statement raised the " +"exception)." +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 " +"the try clause of the inner handler, the outer handler will not handle the " +"exception.)" +msgstr "" + +msgid "" +"When an exception has been assigned using ``as target``, it is cleared at " +"the end of the except clause. This is as if ::" +msgstr "" + +msgid "was translated to ::" +msgstr "" + +msgid "" +"This means the exception must be assigned to a different name to be able to " +"refer to it after the except clause. Exceptions are cleared because with " +"the traceback attached to them, they form a reference cycle with the stack " +"frame, keeping all locals in that frame alive until the next garbage " +"collection occurs." +msgstr "" + +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. The details about the exception accessed " +"via :func:`sys.exc_info` are restored to their previous values when leaving " +"an exception handler::" +msgstr "" + +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." +msgstr "" + +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 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`, :keyword:`break` or :keyword:`continue` statement, the " +"saved exception is discarded::" +msgstr "" + +msgid "" +"The exception information is not available to the program during execution " +"of the :keyword:`finally` clause." +msgstr "" + +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.'" +msgstr "" + +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::" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Prior to Python 3.8, a :keyword:`continue` statement was illegal in " +"the :keyword:`finally` clause due to a problem with the implementation." +msgstr "" + +msgid "The :keyword:`!with` statement" +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." +msgstr "" + +msgid "" +"The execution of the :keyword:`with` statement with one \"item\" proceeds as " +"follows:" +msgstr "" + +msgid "" +"The context expression (the expression given in the :token:`~python-" +"grammar:with_item`) is evaluated to obtain a context manager." +msgstr "" + +msgid "The context manager's :meth:`__enter__` is loaded for later use." +msgstr "" + +msgid "The context manager's :meth:`__exit__` is loaded for later use." +msgstr "" + +msgid "The context manager's :meth:`__enter__` method is invoked." +msgstr "" + +msgid "" +"If a target was included in the :keyword:`with` statement, the return value " +"from :meth:`__enter__` is assigned to it." +msgstr "" + +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 7 below." +msgstr "" + +msgid "The suite is executed." +msgstr "" + +msgid "" +"The context manager's :meth:`__exit__` method is invoked. If an exception " +"caused the suite to be exited, its type, value, and traceback are passed as " +"arguments to :meth:`__exit__`. Otherwise, three :const:`None` arguments are " +"supplied." +msgstr "" + +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 the statement following the :keyword:`with` statement." +msgstr "" + +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." +msgstr "" + +msgid "The following code::" +msgstr "" + +msgid "is semantically equivalent to::" +msgstr "" + +msgid "" +"With more than one item, the context managers are processed as if " +"multiple :keyword:`with` statements were nested::" +msgstr "" + +msgid "" +"You can also write multi-item context managers in multiple lines if the " +"items are surrounded by parentheses. For example::" +msgstr "" + +msgid "Support for multiple context expressions." +msgstr "" + +msgid "" +"Support for using grouping parentheses to break the statement in multiple " +"lines." +msgstr "" + +msgid ":pep:`343` - The \"with\" statement" +msgstr "" + +msgid "" +"The specification, background, and examples for the Python :keyword:`with` " +"statement." +msgstr "" + +msgid "The :keyword:`!match` statement" +msgstr "" + +msgid "The match statement is used for pattern matching. Syntax:" +msgstr "" + +msgid "" +"This section uses single quotes to denote :ref:`soft keywords `." +msgstr "" + +msgid "" +"Pattern matching takes a pattern as input (following ``case``) and a subject " +"value (following ``match``). The pattern (which may contain subpatterns) is " +"matched against the subject value. The outcomes are:" +msgstr "" + +msgid "A match success or failure (also termed a pattern success or failure)." +msgstr "" + +msgid "" +"Possible binding of matched values to a name. The prerequisites for this " +"are further discussed below." +msgstr "" + +msgid "" +"The ``match`` and ``case`` keywords are :ref:`soft keywords `." +msgstr "" + +msgid ":pep:`634` -- Structural Pattern Matching: Specification" +msgstr "" + +msgid ":pep:`636` -- Structural Pattern Matching: Tutorial" +msgstr "" + +msgid "Overview" +msgstr "Skorowidz" + +msgid "Here's an overview of the logical flow of a match statement:" +msgstr "" + +msgid "" +"The subject expression ``subject_expr`` is evaluated and a resulting subject " +"value obtained. If the subject expression contains a comma, a tuple is " +"constructed using :ref:`the standard rules `." +msgstr "" + +msgid "" +"Each pattern in a ``case_block`` is attempted to match with the subject " +"value. The specific rules for success or failure are described below. The " +"match attempt can also bind some or all of the standalone names within the " +"pattern. The precise pattern binding rules vary per pattern type and are " +"specified below. **Name bindings made during a successful pattern match " +"outlive the executed block and can be used after the match statement**." +msgstr "" + +msgid "" +"During failed pattern matches, some subpatterns may succeed. Do not rely on " +"bindings being made for a failed match. Conversely, do not rely on " +"variables remaining unchanged after a failed match. The exact behavior is " +"dependent on implementation and may vary. This is an intentional decision " +"made to allow different implementations to add optimizations." +msgstr "" + +msgid "" +"If the pattern succeeds, the corresponding guard (if present) is evaluated. " +"In this case all name bindings are guaranteed to have happened." +msgstr "" + +msgid "" +"If the guard evaluates as true or is missing, the ``block`` inside " +"``case_block`` is executed." +msgstr "" + +msgid "Otherwise, the next ``case_block`` is attempted as described above." +msgstr "" + +msgid "If there are no further case blocks, the match statement is completed." +msgstr "" + +msgid "" +"Users should generally never rely on a pattern being evaluated. Depending " +"on implementation, the interpreter may cache values or use other " +"optimizations which skip repeated evaluations." +msgstr "" + +msgid "A sample match statement::" +msgstr "" + +msgid "" +"In this case, ``if flag`` is a guard. Read more about that in the next " +"section." +msgstr "" + +msgid "Guards" +msgstr "" + +msgid "" +"A ``guard`` (which is part of the ``case``) must succeed for code inside the " +"``case`` block to execute. It takes the form: :keyword:`if` followed by an " +"expression." +msgstr "" + +msgid "The logical flow of a ``case`` block with a ``guard`` follows:" +msgstr "" + +msgid "" +"Check that the pattern in the ``case`` block succeeded. If the pattern " +"failed, the ``guard`` is not evaluated and the next ``case`` block is " +"checked." +msgstr "" + +msgid "If the pattern succeeded, evaluate the ``guard``." +msgstr "" + +msgid "" +"If the ``guard`` condition evaluates as true, the case block is selected." +msgstr "" + +msgid "" +"If the ``guard`` condition evaluates as false, the case block is not " +"selected." +msgstr "" + +msgid "" +"If the ``guard`` raises an exception during evaluation, the exception " +"bubbles up." +msgstr "" + +msgid "" +"Guards are allowed to have side effects as they are expressions. Guard " +"evaluation must proceed from the first to the last case block, one at a " +"time, skipping case blocks whose pattern(s) don't all succeed. (I.e., guard " +"evaluation must happen in order.) Guard evaluation must stop once a case " +"block is selected." +msgstr "" + +msgid "Irrefutable Case Blocks" +msgstr "" + +msgid "" +"An irrefutable case block is a match-all case block. A match statement may " +"have at most one irrefutable case block, and it must be last." +msgstr "" + +msgid "" +"A case block is considered irrefutable if it has no guard and its pattern is " +"irrefutable. A pattern is considered irrefutable if we can prove from its " +"syntax alone that it will always succeed. Only the following patterns are " +"irrefutable:" +msgstr "" + +msgid ":ref:`as-patterns` whose left-hand side is irrefutable" +msgstr "" + +msgid ":ref:`or-patterns` containing at least one irrefutable pattern" +msgstr "" + +msgid ":ref:`capture-patterns`" +msgstr ":ref:`capture-patterns`" + +msgid ":ref:`wildcard-patterns`" +msgstr ":ref:`wildcard-patterns`" + +msgid "parenthesized irrefutable patterns" +msgstr "" + +msgid "Patterns" +msgstr "" + +msgid "This section uses grammar notations beyond standard EBNF:" +msgstr "" + +msgid "the notation ``SEP.RULE+`` is shorthand for ``RULE (SEP RULE)*``" +msgstr "" + +msgid "the notation ``!RULE`` is shorthand for a negative lookahead assertion" +msgstr "" + +msgid "The top-level syntax for ``patterns`` is:" +msgstr "" + +msgid "" +"The descriptions below will include a description \"in simple terms\" of " +"what a pattern does for illustration purposes (credits to Raymond Hettinger " +"for a document that inspired most of the descriptions). Note that these " +"descriptions are purely for illustration purposes and **may not** reflect " +"the underlying implementation. Furthermore, they do not cover all valid " +"forms." +msgstr "" + +msgid "OR Patterns" +msgstr "" + +msgid "" +"An OR pattern is two or more patterns separated by vertical bars ``|``. " +"Syntax:" +msgstr "" + +msgid "" +"Only the final subpattern may be :ref:`irrefutable `, and " +"each subpattern must bind the same set of names to avoid ambiguity." +msgstr "" + +msgid "" +"An OR pattern matches each of its subpatterns in turn to the subject value, " +"until one succeeds. The OR pattern is then considered successful. " +"Otherwise, if none of the subpatterns succeed, the OR pattern fails." +msgstr "" + +msgid "" +"In simple terms, ``P1 | P2 | ...`` will try to match ``P1``, if it fails it " +"will try to match ``P2``, succeeding immediately if any succeeds, failing " +"otherwise." +msgstr "" + +msgid "AS Patterns" +msgstr "" + +msgid "" +"An AS pattern matches an OR pattern on the left of the :keyword:`as` keyword " +"against a subject. Syntax:" +msgstr "" + +msgid "" +"If the OR pattern fails, the AS pattern fails. Otherwise, the AS pattern " +"binds the subject to the name on the right of the as keyword and succeeds. " +"``capture_pattern`` cannot be a ``_``." +msgstr "" + +msgid "" +"In simple terms ``P as NAME`` will match with ``P``, and on success it will " +"set ``NAME = ``." +msgstr "" + +msgid "Literal Patterns" +msgstr "" + +msgid "" +"A literal pattern corresponds to most :ref:`literals ` in Python. " +"Syntax:" +msgstr "" + +msgid "" +"The rule ``strings`` and the token ``NUMBER`` are defined in " +"the :doc:`standard Python grammar <./grammar>`. Triple-quoted strings are " +"supported. Raw strings and byte strings are supported. :ref:`f-strings` " +"are not supported." +msgstr "" + +msgid "" +"The forms ``signed_number '+' NUMBER`` and ``signed_number '-' NUMBER`` are " +"for expressing :ref:`complex numbers `; they require a real " +"number on the left and an imaginary number on the right. E.g. ``3 + 4j``." +msgstr "" + +msgid "" +"In simple terms, ``LITERAL`` will succeed only if `` == LITERAL``. " +"For the singletons ``None``, ``True`` and ``False``, the :keyword:`is` " +"operator is used." +msgstr "" + +msgid "Capture Patterns" +msgstr "" + +msgid "A capture pattern binds the subject value to a name. Syntax:" +msgstr "" + +msgid "" +"A single underscore ``_`` is not a capture pattern (this is what ``!'_'`` " +"expresses). It is instead treated as a :token:`~python-" +"grammar:wildcard_pattern`." +msgstr "" + +msgid "" +"In a given pattern, a given name can only be bound once. E.g. ``case x, " +"x: ...`` is invalid while ``case [x] | x: ...`` is allowed." +msgstr "" + +msgid "" +"Capture patterns always succeed. The binding follows scoping rules " +"established by the assignment expression operator in :pep:`572`; the name " +"becomes a local variable in the closest containing function scope unless " +"there's an applicable :keyword:`global` or :keyword:`nonlocal` statement." +msgstr "" + +msgid "" +"In simple terms ``NAME`` will always succeed and it will set ``NAME = " +"``." +msgstr "" + +msgid "Wildcard Patterns" +msgstr "" + +msgid "" +"A wildcard pattern always succeeds (matches anything) and binds no name. " +"Syntax:" +msgstr "" + +msgid "" +"``_`` is a :ref:`soft keyword ` within any pattern, but only " +"within patterns. It is an identifier, as usual, even within ``match`` " +"subject expressions, ``guard``\\ s, and ``case`` blocks." +msgstr "" + +msgid "In simple terms, ``_`` will always succeed." +msgstr "" + +msgid "Value Patterns" +msgstr "" + +msgid "A value pattern represents a named value in Python. Syntax:" +msgstr "" + +msgid "" +"The dotted name in the pattern is looked up using standard Python :ref:`name " +"resolution rules `. The pattern succeeds if the value found " +"compares equal to the subject value (using the ``==`` equality operator)." +msgstr "" + +msgid "" +"In simple terms ``NAME1.NAME2`` will succeed only if `` == " +"NAME1.NAME2``" +msgstr "" + +msgid "" +"If the same value occurs multiple times in the same match statement, the " +"interpreter may cache the first value found and reuse it rather than repeat " +"the same lookup. This cache is strictly tied to a given execution of a " +"given match statement." +msgstr "" + +msgid "Group Patterns" +msgstr "" + +msgid "" +"A group pattern allows users to add parentheses around patterns to emphasize " +"the intended grouping. Otherwise, it has no additional syntax. Syntax:" +msgstr "" + +msgid "In simple terms ``(P)`` has the same effect as ``P``." +msgstr "" + +msgid "Sequence Patterns" +msgstr "" + +msgid "" +"A sequence pattern contains several subpatterns to be matched against " +"sequence elements. The syntax is similar to the unpacking of a list or tuple." +msgstr "" + +msgid "" +"There is no difference if parentheses or square brackets are used for " +"sequence patterns (i.e. ``(...)`` vs ``[...]`` )." +msgstr "" + +msgid "" +"A single pattern enclosed in parentheses without a trailing comma (e.g. ``(3 " +"| 4)``) is a :ref:`group pattern `. While a single pattern " +"enclosed in square brackets (e.g. ``[3 | 4]``) is still a sequence pattern." +msgstr "" + +msgid "" +"At most one star subpattern may be in a sequence pattern. The star " +"subpattern may occur in any position. If no star subpattern is present, the " +"sequence pattern is a fixed-length sequence pattern; otherwise it is a " +"variable-length sequence pattern." +msgstr "" + +msgid "" +"The following is the logical flow for matching a sequence pattern against a " +"subject value:" +msgstr "" + +msgid "" +"If the subject value is not a sequence [#]_, the sequence pattern fails." +msgstr "" + +msgid "" +"If the subject value is an instance of ``str``, ``bytes`` or ``bytearray`` " +"the sequence pattern fails." +msgstr "" + +msgid "" +"The subsequent steps depend on whether the sequence pattern is fixed or " +"variable-length." +msgstr "" + +msgid "If the sequence pattern is fixed-length:" +msgstr "" + +msgid "" +"If the length of the subject sequence is not equal to the number of " +"subpatterns, the sequence pattern fails" +msgstr "" + +msgid "" +"Subpatterns in the sequence pattern are matched to their corresponding items " +"in the subject sequence from left to right. Matching stops as soon as a " +"subpattern fails. If all subpatterns succeed in matching their " +"corresponding item, the sequence pattern succeeds." +msgstr "" + +msgid "Otherwise, if the sequence pattern is variable-length:" +msgstr "" + +msgid "" +"If the length of the subject sequence is less than the number of non-star " +"subpatterns, the sequence pattern fails." +msgstr "" + +msgid "" +"The leading non-star subpatterns are matched to their corresponding items as " +"for fixed-length sequences." +msgstr "" + +msgid "" +"If the previous step succeeds, the star subpattern matches a list formed of " +"the remaining subject items, excluding the remaining items corresponding to " +"non-star subpatterns following the star subpattern." +msgstr "" + +msgid "" +"Remaining non-star subpatterns are matched to their corresponding subject " +"items, as for a fixed-length sequence." +msgstr "" + +msgid "" +"The length of the subject sequence is obtained via :func:`len` (i.e. via " +"the :meth:`__len__` protocol). This length may be cached by the interpreter " +"in a similar manner as :ref:`value patterns `." +msgstr "" + +msgid "" +"In simple terms ``[P1, P2, P3,`` ... ``, P]`` matches only if all the " +"following happens:" +msgstr "" + +msgid "check ```` is a sequence" +msgstr "" + +msgid "``len(subject) == ``" +msgstr "``len(subject) == ``" + +msgid "" +"``P1`` matches ``[0]`` (note that this match can also bind names)" +msgstr "" + +msgid "" +"``P2`` matches ``[1]`` (note that this match can also bind names)" +msgstr "" + +msgid "... and so on for the corresponding pattern/element." +msgstr "" + +msgid "Mapping Patterns" +msgstr "" + +msgid "" +"A mapping pattern contains one or more key-value patterns. The syntax is " +"similar to the construction of a dictionary. Syntax:" +msgstr "" + +msgid "" +"At most one double star pattern may be in a mapping pattern. The double " +"star pattern must be the last subpattern in the mapping pattern." +msgstr "" + +msgid "" +"Duplicate keys in mapping patterns are disallowed. Duplicate literal keys " +"will raise a :exc:`SyntaxError`. Two keys that otherwise have the same value " +"will raise a :exc:`ValueError` at runtime." +msgstr "" + +msgid "" +"The following is the logical flow for matching a mapping pattern against a " +"subject value:" +msgstr "" + +msgid "If the subject value is not a mapping [#]_,the mapping pattern fails." +msgstr "" + +msgid "" +"If every key given in the mapping pattern is present in the subject mapping, " +"and the pattern for each key matches the corresponding item of the subject " +"mapping, the mapping pattern succeeds." +msgstr "" + +msgid "" +"If duplicate keys are detected in the mapping pattern, the pattern is " +"considered invalid. A :exc:`SyntaxError` is raised for duplicate literal " +"values; or a :exc:`ValueError` for named keys of the same value." +msgstr "" + +msgid "" +"Key-value pairs are matched using the two-argument form of the mapping " +"subject's ``get()`` method. Matched key-value pairs must already be present " +"in the mapping, and not created on-the-fly via :meth:`__missing__` " +"or :meth:`__getitem__`." +msgstr "" + +msgid "" +"In simple terms ``{KEY1: P1, KEY2: P2, ... }`` matches only if all the " +"following happens:" +msgstr "" + +msgid "check ```` is a mapping" +msgstr "" + +msgid "``KEY1 in ``" +msgstr "" + +msgid "``P1`` matches ``[KEY1]``" +msgstr "" + +msgid "... and so on for the corresponding KEY/pattern pair." +msgstr "" + +msgid "Class Patterns" +msgstr "" + +msgid "" +"A class pattern represents a class and its positional and keyword arguments " +"(if any). Syntax:" +msgstr "" + +msgid "The same keyword should not be repeated in class patterns." +msgstr "" + +msgid "" +"The following is the logical flow for matching a class pattern against a " +"subject value:" +msgstr "" + +msgid "" +"If ``name_or_attr`` is not an instance of the builtin :class:`type` , " +"raise :exc:`TypeError`." +msgstr "" + +msgid "" +"If the subject value is not an instance of ``name_or_attr`` (tested " +"via :func:`isinstance`), the class pattern fails." +msgstr "" + +msgid "" +"If no pattern arguments are present, the pattern succeeds. Otherwise, the " +"subsequent steps depend on whether keyword or positional argument patterns " +"are present." +msgstr "" + +msgid "" +"For a number of built-in types (specified below), a single positional " +"subpattern is accepted which will match the entire subject; for these types " +"keyword patterns also work as for other types." +msgstr "" + +msgid "" +"If only keyword patterns are present, they are processed as follows, one by " +"one:" +msgstr "" + +msgid "I. The keyword is looked up as an attribute on the subject." +msgstr "" + +msgid "" +"If this raises an exception other than :exc:`AttributeError`, the exception " +"bubbles up." +msgstr "" + +msgid "If this raises :exc:`AttributeError`, the class pattern has failed." +msgstr "" + +msgid "" +"Else, the subpattern associated with the keyword pattern is matched against " +"the subject's attribute value. If this fails, the class pattern fails; if " +"this succeeds, the match proceeds to the next keyword." +msgstr "" + +msgid "II. If all keyword patterns succeed, the class pattern succeeds." +msgstr "" + +msgid "" +"If any positional patterns are present, they are converted to keyword " +"patterns using the :data:`~object.__match_args__` attribute on the class " +"``name_or_attr`` before matching:" +msgstr "" + +msgid "" +"I. The equivalent of ``getattr(cls, \"__match_args__\", ())`` is called." +msgstr "" + +msgid "If this raises an exception, the exception bubbles up." +msgstr "" + +msgid "" +"If the returned value is not a tuple, the conversion fails " +"and :exc:`TypeError` is raised." +msgstr "" + +msgid "" +"If there are more positional patterns than " +"``len(cls.__match_args__)``, :exc:`TypeError` is raised." +msgstr "" + +msgid "" +"Otherwise, positional pattern ``i`` is converted to a keyword pattern using " +"``__match_args__[i]`` as the keyword. ``__match_args__[i]`` must be a " +"string; if not :exc:`TypeError` is raised." +msgstr "" + +msgid "If there are duplicate keywords, :exc:`TypeError` is raised." +msgstr "" + +msgid ":ref:`class-pattern-matching`" +msgstr ":ref:`class-pattern-matching`" + +msgid "" +"II. Once all positional patterns have been converted to keyword patterns," +msgstr "" + +msgid "the match proceeds as if there were only keyword patterns." +msgstr "" + +msgid "" +"For the following built-in types the handling of positional subpatterns is " +"different:" +msgstr "" + +msgid ":class:`bool`" +msgstr ":class:`bool`" + +msgid ":class:`bytearray`" +msgstr ":class:`bytearray`" + +msgid ":class:`bytes`" +msgstr ":class:`bytes`" + +msgid ":class:`dict`" +msgstr ":class:`dict`" + +msgid ":class:`float`" +msgstr ":class:`float`" + +msgid ":class:`frozenset`" +msgstr ":class:`frozenset`" + +msgid ":class:`int`" +msgstr ":class:`int`" + +msgid ":class:`list`" +msgstr ":class:`list`" + +msgid ":class:`set`" +msgstr ":class:`set`" + +msgid ":class:`str`" +msgstr ":class:`str`" + +msgid ":class:`tuple`" +msgstr ":class:`tuple`" + +msgid "" +"These classes accept a single positional argument, and the pattern there is " +"matched against the whole object rather than an attribute. For example " +"``int(0|1)`` matches the value ``0``, but not the value ``0.0``." +msgstr "" + +msgid "" +"In simple terms ``CLS(P1, attr=P2)`` matches only if the following happens:" +msgstr "" + +msgid "``isinstance(, CLS)``" +msgstr "``isinstance(, CLS)``" + +msgid "convert ``P1`` to a keyword pattern using ``CLS.__match_args__``" +msgstr "" + +msgid "For each keyword argument ``attr=P2``:" +msgstr "" + +msgid "``hasattr(, \"attr\")``" +msgstr "" + +msgid "``P2`` matches ``.attr``" +msgstr "" + +msgid "... and so on for the corresponding keyword argument/pattern pair." +msgstr "" + +msgid "Function definitions" +msgstr "" + +msgid "" +"A function definition defines a user-defined function object (see " +"section :ref:`types`):" +msgstr "" + +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." +msgstr "" + +msgid "" +"The function definition does not execute the function body; this gets " +"executed only when the function is called. [#]_" +msgstr "" + +msgid "" +"A function definition may be wrapped by one or more :term:`decorator` " +"expressions. Decorator expressions are evaluated when the function is " +"defined, in the scope that contains the function definition. The result " +"must be a callable, which is invoked with the function object as the only " +"argument. The returned value is bound to the function name instead of the " +"function object. Multiple decorators are applied in nested fashion. For " +"example, the following code ::" +msgstr "" + +msgid "is roughly equivalent to ::" +msgstr "" + +msgid "" +"except that the original function is not temporarily bound to the name " +"``func``." +msgstr "" + +msgid "" +"Functions may be decorated with any valid :token:`~python-" +"grammar:assignment_expression`. Previously, the grammar was much more " +"restrictive; see :pep:`614` for details." +msgstr "" + +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." +msgstr "" + +msgid "" +"**Default parameter values are evaluated from left to right when the " +"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 value 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 parameter 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.::" +msgstr "" + +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 positional " +"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. Parameters after \"``*``\" or \"``*identifier``\" are " +"keyword-only parameters and may only be passed by keyword arguments. " +"Parameters before \"``/``\" are positional-only parameters and may only be " +"passed by positional arguments." +msgstr "" + +msgid "" +"The ``/`` function parameter syntax may be used to indicate positional-only " +"parameters. See :pep:`570` for details." +msgstr "" + +msgid "" +"Parameters may have an :term:`annotation ` of the form " +"\"``: expression``\" following the parameter name. Any parameter may have " +"an annotation, even those of the form ``*identifier`` or ``**identifier``. " +"Functions may have \"return\" annotation of the form \"``-> expression``\" " +"after the parameter list. These annotations can be any valid Python " +"expression. The presence of annotations does not change the semantics of a " +"function. The annotation values are available as values of a dictionary " +"keyed by the parameters' names in the :attr:`__annotations__` attribute of " +"the function object. If the ``annotations`` import from :mod:`__future__` " +"is used, annotations are preserved as strings at runtime which enables " +"postponed evaluation. Otherwise, they are evaluated when the function " +"definition is executed. In this case annotations may be evaluated in a " +"different order than they appear in the source code." +msgstr "" + +msgid "" +"It is also possible to create anonymous functions (functions not bound to a " +"name), for immediate use in expressions. This uses lambda expressions, " +"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 " +"execution of multiple statements and annotations." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`3107` - Function Annotations" +msgstr "" + +msgid "The original specification for function annotations." +msgstr "" + +msgid ":pep:`484` - Type Hints" +msgstr "" + +msgid "Definition of a standard meaning for annotations: type hints." +msgstr "" + +msgid ":pep:`526` - Syntax for Variable Annotations" +msgstr "" + +msgid "" +"Ability to type hint variable declarations, including class variables and " +"instance variables" +msgstr "" + +msgid ":pep:`563` - Postponed Evaluation of Annotations" +msgstr "" + +msgid "" +"Support for forward references within annotations by preserving annotations " +"in a string form at runtime instead of eager evaluation." +msgstr "" + +msgid "Class definitions" +msgstr "" + +msgid "A class definition defines a class object (see section :ref:`types`):" +msgstr "" + +msgid "" +"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, ::" +msgstr "" + +msgid "is equivalent to ::" +msgstr "" + +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." +msgstr "" + +msgid "" +"The order in which attributes are defined in the class body is preserved in " +"the new class's ``__dict__``. Note that this is reliable only right after " +"the class is created and only for classes that were defined using the " +"definition syntax." +msgstr "" + +msgid "" +"Class creation can be customized heavily using :ref:`metaclasses " +"`." +msgstr "" + +msgid "Classes can also be decorated: just like when decorating functions, ::" +msgstr "" + +msgid "" +"The evaluation rules for the decorator expressions are the same as for " +"function decorators. The result is then bound to the class name." +msgstr "" + +msgid "" +"Classes may be decorated with any valid :token:`~python-" +"grammar:assignment_expression`. Previously, the grammar was much more " +"restrictive; see :pep:`614` for details." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`3115` - Metaclasses in Python 3000" +msgstr "" + +msgid "" +"The proposal that changed the declaration of metaclasses to the current " +"syntax, and the semantics for how classes with metaclasses are constructed." +msgstr "" + +msgid ":pep:`3129` - Class Decorators" +msgstr "" + +msgid "" +"The proposal that added class decorators. Function and method decorators " +"were introduced in :pep:`318`." +msgstr "" + +msgid "Coroutines" +msgstr "" + +msgid "Coroutine function definition" +msgstr "" + +msgid "" +"Execution of Python coroutines can be suspended and resumed at many points " +"(see :term:`coroutine`). :keyword:`await` expressions, :keyword:`async for` " +"and :keyword:`async with` can only be used in the body of a coroutine " +"function." +msgstr "" + +msgid "" +"Functions defined with ``async def`` syntax are always coroutine functions, " +"even if they do not contain ``await`` or ``async`` keywords." +msgstr "" + +msgid "" +"It is a :exc:`SyntaxError` to use a ``yield from`` expression inside the " +"body of a coroutine function." +msgstr "" + +msgid "An example of a coroutine function::" +msgstr "" + +msgid "" +"``await`` and ``async`` are now keywords; previously they were only treated " +"as such inside the body of a coroutine function." +msgstr "" + +msgid "The :keyword:`!async for` statement" +msgstr "" + +msgid "" +"An :term:`asynchronous iterable` provides an ``__aiter__`` method that " +"directly returns an :term:`asynchronous iterator`, which can call " +"asynchronous code in its ``__anext__`` method." +msgstr "" + +msgid "" +"The ``async for`` statement allows convenient iteration over asynchronous " +"iterables." +msgstr "" + +msgid "Is semantically equivalent to::" +msgstr "" + +msgid "" +"See also :meth:`~object.__aiter__` and :meth:`~object.__anext__` for details." +msgstr "" + +msgid "" +"It is a :exc:`SyntaxError` to use an ``async for`` statement outside the " +"body of a coroutine function." +msgstr "" + +msgid "The :keyword:`!async with` statement" +msgstr "" + +msgid "" +"An :term:`asynchronous context manager` is a :term:`context manager` that is " +"able to suspend execution in its *enter* and *exit* methods." +msgstr "" + +msgid "" +"See also :meth:`~object.__aenter__` and :meth:`~object.__aexit__` for " +"details." +msgstr "" + +msgid "" +"It is a :exc:`SyntaxError` to use an ``async with`` statement outside the " +"body of a coroutine function." +msgstr "" + +msgid ":pep:`492` - Coroutines with async and await syntax" +msgstr "" + +msgid "" +"The proposal that made coroutines a proper standalone concept in Python, and " +"added supporting syntax." +msgstr "" + +msgid "Footnotes" +msgstr "Przypisy" + +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." +msgstr "" + +msgid "In pattern matching, a sequence is defined as one of the following:" +msgstr "" + +msgid "a class that inherits from :class:`collections.abc.Sequence`" +msgstr "" + +msgid "" +"a Python class that has been registered as :class:`collections.abc.Sequence`" +msgstr "" + +msgid "" +"a builtin class that has its (CPython) :data:`Py_TPFLAGS_SEQUENCE` bit set" +msgstr "" + +msgid "a class that inherits from any of the above" +msgstr "" + +msgid "The following standard library classes are sequences:" +msgstr "" + +msgid ":class:`array.array`" +msgstr ":class:`array.array`" + +msgid ":class:`collections.deque`" +msgstr ":class:`collections.deque`" + +msgid ":class:`memoryview`" +msgstr ":class:`memoryview`" + +msgid ":class:`range`" +msgstr ":class:`range`" + +msgid "" +"Subject values of type ``str``, ``bytes``, and ``bytearray`` do not match " +"sequence patterns." +msgstr "" + +msgid "In pattern matching, a mapping is defined as one of the following:" +msgstr "" + +msgid "a class that inherits from :class:`collections.abc.Mapping`" +msgstr "" + +msgid "" +"a Python class that has been registered as :class:`collections.abc.Mapping`" +msgstr "" + +msgid "" +"a builtin class that has its (CPython) :data:`Py_TPFLAGS_MAPPING` bit set" +msgstr "" + +msgid "" +"The standard library classes :class:`dict` " +"and :class:`types.MappingProxyType` are mappings." +msgstr "" + +msgid "" +"A string literal appearing as the first statement in the function body is " +"transformed into the function's ``__doc__`` attribute and therefore the " +"function's :term:`docstring`." +msgstr "" + +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`." +msgstr "" diff --git a/reference/datamodel.po b/reference/datamodel.po index b749d6f41f..7e02443e8e 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -1,28 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Tomasz Rodzen , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:19+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Data model" msgstr "" @@ -101,9 +101,9 @@ msgid "" "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." +"to explicitly close such objects. The ':keyword:`try`..." +"\\ :keyword:`finally`' statement and the ':keyword:`with`' statement provide " +"convenient ways to do this." msgstr "" msgid "" @@ -189,7 +189,7 @@ msgid "" msgstr "" msgid ":class:`numbers.Number`" -msgstr "" +msgstr ":class:`numbers.Number`" msgid "" "These are created by numeric literals and returned as results by arithmetic " @@ -200,8 +200,8 @@ msgid "" msgstr "" msgid "" -"The string representations of the numeric classes, computed by :meth:" -"`~object.__repr__` and :meth:`~object.__str__`, have the following " +"The string representations of the numeric classes, computed " +"by :meth:`~object.__repr__` and :meth:`~object.__str__`, have the following " "properties:" msgstr "" @@ -232,7 +232,7 @@ msgid "" msgstr "" msgid ":class:`numbers.Integral`" -msgstr "" +msgstr ":class:`numbers.Integral`" msgid "" "These represent elements from the mathematical set of integers (positive and " @@ -261,8 +261,8 @@ msgid "" "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." +"being that when converted to a string, the strings ``\"False\"`` or " +"``\"True\"`` are returned, respectively." msgstr "" msgid "" @@ -272,7 +272,7 @@ msgid "" msgstr "" msgid ":class:`numbers.Real` (:class:`float`)" -msgstr "" +msgstr ":class:`numbers.Real` (:class:`float`)" msgid "" "These represent machine-level double precision floating point numbers. You " @@ -285,7 +285,7 @@ msgid "" msgstr "" msgid ":class:`numbers.Complex` (:class:`complex`)" -msgstr "" +msgstr ":class:`numbers.Complex` (:class:`complex`)" msgid "" "These represent complex numbers as a pair of machine-level double precision " @@ -344,9 +344,9 @@ msgid "" "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." +"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 "" msgid "Tuples" @@ -362,7 +362,7 @@ msgid "" msgstr "" msgid "Bytes" -msgstr "" +msgstr "Bajty" msgid "" "A bytes object is an immutable array. The items are 8-bit bytes, " @@ -377,8 +377,8 @@ msgstr "" 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 "" msgid "There are currently two intrinsic mutable sequence types:" @@ -397,8 +397,8 @@ msgid "Byte Arrays" msgstr "" 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 "" @@ -435,17 +435,18 @@ msgstr "Zbiory" 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 "" msgid "Frozen sets" msgstr "" 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 "" msgid "Mappings" @@ -503,8 +504,8 @@ msgid "Callable types" msgstr "" 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 "" msgid "User-defined functions" @@ -520,7 +521,7 @@ msgid "Special attributes:" msgstr "" msgid "Attribute" -msgstr "" +msgstr "atrybut" msgid "Meaning" msgstr "Znaczenie" @@ -632,8 +633,9 @@ msgstr "" msgid "" "Additional information about a function's definition can be retrieved from " -"its code object; see the description of internal types below. The :data:" -"`cell ` type can be accessed in the :mod:`types` module." +"its code object; see the description of internal types below. " +"The :data:`cell ` type can be accessed in the :mod:`types` " +"module." msgstr "" msgid "Instance methods" @@ -647,10 +649,10 @@ msgstr "" 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." +"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 "" msgid "" @@ -679,11 +681,12 @@ msgid "" msgstr "" 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 "" msgid "" @@ -709,15 +712,15 @@ msgid "Generator functions" msgstr "" 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 " -"called, always returns an :term:`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." +"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 :term:`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." msgstr "" msgid "Coroutine functions" @@ -725,10 +728,10 @@ msgstr "" 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 :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 "" msgid "Asynchronous generator functions" @@ -743,27 +746,28 @@ msgid "" msgstr "" 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." +"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." msgstr "" msgid "Built-in functions" -msgstr "" +msgstr "Wbudowane funkcje" 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 " -"module the function was defined in or ``None`` if unavailable." +"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 "" msgid "Built-in methods" @@ -773,8 +777,8 @@ 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*." +"*alist* is a list object. In this case, the special read-only " +"attribute :attr:`__self__` is set to the object denoted by *alist*." msgstr "" msgid "Classes" @@ -783,8 +787,8 @@ msgstr "Klasy" 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:`~object.__new__`. The arguments of the call are passed to :" -"meth:`__new__` and, in the typical case, to :meth:`~object.__init__` to " +"override :meth:`~object.__new__`. The arguments of the call are passed " +"to :meth:`__new__` and, in the typical case, to :meth:`~object.__init__` to " "initialize the new instance." msgstr "" @@ -792,8 +796,8 @@ msgid "Class Instances" msgstr "" msgid "" -"Instances of arbitrary classes can be made callable by defining a :meth:" -"`~object.__call__` method in their class." +"Instances of arbitrary classes can be made callable by defining " +"a :meth:`~object.__call__` method in their class." msgstr "" msgid "Modules" @@ -801,15 +805,15 @@ msgstr "Moduły" 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 "" msgid "" @@ -842,8 +846,8 @@ msgstr "" msgid "" "A dictionary containing :term:`variable annotations ` " -"collected during module body execution. For best practices on working with :" -"attr:`__annotations__`, please see :ref:`annotations-howto`." +"collected during module body execution. For best practices on working " +"with :attr:`__annotations__`, please see :ref:`annotations-howto`." msgstr "" msgid "" @@ -862,28 +866,28 @@ msgid "Custom classes" msgstr "" 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 " -"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 " -"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/." +"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 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/." msgstr "" 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 " -"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__`." +"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 "" msgid "" @@ -921,8 +925,8 @@ msgstr "" msgid "" "A dictionary containing :term:`variable annotations ` " -"collected during class body execution. For best practices on working with :" -"attr:`__annotations__`, please see :ref:`annotations-howto`." +"collected during class body execution. For best practices on working " +"with :attr:`__annotations__`, please see :ref:`annotations-howto`." msgstr "" msgid "Class instances" @@ -940,15 +944,15 @@ msgid "" "\"Classes\". See section :ref:`descriptors` for another way in which " "attributes of a class retrieved via its instances may differ from the " "objects actually stored in the class's :attr:`~object.__dict__`. If no " -"class attribute is found, and the object's class has a :meth:`~object." -"__getattr__` method, that is called to satisfy the lookup." +"class attribute is found, and the object's class has " +"a :meth:`~object.__getattr__` method, that is called to satisfy the lookup." msgstr "" msgid "" "Attribute assignments and deletions update the instance's dictionary, never " -"a class's dictionary. If the class has a :meth:`~object.__setattr__` or :" -"meth:`~object.__delattr__` method, this is called instead of updating the " -"instance dictionary directly." +"a class's dictionary. If the class has a :meth:`~object.__setattr__` " +"or :meth:`~object.__delattr__` method, this is called instead of updating " +"the instance dictionary directly." msgstr "" msgid "" @@ -957,8 +961,8 @@ msgid "" msgstr "" 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 "" msgid "I/O objects (also known as file objects)" @@ -967,9 +971,9 @@ msgstr "" 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 "" msgid "" @@ -992,38 +996,40 @@ msgid "Code objects" msgstr "" 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." +"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 "" msgid "" -"Special read-only attributes: :attr:`co_name` gives the function name; :attr:" -"`co_qualname` gives the fully qualified function name; :attr:`co_argcount` " -"is the total number of positional arguments (including positional-only " -"arguments and arguments with default values); :attr:`co_posonlyargcount` is " -"the number of positional-only arguments (including arguments with default " +"Special read-only attributes: :attr:`co_name` gives the function " +"name; :attr:`co_argcount` is the total number of positional arguments " +"(including positional-only arguments and arguments with default " +"values); :attr:`co_posonlyargcount` is the number of positional-only " +"arguments (including arguments with default " "values); :attr:`co_kwonlyargcount` is the number of keyword-only 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 " +"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." +"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 "" msgid "" @@ -1050,51 +1056,6 @@ msgid "" "is the documentation string of the function, or ``None`` if undefined." msgstr "" -msgid "" -"Returns an iterable over the source code positions of each bytecode " -"instruction in the code object." -msgstr "" - -msgid "" -"The iterator returns tuples containing the ``(start_line, end_line, " -"start_column, end_column)``. The *i-th* tuple corresponds to the position of " -"the source code that compiled to the *i-th* instruction. Column information " -"is 0-indexed utf-8 byte offsets on the given source line." -msgstr "" - -msgid "" -"This positional information can be missing. A non-exhaustive lists of cases " -"where this may happen:" -msgstr "" - -msgid "Running the interpreter with :option:`-X` ``no_debug_ranges``." -msgstr "" - -msgid "" -"Loading a pyc file compiled while using :option:`-X` ``no_debug_ranges``." -msgstr "" - -msgid "Position tuples corresponding to artificial instructions." -msgstr "" - -msgid "" -"Line and column numbers that can't be represented due to implementation " -"specific limitations." -msgstr "" - -msgid "" -"When this occurs, some or all of the tuple elements can be :const:`None`." -msgstr "" - -msgid "" -"This feature requires storing column positions in code objects which may " -"result in a small increase of disk usage of compiled Python files or " -"interpreter memory usage. To avoid storing the extra information and/or " -"deactivate printing the extra traceback information, the :option:`-X` " -"``no_debug_ranges`` command line flag or the :envvar:`PYTHONNODEBUGRANGES` " -"environment variable can be used." -msgstr "" - msgid "Frame objects" msgstr "" @@ -1105,17 +1066,18 @@ msgstr "" 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) " +"(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 "" msgid "" -"Accessing ``f_code`` raises an :ref:`auditing event ` ``object." -"__getattr__`` with arguments ``obj`` and ``\"f_code\"``." +"Accessing ``f_code`` raises an :ref:`auditing event ` " +"``object.__getattr__`` with arguments ``obj`` and ``\"f_code\"``." msgstr "" msgid "" @@ -1126,8 +1088,8 @@ msgid "" msgstr "" 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 "" @@ -1165,9 +1127,10 @@ 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 "" msgid "" @@ -1192,8 +1155,8 @@ msgid "" msgstr "" msgid "" -"Accessing ``tb_frame`` raises an :ref:`auditing event ` ``object." -"__getattr__`` with arguments ``obj`` and ``\"tb_frame\"``." +"Accessing ``tb_frame`` raises an :ref:`auditing event ` " +"``object.__getattr__`` with arguments ``obj`` and ``\"tb_frame\"``." msgstr "" msgid "" @@ -1216,9 +1179,9 @@ msgid "" msgstr "" 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 "" msgid "Slice objects support one method:" @@ -1265,20 +1228,20 @@ msgid "" "(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:" -"`~object.__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`)." +"language operators. For instance, if a class defines a method " +"named :meth:`~object.__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`)." msgstr "" msgid "" "Setting a special method to ``None`` indicates that the corresponding " -"operation is not available. For example, if a class sets :meth:`~object." -"__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:" -"`~object.__getitem__`). [#]_" +"operation is not available. For example, if a class " +"sets :meth:`~object.__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:`~object.__getitem__`). [#]_" msgstr "" msgid "" @@ -1347,10 +1310,10 @@ msgstr "" 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 "" msgid "" @@ -1396,8 +1359,8 @@ 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 "" msgid "" @@ -1416,9 +1379,10 @@ msgid "" "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." +"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 "" msgid "" @@ -1427,10 +1391,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1479,10 +1443,10 @@ msgstr "" 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 "" msgid "" @@ -1498,60 +1462,60 @@ msgstr "" msgid "" "By default, ``object`` implements :meth:`__eq__` by using ``is``, returning " "``NotImplemented`` in the case of a false comparison: ``True if x is y else " -"NotImplemented``. For :meth:`__ne__`, by default it delegates to :meth:" -"`__eq__` and inverts the result unless it is ``NotImplemented``. There are " -"no other implied relationships among the comparison operators or default " -"implementations; for example, the truth of ``(x` such as :class:`int`, :class:`bytes`, " +"and :class:`tuple`." msgstr "" msgid "Any non-string :term:`iterable` may be assigned to *__slots__*." @@ -1994,8 +1962,8 @@ msgstr "" msgid "" "If a :class:`dictionary ` is used to assign *__slots__*, the " "dictionary keys will be used as the slot names. The values of the dictionary " -"can be used to provide per-attribute docstrings that will be recognised by :" -"func:`inspect.getdoc` and displayed in the output of :func:`help`." +"can be used to provide per-attribute docstrings that will be recognised " +"by :func:`inspect.getdoc` and displayed in the output of :func:`help`." msgstr "" msgid "" @@ -2020,12 +1988,13 @@ msgid "Customizing class creation" msgstr "" msgid "" -"Whenever a class inherits from another class, :meth:`~object." -"__init_subclass__` is called on the parent class. This way, it is possible " -"to write classes which change the behavior of subclasses. This is closely " -"related to class decorators, but where class decorators only affect the " -"specific class they're applied to, ``__init_subclass__`` solely applies to " -"future subclasses of the class defining the method." +"Whenever a class inherits from another " +"class, :meth:`~object.__init_subclass__` is called on the parent class. This " +"way, it is possible to write classes which change the behavior of " +"subclasses. This is closely related to class decorators, but where class " +"decorators only affect the specific class they're applied to, " +"``__init_subclass__`` solely applies to future subclasses of the class " +"defining the method." msgstr "" msgid "" @@ -2064,9 +2033,9 @@ msgid "" msgstr "" msgid "" -"If the class variable is assigned after the class is created, :meth:" -"`__set_name__` will not be called automatically. If needed, :meth:" -"`__set_name__` can be called directly::" +"If the class variable is assigned after the class is " +"created, :meth:`__set_name__` will not be called automatically. If " +"needed, :meth:`__set_name__` can be called directly::" msgstr "" msgid "See :ref:`class-object-creation` for more details." @@ -2115,11 +2084,11 @@ msgid "Resolving MRO entries" msgstr "" 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 "" msgid ":pep:`560` - Core support for typing module and generic types" @@ -2137,8 +2106,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -2212,10 +2181,10 @@ 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 "" msgid "" @@ -2280,8 +2249,8 @@ msgid "Customizing instance and subclass checks" msgstr "" 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 "" msgid "" @@ -2314,11 +2283,11 @@ msgid ":pep:`3119` - Introducing Abstract Base Classes" msgstr "" 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 "" msgid "Emulating generic types" @@ -2344,8 +2313,8 @@ msgid "Documentation for objects representing parameterized generic classes" msgstr "" msgid "" -":ref:`Generics`, :ref:`user-defined generics` and :" -"class:`typing.Generic`" +":ref:`Generics`, :ref:`user-defined generics` " +"and :class:`typing.Generic`" msgstr "" msgid "" @@ -2365,8 +2334,8 @@ msgstr "" msgid "" "When defined on a class, ``__class_getitem__()`` is automatically a class " -"method. As such, there is no need for it to be decorated with :func:" -"`@classmethod` when it is defined." +"method. As such, there is no need for it to be decorated " +"with :func:`@classmethod` when it is defined." msgstr "" msgid "The purpose of *__class_getitem__*" @@ -2381,9 +2350,10 @@ msgstr "" msgid "" "To implement custom generic classes that can be parameterized at runtime and " "understood by static type-checkers, users should either inherit from a " -"standard library class that already implements :meth:`~object." -"__class_getitem__`, or inherit from :class:`typing.Generic`, which has its " -"own implementation of ``__class_getitem__()``." +"standard library class that already " +"implements :meth:`~object.__class_getitem__`, or inherit " +"from :class:`typing.Generic`, which has its own implementation of " +"``__class_getitem__()``." msgstr "" msgid "" @@ -2407,32 +2377,34 @@ msgstr "" msgid "" "Presented with the :term:`expression` ``obj[x]``, the Python interpreter " -"follows something like the following process to decide whether :meth:" -"`~object.__getitem__` or :meth:`~object.__class_getitem__` should be called::" +"follows something like the following process to decide " +"whether :meth:`~object.__getitem__` or :meth:`~object.__class_getitem__` " +"should be called::" msgstr "" msgid "" "In Python, all classes are themselves instances of other classes. The class " "of a class is known as that class's :term:`metaclass`, and most classes have " -"the :class:`type` class as their metaclass. :class:`type` does not define :" -"meth:`~object.__getitem__`, meaning that expressions such as ``list[int]``, " -"``dict[str, float]`` and ``tuple[str, bytes]`` all result in :meth:`~object." -"__class_getitem__` being called::" +"the :class:`type` class as their metaclass. :class:`type` does not " +"define :meth:`~object.__getitem__`, meaning that expressions such as " +"``list[int]``, ``dict[str, float]`` and ``tuple[str, bytes]`` all result " +"in :meth:`~object.__class_getitem__` being called::" msgstr "" msgid "" -"However, if a class has a custom metaclass that defines :meth:`~object." -"__getitem__`, subscribing the class may result in different behaviour. An " -"example of this can be found in the :mod:`enum` module::" +"However, if a class has a custom metaclass that " +"defines :meth:`~object.__getitem__`, subscribing the class may result in " +"different behaviour. An example of this can be found in the :mod:`enum` " +"module::" msgstr "" msgid ":pep:`560` - Core Support for typing module and generic types" msgstr "" msgid "" -"Introducing :meth:`~object.__class_getitem__`, and outlining when a :ref:" -"`subscription` results in ``__class_getitem__()`` being " -"called instead of :meth:`~object.__getitem__`" +"Introducing :meth:`~object.__class_getitem__`, and outlining when " +"a :ref:`subscription` results in ``__class_getitem__()`` " +"being called instead of :meth:`~object.__getitem__`" msgstr "" msgid "Emulating callable objects" @@ -2450,36 +2422,34 @@ msgstr "" msgid "" "The following methods can be defined to implement container objects. " "Containers usually are :term:`sequences ` (such as :class:`lists " -"` or :class:`tuples `) or :term:`mappings ` (like :" -"class:`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 :class:`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 :class:`dictionary ` objects. " -"The :mod:`collections.abc` module provides a :class:`~collections.abc." -"MutableMapping` :term:`abstract base class` to help create those methods " -"from a base set of :meth:`~object.__getitem__`, :meth:`~object." -"__setitem__`, :meth:`~object.__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 :class:`list` objects. " -"Finally, sequence types should implement addition (meaning concatenation) " -"and multiplication (meaning repetition) by defining the methods :meth:" -"`~object.__add__`, :meth:`~object.__radd__`, :meth:`~object.__iadd__`, :meth:" -"`~object.__mul__`, :meth:`~object.__rmul__` and :meth:`~object.__imul__` " -"described below; they should not define other numerical operators. It is " -"recommended that both mappings and sequences implement the :meth:`~object." -"__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:`~object.__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." +"` or :class:`tuples `) or :term:`mappings ` " +"(like :class:`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 :class:`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 :class:`dictionary ` objects. The :mod:`collections.abc` " +"module provides a :class:`~collections.abc.MutableMapping` :term:`abstract " +"base class` to help create those methods from a base set " +"of :meth:`~object.__getitem__`, :meth:`~object.__setitem__`, :meth:`~object.__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 :class:`list` objects. Finally, " +"sequence types should implement addition (meaning concatenation) and " +"multiplication (meaning repetition) by defining the " +"methods :meth:`~object.__add__`, :meth:`~object.__radd__`, :meth:`~object.__iadd__`, :meth:`~object.__mul__`, :meth:`~object.__rmul__` " +"and :meth:`~object.__imul__` described below; they should not define other " +"numerical operators. It is recommended that both mappings and sequences " +"implement the :meth:`~object.__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:`~object.__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 "" msgid "" @@ -2491,19 +2461,19 @@ msgstr "" 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." +"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 "" 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." +"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 "" msgid "" @@ -2523,9 +2493,9 @@ msgid "" "a :term:`sequence` type) is up to the :meth:`__getitem__` method. If *key* " "is of an inappropriate type, :exc:`TypeError` may be raised; if of a value " "outside the set of indexes for the sequence (after any special " -"interpretation of negative values), :exc:`IndexError` should be raised. For :" -"term:`mapping` types, if *key* is missing (not in the container), :exc:" -"`KeyError` should be raised." +"interpretation of negative values), :exc:`IndexError` should be raised. " +"For :term:`mapping` types, if *key* is missing (not in the " +"container), :exc:`KeyError` should be raised." msgstr "" msgid "" @@ -2534,25 +2504,26 @@ msgid "" msgstr "" msgid "" -"When :ref:`subscripting` a *class*, the special class method :" -"meth:`~object.__class_getitem__` may be called instead of ``__getitem__()``. " -"See :ref:`classgetitem-versus-getitem` for more details." +"When :ref:`subscripting` a *class*, the special class " +"method :meth:`~object.__class_getitem__` may be called instead of " +"``__getitem__()``. See :ref:`classgetitem-versus-getitem` for more details." msgstr "" 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 "" 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 "" msgid "" @@ -2575,10 +2546,10 @@ msgstr "" 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 "" msgid "" @@ -2612,16 +2583,16 @@ msgid "" msgstr "" 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, ``type(x).__add__(x, 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 "" msgid "" @@ -2630,15 +2601,15 @@ msgid "" msgstr "" 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, ``type(y)." -"__rsub__(y, x)`` is called if ``type(x).__sub__(x, 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 "" msgid "" @@ -2662,21 +2633,21 @@ msgid "" "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 " +"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 "" msgid "" -"Called to implement the unary arithmetic operations (``-``, ``+``, :func:" -"`abs` and ``~``)." +"Called to implement the unary arithmetic operations (``-``, " +"``+``, :func:`abs` and ``~``)." msgstr "" 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 "" msgid "" @@ -2706,9 +2677,6 @@ msgid "" "neither :meth:`__int__` nor :meth:`__index__` is defined." msgstr "" -msgid "The delegation of :func:`int` to :meth:`__trunc__` is deprecated." -msgstr "" - msgid "With Statement Context Managers" msgstr "" @@ -2769,7 +2737,7 @@ msgid "" "When using a class name in a pattern, positional arguments in the pattern " "are not allowed by default, i.e. ``case MyClass(x, y)`` is typically invalid " "without special support in ``MyClass``. To be able to use that kind of " -"patterns, the class needs to define a *__match_args__* attribute." +"pattern, the class needs to define a *__match_args__* attribute." msgstr "" msgid "" @@ -2785,8 +2753,8 @@ msgid "" "\"right\")`` that means that ``case MyClass(x, y)`` is equivalent to ``case " "MyClass(left=x, center=y)``. Note that the number of arguments in the " "pattern must be smaller than or equal to the number of elements in " -"*__match_args__*; if it is larger, the pattern match attempt will raise a :" -"exc:`TypeError`." +"*__match_args__*; if it is larger, the pattern match attempt will raise " +"a :exc:`TypeError`." msgstr "" msgid ":pep:`634` - Structural Pattern Matching" @@ -2821,8 +2789,8 @@ msgstr "" msgid "" "In addition to bypassing any instance attributes in the interest of " -"correctness, implicit special method lookup generally also bypasses the :" -"meth:`~object.__getattribute__` method even of the object's metaclass::" +"correctness, implicit special method lookup generally also bypasses " +"the :meth:`~object.__getattribute__` method even of the object's metaclass::" msgstr "" msgid "" @@ -2840,21 +2808,28 @@ msgid "Awaitable Objects" msgstr "" msgid "" -"An :term:`awaitable` object generally implements an :meth:`~object." -"__await__` method. :term:`Coroutine objects ` returned from :" -"keyword:`async def` functions are awaitable." +"An :term:`awaitable` object generally implements " +"an :meth:`~object.__await__` method. :term:`Coroutine objects ` " +"returned from :keyword:`async def` functions are awaitable." msgstr "" msgid "" "The :term:`generator iterator` objects returned from generators decorated " -"with :func:`types.coroutine` are also awaitable, but they do not implement :" -"meth:`~object.__await__`." +"with :func:`types.coroutine` or :func:`asyncio.coroutine` are also " +"awaitable, but they do not implement :meth:`~object.__await__`." +msgstr "" + +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." msgstr "" 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." +"The language doesn't place any restriction on the type or value of the " +"objects yielded by the iterator returned by ``__await__``, as this is " +"specific to the implementation of the asynchronous execution framework " +"(e.g. :mod:`asyncio`) that will be managing the :term:`awaitable` object." msgstr "" msgid ":pep:`492` for additional information about awaitable objects." @@ -2867,10 +2842,11 @@ msgid "" ":term:`Coroutine objects ` are :term:`awaitable` objects. A " "coroutine's execution can be controlled by calling :meth:`~object.__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." +"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." msgstr "" msgid "" @@ -2884,22 +2860,23 @@ msgstr "" msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " -"is equivalent to advancing the iterator returned by :meth:`~object." -"__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." +"is equivalent to advancing the iterator returned " +"by :meth:`~object.__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." msgstr "" 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:`~object.__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:`~object.__await__` return value, described above. " +"If the exception is not caught in the coroutine, it propagates back to the " +"caller." msgstr "" msgid "" @@ -2947,8 +2924,8 @@ msgstr "" msgid "" "Starting with Python 3.7, :meth:`~object.__aiter__` must return an " -"asynchronous iterator object. Returning anything else will result in a :exc:" -"`TypeError` error." +"asynchronous iterator object. Returning anything else will result in " +"a :exc:`TypeError` error." msgstr "" msgid "Asynchronous Context Managers" @@ -2987,10 +2964,10 @@ msgid "" msgstr "" msgid "" -"The :meth:`~object.__hash__`, :meth:`~object.__iter__`, :meth:`~object." -"__reversed__`, and :meth:`~object.__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:`~object.__hash__`, :meth:`~object.__iter__`, :meth:`~object.__reversed__`, " +"and :meth:`~object.__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 "" msgid "" diff --git a/reference/executionmodel.po b/reference/executionmodel.po index bfc980eba4..d7a3e1ba90 100644 --- a/reference/executionmodel.po +++ b/reference/executionmodel.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:19+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Execution model" msgstr "" @@ -38,9 +37,9 @@ msgid "" "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. A module run as " -"a top level script (as module ``__main__``) from the command line using a :" -"option:`-m` argument is also a code block. The string argument passed to the " -"built-in functions :func:`eval` and :func:`exec` is a code block." +"a top level script (as module ``__main__``) from the command line using " +"a :option:`-m` argument is also a code block. The string argument passed to " +"the built-in functions :func:`eval` and :func:`exec` is a code block." msgstr "" msgid "" @@ -85,8 +84,7 @@ msgstr "" msgid "" "after :keyword:`!as` in a :keyword:`with` statement, :keyword:`except` " -"clause, :keyword:`except* ` clause, or in the as-pattern in " -"structural pattern matching," +"clause or in the as-pattern in structural pattern matching," msgstr "" msgid "in a capture pattern in structural pattern matching" @@ -145,8 +143,8 @@ 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 "" msgid "" @@ -156,7 +154,8 @@ msgid "" "bound. This rule is subtle. Python lacks declarations and allows name " "binding operations to occur anywhere within a code block. The local " "variables of a code block can be determined by scanning the entire text of " -"the block for name binding operations." +"the block for name binding operations. See :ref:`the FAQ entry on " +"UnboundLocalError ` for examples." msgstr "" msgid "" @@ -164,10 +163,10 @@ msgid "" "names specified in the statement refer to the bindings of those names 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 names are not " -"found there, the builtins namespace is searched. The :keyword:`!global` " -"statement must precede all uses of the listed names." +"the code block, and the builtins namespace, the namespace of the " +"module :mod:`builtins`. The global namespace is searched first. If the " +"names are not found there, the builtins namespace is searched. " +"The :keyword:`!global` statement must precede all uses of the listed names." msgstr "" msgid "" @@ -179,9 +178,9 @@ msgstr "" 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 "" msgid "" @@ -207,9 +206,9 @@ msgstr "" 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 " -"appropriately." +"detail. Users wanting to override values in the builtins namespace " +"should :keyword:`import` the :mod:`builtins` module and modify its " +"attributes appropriately." msgstr "" msgid "" @@ -218,8 +217,8 @@ msgid "" "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." +"other module, ``__builtins__`` is an alias for the dictionary of " +"the :mod:`builtins` module itself." msgstr "" msgid "Interaction with dynamic features" @@ -234,10 +233,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 "" msgid "Exceptions" @@ -255,9 +254,9 @@ 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 "" @@ -271,8 +270,8 @@ msgstr "" 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 "" msgid "" @@ -291,8 +290,8 @@ msgid "" msgstr "" 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 "" msgid "Footnotes" diff --git a/reference/expressions.po b/reference/expressions.po index 5311555ffa..6c3a63ded5 100644 --- a/reference/expressions.po +++ b/reference/expressions.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Expressions" msgstr "" @@ -81,15 +81,15 @@ msgid "Identifiers (Names)" msgstr "" msgid "" -"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." +"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 "" 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 "" msgid "" @@ -149,9 +149,9 @@ msgstr "" msgid "" "Note that tuples are not formed by the parentheses, but rather by use of the " -"comma. 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." +"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 "" msgid "Displays for lists, sets and dictionaries" @@ -166,17 +166,17 @@ msgid "either the container contents are listed explicitly, or" msgstr "" 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 "" msgid "Common syntax elements for comprehensions are:" msgstr "" 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` " -"clauses. In this case, the elements of the new container are those that " +"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." @@ -207,14 +207,14 @@ msgstr "" 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` " -"expressions or other asynchronous comprehensions it is called an :dfn:" -"`asynchronous comprehension`. An asynchronous comprehension may suspend the " -"execution of the coroutine function in which it appears. See also :pep:`530`." +"expressions it is called an :dfn:`asynchronous comprehension`. An " +"asynchronous comprehension may suspend the execution of the coroutine " +"function in which it appears. See also :pep:`530`." msgstr "" msgid "Asynchronous comprehensions were introduced." @@ -223,11 +223,6 @@ msgstr "" msgid "``yield`` and ``yield from`` prohibited in the implicitly nested scope." msgstr "" -msgid "" -"Asynchronous comprehensions are now allowed inside comprehensions in " -"asynchronous functions. Outer comprehensions implicitly become asynchronous." -msgstr "" - msgid "List displays" msgstr "" @@ -305,11 +300,11 @@ msgid "" msgstr "" 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 " -"detected; the last datum (textually rightmost in the display) stored for a " -"given key value prevails." +"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 "" msgid "" @@ -332,16 +327,16 @@ msgid "" msgstr "" 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 "" msgid "" @@ -356,11 +351,11 @@ msgid "" msgstr "" 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 "" msgid "Asynchronous generator expressions were introduced." @@ -379,9 +374,9 @@ 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 function, and using it in an :" -"keyword:`async def` function's body causes that coroutine function to be an " -"asynchronous generator function. For example::" +"body causes that function to be a generator function, and using it in " +"an :keyword:`async def` function's body causes that coroutine function to be " +"an asynchronous generator function. For example::" msgstr "" msgid "" @@ -406,18 +401,19 @@ msgid "" "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:`~python-grammar:" -"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." +"where it is suspended again, returning the value of :token:`~python-" +"grammar:expression_list` to the generator's caller, or ``None`` " +"if :token:`~python-grammar:expression_list` is omitted. 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 "" msgid "" @@ -431,28 +427,29 @@ msgstr "" 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 "" msgid "" "When ``yield from `` is used, the supplied expression must be an " "iterable. The values produced by iterating that iterable 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." +"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." msgstr "" 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 "" msgid "Added ``yield from `` to delegate control flow to a subiterator." @@ -510,13 +507,13 @@ msgstr "" 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:`~python-grammar:expression_list` is returned to :meth:`__next__`'s " -"caller. If the generator exits without yielding another value, a :exc:" -"`StopIteration` exception is raised." +"expression, where the generator is suspended again, and the value of " +"the :token:`~python-grammar:expression_list` is returned " +"to :meth:`__next__`'s caller. If the generator exits without yielding " +"another value, a :exc:`StopIteration` exception is raised." msgstr "" msgid "" @@ -561,10 +558,10 @@ 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." +"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 "" msgid "Examples" @@ -584,9 +581,9 @@ msgid "Asynchronous generator functions" msgstr "" 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 " -"generator` function." +"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 "" msgid "" @@ -594,26 +591,26 @@ msgid "" "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 "" - -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:`~python-grammar:" -"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." +"coroutine function analogously to how a generator object would be used in " +"a :keyword:`for` statement." +msgstr "" + +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:`~python-grammar: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 "" msgid "" @@ -644,12 +641,12 @@ msgid "" "To take care of finalization upon event loop termination, 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 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`." +"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`." msgstr "" msgid "" @@ -674,9 +671,9 @@ msgid "" "expression. The value of the :token:`~python-grammar:expression_list` of the " "yield expression is the value of the :exc:`StopIteration` exception raised " "by the completing coroutine. If the asynchronous generator exits without " -"yielding another value, the awaitable instead raises a :exc:" -"`StopAsyncIteration` exception, signalling that the asynchronous iteration " -"has completed." +"yielding another value, the awaitable instead raises " +"a :exc:`StopAsyncIteration` exception, signalling that the asynchronous " +"iteration has completed." msgstr "" msgid "" @@ -689,23 +686,23 @@ msgid "" "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." +"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 "" 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 " -"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." +"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." msgstr "" msgid "" @@ -752,9 +749,9 @@ msgstr "" msgid "" "The subscription of an instance of a :ref:`container class ` " -"will generally select an element from the container. The subscription of a :" -"term:`generic class ` will generally return a :ref:" -"`GenericAlias ` object." +"will generally select an element from the container. The subscription of " +"a :term:`generic class ` will generally return " +"a :ref:`GenericAlias ` object." msgstr "" msgid "" @@ -764,16 +761,17 @@ msgstr "" msgid "" "The primary must evaluate to an object that supports subscription. An object " -"may support subscription through defining one or both of :meth:`~object." -"__getitem__` and :meth:`~object.__class_getitem__`. When the primary is " -"subscripted, the evaluated result of the expression list will be passed to " -"one of these methods. For more details on when ``__class_getitem__`` is " -"called instead of ``__getitem__``, see :ref:`classgetitem-versus-getitem`." +"may support subscription through defining one or both " +"of :meth:`~object.__getitem__` and :meth:`~object.__class_getitem__`. When " +"the primary is subscripted, the evaluated result of the expression list will " +"be passed to one of these methods. For more details on when " +"``__class_getitem__`` is called instead of ``__getitem__``, " +"see :ref:`classgetitem-versus-getitem`." msgstr "" msgid "" -"If the expression list contains at least one comma, it will evaluate to a :" -"class:`tuple` containing the items of the expression list. Otherwise, the " +"If the expression list contains at least one comma, it will evaluate to " +"a :class:`tuple` containing the items of the expression list. Otherwise, the " "expression list will evaluate to the value of the list's sole member." msgstr "" @@ -792,21 +790,21 @@ msgstr "" msgid "" "Sequences. If the primary is a :term:`sequence`, the expression list must " "evaluate to an :class:`int` or a :class:`slice` (as discussed in the " -"following section). Examples of builtin sequence classes include the :class:" -"`str`, :class:`list` and :class:`tuple` classes." +"following section). Examples of builtin sequence classes include " +"the :class:`str`, :class:`list` and :class:`tuple` classes." msgstr "" msgid "" -"The formal syntax makes no special provision for negative indices in :term:" -"`sequences `. However, built-in sequences all provide a :meth:" -"`~object.__getitem__` method that interprets negative indices by adding the " -"length of the sequence to the index so that, for example, ``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 slicing occurs in the object's :meth:`__getitem__` " -"method, subclasses overriding this method will need to explicitly add that " -"support." +"The formal syntax makes no special provision for negative indices " +"in :term:`sequences `. However, built-in sequences all provide " +"a :meth:`~object.__getitem__` method that interprets negative indices by " +"adding the length of the sequence to the index so that, for example, " +"``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 slicing occurs in the " +"object's :meth:`__getitem__` method, subclasses overriding this method will " +"need to explicitly add that support." msgstr "" msgid "" @@ -840,11 +838,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 "" msgid "Calls" @@ -877,24 +875,25 @@ msgid "" "to determine the corresponding slot (if the identifier is the same as the " "first formal parameter name, the first slot is used, and so on). If the " "slot is already filled, a :exc:`TypeError` exception is raised. Otherwise, " -"the argument is placed in the slot, filling it (even if the expression is " -"``None``, it fills the slot). When all arguments have been processed, the " -"slots that are still unfilled are filled with the corresponding default " -"value from the function definition. (Default values are calculated, once, " -"when the function is defined; thus, a mutable object such as a list or " -"dictionary used as default value will be shared by all calls that don't " -"specify an argument value for the corresponding slot; this should usually be " -"avoided.) If there are any unfilled slots for which no default value is " -"specified, a :exc:`TypeError` exception is raised. Otherwise, the list of " -"filled slots is used as the argument list for the call." +"the value of the argument is placed in the slot, filling it (even if the " +"expression is ``None``, it fills the slot). When all arguments have been " +"processed, the slots that are still unfilled are filled with the " +"corresponding default value from the function definition. (Default values " +"are calculated, once, when the function is defined; thus, a mutable object " +"such as a list or dictionary used as default value will be shared by all " +"calls that don't specify an argument value for the corresponding slot; this " +"should usually be avoided.) If there are any unfilled slots for which no " +"default value is specified, a :exc:`TypeError` exception is raised. " +"Otherwise, the list of filled slots is used as the argument list for the " +"call." msgstr "" msgid "" "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 "" msgid "" @@ -906,8 +905,8 @@ msgid "" msgstr "" 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 " @@ -931,7 +930,7 @@ msgstr "" msgid "" "It is unusual for both keyword arguments and the ``*expression`` syntax to " -"be used in the same call, so in practice this confusion does not often arise." +"be used in the same call, so in practice this confusion does not arise." msgstr "" msgid "" @@ -1053,8 +1052,9 @@ msgstr "" 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 "" msgid "" @@ -1081,13 +1081,13 @@ msgstr "" 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 or to custom objects that override the :" -"meth:`__invert__` special method." +"It only applies to integral numbers or to custom objects that override " +"the :meth:`__invert__` special method." msgstr "" 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 "" msgid "Binary arithmetic operations" @@ -1110,8 +1110,8 @@ msgid "" msgstr "" msgid "" -"This operation can be customized using the special :meth:`__mul__` and :meth:" -"`__rmul__` methods." +"This operation can be customized using the special :meth:`__mul__` " +"and :meth:`__rmul__` methods." msgstr "" msgid "" @@ -1129,8 +1129,8 @@ msgid "" msgstr "" msgid "" -"This operation can be customized using the special :meth:`__truediv__` and :" -"meth:`__floordiv__` methods." +"This operation can be customized using the special :meth:`__truediv__` " +"and :meth:`__floordiv__` methods." msgstr "" msgid "" @@ -1178,8 +1178,8 @@ msgid "" msgstr "" msgid "" -"This operation can be customized using the special :meth:`__add__` and :meth:" -"`__radd__` methods." +"This operation can be customized using the special :meth:`__add__` " +"and :meth:`__radd__` methods." msgstr "" msgid "" @@ -1204,8 +1204,8 @@ msgid "" msgstr "" msgid "" -"This operation can be customized using the special :meth:`__lshift__` and :" -"meth:`__rshift__` methods." +"This operation can be customized using the special :meth:`__lshift__` " +"and :meth:`__rshift__` methods." msgstr "" msgid "" @@ -1227,14 +1227,14 @@ msgstr "" msgid "" "The ``^`` operator yields the bitwise XOR (exclusive OR) of its arguments, " -"which must be integers or one of them must be a custom object overriding :" -"meth:`__xor__` or :meth:`__rxor__` special methods." +"which must be integers or one of them must be a custom object " +"overriding :meth:`__xor__` or :meth:`__rxor__` special methods." msgstr "" msgid "" "The ``|`` operator yields the bitwise (inclusive) OR of its arguments, which " -"must be integers or one of them must be a custom object overriding :meth:" -"`__or__` or :meth:`__ror__` special methods." +"must be integers or one of them must be a custom object " +"overriding :meth:`__or__` or :meth:`__ror__` special methods." msgstr "" msgid "Comparisons" @@ -1359,8 +1359,8 @@ msgstr "" 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 "" msgid "Strings and binary sequences cannot be directly compared." @@ -1419,9 +1419,9 @@ msgid "" "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 " -"sets as inputs)." +"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 "" msgid "Comparison of sets enforces reflexivity of its elements." @@ -1489,8 +1489,8 @@ msgstr "" 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 "" msgid "" @@ -1510,17 +1510,18 @@ 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 " -"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)``." +"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 "" 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``." +"strings are always considered to be a substring of any other string, so " +"``\"\" in \"abc\"`` will return ``True``." msgstr "" msgid "" @@ -1538,11 +1539,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1603,9 +1604,9 @@ msgstr "Wyrażenia przypisania" msgid "" "An assignment expression (sometimes also called a \"named expression\" or " -"\"walrus\") assigns an :token:`~python-grammar:expression` to an :token:" -"`~python-grammar:identifier`, while also returning the value of the :token:" -"`~python-grammar:expression`." +"\"walrus\") assigns an :token:`~python-grammar:expression` to " +"an :token:`~python-grammar:identifier`, while also returning the value of " +"the :token:`~python-grammar:expression`." msgstr "" msgid "One common use case is when handling matched regular expressions:" @@ -1708,8 +1709,7 @@ msgid "" "highest precedence (most binding) to lowest precedence (least binding). " "Operators in the same box have the same precedence. Unless the syntax is " "explicitly given, operators are binary. Operators in the same box group " -"left to right (except for exponentiation and conditional expressions, which " -"group from right to left)." +"left to right (except for exponentiation, which groups from right to left)." msgstr "" msgid "" @@ -1745,19 +1745,19 @@ msgid ":keyword:`await x `" msgstr "" msgid "``**``" -msgstr "" +msgstr "``**``" msgid "Exponentiation [#]_" msgstr "" msgid "``+x``, ``-x``, ``~x``" -msgstr "" +msgstr "``+x``, ``-x``, ``~x``" msgid "Positive, negative, bitwise NOT" msgstr "" msgid "``*``, ``@``, ``/``, ``//``, ``%``" -msgstr "" +msgstr "``*``, ``@``, ``/``, ``//``, ``%``" msgid "" "Multiplication, matrix multiplication, division, floor division, remainder " @@ -1765,31 +1765,31 @@ msgid "" msgstr "" msgid "``+``, ``-``" -msgstr "" +msgstr "``+``, ``-``" msgid "Addition and subtraction" msgstr "" msgid "``<<``, ``>>``" -msgstr "" +msgstr "``<<``, ``>>``" msgid "Shifts" msgstr "" msgid "``&``" -msgstr "" +msgstr "``&``" msgid "Bitwise AND" msgstr "" msgid "``^``" -msgstr "" +msgstr "``^``" msgid "Bitwise XOR" msgstr "" msgid "``|``" -msgstr "" +msgstr "``|``" msgid "Bitwise OR" msgstr "" @@ -1809,13 +1809,13 @@ msgid "Boolean NOT" msgstr "" msgid ":keyword:`and`" -msgstr "" +msgstr ":keyword:`and`" msgid "Boolean AND" msgstr "" msgid ":keyword:`or`" -msgstr "" +msgstr ":keyword:`or`" msgid "Boolean OR" msgstr "" @@ -1827,13 +1827,13 @@ msgid "Conditional expression" msgstr "" msgid ":keyword:`lambda`" -msgstr "" +msgstr ":keyword:`lambda`" msgid "Lambda expression" msgstr "" msgid "``:=``" -msgstr "" +msgstr "``:=``" msgid "Assignment expression" msgstr "" diff --git a/reference/grammar.po b/reference/grammar.po new file mode 100644 index 0000000000..608bf9284f --- /dev/null +++ b/reference/grammar.po @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Full Grammar specification" +msgstr "Pełna specyfikacja Grammar" + +msgid "" +"This is the full Python grammar, derived directly from the grammar used to " +"generate the CPython parser (see :source:`Grammar/python.gram`). The version " +"here omits details related to code generation and error recovery." +msgstr "" +"Jest to pełna gramatyka Pythona, pochodząca bezpośrednio z tej używanej do " +"generowania kodu parsera CPythona (zobacz: :source:`Grammar/Python.gram`). " +"Wersja tutaj pomija szczegóły związane z generowaniem kodu oraz obsługą " +"błędów." + +msgid "" +"The notation is a mixture of `EBNF `_ and `PEG `_. In particular, ``&`` followed by a symbol, " +"token or parenthesized group indicates a positive lookahead (i.e., is " +"required to match but not consumed), while ``!`` indicates a negative " +"lookahead (i.e., is required *not* to match). We use the ``|`` separator to " +"mean PEG's \"ordered choice\" (written as ``/`` in traditional PEG " +"grammars). See :pep:`617` for more details on the grammar's syntax." +msgstr "" diff --git a/reference/import.po b/reference/import.po new file mode 100644 index 0000000000..efa043043c --- /dev/null +++ b/reference/import.po @@ -0,0 +1,1212 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "The import system" +msgstr "" + +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." +msgstr "" + +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 " +"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 " +"operation." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 " +"using various hooks described in the sections below." +msgstr "" + +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 " +"import system is exposed through :data:`sys.meta_path`. In addition, native " +"namespace package support has been implemented (see :pep:`420`)." +msgstr "" + +msgid ":mod:`importlib`" +msgstr ":mod:`importlib`" + +msgid "" +"The :mod:`importlib` module provides a rich API for interacting with the " +"import system. For example :func:`importlib.import_module` provides a " +"recommended, simpler API than built-in :func:`__import__` for invoking the " +"import machinery. Refer to the :mod:`importlib` library documentation for " +"additional detail." +msgstr "" + +msgid "Packages" +msgstr "Pakiety" + +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 `." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"It's important to keep in mind that all packages are modules, but not all " +"modules are packages. Or put another way, packages are just a special kind " +"of module. Specifically, any module that contains a ``__path__`` attribute " +"is considered a package." +msgstr "" + +msgid "" +"All modules have a name. Subpackage names are separated from their parent " +"package name by a dot, akin to Python's standard attribute access syntax. " +"Thus you might have 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 "" + +msgid "Regular packages" +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." +msgstr "" + +msgid "" +"For example, the following file system layout defines a top level ``parent`` " +"package with three subpackages::" +msgstr "" + +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." +msgstr "" + +msgid "Namespace packages" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"Namespace packages do not use an ordinary list for their ``__path__`` " +"attribute. They instead use a custom iterable type which will automatically " +"perform a new search for package portions on the next import attempt within " +"that package if the path of their parent package (or :data:`sys.path` for a " +"top level package) changes." +msgstr "" + +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." +msgstr "" + +msgid "See also :pep:`420` for the namespace package specification." +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "" +"To begin the search, Python needs the :term:`fully qualified ` name of the module (or package, but for the purposes of this " +"discussion, the difference is immaterial) being imported. This name may " +"come from various arguments to the :keyword:`import` statement, or from the " +"parameters to the :func:`importlib.import_module` or :func:`__import__` " +"functions." +msgstr "" + +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." +msgstr "" + +msgid "The module cache" +msgstr "" + +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 " +"module object." +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." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "Finders and loaders" +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." +msgstr "" + +msgid "" +"Python includes a number of default finders and importers. The first one " +"knows how to locate built-in modules, and the second knows how to locate " +"frozen modules. A third default finder searches an :term:`import path` for " +"modules. The :term:`import path` is a list of locations that may name file " +"system paths or zip files. It can also be extended to search for any " +"locatable resource, such as those identified by URLs." +msgstr "" + +msgid "" +"The import machinery is extensible, so new finders can be added to extend " +"the range and scope of module searching." +msgstr "" + +msgid "" +"Finders do not actually load modules. If they can find the named module, " +"they return a :dfn:`module spec`, an encapsulation of the module's import-" +"related information, which the import machinery then uses when loading the " +"module." +msgstr "" + +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 " +"import machinery." +msgstr "" + +msgid "" +"In previous versions of Python, finders returned :term:`loaders ` " +"directly, whereas now they return module specs which *contain* loaders. " +"Loaders are still used during import but have fewer responsibilities." +msgstr "" + +msgid "Import hooks" +msgstr "" + +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 " +"hooks* and *import path hooks*." +msgstr "" + +msgid "" +"Meta hooks are called at the start of import processing, before any other " +"import processing has occurred, other than :data:`sys.modules` cache look " +"up. This allows meta hooks to override :data:`sys.path` processing, frozen " +"modules, or even built-in modules. Meta hooks are registered by adding new " +"finder objects to :data:`sys.meta_path`, as described below." +msgstr "" + +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." +msgstr "" + +msgid "The meta path" +msgstr "" + +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 " +"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." +msgstr "" + +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 " +"returning a spec, then a :exc:`ModuleNotFoundError` is raised. Any other " +"exceptions raised are simply propagated up, aborting the import process." +msgstr "" + +msgid "" +"The :meth:`~importlib.abc.MetaPathFinder.find_spec()` method of meta path " +"finders is called with two or three arguments. The first is the fully " +"qualified name of the module being imported, for example ``foo.bar.baz``. " +"The second argument is the path entries to use for the module search. For " +"top-level modules, the second argument is ``None``, but for submodules or " +"subpackages, the second argument is the value of the parent package's " +"``__path__`` attribute. If the appropriate ``__path__`` attribute cannot be " +"accessed, a :exc:`ModuleNotFoundError` is raised. The third argument is an " +"existing module object that will be the target of loading later. The import " +"system passes in a target module only during reload." +msgstr "" + +msgid "" +"The meta path may be traversed multiple times for a single import request. " +"For example, assuming none of the modules involved has already been cached, " +"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)``." +msgstr "" + +msgid "" +"Some meta path finders only support top level imports. These importers will " +"always return ``None`` when anything other than ``None`` is passed as the " +"second argument." +msgstr "" + +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 " +"modules, and one that knows how to import modules from an :term:`import " +"path` (i.e. the :term:`path based finder`)." +msgstr "" + +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 " +"machinery will try it only if the finder does not implement ``find_spec()``." +msgstr "" + +msgid "" +"Use of :meth:`~importlib.abc.MetaPathFinder.find_module` by the import " +"system now raises :exc:`ImportWarning`." +msgstr "" + +msgid "Loading" +msgstr "" + +msgid "" +"If and when a module spec is found, the import machinery will use it (and " +"the loader it contains) when loading the module. Here is an approximation " +"of what happens during the loading portion of import::" +msgstr "" + +msgid "Note the following details:" +msgstr "" + +msgid "" +"If there is an existing module object with the given name " +"in :data:`sys.modules`, import will have already returned it." +msgstr "" + +msgid "" +"The module will exist in :data:`sys.modules` before the loader executes the " +"module code. This is crucial because the module code may (directly or " +"indirectly) import itself; adding it to :data:`sys.modules` beforehand " +"prevents unbounded recursion in the worst case and multiple loading in the " +"best." +msgstr "" + +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`." +msgstr "" + +msgid "" +"After the module is created but before execution, the import machinery sets " +"the import-related module attributes (\"_init_module_attrs\" in the pseudo-" +"code example above), as summarized in a :ref:`later section `." +msgstr "" + +msgid "" +"Module execution is the key moment of loading in which the module's " +"namespace gets populated. Execution is entirely delegated to the loader, " +"which gets to decide what gets populated and how." +msgstr "" + +msgid "" +"The module created during loading and passed to exec_module() may not be the " +"one returned at the end of import [#fnlo]_." +msgstr "" + +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." +msgstr "" + +msgid "Loaders" +msgstr "" + +msgid "" +"Module loaders provide the critical function of loading: module execution. " +"The import machinery calls the :meth:`importlib.abc.Loader.exec_module` " +"method with a single argument, the module object to execute. Any value " +"returned from :meth:`~importlib.abc.Loader.exec_module` is ignored." +msgstr "" + +msgid "Loaders must satisfy the following requirements:" +msgstr "" + +msgid "" +"If the module is a Python module (as opposed to a built-in module or a " +"dynamically loaded extension), the loader should execute the module's code " +"in the module's global name space (``module.__dict__``)." +msgstr "" + +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." +msgstr "" + +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``." +msgstr "" + +msgid "" +"Module loaders may opt in to creating the module object during loading by " +"implementing a :meth:`~importlib.abc.Loader.create_module` method. It takes " +"one argument, the module spec, and returns the new module object to use " +"during loading. ``create_module()`` does not need to set any attributes on " +"the module object. If the method returns ``None``, the import machinery " +"will create the new module itself." +msgstr "" + +msgid "The :meth:`~importlib.abc.Loader.create_module` method of loaders." +msgstr "" + +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." +msgstr "" + +msgid "" +"For compatibility with existing loaders, the import machinery will use the " +"``load_module()`` method of loaders if it exists and the loader does not " +"also implement ``exec_module()``. However, ``load_module()`` has been " +"deprecated and loaders should implement ``exec_module()`` instead." +msgstr "" + +msgid "" +"The ``load_module()`` method must implement all the boilerplate loading " +"functionality described above in addition to executing the module. All the " +"same constraints apply, with some additional clarification:" +msgstr "" + +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`." +msgstr "" + +msgid "" +"The module *must* exist in :data:`sys.modules` before the loader executes " +"the module code, to prevent unbounded recursion or multiple loading." +msgstr "" + +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 only if the loader itself has loaded the module(s) explicitly." +msgstr "" + +msgid "" +"A :exc:`DeprecationWarning` is raised when ``exec_module()`` is defined but " +"``create_module()`` is not." +msgstr "" + +msgid "" +"An :exc:`ImportError` is raised when ``exec_module()`` is defined but " +"``create_module()`` is not." +msgstr "" + +msgid "Use of ``load_module()`` will raise :exc:`ImportWarning`." +msgstr "" + +msgid "Submodules" +msgstr "" + +msgid "" +"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 " +"submodule. Let's say you have the following directory structure::" +msgstr "" + +msgid "and ``spam/__init__.py`` has the following line in it::" +msgstr "" + +msgid "" +"then executing the following puts name bindings for ``foo`` and ``Foo`` in " +"the ``spam`` module::" +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." +msgstr "" + +msgid "Module spec" +msgstr "" + +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-" +"related information on a per-module basis." +msgstr "" + +msgid "" +"Using a spec during import allows state to be transferred between import " +"system components, e.g. between the finder that creates the module spec and " +"the loader that executes it. Most importantly, it allows the import " +"machinery to perform the boilerplate operations of loading, whereas without " +"a module spec the loader had that responsibility." +msgstr "" + +msgid "" +"The module's spec is exposed as the ``__spec__`` attribute on a module " +"object. See :class:`~importlib.machinery.ModuleSpec` for details on the " +"contents of the module spec." +msgstr "" + +msgid "Import-related module attributes" +msgstr "" + +msgid "" +"The import machinery fills in these attributes on each module object during " +"loading, based on the module's spec, before the loader executes the module." +msgstr "" + +msgid "" +"The ``__name__`` attribute must be set to the fully qualified name of the " +"module. This name is used to uniquely identify the module in the import " +"system." +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." +msgstr "" + +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 " +"name. See :pep:`366` for further details." +msgstr "" + +msgid "" +"This attribute is used instead of ``__name__`` to calculate explicit " +"relative imports for main modules, as defined in :pep:`366`. It is expected " +"to have the same value as ``__spec__.parent``." +msgstr "" + +msgid "" +"The value of ``__package__`` is expected to be the same as " +"``__spec__.parent``." +msgstr "" + +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 exception is ``__main__``, where ``__spec__`` is :ref:`set to None in " +"some cases `." +msgstr "" + +msgid "" +"When ``__package__`` is not defined, ``__spec__.parent`` is used as a " +"fallback." +msgstr "" + +msgid "" +"``__spec__.parent`` is used as a fallback when ``__package__`` is not " +"defined." +msgstr "" + +msgid "" +"If the module is a package (either regular or namespace), the module " +"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 `." +msgstr "" + +msgid "Non-package modules should not have a ``__path__`` attribute." +msgstr "" + +msgid "" +"``__file__`` is optional. If set, this attribute's value must be a string. " +"The import system may opt to leave ``__file__`` unset if it has no semantic " +"meaning (e.g. a module loaded from a database)." +msgstr "" + +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-" +"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`)." +msgstr "" + +msgid "" +"It is also appropriate to set ``__cached__`` when ``__file__`` is not set. " +"However, that scenario is quite atypical. Ultimately, the loader is what " +"makes use of ``__file__`` and/or ``__cached__``. So if a loader can load " +"from a cached module but otherwise does not load from a file, that atypical " +"scenario may be appropriate." +msgstr "" + +msgid "module.__path__" +msgstr "" + +msgid "" +"By definition, if a module has a ``__path__`` attribute, it is a package." +msgstr "" + +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`." +msgstr "" + +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 " +"package's ``__path__``." +msgstr "" + +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 " +"``__path__`` manipulation code; the import machinery automatically sets " +"``__path__`` correctly for the namespace package." +msgstr "" + +msgid "Module reprs" +msgstr "" + +msgid "" +"By default, all modules have a usable repr, however depending on the " +"attributes set above, and in the module's spec, you can more explicitly " +"control the repr of module objects." +msgstr "" + +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." +msgstr "" + +msgid "Here are the exact rules used:" +msgstr "" + +msgid "" +"If the module has a ``__spec__`` attribute, the information in the spec is " +"used to generate the repr. The \"name\", \"loader\", \"origin\", and " +"\"has_location\" attributes are consulted." +msgstr "" + +msgid "" +"If the module has a ``__file__`` attribute, this is used as part of the " +"module's repr." +msgstr "" + +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." +msgstr "" + +msgid "Otherwise, just use the module's ``__name__`` in the repr." +msgstr "" + +msgid "" +"Use of :meth:`loader.module_repr() ` has " +"been deprecated and the module spec is now used by the import machinery to " +"generate a module repr." +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." +msgstr "" + +msgid "" +"Calling :meth:`~importlib.abc.Loader.module_repr` now occurs after trying to " +"use a module's ``__spec__`` attribute but before falling back on " +"``__file__``. Use of :meth:`~importlib.abc.Loader.module_repr` is slated to " +"stop in Python 3.12." +msgstr "" + +msgid "Cached bytecode invalidation" +msgstr "" + +msgid "" +"Before Python loads cached bytecode from a ``.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 the " +"source's metadata." +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." +msgstr "" + +msgid "" +"Added hash-based ``.pyc`` files. Previously, Python only supported timestamp-" +"based invalidation of bytecode caches." +msgstr "" + +msgid "The Path Based Finder" +msgstr "" + +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." +msgstr "" + +msgid "" +"The path based finder itself doesn't know how to import anything. Instead, " +"it traverses the individual path entries, associating each of them with a " +"path entry finder that knows how to handle that particular kind of path." +msgstr "" + +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." +msgstr "" + +msgid "" +"Path entries need not be limited to file system locations. They can refer " +"to URLs, database queries, or any other location that can be specified as a " +"string." +msgstr "" + +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 " +"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." +msgstr "" + +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, " +"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 " +"process, as keyed off the :data:`sys.meta_path` traversal." +msgstr "" + +msgid "" +"By contrast, path entry finders are in a sense an implementation detail of " +"the path based finder, and in fact, if the path based finder were to be " +"removed from :data:`sys.meta_path`, none of the path entry finder semantics " +"would be invoked." +msgstr "" + +msgid "Path entry finders" +msgstr "" + +msgid "" +"The :term:`path based finder` is responsible for finding and loading Python " +"modules and packages whose location is specified with a string :term:`path " +"entry`. Most path entries name locations in the file system, but they need " +"not be limited to this." +msgstr "" + +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`." +msgstr "" + +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 ``__path__`` attributes on package " +"objects are also used. These provide additional ways that the import " +"machinery can be customized." +msgstr "" + +msgid "" +":data:`sys.path` contains a list of strings providing search locations for " +"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 " +"`." +msgstr "" + +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." +msgstr "" + +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]_." +msgstr "" + +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` " +"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 " +"decode the argument, it should raise :exc:`ImportError`." +msgstr "" + +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." +msgstr "" + +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 " +"used to ask the finder for a module spec, which is then used when loading " +"the module." +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 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." +msgstr "" + +msgid "Path entry finder protocol" +msgstr "" + +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." +msgstr "" + +msgid "" +":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 "" + +msgid "" +"To indicate to the import machinery that the spec represents a " +"namespace :term:`portion`, the path entry finder sets " +"\"submodule_search_locations\" to a list containing the portion." +msgstr "" + +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." +msgstr "" + +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 " +"path entry finder, the legacy methods are ignored." +msgstr "" + +msgid "" +":meth:`~importlib.abc.PathEntryFinder.find_loader` takes one argument, the " +"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`." +msgstr "" + +msgid "" +"For backwards compatibility with other implementations of the import " +"protocol, many path entry finders also support the same, traditional " +"``find_module()`` method that meta path finders support. However path entry " +"finder ``find_module()`` methods are never called with a ``path`` argument " +"(they are expected to record the appropriate path information from the " +"initial call to the path hook)." +msgstr "" + +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 " +"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()``." +msgstr "" + +msgid "" +"Calls to :meth:`~importlib.abc.PathEntryFinder.find_module` " +"and :meth:`~importlib.abc.PathEntryFinder.find_loader` by the import system " +"will raise :exc:`ImportWarning`." +msgstr "" + +msgid "Replacing the standard import system" +msgstr "" + +msgid "" +"The most reliable mechanism for replacing the entire import system is to " +"delete the default contents of :data:`sys.meta_path`, replacing them " +"entirely with a custom meta path hook." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"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 "" + +msgid "Package Relative Imports" +msgstr "" + +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::" +msgstr "" + +msgid "" +"In either ``subpackage1/moduleX.py`` or ``subpackage1/__init__.py``, the " +"following are valid relative imports::" +msgstr "" + +msgid "" +"Absolute imports may use either the ``import <>`` or ``from <> import <>`` " +"syntax, but relative imports may only use the second form; the reason for " +"this is that::" +msgstr "" + +msgid "" +"should expose ``XXX.YYY.ZZZ`` as a usable expression, but .moduleY is not a " +"valid expression." +msgstr "" + +msgid "Special considerations for __main__" +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 " +"initialized depends on the flags and other options with which the " +"interpreter is invoked." +msgstr "" + +msgid "__main__.__spec__" +msgstr "__main__.__spec__" + +msgid "" +"Depending on how :mod:`__main__` is initialized, ``__main__.__spec__`` gets " +"set appropriately or to ``None``." +msgstr "" + +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 " +"directory, zipfile or other :data:`sys.path` entry." +msgstr "" + +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:" +msgstr "" + +msgid "interactive prompt" +msgstr "" + +msgid ":option:`-c` option" +msgstr "" + +msgid "running from stdin" +msgstr "" + +msgid "running directly from a source or bytecode file" +msgstr "" + +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__`." +msgstr "" + +msgid "" +"Note also that even when ``__main__`` corresponds with an importable module " +"and ``__main__.__spec__`` is set accordingly, they're still considered " +"*distinct* modules. This is due to the fact that blocks guarded by ``if " +"__name__ == \"__main__\":`` checks only execute when the module is used to " +"populate the ``__main__`` namespace, and not during normal import." +msgstr "" + +msgid "References" +msgstr "" + +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." +msgstr "" + +msgid "" +"The original specification for :data:`sys.meta_path` was :pep:`302`, with " +"subsequent extension in :pep:`420`." +msgstr "" + +msgid "" +":pep:`420` introduced :term:`namespace packages ` for " +"Python 3.3. :pep:`420` also introduced the :meth:`find_loader` protocol as " +"an alternative to :meth:`find_module`." +msgstr "" + +msgid "" +":pep:`366` describes the addition of the ``__package__`` attribute for " +"explicit relative imports in main modules." +msgstr "" + +msgid "" +":pep:`328` introduced absolute and explicit relative imports and initially " +"proposed ``__name__`` for semantics :pep:`366` would eventually specify for " +"``__package__``." +msgstr "" + +msgid ":pep:`338` defines executing modules as scripts." +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 " +"finders and loaders." +msgstr "" + +msgid "Footnotes" +msgstr "Przypisy" + +msgid "See :class:`types.ModuleType`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" diff --git a/reference/index.po b/reference/index.po index 51b9055535..24814628cd 100644 --- a/reference/index.po +++ b/reference/index.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "The Python Language Reference" msgstr "Dokumentacja języka Python" diff --git a/reference/introduction.po b/reference/introduction.po index 106f4378e8..23281ff4f0 100644 --- a/reference/introduction.po +++ b/reference/introduction.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Introduction" msgstr "Wprowadzenie" @@ -76,7 +76,7 @@ msgid "Known implementations include:" msgstr "" msgid "CPython" -msgstr "" +msgstr "CPython" msgid "" "This is the original and most-maintained implementation of Python, written " @@ -90,8 +90,8 @@ 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 "" msgid "Python for .NET" @@ -153,8 +153,8 @@ msgid "" msgstr "" 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 " +"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 " diff --git a/reference/lexical_analysis.po b/reference/lexical_analysis.po index ac3df54cfc..24359ea2f4 100644 --- a/reference/lexical_analysis.po +++ b/reference/lexical_analysis.po @@ -1,27 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Lexical analysis" msgstr "" @@ -34,9 +35,9 @@ msgstr "" 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 "" msgid "Line structure" @@ -282,8 +283,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 "" msgid "Identifiers are unlimited in length. Case is significant." @@ -323,8 +324,8 @@ msgid "*Pc* - connector punctuations" msgstr "" msgid "" -"*Other_ID_Start* - explicit list of characters in `PropList.txt `_ to support backwards " +"*Other_ID_Start* - explicit list of characters in `PropList.txt `_ to support backwards " "compatibility" msgstr "" @@ -338,7 +339,7 @@ msgstr "" msgid "" "A non-normative HTML file listing all valid identifier characters for " -"Unicode 14.0.0 can be found at https://www.unicode.org/Public/14.0.0/ucd/" +"Unicode 4.1 can be found at https://www.unicode.org/Public/13.0.0/ucd/" "DerivedCoreProperties.txt" msgstr "" @@ -378,29 +379,29 @@ msgid "" msgstr "" msgid "``_*``" -msgstr "" +msgstr "``_*``" msgid "Not imported by ``from module import *``." msgstr "" msgid "``_``" -msgstr "" +msgstr "``_``" msgid "" -"In a ``case`` pattern within a :keyword:`match` statement, ``_`` is a :ref:" -"`soft keyword ` that denotes a :ref:`wildcard `." +"In a ``case`` pattern within a :keyword:`match` statement, ``_`` is " +"a :ref:`soft keyword ` that denotes a :ref:`wildcard " +"`." msgstr "" msgid "" "Separately, the interactive interpreter makes the result of the last " -"evaluation available in the variable ``_``. (It is stored in the :mod:" -"`builtins` module, alongside built-in functions like ``print``.)" +"evaluation available in the variable ``_``. (It is stored in " +"the :mod:`builtins` module, alongside built-in functions like ``print``.)" msgstr "" msgid "" -"Elsewhere, ``_`` is a regular identifier. It is often used to name \"special" -"\" items, but it is not special to Python itself." +"Elsewhere, ``_`` is a regular identifier. It is often used to name " +"\"special\" items, but it is not special to Python itself." msgstr "" msgid "" @@ -413,7 +414,7 @@ msgid "It is also commonly used for unused variables." msgstr "" msgid "``__*__``" -msgstr "" +msgstr "``__*__``" msgid "" "System-defined names, informally known as \"dunder\" names. These names are " @@ -425,7 +426,7 @@ msgid "" msgstr "" msgid "``__*``" -msgstr "" +msgstr "``__*``" msgid "" "Class-private names. Names in this category, when used within the context " @@ -451,17 +452,20 @@ msgid "" "whitespace is not allowed between the :token:`~python-grammar:stringprefix` " "or :token:`~python-grammar: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`." +"no encoding declaration is given in the source file; see " +"section :ref:`encodings`." msgstr "" msgid "" "In plain English: Both types of literals can be enclosed in matching single " "quotes (``'``) or double quotes (``\"``). They can also be enclosed in " "matching groups of three single or double quotes (these are generally " -"referred to as *triple-quoted strings*). The backslash (``\\``) character " -"is used to escape characters that otherwise have a special meaning, such as " -"newline, backslash itself, or the quote character." +"referred to as *triple-quoted strings*). The backslash (``\\``) character is " +"used to give special meaning to otherwise ordinary characters like ``n``, " +"which means 'newline' when escaped (``\\n``). It can also be used to escape " +"characters that otherwise have a special meaning, such as newline, backslash " +"itself, or the quote character. See :ref:`escape sequences ` below for examples." msgstr "" msgid "" @@ -487,8 +491,8 @@ msgstr "" 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 "" msgid "" @@ -530,61 +534,61 @@ msgid "\\(1)" msgstr "\\(1)" msgid "``\\\\``" -msgstr "" +msgstr "``\\\\``" msgid "Backslash (``\\``)" msgstr "" msgid "``\\'``" -msgstr "" +msgstr "``\\'``" msgid "Single quote (``'``)" msgstr "" msgid "``\\\"``" -msgstr "" +msgstr "``\\\"``" msgid "Double quote (``\"``)" msgstr "" msgid "``\\a``" -msgstr "" +msgstr "``\\a``" msgid "ASCII Bell (BEL)" msgstr "" msgid "``\\b``" -msgstr "" +msgstr "``\\b``" msgid "ASCII Backspace (BS)" msgstr "" msgid "``\\f``" -msgstr "" +msgstr "``\\f``" msgid "ASCII Formfeed (FF)" msgstr "" msgid "``\\n``" -msgstr "" +msgstr "``\\n``" msgid "ASCII Linefeed (LF)" msgstr "" msgid "``\\r``" -msgstr "" +msgstr "``\\r``" msgid "ASCII Carriage Return (CR)" msgstr "" msgid "``\\t``" -msgstr "" +msgstr "``\\t``" msgid "ASCII Horizontal Tab (TAB)" msgstr "" msgid "``\\v``" -msgstr "" +msgstr "``\\v``" msgid "ASCII Vertical Tab (VT)" msgstr "" @@ -626,7 +630,7 @@ msgid "Character with 16-bit hex value *xxxx*" msgstr "" msgid "\\(6)" -msgstr "" +msgstr "\\(6)" msgid "``\\Uxxxxxxxx``" msgstr "" @@ -635,7 +639,7 @@ msgid "Character with 32-bit hex value *xxxxxxxx*" msgstr "" msgid "\\(7)" -msgstr "" +msgstr "\\(7)" msgid "Notes:" msgstr "Uwagi:" @@ -652,12 +656,6 @@ msgstr "" msgid "As in Standard C, up to three octal digits are accepted." msgstr "" -msgid "" -"Octal escapes with value larger than ``0o377`` produce a :exc:" -"`DeprecationWarning`. In a future Python version they will be a :exc:" -"`SyntaxWarning` and eventually a :exc:`SyntaxError`." -msgstr "" - msgid "Unlike in Standard C, exactly two hex digits are required." msgstr "" @@ -689,8 +687,8 @@ msgstr "" msgid "" "Unrecognized escape sequences produce a :exc:`DeprecationWarning`. In a " -"future Python version they will be a :exc:`SyntaxWarning` and eventually a :" -"exc:`SyntaxError`." +"future Python version they will be a :exc:`SyntaxWarning` and eventually " +"a :exc:`SyntaxError`." msgstr "" msgid "" @@ -727,7 +725,7 @@ msgid "" msgstr "" msgid "Formatted string literals" -msgstr "" +msgstr "f-stringi" msgid "" "A :dfn:`formatted string literal` or :dfn:`f-string` is a string literal " diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index fb3995262e..784a382d8d 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Simple statements" msgstr "" @@ -175,9 +175,9 @@ msgid "" "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 "" msgid "" @@ -288,17 +288,17 @@ msgid "" msgstr "" msgid "" -"The difference from normal :ref:`assignment` is that only single target is " +"The difference from normal :ref:`assignment` is that only a single target is " "allowed." msgstr "" 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 " -"(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." +"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." msgstr "" msgid "" @@ -315,8 +315,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 "" msgid ":pep:`526` - Syntax for Variable Annotations" @@ -338,8 +338,8 @@ msgid "" msgstr "" msgid "" -"Now annotated assignments allow same expressions in the right hand side as " -"the regular assignments. Previously, some expressions (like un-parenthesized " +"Now annotated assignments allow the same expressions in the right hand side " +"as regular assignments. Previously, some expressions (like un-parenthesized " "tuple expressions) caused a syntax error." msgstr "" @@ -399,8 +399,8 @@ msgstr "" 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." +"statement in the same code block. If the name is unbound, " +"a :exc:`NameError` exception will be raised." msgstr "" msgid "" @@ -442,15 +442,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 "" 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 "" msgid "The :keyword:`!yield` statement" @@ -467,15 +468,15 @@ msgid "are equivalent to the yield expression statements ::" msgstr "" 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 "" 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 "" msgid "The :keyword:`!raise` statement" @@ -490,14 +491,14 @@ msgstr "" 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 "" 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 "" msgid "" @@ -522,8 +523,8 @@ msgstr "" msgid "" "A similar mechanism works implicitly if a new exception is raised when an " -"exception is already being handled. An exception may be handled when an :" -"keyword:`except` or :keyword:`finally` clause, or a :keyword:`with` " +"exception is already being handled. An exception may be handled when " +"an :keyword:`except` or :keyword:`finally` clause, or a :keyword:`with` " "statement, is used. The previous exception is then attached as the new " "exception's :attr:`__context__` attribute::" msgstr "" @@ -534,9 +535,9 @@ msgid "" msgstr "" 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 "" msgid ":const:`None` is now permitted as ``Y`` in ``raise X from Y``." @@ -547,19 +548,12 @@ msgid "" "exception context." msgstr "" -msgid "" -"If the traceback of the active exception is modified in an :keyword:`except` " -"clause, a subsequent ``raise`` statement re-raises the exception with the " -"modified traceback. Previously, the exception was re-raised with the " -"traceback it had when it was caught." -msgstr "" - msgid "The :keyword:`!break` statement" msgstr "" 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 "" @@ -607,8 +601,8 @@ msgid "find a module, loading and initializing it if necessary" msgstr "" 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 "" msgid "" @@ -618,7 +612,7 @@ msgid "" msgstr "" msgid "" -"The details of the first step, finding and loading modules are described in " +"The details of the first step, finding and loading modules, are described in " "greater detail in the section on the :ref:`import system `, " "which also describes the various types of packages and modules that can be " "imported, as well as all the hooks that can be used to customize the import " @@ -633,11 +627,11 @@ msgid "" msgstr "" 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 "" -"Jeżeli po nazwie modułu następuje :keyword:`!as`, to nazwa następująca po :" -"keyword:`!as` jest powiązana bezpośrednio z importowanym modułem." +"Jeżeli po nazwie modułu następuje :keyword:`!as`, to nazwa następująca " +"po :keyword:`!as` jest powiązana bezpośrednio z importowanym modułem." msgid "" "If no other name is specified, and the module being imported is a top level " @@ -681,7 +675,7 @@ msgid "" msgstr "" msgid "Examples::" -msgstr "" +msgstr "Przykłady::" msgid "" "If the list of identifiers is replaced by a star (``'*'``), all public names " @@ -730,8 +724,8 @@ msgstr "" msgid "" "Raises an :ref:`auditing event ` ``import`` with arguments " -"``module``, ``filename``, ``sys.path``, ``sys.meta_path``, ``sys." -"path_hooks``." +"``module``, ``filename``, ``sys.path``, ``sys.meta_path``, " +"``sys.path_hooks``." msgstr "" msgid "Future statements" @@ -816,11 +810,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -873,8 +867,8 @@ msgid "" "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." +"containing the function call. The same applies to the :func:`eval` " +"and :func:`compile` functions." msgstr "" msgid "The :keyword:`!nonlocal` statement" @@ -889,8 +883,8 @@ msgid "" msgstr "" 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/sphinx.po b/sphinx.po index 84df51da83..a23c3a0e84 100644 --- a/sphinx.po +++ b/sphinx.po @@ -1,28 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 00:47+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "This Page" msgstr "Ta strona" @@ -39,10 +39,19 @@ msgstr "Szczegół implementacyjny CPythona:" msgid "" "Deprecated since version {deprecated}, will be removed in version {removed}" msgstr "" -"Zdezaprobowane w wersji {deprecated}, zostanie usunięte w wersji {removed}" +"Wycofane z użycia w wersji {deprecated}, zostanie usunięte w wersji {removed}" msgid "Deprecated since version {deprecated}, removed in version {removed}" -msgstr "Zdezaprobowane w wersji {deprecated}, usunięte w wersji {removed}" +msgstr "Wycofane z użycia w wersji {deprecated}, usunięte w wersji {removed}" + +msgid "Return value: Always NULL." +msgstr "Wartość zwracana: zawsze NULL." + +msgid "Return value: New reference." +msgstr "Wartość zwracana: nowa referencja." + +msgid "Return value: Borrowed reference." +msgstr "Wartość zwracana: pożyczona referencja." msgid "in development" msgstr "w rozwoju" diff --git a/tutorial/appendix.po b/tutorial/appendix.po index 59c98f9175..f07ef857b1 100644 --- a/tutorial/appendix.po +++ b/tutorial/appendix.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Appendix" msgstr "Dodatek" @@ -37,8 +36,8 @@ 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 " +"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 " @@ -47,20 +46,20 @@ msgstr "" "Gdy wystąpi błąd, interpreter wyświetla komunikat błędu i ślad stosu. W " "trybie interaktywnym zwraca je do wiersza polecenia; jeżeli wejście pochodzi " "z pliku, na wyjściu generowany jest kod wyjścia różny od zera po " -"wyświetleniu śladu stosu. (Błędy przechwycone przez słowo kluczowe :keyword:" -"`except` w poleceniu :keyword:`try` nie są błędami w tym kontekście). " -"Niektóre błędy są bezwarunkowo krytyczne i wywołują wyjście z programu z " -"kodem wyjścia różnym od zera; dotyczy to wewnętrznych niezgodności i - w " -"niektórych przypadkach - przepełnienia pamięci. Wszystkie komunikaty błędów " -"są wyświetlane na standardowym wyjściu błędów; zazwyczaj jest to normalne " -"wyjście z wykonywania komend." +"wyświetleniu śladu stosu. (Błędy przechwycone przez słowo " +"kluczowe :keyword:`except` w poleceniu :keyword:`try` nie są błędami w tym " +"kontekście). Niektóre błędy są bezwarunkowo krytyczne i wywołują wyjście z " +"programu z kodem wyjścia różnym od zera; dotyczy to wewnętrznych " +"niezgodności i - w niektórych przypadkach - przepełnienia pamięci. Wszystkie " +"komunikaty błędów są wyświetlane na standardowym wyjściu błędów; zazwyczaj " +"jest to normalne wyjście z wykonywania komend." 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." +"the :exc:`KeyboardInterrupt` exception, which may be handled by " +"a :keyword:`try` statement." msgstr "" "Wpisanie znaku przerwania (zazwyczaj :kbd:`Control-C` lub :kbd:`Delete`) w " "pierwszorzędny lub drugorzędny prompt anuluje tryb wpisywania i wraca do " @@ -94,11 +93,11 @@ msgstr "" "krzyżyka, ``'#'``, jest używany do rozpoczęcia komentarza w Pythonie." 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 "" -"Skryptowi można nadać tryb wykonywalny, lub permission, przy użyciu komendy :" -"program:`chmod`." +"Skryptowi można nadać tryb wykonywalny, lub permission, przy użyciu " +"komendy :program:`chmod`." msgid "" "On Windows systems, there is no notion of an \"executable mode\". The " @@ -125,9 +124,10 @@ msgid "" msgstr "" "Gdy używasz Pythona w trybie interaktywnym, często wygodne jest wykonywać " "jakieś standardowe komendy za każdym razem, gdy uruchamia się interpreter. " -"Możesz to zrobić ustawiając zmienną środowiskową o nazwie :envvar:" -"`PYTHONSTARTUP` na nazwę pliku zawierającego twoje komendy uruchomieniowe. " -"Jest to podobne do funkcji :file:`.profile` shellów uniksowych." +"Możesz to zrobić ustawiając zmienną środowiskową o " +"nazwie :envvar:`PYTHONSTARTUP` na nazwę pliku zawierającego twoje komendy " +"uruchomieniowe. Jest to podobne do funkcji :file:`.profile` shellów " +"uniksowych." msgid "" "This file is only read in interactive sessions, not when Python reads " @@ -148,18 +148,23 @@ msgstr "" 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 " +"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 "" +"Jeśli chcesz odczytać dodatkowy plik rozruchowy z bieżącego katalogu, możesz " +"zaprogramować to w globalnym pliku rozruchowym używając kodu takiego jak " +"``if os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())``. " +"Jeśli chcesz użyć pliku rozruchowego w skrypcie, musisz to zrobić jawnie w " +"skrypcie::" msgid "The Customization Modules" -msgstr "" +msgstr "Moduły dostosowywania" 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 "" @@ -170,12 +175,16 @@ msgid "" "unless it is started with the :option:`-s` option to disable the automatic " "import." msgstr "" +"Teraz możesz stworzyć plik o nazwie :file:`usercustomize.py` w tym katalogu " +"i umieścić w nim co tylko chcesz. Będzie to miało wpływ na każde wywołanie " +"Pythona, chyba że zostanie on uruchomiony z opcją :option:`-s`, aby wyłączyć " +"automatyczny import." 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 "" msgid "Footnotes" diff --git a/tutorial/appetite.po b/tutorial/appetite.po index 425ca6378d..cee143823a 100644 --- a/tutorial/appetite.po +++ b/tutorial/appetite.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Whetting Your Appetite" msgstr "Na zaostrzenie apetytu" diff --git a/tutorial/classes.po b/tutorial/classes.po index a5ea55b476..6c5e1a65f1 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 -# Tomasz Rodzen , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:49+0000\n" -"Last-Translator: Tomasz Rodzen , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Classes" msgstr "Klasy" @@ -35,11 +33,11 @@ msgid "" "attributes attached to it for maintaining its state. Class instances can " "also have methods (defined by its class) for modifying its state." msgstr "" -"Klasy dostarczają sposoby powiązania informacji i funkcjonalności. " -"Stworzenie nowej klasy, tworzy nowy typ obiektu, pozwalający na tworzenie " -"nowych instancji tego typu. Każda instancja klasy może mieć atrybuty " -"przypisane w celu utrzymania jej stanu. Instancje klas mogą również posiadać " -"metody (zdefiniowane przez jej klasę) w celu modyfikacje ich stanu." +"Klasy umożliwiają łączenie danych i funkcjonalności. Tworzenie nowej klasy, " +"tworzy nowy *typ* obiektu, umożliwiając tworzenie nowych *instancji* tego " +"typu. Do każdej instancji klasy można przypisać atrybuty służące do " +"utrzymywania jej stanu. Instancje klas mogą również posiadać metody " +"(zdefiniowane przez klasę) umożliwiające modyfikację ich stanu." msgid "" "Compared with other programming languages, Python's class mechanism adds " @@ -55,14 +53,14 @@ msgid "" msgstr "" "W porównaniu do innych języków programowania, w Pythonie, mechanizm " "dodawania nowych klas wymaga niewielkiej ilości nowej składni i semantyki. " -"Jest to połączenie mechanizmu klas, które można znaleźć w C++ i Modula-3. " -"Klasy w Pythonie dostarczają wszystkie standardowe cechy Programowania " -"Obiektowego: mechanizm dziedziczenia klas pozwala na tworzenie wielu " -"bazowych klas, pochodne klasy mogą nadpisać każdą metodę klasy lub klas " -"bazowej i metoda może przywołać metody klas bazowych o tej samej nazwie. " -"Obiekty mogą zawierać dowolną ilość i rodzaj danych. Zarówno klasy jak i " -"moduły są częścią dynamicznej natury Python'a: są tworzone w trakcje " -"działania programu i mogą być modyfikowane później, po stworzeniu. " +"Jest to połączenie mechanizmu klas, które można znaleźć w C++ i Modula-3. " +"Klasy w Pythonie dostarczają wszystkie standardowe cechy programowania " +"obiektowego: mechanizm dziedziczenia klas pozwala na wiele klas bazowych, " +"klasy pochodne mogą nadpisać każdą metodę klasy lub klas bazowych i metoda " +"może wywołać metody klas bazowych o tej samej nazwie. Obiekty mogą zawierać " +"dowolną ilość i rodzaj danych. Zarówno klasy jak i moduły są częścią " +"dynamicznej natury Pythona: są tworzone w trakcie działania programu i mogą " +"być modyfikowane później, po stworzeniu." msgid "" "In C++ terminology, normally class members (including the data members) are " @@ -77,18 +75,18 @@ msgid "" "(arithmetic operators, subscripting etc.) can be redefined for class " "instances." msgstr "" -"Korzystając z terminologii C++, składniki klas (także pola)są *publiczne* (z " -"wyjątkiem zobacz :ref:`tut-private`), a wszystkie metody są *wirtualne*. " -"Podobnie jak w Moduli-3, nie ma skrótów pozwalających na odnoszenie się do " -"składników klas z ich metod: metoda jest deklarowana poprzez podanie wprost " -"jako pierwszego argumentu obiektu, który w czasie wywołania metody zostanie " -"jej przekazany niejawnie. Podobnie jak w Smalltalku, same klasy także są " -"obiektami. Dostarcza nam to wyrażeń semantycznych pozwalających na " -"importowanie i zmianę nazw klasy. Inaczej niż w C++ i Moduli-3 wbudowane " -"typy mogą stanowić klasy z których klasa użytkownika będzie dziedziczyć. " -"Podobnie jak w C++, większość wbudowanych operatorów ze specjalną składnią " -"(operatory arytmetyczne, indeksowanie) mogą być przedefiniowane przez " -"instancje klasy." +"Korzystając z terminologii C++, składniki klas (także pola) są *publiczne* " +"(z wyjątkiem zobacz poniżej :ref:`tut-private`), a wszystkie metody są " +"*wirtualne*. Podobnie jak w Moduli-3, nie ma skrótów pozwalających na " +"odnoszenie się do składników klas z ich metod: metoda jest deklarowana " +"poprzez podanie wprost jako pierwszego argumentu obiektu, który w czasie " +"wywołania metody zostanie jej przekazany niejawnie. Podobnie jak w " +"Smalltalku, same klasy także są obiektami. Dostarcza nam to wyrażeń " +"semantycznych pozwalających na importowanie i zmianę nazw klasy. Inaczej niż " +"w C++ i Moduli-3 wbudowane typy mogą stanowić klasy, z których klasa " +"użytkownika będzie dziedziczyć. Podobnie jak w C++, większość wbudowanych " +"operatorów ze specjalną składnią (operatory arytmetyczne, indeksowanie) może " +"być przedefiniowane przez instancje klasy." msgid "" "(Lacking universally accepted terminology to talk about classes, I will make " @@ -97,8 +95,8 @@ msgid "" "but I expect that few readers have heard of it.)" msgstr "" "(Z powodu braku ogólnie zaakceptowanej terminologii w kontekście klas, będę " -"używał terminów ze Samlltalk i C++. Użyłbym Modula-3 ponieważ semantyka " -"programowania obiektowego jest mu bliższa Pythonowi niż C++ ale zakładam, że " +"używał terminów ze Smalltalk i C++. Użyłbym Modula-3 ponieważ semantyka jego " +"programowania obiektowego jest bliższa Pythonowi niż C++ ale zakładam, że " "mniej czytelników o nim słyszało.)" msgid "A Word About Names and Objects" @@ -118,9 +116,22 @@ msgid "" "the caller will see the change --- this eliminates the need for two " "different argument passing mechanisms as in Pascal." msgstr "" +"Obiekty mają indywidualność, a wiele nazw (w wielu zakresach) może być " +"powiązanych z tym samym obiektem. Jest to znane jako aliasing w innych " +"językach. Zwykle nie jest to doceniane na pierwszy rzut oka w Pythonie i " +"można je bezpiecznie zignorować, gdy mamy do czynienia z niezmiennymi typami " +"podstawowymi (liczby, ciągi znaków, krotki). Jednak aliasing ma " +"prawdopodobnie zaskakujący wpływ na semantykę kodu Pythona, który obejmuje " +"zmienne obiekty, takie jak listy, słowniki i większość innych typów. Jest to " +"zwykle wykorzystywane z korzyścią dla programu, ponieważ aliasy pod pewnymi " +"względami zachowują się jak wskaźniki. Na przykład przekazanie obiektu jest " +"tanie, ponieważ implementacja przekazuje tylko wskaźnik; a jeśli funkcja " +"modyfikuje obiekt przekazany jako argument, wywołujący zobaczy zmianę --- " +"eliminuje to potrzebę stosowania dwóch różnych mechanizmów przekazywania " +"argumentów, jak w Pascalu." msgid "Python Scopes and Namespaces" -msgstr "" +msgstr "Zasięgi widoczności i przestrzenie nazw w Pythonie" msgid "" "Before introducing classes, I first have to tell you something about " @@ -129,9 +140,13 @@ msgid "" "understand what's going on. Incidentally, knowledge about this subject is " "useful for any advanced Python programmer." msgstr "" +"Przed wprowadzeniem klas, najpierw muszę powiedzieć ci coś o zasadach " +"zakresu Pythona. Definicje klas stosują kilka zgrabnych sztuczek z " +"przestrzeniami nazw, a żeby w pełni zrozumieć, co się dzieje, trzeba " +"wiedzieć, jak działają zakresy i przestrzenie nazw." msgid "Let's begin with some definitions." -msgstr "" +msgstr "Zacznijmy od kilku definicji." msgid "" "A *namespace* is a mapping from names to objects. Most namespaces are " @@ -146,6 +161,17 @@ msgid "" "may both define a function ``maximize`` without confusion --- users of the " "modules must prefix it with the module name." msgstr "" +"*Przestrzeń nazw* to odwzorowanie z nazw na obiekty. Większość przestrzeni " +"nazw jest obecnie implementowana jako słowniki Pythona, ale to zwykle nie " +"jest zauważalne w żaden sposób (z wyjątkiem wydajności), a to może się " +"zmienić w przyszłości. Przykładami przestrzeni nazw są: zbiór nazw " +"wbudowanych (zawierający funkcje np. :func:`abs` i nazwy wbudowanych " +"wyjątków); nazwy globalne w module; oraz nazwy lokalne w wywołaniu funkcji. " +"W pewnym sensie zbiór atrybutów obiektu również tworzy przestrzeń nazw. " +"Ważną rzeczą, którą należy wiedzieć o przestrzeniach nazw, jest to, że nie " +"ma absolutnie żadnych relacji między nazwami w różnych przestrzeniach nazw; " +"na przykład, dwa różne moduły mogą zdefiniować funkcję ``maximize`` bez " +"zamieszania --- użytkownicy modułów muszą poprzedzić go nazwą modułu." msgid "" "By the way, I use the word *attribute* for any name following a dot --- for " @@ -156,6 +182,13 @@ msgid "" "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 "" +"Nawiasem mówiąc, używam słowa *atrybut* dla każdej nazwy następującej po " +"kropce --- na przykład w wyrażeniu ``z.real``, ``real`` jest atrybutem " +"obiektu ``z``. Ściśle mówiąc, odniesienia do nazw w modułach są " +"odniesieniami atrybutowymi: w wyrażeniu ``modname.funcname``, ``modname`` " +"jest obiektem modułu, a ``funcname`` jest jego atrybutem. W tym przypadku " +"istnieje proste odwzorowanie między atrybutami modułu i nazwami globalnymi " +"zdefiniowanymi w module: mają tę samą przestrzeń nazw! [#]_" msgid "" "Attributes may be read-only or writable. In the latter case, assignment to " @@ -172,10 +205,20 @@ 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`.)" -msgstr "" +"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 "" +"Przestrzenie nazw są tworzone w różnych momentach i mają różny czas życia. " +"Przestrzeń nazw zawierająca nazwy wbudowane jest tworzona podczas " +"uruchamiania interpretera Pythona i nigdy nie jest usuwana. Globalna " +"przestrzeń nazw dla modułu jest tworzona, gdy wczytywana jest definicja " +"modułu; zwykle przestrzenie nazw modułu również trwają do zakończenia " +"działania interpretera. Instrukcje wykonywane przez wywołanie interpretera " +"najwyższego poziomu, zarówno odczytane z pliku skryptu, jak i interaktywnie, " +"są uważane za część modułu o nazwie :mod:`__main__`, więc mają swoją własną " +"globalną przestrzeń nazw. (Nazwy wbudowane w rzeczywistości również znajdują " +"się w module; nazwany jest on :mod:`builtins`)." msgid "" "The local namespace for a function is created when the function is called, " @@ -184,44 +227,70 @@ msgid "" "describe what actually happens.) Of course, recursive invocations each have " "their own local namespace." msgstr "" +"Lokalna przestrzeń nazw dla funkcji jest tworzona przy wywołaniu funkcji i " +"usuwana, gdy funkcja zwraca wynik lub rzuca wyjątek, którego nie obsługuje. " +"(Właściwie, zapominanie byłoby lepszym słowem na opisanie tego, co " +"faktycznie się dzieje). Oczywiście, każde wywołanie rekurencyjne ma swoją " +"własną lokalną przestrzeń nazw." 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." msgstr "" +"*Zakres* to tekstowy obszar programu Python, w którym przestrzeń nazw jest " +"bezpośrednio dostępna. „Bezpośrednio dostępna” oznacza tutaj, że " +"niekwalifikowane odwołanie do nazwy próbuje znaleźć ją w przestrzeni nazw." msgid "" "Although scopes are determined statically, they are used dynamically. At any " "time during execution, there are 3 or 4 nested scopes whose namespaces are " "directly accessible:" msgstr "" +"Chociaż zakresy są określane statycznie, są używane dynamicznie. Cały czas w " +"trakcie wykonywania programu istnieją 3 lub 4 zagnieżdżone zakresy, których " +"przestrzenie nazw są bezpośrednio dostępne:" msgid "the innermost scope, which is searched first, contains the local names" msgstr "" +"najbardziej wewnętrzny zakres, który jest przeszukiwany jako pierwszy, " +"zawiera nazwy lokalne" msgid "" "the scopes of any enclosing functions, which are searched starting with the " -"nearest enclosing scope, contains non-local, but also non-global names" +"nearest enclosing scope, contain non-local, but also non-global names" msgstr "" +"zakresy wszystkich otaczających funkcji, które są przeszukiwane począwszy od " +"najbliższego otaczającego zakresu, zawierają nazwy nielokalne, ale także " +"nieglobalne" msgid "the next-to-last scope contains the current module's global names" -msgstr "" +msgstr "przedostatni zakres zawiera globalne nazwy bieżącego modułu" msgid "" "the outermost scope (searched last) is the namespace containing built-in " "names" msgstr "" +"najbardziej zewnętrznym zakresem (przeszukiwanym jako ostatni) jest " +"przestrzeń nazw zawierająca nazwy wbudowane" 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)." -msgstr "" +"directly to the next-to-last 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)." +msgstr "" +"Jeśli nazwa jest zadeklarowana jako globalna, wtedy wszystkie referencje i " +"przypisania przechodzą bezpośrednio do przedostatniego zakresu zawierającego " +"globalne nazwy modułu. Aby ponownie powiązać zmienne znajdujące się poza " +"najbardziej wewnętrznym zakresem, można użyć instrukcji :keyword:`nonlocal`; " +"jeśli nie są zadeklarowane jako nielokalne, zmienne te są tylko do odczytu " +"(próba zapisu do takiej zmiennej po prostu utworzy *nową* zmienną lokalną w " +"najbardziej wewnętrznym zakresie, pozostawiając identycznie nazwaną zmienną " +"zewnętrzną bez zmian)." msgid "" "Usually, the local scope references the local names of the (textually) " @@ -229,6 +298,10 @@ msgid "" "namespace as the global scope: the module's namespace. Class definitions " "place yet another namespace in the local scope." msgstr "" +"Zazwyczaj zakres lokalny odwołuje się do nazw lokalnych (tekstowo) bieżącej " +"funkcji. Poza funkcjami, zakres lokalny odwołuje się do tej samej " +"przestrzeni nazw, co zakres globalny: przestrzeni nazw modułu. Definicje " +"klas umieszczają jeszcze jedną przestrzeń nazw w zakresie lokalnym." msgid "" "It is important to realize that scopes are determined textually: the global " @@ -239,62 +312,94 @@ msgid "" "at \"compile\" time, so don't rely on dynamic name resolution! (In fact, " "local variables are already determined statically.)" msgstr "" - -msgid "" -"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 "" +"Ważne jest, aby zdać sobie sprawę, że zakresy są określane tekstowo: " +"globalny zakres funkcji zdefiniowany w module jest przestrzenią nazw tego " +"modułu, bez względu na to, skąd lub przez jaki alias funkcja jest " +"wywoływana. Z drugiej strony, rzeczywiste wyszukiwanie nazw odbywa się " +"dynamicznie, w czasie wykonywania --- jednak definicja języka ewoluuje w " +"kierunku statycznego rozpoznawania nazw, w czasie „kompilacji”, więc nie " +"należy polegać na dynamicznym rozpoznawaniu nazw! (W rzeczywistości zmienne " +"lokalne są już określane statycznie)." + +msgid "" +"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 "" +"Szczególnym dziwactwem Pythona jest to, że – jeśli nie działa " +"instrukcja :keyword:`global` lub :keyword:`nonlocal` – przypisanie do nazw " +"zawsze trafia do najbardziej wewnętrznego zakresu. Przypisania nie kopiują " +"danych – po prostu wiążą nazwy z obiektami. To samo dotyczy usuwania: " +"instrukcja ``del x`` usuwa wiązanie ``x`` z przestrzeni nazw, do której " +"odwołuje się zakres lokalny. W rzeczywistości wszystkie operacje, które " +"wprowadzają nowe nazwy, używają zakresu lokalnego: w szczególności " +"instrukcje :keyword:`import` i definicje funkcji wiążą nazwę modułu lub " +"funkcji w zakresie lokalnym." 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 "" +"Instrukcja :keyword:`global` może być użyta do wskazania, że określone " +"zmienne znajdują się w zakresie globalnym i powinny być tam ponownie " +"wiązane; instrukcja :keyword:`nonlocal` wskazuje, że określone zmienne " +"znajdują się w zakresie otaczającym i powinny być tam ponownie wiązane." msgid "Scopes and Namespaces Example" -msgstr "" +msgstr "Przykład zakresów i przestrzeni nazw" msgid "" "This is an example demonstrating how to reference the different scopes and " "namespaces, and how :keyword:`global` and :keyword:`nonlocal` affect " "variable binding::" msgstr "" +"Oto przykład pokazujący, jak odwoływać się do różnych zakresów i przestrzeni " +"nazw oraz jak :keyword:`global` i :keyword:`nonlocal` wpływają na wiązanie " +"zmiennych::" msgid "The output of the example code is:" -msgstr "" +msgstr "Wyjście przykładowego kodu to:" 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 "" +"Zauważ, że *lokalne* przypisanie (które jest domyślne) nie zmieniło wiązania " +"*spam* w *scope_test*. Przypisanie :keyword:`nonlocal` zmieniło wiązanie " +"*spam* w *scope_test*, a przypisanie :keyword:`global` zmieniło wiązanie na " +"poziomie modułu." 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 "" +"Można również zauważyć, że nie było wcześniejszego powiązania dla *spam* " +"przed przypisaniem :keyword:`global`." msgid "A First Look at Classes" -msgstr "" +msgstr "Pierwsze spojrzenie na klasy" msgid "" "Classes introduce a little bit of new syntax, three new object types, and " "some new semantics." msgstr "" +"Klasy wprowadzają trochę nowej składni, trzy nowe typy obiektów i trochę " +"nowej semantyki." msgid "Class Definition Syntax" -msgstr "" +msgstr "Składnia definicji klasy" msgid "The simplest form of class definition looks like this::" -msgstr "" +msgstr "Najprostsza forma definicji klasy wygląda następująco::" msgid "" "Class definitions, like function definitions (:keyword:`def` statements) " @@ -302,6 +407,10 @@ msgid "" "a class definition in a branch of an :keyword:`if` statement, or inside a " "function.)" msgstr "" +"Definicje klas, podobnie jak definicje funkcji (instrukcje :keyword:`def`), " +"muszą zostać wykonane, zanim będą miały jakikolwiek efekt. (Można sobie " +"wyobrazić umieszczenie definicji klasy w gałęzi instrukcji :keyword:`if` lub " +"wewnątrz funkcji.)" msgid "" "In practice, the statements inside a class definition will usually be " @@ -310,6 +419,11 @@ msgid "" "normally have a peculiar form of argument list, dictated by the calling " "conventions for methods --- again, this is explained later." msgstr "" +"W praktyce, instrukcje wewnątrz definicji klasy będą zwykle definicjami " +"funkcji, ale inne instrukcje są dozwolone, a czasem przydatne --- wrócimy do " +"tego później. Definicje funkcji wewnątrz klasy zwykle mają specyficzną formę " +"listy argumentów, podyktowaną konwencjami wywoływania metod --- ponownie, " +"zostanie to wyjaśnione później." msgid "" "When a class definition is entered, a new namespace is created, and used as " @@ -317,6 +431,10 @@ msgid "" "new namespace. In particular, function definitions bind the name of the new " "function here." msgstr "" +"Po wejściu w definicję klasy tworzona jest nowa przestrzeń nazw i używana " +"jako zakres lokalny --- a zatem wszystkie przypisania do zmiennych lokalnych " +"trafiają do tej nowej przestrzeni nazw. W szczególności, definicje funkcji " +"wiążą nazwę nowej funkcji w tej przestrzeni nazw." msgid "" "When a class definition is left normally (via the end), a *class object* is " @@ -324,17 +442,19 @@ msgid "" "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 "" msgid "Class Objects" -msgstr "" +msgstr "Obiekty klas" msgid "" "Class objects support two kinds of operations: attribute references and " "instantiation." msgstr "" +"Obiekty klas obsługują dwa rodzaje operacji: odniesienia do atrybutów i " +"tworzenie instancji." msgid "" "*Attribute references* use the standard syntax used for all attribute " @@ -342,6 +462,11 @@ msgid "" "that were in the class's namespace when the class object was created. So, " "if the class definition looked like this::" msgstr "" +"*Odniesienia do atrybutów* używają standardowej składni używanej dla " +"wszystkich odniesień do atrybutów w Pythonie: ``obj.name``. Prawidłowe " +"nazwy atrybutów to wszystkie nazwy, które znajdowały się w przestrzeni nazw " +"klasy, gdy obiekt klasy został utworzony. Tak więc, jeśli definicja klasy " +"wyglądała tak::" msgid "" "then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, " @@ -356,17 +481,22 @@ msgid "" "object is a parameterless function that returns a new instance of the class. " "For example (assuming the above class)::" msgstr "" +"*Instancjonowanie* klasy używa notacji funkcji. Wystarczy wyobrazić sobie, " +"że obiekt klasy jest bezparametrową funkcją, która zwraca nową instancję " +"klasy. Na przykład (zakładając powyższą klasę)::" msgid "" "creates a new *instance* of the class and assigns this object to the local " "variable ``x``." msgstr "" +"tworzy nową *instancję* klasy i przypisuje ten obiekt do zmiennej lokalnej " +"``x``." 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 "" msgid "" @@ -383,16 +513,19 @@ msgid "" msgstr "" msgid "Instance Objects" -msgstr "" +msgstr "Obiekty instancji" 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." msgstr "" +"Co możemy zrobić z obiektami instancji? Jedynymi operacjami rozumianymi " +"przez obiekty instancji są odniesienia do atrybutów. Istnieją dwa rodzaje " +"poprawnych nazw atrybutów: atrybuty danych i metody." msgid "" -"*data attributes* correspond to \"instance variables\" in Smalltalk, and to " +"*Data attributes* correspond to \"instance variables\" in Smalltalk, and to " "\"data members\" in C++. Data attributes need not be declared; like local " "variables, they spring into existence when they are first assigned to. For " "example, if ``x`` is the instance of :class:`MyClass` created above, the " @@ -418,12 +551,18 @@ msgid "" "not, since ``MyClass.i`` is not. But ``x.f`` is not the same thing as " "``MyClass.f`` --- it is a *method object*, not a function object." msgstr "" +"Prawidłowe nazwy metod obiektu instancji zależą od jego klasy. Z definicji " +"wszystkie atrybuty klasy, które są obiektami funkcji definiują odpowiednie " +"metody jej instancji. Tak więc w naszym przykładzie, ``x.f`` jest poprawnym " +"odwołaniem do metody, ponieważ ``MyClass.f`` jest funkcją, ale ``x.i`` nie " +"jest, ponieważ ``MyClass.i`` nie jest. Ale ``x.f`` nie jest tym samym co " +"``MyClass.f`` --- jest *obiektem metody*, a nie obiektem funkcji." msgid "Method Objects" -msgstr "" +msgstr "Obiekty metod" msgid "Usually, a method is called right after it is bound::" -msgstr "" +msgstr "Zazwyczaj metoda jest wywoływana zaraz po jej powiązaniu::" msgid "" "In the :class:`MyClass` example, this will return the string ``'hello " @@ -433,11 +572,11 @@ msgid "" msgstr "" msgid "will continue to print ``hello world`` until the end of time." -msgstr "" +msgstr "będzie drukować ``hello world`` do końca czasu." 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 " @@ -453,6 +592,13 @@ msgid "" "that is created by inserting the method's instance object before the first " "argument." msgstr "" +"Właściwie, być może zgadłeś odpowiedź: szczególną rzeczą w metodach jest to, " +"że obiekt instancji jest przekazywany jako pierwszy argument z funkcja. W " +"naszym przykładzie wywołanie ``x.f()`` jest dokładnie równoważne wywołaniu " +"``MyClass.f(x)``. Ogólnie rzecz biorąc, wywołanie metody z listą *n* " +"argument jest równoważne wywołaniu odpowiedniej funkcja z listą argument, " +"która jest tworzona przez wstawienie obiektu instancji metody przed " +"pierwszym argument." msgid "" "If you still don't understand how methods work, a look at the implementation " @@ -467,13 +613,16 @@ msgid "" msgstr "" msgid "Class and Instance Variables" -msgstr "" +msgstr "Zmienne klas i instancji" msgid "" "Generally speaking, instance variables are for data unique to each instance " "and class variables are for attributes and methods shared by all instances " "of the class::" msgstr "" +"Ogólnie rzecz biorąc, zmienne instancji są dla danych unikalnych dla każdej " +"instancji, a zmienne klasy są dla atrybutów i metod współdzielonych przez " +"wszystkie instancje klasy::" msgid "" "As discussed in :ref:`tut-object`, shared data can have possibly surprising " @@ -482,17 +631,25 @@ msgid "" "not be used as a class variable because just a single list would be shared " "by all *Dog* instances::" msgstr "" +"Jak omówiono w :ref:`tut-object`, współdzielone dane mogą mieć zaskakujące " +"efekty z udziałem :term:`mutable` obiektów takich jak listy i słownik. Na " +"przykład, lista *sztuczki* w poniższym kodzie nie powinna być używana jako " +"zmienna klasowa, ponieważ tylko jedna lista byłaby współdzielona przez " +"wszystkie instancje klasy *Dog*::" msgid "Correct design of the class should use an instance variable instead::" msgstr "" +"Prawidłowy projekt klasy powinien zamiast tego używać zmiennej instancji::" msgid "Random Remarks" -msgstr "" +msgstr "Uwagi losowe" msgid "" "If the same attribute name occurs in both an instance and in a class, then " "attribute lookup prioritizes the instance::" msgstr "" +"Jeśli ten sam atrybut występuje zarówno w instancji, jak i w klasie, wówczas " +"wyszukiwanie atrybut nadaje priorytet instancji::" msgid "" "Data attributes may be referenced by methods as well as by ordinary users " @@ -503,6 +660,14 @@ msgid "" "implementation details and control access to an object if necessary; this " "can be used by extensions to Python written in C.)" msgstr "" +"Do danych atrybut mogą odwoływać się zarówno metody, jak i zwykli " +"użytkownicy (\"klienci\") obiektu. Innymi słowy, klasy nie nadają się do " +"implementacji czysto abstrakcyjnych typów danych. W rzeczywistości nic w " +"Python nie umożliwia wymuszenia ukrywania danych --- wszystko opiera się na " +"konwencji. (Z drugiej strony, implementacja Python, napisana w C, może " +"całkowicie ukryć szczegóły implementacji i kontrolować dostęp do obiektu, " +"jeśli to konieczne; może to być wykorzystane przez rozszerzenia Python " +"napisane w C)." msgid "" "Clients should use data attributes with care --- clients may mess up " @@ -511,6 +676,12 @@ msgid "" "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 "" +"Klienci powinni używać danych atrybut z ostrożnością --- klienci mogą zepsuć " +"niezmienniki utrzymywane przez metody poprzez stemplowanie ich danych " +"atrybut. Należy pamiętać, że klienci mogą dodawać własne dane atrybut do " +"obiektu instancji bez wpływu na ważność metod, o ile unika się konfliktów " +"nazw --- ponownie, konwencja nazewnictwa może tutaj zaoszczędzić wiele " +"problemow." msgid "" "There is no shorthand for referencing data attributes (or other methods!) " @@ -518,6 +689,10 @@ msgid "" "methods: there is no chance of confusing local variables and instance " "variables when glancing through a method." msgstr "" +"Nie ma skrótu do odwoływania się do danych atrybut (lub innych metod!) z " +"poziomu metod. Uważam, że w rzeczywistości zwiększa to czytelność metod: " +"nie ma szans na pomylenie zmiennych lokalnych i zmiennych instancji podczas " +"przeglądania metody." msgid "" "Often, the first argument of a method is called ``self``. This is nothing " @@ -527,6 +702,12 @@ msgid "" "that a *class browser* program might be written that relies upon such a " "convention." msgstr "" +"Często pierwsza argument metody jest nazywana ``self``. Jest to nic więcej " +"niż konwencja: nazwa ``self`` nie ma absolutnie żadnego specjalnego " +"znaczenia dla Python. Należy jednak pamiętać, że nieprzestrzeganie tej " +"konwencji może sprawić, że kod będzie mniej czytelny dla innych programistów " +"Python, a także możliwe jest napisanie programu *przeglądarki klas*, który " +"opiera się na takiej konwencji." msgid "" "Any function object that is a class attribute defines a method for instances " @@ -534,11 +715,15 @@ msgid "" "textually enclosed in the class definition: assigning a function object to a " "local variable in the class is also ok. For example::" msgstr "" +"Każdy obiekt funkcja będący klasą atrybut definiuje metodę dla instancji tej " +"klasy. Nie jest konieczne, aby definicja funkcja była tekstowo zawarta w " +"definicja klasy: przypisanie obiektu funkcja do zmiennej lokalnej w klasie " +"jest również w porządku. Na przykład::" 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 " +"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 "" @@ -546,6 +731,8 @@ msgid "" "Methods may call other methods by using method attributes of the ``self`` " "argument::" msgstr "" +"Metody mogą wywoływać inne metody przy użyciu metody atrybut z ``self`` " +"argument ::" msgid "" "Methods may reference global names in the same way as ordinary functions. " @@ -558,20 +745,34 @@ msgid "" "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 "" +"Metody mogą odwoływać się do nazw globalnych w taki sam sposób jak zwykłe " +"funkcje. Zakres globalny powiązany z metodą to moduł zawierający jej " +"definicję. (Klasa nigdy nie jest używana jako zakres globalny.) Podczas gdy " +"rzadko można napotkać dobry powód do używania danych globalnych w metodzie, " +"istnieje wiele uzasadnionych zastosowań zakresu globalnego: po pierwsze, " +"funkcja i moduł importowane do zakresu globalnego mogą być używane przez " +"metody, a także funkcja i klasy w nim zdefiniowane. Zazwyczaj klasa " +"zawierająca metodę sama jest zdefiniowana w tym globalnym zakresie, a w " +"następnej sekcji znajdziemy kilka dobrych powodów, dla których metoda " +"chciałaby odwoływać się do własnej klasy." msgid "" "Each value is an object, and therefore has a *class* (also called its " "*type*). It is stored as ``object.__class__``." msgstr "" +"Każda wartość jest obiektem, a zatem ma *klasę* (zwaną również *typem*). " +"Jest ona przechowywana jako ``object.__class__``." msgid "Inheritance" -msgstr "" +msgstr "Dziedziczenie" msgid "" "Of course, a language feature would not be worthy of the name \"class\" " "without supporting inheritance. The syntax for a derived class definition " "looks like this::" msgstr "" +"Oczywiście funkcja językowa nie byłaby godna nazwy \"klasa\" bez obsługi " +"dziedziczenia. Składnia pochodnej definicja klasy wygląda tak::" msgid "" "The name :class:`BaseClassName` must be defined in a scope containing the " @@ -588,6 +789,12 @@ msgid "" "rule is applied recursively if the base class itself is derived from some " "other class." msgstr "" +"Wykonanie pochodnej definicja klasy przebiega tak samo, jak w przypadku " +"klasa bazowa. Gdy konstruowany jest obiekt klasy, zapamiętywany jest klasa " +"bazowa. Jest to wykorzystywane do rozwiązywania referencji atrybut: jeśli " +"żądany atrybut nie zostanie znaleziony w klasie, wyszukiwanie jest " +"kontynuowane w klasie bazowej. Ta reguła jest stosowana rekurencyjnie, jeśli " +"sama klasa bazowa jest pochodną innej klasy." msgid "" "There's nothing special about instantiation of derived classes: " @@ -596,6 +803,11 @@ msgid "" "searched, descending down the chain of base classes if necessary, and the " "method reference is valid if this yields a function object." msgstr "" +"Nie ma nic specjalnego w instancjonowaniu klas pochodnych: " +"``DerivedClassName()`` tworzy nową instancję klasy. Odniesienia do metod są " +"rozwiązywane w następujący sposób: odpowiednia klasa atrybut jest " +"przeszukiwana, w razie potrzeby schodząc w dół łańcucha klas bazowych, a " +"odniesienie do metody jest ważne, jeśli daje to obiekt funkcja." msgid "" "Derived classes may override methods of their base classes. Because methods " @@ -604,24 +816,39 @@ msgid "" "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 "" +"Klasy pochodne mogą nadpisywać metody swoich klas bazowych. Ponieważ metody " +"nie mają specjalnych przywilejów podczas wywoływania innych metod tego " +"samego obiektu, metoda klasa bazowa, która wywołuje inną metodę zdefiniowaną " +"w tym samym klasa bazowa może skończyć się wywołaniem metody klasy " +"pochodnej, która ją nadpisuje. (Dla programistów C++: wszystkie metody w " +"Python są efektywnie ``virtual``)." 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.)" -msgstr "" +"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 "" +"Metoda nadrzędna w klasie pochodnej może w rzeczywistości chcieć rozszerzyć, " +"a nie tylko zastąpić metodę klasa bazowa o tej samej nazwie. Istnieje prosty " +"sposób na bezpośrednie wywołanie metody klasa bazowa: wystarczy wywołać " +"``BaseClassName.methodname(self, arguments)``. Jest to czasami przydatne " +"również dla klientów. (Należy pamiętać, że działa to tylko wtedy, gdy klasa " +"bazowa jest dostępna jako ``BaseClassName`` w zakresie globalnym)." msgid "Python has two built-in functions that work with inheritance:" -msgstr "" +msgstr "Python ma dwa wbudowane funkcje, które pracuja z dziedziczeniem:" 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 " "derived from :class:`int`." msgstr "" +"Użyj :func:`isinstance` do sprawdzenia typu instancji: ``isinstance(obj, " +"int)`` będzie ``True`` tylko wtedy, gdy ``obj.__class__`` jest :class:`int` " +"lub jakąś klasą pochodną od :class:`int`." msgid "" "Use :func:`issubclass` to check class inheritance: ``issubclass(bool, int)`` " @@ -629,14 +856,20 @@ msgid "" "``issubclass(float, int)`` is ``False`` since :class:`float` is not a " "subclass of :class:`int`." msgstr "" +"Użyj :func:`issubclass` do sprawdzenia dziedziczenia klas: " +"``issubclass(bool, int)`` jest ``True``, ponieważ :class:`bool` jest " +"podklasa z :class:`int`. Jednak ``issubclass(float, int)`` jest ``False``, " +"ponieważ :class:`float` nie jest podklasa z :class:`int`." msgid "Multiple Inheritance" -msgstr "" +msgstr "Dziedziczenie wielokrotne" msgid "" "Python supports a form of multiple inheritance as well. A class definition " "with multiple base classes looks like this::" msgstr "" +"Python obsługuje również dziedziczenie wielokrotne. Strona definicja klasy " +"z wieloma klasami bazowymi wygląda tak::" msgid "" "For most purposes, in the simplest cases, you can think of the search for " @@ -644,8 +877,8 @@ msgid "" "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." +"of :class:`Base1`, and if it was not found there, it was searched for " +"in :class:`Base2`, and so on." msgstr "" msgid "" @@ -655,6 +888,12 @@ msgid "" "method and is more powerful than the super call found in single-inheritance " "languages." msgstr "" +"W rzeczywistości jest to nieco bardziej skomplikowane; kolejność " +"rozwiązywania metod zmienia się dynamicznie, aby wspierać kooperacyjne " +"wywołania :func:`super`. Podejście to jest znane w niektórych innych " +"językach wielokrotnego dziedziczenia jako call-next-method i jest bardziej " +"wydajne niż super wywołanie występujące w językach pojedynczego " +"dziedziczenia." msgid "" "Dynamic ordering is necessary because all cases of multiple inheritance " @@ -673,7 +912,7 @@ msgid "" msgstr "" msgid "Private Variables" -msgstr "" +msgstr "Zmienne prywatne" msgid "" "\"Private\" instance variables that cannot be accessed except from inside an " @@ -683,6 +922,13 @@ msgid "" "a function, a method or a data member). It should be considered an " "implementation detail and subject to change without notice." msgstr "" +"\"Prywatne\" zmienne instancje, do których nie można uzyskać dostępu inaczej " +"niż z wnętrza obiektu, nie istnieją w Python. Istnieje jednak konwencja, " +"której przestrzega większość kodu Python: nazwa poprzedzona podkreśleniem " +"(np. ``_spam``) powinna być traktowana jako niepubliczna część API " +"(niezależnie od tego, czy jest to funkcja, metoda czy członek danych). " +"Należy ją traktować jako szczegół implementacji i może ona ulec zmianie bez " +"powiadomienia." msgid "" "Since there is a valid use-case for class-private members (namely to avoid " @@ -694,11 +940,22 @@ msgid "" "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 "" +"Ponieważ istnieje uzasadniony przypadek użycia dla członków klasy-prywatnej " +"(mianowicie, aby uniknąć kolizji nazw z nazwami zdefiniowanymi przez " +"podklasa), istnieje ograniczone wsparcie dla takiego mechanizmu, " +"zwanego :dfn:`name mangling`. Każdy identyfikator w postaci ``__spam`` (co " +"najmniej dwa początkowe podkreślenia, co najwyżej jedno końcowe " +"podkreślenie) jest tekstowo zastępowany przez ``_classname__spam``, gdzie " +"``classname`` jest bieżącą nazwą klasy z usuniętymi początkowymi " +"podkreśleniami. Zamiana ta jest wykonywana bez względu na pozycję " +"składniową identyfikatora, o ile występuje on w definicji klasy." msgid "" "Name mangling is helpful for letting subclasses override methods without " "breaking intraclass method calls. For example::" msgstr "" +"Manipulowanie nazwami jest pomocne w umożliwieniu podklasa nadpisywania " +"metod bez przerywania wywołań metod wewnątrzklasowych. Na przykład::" msgid "" "The above example would work even if ``MappingSubclass`` were to introduce a " @@ -706,6 +963,10 @@ msgid "" "the ``Mapping`` class and ``_MappingSubclass__update`` in the " "``MappingSubclass`` class respectively." msgstr "" +"Powyższy przykład zadziała nawet wtedy, gdy ``MappingSubclass`` wprowadzi " +"identyfikator ``__update``, ponieważ zostanie on zastąpiony odpowiednio " +"``_Mapping__update`` w klasie ``Mapping`` i ``_MappingSubclass__update`` w " +"klasie ``MappingSubclass``." msgid "" "Note that the mangling rules are designed mostly to avoid accidents; it " @@ -713,6 +974,10 @@ msgid "" "private. This can even be useful in special circumstances, such as in the " "debugger." msgstr "" +"Należy pamiętać, że reguły mieszania zostały zaprojektowane głównie w celu " +"uniknięcia wypadków; nadal możliwy jest dostęp lub modyfikacja zmiennej, " +"która jest uważana za prywatną. Może to być nawet przydatne w szczególnych " +"okolicznościach, takich jak debugger." msgid "" "Notice that code passed to ``exec()`` or ``eval()`` does not consider the " @@ -722,15 +987,24 @@ msgid "" "applies to ``getattr()``, ``setattr()`` and ``delattr()``, as well as when " "referencing ``__dict__`` directly." msgstr "" +"Zauważ, że kod przekazany do ``exec()`` lub ``eval()`` nie uważa nazwy klasy " +"wywołującej za bieżącą klasę; jest to podobne do efektu ``global`` " +"instrukcja , którego efekt jest również ograniczony do kodu, który jest " +"kompilowany bajtowo. To samo ograniczenie dotyczy ``getattr()``, " +"``setattr()`` i ``delattr()``, a także bezpośredniego odwoływania się do " +"``__dict__``." msgid "Odds and Ends" -msgstr "" +msgstr "Przypadki losowe" msgid "" "Sometimes it is useful to have a data type similar to the Pascal \"record\" " -"or C \"struct\", bundling together a few named data items. An empty class " -"definition will do nicely::" +"or C \"struct\", bundling together a few named data items. The idiomatic " +"approach is to use :mod:`dataclasses` for this purpose::" msgstr "" +"Czasami przydatne jest posiadanie typu danych podobnego do \"rekordu\" " +"Pascala lub \"struktury\" C, łączącego kilka nazwanych elementów danych. " +"Idiomatycznym podejściem jest użycie w tym celu :mod:`dataclasses`::" msgid "" "A piece of Python code that expects a particular abstract data type can " @@ -748,24 +1022,35 @@ msgid "" msgstr "" msgid "Iterators" -msgstr "" +msgstr "Iteratory" msgid "" "By now you have probably noticed that most container objects can be looped " "over using a :keyword:`for` statement::" msgstr "" +"Prawdopodobnie zauważyłeś już, że większość obiektów kontenera można " +"iterować za pomocą :keyword:`for` instrukcja ::" 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::" -msgstr "" +"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 "" +"Ten styl dostępu jest jasny, zwięzły i wygodny. Użycie iterators przenika i " +"ujednolica Python. Za kulisami, :keyword:`for` instrukcja " +"wywołuje :func:`iter` na obiekcie kontenera. Obiekt funkcja zwracać i " +"iterator definiują metodę :meth:`~iterator.__next__`, która uzyskuje dostęp " +"do elementów w kontenerze jeden po drugim. Gdy nie ma więcej " +"elementów, :meth:`~iterator.__next__` rzucić wyjątek :exc:`StopIteration`, " +"który informuje pętlę :keyword:`!for` o zakończeniu. " +"Metodę :meth:`~iterator.__next__` można wywołać za pomocą :func:`next` " +"wbudowanej funkcja; ten przykład pokazuje, jak to wszystko działa::" msgid "" "Having seen the mechanics behind the iterator protocol, it is easy to add " @@ -775,16 +1060,23 @@ msgid "" msgstr "" msgid "Generators" -msgstr "" +msgstr "Generatory" msgid "" ":term:`Generators ` 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 generators can be trivially easy to create::" +"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 generators can be trivially easy to create::" msgstr "" +":term:`Generatory ` są prostym i potężnym narzędziem do tworzenia " +"iteratorów. Są one pisane jak zwykłe funkcje, ale używają " +"instrukcji :keyword:`yield` za każdym razem, gdy chcą zwracać dane. Za " +"każdym razem, gdy :func:`next` jest na nim wywoływany, generator wznawia " +"działanie od miejsca, w którym zostało przerwane (pamięta wszystkie wartości " +"danych i które instrukcje było ostatnio wykonywane). Przykład pokazuje, że " +"tworzenie generatorów może być banalnie proste::" msgid "" "Anything that can be done with generators can also be done with class-based " @@ -796,9 +1088,13 @@ msgstr "" 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 "" +"Inną kluczową cechą jest to, że zmienne lokalne i stan wykonania są " +"automatycznie zapisywane między wywołaniami. Sprawia to, że funkcja jest " +"łatwiejszy do napisania i znacznie bardziej przejrzysty niż podejście " +"wykorzystujące zmienne instancji, takie jak ``self.index`` i ``self.data``." msgid "" "In addition to automatic method creation and saving program state, when " @@ -806,9 +1102,13 @@ msgid "" "combination, these features make it easy to create iterators with no more " "effort than writing a regular function." msgstr "" +"Oprócz automatycznego tworzenia metod i zapisywania stanu programu, po " +"zakończeniu generatory automatycznie rzucić :exc:`StopIteration` . W " +"połączeniu, funkcje te ułatwiają tworzenie iteratorów bez większego wysiłku " +"niż napisanie zwykłego funkcja." msgid "Generator Expressions" -msgstr "" +msgstr "generator wyrażenia" msgid "" "Some simple generators can be coded succinctly as expressions using a syntax " @@ -818,9 +1118,16 @@ msgid "" "compact but less versatile than full generator definitions and tend to be " "more memory friendly than equivalent list comprehensions." msgstr "" +"Niektóre proste generatory mogą być kodowane w zwięzły sposób jako wyrażenia " +"przy użyciu składni podobnej do list comprehensions, ale z nawiasami zamiast " +"nawiasów kwadratowych. Wyrażenia te są przeznaczone do sytuacji, w których " +"generator jest używane od razu przez otaczającą je funkcja. Wyrażenia " +"generator są bardziej zwięzłe, ale mniej wszechstronne niż pełne definicje " +"generator i zwykle są bardziej przyjazne dla pamięci niż równoważne " +"wyrażenia listowe." msgid "Examples::" -msgstr "" +msgstr "Przykłady::" msgid "Footnotes" msgstr "Przypisy" diff --git a/tutorial/controlflow.po b/tutorial/controlflow.po index 4aa9c5018a..d0a6bfaefa 100644 --- a/tutorial/controlflow.po +++ b/tutorial/controlflow.po @@ -1,30 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Bartosz Chmiel , 2021 -# Igor Zubrycki , 2021 -# Lidia Lipinska-Zubrycka , 2021 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "More Control Flow Tools" msgstr "Więcej narzędzi kontroli przepływu" @@ -44,21 +41,21 @@ msgid "" "Perhaps the most well-known statement type is the :keyword:`if` statement. " "For example::" msgstr "" -"Prawdopodobnie najbardziej znanym typem instrukcji jest instrukcja :keyword:" -"`if`. Na przykład::" +"Prawdopodobnie najbardziej znanym typem instrukcji jest " +"instrukcja :keyword:`if`. Na przykład::" 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 " -"``switch`` or ``case`` statements found in other languages." +"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 "" "Części :keyword:`elif` może być zero lub więcej i część :keyword:`else` jest " "opcjonalna. Keyword „:keyword:`!elif`” jest skrótem od „else if” i jest " -"przydatny by uniknąć nadmiarowych wcięć. Sekwencja :keyword:`!if` … :keyword:" -"`!elif` … :keyword:`!elif` … jest zamiennikiem instrukcji ``switch`` lub " -"``case`` z innych języków." +"przydatny by uniknąć nadmiarowych wcięć. Sekwencja :keyword:`!if` " +"… :keyword:`!elif` … :keyword:`!elif` … jest zamiennikiem instrukcji " +"``switch`` lub ``case`` z innych języków." msgid "" "If you're comparing the same value to several constants, or checking for " @@ -76,10 +73,10 @@ 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 " -"pun intended):" +"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 "" "Instrukcja :keyword:`for` różni się troszeczkę w Pythonie od tego, co " "używasz w C lub Pascalu. Nie prowadzi się iteracji od liczby do liczby (jak " @@ -102,8 +99,9 @@ msgid "The :func:`range` Function" msgstr "Funkcja :func:`range`" 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 "" "Jeśli potrzebujesz iterować po sekwencji liczb, przydatna jest wbudowana " "funkcja :func:`range`. Generuje ciągi arytmetyczne::" @@ -123,15 +121,15 @@ msgid "" "To iterate over the indices of a sequence, you can combine :func:`range` " "and :func:`len` as follows::" msgstr "" -"By przeiterować po indeksach sekwencji możesz połączyć :func:`range` i :func:" -"`len` w następujący sposób::" +"By przeiterować po indeksach sekwencji możesz połączyć :func:`range` " +"i :func:`len` w następujący sposób::" msgid "" "In most such cases, however, it is convenient to use the :func:`enumerate` " "function, see :ref:`tut-loopidioms`." msgstr "" -"Jednak w większości takich przypadków wygodnie jest użyć funkcji :func:" -"`enumerate`, patrz :ref:`tut-loopidioms`." +"Jednak w większości takich przypadków wygodnie jest użyć " +"funkcji :func:`enumerate`, patrz :ref:`tut-loopidioms`." msgid "A strange thing happens if you just print a range::" msgstr "Dzieje się dziwna rzecz jeśli po prostu wydrukujesz zakres::" @@ -151,9 +149,9 @@ msgstr "" msgid "" "We say such an object is :term:`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 a construct, while an example of a function " -"that takes an iterable is :func:`sum`::" +"successive items until the supply is exhausted. We have seen that " +"the :keyword:`for` statement is such a construct, while an example of a " +"function that takes an iterable is :func:`sum`::" msgstr "" "Mówimy, że taki obiekt to :term:`iterable`, to znaczy odpowiedni jako cel " "dla funkcji i konstrukcji, które spodziewają się czegoś, z czego można " @@ -192,23 +190,24 @@ msgid "" "the following loop, which searches for prime numbers::" msgstr "" "Instrukcje pętli mogą mieć klauzulę :keyword:`!else`. Jest ona wykonywana, " -"gdy pętla kończy się przez wyczerpanie się iterable'a (w pętli :keyword:" -"`for`) lub kiedy warunek staje się fałszywy (w pętli :keyword:`while`), lecz " -"nie gdy pętli jest przerwana przez instrukcję :keyword:`break`. Ilustruje to " -"poniższa pętla, która wyszukuje liczby pierwsze::" +"gdy pętla kończy się przez wyczerpanie się iterable'a (w " +"pętli :keyword:`for`) lub kiedy warunek staje się fałszywy (w " +"pętli :keyword:`while`), lecz nie gdy pętli jest przerwana przez " +"instrukcję :keyword:`break`. Ilustruje to poniższa pętla, która wyszukuje " +"liczby pierwsze::" msgid "" "(Yes, this is the correct code. Look closely: the ``else`` clause belongs " "to the :keyword:`for` loop, **not** the :keyword:`if` statement.)" msgstr "" -"(Tak, to poprawny kod. Przyjrzyj się: klauzula ``else`` należy do pętli :" -"keyword:`for`, **nie** do instrukcji :keyword:`if`.)" +"(Tak, to poprawny kod. Przyjrzyj się: klauzula ``else`` należy do " +"pętli :keyword:`for`, **nie** do instrukcji :keyword:`if`.)" 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 with 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 " +"``else`` clause of a :keyword:`try` statement than it does with 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 "" @@ -262,6 +261,13 @@ msgid "" "also extract components (sequence elements or object attributes) from the " "value into variables." msgstr "" +"Instrukcja :keyword:`match` bierze wyrażenie i porównuje jego wartość do " +"kolejnych wzorców podanych jako jeden lub więcej blok case. Jest to " +"powierzchownie podobne do instrukcji switch w C, Javie lub JavaScripcie (i " +"wielu innych językach), ale bardziej jest podobne do pattern matchingu w " +"takich językach jak Rust lub Haskell. Jedynie pierwszy pasujący wzorzec jest " +"zostaje wykonany i może on również wydobywać komponenty (elementy sekwencji " +"lub atrybuty obiektu) z wartości do zmiennych." msgid "" "The simplest form compares a subject value against one or more literals::" @@ -330,8 +336,8 @@ msgid "" "A recommended way to read patterns is to look at them as an extended form of " "what you would put on the left of an assignment, to understand which " "variables would be set to what. Only the standalone names (like ``var`` " -"above) are assigned to by a match statement. Dotted names (like ``foo." -"bar``), attribute names (the ``x=`` and ``y=`` above) or class names " +"above) are assigned to by a match statement. Dotted names (like " +"``foo.bar``), attribute names (the ``x=`` and ``y=`` above) or class names " "(recognized by the \"(...)\" next to them like ``Point`` above) are never " "assigned to." msgstr "" @@ -384,8 +390,8 @@ msgstr "" "pozostałych elementów." msgid "" -"Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the ``" -"\"bandwidth\"`` and ``\"latency\"`` values from a dictionary. Unlike " +"Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the " +"``\"bandwidth\"`` and ``\"latency\"`` values from a dictionary. Unlike " "sequence patterns, extra keys are ignored. An unpacking like ``**rest`` is " "also supported. (But ``**_`` would be redundant, so it is not allowed.)" msgstr "" @@ -420,11 +426,11 @@ msgstr "" "uniknąć interpretacji przechwycenia jako zwykłej zmiennej::" msgid "" -"For a more detailed explanation and additional examples, you can look into :" -"pep:`636` which is written in a tutorial format." +"For a more detailed explanation and additional examples, you can look " +"into :pep:`636` which is written in a tutorial format." msgstr "" -"Bardziej szczegółowe wyjaśnienie i dodatkowe przykłady możesz znaleźć w :pep:" -"`636`, który jest napisany w formie tutoriala." +"Bardziej szczegółowe wyjaśnienie i dodatkowe przykłady możesz znaleźć " +"w :pep:`636`, który jest napisany w formie tutoriala." msgid "Defining Functions" msgstr "Definiowanie funkcji" @@ -449,12 +455,12 @@ msgstr "" 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." +"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 "" "Opcjonalnie, pierwszy wiersz ciała funkcji może być gołym napisem " "(literałem): jest to tzw. napis dokumentujący lub inaczej :dfn:`docstring`. " @@ -485,8 +491,9 @@ msgstr "" "wbudowanych w interpreter. Tak więc, zmiennym globalnym ani zmiennym w " "otaczających funkcjach nie można wprost przypisać wartości w ciele funkcji " "(chyba, że zostaną wymienione w niej za pomocą instrukcji :keyword:`global` " -"lub dla zmiennych w otaczających funkcjach, wymienionych w instrukcji :" -"keyword:`nonlocal`), aczkolwiek mogą w niej być używane (czytane)." +"lub dla zmiennych w otaczających funkcjach, wymienionych w " +"instrukcji :keyword:`nonlocal`), aczkolwiek mogą w niej być używane " +"(czytane)." msgid "" "The actual parameters (arguments) to a function call are introduced in the " @@ -519,16 +526,16 @@ msgid "" "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 "" "Przychodząc z innych języków, mógłbyś oponować, że ``fib`` nie jest funkcją, " "ale procedurą, jako że nie zwraca wartości. Tak naprawdę nawet funkcje bez " "instrukcji :keyword:`return` zwracają wartość, chociaż dość nudną. Tę " "wartość nazywamy ``None`` (to wbudowana nazwa). Wypisywanie wartości " "``None`` jest normalnie pomijane przez interpreter, jeśli miałaby to jedyna " -"wypisywana wartość. Możesz ją zobaczyć, jeśli bardzo chcesz, używając :func:" -"`print`::" +"wypisywana wartość. Możesz ją zobaczyć, jeśli bardzo chcesz, " +"używając :func:`print`::" msgid "" "It is simple to write a function that returns a list of the numbers of the " @@ -541,9 +548,9 @@ msgid "This example, as usual, demonstrates some new Python features:" msgstr "Ten przykład, jak zazwyczaj, prezentuje nowe cechy Pythona:" msgid "" -"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``." +"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 "" "Instrukcja :keyword:`return` zwraca wartość funkcji. :keyword:`!return` bez " "wyrażenia podanego jako argument zwraca ``None``. Dojście do końca funkcji " @@ -556,21 +563,22 @@ msgid "" "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 "" "Instrukcja ``result.append(a)`` wywołuje *metodę* listy obiektów ``result``. " -"Metoda to funkcja, która „należy” do obiektu i jest nazwana ``obj." -"methodname``, gdzie ``obj`` jest jakimś obiektem (może też być wyrażeniem) a " -"``methodname`` jest nazwą metody, które jest zdefiniowana przez typ obiektu. " -"Różne typy definiują różne metody. Metody różnych typów mogą mieć te same " -"nazwy bez powodowania dwuznaczności. (Da się definiować własne typy obiektów " -"i metody, używając *klas*, patrz :ref:`tut-classes`.) Metoda :meth:`append` " -"pokazana w przykładzie jest zdefiniowana dla listy obiektów; dodaje nowy " -"element na końcu listy. W tym przykładzie jest równoważna ``result = result " -"+ [a]``, ale bardziej wydajna." +"Metoda to funkcja, która „należy” do obiektu i jest nazwana " +"``obj.methodname``, gdzie ``obj`` jest jakimś obiektem (może też być " +"wyrażeniem) a ``methodname`` jest nazwą metody, które jest zdefiniowana " +"przez typ obiektu. Różne typy definiują różne metody. Metody różnych typów " +"mogą mieć te same nazwy bez powodowania dwuznaczności. (Da się definiować " +"własne typy obiektów i metody, używając *klas*, patrz :ref:`tut-classes`.) " +"Metoda :meth:`append` pokazana w przykładzie jest zdefiniowana dla listy " +"obiektów; dodaje nowy element na końcu listy. W tym przykładzie jest " +"równoważna ``result = result + [a]``, ale bardziej wydajna." msgid "More on Defining Functions" msgstr "Więcej o definiowaniu funkcji" @@ -600,21 +608,20 @@ msgstr "Tę funkcję można wywołać na kilka sposobów:" msgid "" "giving only the mandatory argument: ``ask_ok('Do you really want to quit?')``" msgstr "" -"podając tylko wymagany argument: ``ask_ok('Do you really want to quit?')``" +"podając tylko wymagany argument: ``ask_ok('Czy na pewno chcesz wyjść?')``" msgid "" "giving one of the optional arguments: ``ask_ok('OK to overwrite the file?', " "2)``" msgstr "" -"podając jeden z opcjonalnych argumentów: ``ask_ok('OK to overwrite the " -"file?', 2)``" +"podając jeden z opcjonalnych argumentów: ``ask_ok('OK nadpisać plik?', 2)``" msgid "" "or even giving all arguments: ``ask_ok('OK to overwrite the file?', 2, 'Come " "on, only yes or no!')``" msgstr "" -"lub podając wszystkie argumenty: ``ask_ok('OK to overwrite file?', 2, 'Come " -"on, only yes or no!')``" +"lub podając wszystkie argumenty: ``ask_ok('OK nadpisać plik?', 2, 'No coś " +"ty, tylko tak lub nie!')``" msgid "" "This example also introduces the :keyword:`in` keyword. This tests whether " @@ -741,7 +748,7 @@ msgstr "" "czytelności oraz wydajności, ma sens aby ograniczyć sposób w jaki argumenty " "mogą być przekazywane tak aby deweloper musiał tylko spojrzeć na definicję " "funkcji aby zrozumieć czy argumenty są przekazywane poprzez pozycję, pozycję " -"i słowa kluczowe czy same słowa kluczowe. " +"i słowa kluczowe czy same słowa kluczowe." msgid "A function definition may look like:" msgstr "Definicja funkcji może wyglądać w ten sposób:" @@ -752,23 +759,23 @@ msgid "" "only, positional-or-keyword, and keyword-only. Keyword parameters are also " "referred to as named parameters." msgstr "" -"gdzie `` / `` i `` * `` są opcjonalne. Jeśli są używane, te symbole wskazują " +"gdzie ``/`` i ``*`` są opcjonalne. Jeśli są używane, te symbole wskazują " "rodzaj parametru poprzez sposób przekazywania argumentów do funkcji: tylko " "pozycyjne, pozycyjne lub słowo kluczowe i tylko słowo kluczowe. Parametry " "słów kluczowych są również nazywane parametrami nazwanymi." msgid "Positional-or-Keyword Arguments" -msgstr "Argumenty pozycyjne-lub-kluczowe" +msgstr "Argumenty pozycyjne-lub-nazwane" msgid "" "If ``/`` and ``*`` are not present in the function definition, arguments may " "be passed to a function by position or by keyword." msgstr "" "Jeśli ``/`` czy ``*`` nie są obecne w definicji funkcji, argumenty mogą być " -"przekazywane i poprzez pozycje i przez słowa kluczowe. " +"przekazywane i poprzez pozycje i przez słowa kluczowe." msgid "Positional-Only Parameters" -msgstr "Parametry Tylko-Pozycyjne (Positional-Only)" +msgstr "Parametry tylko-pozycyjne (positional-only)" msgid "" "Looking at this in a bit more detail, it is possible to mark certain " @@ -794,7 +801,7 @@ msgstr "" "*tylko-kluczowe*." msgid "Keyword-Only Arguments" -msgstr "Argumenty Tylko-Kluczowe (Keyword-Only)" +msgstr "Argumenty tylko-nazwane (keyword-only)" msgid "" "To mark parameters as *keyword-only*, indicating the parameters must be " @@ -807,7 +814,7 @@ msgstr "" "parametrem, który ma być przekazywany tylko przez słowo kluczowe." msgid "Function Examples" -msgstr "Przykłady Funkcji" +msgstr "Przykłady funkcji" msgid "" "Consider the following example function definitions paying close attention " @@ -911,14 +918,14 @@ msgid "" msgstr "" "Wykorzystuj argumenty tylko-kluczowe gdy nazwy mają znaczenie i definicja " "funkcji jest łatwiejsza do zrozumienia poprzez wprost podawanie nazw, lub " -"jeśli nie chcesz aby użytkownicy polegali na kolejności argumentów. " +"jeśli nie chcesz aby użytkownicy polegali na kolejności argumentów." msgid "" "For an API, use positional-only to prevent breaking API changes if the " "parameter's name is modified in the future." msgstr "" "W przypadku budowania API, wykorzystanie argumentów tylko-pozycyjnych " -"pozwoli w przyszłości uniknąć problemów, gdy nazwa parametru jest zmieniona. " +"pozwoli w przyszłości uniknąć problemów, gdy nazwa parametru jest zmieniona." msgid "Arbitrary Argument Lists" msgstr "Arbitralne listy argumentów" @@ -945,7 +952,7 @@ msgstr "" "ponieważ zbierają one wszystkie pozostałe argumenty przekazane funkcji. " "Każdy formalny argument po parametrze ``*args`` może być 'tylko-kluczowy', " "to znaczy da się go wprowadzić tylko poprzez słowo kluczowe a nie przez " -"pozycję. :: " +"pozycję. ::" msgid "Unpacking Argument Lists" msgstr "Rozpakowywanie listy argumentów" @@ -985,13 +992,13 @@ msgid "" "scope::" msgstr "" "Niewielkie anonimowe funkcje mogą byś tworzone z wykorzystaniem słowa " -"kluczowego :keyword:`lambda`. Wykorzystując tą notację: ``lambda a, b: a" -"+b`` powstanie funkcja sumująca podane argumenty. Funkcje lambda mogą być " +"kluczowego :keyword:`lambda`. Wykorzystując tą notację: ``lambda a, b: " +"a+b`` powstanie funkcja sumująca podane argumenty. Funkcje lambda mogą być " "wykorzystywane zawsze wtedy gdy potrzebne są objekty funkcji. Są " -"synaktycznie ograniczone do jednego wyrażenia. \n" -"Semantycznie, jest to tylko lukier składniowy normalnej definicji funkcji. " -"Podobnie jak funkcje zagnieżdżone funkcje lambda mogą odwoływać się do " -"zmiennych z otaczającego zakresu ::" +"synaktycznie ograniczone do jednego wyrażenia. Semantycznie, jest to tylko " +"lukier składniowy normalnej definicji funkcji. Podobnie jak funkcje " +"zagnieżdżone funkcje lambda mogą odwoływać się do zmiennych z otaczającego " +"zakresu ::" msgid "" "The above example uses a lambda expression to return a function. Another " @@ -1019,7 +1026,7 @@ msgstr "" "obiektem. Nie powinna wprost zawierać nazwy obiektu ani typu, gdyż te są " "dostępne w inny sposób (chyba, że nazwa jest czasownikiem opisujęcym " "działanie funkcji). Ta linijka powinna zaczynać się z dużej litery i kończyć " -"kropką. " +"kropką." msgid "" "If there are more lines in the documentation string, the second line should " @@ -1029,7 +1036,7 @@ msgid "" msgstr "" "Jeśli w docstringu jest więcej niż jedna linijka, druga linijka powinna być " "pusta, aby rozdzielić ją od reszty opisu. Następne linijki powinny zawierać " -"konwencje nazwenicze, efekty uboczne itd. " +"konwencje nazewnicze, efekty uboczne itd." msgid "" "The Python parser does not strip indentation from multi-line string literals " @@ -1038,11 +1045,11 @@ msgid "" "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 "" "Parser Pythona nie usuwa wcięć z literału stringu wielolinijkowego, więc " "jeśli to jest pożądane, to narzędzia obrabiające dokumentację powinny usuwać " @@ -1071,24 +1078,25 @@ msgstr "" "oraz :pep:`484` aby uzyskać więcej informacji)." 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 required argument, an optional argument, and the return value annotated::" -msgstr "" -":term:`Adnotacje ` przechowywane są w atrybucie :attr:" -"`__annotations__` funkcji jako słownik i nie mają oprócz żadnego innego " -"wpływu na nią. Adnotacje parametrów są definiowane po nazwie parametru i " -"dwukropku, jako wyrażenie sprawdzające wartość argumentu. Adonotacje do " -"zwracanego wyniku definiuje się pomiędzy nawiasem z listą parametrów a " -"drukropkiem kończącym instrukcję :keyword:`def` , poprzez literał ``->``, z " -"następującym po nim wyrażeniem. Poniższy przykład ma adnotację dotyczącą " -"argumentu wymaganego, argumentu opcjonalnego oraz adnotację zwracanego " -"wyniku::" +":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 required argument, an optional argument, and the " +"return value annotated::" +msgstr "" +":term:`Adnotacje ` przechowywane są w " +"atrybucie :attr:`__annotations__` funkcji jako słownik i nie mają oprócz " +"żadnego innego wpływu na nią. Adnotacje parametrów są definiowane po nazwie " +"parametru i dwukropku, jako wyrażenie sprawdzające wartość argumentu. " +"Adonotacje do zwracanego wyniku definiuje się pomiędzy nawiasem z listą " +"parametrów a drukropkiem kończącym instrukcję :keyword:`def` , poprzez " +"literał ``->``, z następującym po nim wyrażeniem. Poniższy przykład ma " +"adnotację dotyczącą argumentu wymaganego, argumentu opcjonalnego oraz " +"adnotację zwracanego wyniku::" msgid "Intermezzo: Coding Style" msgstr "Intermezzo: Styl kodowania" @@ -1100,12 +1108,12 @@ msgid "" "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 "" -"Teraz, kiedy już jesteś gotowa aby pisać dłuższe, bardziej złożone Pythonowe " -"dzieła, dobrze żebyśmy porozmawiali o *stylu kodowania*. Większość języków " -"może być pisana (a mówiąc precyzyjniej, *formatowana*) w różnym stylu; " -"bardziej lub mniej czytelnym. Zawsze dobrze jest dążyć, aby Twój kod był " -"łatwy do czytania przez innych a w tym bardzo pomaga stosowanie fajnego " -"stylu kodowania. " +"Teraz, kiedy już jesteś gotowa(-wy) aby pisać dłuższe, bardziej złożone " +"pythonowe dzieła, dobrze żebyśmy porozmawiali o *stylu kodowania*. Większość " +"języków może być pisana (a mówiąc precyzyjniej, *formatowana*) w różnym " +"stylu; bardziej lub mniej czytelnym. Zawsze dobrze jest dążyć, aby twój kod " +"był łatwy do czytania przez innych a w tym bardzo pomaga stosowanie fajnego " +"stylu kodowania." msgid "" "For Python, :pep:`8` has emerged as the style guide that most projects " @@ -1128,17 +1136,17 @@ msgid "" msgstr "" "Cztery spacje są dobrym kompromisem pomiędzy płytkim wcięciem (pozwala na " "więcej kroków zagnieżdżania ) a głębokim wcięciem (jest łatwiejsze do " -"przeczytania). Tabulatorów najlepiej nie używać, wprowadzają zamiesznie. " +"przeczytania). Tabulatorów najlepiej nie używać, wprowadzają zamiesznie." msgid "Wrap lines so that they don't exceed 79 characters." -msgstr "Zawijaj linie tak, aby nie ich długość nie przekraczała 79 znaków. " +msgstr "Zawijaj linie tak, aby nie ich długość nie przekraczała 79 znaków." msgid "" "This helps users with small displays and makes it possible to have several " "code files side-by-side on larger displays." msgstr "" "To pomoże użytkownikom z małymi wyświetlaczami a na większych ekranach " -"pozwoli mieć kilka plików obok siebie na ekranie. " +"pozwoli mieć kilka plików obok siebie na ekranie." msgid "" "Use blank lines to separate functions and classes, and larger blocks of code " @@ -1148,7 +1156,7 @@ msgstr "" "bloki kodu wewnątrz funkcji." msgid "When possible, put comments on a line of their own." -msgstr "Jeśli jest to możliwe, wstawiaj komentarze na oddzielnej linii. " +msgstr "Jeśli jest to możliwe, wstawiaj komentarze w oddzielnej linii." msgid "Use docstrings." msgstr "Wykorzystuj docstringi" @@ -1177,9 +1185,9 @@ msgid "" "environments. Python's default, UTF-8, or even plain ASCII work best in any " "case." msgstr "" -"Nie wykorzystuj ambitnych zestawów znaków (encoding) jeśli Twój kod będzie " -"wykorzystywany międzynarodowo. Najepiej trzymać się domyślnych w Pythonie: " -"UTF-8 lub nawet ASCII. " +"Nie wykorzystuj wymyślnych zestawów znaków jeśli twój kod będzie " +"wykorzystywany międzynarodowo. Najlepiej trzymać się domyślnych w Pythonie: " +"UTF-8 lub nawet ASCII." msgid "" "Likewise, don't use non-ASCII characters in identifiers if there is only the " @@ -1201,4 +1209,4 @@ msgstr "" "Tak właściwie, *wywołanie przez referencję do obiektu* byłoby lepszym " "opisem, jako że jeśli mutowalny obiekt jest przekazany, wszystkie zmiany " "które wywoływany robi (elementy wstawiane na listę) będą widziane przez " -"wywołującego. " +"wywołującego." diff --git a/tutorial/datastructures.po b/tutorial/datastructures.po index 3a012e700a..78cd8d3d88 100644 --- a/tutorial/datastructures.po +++ b/tutorial/datastructures.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Data Structures" msgstr "Struktury danych" @@ -31,7 +31,7 @@ msgid "" "detail, and adds some new things as well." msgstr "" "Ten rozdział opisuje bardziej szczegółowo niektóre rzeczy, które już " -"poznaliście, oraz również wprowadza nowe elementy." +"poznaliście, a także dodaje kilka nowych." msgid "More on Lists" msgstr "Więcej na temat list" @@ -40,7 +40,8 @@ msgid "" "The list data type has some more methods. Here are all of the methods of " "list objects:" msgstr "" -"Typ danych listy ma kilka więcej metod. To wszystkie metody obiektów listy:" +"Typ danych listy ma kilka dodatkowych metod. Poniżej znajdują się wszystkie " +"metody obiektów typu listy:" msgid "" "Add an item to the end of the list. Equivalent to ``a[len(a):] = [x]``." @@ -66,8 +67,8 @@ msgid "" "Remove the first item from the list whose value is equal to *x*. It raises " "a :exc:`ValueError` if there is no such item." msgstr "" -"Usuń pierwszy element z listy, którego wartość jest równa *x*. Rzuca :exc:" -"`ValueError`, jeśli nie ma takiego elementu." +"Usuwa pierwszy element z listy, którego wartość jest równa *x*. " +"Rzuca :exc:`ValueError`, jeśli nie ma takiego elementu." msgid "" "Remove the item at the given position in the list, and return it. If no " @@ -130,6 +131,10 @@ msgid "" "default ``None``. [#]_ This is a design principle for all mutable data " "structures in Python." msgstr "" +"Być może zauważyłeś(-łaś), że metody takie jak ``insert``, ``remove`` czy " +"``sort``, które tylko modyfikują listę, nie mają wypisanej wartości zwrotnej " +"– zwracają domyślne ``None``. [#]_ Jest to zasada projektowa dla wszystkich " +"mutowalnych struktur danych w Pythonie." msgid "" "Another thing you might notice is that not all data can be sorted or " @@ -273,10 +278,13 @@ msgid "The following list comprehension will transpose rows and columns::" msgstr "Następujące wyrażenie listowe przetransponuje wiersze i kolumny::" msgid "" -"As we saw in the previous section, the inner list comprehension is evaluated " -"in the context of the :keyword:`for` that follows it, so this example is " -"equivalent to::" +"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::" msgstr "" +"Jak widzieliśmy w poprzedniej sekcji, zagnieżdżone wyrażenie listowe jest " +"ewaluowane w kontekście :keyword:`for`, które po nim następuje, więc ten " +"przykład jest równoważny temu::" msgid "which, in turn, is the same as::" msgstr "który z kolei jest taki sam jak::" @@ -305,11 +313,11 @@ msgid "" "used to remove slices from a list or clear the entire list (which we did " "earlier by assignment of an empty list to the slice). For example::" msgstr "" -"Element można usunąć z listy mając jego indeks zamiast wartości: instrukcją :" -"keyword:`del`. Jest ona różna od metody :meth:`pop`, która zwraca wartość. " -"Instrukcji :keyword:`!del` można też użyć do usunięcia slice'ów lub " -"wyczyszczenia całej listy (zrobiliśmy to wcześniej przypisując pustą listę " -"do slice'a). Na przykład::" +"Element można usunąć z listy mając jego indeks zamiast wartości: " +"instrukcją :keyword:`del`. Jest ona różna od metody :meth:`pop`, która " +"zwraca wartość. Instrukcji :keyword:`!del` można też użyć do usunięcia " +"slice'ów lub wyczyszczenia całej listy (zrobiliśmy to wcześniej przypisując " +"pustą listę do slice'a). Na przykład::" msgid ":keyword:`del` can also be used to delete entire variables::" msgstr ":keyword:`del` można również użyć do usuwania całych zmiennych::" @@ -363,9 +371,9 @@ 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 "" "Mimo że krotki mogą wydawać się podobne do list, często są używane w innych " "sytuacjach i do innych celów. Krotki są :term:`niemutowalne ` i " @@ -450,20 +458,20 @@ msgid "Dictionaries" msgstr "Słowniki" 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`." -msgstr "" -"Innym przydatnym typem danych wbudowanym w Pythona jest *słownik* (patrz :" -"ref:`typesmapping`). Słowniki w innych językach czasem występują jako " -"„pamięci asocjacyjne” albo „tablice asocjacyjne”. W przeciwieństwie do " +"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 "" +"Innym przydatnym typem danych wbudowanym w Pythona jest *słownik* " +"(patrz :ref:`typesmapping`). Słowniki w innych językach czasem występują " +"jako „pamięci asocjacyjne” albo „tablice asocjacyjne”. W przeciwieństwie do " "sekwencji, które są indeksowane zakresem liczb, słowniki są indeksowane " "przez *klucze*, które mogą być dowolnym niemutowalnym typem; ciągi znaków i " "liczby zawsze mogą być kluczami. Można użyć krotek, jeśli zawierają tylko " @@ -488,9 +496,9 @@ msgstr "" 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 " +"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 "" "Głównymi operacjami na słowniku są umieszczanie wartości pod jakimś kluczem " @@ -570,20 +578,20 @@ 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 "" -"Aby przeiterować po sekwencji w posortowanej kolejności, użyj funkcji :func:" -"`sorted`, która zwraca nową posortowaną listę pozostawiając listę źródłową " -"niezmienioną. ::" +"Aby przeiterować po sekwencji w posortowanej kolejności, użyj " +"funkcji :func:`sorted`, która zwraca nową posortowaną listę pozostawiając " +"listę źródłową niezmienioną. ::" msgid "" -"Using :func:`set` on a sequence eliminates duplicate elements. The use of :" -"func:`sorted` in combination with :func:`set` over a sequence is an " +"Using :func:`set` on a sequence eliminates duplicate elements. The use " +"of :func:`sorted` in combination with :func:`set` over a sequence is an " "idiomatic way to loop over unique elements of the sequence in sorted " "order. ::" msgstr "" -"Użycie :func:`set` na sekwencji eliminuje zduplikowane elementy. Użycie :" -"func:`sorted` w połączeniu z :func:`set` na sekwencji jest idiomatycznym " -"sposobem na przeiterowanie po unikalnych elementach sekwencji w posortowanej " -"kolejności. ::" +"Użycie :func:`set` na sekwencji eliminuje zduplikowane elementy. " +"Użycie :func:`sorted` w połączeniu z :func:`set` na sekwencji jest " +"idiomatycznym sposobem na przeiterowanie po unikalnych elementach sekwencji " +"w posortowanej kolejności. ::" msgid "" "It is sometimes tempting to change a list while you are looping over it; " diff --git a/tutorial/errors.po b/tutorial/errors.po index b71d4471ff..05b02f4dbe 100644 --- a/tutorial/errors.po +++ b/tutorial/errors.po @@ -1,53 +1,50 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Igor Zubrycki , 2021 -# Ciarbin Ciarbin , 2021 -# Jarosław Piszczała, 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Jarosław Piszczała, 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Errors and Exceptions" -msgstr "Błędy i Wyjątki" +msgstr "Błędy i wyjątki" msgid "" "Until now error messages haven't been more than mentioned, but if you have " "tried out the examples you have probably seen some. There are (at least) " "two distinguishable kinds of errors: *syntax errors* and *exceptions*." msgstr "" -"Do tej pory wiadomości o błędach były tylko wspomniane, ale jeśli próbowałaś " -"przykładów to pewnie udało Ci się na nie natknąć. Występują (przynajmniej) " -"dwa charakterystyczne typy błędów: *błędy składni* (syntax errors) oraz " -"*wyjątki* (exceptions)." +"Do tej pory wiadomości o błędach były tylko wspomniane, ale jeśli " +"próbowałaś(-łeś) przykładów to pewnie udało ci się na nie natknąć. Występują " +"(przynajmniej) dwa charakterystyczne typy błędów: *błędy składni* (syntax " +"errors) oraz *wyjątki* (exceptions)." msgid "Syntax Errors" -msgstr "Błedy składni" +msgstr "Błędy składni" msgid "" "Syntax errors, also known as parsing errors, are perhaps the most common " "kind of complaint you get while you are still learning Python::" msgstr "" -"Błędy składni, inaczej zwane błędami parsowania, to najczęstrze skargi jakie " -"otrzymasz w swoim kierunku gdy wciąż uczysz się Pythona ::" +"Błędy składni, znane również jako błędy parsowania, są prawdopodobnie " +"najczęstszym rodzajem skarg, które pojawiają się podczas nauki Pythona::" msgid "" "The parser repeats the offending line and displays a little 'arrow' pointing " @@ -57,6 +54,13 @@ msgid "" "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 "" +"Parser powtarza błędną linię i wyświetla małą „strzałkę” wskazującą " +"najwcześniejszy punkt linii, w którym wykryto błąd. Błąd jest spowodowany " +"(lub przynajmniej wykryty) przez token *poprzedzający* strzałkę: w " +"przykładzie błąd jest wykryty w funkcji :func:`print`, ponieważ brakuje " +"przed nim dwukropka (``':'``). Nazwa pliku i numer linii są drukowane, abyś " +"wiedział(a), gdzie szukać, w przypadku, gdy dane wejściowe pochodzą ze " +"skryptu." msgid "Exceptions" msgstr "Wyjątki" @@ -79,20 +83,28 @@ msgstr "" 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)." -msgstr "" +"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 "" +"Ostatni wiersz komunikatu o błędzie wskazuje, co się stało. Wyjątki " +"występują w różnych typach, a typ jest drukowany jako część komunikatu: typy " +"w przykładzie to :exc:`ZeroDivisionError`, :exc:`NameError` " +"i :exc:`TypeError`. Ciąg wydrukowany jako typ wyjątku jest nazwą wbudowanego " +"wyjątku, który wystąpił. Jest to prawdą dla wszystkich wbudowanych " +"wyjątków, ale nie musi być prawdą dla wyjątków zdefiniowanych przez " +"użytkownika (choć jest to przydatna konwencja). Standardowe nazwy wyjątków " +"są wbudowanymi identyfikatorami (nie zarezerwowanymi słowami kluczowymi)." msgid "" "The rest of the line provides detail based on the type of exception and what " "caused it." msgstr "" "Pozostała część linii dostarcza szczegółów na temat typu wyjątku oraz " -"informacji co go spowodowało." +"informacji, co go spowodowało." msgid "" "The preceding part of the error message shows the context where the " @@ -100,10 +112,14 @@ msgid "" "a stack traceback listing source lines; however, it will not display lines " "read from standard input." msgstr "" +"Wcześniejsza część komunikatu o błędzie pokazuje kontekst, w którym wystąpił " +"wyjątek, w postaci śladu stosu. Ogólnie rzecz biorąc, zawiera on ślad stosu " +"z listą linii źródłowych; jednak nie wyświetli linii odczytanych ze " +"standardowego wejścia." msgid "" ":ref:`bltin-exceptions` lists the built-in exceptions and their meanings." -msgstr "" +msgstr ":ref:`bltin-exceptions` wymienia wbudowane wyjątki i ich znaczenie." msgid "Handling Exceptions" msgstr "Obsługa wyjątków" @@ -111,24 +127,35 @@ msgstr "Obsługa wyjątków" 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. ::" -msgstr "" +"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 "" +"Możliwe jest pisanie programów, które obsługują wybrane wyjątki. Spójrzmy na " +"poniższy przykład, który prosi użytkownika o wprowadzenie danych, dopóki nie " +"zostanie wprowadzona poprawna liczba całkowita, ale pozwala użytkownikowi na " +"przerwanie programu (przy użyciu :kbd:`Control-C` lub czegokolwiek innego " +"obsługiwanego przez system operacyjny); zauważ, że przerwanie wygenerowane " +"przez użytkownika jest sygnalizowane przez podniesienie " +"wyjątku :exc:`KeyboardInterrupt`. ::" msgid "The :keyword:`try` statement works as follows." -msgstr "" +msgstr "Instrukcja :keyword:`try` działa następująco." 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 "" +"W pierwszej kolejności wykonywane są instrukcje pod klauzulą *try* - " +"pomiędzy słowami kluczowymi :keyword:`try` i :keyword:`except`." 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 "" +"Jeżeli nie wystąpi żaden wyjątek, klauzula *except* jest pomijana i zostaje " +"zakończone wykonywanie instrukcji :keyword:`try`." msgid "" "If an exception occurs during execution of the :keyword:`try` clause, the " @@ -136,6 +163,10 @@ msgid "" "named after the :keyword:`except` keyword, the *except clause* is executed, " "and then execution continues after the try/except block." msgstr "" +"Jeśli wyjątek wystąpi podczas wykonywania klauzuli :keyword:`try`, reszta " +"klauzuli jest pomijana. Następnie, jeśli jego typ pasuje do wyjątku " +"nazwanego po słowie kluczowym :keyword:`except`, wykonywana jest *klauzula " +"except*, a następnie wykonanie jest kontynuowane po bloku try/except." msgid "" "If an exception occurs which does not match the exception named in the " @@ -143,6 +174,10 @@ msgid "" "handler is found, it is an *unhandled exception* and execution stops with a " "message as shown above." msgstr "" +"Jeśli wystąpi wyjątek, który nie pasuje do wyjątku nazwanego w *klauzuli " +"except*, jest on przekazywany do zewnętrznych instrukcji :keyword:`try`; " +"jeśli nie zostanie znaleziona obsługa, jest to *nieobsłużony wyjątek* i " +"wykonanie zatrzymuje się z komunikatem, jak pokazano powyżej." msgid "" "A :keyword:`try` statement may have more than one *except clause*, to " @@ -152,6 +187,12 @@ msgid "" "An *except clause* may name multiple exceptions as a parenthesized tuple, " "for example::" msgstr "" +"Instrukcja :keyword:`try` może mieć więcej niż jedną *klauzulę except*, aby " +"określić programy obsługi dla różnych wyjątków. Wykonany zostanie co " +"najwyżej jeden handler. Obsługiwane są tylko wyjątki, które występują w " +"odpowiadających im *klauzulach try*, a nie w kodzie obsługi tej samej " +"instrukcji :keyword:`!try`. *Klauzula except* może określać wiele wyjątków " +"krotką w nawiasach, na przykład::" msgid "" "A class in an :keyword:`except` clause is compatible with an exception if it " @@ -165,66 +206,68 @@ msgid "" "it would have printed B, B, B --- the first matching *except clause* is " "triggered." msgstr "" +"Zauważ, że jeśli *klauzule except* byłyby odwrócone (z ``except B`` na " +"pierwszym miejscu), wypisane zostałoby B, B, B --- uruchamiana jest pierwsza " +"pasująca *klauzula except*." msgid "" -"When an exception occurs, it may have associated values, also known as the " -"exception's *arguments*. The presence and types of the arguments depend on " -"the exception type." +"All exceptions inherit from :exc:`BaseException`, and so it can be used to " +"serve as a wildcard. Use this with extreme caution, since it is easy to mask " +"a real programming error in this way! It can also be used to print an error " +"message and then re-raise the exception (allowing a caller to handle the " +"exception as well)::" msgstr "" msgid "" -"The *except clause* may specify a variable after the exception name. The " -"variable is bound to the exception instance which typically has an ``args`` " -"attribute that stores the arguments. For convenience, builtin exception " -"types define :meth:`__str__` to print all the arguments without explicitly " -"accessing ``.args``. ::" +"Alternatively the last except clause may omit the exception name(s), however " +"the exception value must then be retrieved from ``sys.exc_info()[1]``." msgstr "" msgid "" -"The exception's :meth:`__str__` output is printed as the last part " -"('detail') of the message for unhandled exceptions." -msgstr "" - -msgid "" -":exc:`BaseException` is the common base class of all exceptions. One of its " -"subclasses, :exc:`Exception`, is the base class of all the non-fatal " -"exceptions. Exceptions which are not subclasses of :exc:`Exception` are not " -"typically handled, because they are used to indicate that the program should " -"terminate. They include :exc:`SystemExit` which is raised by :meth:`sys." -"exit` and :exc:`KeyboardInterrupt` which is raised when a user wishes to " -"interrupt the program." +"The :keyword:`try` ... :keyword:`except` statement has an optional *else " +"clause*, which, when present, must follow all *except clauses*. It is " +"useful for code that must be executed if the *try clause* does not raise an " +"exception. For example::" msgstr "" +"Instrukcja :keyword:`try` … :keyword:`except` posiada opcjonalną *klauzulę " +"else*, która, gdy jest obecna, musi następować po wszystkich *klauzulach " +"except*. Jest to przydatne w przypadku kodu, który musi zostać wykonany, " +"jeśli *klauzula try* nie rzuci wyjątku. Na przykład::" msgid "" -":exc:`Exception` can be used as a wildcard that catches (almost) everything. " -"However, it is good practice to be as specific as possible with the types of " -"exceptions that we intend to handle, and to allow any unexpected exceptions " -"to propagate on." +"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 "" +"Użycie klauzuli :keyword:`!else` jest lepsze niż dodanie dodatkowego kodu do " +"klauzuli :keyword:`try`, ponieważ pozwala uniknąć przypadkowego wychwycenia " +"wyjątku, który nie został rzucony przez kod chroniony instrukcją :keyword:`!" +"try`… :keyword:`!except`." msgid "" -"The most common pattern for handling :exc:`Exception` is to print or log the " -"exception and then re-raise it (allowing a caller to handle the exception as " -"well)::" +"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 "" msgid "" -"The :keyword:`try` ... :keyword:`except` statement has an optional *else " -"clause*, which, when present, must follow all *except clauses*. It is " -"useful for code that must be executed if the *try clause* does not raise an " -"exception. For example::" +"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 reference ``.args``. One may also instantiate an exception first " +"before raising it and add any attributes to it as desired. ::" msgstr "" 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." +"If an exception has arguments, they are printed as the last part ('detail') " +"of the message for unhandled exceptions." msgstr "" msgid "" -"Exception handlers do not handle only exceptions that occur immediately in " -"the *try clause*, but also those that 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 "" @@ -235,13 +278,15 @@ msgid "" "The :keyword:`raise` statement allows the programmer to force a specified " "exception to occur. For example::" msgstr "" +"Instrukcja :keyword:`raise` pozwala programiście wymusić wystąpienie " +"żądanego wyjątku. Na przykład::" msgid "" "The sole argument to :keyword:`raise` indicates the exception to be raised. " "This must be either an exception instance or an exception class (a class " -"that derives from :class:`BaseException`, such as :exc:`Exception` or one of " -"its subclasses). If an exception class is passed, it will be implicitly " -"instantiated by calling its constructor with no arguments::" +"that derives from :class:`Exception`). If an exception class is passed, it " +"will be implicitly instantiated by calling its constructor with no " +"arguments::" msgstr "" msgid "" @@ -249,6 +294,9 @@ msgid "" "handle it, a simpler form of the :keyword:`raise` statement allows you to re-" "raise the exception::" msgstr "" +"Jeśli chcesz rozpoznać, czy wyjątek został rzucony, ale nie zamierzasz go " +"obsługiwać, prostsza forma instrukcji :keyword:`raise` pozwala na ponowne " +"rzucenie wyjątku::" msgid "Exception Chaining" msgstr "Łańcuch wyjątków" @@ -258,23 +306,34 @@ msgid "" "will have the exception being handled attached to it and included in the " "error message::" msgstr "" +"Jeśli nieobsłużony wyjątek wystąpi wewnątrz sekcji :keyword:`except`, " +"zostanie do niego dołączony obsługiwany wyjątek i uwzględniony w komunikacie " +"o błędzie::" msgid "" -"To indicate that an exception is a direct consequence of another, the :" -"keyword:`raise` statement allows an optional :keyword:`from` clause::" +"To indicate that an exception is a direct consequence of another, " +"the :keyword:`raise` statement allows an optional :keyword:`from` " +"clause::" msgstr "" +"Aby wskazać, że wyjątek jest bezpośrednią konsekwencją innego, " +"instrukcja :keyword:`raise` dopuszcza opcjonalną " +"klauzulę :keyword:`from`::" msgid "This can be useful when you are transforming exceptions. For example::" -msgstr "" +msgstr "Może to być przydatne podczas przekształcania wyjątków. Na przykład::" msgid "" "It also allows disabling automatic exception chaining using the ``from " "None`` idiom::" msgstr "" +"Umożliwia również wyłączenie automatycznego łączenia wyjątków przy użyciu " +"idiomu ``from None``::" msgid "" "For more information about chaining mechanics, see :ref:`bltin-exceptions`." msgstr "" +"Więcej informacji na temat mechaniki łączenia w łańcuchy można znaleźć w " +"rozdziale :ref:`bltin-exceptions`." msgid "User-defined Exceptions" msgstr "Wyjątki zdefiniowane przez użytkownika" @@ -285,6 +344,10 @@ msgid "" "typically be derived from the :exc:`Exception` class, either directly or " "indirectly." msgstr "" +"Programy mogą nazywać własne wyjątki, tworząc nową klasę wyjątków (więcej " +"informacji na temat klas Python można znaleźć w rozdziale :ref:`tut-" +"classes`). Wyjątki powinny zazwyczaj dziedziczyć z klasy :exc:`Exception`, " +"bezpośrednio lub pośrednio." msgid "" "Exception classes can be defined which do anything any other class can do, " @@ -292,25 +355,35 @@ msgid "" "allow information about the error to be extracted by handlers for the " "exception." msgstr "" +"Można zdefiniować klasy wyjątków, które robią wszystko, co może zrobić każda " +"inna klasa, ale zwykle są one proste, często oferując tylko kilka atrybutów, " +"które pozwalają na wyodrębnienie informacji o błędzie przez kod obsługi " +"wyjątku." msgid "" "Most exceptions are defined with names that end in \"Error\", similar to the " "naming of the standard exceptions." msgstr "" +"Większość wyjątków ma nazwy kończące się na „Error”, podobnie jak w " +"przypadku standardowych wyjątków." msgid "" "Many standard modules define their own exceptions to report errors that may " -"occur in functions they define." +"occur in functions they define. More information on classes is presented in " +"chapter :ref:`tut-classes`." msgstr "" msgid "Defining Clean-up Actions" -msgstr "" +msgstr "Definiowanie działań porządkujących" msgid "" "The :keyword:`try` statement has another optional clause which is intended " "to define clean-up actions that must be executed under all circumstances. " "For example::" msgstr "" +"Instrukcja :keyword:`try` ma inną opcjonalną klauzulę, która jest " +"przeznaczona do definiowania działań porządkujących, które muszą być " +"wykonane w każdych okolicznościach. Na przykład::" msgid "" "If a :keyword:`finally` clause is present, the :keyword:`!finally` clause " @@ -319,6 +392,11 @@ msgid "" "statement produces an exception. The following points discuss more complex " "cases when an exception occurs:" msgstr "" +"Jeśli klauzula :keyword:`finally` jest obecna, klauzula :keyword:`!finally` " +"wykona się jako ostatnie zadanie przed zakończeniem " +"instrukcji :keyword:`try`. Klauzula :keyword:`!finally` uruchomi się " +"niezależnie od tego, czy instrukcja :keyword:`!try` spowoduje wyjątek. " +"Poniższe punkty omawiają bardziej złożone przypadki wystąpienia wyjątku:" msgid "" "If an exception occurs during execution of the :keyword:`!try` clause, the " @@ -326,53 +404,79 @@ msgid "" "not handled by an :keyword:`!except` clause, the exception is re-raised " "after the :keyword:`!finally` clause has been executed." msgstr "" +"Jeśli podczas wykonywania klauzuli :keyword:`!try` wystąpi wyjątek, może on " +"zostać obsłużony przez klauzulę :keyword:`except`. Jeśli wyjątek nie " +"zostanie obsłużony przez klauzulę :keyword:`!except`, zostanie on ponownie " +"rzucony po wykonaniu klauzuli :keyword:`!finally`." 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 "" +"Wyjątek może wystąpić podczas wykonywania klauzul :keyword:`!except` " +"lub :keyword:`!else`. Ponownie, wyjątek jest ponownie rzucany po wykonaniu " +"klauzuli :keyword:`!finally`." msgid "" -"If the :keyword:`!finally` clause executes a :keyword:`break`, :keyword:" -"`continue` or :keyword:`return` statement, exceptions are not re-raised." +"If the :keyword:`!finally` clause executes " +"a :keyword:`break`, :keyword:`continue` or :keyword:`return` statement, " +"exceptions are not re-raised." msgstr "" +"Jeśli klauzula :keyword:`!finally` wykonuje " +"instrukcje :keyword:`break`, :keyword:`continue` lub :keyword:`return`, " +"wyjątki nie są ponownie rzucane." 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 "" +"Jeśli instrukcja :keyword:`!try` osiągnie " +"instrukcję :keyword:`break`, :keyword:`continue` lub :keyword:`return`, " +"klauzula :keyword:`!finally` wykona się tuż przed wykonaniem " +"instrukcji :keyword:`!break`, :keyword:`!continue` lub :keyword:`!return`." msgid "" "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." +"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 "" +"Jeśli klauzula :keyword:`!finally` zawiera instrukcję :keyword:`!return`, " +"zwróconą wartością będzie ta z instrukcji :keyword:`!return` " +"klauzuli :keyword:`!finally`, a nie wartość z instrukcji :keyword:`!return` " +"klauzuli :keyword:`!try`." msgid "For example::" msgstr "Dla przykładu::" msgid "A more complicated example::" -msgstr "" +msgstr "Bardziej skomplikowany przykład::" 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:`!" +"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 "" +"Jak widać, klauzula :keyword:`finally` jest wykonywana w każdym " +"przypadku. :exc:`TypeError` rzucony przez dzielenie dwóch ciągów znaków nie " +"jest obsłużony przez klauzulę :keyword:`except` i dlatego jest ponownie " +"rzucony po wykonaniu klauzuli :keyword:`!finally`." msgid "" "In real world applications, the :keyword:`finally` clause is useful for " "releasing external resources (such as files or network connections), " "regardless of whether the use of the resource was successful." msgstr "" +"W prawdziwych aplikacjach, klauzula :keyword:`finally` jest przydatna do " +"zwalniania zewnętrznych zasobów (takich jak pliki lub połączenia sieciowe), " +"niezależnie od tego, czy użycie zasobu zakończyło się powodzeniem." msgid "Predefined Clean-up Actions" -msgstr "" +msgstr "Predefiniowane akcje porządkujące" msgid "" "Some objects define standard clean-up actions to be undertaken when the " @@ -380,6 +484,11 @@ msgid "" "the object succeeded or failed. Look at the following example, which tries " "to open a file and print its contents to the screen. ::" msgstr "" +"Niektóre obiekty definiują standardowe akcje porządkujące, które mają zostać " +"podjęte, gdy obiekt nie jest już potrzebny, niezależnie od tego, czy " +"operacja przy użyciu obiektu powiodła się, czy nie. Spójrz na poniższy " +"przykład, który próbuje otworzyć plik i wydrukować jego zawartość na " +"ekranie::" msgid "" "The problem with this code is that it leaves the file open for an " @@ -389,6 +498,12 @@ msgid "" "to be used in a way that ensures they are always cleaned up promptly and " "correctly. ::" msgstr "" +"Problem z tym kodem polega na tym, że pozostawia on plik otwarty przez " +"nieokreślony czas po zakończeniu wykonywania tej części kodu. Nie jest to " +"problemem w prostych skryptach, ale może być problemem dla większych " +"aplikacjach. Instrukcja :keyword:`with` pozwala na używanie obiektów takich " +"jak pliki w sposób, który zapewnia, że są one zawsze czyszczone szybko i " +"poprawnie::" msgid "" "After the statement is executed, the file *f* is always closed, even if a " @@ -396,54 +511,7 @@ msgid "" "files, provide predefined clean-up actions will indicate this in their " "documentation." msgstr "" - -msgid "Raising and Handling Multiple Unrelated Exceptions" -msgstr "" - -msgid "" -"There are situations where it is necessary to report several exceptions that " -"have occurred. This it often the case in concurrency frameworks, when " -"several tasks may have failed in parallel, but there are also other use " -"cases where it is desirable to continue execution and collect multiple " -"errors rather than raise the first exception." -msgstr "" - -msgid "" -"The builtin :exc:`ExceptionGroup` wraps a list of exception instances so " -"that they can be raised together. It is an exception itself, so it can be " -"caught like any other exception. ::" -msgstr "" - -msgid "" -"By using ``except*`` instead of ``except``, we can selectively handle only " -"the exceptions in the group that match a certain type. In the following " -"example, which shows a nested exception group, each ``except*`` clause " -"extracts from the group exceptions of a certain type while letting all other " -"exceptions propagate to other clauses and eventually to be reraised. ::" -msgstr "" - -msgid "" -"Note that the exceptions nested in an exception group must be instances, not " -"types. This is because in practice the exceptions would typically be ones " -"that have already been raised and caught by the program, along the following " -"pattern::" -msgstr "" - -msgid "Enriching Exceptions with Notes" -msgstr "" - -msgid "" -"When an exception is created in order to be raised, it is usually " -"initialized with information that describes the error that has occurred. " -"There are cases where it is useful to add information after the exception " -"was caught. For this purpose, exceptions have a method ``add_note(note)`` " -"that accepts a string and adds it to the exception's notes list. The " -"standard traceback rendering includes all notes, in the order they were " -"added, after the exception. ::" -msgstr "" - -msgid "" -"For example, when collecting exceptions into an exception group, we may want " -"to add context information for the individual errors. In the following each " -"exception in the group has a note indicating when this error has occurred. ::" -msgstr "" +"Po wykonaniu instrukcji, plik *f* jest zawsze zamykany, nawet jeśli " +"napotkano problem podczas przetwarzania linii. Obiekty, które, podobnie jak " +"pliki, zapewniają predefiniowane akcje czyszczenia, wskażą to w swojej " +"dokumentacji." diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index cd3aa5ace5..087b496a89 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -1,38 +1,47 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Ciarbin Ciarbin , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Ciarbin Ciarbin , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Floating Point Arithmetic: Issues and Limitations" msgstr "Arytmetyka liczb zmiennoprzecinkowych: Problemy i ograniczenia" msgid "" "Floating-point numbers are represented in computer hardware as base 2 " -"(binary) fractions. For example, the **decimal** fraction ``0.125`` has " -"value 1/10 + 2/100 + 5/1000, and in the same way the **binary** fraction " -"``0.001`` has value 0/2 + 0/4 + 1/8. These two fractions have identical " -"values, the only real difference being that the first is written in base 10 " -"fractional notation, and the second in base 2." +"(binary) fractions. For example, the decimal fraction ::" +msgstr "" +"Liczby zmiennoprzecinkowe są reprezentowane w systemie komputerowym jako " +"ułamki o podstawie 2 (binarne). Na przykład, ułamek dziesiętny ::" + +msgid "" +"has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::" +msgstr "" + +msgid "" +"has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the " +"only real difference being that the first is written in base 10 fractional " +"notation, and the second in base 2." msgstr "" msgid "" @@ -41,26 +50,37 @@ msgid "" "point numbers you enter are only approximated by the binary floating-point " "numbers actually stored in the machine." msgstr "" +"Niestety, większości ułamków dziesiętnych nie można przedstawić dokładnie " +"jako ułamków binarnych. Konsekwencją jest to, że ogólnie wprowadzane " +"dziesiętne liczby zmiennoprzecinkowe są jedynie przybliżane przez binarne " +"liczby zmiennoprzecinkowe faktycznie przechowywane w maszynie." msgid "" "The problem is easier to understand at first in base 10. Consider the " "fraction 1/3. You can approximate that as a base 10 fraction::" msgstr "" +"Problem jest łatwiejszy do zrozumienia na początku przy podstawie 10. Rozważ " +"ułamek 1/3. Możesz go przybliżyć jako ułamek o podstawie 10::" msgid "or, better, ::" -msgstr "" +msgstr "albo lepiej::" msgid "" "and so on. No matter how many digits you're willing to write down, the " "result will never be exactly 1/3, but will be an increasingly better " "approximation of 1/3." msgstr "" +"i tak dalej. Bez względu na to, ile cyfr jesteś w stanie zapisać, wynik " +"nigdy nie będzie dokładnie 1/3, ale będzie coraz lepszym przybliżeniem 1/3." 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 " "base 2, 1/10 is the infinitely repeating fraction ::" msgstr "" +"W ten sam sposób, bez względu na to, ile cyfr o podstawie 2 chcesz użyć, " +"wartość dziesiętna 0,1 nie może być dokładnie przedstawiona jako ułamek o " +"podstawie 2. W podstawie 2, 1/10 to ułamek okresowy ::" msgid "" "Stop at any finite number of bits, and you get an approximation. On most " @@ -70,6 +90,13 @@ msgid "" "fraction is ``3602879701896397 / 2 ** 55`` which is close to but not exactly " "equal to the true value of 1/10." msgstr "" +"Zatrzymaj się na dowolnej skończonej liczbie bitów, a otrzymasz " +"przybliżenie. Na większości dzisiejszych maszyn liczby zmiennoprzecinkowe są " +"aproksymowane przy użyciu ułamka binarnego z licznikiem wykorzystującym " +"pierwsze 53 bity, zaczynając od najbardziej znaczącego bitu i mianownikiem " +"jako potęgą dwójki. W przypadku 1/10 ułamek binarny jest równy " +"``3602879701896397 / 2 ** 55`` i jest zbliżony do prawdziwej wartości 1/10, " +"ale nie do końca jej równy." msgid "" "Many users are not aware of the approximation because of the way values are " @@ -78,16 +105,28 @@ msgid "" "if Python were to print the true decimal value of the binary approximation " "stored for 0.1, it would have to display ::" msgstr "" +"Wielu użytkowników nie jest świadomych przybliżenia ze względu na sposób " +"wyświetlania wartości. Python wypisuje tylko przybliżenie dziesiętne do " +"prawdziwej wartości dziesiętnej przybliżenia binarnego zapisanego przez " +"maszynę. Na większości maszyn, gdyby Python miał wydrukować prawdziwą " +"wartość dziesiętną przybliżenia binarnego zapisanego dla 0,1 musiałby " +"wyświetlić ::" msgid "" "That is more digits than most people find useful, so Python keeps the number " "of digits manageable by displaying a rounded value instead ::" msgstr "" +"To więcej cyfr, niż większość ludzi uważa za przydatne, więc Python " +"utrzymuje liczbę cyfr tak by były one do opanowania, wyświetlając zamiast " +"tego zaokrągloną wartość ::" msgid "" "Just remember, even though the printed result looks like the exact value of " "1/10, the actual stored value is the nearest representable binary fraction." msgstr "" +"Pamiętaj tylko, że chociaż wydrukowany wynik wygląda jak dokładna wartość " +"1/10, rzeczywista zapisana wartość to najbliższa reprezentatywna część " +"binarna." msgid "" "Interestingly, there are many different decimal numbers that share the same " @@ -98,6 +137,13 @@ msgid "" "values share the same approximation, any one of them could be displayed " "while still preserving the invariant ``eval(repr(x)) == x``." msgstr "" +"Co ciekawe, istnieje wiele różnych liczb dziesiętnych, które mają ten sam " +"najbliższy przybliżony ułamek binarny. Na przykład liczby ``0.1``, " +"``0.10000000000000001`` i " +"``0.1000000000000000055511151231257827021181583404541015625`` są wszystkie " +"przybliżone przez ``3602879701896397 / 2 ** 55``. Ponieważ wszystkie te " +"wartości dziesiętne mają to samo przybliżenie, każda z nich może zostać " +"wyświetlona przy jednoczesnym zachowaniu niezmiennika ``eval(repr(x)) == x``." msgid "" "Historically, the Python prompt and built-in :func:`repr` function would " @@ -105,6 +151,10 @@ msgid "" "Starting with Python 3.1, Python (on most systems) is now able to choose the " "shortest of these and simply display ``0.1``." msgstr "" +"W przeszłości, interaktywny prompt oraz wbudowana funkcja " +"Pythona :func:`repr` wybierały tę z 17 cyframi znaczącymi, " +"``0.10000000000000001``. Począwszy od Pythona 3.1, Python (w większości " +"systemów) może teraz wybrać najkrótszy z nich i po prostu wyświetlić ``0.1``." msgid "" "Note that this is in the very nature of binary floating-point: this is not a " @@ -113,33 +163,50 @@ msgid "" "arithmetic (although some languages may not *display* the difference by " "default, or in all output modes)." msgstr "" +"Zauważ, że leży to w samej naturze binarnej liczby zmiennoprzecinkowej: nie " +"jest to błąd w Pythonie ani w twoim kodzie. Zobaczysz to samo we wszystkich " +"językach obsługujących arytmetykę zmiennoprzecinkową twojego sprzętu " +"(chociaż niektóre języki mogą nie *wyświetlać* różnicy domyślnie lub we " +"wszystkich trybach wyjściowych)." msgid "" "For more pleasant output, you may wish to use string formatting to produce a " "limited number of significant digits::" msgstr "" +"Aby uzyskać przyjemniejszy wynik, możesz użyć formatowania ciągu znaków w " +"celu uzyskania ograniczonej liczby cyfr znaczących::" 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." msgstr "" +"Ważne jest, aby zdać sobie sprawę, że w rzeczywistości jest to złudzenie: po " +"prostu zaokrąglasz *wyświetlanie* prawdziwej wartości zapisanej w komputerze." 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::" msgstr "" +"Jedna iluzja może zrodzić kolejną. Na przykład, z powodu że 0,1 nie jest " +"dokładnie 1/10, zsumowanie trzech wartości 0,1 może nie dać dokładnie 0,3::" 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::" +"cannot get any closer to the exact value of 3/10, then pre-rounding " +"with :func:`round` function cannot help::" msgstr "" +"Ponadto, ponieważ 0,1 nie może zbliżyć się do dokładnej wartości 1/10, a 0,3 " +"nie może zbliżyć się do dokładnej wartości 3/10, to wstępne zaokrąglenie za " +"pomocą funkcji :func:`round` nie może pomóc::" 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::" msgstr "" +"Chociaż liczb nie można już bardziej przybliżyć do ich dokładnych wartości, " +"funkcja :func:`round` może być przydatna do późniejszego zaokrąglenia, tak " +"aby wyniki z niedokładnymi wartościami stały się porównywalne ze sobą::" msgid "" "Binary floating-point arithmetic holds many surprises like this. The " @@ -148,6 +215,12 @@ msgid "" "`_ for a more complete account of other " "common surprises." msgstr "" +"Binarna arytmetyka zmiennoprzecinkowa kryje w sobie wiele takich " +"niespodzianek. Problem z „0,1” został szczegółowo wyjaśniony poniżej, w " +"sekcji „Błąd reprezentacji”. Zobacz `The Perils of Floating Point " +"(Niebezpieczeństwa liczb zmiennoprzecinkowych) `_, aby uzyskać pełniejszy opis innych często spotykanych " +"niespodzianek." msgid "" "As that says near the end, \"there are no easy answers.\" Still, don't be " @@ -158,54 +231,87 @@ msgid "" "decimal arithmetic and that every float operation can suffer a new rounding " "error." msgstr "" +"Jak jest tam napisane pod koniec, „nie ma łatwych odpowiedzi”. Mimo to nie " +"należy nadmiernie uważać na liczby zmiennoprzecinkowe! Błędy w operacjach " +"zmiennoprzecinkowych Pythona są dziedziczone z budowy komputera i na " +"większości maszyn są rzędu nie więcej niż 1 przez 2\\*\\*53 na operację. " +"Jest to więcej niż wystarczające dla większości zadań, ale należy pamiętać, " +"że nie jest to arytmetyka dziesiętna i że każda operacja zmiennoprzecinkowa " +"może napotkać nowy błąd zaokrąglenia." 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 "" +"Chociaż istnieją przypadki skrajne, w większości przypadkowych zastosowań " +"arytmetyki zmiennoprzecinkowej zobaczysz oczekiwany wynik, jeśli po prostu " +"zaokrąglisz wyświetlanie końcowych wyników do oczekiwanej liczby cyfr " +"dziesiętnych. :func:`str` zwykle wystarcza, lecz dla dokładniejszej kontroli " +"możesz zobaczyć opis formatowania tekstu za pomocą metody :meth:`str.format` " +"w :ref:`formatstrings`." 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 "" +"W przypadkach użycia, które wymagają dokładnej reprezentacji dziesiętnej, " +"spróbuj użyć modułu :mod:`decimal`, który implementuje arytmetykę dziesiętną " +"odpowiednią dla aplikacji księgowych i aplikacji o wysokiej precyzji." msgid "" "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 "" +"Inną formą wspierającą arytmetykę dokładną jest moduł :mod:`fractions` " +"realizujący arytmetykę opartą na liczbach wymiernych (aby liczby takie jak " +"1/3 mogły być reprezentowane dokładnie)." msgid "" "If you are a heavy user of floating point operations you should take a look " "at the NumPy package and many other packages for mathematical and " -"statistical operations supplied by the SciPy project. See ." +"statistical operations supplied by the SciPy project. See ." msgstr "" +"Jeśli często korzystasz z operacji zmiennoprzecinkowych, powinieneś rzucić " +"okiem na pakiet NumPy i wiele innych pakietów do operacji matematycznych i " +"statystycznych dostarczonych przez projekt SciPy. Zobacz ." 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 "" +"Python udostępnia narzędzia, które mogą pomóc w tych rzadkich przypadkach, " +"gdy naprawdę *musisz* poznać dokładną wartość liczby zmiennoprzecinkowej. " +"Metoda :meth:`float.as_integer_ratio` wyraża wartość float jako ułamek::" msgid "" "Since the ratio is exact, it can be used to losslessly recreate the original " "value::" msgstr "" +"Ponieważ stosunek jest dokładny, można go użyć do bezstratnego odtworzenia " +"oryginalnej wartości::" msgid "" "The :meth:`float.hex` method expresses a float in hexadecimal (base 16), " "again giving the exact value stored by your computer::" msgstr "" +"Metoda :meth:`float.hex` wyraża liczbę zmiennoprzecinkową w systemie " +"hexadecymalnym (podstawa 16), ponownie podając dokładną wartość " +"przechowywaną przez komputer:" msgid "" "This precise hexadecimal representation can be used to reconstruct the float " "value exactly::" msgstr "" +"Ta precyzyjna reprezentacja szesnastkowa może być wykorzystana do dokładnego " +"zrekonstruowania wartości liczby zmiennoprzecinkowej::" msgid "" "Since the representation is exact, it is useful for reliably porting values " @@ -213,6 +319,10 @@ msgid "" "data with other languages that support the same format (such as Java and " "C99)." msgstr "" +"Ponieważ ta reprezentacja jest dokładna, przydatna jest ona do niezawodnego " +"przenoszenia wartości między różnymi wersjami Pythona (niezależność od " +"platformy) i wymiany danych z innymi językami obsługującymi ten sam format " +"(takimi jak Java czy C99)." msgid "" "Another helpful tool is the :func:`math.fsum` function which helps mitigate " @@ -221,15 +331,23 @@ msgid "" "so that the errors do not accumulate to the point where they affect the " "final total:" msgstr "" +"Kolejnym pomocnym narzędziem jest funkcja :func:`math.fsum`, która pomaga " +"złagodzić utratę precyzji podczas sumowania. Śledzi „utracone cyfry”, gdy " +"wartości są dodawane do bieżącej sumy. Może to mieć wpływ na ogólną " +"dokładność, aby błędy nie kumulowały się do punktu, w którym wpływają na " +"ostateczny wynik:" msgid "Representation Error" -msgstr "" +msgstr "Błąd reprezentacji" msgid "" "This section explains the \"0.1\" example in detail, and shows how you can " "perform an exact analysis of cases like this yourself. Basic familiarity " "with binary floating-point representation is assumed." msgstr "" +"Ta sekcja wyjaśnia szczegółowo przykład „0,1” i pokazuje, jak samodzielnie " +"przeprowadzić dokładną analizę takich przypadków. Zakładamy że masz " +"podstawową znajomość binarnej reprezentacji liczb zmiennoprzecinkowych." msgid "" ":dfn:`Representation error` refers to the fact that some (most, actually) " @@ -238,58 +356,88 @@ msgid "" "Fortran, and many others) often won't display the exact decimal number you " "expect." msgstr "" +":dfn:`Błąd reprezentacji` odnosi się do faktu, że niektóre (właściwie " +"większość) ułamków dziesiętnych nie może być reprezentowane dokładnie jako " +"ułamki binarne (o podstawie 2). Jest to główny powód, dla którego Python " +"(lub Perl, C, C++, Java, Fortran i wiele innych) często nie wyświetla " +"dokładnie takiej liczby dziesiętnej, jakiej oczekujesz." 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 ::" -msgstr "" +"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 "" +"Dlaczego? 1/10 nie jest dokładnie reprezentowalne jako ułamek binarny. " +"Prawie wszystkie dzisiejsze maszyny (listopad 2000) używają arytmetyki " +"zmiennoprzecinkowej IEEE-754 i prawie wszystkie platformy odwzorowują liczby " +"zmiennoprzecinkowe Pythona na „podwójną precyzję” IEEE-754. 754 podwójnych " +"zawiera 53 bity dokładności, więc na wejściu komputer stara się zamienić 0,1 " +"na najbliższy możliwy ułamek w postaci *J*/2**\\ *N*, gdzie *J* jest liczbą " +"całkowitą zawierającą dokładnie 53 bity. Zapisując ::" msgid "as ::" -msgstr "" +msgstr "jako ::" msgid "" "and recalling that *J* has exactly 53 bits (is ``>= 2**52`` but ``< " "2**53``), the best value for *N* is 56::" msgstr "" +"i pamiętając, że *J* ma dokładnie 53 bity (jest ``>= 2**52`` ale ``< " +"2**53``), najlepszą wartością dla *N* jest 56::" 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::" msgstr "" +"Oznacza to, że 56 jest jedyną wartością dla *N*, która pozostawia *J* " +"dokładnie 53 bity. Najlepszą możliwą wartością dla *J* jest zatem " +"zaokrąglony iloraz::" msgid "" "Since the remainder is more than half of 10, the best approximation is " "obtained by rounding up::" msgstr "" +"Ponieważ reszta jest większa niż połowa z 10, najlepsze przybliżenie " +"uzyskuje się zaokrąglając w górę::" msgid "" "Therefore the best possible approximation to 1/10 in 754 double precision " "is::" msgstr "" +"Dlatego najlepszym możliwym przybliżeniem do 1/10 w arytmetyce podwójnej " +"precyzji typu 754 jest::" msgid "" "Dividing both the numerator and denominator by two reduces the fraction to::" -msgstr "" +msgstr "Podzielenie licznika i mianownika przez dwa zmniejsza ułamek do::" msgid "" "Note that since we rounded up, this is actually a little bit larger than " "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 "" +"Zauważ, że ponieważ zaokrągliliśmy w górę, jest to w rzeczywistości trochę " +"więcej niż 1/10; gdybyśmy nie zaokrąglili w górę, iloraz byłby nieco " +"mniejszy niż 1/10. Ale w żadnym wypadku nie może to być *dokładnie* 1/10!" 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 "" +"Tak więc komputer nigdy nie „widzi” 1/10: to, co widzi, to dokładny ułamek " +"podany powyżej, najlepsze przybliżenie w standardzie podwójnej precyzji 754, " +"jakie może uzyskać::" msgid "" "If we multiply that fraction by 10\\*\\*55, we can see the value out to 55 " "decimal digits::" msgstr "" +"Jeśli pomnożymy ten ułamek przez 10\\*\\*55, otrzymamy wartość z " +"dokładnością do 55 cyfr dziesiętnych::" msgid "" "meaning that the exact number stored in the computer is equal to the decimal " @@ -297,8 +445,13 @@ msgid "" "displaying the full decimal value, many languages (including older versions " "of Python), round the result to 17 significant digits::" msgstr "" +"co oznacza, że ​​dokładna liczba zapisana w komputerze jest równa wartości " +"dziesiętnej 0,1000000000000000055511151231257827021181583404541015625. " +"Zamiast wyświetlać pełną wartość dziesiętną, wiele języków (w tym starsze " +"wersje Pythona) zaokrągla wynik do 17 cyfr znaczących::" msgid "" "The :mod:`fractions` and :mod:`decimal` modules make these calculations " "easy::" msgstr "" +"Moduły :mod:`fractions` oraz :mod:`decimal` ułatwiają tego typu obliczenia::" diff --git a/tutorial/index.po b/tutorial/index.po index f14c852980..e2f3286275 100644 --- a/tutorial/index.po +++ b/tutorial/index.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "The Python Tutorial" msgstr "Python Tutorial" @@ -78,13 +78,14 @@ msgstr "" 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." +"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 "" -"Opisy standardowych obiektów i modułów znajdziesz w :ref:`library-index`. :" -"ref:`reference-index` daje bardziej formalną definicję języka. Aby pisać " -"rozszerzenia w C lub C++, przeczytaj :ref:`extending-index` i :ref:`c-api-" -"index`. Jest również kilka książek omawiających wyczerpująco Pythona." +"Opisy standardowych obiektów i modułów znajdziesz w :ref:`library-" +"index`. :ref:`reference-index` daje bardziej formalną definicję języka. Aby " +"pisać rozszerzenia w C lub C++, przeczytaj :ref:`extending-index` i :ref:`c-" +"api-index`. Jest również kilka książek omawiających wyczerpująco Pythona." msgid "" "This tutorial does not attempt to be comprehensive and cover every single " @@ -94,12 +95,12 @@ msgid "" "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 "" -"Ten tutorial nie próbuje wyczerpująco omówić każdą funkcję Pythona, lub " -"nawet każdą często używaną funkcję. Zamiast tego wprowadza wiele funkcji " -"najbardziej wartych zauważenia i da ci dobre rozumienie smaku i stylu " -"języka. Po przeczytaniu go, będziesz w stanie czytać i pisać moduły i " -"programy Pythona, oraz będziesz gotowy uczyć się więcej o różnych modułach " -"bibliotek Pythona opisanych w :ref:`library-index`." +"Ten tutorial nie próbuje wyczerpująco omówić każdej funkcji Pythona ani " +"nawet każdej często używanej funkcji. Zamiast tego wprowadza wiele " +"funkcjonalności najbardziej wartych zauważenia i da ci dobre zrozumienie " +"smaku i stylu języka. Po przeczytaniu go będziesz w stanie czytać i pisać " +"moduły i programy Pythona oraz będziesz gotowy uczyć się więcej na temat " +"różnych modułów i bibliotek Pythona, opisanych w :ref:`library-index`." msgid "The :ref:`glossary` is also worth going through." msgstr "Warto również przejrzeć :ref:`glossary`." diff --git a/tutorial/inputoutput.po b/tutorial/inputoutput.po index b241a2eab4..2fbefc4724 100644 --- a/tutorial/inputoutput.po +++ b/tutorial/inputoutput.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Input and Output" msgstr "Wejście i wyjście" @@ -32,22 +31,33 @@ msgid "" "printed in a human-readable form, or written to a file for future use. This " "chapter will discuss some of the possibilities." msgstr "" +"Wyjście programu można zaprezentować na różne sposoby; można wypisać dane w " +"formie czytelnej dla człowieka lub zapisać do pliku do wykorzystania w " +"przyszłości. Ten rozdział omówi niektóre z możliwości." msgid "Fancier Output Formatting" -msgstr "" +msgstr "Wymyślniejsze formatowanie wyjścia" 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.)" +"method of file objects; the standard output file can be referenced as " +"``sys.stdout``. See the Library Reference for more information on this.)" msgstr "" +"Do tej pory natknęliśmy się na dwa sposoby wypisywania wartości: *wyrażenia* " +"i funkcję :func:`print`. (Trzecim sposobem jest użycie metody :meth:`write` " +"obiektu pliku; do pliku standardowego wyjścia można odwołać się używając " +"``sys.stdout``. Więcej informacji na ten temat znajdziesz w dokumentacji " +"biblioteki standardowej.)" msgid "" "Often you'll want more control over the formatting of your output than " "simply printing space-separated values. There are several ways to format " "output." msgstr "" +"Często będziesz chciał(a) mieć więcej kontroli nad formatowaniem swojego " +"wyjścia niż proste wypisywanie wartości rozdzielonych spacją. Jest kilka " +"sposobów na formatowanie wyjścia." msgid "" "To use :ref:`formatted string literals `, begin a string with " @@ -55,6 +65,10 @@ msgid "" "Inside this string, you can write a Python expression between ``{`` and ``}" "`` characters that can refer to variables or literal values." msgstr "" +"Aby użyć :ref:`literału ciągu znaków `, rozpocznij ciąg " +"znaków znakiem ``f`` lub ``F`` przed otwierającym znakiem cudzysłowu. " +"Wewnątrz ciągu znaków, możesz wpisać wyrażenia Pythona pomiędzy znakami " +"``{`` i ``}``, które mogą odnosić się do zmiennych lub wartości." msgid "" "The :meth:`str.format` method of strings requires more manual effort. " @@ -62,6 +76,10 @@ msgid "" "substituted and can provide detailed formatting directives, but you'll also " "need to provide the information to be formatted." msgstr "" +"Metoda :meth:`str.format` ciągów znaków wymaga większego ręcznego wysiłku. " +"Nadal będziesz używał(a) ``{`` i ``}`` do zaznaczenia gdzie zmienna zostanie " +"podstawiona i możesz podać dokładne dyrektywy formatowania, ale będziesz " +"musiał(a) podać również informacje do sformatowania." msgid "" "Finally, you can do all the string handling yourself by using string slicing " @@ -69,23 +87,39 @@ msgid "" "string type has some methods that perform useful operations for padding " "strings to a given column width." msgstr "" +"Wreszcie, możesz wykonać całą obsługę ciągów znaków samodzielnie, używając " +"operacji krojenia (slicing) i konkatenacji, aby stworzyć dowolny układ, jaki " +"możesz sobie wyobrazić. Typ ciągu znaków posiada kilka metod, które wykonują " +"przydatne operacje do wypełniania ciągów znaków do danej szerokości kolumny." 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." msgstr "" +"Gdy nie potrzebujesz wymyślnego wyjścia, tylko chcesz szybko wyświetlić " +"zmienne do debugowania, możesz zkonwertować dowolną wartość do ciągu znaków " +"przy pomocy funkcji :func:`repr` lub :func:`str`." 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 " +"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 "" +"Funkcja :func:`str` ma na celu zwrócenie reprezentacji wartości, które są " +"dość czytelne dla człowieka, podczas gdy :func:`repr` ma na celu " +"wygenerowanie reprezentacji, które mogą być odczytane przez interpreter (lub " +"wymuszą :exc:`SyntaxError`, jeśli nie ma równoważnej składni). Dla obiektów, " +"które nie mają określonej reprezentacji do użycia przez " +"człowieka, :func:`str` zwróci taką samą wartość jak :func:`repr`. Wiele " +"wartości, takich jak liczby lub struktury takie jak listy i słowniki, ma " +"taką samą reprezentację przy użyciu obu funkcji. Ciągi znaków, w " +"szczególności, mają dwie odrębne reprezentacje." msgid "Some examples::" msgstr "Trochę przykładów::" @@ -96,9 +130,13 @@ msgid "" "like ``$x`` and replacing them with values from a dictionary, but offers " "much less control of the formatting." msgstr "" +"Moduł :mod:`string` zawiera klasę :class:`~string.Template`, która oferuje " +"jeszcze jeden sposób zastępowania wartości ciągami znaków, przy użyciu " +"placeholderów takich jak ``$x`` i zastępując je wartościami ze słownika, ale " +"daje mniejszą kontrolę nad formatowaniem." msgid "Formatted String Literals" -msgstr "" +msgstr "f-stringi" msgid "" ":ref:`Formatted string literals ` (also called f-strings for " @@ -106,56 +144,81 @@ msgid "" "prefixing the string with ``f`` or ``F`` and writing expressions as " "``{expression}``." msgstr "" +":ref:`Formatowane literały ciągów znaków ` (nazywane też krótko f-" +"stringami) pozwalają zawrzeć wartość pythonowych wyrażeń wewnątrz ciągu " +"znaków przez dodanie prefiksu ``f`` lub ``F`` i zapisanie wyrażenia jako " +"``{expression}``." msgid "" "An optional format specifier can follow the expression. This allows greater " "control over how the value is formatted. The following example rounds pi to " "three places after the decimal::" msgstr "" +"Po wyrażeniu może nastąpić opcjonalny specyfikator formatu. Umożliwia on " +"większą kontrolę nad sposobem formatowania wartości. Poniższy przykład " +"zaokrągla pi do trzech miejsc po przecinku::" msgid "" "Passing an integer after the ``':'`` will cause that field to be a minimum " "number of characters wide. This is useful for making columns line up. ::" msgstr "" +"Przekazanie liczby całkowitej po znaku ``':'`` spowoduje, że pole będzie " +"miało minimalną liczbę znaków szerokości. Jest to przydatne przy tworzeniu " +"linii kolumn. ::" msgid "" "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 "" +"Inne modyfikatory mogą być użyte do konwersji wartości przed jej " +"sformatowaniem. ``'!a'`` stosuje :func:`ascii`, ``'!s'`` " +"stosuje :func:`str`, a ``'!r'`` stosuje :func:`repr`::" msgid "" "The ``=`` specifier can be used to expand an expression to the text of the " "expression, an equal sign, then the representation of the evaluated " "expression:" msgstr "" +"Specyfikator ``=`` może być użyty do rozwinięcia wyrażenia do tekstu " +"wyrażenia, znaku równości, a następnie reprezentacji obliczonego wyrażenia:" msgid "" "See :ref:`self-documenting expressions ` for more " "information on the ``=`` specifier. For a reference on these format " "specifications, see the reference guide for the :ref:`formatspec`." msgstr "" +"Zobacz :ref:`wyrażenia samodokumentujące ` po więcej " +"informacji na temat specyfikatora ``=``. Informacje o specyfikacjach formatu " +"znajdziesz w przewodniku referencyjnym dla :ref:`mini-języka specyfikacji " +"formatu `." msgid "The String format() Method" -msgstr "" +msgstr "Metoda format() ciągu znaków" msgid "Basic usage of the :meth:`str.format` method looks like this::" -msgstr "" +msgstr "Podstawowe użycie metody :meth:`str.format` wygląda tak::" 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. ::" +"brackets can be used to refer to the position of the object passed into " +"the :meth:`str.format` method. ::" msgstr "" +"Nawiasy i znaki wewnątrz nich (zwane polami formatu) są zastępowane " +"obiektami przekazywanymi do metody :meth:`str.format`. Liczba w nawiasach " +"może być użyta do odwołania się do pozycji obiektu przekazanego do " +"metody :meth:`str.format`. ::" msgid "" "If keyword arguments are used in the :meth:`str.format` method, their values " "are referred to by using the name of the argument. ::" msgstr "" +"Jeśli argumenty nazwane są używane w metodzie :meth:`str.format`, ich " +"wartości są przywoływane przy użyciu nazwy argumentu. ::" msgid "Positional and keyword arguments can be arbitrarily combined::" -msgstr "" +msgstr "Argumenty pozycyjne i nazwane mogą być dowolnie łączone::" msgid "" "If you have a really long format string that you don't want to split up, it " @@ -163,37 +226,54 @@ msgid "" "instead of by position. This can be done by simply passing the dict and " "using square brackets ``'[]'`` to access the keys. ::" msgstr "" +"Jeśli masz naprawdę długi ciąg znaków formatu, którego nie chcesz dzielić, " +"byłoby miło, gdybyś mógł odwoływać się do zmiennych, które mają być " +"sformatowane według nazwy zamiast według pozycji. Można to zrobić, po prostu " +"przekazując dict i używając nawiasów kwadratowych ``'[]'``, aby uzyskać " +"dostęp do kluczy. ::" msgid "" "This could also be done by passing the ``table`` dictionary as keyword " "arguments with the ``**`` notation. ::" msgstr "" +"Można to również zrobić, przekazując dict ``table`` jako argumenty nazwane " +"przy użyciu notacji ``**``. ::" 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 "" +"Jest to szczególnie przydatne w połączeniu z wbudowaną funkcją :func:`vars`, " +"która zwraca słownik zawierający wszystkie zmienne lokalne." msgid "" "As an example, the following lines produce a tidily aligned set of columns " "giving integers and their squares and cubes::" msgstr "" +"Jako przykład, poniższe wiersze tworzą uporządkowany zestaw kolumn " +"zawierających liczby całkowite oraz ich kwadraty i sześciany::" 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 "" +"Aby uzyskać pełny przegląd formatowania ciągów znaków za pomocą " +"funkcji :meth:`str.format`, zobacz :ref:`formatstrings`." msgid "Manual String Formatting" -msgstr "" +msgstr "Ręczne formatowanie ciągów znaków" msgid "Here's the same table of squares and cubes, formatted manually::" -msgstr "" +msgstr "Oto ta sama tabela kwadratów i sześcianów, sformatowana ręcznie::" 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 "" +"(Zauważ, że jedna spacja między każdą kolumną została dodana przez sposób " +"działania funkcji :func:`print`: zawsze dodaje ona spacje między swoimi " +"argumentami.)" msgid "" "The :meth:`str.rjust` method of string objects right-justifies a string in a " @@ -205,14 +285,25 @@ msgid "" "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 "" +"Metoda :meth:`str.rjust` obiektów typu string wyrównuje ciąg znaków do " +"prawej strony w polu o zadanej szerokości poprzez wypełnienie go spacjami po " +"lewej stronie. Istnieją podobne metody :meth:`str.ljust` " +"i :meth:`str.center`. Metody te niczego nie wypisują, a jedynie zwracają " +"nowy ciąg znaków. Jeśli wejściowy ciąg jest zbyt długi, nie obcinają go, ale " +"zwracają go bez zmian; spowoduje to bałagan w układzie kolumn, ale zwykle " +"jest to lepsze niż alternatywa, która polegałaby na kłamaniu na temat " +"wartości. (Jeśli naprawdę chcesz przycinania, zawsze możesz dodać operację " +"wycinania, jak w ``x.ljust(n)[:n]``.)" 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 "" +"Istnieje jeszcze jedna metoda, :meth:`str.zfill`, która wypełnia ciąg " +"liczbowy po lewej stronie zerami. Rozumie ona znaki plus i minus::" msgid "Old string formatting" -msgstr "" +msgstr "Stare formatowanie ciągów znaków" msgid "" "The % operator (modulo) can also be used for string formatting. Given " @@ -220,19 +311,26 @@ msgid "" "zero or more elements of ``values``. This operation is commonly known as " "string interpolation. For example::" msgstr "" +"Operator % (modulo) może być również używany do formatowania ciągów znaków. " +"Dla ``'string' % values``, wystąpienia ``%`` w ciągu znaków ``string`` są " +"zastępowane przez zero lub więcej elementów ``values``. Operacja ta jest " +"powszechnie znana jako interpolacja ciągów znaków. Na przykład::" msgid "" "More information can be found in the :ref:`old-string-formatting` section." -msgstr "" +msgstr "Więcej informacji można znaleźć w sekcji :ref:`old-string-formatting`." msgid "Reading and Writing Files" -msgstr "" +msgstr "Odczytywanie i zapisywanie plików" msgid "" ":func:`open` returns a :term:`file object`, and is most commonly used with " "two positional arguments and one keyword argument: ``open(filename, mode, " "encoding=None)``" msgstr "" +":func:`open` zwraca :term:`obiekt pliku ` i jest najczęściej " +"używany z dwoma argumentami pozycyjnymi i jednym argumentem nazwanym: " +"``open(filename, mode, encoding=None)``" msgid "" "The first argument is a string containing the filename. The second argument " @@ -244,6 +342,14 @@ msgid "" "reading and writing. The *mode* argument is optional; ``'r'`` will be " "assumed if it's omitted." msgstr "" +"Pierwszy argument to ciąg znaków zawierający nazwę pliku. Drugi argument to " +"kolejny ciąg znaków zawierający kilka znaków opisujących sposób, w jaki plik " +"będzie używany. *Tryb* może być ``'r'`` gdy plik będzie tylko do odczytu, " +"``'w'`` tylko do zapisu (istniejący plik o tej samej nazwie zostanie " +"usunięty), a ``'a'`` otwiera plik do dołączania; wszelkie dane zapisane do " +"pliku są automatycznie dodawane na koniec.``'r+'`` otwiera plik zarówno do " +"odczytu, jak i zapisu. Argument *trybu* jest opcjonalny; jeśli zostanie " +"pominięty, zakłada się, że domyślnie został wybrany ``'r'``." msgid "" "Normally, files are opened in :dfn:`text mode`, that means, you read and " @@ -251,54 +357,88 @@ msgid "" "*encoding*. If *encoding* is not specified, the default is platform " "dependent (see :func:`open`). Because UTF-8 is the modern de-facto standard, " "``encoding=\"utf-8\"`` is recommended unless you know that you need to use a " -"different encoding. Appending a ``'b'`` to the mode opens the file in :dfn:" -"`binary mode`. Binary mode data is read and written as :class:`bytes` " -"objects. You can not specify *encoding* when opening file in binary mode." -msgstr "" +"different encoding. Appending a ``'b'`` to the mode opens the file " +"in :dfn:`binary mode`. Binary mode data is read and written " +"as :class:`bytes` objects. You can not specify *encoding* when opening file " +"in binary mode." +msgstr "" +"Zwykle pliki są otwierane w trybie tekstowym :dfn:`text mode`, co oznacza, " +"że czytasz i zapisujesz ciągi znaków do i z pliku, które są kodowane w " +"określonym *kodowaniu*. Jeśli *kodowanie* nie jest określone, domyślne jest " +"zależne od platformy (patrz :func:`open`). Ponieważ UTF-8 jest współczesnym " +"standardem, zaleca się stosowanie ``encoding=\"utf-8\"``, chyba że wiesz, że " +"musisz użyć innego kodowania. Dodanie ``'b'`` do trybu otwiera plik w trybie " +"binarnym :dfn:`binary mode`. Dane w trybie binarnym są odczytywane i " +"zapisywane jako obiekty :class:`bytes`. Nie możesz określić kodowania " +"podczas otwierania pliku w trybie binarnym." msgid "" "In text mode, the default when reading is to convert platform-specific line " "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 " -"reading and writing such files." +"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 "" +"W trybie tekstowym domyślnym podczas odczytywania następuje konwersja " +"końcówek linii specyficznych dla platformy (``\\n`` na systemie Unix, " +"``\\r\\n`` na systemie Windows) na pojedynczy znak ``\\n``. Podczas zapisu w " +"trybie tekstowym domyślnym jest konwersja wystąpień ``\\n`` z powrotem na " +"końcówki linii specyficzne dla platformy. Ta niewidoczna modyfikacja danych " +"pliku jest odpowiednia dla plików tekstowych, ale uszkodzi dane binarne, " +"takie jak te w plikach :file:`JPEG` lub :file:`EXE`. Bądź bardzo ostrożny, " +"używając trybu binarnego podczas odczytywania i zapisywania takich plików." 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 "" +"Używanie :keyword:`with` podczas pracy z obiektami plików należy do dobrych " +"praktyk. Zaletą tego podejścia jest to, że plik jest prawidłowo zamykany po " +"zakończeniu jego bloku, nawet jeśli w pewnym momencie zostanie zgłoszony " +"wyjątek. Użycie :keyword:`!with` jest również znacznie krótsze niż pisanie " +"równoważnych bloków :keyword:`try` - :keyword:`finally`::" 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 " +"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." msgstr "" +"Jeśli nie używasz :keyword:`with` to powinieneś wywołać ``f.close()`` w celu " +"zamknięcia pliku i natychmiastowego zwolnienia wszystkich zasobów " +"systemowych wykorzystywanych przez ten plik." msgid "" "Calling ``f.write()`` without using the :keyword:`!with` keyword or calling " "``f.close()`` **might** result in the arguments of ``f.write()`` not being " "completely written to the disk, even if the program exits successfully." msgstr "" +"Wywołanie ``f.write()`` bez użycia :keyword:`!with` lub ``f.close()`` " +"**może** spowodować, że argumenty ``f.write()`` nie zostaną w pełni zapisane " +"na dysku, nawet jeśli program zakończy się pomyślnie." msgid "" "After a file object is closed, either by a :keyword:`with` statement or by " "calling ``f.close()``, attempts to use the file object will automatically " "fail. ::" msgstr "" +"Po zamknięciu obiektu pliku, zarówno przez instrukcję :keyword:`with`, jak i " +"``f.close()``, wszystkie próby użycia obiektu pliku automatycznie się nie " +"powiodą. ::" msgid "Methods of File Objects" -msgstr "" +msgstr "Metody obiektów plików" msgid "" "The rest of the examples in this section will assume that a file object " "called ``f`` has already been created." msgstr "" +"Reszta przykładów w tej sekcji zakłada, że obiekt pliku o nazwie ``f`` " +"został już utworzony." msgid "" "To read a file's contents, call ``f.read(size)``, which reads some quantity " @@ -310,41 +450,69 @@ msgid "" "binary mode) are read and returned. If the end of the file has been reached, " "``f.read()`` will return an empty string (``''``). ::" msgstr "" +"Aby odczytać zawartość pliku, należy wywołać polecenie ``f.read(size)``, " +"które odczytuje pewną ilość danych i zwraca je jako ciąg znaków (w trybie " +"tekstowym) lub obiekt bajtowy (w trybie binarnym). *size* jest opcjonalnym " +"argumentem numerycznym. Gdy *size* jest pominięty lub ujemny, zostanie " +"odczytana i zwrócona cała zawartość pliku; to twój problem, jeśli plik jest " +"dwa razy większy niż pamięć twojego komputera. W przeciwnym razie odczytane " +"i zwrócone zostanie co najwyżej *size* znaków (w trybie tekstowym) lub " +"*size* bajtów (w trybie binarnym). Jeśli został osiągnięty koniec pliku, " +"``f.read()`` zwróci pusty ciąg znaków (``''``). ::" 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 " "``'\\n'``, a string containing only a single newline. ::" msgstr "" +"``f.readline()`` odczytuje pojedynczą linię z pliku; znak nowej linii " +"(``\\n``) jest pozostawiony na końcu ciągu znaków i jest pomijany tylko w " +"ostatniej linii pliku, jeśli plik nie kończy się nową linią. To sprawia, że " +"wartość zwracana jest jednoznaczna; jeśli ``f.readline()`` zwróci pusty ciąg " +"znaków, koniec pliku został osiągnięty, podczas gdy pusta linia jest " +"reprezentowana przez ``'\\n'``, ciąg znaków zawierający tylko pojedynczą " +"nową linię. ::" msgid "" "For reading lines from a file, you can loop over the file object. This is " "memory efficient, fast, and leads to simple code::" msgstr "" +"Aby odczytać wiersze z pliku, można wykonać pętlę na obiekcie pliku. Jest to " +"wydajne pamięciowo, szybkie i prowadzi do prostego kodu::" msgid "" "If you want to read all the lines of a file in a list you can also use " "``list(f)`` or ``f.readlines()``." msgstr "" +"Jeśli chcesz wczytać wszystkie wiersze pliku w listę, możesz również użyć " +"``list(f)`` lub ``f.readlines()``." msgid "" "``f.write(string)`` writes the contents of *string* to the file, returning " "the number of characters written. ::" msgstr "" +"``f.write(string)`` zapisuje zawartość *string* do pliku, zwracając liczbę " +"zapisanych znaków. ::" 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 "" +"Inne typy obiektów muszą zostać przekonwertowane – albo na ciąg znaków (w " +"trybie tekstowym), albo na obiekt bajtowy (w trybie binarnym) – przed ich " +"zapisaniem::" 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." msgstr "" +"``f.tell()`` zwraca liczbę całkowitą podającą aktualną pozycję obiektu pliku " +"w pliku reprezentowaną jako liczba bajtów od początku pliku w trybie " +"binarnym i nieprzejrzystą liczbę w trybie tekstowym." msgid "" "To change the file object's position, use ``f.seek(offset, whence)``. The " @@ -355,6 +523,12 @@ msgid "" "omitted and defaults to 0, using the beginning of the file as the reference " "point. ::" msgstr "" +"Aby zmienić pozycję obiektu pliku, należy użyć ``f.seek(offset, whence)``. " +"Pozycja jest obliczana przez dodanie *offset* do punktu odniesienia; punkt " +"odniesienia jest wybierany przez argument *whence*. Wartość *whence* równa 0 " +"mierzy od początku pliku, 1 używa bieżącej pozycji pliku, a 2 używa końca " +"pliku jako punktu odniesienia. *whence* może zostać pominięty i domyślnie " +"przyjmuje wartość 0, używając początku pliku jako punktu odniesienia. ::" msgid "" "In text files (those opened without a ``b`` in the mode string), only seeks " @@ -363,15 +537,20 @@ msgid "" "*offset* values are those returned from the ``f.tell()``, or zero. Any other " "*offset* value produces undefined behaviour." msgstr "" +"W plikach tekstowych (otwieranych bez ``b`` w ciągu znaków trybu) dozwolone " +"jest tylko wyszukiwanie względem początku pliku (wyjątkiem jest wyszukiwanie " +"do samego końca pliku z ``seek(0, 2)``), a jedynymi poprawnymi wartościami " +"*offset* są te zwrócone z ``f.tell()`` lub zero. Każda inna wartość *offset* " +"powoduje niezdefiniowane zachowanie." msgid "" -"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." +"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 "" msgid "Saving structured data with :mod:`json`" -msgstr "" +msgstr "Zapisywanie struktur danych przy użyciu modułu :mod:`json`" msgid "" "Strings can easily be written to and read from a file. Numbers take a bit " @@ -385,41 +564,67 @@ msgstr "" 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 " +"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 "" +"Zamiast zmuszać użytkowników do ciągłego pisania i debugowania kodu w celu " +"zapisania skomplikowanych typów danych do plików, Python pozwala na użycie " +"popularnego formatu wymiany danych zwanego `JSON (JavaScript Object " +"Notation) `_. Standardowy moduł o nazwie :mod:`json` może " +"pobierać hierarchie danych Pythona i konwertować je na reprezentacje ciągów " +"znaków; proces ten nazywany jest :dfn:`serializacją`. Rekonstrukcja danych " +"z reprezentacji łańcuchowej nazywana jest :dfn:`deserializacją`. Pomiędzy " +"serializacją i deserializacją, ciąg znaków reprezentujący obiekt może być " +"przechowywany w pliku lub bazie danych, lub wysłany przez połączenie " +"sieciowe do odległej maszyny." msgid "" "The JSON format is commonly used by modern applications to allow for data " "exchange. Many programmers are already familiar with it, which makes it a " "good choice for interoperability." msgstr "" +"Format JSON jest powszechnie używany przez nowoczesne aplikacje w celu " +"umożliwienia wymiany danych. Wielu programistów jest już z nim " +"zaznajomionych, co czyni go dobrym wyborem dla interoperacyjności." msgid "" "If you have an object ``x``, you can view its JSON string representation " "with a simple line of code::" msgstr "" +"Jeśli masz obiekt ``x``, możesz wyświetlić jego reprezentację JSON za pomocą " +"prostej linii kodu::" 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 "" +"Inny wariant funkcji :func:`~json.dumps`, zwany :func:`~json.dump`, po " +"prostu serializuje obiekt do :term:`pliku tekstowego `. Jeśli " +"więc ``f`` jest obiektem :term:`pliku tekstowego ` otwartym do " +"zapisu, możemy zrobić tak::" msgid "" "To decode the object again, if ``f`` is a :term:`binary file` or :term:`text " "file` object which has been opened for reading::" msgstr "" +"Aby ponownie zdekodować obiekt, jeśli ``f`` jest obiektem :term:`pliku " +"binarnego ` lub :term:`pliku tekstowego `, który " +"został otwarty do odczytu::" msgid "" "JSON files must be encoded in UTF-8. Use ``encoding=\"utf-8\"`` when opening " "JSON file as a :term:`text file` for both of reading and writing." msgstr "" +"Pliki JSON muszą być zakodowane w UTF-8. Użyj ``encoding=\"utf-8\"`` podczas " +"otwierania pliku JSON jako :term:`pliku tekstowego ` zarówno do " +"odczytu jak i zapisu." msgid "" "This simple serialization technique can handle lists and dictionaries, but " @@ -427,9 +632,13 @@ msgid "" "effort. The reference for the :mod:`json` module contains an explanation of " "this." msgstr "" +"Ta prosta technika serializacji może obsługiwać listy i słowniki, ale " +"serializacja dowolnych instancji klas w JSON wymaga nieco dodatkowego " +"wysiłku. Wyjaśnienie tej kwestii znajduje się w dokumentacji " +"modułu :mod:`json`." msgid ":mod:`pickle` - the pickle module" -msgstr "" +msgstr ":mod:`pickle` – moduł pickle" msgid "" "Contrary to :ref:`JSON `, *pickle* is a protocol which allows the " @@ -439,3 +648,10 @@ msgid "" "pickle data coming from an untrusted source can execute arbitrary code, if " "the data was crafted by a skilled attacker." msgstr "" +"W przeciwieństwie do :ref:`JSON `, *pickle* jest protokołem, który " +"pozwala na serializację dowolnie złożonych obiektów Pythona. Jako taki, " +"jest specyficzny dla Pythona i nie może być używany do komunikacji z " +"aplikacjami napisanymi w innych językach. Jest on również domyślnie " +"niezabezpieczony: deserializacja danych pickle pochodzących z niezaufanego " +"źródła może wykonać dowolny kod, jeśli dane zostały spreparowane przez " +"doświadczonego atakującego." diff --git a/tutorial/interactive.po b/tutorial/interactive.po new file mode 100644 index 0000000000..b69003ceaa --- /dev/null +++ b/tutorial/interactive.po @@ -0,0 +1,101 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Interactive Input Editing and History Substitution" +msgstr "Interaktywna edycja danych wejściowych oraz podstawianie z historii" + +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." +msgstr "" +"Niektóre wersje interpretera Python, podobnie jak ułatwienia znajdowane w " +"powłokach Korn i GNU Bash, wspierają edycję bieżącej linii danych " +"wejściowych oraz podstawianie z historii. Do implementacji użyto biblioteki " +"`GNU Readline`_, która wspiera różne style edytowania. Biblioteka ta ma " +"własną dokumentację, której nie będziemy tutaj powielać." + +msgid "Tab Completion and History Editing" +msgstr "Uzupełnianie z tabulatorem oraz edycja historii" + +msgid "" +"Completion of variable and module names is :ref:`automatically enabled " +"` at interpreter startup so that the :kbd:`Tab` key " +"invokes the completion function; it looks at Python statement names, the " +"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." +msgstr "" +"Uzupełnianie zmiennych i nazw modułów jest :ref:`włączane automatycznie " +"` podczas uruchamiania interpretera w taki sposób, że " +"klawisz :kbd:`Tab` wywołuje funkcję uzupełniania; sprawdza nazwy instrukcji " +"Pythona, bieżące zmienne lokalne oraz dostępne nazwy modułów. Dla wyrażeń " +"kropkowanych takich jak ``string.a``, ewaluuje wyrażenie do ostaniej " +"``'.'``, a następnie sugeruje uzupełnienie z atrybutów obiektu wynikowego. " +"Zauważ, że może to wykonać zdefiniowany w aplikacji kod, jeżeli obiekt z " +"metodą :meth:`__getattr__` jest częścią wyrażenia. Domyślna konfiguracja " +"zapisuje także twoją historię do pliku :file:`.python_history` w katalogu " +"użytkownika. Historia będzie ponownie dostępna podczas następnej " +"interaktywnej sesji interpretera." + +msgid "Alternatives to the Interactive Interpreter" +msgstr "Alternatywy dla interaktywnego interpretera" + +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 " +"interpreter's symbol table. A command to check (or even suggest) matching " +"parentheses, quotes, etc., would also be useful." +msgstr "" +"To ułatwienie jest olbrzymim krokiem naprzód w porównaniu z wcześniejszymi " +"wersjami interpretera, jednakże, niektóre życzenia pozostają: byłoby dobrze, " +"gdyby prawidłowe wcięcia były podpowiadane w kontynuowanych liniach " +"(analizator składni wie, jeżeli token wcięcia jest dalej wymagany). " +"Mechanizm uzupełniania mógłby używać tabeli symboli interpretera. Polecenie, " +"aby sprawdzić (lub nawet podpowiedzieć) pasujący nawias, cudzysłów itp. " +"także byłoby użyteczne." + +msgid "" +"One alternative enhanced interactive interpreter that has been around for " +"quite some time is IPython_, which features tab completion, object " +"exploration and advanced history management. It can also be thoroughly " +"customized and embedded into other applications. Another similar enhanced " +"interactive environment is bpython_." +msgstr "" +"Jednym z alternatywnych udoskonalonych interaktywnych interpreterów " +"dostępnych od pewnego czasu jest IPython_, który posiada funkcję " +"uzupełniania tabulatorem, eksplorację obiektów oraz zaawansowane zarządzanie " +"historią. Można go także wszechstronnie dostosowywać oraz osadzać w innych " +"aplikacjach. Innym podobnym udoskonalonym środowiskiem interaktywnego " +"interpretera jest bpython_." diff --git a/tutorial/interpreter.po b/tutorial/interpreter.po index 71fbde3c6a..8b5be34839 100644 --- a/tutorial/interpreter.po +++ b/tutorial/interpreter.po @@ -1,40 +1,44 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Using the Python Interpreter" -msgstr "Używanie Interpretera Pythona" +msgstr "Używanie interpretera Pythona" msgid "Invoking the Interpreter" msgstr "Wywoływanie Interpretera" msgid "" "The Python interpreter is usually installed as :file:`/usr/local/bin/" -"python3.11` on those machines where it is available; putting :file:`/usr/" +"python3.10` 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 "" +"Interpreter Pythona jest zazwyczaj zainstalowany jako :file:`/usr/local/bin/" +"python3.10` na maszynach, na których jest dostępny; wstawienie :file:`/usr/" +"local/bin` w ścieżkę wyszukiwania uniksowego shella umożliwia jego " +"uruchomienie przez wpisanie komendy:" msgid "" "to the shell. [#]_ Since the choice of the directory where the interpreter " @@ -49,11 +53,16 @@ msgstr "" msgid "" "On Windows machines where you have installed Python from the :ref:`Microsoft " -"Store `, the :file:`python3.11` 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 " +"Store `, the :file:`python3.10` 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 "" +"Na maszynach Windows, gdzie instalowałeś Pythona z :ref:`Microsoft Store " +"`, będzie dostępna komenda :file:`python3.10`. Jeśli masz " +"zainstalowany :ref:`launcher py.exe `, możesz użyć " +"komendy :file:`py`. Inne sposoby uruchomienia Pythona znajdziesz " +"w :ref:`setting-envvars`." msgid "" "Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` " @@ -97,21 +106,20 @@ msgstr "" "Interpreter działa podobnie do uniksowej powłoki: kiedy jest wywołany ze " "standardowym wejściem połączonym z urządzeniem tty, czyta i wykonuje komendy " "interaktywnie. Gdy zostanie wywołany z argumentem w postaci nazwy pliku lub " -"z plikiem jako standardowym wejściem, czyta i wykonuje *skrypt* z tego " -"pliku. " +"z plikiem jako standardowym wejściem, czyta i wykonuje *skrypt* z tego pliku." 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 " -"characters that are special to the shell, it is usually advised to quote " -"*command* in its entirety." +"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." msgstr "" "Drugim sposobem na uruchomienie interpretera jest ``python -c komenda [arg] …" "``, co wykonuje polecenie (polecenia) zawarte w *komendzie*, analogicznie do " "opcji :option:`-c` powłoki. Jako że polecenia Pythona często zawierają " "spacje lub inne znaki, które są interpretowane przez powłokę, zazwyczaj " -"najlepiej jest umieścić *komendę* w całości w cudzysłowie. " +"najlepiej jest umieścić *komendę* w całości w cudzysłowie." msgid "" "Some Python modules are also useful as scripts. These can be invoked using " @@ -124,8 +132,8 @@ msgstr "" 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 "" "Kiedy używa się pliku skryptu, czasami przydatne jest móc uruchomić skrypt i " "następnie wejść w interaktywny. Można to zrobić przekazując :option:`-i` " @@ -158,12 +166,12 @@ msgstr "" "argumentów wywołania, ``sys.argv[0]``, jest pustym ciągiem. Gdy nazwa " "skryptu przekazana jest w postaci ``'-'`` (co oznacza standardowe wejście), " "``sys.argv[0]`` przyjmuje wartość ``'-'``. Gdy zostanie użyte :option:`-c` " -"*komenda*, ``sys.argv[0]``, przyjmuje wartość ``'-c'``. Gdy zostanie użyte :" -"option:`-m` *moduł*, ``sys.argv[0]`` przyjmie wartość pełnej nazwy " -"znalezionego modułu. Opcje znalezione za :option:`-c` *komenda* lub :option:" -"`-m` *moduł* nie są konsumowane przez przetwarzanie opcji interpretera " -"Pythona, lecz pozostawiane w ``sys.argv`` do obsłużenia przez komendę lub " -"moduł." +"*komenda*, ``sys.argv[0]``, przyjmuje wartość ``'-c'``. Gdy zostanie " +"użyte :option:`-m` *moduł*, ``sys.argv[0]`` przyjmie wartość pełnej nazwy " +"znalezionego modułu. Opcje znalezione za :option:`-c` *komenda* " +"lub :option:`-m` *moduł* nie są konsumowane przez przetwarzanie opcji " +"interpretera Pythona, lecz pozostawiane w ``sys.argv`` do obsłużenia przez " +"komendę lub moduł." msgid "Interactive Mode" msgstr "Tryb interaktywny" @@ -180,16 +188,16 @@ msgstr "" "interpreter jest w *trybie interaktywnym*. Interpreter zachęca wtedy do " "podania kolejnej instrukcji wyświetlając tzw. znak zachęty, zwykle w postaci " "trzech znaków większości (``>>>``). Gdy wymaga kontynuacji instrukcji, w " -"następnej linii wyświetla *drugi znak zachęty*, domyślnie trzy kropki (``..." -"``). Interpreter wyświetla wiadomość powitania zawierającą jego wersję i " -"notatkę o prawach autorskich przed wyświetleniem pierwszego znaku zachęty: " +"następnej linii wyświetla *drugi znak zachęty*, domyślnie trzy kropki " +"(``...``). Interpreter wyświetla wiadomość powitania zawierającą jego wersję " +"i notatkę o prawach autorskich przed wyświetleniem pierwszego znaku zachęty:" msgid "" "Continuation lines are needed when entering a multi-line construct. As an " "example, take a look at this :keyword:`if` statement::" msgstr "" "Linie kontynuacji są potrzebne przy wejściu w wielowierszową konstrukcję. " -"Jako przykład, spójrzmy na to wyrażenie :keyword:`if`:: " +"Jako przykład, spójrzmy na to wyrażenie :keyword:`if`::" msgid "For more on interactive mode, see :ref:`tut-interac`." msgstr "Więcej na temat trybu interaktywnego znajdziesz w :ref:`tut-interac`." diff --git a/tutorial/introduction.po b/tutorial/introduction.po index 94d7b86ed8..d06154c20d 100644 --- a/tutorial/introduction.po +++ b/tutorial/introduction.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 16:29+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "An Informal Introduction to Python" msgstr "Nieformalne wprowadzenie do Pythona" @@ -62,12 +62,12 @@ msgid "" "Since comments are to clarify code and are not interpreted by Python, they " "may be omitted when typing in examples." msgstr "" -"Wiele przykładów w tym manualu, także tych wpisywanych w interaktywnej " -"konsoli, zawiera komentarze. Komentarze w Pythonie zaczynają się znakiem " -"kratki ``#`` i ciągną się do końca fizycznej linii. Komentarz może pojawić " -"się na początku linii, po wiodących spacjach lub kodzie, lecz nie może być " -"zawarty w literale ciągu znaków. Znak kratki w ciągu znaków jest po prostu " -"znakiem kratki. Jako że komentarze mają wyjaśniać kod i nie są " +"Wiele przykładów w tej instrukcji, także tych wpisywanych w konsoli " +"interaktywnej, zawiera komentarze. Komentarze w Pythonie zaczynają się " +"znakiem hash ``#`` i ciągną się do końca fizycznej linii. Komentarz może " +"pojawić się na początku linii, po wiodących spacjach lub kodzie, lecz nie " +"może być zawarty w literale ciągu znaków. Znak hash w ciągu znaków jest po " +"prostu znakiem hash. Jako że komentarze mają wyjaśniać kod i nie są " "interpretowane przez Pythona, można je ominąć przy wpisywaniu przykładów." msgid "Some examples::" @@ -102,8 +102,9 @@ msgstr "" 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 "" "Liczby całkowite (np. ``2``, ``4``, ``20``) są typu :class:`int`, te z " "częścią ułamkową (np. ``5.0``, ``1.6``) są typu :class:`float`. Więcej o " @@ -114,14 +115,16 @@ msgid "" "get an integer result you can use the ``//`` operator; to calculate the " "remainder you can use ``%``::" msgstr "" -"Dzielenie (``/``) zawsze zwraca liczbę zmiennoprzecinkową. Aby zrobić :term:" -"`dzielenie całkowite ` i uzyskać wynik całkowity możesz użyć " -"operatora ``//``; aby obliczyć resztę możesz użyć ``%``::" +"Dzielenie (``/``) zawsze zwraca liczbę zmiennoprzecinkową. Aby " +"zrobić :term:`dzielenie całkowite ` i uzyskać wynik " +"całkowity możesz użyć operatora ``//``; aby obliczyć resztę możesz użyć " +"``%``::" msgid "" "With Python, it is possible to use the ``**`` operator to calculate powers " "[#]_::" -msgstr "W Pythonie możesz użyć operatora ``**``, aby obliczać potęgi [#]_::" +msgstr "" +"W Pythonie możesz użyć operatora ``**``, do obliczania potęgowania [#]_::" msgid "" "The equal sign (``=``) is used to assign a value to a variable. Afterwards, " @@ -166,14 +169,14 @@ msgstr "" 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 "" "Oprócz :class:`int` i :class:`float`, Python wspiera inne typy liczb, takie " "jak :class:`~decimal.Decimal` i :class:`~fractions.Fraction`. Python ma też " -"wbudowane wsparcie dla :ref:`liczb złożonych ` i używa " +"wbudowane wsparcie dla :ref:`liczb zespolonych ` i używa " "sufiksów ``j`` lub ``J`` do wskazania części urojonej (np. ``3+5j``)." msgid "Strings" @@ -205,8 +208,8 @@ msgstr "" "może czasem wyglądać inaczej niż wejściowy ciąg znaków (cudzysłów okalający " "mógł się zmienić), te dwa ciągi znaków są równoważne. Ciąg znaków objęty " "jest podwójnym cudzysłowem, jeśli zawiera tylko pojedyncze cudzysłowy i nie " -"zawiera podwójnych, w przeciwnym wypadku objęty jest pojedynczym. Funkcja :" -"func:`print` produkuje bardziej czytelne wyście, omijając okalający " +"zawiera podwójnych, w przeciwnym wypadku objęty jest pojedynczym. " +"Funkcja :func:`print` produkuje bardziej czytelne wyście, omijając okalający " "cudzysłów i drukując „uwolnione” i specjalne znaki::" msgid "" @@ -215,14 +218,24 @@ msgid "" "quote::" msgstr "" "Jeśli nie chcesz, aby znaki poprzedzone ``\\`` były interpretowane jako " -"znaki specjalne, możesz użyć *surowych ciągów znaków* dodając ``r`` przed " -"pierwszym cudzysłowem::" +"znaki specjalne, możesz użyć *surowych ciągów znaków* (ang. *raw strings*) " +"dodając ``r`` przed pierwszym cudzysłowem::" + +msgid "" +"There is one subtle aspect to raw strings: a raw string may not end in an " +"odd number of ``\\`` characters; see :ref:`the FAQ entry ` for more information and workarounds." +msgstr "" +"Istnieje jeden subtelny aspekt surowych ciągów znaków: surowy ciąg znaków " +"nie może kończyć się nieparzystą liczbą znaków ``\\``; zobacz :ref:`wpis FAQ " +"`, aby uzyskać więcej informacji i " +"sposobów obejścia tego problemu." 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 "" "Literały ciągów znaków mogą mieć wiele linii. Można je uzyskać używając " "potrójnych cudzysłowów: ``\"\"\"…\"\"\"`` lub ``'''…'''``. Końce linii są " @@ -239,20 +252,19 @@ msgid "" "Strings can be concatenated (glued together) with the ``+`` operator, and " "repeated with ``*``::" msgstr "" -"Ciągi mogą być konkatenowane (sklejane) operatorem ``+`` i powtarzane przy " -"użyciu ``*``::" +"Ciągi mogą być łączone operatorem ``+`` i powtarzane przy użyciu ``*``::" msgid "" "Two or more *string literals* (i.e. the ones enclosed between quotes) next " "to each other are automatically concatenated. ::" msgstr "" -"Dwa lub więcej *literałów ciągów* (czyli te zawarte w cudzysłowach) obok " -"siebie są automatycznie konkatenowane. ::" +"Dwa lub więcej *literały ciągu znaków* (czyli te zawarte w cudzysłowach) " +"obok siebie są automatycznie łączone. ::" msgid "" "This feature is particularly useful when you want to break long strings::" msgstr "" -"To zachowanie jest szczególnie przydatne, gdy chcesz łamać długie ciągi::" +"To zachowanie jest szczególnie przydatne, gdy chcesz dzielić długie ciągi::" msgid "" "This only works with two literals though, not with variables or expressions::" @@ -260,14 +272,14 @@ msgstr "Jednak działa tylko dla literałów, nie dla zmiennych lub wyrażeń::" msgid "" "If you want to concatenate variables or a variable and a literal, use ``+``::" -msgstr "Jeśli chcesz skonkatenować zmienne lub zmienną i literał, użyj ``+``::" +msgstr "Jeśli chcesz połączyć zmienne lub zmienną i literał, użyj ``+``::" 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::" msgstr "" -"Ciągi znaków mogą być indeksowane. Pierwszy znak ma indeks 0. Nie ma " +"Ciągi znaków mogą być *indeksowane*. Pierwszy znak ma indeks 0. Nie ma " "osobnego typu znakowego; znak jest po prostu ciągiem znaków o długości " "jeden::" @@ -293,9 +305,9 @@ 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. ::" msgstr "" -"Indeksy wykrawania mają przydatne wartości domyślne; pominięty pierwszy " -"indeks domyślnie jest zerem, pominięty drugi indeks domyślnie ma wartość " -"długości wykrawanego ciągu. ::" +"Indeksy podzielonych fragmentów mają przydatne wartości domyślne; pominięty " +"pierwszy indeks domyślnie jest zerem, pominięty drugi indeks domyślnie ma " +"wartość długości dzielonego stringa. ::" msgid "" "Note how the start is always included, and the end always excluded. This " @@ -310,8 +322,8 @@ msgid "" "Then the right edge of the last character of a string of *n* characters has " "index *n*, for example::" msgstr "" -"Sposobem na zapamiętanie, jak działa wykrawanie, to myślenie o indeksach " -"wskazujących *pomiędzy* znakami, z lewą krawędzią pierwszego znaku " +"Jednym ze sposobów na zapamiętanie, jak działa podział, to myślenie o " +"indeksach wskazujących *pomiędzy* znakami, z lewą krawędzią pierwszego znaku " "numerowaną 0. Wtedy prawa krawędź ostatniego znaku ciągu o długości *n* ma " "indeks *n*, na przykład::" @@ -322,16 +334,16 @@ msgid "" "*j*, respectively." msgstr "" "W pierwszym wierszu liczb są pozycje indeksów od 0 do 6 w ciągu. W drugim " -"wierszu odpowiadające im indeksy ujemne. Slice od *i* do *j* składa się ze " -"wszystkich znaków pomiędzy krawędziami oznaczonymi kolejno *i* i *j*." +"wierszu odpowiadające im indeksy ujemne. Fragment od *i* do *j* składa się " +"ze wszystkich znaków pomiędzy krawędziami oznaczonymi kolejno *i* i *j*." msgid "" "For non-negative indices, the length of a slice is the difference of the " "indices, if both are within bounds. For example, the length of " "``word[1:3]`` is 2." msgstr "" -"Dla nieujemnych indeksów długość slice'a to różnica indeksów, jeśli oba " -"mieszczą się w zakresie. Na przykład długość ``word[1:3]`` to 2." +"Dla nieujemnych indeksów długość wydzielonego fragmentu to różnica indeksów, " +"jeśli oba mieszczą się w zakresie. Na przykład długość ``word[1:3]`` to 2." msgid "Attempting to use an index that is too large will result in an error::" msgstr "Próba użycia za dużego indeksu skończy się błędem::" @@ -340,8 +352,8 @@ msgid "" "However, out of range slice indexes are handled gracefully when used for " "slicing::" msgstr "" -"Jednak indeksy wykrawania poza zakresem są obsłużone bezpiecznie przy " -"wykrawaniu::" +"Jednak indeksy podzielonych fragmentów poza zakresem są obsłużone " +"bezpiecznie przy podziale::" msgid "" "Python strings cannot be changed --- they are :term:`immutable`. Therefore, " @@ -422,7 +434,7 @@ msgid "" msgstr "" "Tak jak ciągi znaków (i wszystkie inne wbudowane typy :term:`sekwencyjne " "`), do elementów list można odwoływać się przez indeksy oraz można " -"z nich „wykrawać”::" +"z nich „wydzielać”::" msgid "" "All slice operations return a new list containing the requested elements. " @@ -434,7 +446,7 @@ msgstr "" "` listy::" msgid "Lists also support operations like concatenation::" -msgstr "Listy wspierają też operacje takie jak konkatenacja::" +msgstr "Listy wspierają też operacje takie jak łączenie::" msgid "" "Unlike strings, which are :term:`immutable`, lists are a :term:`mutable` " @@ -445,8 +457,8 @@ msgstr "" "można zmieniać ich treść::" 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 "" "Można również dodawać nowe elementy na końcu listy, przez użycie *metody* " "(dowiemy się więcej o metodach później) :meth:`~list.append`::" @@ -581,5 +593,5 @@ msgstr "" "W przeciwieństwie do innych języków, znaki specjalne takie jak ``\\n`` mają " "to samo znaczenie zarówno z pojedynczym (``'…'``) jak i podwójnym (``\"…" "\"``) cudzysłowem. Jedyną różnicą między nimi jest to, że wewnątrz " -"pojedynczego cudzysłowu nie musisz escape'ować ``\"`` (lecz musisz " -"escape'ować ``\\'``) i vice versa." +"pojedynczego cudzysłowu nie musisz używać znaku ucieczki dla ``\"`` (lecz " +"musisz użyć znaku ucieczki ``\\'``) i vice versa." diff --git a/tutorial/modules.po b/tutorial/modules.po index c7c2e7b0d0..2d29b05698 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Ciarbin Ciarbin , 2021 -# Maciej Olko , 2022 +# python-doc bot, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Modules" msgstr "Moduły" @@ -88,6 +87,10 @@ msgid "" "it only adds the module name ``fibo`` there. Using the module name you can " "access the functions::" msgstr "" +"Ta komenda nie dodaje nazw funkcji określonych w ``fibo`` bezpośrednio w " +"bieżącej :term:`przestrzeni nazw ` (więcej szczegółów w :ref:`tut-" +"scopes`); dodaje ona tam tylko nazwę modułu ``fibo``. Używając nazwy modułu " +"możesz użyć funkcji::" msgid "" "If you intend to use a function often you can assign it to a local name::" @@ -117,6 +120,13 @@ msgid "" "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 "" +"Każdy moduł ma swoją własną przestrzeń nazw, która jest używana jako " +"globalna przestrzeń nazw przez wszystkie funkcje zdefiniowane w tym module. " +"Tak więc autor modułu może używać globalnych zmiennych nie martwiąc się o " +"przypadkowe konflikty z globalnymi zmiennymi użytkownika. Z drugiej strony, " +"jeśli wiesz co robisz, możesz odnosić się do globalnych zmiennych modułu tą " +"samą notacją, którą używa się do odniesień do jego funkcji, " +"``nazwamodułu.nazwalementu``." msgid "" "Modules can import other modules. It is customary but not required to place " @@ -125,16 +135,25 @@ msgid "" "a module (outside any functions or classes), are added to the module's " "global namespace." msgstr "" +"Moduły mogą importować inne moduły. Zwyczajowo (nieobowiązkowo) umieszcza " +"się wszystkie instrukcje :keyword:`import` na początku modułu (lub skryptu). " +"Zaimportowane nazwy modułów, jeśli są umieszczone na najwyższym poziomie " +"modułu (poza jakimikolwiek funkcjami lub klasami), są umieszczane w " +"globalnej przestrzeni nazw modułu." msgid "" "There is a variant of the :keyword:`import` statement that imports names " "from a module directly into the importing module's namespace. For example::" msgstr "" +"Istnieje wariant instrukcji :keyword:`import`, który importuje nazwy z " +"modułu bezpośrednio do przestrzeni nazw modułu importującego. Na przykład::" msgid "" "This does not introduce the module name from which the imports are taken in " "the local namespace (so in the example, ``fibo`` is not defined)." msgstr "" +"Nie wprowadza to nazwy modułu, z którego wzięte są importy, do lokalnej " +"przestrzeni nazw (więc w przykładzie ``fibo`` nie jest zdefiniowane)." msgid "There is even a variant to import all names that a module defines::" msgstr "" @@ -161,11 +180,11 @@ msgstr "" "Można jej jednak używać do oszczędzania pisania w sesjach interaktywnych." 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 "" -"Jeżeli po nazwie modułu następuje :keyword:`!as`, to nazwa następująca po :" -"keyword:`!as` jest powiązana bezpośrednio z importowanym modułem." +"Jeżeli po nazwie modułu następuje :keyword:`!as`, to nazwa następująca " +"po :keyword:`!as` jest powiązana bezpośrednio z importowanym modułem." msgid "" "This is effectively importing the module in the same way that ``import " @@ -182,8 +201,8 @@ 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 "" "Ze względów wydajnościowych każdy moduł jest importowany tylko raz dla sesji " "interpretera. W związku z tym jeśli zmienisz swoje moduły, musisz " @@ -232,16 +251,18 @@ msgstr "Ścieżka wyszukiwania modułów" msgid "" "When a module named :mod:`spam` is imported, the interpreter first searches " -"for a built-in module with that name. These module names are listed in :data:" -"`sys.builtin_module_names`. 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:" +"for a built-in module with that name. These module names are listed " +"in :data:`sys.builtin_module_names`. 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:" msgstr "" "Kiedy importowany jest moduł o nazwie :mod:`spam`, interpreter najpierw " -"szuka wbudowanego modułu o takiej nazwie. Te nazwy modułów znajdują się w :" -"data:`sys.builtin_module_names`. Jeśli nie znajdzie, wtedy szuka pliku o " -"nazwie :file:`spam.py` na liście katalogów danych w zmiennej :data:`sys." -"path`. :data:`sys.path` jest inicjalizowane z tych lokalizacji:" +"szuka wbudowanego modułu o takiej nazwie. Te nazwy modułów znajdują się " +"w :data:`sys.builtin_module_names`. Jeśli nie znajdzie, wtedy szuka pliku o " +"nazwie :file:`spam.py` na liście katalogów danych w " +"zmiennej :data:`sys.path`. :data:`sys.path` jest inicjalizowane z tych " +"lokalizacji:" msgid "" "The directory containing the input script (or the current directory when no " @@ -264,9 +285,6 @@ msgstr "" "Wartość domyślna zależna od instalacji (przez konwencję zawierająca katalog " "``site-packages``, obsługiwany przez moduł :mod:`site`)." -msgid "More details are at :ref:`sys-path-init`." -msgstr "" - msgid "" "On file systems which support symlinks, the directory containing the input " "script is calculated after the symlink is followed. In other words the " @@ -305,12 +323,12 @@ msgid "" "different releases and different versions of Python to coexist." msgstr "" "Aby przyspieszyć ładowanie modułów, Python cache'uje skompilowaną wersję " -"każdego modułu w katalogu ``__pycache__`` pod nazwą :file:`module.{wersja}." -"pyc`, gdzie wersja koduje format skompilowanego pliku; zazwyczaj zawiera " -"numer wersji Pythona. Na przykład w wydaniu CPythona 3.3 skompilowana wersja " -"spam.py zostałaby zcache'owana jako ``__pycache__/spam.cpython-33.pyc``. Ta " -"konwencja nazw pozwala na współistnienie skompilowanych modułów z różnych " -"wydań i wersji Pythona." +"każdego modułu w katalogu ``__pycache__`` pod nazwą :file:`module." +"{wersja}.pyc`, gdzie wersja koduje format skompilowanego pliku; zazwyczaj " +"zawiera numer wersji Pythona. Na przykład w wydaniu CPythona 3.3 " +"skompilowana wersja spam.py zostałaby zcache'owana jako ``__pycache__/" +"spam.cpython-33.pyc``. Ta konwencja nazw pozwala na współistnienie " +"skompilowanych modułów z różnych wydań i wersji Pythona." msgid "" "Python checks the modification date of the source against the compiled " @@ -362,12 +380,12 @@ msgstr "" 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 "" -"Program nie wykonuje się ani chwili szybciej, gdy jest czytany z pliku ``." -"pyc`` niż gdy jest czytany z pliku ``.py``. Jedyna rzecz, która jest szybsza " -"w plikach ``.pyc`` to szybkość, w jakiej są one ładowane." +"Program nie wykonuje się ani chwili szybciej, gdy jest czytany z pliku " +"``.pyc`` niż gdy jest czytany z pliku ``.py``. Jedyna rzecz, która jest " +"szybsza w plikach ``.pyc`` to szybkość, w jakiej są one ładowane." msgid "" "The module :mod:`compileall` can create .pyc files for all modules in a " @@ -399,11 +417,23 @@ msgid "" "into every Python interpreter. The variables ``sys.ps1`` and ``sys.ps2`` " "define the strings used as primary and secondary prompts::" msgstr "" +"Python zawiera bibliotekę modułów standardowych, opisaną w osobnym " +"dokumencie, dokumentacji biblioteki standardowej. Niektóre moduły są " +"wbudowane w interpreter; dają one dostęp do operacji, które nie są częścią " +"trzonu języka, niemniej jednak są wbudowane, dla wydajności lub aby dać " +"dostęp do elementów systemu operacyjnego jak wywołania systemowe. Zbiór " +"takich modułów jest opcją konfiguracyjną, która zależy również od platformy. " +"Na przykład moduł :mod:`winreg` jest dostępny tylko w systemach Windows. " +"Jeden szczególny moduł zasługuje na uwagę: :mod:`sys`, który jest wbudowany " +"w każdy interpreter Pythona. Zmienne ``sys.ps1`` i ``sys.ps2`` określają " +"ciągi znaków używane jako znaki zachęty pierwszego i drugiego rzędu::" msgid "" "These two variables are only defined if the interpreter is in interactive " "mode." msgstr "" +"Te dwie zmienne są określone tylko jeśli interpreter jest w trybie " +"interaktywnym." msgid "" "The variable ``sys.path`` is a list of strings that determines the " @@ -412,31 +442,44 @@ msgid "" "default if :envvar:`PYTHONPATH` is not set. You can modify it using " "standard list operations::" msgstr "" +"Zmienna ``sys.path`` jest listą ciągów znaków, która określa ścieżkę " +"wyszukań modułów interpretera. Jest inicjalizowana domyślą ścieżką braną ze " +"zmiennej środowiskowej :envvar:`PYTHONPATH` lub z wbudowanej wartości " +"domyślnej, jeśli :envvar:`PYTHONPATH` jest nieustawiona. Możesz ją " +"modyfikować używając standardowych operacji na listach::" msgid "The :func:`dir` Function" -msgstr "" +msgstr "Funkcja :func:`dir`" msgid "" "The built-in function :func:`dir` is used to find out which names a module " "defines. It returns a sorted list of strings::" msgstr "" +"Wbudowana funkcja :func:`dir` jest używana do sprawdzenia, jakie nazwy " +"definiuje moduł. Zwraca uporządkowaną listę ciągów znaków::" msgid "" "Without arguments, :func:`dir` lists the names you have defined currently::" msgstr "" +"Bez argumentów, :func:`dir` wypisuje nazwy zdefiniowane w bieżącym " +"kontekście::" msgid "" "Note that it lists all types of names: variables, modules, functions, etc." msgstr "" +"Zauważ, że wylistowuje wszystkie typy nazw: zmienne, moduły, funkcje i tak " +"dalej." 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`::" +"you want a list of those, they are defined in the standard " +"module :mod:`builtins`::" msgstr "" +":func:`dir` nie wypisuje nazw wbudowanych funkcji i zmiennych. Jeśli chcesz " +"ich listę, określone one są w module standardowym :mod:`builtins`::" msgid "Packages" -msgstr "" +msgstr "Pakiety" msgid "" "Packages are a way of structuring Python's module namespace by using " @@ -447,71 +490,114 @@ msgid "" "authors of multi-module packages like NumPy or Pillow from having to worry " "about each other's module names." msgstr "" +"Pakiety to sposób strukturyzacji przestrzeni nazw modułów Pythona za pomocą " +"„nazw modułów z kropkami”. Na przykład nazwa modułu :mod:`A.B` oznacza " +"podmoduł ``B`` nazwany w pakiecie o nazwie ``A``. Tak jak użycie modułów " +"oszczędza autorom martwienia się o nazwy zmiennych globalnych w pozostałych " +"modułach, użycie nazw modułów z kropkami oszczędza autorom pakietów " +"wielomodułowych, takich jak NumPy lub Pillow, martwienie się o przestrzeń " +"nazw innych podmodułów." 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 " -"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 " -"equalizer function, creating an artificial stereo effect), so in addition " -"you will be writing a never-ending stream of modules to perform these " -"operations. Here's a possible structure for your package (expressed in " -"terms of a hierarchical filesystem):" -msgstr "" - -msgid "" -"When importing the package, Python searches through the directories on ``sys." -"path`` looking for the package subdirectory." -msgstr "" +"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 equalizer function, creating an artificial stereo effect), so in " +"addition you will be writing a never-ending stream of modules to perform " +"these operations. Here's a possible structure for your package (expressed " +"in terms of a hierarchical filesystem):" +msgstr "" +"Załóżmy, że chcesz zaprojektować zbiór modułów („pakiet”) do jednolitej " +"obsługi plików dźwiękowych i danych dźwiękowych. Istnieje wiele różnych " +"formatów plików dźwiękowych (zwykle rozpoznawanych po ich rozszerzeniach, na " +"przykład: :file:`.wav`, :file:`.aiff`, :file:`.au`), więc może być konieczne " +"utworzenie i utrzymywanie rosnącej kolekcji modułów do konwersji między " +"różnymi formatami plików. Istnieje również wiele różnych operacji, które " +"możesz chcieć wykonać na danych dźwiękowych (takich jak miksowanie, " +"dodawanie echa, stosowanie funkcji korektora, tworzenie sztucznego efektu " +"stereo), więc dodatkowo będziesz pisać niekończącą się liczbę modułów do " +"wykonywania tych operacji. Oto możliwa struktura twojego pakietu (wyrażona " +"jako hierarchiczny system plików):" + +msgid "" +"When importing the package, Python searches through the directories on " +"``sys.path`` looking for the package subdirectory." +msgstr "" +"Podczas importowania pakietu Python przeszukuje katalogi zapisane w " +"``sys.path`` w poszukiwaniu podkatalogu pakietu." msgid "" "The :file:`__init__.py` files are required to make Python treat directories " "containing the file as packages. This prevents directories with a common " -"name, such as ``string``, unintentionally hiding valid modules that occur " -"later on the module search path. In the simplest case, :file:`__init__.py` " -"can just be an empty file, but it can also execute initialization code for " -"the package or set the ``__all__`` variable, described later." +"name, such as ``string``, from unintentionally hiding valid modules that " +"occur later on the module search path. In the simplest " +"case, :file:`__init__.py` can just be an empty file, but it can also execute " +"initialization code for the package or set the ``__all__`` variable, " +"described later." msgstr "" +"Pliki :file:`__init__.py` są wymagane, aby Python traktował katalogi " +"zawierające ten plik jako pakiety. Zapobiega to katalogom o często " +"występującej nazwie, takiej jak ``string``, przed niezamierzonym ukrywaniem " +"prawidłowych modułów, które pojawiają się później w ścieżce wyszukiwania " +"modułów. W najprostszym przypadku :file:`__init__.py` może to być po prostu " +"pustym plikiem, ale może też wykonać kod inicjujący pakiet lub ustawić " +"zmienną ``__all__``, która będzie opisana później." msgid "" "Users of the package can import individual modules from the package, for " "example::" msgstr "" +"Użytkownicy pakietu mogą importować z pakietu poszczególne moduły, na " +"przykład::" msgid "" "This loads the submodule :mod:`sound.effects.echo`. It must be referenced " "with its full name. ::" msgstr "" +"Spowoduje to załadowanie podmodułu :mod:`sound.effects.echo`. Musi on być " +"wywoływany używając jego pełnej nazwy. ::" msgid "An alternative way of importing the submodule is::" -msgstr "" +msgstr "Alternatywnym sposobem importowania podmodułu jest::" msgid "" "This also loads the submodule :mod:`echo`, and makes it available without " "its package prefix, so it can be used as follows::" msgstr "" +"To również spowoduje załadowanie podmodułu :mod:`echo` lecz udostępnia go " +"bez prefiksu pakietu, dzięki czemu można go użyć w następujący sposób::" msgid "" "Yet another variation is to import the desired function or variable " "directly::" msgstr "" +"Jeszcze innym sposobem jest bezpośredni import żądanej funkcji lub zmiennej::" 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 "" +"Ponownie, ładuje to podmoduł :mod:`echo`, ale dzięki temu jego " +"funkcja :func:`echofilter` jest bezpośrednio dostępna::" 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." +"module and attempts to load it. If it fails to find it, " +"an :exc:`ImportError` exception is raised." msgstr "" +"Zauważ, że podczas używania ``from package import item``, element może być " +"podmodułem (lub podpakietem) pakietu lub inną nazwą zdefiniowaną w pakiecie, " +"jak funkcją, klasą lub zmienną. Instrukcja ``import`` najpierw sprawdza, czy " +"element jest zdefiniowany w paczce; jeśli nie, zakłada, że ​​jest to moduł i " +"próbuje go załadować. Jeśli go nie znajdzie, zgłaszany jest " +"wyjątek :exc:`ImportError`." msgid "" "Contrarily, when using syntax like ``import item.subitem.subsubitem``, each " @@ -519,9 +605,13 @@ msgid "" "a package but can't be a class or function or variable defined in the " "previous item." msgstr "" +"W przeciwieństwie do tego, gdy używana jest składnia ``import " +"item.subitem.subsubitem``, każdy element oprócz ostatniego musi być " +"pakietem; ostatni element może być modułem lub pakietem, ale nie może być " +"klasą, funkcją lub zmienną zdefiniowaną w poprzednim elemencie." msgid "Importing \\* From a Package" -msgstr "" +msgstr "Importowanie \\* z pakietu" msgid "" "Now what happens when the user writes ``from sound.effects import *``? " @@ -530,6 +620,12 @@ msgid "" "could take a long time and importing sub-modules might have unwanted side-" "effects that should only happen when the sub-module is explicitly imported." msgstr "" +"Teraz, co się dzieje, gdy użytkownik pisze ``from sound.effects import *``? " +"W idealnym świecie, mamy nadzieję, że to w jakiś sposób wychodzi do systemu " +"plików, wyszukuje, które podmoduły są obecne w pakiecie i importuje je " +"wszystkie. Jednak może to zająć dużo czasu, a importowanie modułów " +"podrzędnych może mieć niepożądane skutki uboczne, które powinny wystąpić " +"tylko wtedy, gdy moduł podrzędny zostanie jawnie zaimportowany." msgid "" "The only solution is for the package author to provide an explicit index of " @@ -542,23 +638,44 @@ msgid "" "importing \\* from their package. For example, the file :file:`sound/" "effects/__init__.py` could contain the following code::" msgstr "" +"Jedynym rozwiązaniem jest podanie przez autora pakietu jawnego indeksu " +"pakietu. Instrukcja :keyword:`import` wykorzystuje następującą konwencję: " +"jeśli kod pakietu definiuje listę o nazwie ``__all__``, przyjmuje się, że " +"jest to lista nazw modułów, które powinny zostać zaimportowane, gdy zostanie " +"wywołane ``from package import *``. Do autora pakietu należy aktualizowanie " +"tej listy po wydaniu nowej wersji pakietu. Autorzy pakietów mogą również " +"zdecydować, że nie będą go wspierać, jeśli nie widzą zastosowania do " +"importowania \\* ze swojego pakietu. Na przykład plik :file:`sound/effects/" +"__init__.py` może zawierać następujący kod::" msgid "" "This would mean that ``from sound.effects import *`` would import the three " "named submodules of the :mod:`sound.effects` package." msgstr "" +"To by znaczyło że ``from sound.effects import *`` zaimportuje trzy " +"wymienione podmoduły z pakietu :mod:`sound.effects`." 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::" -msgstr "" +"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 "" +"Jeśli zmienna ``__all__`` nie jest zdefiniowana, instrukcja ``from " +"sound.effects import *`` *nie* importuje wszystkich podmodułów z " +"pakietu :mod:`sound.effects` do bieżącej przestrzeni nazw; upewnia się " +"tylko, że pakiet :mod:`sound.effects` został zaimportowany (ewentualnie " +"uruchamiając dowolny kod inicjujący w :file:`__init__.py`), a następnie " +"importuje dowolne nazwy zdefiniowane w pakiecie. Obejmuje to wszelkie nazwy " +"zdefiniowane (i jawnie załadowane moduły podrzędne) " +"przez :file:`__init__.py`. Obejmuje również wszelkie podmoduły pakietu, " +"które zostały jawnie załadowane przez poprzednie " +"instrukcje :keyword:`import`. Rozważ ten kod::" msgid "" "In this example, the :mod:`echo` and :mod:`surround` modules are imported in " @@ -566,12 +683,20 @@ msgid "" "package when the ``from...import`` statement is executed. (This also works " "when ``__all__`` is defined.)" msgstr "" +"W tym przykładzie moduły :mod:`echo` i :mod:`surround` są importowane do " +"bieżącej przestrzeni nazw, ponieważ są zdefiniowane w " +"pakiecie :mod:`sound.effects` podczas wykonywania instrukcji " +"``from...import``. (Działa to również, gdy zmienna ``__all__`` jest " +"zdefiniowana.)" msgid "" "Although certain modules are designed to export only names that follow " "certain patterns when you use ``import *``, it is still considered bad " "practice in production code." msgstr "" +"Chociaż niektóre moduły są zaprojektowane do eksportowania tylko nazw " +"zgodnych z określonymi wzorcami podczas używania ``import *``, nadal jest to " +"uważane za złą praktykę w kodzie produkcyjnym." msgid "" "Remember, there is nothing wrong with using ``from package import " @@ -579,24 +704,38 @@ msgid "" "importing module needs to use submodules with the same name from different " "packages." msgstr "" +"Pamiętaj, nie ma nic złego w używaniu ``from package import " +"specific_submodule``! W rzeczywistości jest to zalecana notacja, chyba że " +"moduł importujący musi używać podmodułów o tej samej nazwie z innych " +"pakietów." msgid "Intra-package References" -msgstr "" +msgstr "Referencje wewnątrz-pakietowe" 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``." +"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 "" +"Gdy pakiety są podzielone na podpakiety (jak w przypadku " +"pakietu :mod:`sound` w przykładzie), możesz użyć importu bezwzględnego, aby " +"odnieść się do podmodułów siostrzanych pakietów. Na przykład, jeśli " +"moduł :mod:`sound.filters.vocoder` musi użyć modułu :mod:`echo` w " +"pakiecie :mod:`sound.effects`, może użyć ``from sound.effects import echo``." 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 "" +"Można również pisać importy względne w formie takiej: ``from module import " +"name`` instrukcji importu. Te importy wykorzystują wiodące kropki do " +"wskazania pakietów bieżących i nadrzędnych biorących udział w imporcie " +"względnym. Na przykład z modułu :mod:`surround` możesz użyć::" msgid "" "Note that relative imports are based on the name of the current module. " @@ -604,9 +743,13 @@ msgid "" "intended for use as the main module of a Python application must always use " "absolute imports." msgstr "" +"Należy zauważyć, że importy względne są oparte na nazwie bieżącego modułu. " +"Ponieważ nazwa głównego modułu to zawsze ``\"__main__\"``, moduły " +"przeznaczone do użycia jako główny moduł aplikacji w Python-ie muszą zawsze " +"używać bezwzględnego importu." msgid "Packages in Multiple Directories" -msgstr "" +msgstr "Pakiety w wielu katalogach" msgid "" "Packages support one more special attribute, :attr:`__path__`. This is " @@ -615,11 +758,18 @@ msgid "" "This variable can be modified; doing so affects future searches for modules " "and subpackages contained in the package." msgstr "" +"Pakiety obsługują jeszcze jeden specjalny atrybut, :attr:`__path__`. Jest to " +"inicjalizowane jako lista zawierająca nazwę katalogu " +"zawierającego :file:`__init__.py` przed wykonaniem kodu w tym pliku. Ta " +"zmienna może być modyfikowana; ma to wpływ na przyszłe wyszukiwania modułów " +"i podpakietów zawartych w pakiecie." msgid "" "While this feature is not often needed, it can be used to extend the set of " "modules found in a package." msgstr "" +"Chociaż ta funkcja nie jest często potrzebna, można jej użyć do rozszerzenia " +"zestawu modułów znajdujących się w pakiecie." msgid "Footnotes" msgstr "Przypisy" @@ -629,3 +779,6 @@ msgid "" "execution of a module-level function definition adds the function name to " "the module's global namespace." msgstr "" +"W rzeczywistości definicje funkcji są również „instrukcjami”, które są " +"„wykonywane”; wykonanie definicji funkcji na poziomie modułu dodaje nazwę " +"funkcji do globalnej przestrzeni nazw modułu." diff --git a/tutorial/stdlib.po b/tutorial/stdlib.po index 9e09a25f5b..675a17654f 100644 --- a/tutorial/stdlib.po +++ b/tutorial/stdlib.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Igor Zubrycki , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Igor Zubrycki , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Brief Tour of the Standard Library" msgstr "Krótka wycieczka po Bibliotece Standardowej" @@ -33,33 +33,44 @@ msgid "" "The :mod:`os` module provides dozens of functions for interacting with the " "operating system::" msgstr "" +"Moduł :mod:`os` udostępnia wiele funkcji do interakcji z systemem " +"operacyjnym::" msgid "" "Be sure to use the ``import os`` style instead of ``from os import *``. " "This will keep :func:`os.open` from shadowing the built-in :func:`open` " "function which operates much differently." msgstr "" +"Upewnij się, że używasz stylu ``import os``, a nie ``from os import *``. W " +"tym drugim przypadku funkcja :func:`os.open` przesłoni wbudowaną " +"funkcję :func:`open`, która działa w skrajnie inny sposób." msgid "" "The built-in :func:`dir` and :func:`help` functions are useful as " "interactive aids for working with large modules like :mod:`os`::" msgstr "" +"Wbudowane funkcje :func:`dir` i :func:`help`, są przydatne jako interaktywne " +"pomoce do pracy z dużymi modułami, takimi jak :mod:`os`::" msgid "" "For daily file and directory management tasks, the :mod:`shutil` module " "provides a higher level interface that is easier to use::" msgstr "" +"Do codziennego zarządzania plikami i katalogami, moduł :mod:`shutil` " +"zapewnia interfejs wyższego poziomu, który jest łatwiejszy w użyciu::" msgid "File Wildcards" -msgstr "" +msgstr "Symbole wieloznaczne plików" msgid "" "The :mod:`glob` module provides a function for making file lists from " "directory wildcard searches::" msgstr "" +"Moduł :mod:`glob` udostępnia funkcję do tworzenia list plików korzystając z " +"wyszukiwania na symbolach wieloznacznych::" msgid "Command Line Arguments" -msgstr "" +msgstr "Argumenty linii polecenia" msgid "" "Common utility scripts often need to process command line arguments. These " @@ -73,41 +84,59 @@ msgid "" "process command line arguments. The following script extracts one or more " "filenames and an optional number of lines to be displayed::" msgstr "" +"Moduł :mod:`argparse` zapewnia bardziej wyrafinowane mechanizmy do " +"przetwarzania argumentów wiersza poleceń. Poniższy skrypt wyodrębnia jedną " +"lub więcej nazw plików i opcjonalną liczbę linii do wyświetlenia::" 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']``." +"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 "" +"Po uruchomieniu w wierszu poleceń ``python top.py --lines=5 alpha.txt " +"beta.txt``, skrypt ustawia ``args.lines`` na ``5`` i ``args.filenames`` na " +"``['alpha.txt', 'beta.txt']``." msgid "Error Output Redirection and Program Termination" -msgstr "" +msgstr "Przekierowanie wyjścia błędu i zakończenie programu" msgid "" "The :mod:`sys` module also has attributes for *stdin*, *stdout*, and " "*stderr*. The latter is useful for emitting warnings and error messages to " "make them visible even when *stdout* has been redirected::" msgstr "" +"Moduł :mod:`sys` ma również atrybuty dla *stdin*, *stdout* i *stderr* " +"(standardowe wejście, standardowe wyjście i standardowe wyjście błędu). To " +"ostatnie jest przydatne do emitowania ostrzeżeń i komunikatów o błędach, aby " +"były widoczne nawet wtedy, gdy *stdout* został przekierowany::" msgid "The most direct way to terminate a script is to use ``sys.exit()``." msgstr "" +"Najbardziej bezpośrednim sposobem na zakończenie skryptu jest użycie " +"``sys.exit()``." msgid "String Pattern Matching" -msgstr "" +msgstr "Dopasowywanie wzorców w napisach" msgid "" "The :mod:`re` module provides regular expression tools for advanced string " "processing. For complex matching and manipulation, regular expressions offer " "succinct, optimized solutions::" msgstr "" +"Moduł :mod:`re` zapewnia narzędzia wyrażeń regularnych do zaawansowanego " +"przetwarzania napisów. W przypadku złożonych operacji dopasowywania i " +"manipulacji na ciągach znaków, wyrażenia regularne pozwalają na zwięzłe, " +"zoptymalizowane rozwiązania::" msgid "" "When only simple capabilities are needed, string methods are preferred " "because they are easier to read and debug::" msgstr "" +"Gdy potrzebne są tylko proste funkcje, preferowane są funkcje standardowe " +"napisów, ponieważ są łatwiejsze do odczytania i debugowania::" msgid "Mathematics" -msgstr "" +msgstr "Funkcje matematyczne" msgid "" "The :mod:`math` module gives access to the underlying C library functions " @@ -116,31 +145,41 @@ msgstr "" msgid "The :mod:`random` module provides tools for making random selections::" msgstr "" +"Moduł :mod:`random` dostarcza narzędzi do dokonywania wyborów losowych::" msgid "" "The :mod:`statistics` module calculates basic statistical properties (the " "mean, median, variance, etc.) of numeric data::" msgstr "" +"Moduł :mod:`statistics` oblicza podstawowe wskaźniki statystyczne (średnią, " +"medianę, wariancję itp.) z danych liczbowych::" msgid "" "The SciPy project has many other modules for numerical " "computations." msgstr "" +"Projekt SciPy posiada wiele innych modułów służących do " +"obliczeń numerycznych." msgid "Internet Access" -msgstr "" +msgstr "Dostęp do internetu" msgid "" "There are a number of modules for accessing the internet and processing " "internet protocols. Two of the simplest are :mod:`urllib.request` for " "retrieving data from URLs and :mod:`smtplib` for sending mail::" msgstr "" +"Istnieje wiele modułów umożliwiających dostęp do Internetu i przetwarzanie " +"protokołów internetowych. Dwa z najprostszych to :mod:`urllib.request` do " +"pobierania danych z adresów URL i :mod:`smtplib` do wysyłania poczty::" msgid "(Note that the second example needs a mailserver running on localhost.)" msgstr "" +"(Zauważ, że drugi przykład wymaga serwera pocztowego działającego lokalnie " +"pod adresem `localhost`)." msgid "Dates and Times" -msgstr "" +msgstr "Daty i czas" msgid "" "The :mod:`datetime` module supplies classes for manipulating dates and times " @@ -149,45 +188,68 @@ msgid "" "for output formatting and manipulation. The module also supports objects " "that are timezone aware. ::" msgstr "" +"Moduł :mod:`datetime` dostarcza klasy do manipulowania datami i godzinami " +"zarówno w prosty, jak i złożony sposób. Podczas gdy obsługiwana jest " +"arytmetyka daty i czasu, implementacja koncentruje się na wydajnym " +"wyodrębnianiu danych w celu formatowania i manipulacji. Moduł obsługuje " +"również obiekty uwzględniające strefę czasową ::" msgid "Data Compression" msgstr "Kompresja Danych" 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 "" +"Popularne formaty archiwizacji i kompresji danych są bezpośrednio " +"obsługiwane przez moduły, w " +"tym: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`lzma`, :mod:`zipfile` " +"i :mod:`tarfile`:" msgid "Performance Measurement" -msgstr "" +msgstr "Mierzenie wydajności" msgid "" "Some Python users develop a deep interest in knowing the relative " "performance of different approaches to the same problem. Python provides a " "measurement tool that answers those questions immediately." msgstr "" +"Niektórzy użytkownicy Python są głęboko zainteresowani poznaniem względnej " +"wydajności różnych podejść do tego samego problemu. Python zapewnia " +"narzędzie pomiarowe, które natychmiast odpowiada na te pytania." 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 "" +"Na przykład kuszące może być użycie funkcji pakowania i rozpakowywania " +"krotka zamiast tradycyjnego podejścia do zamiany argument. " +"Moduł :mod:`timeit` szybko pokazuje skromną przewagę wydajności::" msgid "" "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 "" +"W przeciwieństwie do dokładnego poziomu szczegółowości :mod:`timeit`, " +"moduły :mod:`profile` i :mod:`pstats` zapewniają narzędzia do identyfikacji " +"sekcji krytycznych czasowo w większych blok kodu." msgid "Quality Control" -msgstr "Kontrola Jakości" +msgstr "Kontrola jakości" 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 " "development process." msgstr "" +"Jednym z podejść do tworzenia wysokiej jakości oprogramowania jest pisanie " +"testów dla każdej funkcj w trakcie jego tworzenia i częste uruchamianie tych " +"testów podczas rozwoju." msgid "" "The :mod:`doctest` module provides a tool for scanning a module and " @@ -197,12 +259,21 @@ msgid "" "example and it allows the doctest module to make sure the code remains true " "to the documentation::" msgstr "" +"Moduł :mod:`doctest` zapewnia narzędzie do skanowania strony moduł i " +"sprawdzania poprawności testów osadzonych w dokumentacji programu. " +"Konstrukcja testu jest tak prosta, jak wycięcie i wklejenie typowego " +"wywołania wraz z jego wynikami do docstring. Poprawia to dokumentację " +"poprzez dostarczenie użytkownikowi przykładu i pozwala doctestowi moduł " +"upewnić się, że kod pozostaje prawda zgodny z dokumentacją::" 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 "" +"Moduł :mod:`unittest` nie jest tak łatwy w użytku jak moduł :mod:`doctest` , " +"ale pozwala na przechowywanie bardziej kompleksowego zestawu testów w " +"osobnym pliku::" msgid "Batteries Included" msgstr "Dostarczone z bateriami" @@ -213,14 +284,17 @@ msgid "" "example:" msgstr "" "Python trzyma się filozofii \"dostarczone z bateriami\". Można to najłatwiej " -"ujrzeć w zaawansowanych możliwościach jego większych package'y. Dla " -"przykładu:" +"ujrzeć w zaawansowanych możliwościach jego większych pakietów. Dla przykładu:" msgid "" "The :mod:`xmlrpc.client` and :mod:`xmlrpc.server` modules make implementing " "remote procedure calls into an almost trivial task. Despite the modules' " "names, no direct knowledge or handling of XML is needed." msgstr "" +"Moduły :mod:`xmlrpc.client` i :mod:`xmlrpc.server` sprawiają, że " +"implementacja zdalnych wywołań procedur staje się niemal trywialnym " +"zadaniem. Pomimo nazw moduł', nie jest wymagana bezpośrednia znajomość lub " +"obsługa XML." msgid "" "The :mod:`email` package is a library for managing email messages, including " @@ -230,24 +304,43 @@ msgid "" "structures (including attachments) and for implementing internet encoding " "and header protocols." msgstr "" +"Pakiet :mod:`email` jest biblioteką do zarządzania wiadomościami e-mail, w " +"tym MIME i innymi dokumentami wiadomości opartymi na :rfc:`2822`. W " +"przeciwieństwie do :mod:`smtplib` i :mod:`poplib`, które faktycznie wysyłają " +"i odbierają wiadomości, pakiet e-mail posiada kompletny zestaw narzędzi do " +"tworzenia lub dekodowania złożonych struktur wiadomości (w tym załączników) " +"oraz do implementacji internetowych protokołów kodowania i nagłówków." 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." -msgstr "" +"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 "" +"Pakiet :mod:`json` zapewnia solidne wsparcie dla analizowania tego " +"popularnego formatu wymiany danych. Pakiet :mod:`csv` moduł obsługuje " +"bezpośredni odczyt i zapis plików w formacie Comma-Separated Value (.csv), " +"powszechnie obsługiwanym przez bazy danych i arkusze kalkulacyjne. " +"Przetwarzanie XML jest obsługiwane przez " +"pakiety :mod:`xml.etree.ElementTree`, :mod:`xml.dom` i :mod:`xml.sax`. Razem " +"te moduły i pakiety znacznie upraszczają wymianę danych między Python " +"aplikacja i innymi narzędziami." msgid "" "The :mod:`sqlite3` module is a wrapper for the SQLite database library, " "providing a persistent database that can be updated and accessed using " "slightly nonstandard SQL syntax." msgstr "" +"Moduł :mod:`sqlite3` jest opakowaniem dla biblioteki bazy danych SQLite, " +"zapewniając trwałą bazę danych, która może być aktualizowana i dostępna przy " +"użyciu nieco niestandardowej składni SQL." 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 "" +"Internacjonalizacja jest wspierana przez kilka moduł, w " +"tym :mod:`gettext`, :mod:`locale` i :mod:`codecs`." diff --git a/tutorial/stdlib2.po b/tutorial/stdlib2.po new file mode 100644 index 0000000000..84eea2f7e0 --- /dev/null +++ b/tutorial/stdlib2.po @@ -0,0 +1,397 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Brief Tour of the Standard Library --- Part II" +msgstr "Krótka wycieczka po bibliotece standardowej --- Część II" + +msgid "" +"This second tour covers more advanced modules that support professional " +"programming needs. These modules rarely occur in small scripts." +msgstr "" +"Ta druga wycieczka obejmuje bardziej zaawansowane moduł, które wspierają " +"profesjonalne potrzeby programistyczne. Te moduł rzadko występują w małych " +"skryptach." + +msgid "Output Formatting" +msgstr "Formatowanie wyjścia" + +msgid "" +"The :mod:`reprlib` module provides a version of :func:`repr` customized for " +"abbreviated displays of large or deeply nested containers::" +msgstr "" +":mod:`reprlib` moduł zapewnia wersja z :func:`repr` dostosowany do " +"skróconego wyświetlania dużych lub głęboko zagnieżdżonych kontenerów::" + +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::" +msgstr "" +"Moduł :mod:`pprint` oferuje bardziej wyrafinowaną kontrolę nad drukowaniem " +"zarówno wbudowanej, jak i obiektów zdefiniowanych przez użytkownika w sposób " +"czytelny dla interpretera. Gdy wynik jest dłuższy niż jedna linia, \"ładna " +"drukarka\" dodaje podziały linii i wcięcia, aby wyraźniej ujawnić strukturę " +"danych::" + +msgid "" +"The :mod:`textwrap` module formats paragraphs of text to fit a given screen " +"width::" +msgstr "" +"Moduł :mod:`textwrap` formatuje akapity tekstu tak, aby pasowały do danej " +"szerokości ekranu::" + +msgid "" +"The :mod:`locale` module accesses a database of culture specific data " +"formats. The grouping attribute of locale's format function provides a " +"direct way of formatting numbers with group separators::" +msgstr "" +":mod:`locale` moduł uzyskuje dostęp do bazy danych formatów danych " +"specyficznych dla danej kultury. Grupowanie atrybut formatu locale funkcja " +"zapewnia bezpośredni sposób formatowania liczb za pomocą separatorów grup::" + +msgid "Templating" +msgstr "Szablonowanie" + +msgid "" +"The :mod:`string` module includes a versatile :class:`~string.Template` " +"class with a simplified syntax suitable for editing by end-users. This " +"allows users to customize their applications without having to alter the " +"application." +msgstr "" +"Moduł :mod:`string` zawiera wszechstronną klasę :class:`~string.Template` z " +"uproszczoną składnią odpowiednią do edycji przez użytkowników końcowych. " +"Pozwala to użytkownikom na dostosowanie ich aplikacja bez konieczności " +"zmiany aplikacja." + +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 " +"``$``::" +msgstr "" +"Format wykorzystuje nazwy placeholder utworzone przez ``$`` z ważnymi " +"identyfikatorami Python (alfanumeryczne znak i podkreślenia). Otoczenie " +"placeholder nawiasami klamrowymi pozwala na umieszczenie po nim kolejnych " +"liter alfanumerycznych bez spacji. Napisanie ``$$`` tworzy pojedynczy " +"``$``::" + +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 " +"--- it will leave placeholders unchanged if data is missing::" +msgstr "" +"Metoda :meth:`~string.Template.substitute` rzuci :exc:`KeyError`, gdy " +"placeholder nie jest podany w słowniku lub argument nazwany. W przypadku " +"mail-merge aplikacjach, dane dostarczone przez użytkownika mogą być " +"niekompletne, a metoda :meth:`~string.Template.safe_substitute` może być " +"bardziej odpowiednia --- pozostawi placeholder bez zmian, jeśli brakuje " +"danych::" + +msgid "" +"Template subclasses can specify a custom delimiter. For example, a batch " +"renaming utility for a photo browser may elect to use percent signs for " +"placeholders such as the current date, image sequence number, or file " +"format::" +msgstr "" +"Szablon podklas mogą określać niestandardowy separator. Na przykład, " +"narzędzie do wsadowej zmiany nazw dla przeglądarki zdjęć może zdecydować się " +"na użycie znaków procentowych jako placeholder, takich jak bieżące dane, " +"numer sekwencyjny obrazu lub format pliku::" + +msgid "" +"Another application for templating is separating program logic from the " +"details of multiple output formats. This makes it possible to substitute " +"custom templates for XML files, plain text reports, and HTML web reports." +msgstr "" +"Innym aplikacja dla szablonów jest oddzielenie logiki programu od szczegółów " +"wielu formatów wyjściowych. Umożliwia to zastąpienie niestandardowych " +"szablonów plikami XML, raportami tekstowymi i raportami internetowymi HTML." + +msgid "Working with Binary Data Record Layouts" +msgstr "Praca z układami rekordów danych binarnych" + +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::" +msgstr "" +"Moduł :mod:`struct` udostępnia :func:`~struct.pack` i :func:`~struct.unpack` " +"funkcje do pracy z formatami rekordów binarnych o zmiennej długości. " +"Poniższy przykład pokazuje, jak zapętlić informacje nagłówka w pliku ZIP bez " +"użycia moduł :mod:`zipfile` . Kody pakietów ``\"H\"`` i ``\"I\"`` " +"reprezentują odpowiednio dwu- i czterobajtowe liczby bez znaku. Oznaczenie " +"``\"<\"`` wskazuje, że mają one standardowy rozmiar i kolejność bajtów " +"little-endian::" + +msgid "Multi-threading" +msgstr "Wielowątkowość" + +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." +msgstr "" +"Wątkowanie jest techniką oddzielania zadań, które nie są sekwencyjnie " +"zależne. Wątek może być używany do poprawy szybkości reakcji aplikacji, " +"które akceptują dane wejściowe użytkownika, podczas gdy inne zadania " +"działają w tle. Powiązanym przypadkiem użycia jest równoległe wykonywanie " +"operacji wejścia/wyjścia z obliczeniami w innym wątku." + +msgid "" +"The following code shows how the high level :mod:`threading` module can run " +"tasks in background while the main program continues to run::" +msgstr "" +"Poniższy kod pokazuje, w jaki sposób wysokopoziomowy :mod:`threading` moduł " +"może uruchamiać zadania w tle, podczas gdy główny program nadal działa::" + +msgid "" +"The principal challenge of multi-threaded applications is coordinating " +"threads that share data or other resources. To that end, the threading " +"module provides a number of synchronization primitives including locks, " +"events, condition variables, and semaphores." +msgstr "" +"Głównym wyzwaniem wielowątkowej aplikacji jest koordynacja wątkow, które " +"współdzielą dane lub inne zasoby. W tym celu wątkowanie moduł zapewnia " +"szereg prymitywów synchronizacji, w tym blokady, zdarzenia, zmienne " +"warunkowe i semafory." + +msgid "" +"While those tools are powerful, minor design errors can result in problems " +"that are difficult to reproduce. So, the preferred approach to task " +"coordination is to concentrate all access to a resource in a single thread " +"and then use the :mod:`queue` module to feed that thread with requests from " +"other threads. Applications using :class:`~queue.Queue` objects for inter-" +"thread communication and coordination are easier to design, more readable, " +"and more reliable." +msgstr "" +"Chociaż narzędzia te są potężne, drobne błędy projektowe mogą skutkować " +"trudnymi do odtworzenia problemami. Dlatego preferowanym podejściem do " +"koordynacji zadań jest skoncentrowanie całego dostępu do zasobu w jednym " +"wąteku, a następnie wykorzystanie moduł :mod:`queue` do zasilania tego " +"wąteka żądaniami z innych wątekow. Aplikacja wykorzystuje " +"obiekty :class:`~queue.Queue` do komunikacji i koordynacji międzywątekowych " +"są łatwiejsze do zaprojektowania, bardziej czytelne i niezawodne." + +msgid "Logging" +msgstr "Logowanie" + +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``::" +msgstr "" +"Moduł :mod:`logging` oferuje w pełni funkcjonalny i elastyczny system " +"logowania. W najprostszym przypadku komunikaty dziennika są wysyłane do " +"pliku lub na adres ``sys.stderr``::" + +msgid "This produces the following output:" +msgstr "Daje to taki wyniki:" + +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 "" +"Domyślnie, komunikaty informacyjne i debugowanie są tłumione, a dane " +"wyjściowe są wysyłane do standardowego błędu. Inne opcje wyjściowe obejmują " +"kierowanie wiadomości przez e-mail, datagramy, gniazda lub do serwera HTTP. " +"Nowe filtry mogą wybierać różne trasy na podstawie priorytetu " +"wiadomości: :const:`~logging.DEBUG`, :const:`~logging.INFO`, :const:`~logging.WARNING`, :const:`~logging.ERROR` " +"i :const:`~logging.CRITICAL`." + +msgid "" +"The logging system can be configured directly from Python or can be loaded " +"from a user editable configuration file for customized logging without " +"altering the application." +msgstr "" +"System logowania może być skonfigurowany bezpośrednio z poziomu Pythona lub " +"może być załadowany z edytowalnego przez użytkownika pliku konfiguracyjnego " +"w celu dostosowania rejestrowania bez zmiany aplikacji." + +msgid "Weak References" +msgstr "Wsparcie słabych odniesień" + +msgid "" +"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 wykonuje automatyczne zarządzanie pamięcią (liczenie referencji dla " +"większości obiektów i :term:`garbage collection` w celu wyeliminowania " +"cykli). Pamięć jest zwalniana wkrótce po usunięciu ostatniego odniesienia " +"do niej." + +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 " +"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 "" +"Takie podejście sprawdza się w większości przypadków aplikacji, ale czasami " +"istnieje potrzeba śledzenia obiektów tylko tak długo, jak są one używane " +"przez coś innego. Niestety, samo ich śledzenie tworzy odniesienie, które " +"czyni je trwałymi. :mod:`weakref` moduł zapewnia narzędzia do śledzenia " +"obiektów bez tworzenia odniesienia. Gdy obiekt nie jest już potrzebny, jest " +"automatycznie usuwany z tabeli weakref i uruchamiane jest wywołanie zwrotne " +"dla obiektów weakref. Typowe aplikacja obejmują buforowanie obiektów, " +"których utworzenie jest kosztowne::" + +msgid "Tools for Working with Lists" +msgstr "Narzędzia do pracy z listami" + +msgid "" +"Many data structure needs can be met with the built-in list type. However, " +"sometimes there is a need for alternative implementations with different " +"performance trade-offs." +msgstr "" +"Wiele potrzeb związanych ze strukturami danych można zaspokoić za pomocą " +"listy wbudowanej. Czasami jednak istnieje potrzeba alternatywnych " +"implementacji z różnymi kompromisami w zakresie wydajności." + +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::" +msgstr "" + +msgid "" +"The :mod:`collections` module provides a :class:`~collections.deque()` " +"object that is like a list with faster appends and pops from the left side " +"but slower lookups in the middle. These objects are well suited for " +"implementing queues and breadth first tree searches::" +msgstr "" + +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::" +msgstr "" +"Oprócz alternatywnych implementacji list, biblioteka oferuje również inne " +"narzędzia, takie jak :mod:`bisect` moduł z funkcja do manipulowania " +"posortowanymi listami::" + +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 "" +"Moduł :mod:`heapq` udostępnia funkcje do implementacji stert opartych na " +"listach regularnych. Wpis o najniższej wartości jest zawsze przechowywany " +"na pozycji zero. Jest to przydatne dla aplikacji, które wielokrotnie " +"uzyskują dostęp do najmniejszego elementu, ale nie chcą uruchamiać pełnego " +"sortowania listy::" + +msgid "Decimal Floating Point Arithmetic" +msgstr "" + +msgid "" +"The :mod:`decimal` module offers a :class:`~decimal.Decimal` datatype for " +"decimal floating point arithmetic. Compared to the built-in :class:`float` " +"implementation of binary floating point, the class is especially helpful for" +msgstr "" + +msgid "" +"financial applications and other uses which require exact decimal " +"representation," +msgstr "" +"finansowe aplikacja i inne zastosowania wymagające dokładnej reprezentacji " +"dziesiętnej," + +msgid "control over precision," +msgstr "kontrola nad precyzją," + +msgid "control over rounding to meet legal or regulatory requirements," +msgstr "" +"kontrolę nad zaokrągleniami w celu spełnienia wymogów prawnych lub " +"regulacyjnych," + +msgid "tracking of significant decimal places, or" +msgstr "śledzenie znaczących miejsc po przecinku, lub" + +msgid "" +"applications where the user expects the results to match calculations done " +"by hand." +msgstr "" +"aplikacja gdzie użytkownik oczekuje, że wyniki będą zgodne z obliczeniami " +"wykonanymi ręcznie." + +msgid "" +"For example, calculating a 5% tax on a 70 cent phone charge gives different " +"results in decimal floating point and binary floating point. The difference " +"becomes significant if the results are rounded to the nearest cent::" +msgstr "" +"Na przykład, obliczenie 5% podatku od 70 centów opłaty telefonicznej daje " +"różne wyniki w dziesiętnej zmiennoprzecinkowej i binarnej " +"zmiennoprzecinkowej. Różnica staje się znacząca, jeśli wyniki zostaną " +"zaokrąglone do najbliższego centa::" + +msgid "" +"The :class:`~decimal.Decimal` result keeps a trailing zero, automatically " +"inferring four place significance from multiplicands with two place " +"significance. Decimal reproduces mathematics as done by hand and avoids " +"issues that can arise when binary floating point cannot exactly represent " +"decimal quantities." +msgstr "" +"Wynik :class:`~decimal.Decimal` zachowuje końcowe zero, automatycznie " +"wywnioskowując znaczenie czterech miejsc z mnożników o znaczeniu dwóch " +"miejsc. Decimal odtwarza matematykę wykonaną ręcznie i unika problemów, " +"które mogą powstać, gdy binarna liczba zmiennoprzecinkowa nie może dokładnie " +"reprezentować wielkości dziesiętnych." + +msgid "" +"Exact representation enables the :class:`~decimal.Decimal` class to perform " +"modulo calculations and equality tests that are unsuitable for binary " +"floating point::" +msgstr "" +"Dokładna reprezentacja umożliwia klasie :class:`~decimal.Decimal` " +"wykonywanie obliczeń modulo i testów równości, które nie są odpowiednie dla " +"binarnych liczb zmiennoprzecinkowych:" + +msgid "" +"The :mod:`decimal` module provides arithmetic with as much precision as " +"needed::" +msgstr "" +"Moduł :mod:`decimal` zapewnia arytmetykę z taką precyzją, jaka jest " +"potrzebna::" diff --git a/tutorial/venv.po b/tutorial/venv.po index 0087dcf50e..9fbcf90928 100644 --- a/tutorial/venv.po +++ b/tutorial/venv.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 -# Ciarbin Ciarbin , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Virtual Environments and Packages" msgstr "Środowiska wirtualne i pakiety" @@ -84,11 +82,11 @@ msgid "Creating Virtual Environments" msgstr "Tworzenie Środowisk Wirtualnych" 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 "" "Moduł używany do tworzenia i zarządzania środowiskami wirtualnymi jest " "nazwane :mod:`venv`. :mod:`venv` zwykle instaluje najnowszą dostępną wersję " @@ -140,6 +138,9 @@ msgid "" "or :program:`fish` shells, there are alternate ``activate.csh`` and " "``activate.fish`` scripts you should use instead.)" msgstr "" +"(Ten skrypt jest napisany dla powłoki bash. Jeżeli używasz " +"powłok :program:`csh` albo :program:`fish`, istnieją skrypty " +"``activate.csh`` i ``activate.fish`` których powinieneś użyć.)" msgid "" "Activating the virtual environment will change your shell's prompt to show " @@ -147,65 +148,70 @@ msgid "" "running ``python`` will get you that particular version and installation of " "Python. For example:" msgstr "" - -msgid "To deactivate a virtual environment, type::" -msgstr "" - -msgid "into the terminal." -msgstr "" +"Uruchomienie środowiska wirtualnego zmieni wygląd powłoki tak aby pokazywała " +"z którego środowiska wirtualnego aktualnie korzystasz, oraz zmieni parametry " +"środowiska tak że uruchomienie ``python`` wywoła określoną wersję i " +"instalacje Pythona. Dla przykładu:" msgid "Managing Packages with pip" -msgstr "" +msgstr "Zarządzanie pakietami używając pip" msgid "" -"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." +"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." msgstr "" +"Możesz instalować, aktualizować oraz usuwać pakiety korzystając z pragramu " +"nazywanego :program:`pip`. Domyślnie ``pip`` zainstaluje pakiety z `Python " +"Package Index `_. Możesz przeglądać dostępne tam pakiety " +"wchodząc na ich stronę internetową." msgid "" "``pip`` has a number of subcommands: \"install\", \"uninstall\", \"freeze\", " "etc. (Consult the :ref:`installing-index` guide for complete documentation " "for ``pip``.)" msgstr "" +"``pip`` ma kilka podkomend: \"install\", \"uninstall\", \"freeze\" itp. " +"(Zapoznaj się z przewodnikiem :ref:`installing-index`, aby uzyskać pełną " +"dokumentację dotyczącą ``pip``.)" msgid "" "You can install the latest version of a package by specifying a package's " "name:" -msgstr "" +msgstr "Możesz zainstalować najnowszą wersję pakietu, podając jego nazwę:" msgid "" "You can also install a specific version of a package by giving the package " "name followed by ``==`` and the version number:" msgstr "" +"Możesz również zainstalować konkretną wersję pakietu, podajac jego nazwę z " +"dopiskiem ``==`` oraz numerem wersji:" msgid "" "If you re-run this command, ``pip`` will notice that the requested version " "is already installed and do nothing. You can supply a different version " -"number to get that version, or you can run ``python -m pip install --" -"upgrade`` to upgrade the package to the latest version:" +"number to get that version, or you can run ``pip install --upgrade`` to " +"upgrade the package to the latest version:" msgstr "" msgid "" -"``python -m pip uninstall`` followed by one or more package names will " -"remove the packages from the virtual environment." +"``pip uninstall`` followed by one or more package names will remove the " +"packages from the virtual environment." msgstr "" -msgid "" -"``python -m pip show`` will display information about a particular package:" +msgid "``pip show`` will display information about a particular package:" msgstr "" msgid "" -"``python -m pip list`` will display all of the packages installed in the " -"virtual environment:" +"``pip list`` will display all of the packages installed in the virtual " +"environment:" msgstr "" msgid "" -"``python -m pip freeze`` will produce a similar list of the installed " -"packages, but the output uses the format that ``python -m pip install`` " -"expects. A common convention is to put this list in a ``requirements.txt`` " -"file:" +"``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:" msgstr "" msgid "" @@ -213,10 +219,18 @@ msgid "" "shipped as part of an application. Users can then install all the necessary " "packages with ``install -r``:" msgstr "" +"Plik ``requirements.txt`` można następnie przekazać do systemu kontroli " +"wersji i wysłać jako część aplikacji. Użytkownicy mogą następnie " +"zainstalować wszystkie niezbędne pakiety za pomocą ``install -r``:" 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." -msgstr "" +"want to make it available on the Python Package Index, consult " +"the :ref:`distributing-index` guide." +msgstr "" +"``pip`` ma o wiele więcej opcji. Zapoznaj się z " +"przewodnikiem :ref:`installing-index`, aby uzyskać pełną dokumentację " +"dotyczącą ``pip``. Kiedy napiszesz pakiet i będziesz chciał udostępnić go w " +"indeksie pakietów Pythona, zapoznaj się z przewodnikiem :ref:`distributing-" +"index`." diff --git a/tutorial/whatnow.po b/tutorial/whatnow.po index 20e8fcc8c8..2134f80734 100644 --- a/tutorial/whatnow.po +++ b/tutorial/whatnow.po @@ -1,29 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Ciarbin Ciarbin , 2021 -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:50+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What Now?" msgstr "Co dalej?" @@ -53,10 +51,17 @@ msgid "" "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, compress data, and many " -"other tasks. Skimming through the Library Reference will give you an idea of " -"what's available." +"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 "" +"Powinieneś przejrzeć ten podręcznik, który zawiera kompletny (choć zwięzły) " +"materiał referencyjny na temat typów, funkcji i modułów w standardowej " +"bibliotece. Standardowa dystrybucja Pythona zawiera *dużo* dodatkowego kodu. " +"Istnieją moduły do ​​czytania skrzynek pocztowych Unix, pobierania dokumentów " +"przez HTTP, generowania liczb losowych, analizowania opcji wiersza poleceń, " +"pisania programów CGI, kompresji danych i wielu innych zadań. Przejrzenie " +"informacji o bibliotece da ci wyobrażenie o tym, co jest dostępne." msgid "" ":ref:`installing-index` explains how to install additional modules written " @@ -81,9 +86,12 @@ msgid "" "https://www.python.org: The major Python web site. It contains code, " "documentation, and pointers to Python-related pages around the web." msgstr "" +"https://www.python.org: Główna strona internetowa poświęcona językowi " +"Python. Zawiera kod, dokumentację oraz odnośniki do innych stron związanych " +"z Python-em." msgid "https://docs.python.org: Fast access to Python's documentation." -msgstr "https://docs.python.org: Szybki dostęp do dokumentacji Pythona." +msgstr "https://docs.python.org/pl: Szybki dostęp do dokumentacji Pythona." msgid "" "https://pypi.org: The Python Package Index, previously also nicknamed the " @@ -91,6 +99,10 @@ msgid "" "available for download. Once you begin releasing code, you can register it " "here so that others can find it." msgstr "" +"https://pypi.org: Indeks pakietów Pythona (Python Package Index), wcześniej " +"nazywany także Sklep z Serem (Cheese Shop) [#]_, to indeks utworzonych przez " +"użytkowników modułów Pythona, które można pobrać. Gdy zaczniesz udostępniać " +"kod, możesz go tutaj zarejestrować, aby inni mogli go znaleźć." msgid "" "https://code.activestate.com/recipes/langs/python/: The Python Cookbook is a " @@ -98,11 +110,18 @@ msgid "" "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/: The Python Cookbook to " +"pokaźny zbiór przykładów kodu, większych modułów i przydatnych skryptów po " +"angielsku. Szczególnie godne uwagi fragmenty zostały zebrane i " +"przetłumaczone w książce zatytułowanej „Python. Receptury” (Wydawnicto " +"Helion/O'Reilly, ISBN: 978-83-246-8180-8)." msgid "" "https://pyvideo.org collects links to Python-related videos from conferences " "and user-group meetings." msgstr "" +"https://pyvideo.org zbiera linki do filmów związanych z Pythonem z " +"konferencji oraz spotkań grup użytkowników." msgid "" "https://scipy.org: The Scientific Python project includes modules for fast " @@ -124,6 +143,14 @@ msgid "" "new features, and announcing new modules. Mailing list archives are " "available at https://mail.python.org/pipermail/." msgstr "" +"Pytania związane z Pythonem i raporty o problemach można przesyłać na grupę " +"dyskusyjną :newsgroup:`comp.lang.python` lub na listę mailingową python-" +"list@python.org. Grupa dyskusyjna i lista mailingowa są połączone, więc " +"wiadomości wysłane na jedną z nich będą automatycznie przekazywane na " +"drugą. Codziennie pojawiają się tam setki postów z pytaniami (i " +"odpowiedziami), sugestiami nowych funkcji i zapowiedziami nowych modułów. " +"Archiwa list mailingowych są dostępne pod adresem https://mail.python.org/" +"pipermail/." msgid "" "Before posting, be sure to check the list of :ref:`Frequently Asked " @@ -131,6 +158,9 @@ msgid "" "questions that come up again and again, and may already contain the solution " "for your problem." msgstr "" +"Przed wysłaniem zapytania, warto sprawdzić listę :ref:`Często zadawanych " +"pytań ` (zwaną również FAQ). FAQ odpowiada na wiele często " +"pojawiających się pytań i może już zawierać rozwiązanie twojego problemu." msgid "Footnotes" msgstr "Przypisy" @@ -139,3 +169,6 @@ 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." msgstr "" +"\"Sklep z Serami\" (Cheese Shop) to skecz Monty Pythona: klient wchodzi do " +"sklepu z serami, ale bez względu na to, o jaki ser prosi, sprzedawca mówi, " +"że go nie ma." diff --git a/using/cmdline.po b/using/cmdline.po new file mode 100644 index 0000000000..beccb002e7 --- /dev/null +++ b/using/cmdline.po @@ -0,0 +1,1035 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Command line and environment" +msgstr "" + +msgid "" +"The CPython interpreter scans the command line and the environment for " +"various settings." +msgstr "" + +msgid "" +"Other implementations' command line schemes may differ. " +"See :ref:`implementations` for further resources." +msgstr "" + +msgid "Command line" +msgstr "" + +msgid "When invoking Python, you may specify any of these options::" +msgstr "" + +msgid "" +"The most common use case is, of course, a simple invocation of a script::" +msgstr "" + +msgid "Interface options" +msgstr "" + +msgid "" +"The interpreter interface resembles that of the UNIX shell, but provides " +"some additional methods of invocation:" +msgstr "" + +msgid "" +"When called with standard input connected to a tty device, it prompts for " +"commands and executes them until an EOF (an end-of-file character, you can " +"produce that with :kbd:`Ctrl-D` on UNIX or :kbd:`Ctrl-Z, Enter` on Windows) " +"is read." +msgstr "" + +msgid "" +"When called with a file name argument or with a file as standard input, it " +"reads and executes a script from that file." +msgstr "" + +msgid "" +"When called with a directory name argument, it reads and executes an " +"appropriately named script from that directory." +msgstr "" + +msgid "" +"When called with ``-c command``, it executes the Python statement(s) given " +"as *command*. Here *command* may contain multiple statements separated by " +"newlines. Leading whitespace is significant in Python statements!" +msgstr "" + +msgid "" +"When called with ``-m module-name``, the given module is located on the " +"Python module path and executed as a script." +msgstr "" + +msgid "" +"In non-interactive mode, the entire input is parsed before it is executed." +msgstr "" + +msgid "" +"An interface option terminates the list of options consumed by the " +"interpreter, all consecutive arguments will end up in :data:`sys.argv` -- " +"note that the first element, subscript zero (``sys.argv[0]``), is a string " +"reflecting the program's source." +msgstr "" + +msgid "" +"Execute the Python code in *command*. *command* can be one or more " +"statements separated by newlines, with significant leading whitespace as in " +"normal module code." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_command`` with " +"argument ``command``." +msgstr "" + +msgid "" +"Search :data:`sys.path` for the named module and execute its contents as " +"the :mod:`__main__` module." +msgstr "" + +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)." +msgstr "" + +msgid "" +"Package names (including namespace packages) are also permitted. When a " +"package name is supplied instead of a normal module, the interpreter will " +"execute ``.__main__`` as the main module. This behaviour is " +"deliberately similar to the handling of directories and zipfiles that are " +"passed to the interpreter as the script argument." +msgstr "" + +msgid "" +"This option cannot be used with built-in modules and extension modules " +"written in C, since they do not have Python module files. However, it can " +"still be used for precompiled modules, even if the original source file is " +"not available." +msgstr "" + +msgid "" +"If this option is given, the first element of :data:`sys.argv` will be the " +"full path to the module file (while the module file is being located, the " +"first element will be set to ``\"-m\"``). As with the :option:`-c` option, " +"the current directory will be added to the start of :data:`sys.path`." +msgstr "" + +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." +msgstr "" + +msgid "" +"Many standard library modules contain code that is invoked on their " +"execution as a script. An example is the :mod:`timeit` module::" +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_module`` with " +"argument ``module-name``." +msgstr "" + +msgid ":func:`runpy.run_module`" +msgstr ":func:`runpy.run_module`" + +msgid "Equivalent functionality directly available to Python code" +msgstr "" + +msgid ":pep:`338` -- Executing modules as scripts" +msgstr "" + +msgid "Supply the package name to run a ``__main__`` submodule." +msgstr "" + +msgid "namespace packages are also supported" +msgstr "" + +msgid "" +"Read commands from standard input (:data:`sys.stdin`). If standard input is " +"a terminal, :option:`-i` is implied." +msgstr "" + +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`." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_stdin`` with no " +"arguments." +msgstr "" + +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." +msgstr "" + +msgid "" +"If this option is given, the first element of :data:`sys.argv` will be the " +"script name as given on the command line." +msgstr "" + +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." +msgstr "" + +msgid "" +"If the script name refers to a directory or zipfile, the script name is " +"added to the start of :data:`sys.path` and the ``__main__.py`` file in that " +"location is executed as the :mod:`__main__` module." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_file`` with " +"argument ``filename``." +msgstr "" + +msgid ":func:`runpy.run_path`" +msgstr ":func:`runpy.run_path`" + +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 " +"start of :data:`sys.path`. Also, tab-completion and history editing is " +"automatically enabled, if available on your platform (see :ref:`rlcompleter-" +"config`)." +msgstr "" + +msgid ":ref:`tut-invoking`" +msgstr ":ref:`tut-invoking`" + +msgid "Automatic enabling of tab-completion and history editing." +msgstr "" + +msgid "Generic options" +msgstr "" + +msgid "Print a short description of all command line options." +msgstr "" + +msgid "Print the Python version number and exit. Example output could be:" +msgstr "" + +msgid "When given twice, print more information about the build, like:" +msgstr "" + +msgid "The ``-VV`` option." +msgstr "" + +msgid "Miscellaneous options" +msgstr "" + +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 option is given twice (:option:`!-bb`)." +msgstr "" + +msgid "Affects comparisons of :class:`bytes` with :class:`int`." +msgstr "" + +msgid "" +"If given, Python won't try to write ``.pyc`` files on the import of source " +"modules. See also :envvar:`PYTHONDONTWRITEBYTECODE`." +msgstr "" + +msgid "" +"Control the validation behavior of hash-based ``.pyc`` files. See :ref:`pyc-" +"invalidation`. When set to ``default``, checked and unchecked hash-based " +"bytecode cache files are validated according to their default semantics. " +"When set to ``always``, all hash-based ``.pyc`` files, whether checked or " +"unchecked, are validated against their corresponding source file. When set " +"to ``never``, hash-based ``.pyc`` files are not validated against their " +"corresponding source files." +msgstr "" + +msgid "" +"The semantics of timestamp-based ``.pyc`` files are unaffected by this " +"option." +msgstr "" + +msgid "" +"Turn on parser debugging output (for expert only, depending on compilation " +"options). See also :envvar:`PYTHONDEBUG`." +msgstr "" + +msgid "" +"Ignore all :envvar:`PYTHON*` environment variables, " +"e.g. :envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." +msgstr "" + +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." +msgstr "" + +msgid "" +"This can be useful to inspect global variables or a stack trace when a " +"script raises an exception. See also :envvar:`PYTHONINSPECT`." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +msgid "Modify ``.pyc`` filenames according to :pep:`488`." +msgstr "" + +msgid "" +"Do :option:`-O` and also discard docstrings. Augment the filename for " +"compiled (:term:`bytecode`) files by adding ``.opt-2`` before the ``.pyc`` " +"extension (see :pep:`488`)." +msgstr "" + +msgid "" +"Don't display the copyright and version messages even in interactive mode." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"On previous versions of Python, this option turns on hash randomization, so " +"that the :meth:`__hash__` values of str and bytes objects are \"salted\" " +"with an unpredictable random value. Although they remain constant within an " +"individual Python process, they are not predictable between repeated " +"invocations of Python." +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\\ :sup:`2`) complexity. See http://" +"www.ocert.org/advisories/ocert-2011-003.html for details." +msgstr "" + +msgid "" +":envvar:`PYTHONHASHSEED` allows you to set a fixed value for the hash seed " +"secret." +msgstr "" + +msgid "The option is no longer ignored." +msgstr "" + +msgid "" +"Don't add the :data:`user site-packages directory ` " +"to :data:`sys.path`." +msgstr "" + +msgid ":pep:`370` -- Per user site-packages directory" +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)." +msgstr "" + +msgid "" +"Force the stdout and stderr streams to be unbuffered. This option has no " +"effect on the stdin stream." +msgstr "" + +msgid "See also :envvar:`PYTHONUNBUFFERED`." +msgstr "" + +msgid "The text layer of the stdout and stderr streams now is unbuffered." +msgstr "" + +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 " +"searching for a module. Also provides information on module cleanup at exit." +msgstr "" + +msgid "" +"The :mod:`site` module reports the site-specific paths and :file:`.pth` " +"files being processed." +msgstr "" + +msgid "See also :envvar:`PYTHONVERBOSE`." +msgstr "" + +msgid "" +"Warning control. Python's warning machinery by default prints warning " +"messages to :data:`sys.stderr`." +msgstr "" + +msgid "" +"The simplest settings apply a particular action unconditionally to all " +"warnings emitted by a process (even those that are otherwise ignored by " +"default)::" +msgstr "" + +msgid "" +"The action names can be abbreviated as desired and the interpreter will " +"resolve them to the appropriate action name. For example, ``-Wi`` is the " +"same as ``-Wignore``." +msgstr "" + +msgid "The full form of argument is::" +msgstr "" + +msgid "" +"Empty fields match all values; trailing empty fields may be omitted. For " +"example ``-W ignore::DeprecationWarning`` ignores all DeprecationWarning " +"warnings." +msgstr "" + +msgid "" +"The *action* field is as explained above but only applies to warnings that " +"match the remaining fields." +msgstr "" + +msgid "" +"The *message* field must match the whole warning message; this match is case-" +"insensitive." +msgstr "" + +msgid "" +"The *category* field matches the warning category (ex: " +"``DeprecationWarning``). This must be a class name; the match test whether " +"the actual warning category of the message is a subclass of the specified " +"warning category." +msgstr "" + +msgid "" +"The *module* field matches the (fully qualified) module name; this match is " +"case-sensitive." +msgstr "" + +msgid "" +"The *lineno* field matches the line number, where zero matches all line " +"numbers and is thus equivalent to an omitted line number." +msgstr "" + +msgid "" +"Multiple :option:`-W` options can 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 "" + +msgid "" +"Warnings can also be controlled using the :envvar:`PYTHONWARNINGS` " +"environment variable and from within a Python program using " +"the :mod:`warnings` module. For example, the :func:`warnings.filterwarnings` " +"function can be used to use a regular expression on the warning message." +msgstr "" + +msgid "" +"See :ref:`warning-filter` and :ref:`describing-warning-filters` for more " +"details." +msgstr "" + +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." +msgstr "" + +msgid "" +"Reserved for various implementation-specific options. CPython currently " +"defines the following possible values:" +msgstr "" + +msgid "``-X faulthandler`` to enable :mod:`faulthandler`;" +msgstr "" + +msgid "" +"``-X showrefcount`` to output the total reference count and number of used " +"memory blocks when the program finishes or after each statement in the " +"interactive interpreter. This only works on :ref:`debug builds `." +msgstr "" + +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." +msgstr "" + +msgid "" +"``-X int_max_str_digits`` configures the :ref:`integer string conversion " +"length limitation `. See " +"also :envvar:`PYTHONINTMAXSTRDIGITS`." +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`." +msgstr "" + +msgid "" +"``-X dev``: enable :ref:`Python Development Mode `, introducing " +"additional runtime checks that are too expensive to be enabled by default." +msgstr "" + +msgid "" +"``-X utf8`` enables the :ref:`Python UTF-8 Mode `. ``-X utf8=0`` " +"explicitly disables :ref:`Python UTF-8 Mode ` (even when it would " +"otherwise activate automatically)." +msgstr "" + +msgid "" +"``-X pycache_prefix=PATH`` enables writing ``.pyc`` files to a parallel tree " +"rooted at the given directory instead of to the code tree. See " +"also :envvar:`PYTHONPYCACHEPREFIX`." +msgstr "" + +msgid "" +"``-X warn_default_encoding`` issues a :class:`EncodingWarning` when the " +"locale-specific default encoding is used for opening files. See " +"also :envvar:`PYTHONWARNDEFAULTENCODING`." +msgstr "" + +msgid "" +"It also allows passing arbitrary values and retrieving them through " +"the :data:`sys._xoptions` dictionary." +msgstr "" + +msgid "The :option:`-X` option was added." +msgstr "" + +msgid "The ``-X faulthandler`` option." +msgstr "" + +msgid "The ``-X showrefcount`` and ``-X tracemalloc`` options." +msgstr "" + +msgid "The ``-X showalloccount`` option." +msgstr "" + +msgid "The ``-X importtime``, ``-X dev`` and ``-X utf8`` options." +msgstr "" + +msgid "" +"The ``-X pycache_prefix`` option. The ``-X dev`` option now logs ``close()`` " +"exceptions in :class:`io.IOBase` destructor." +msgstr "" + +msgid "" +"Using ``-X dev`` option, check *encoding* and *errors* arguments on string " +"encoding and decoding operations." +msgstr "" + +msgid "The ``-X showalloccount`` option has been removed." +msgstr "" + +msgid "The ``-X warn_default_encoding`` option." +msgstr "" + +msgid "The ``-X int_max_str_digits`` option." +msgstr "" + +msgid "The ``-X oldparser`` option." +msgstr "" + +msgid "Options you shouldn't use" +msgstr "" + +msgid "Reserved for use by Jython_." +msgstr "" + +msgid "Environment variables" +msgstr "" + +msgid "" +"These environment variables influence Python's behavior, they are processed " +"before the command-line switches other than -E or -I. It is customary that " +"command-line switches override environmental variables where there is a " +"conflict." +msgstr "" + +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`." +msgstr "" + +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}`." +msgstr "" + +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-" +"existent directories are silently ignored." +msgstr "" + +msgid "" +"In addition to normal directories, individual :envvar:`PYTHONPATH` entries " +"may refer to zipfiles containing pure Python modules (in either source or " +"compiled form). Extension modules cannot be imported from zipfiles." +msgstr "" + +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`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"If this is set to a non-empty string, it overrides " +"the :data:`sys.platlibdir` value." +msgstr "" + +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." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_startup`` with " +"argument ``filename``." +msgstr "" + +msgid "" +"Raises an :ref:`auditing event ` ``cpython.run_startup`` with the " +"filename as the argument when called on startup." +msgstr "" + +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." +msgstr "" + +msgid "" +"If this is set, it names a callable using dotted-path notation. The module " +"containing the callable will be imported and then the callable will be run " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +"If this is set to a non-empty string it is equivalent to specifying " +"the :option:`-i` option." +msgstr "" + +msgid "" +"This variable can also be modified by Python code using :data:`os.environ` " +"to force inspect mode on program termination." +msgstr "" + +msgid "(also 3.9.20, and 3.8.20) Emits audit events." +msgstr "" + +msgid "" +"If this is set to a non-empty string it is equivalent to specifying " +"the :option:`-u` option." +msgstr "" + +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." +msgstr "" + +msgid "" +"If this is set, Python ignores case in :keyword:`import` statements. This " +"only works on Windows and macOS." +msgstr "" + +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." +msgstr "" + +msgid "" +"If this is set, Python will write ``.pyc`` files in a mirror directory tree " +"at this path, instead of in ``__pycache__`` directories within the source " +"tree. This is equivalent to specifying the :option:`-X` " +"``pycache_prefix=PATH`` option." +msgstr "" + +msgid "" +"If this variable is not set or set to ``random``, a random value is used to " +"seed the hashes of str and bytes objects." +msgstr "" + +msgid "" +"If :envvar:`PYTHONHASHSEED` is set to an integer value, it is used as a " +"fixed seed for generating the hash() of the types covered by the hash " +"randomization." +msgstr "" + +msgid "" +"Its purpose is to allow repeatable hashing, such as for selftests for the " +"interpreter itself, or to allow a cluster of python processes to share hash " +"values." +msgstr "" + +msgid "" +"The integer must be a decimal number in the range [0,4294967295]. " +"Specifying the value 0 will disable hash randomization." +msgstr "" + +msgid "" +"If this variable is set to an integer, it is used to configure the " +"interpreter's global :ref:`integer string conversion length limitation " +"`." +msgstr "" + +msgid "" +"If this is set before running the interpreter, it overrides the encoding " +"used for stdin/stdout/stderr, in the syntax ``encodingname:errorhandler``. " +"Both the ``encodingname`` and the ``:errorhandler`` parts are optional and " +"have the same meaning as in :func:`str.encode`." +msgstr "" + +msgid "" +"For stderr, the ``:errorhandler`` part is ignored; the handler will always " +"be ``'backslashreplace'``." +msgstr "" + +msgid "The ``encodingname`` part is now optional." +msgstr "" + +msgid "" +"On Windows, the encoding specified by this variable is ignored for " +"interactive console buffers unless :envvar:`PYTHONLEGACYWINDOWSSTDIO` is " +"also specified. Files and pipes redirected through the standard streams are " +"not affected." +msgstr "" + +msgid "" +"If this is set, Python won't add the :data:`user site-packages directory " +"` to :data:`sys.path`." +msgstr "" + +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``." +msgstr "" + +msgid "" +"If this environment variable is set, ``sys.argv[0]`` will be set to its " +"value instead of the value got through the C runtime. Only works on macOS." +msgstr "" + +msgid "" +"This is equivalent to the :option:`-W` option. If set to a comma separated " +"string, it is equivalent to specifying :option:`-W` multiple times, with " +"filters later in the list taking precedence over those earlier in the list." +msgstr "" + +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." +msgstr "" + +msgid "" +"If this environment variable is set to a non-empty string, start tracing " +"Python memory allocations using the :mod:`tracemalloc` module. The value of " +"the variable is the maximum number of frames stored in a traceback of a " +"trace. For example, ``PYTHONTRACEMALLOC=1`` stores only the most recent " +"frame. See the :func:`tracemalloc.start` for more information." +msgstr "" + +msgid "" +"If this environment variable is set to a non-empty string, Python will show " +"how long each import takes. This is exactly equivalent to setting ``-X " +"importtime`` on the command line." +msgstr "" + +msgid "" +"If this environment variable is set to a non-empty string, enable " +"the :ref:`debug mode ` of the :mod:`asyncio` module." +msgstr "" + +msgid "Set the Python memory allocators and/or install debug hooks." +msgstr "" + +msgid "Set the family of memory allocators used by Python:" +msgstr "" + +msgid "" +"``default``: use the :ref:`default memory allocators `." +msgstr "" + +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`)." +msgstr "" + +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." +msgstr "" + +msgid "Install :ref:`debug hooks `:" +msgstr "" + +msgid "" +"``debug``: install debug hooks on top of the :ref:`default memory allocators " +"`." +msgstr "" + +msgid "``malloc_debug``: same as ``malloc`` but also install debug hooks." +msgstr "" + +msgid "``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks." +msgstr "" + +msgid "Added the ``\"default\"`` allocator." +msgstr "" + +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." +msgstr "" + +msgid "" +"This variable is ignored if the :envvar:`PYTHONMALLOC` environment variable " +"is used to force the :c:func:`malloc` allocator of the C library, or if " +"Python is configured without ``pymalloc`` support." +msgstr "" + +msgid "" +"This variable can now also be used on Python compiled in release mode. It " +"now has no effect if set to an empty string." +msgstr "" + +msgid "" +"If set to a non-empty string, the default :term:`filesystem encoding and " +"error handler` mode will revert to their pre-3.6 values of 'mbcs' and " +"'replace', respectively. Otherwise, the new defaults 'utf-8' and " +"'surrogatepass' are used." +msgstr "" + +msgid "" +"This may also be enabled at runtime " +"with :func:`sys._enablelegacywindowsfsencoding()`." +msgstr "" + +msgid ":ref:`Availability `: Windows." +msgstr "" + +msgid "See :pep:`529` for more details." +msgstr "" + +msgid "" +"If set to a non-empty string, does not use the new console reader and " +"writer. This means that Unicode characters will be encoded according to the " +"active console code page, rather than using utf-8." +msgstr "" + +msgid "" +"This variable is ignored if the standard streams are redirected (to files or " +"pipes) rather than referring to console buffers." +msgstr "" + +msgid "" +"If set to the value ``0``, causes the main Python command line application " +"to skip coercing the legacy ASCII-based C and POSIX locales to a more " +"capable UTF-8 based alternative." +msgstr "" + +msgid "" +"If this variable is *not* set (or is set to a value other than ``0``), the " +"``LC_ALL`` locale override environment variable is also not set, and the " +"current locale reported for the ``LC_CTYPE`` category is either the default " +"``C`` locale, or else the explicitly ASCII-based ``POSIX`` locale, then the " +"Python CLI will attempt to configure the following locales for the " +"``LC_CTYPE`` category in the order listed before loading the interpreter " +"runtime:" +msgstr "" + +msgid "``C.UTF-8``" +msgstr "``C.UTF-8``" + +msgid "``C.utf8``" +msgstr "``C.utf8``" + +msgid "``UTF-8``" +msgstr "``UTF-8``" + +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`` " +"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 " +"(such as Python's own :func:`locale.getdefaultlocale`)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Also note that even when locale coercion is disabled, or when it fails to " +"find a suitable target locale, :envvar:`PYTHONUTF8` will still activate by " +"default in legacy ASCII-based locales. Both features must be disabled in " +"order to force the interpreter to use ``ASCII`` instead of ``UTF-8`` for " +"system interfaces." +msgstr "" + +msgid ":ref:`Availability `: \\*nix." +msgstr "" + +msgid "See :pep:`538` for more details." +msgstr "" + +msgid "" +"If this environment variable is set to a non-empty string, " +"enable :ref:`Python Development Mode `, introducing additional " +"runtime checks that are too expensive to be enabled by default." +msgstr "" + +msgid "If set to ``1``, enable the :ref:`Python UTF-8 Mode `." +msgstr "" + +msgid "If set to ``0``, disable the :ref:`Python UTF-8 Mode `." +msgstr "" + +msgid "" +"Setting any other non-empty string causes an error during interpreter " +"initialisation." +msgstr "" + +msgid "" +"If this environment variable is set to a non-empty string, issue " +"a :class:`EncodingWarning` when the locale-specific default encoding is used." +msgstr "" + +msgid "See :ref:`io-encoding-warning` for details." +msgstr "" + +msgid "Debug-mode variables" +msgstr "" + +msgid "If set, Python will print threading debug info into stdout." +msgstr "" + +msgid "Need a :ref:`debug build of Python `." +msgstr "" + +msgid "" +"If set, Python will dump objects and reference counts still alive after " +"shutting down the interpreter." +msgstr "" + +msgid "" +"Need Python configured with the :option:`--with-trace-refs` build option." +msgstr "" diff --git a/using/configure.po b/using/configure.po new file mode 100644 index 0000000000..6ab897961f --- /dev/null +++ b/using/configure.po @@ -0,0 +1,956 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Configure Python" +msgstr "" + +msgid "Configure Options" +msgstr "" + +msgid "List all ``./configure`` script options using::" +msgstr "" + +msgid "" +"See also the :file:`Misc/SpecialBuilds.txt` in the Python source " +"distribution." +msgstr "" + +msgid "General Options" +msgstr "" + +msgid "" +"Support loadable extensions in the :mod:`_sqlite` extension module (default " +"is no)." +msgstr "" + +msgid "" +"See the :meth:`sqlite3.Connection.enable_load_extension` method of " +"the :mod:`sqlite3` module." +msgstr "" + +msgid "" +"Disable IPv6 support (enabled by default if supported), see " +"the :mod:`socket` module." +msgstr "" + +msgid "Define the size in bits of Python :class:`int` digits: 15 or 30 bits." +msgstr "" + +msgid "" +"By default, the number of bits is selected depending on ``sizeof(void*)``: " +"30 bits if ``void*`` size is 64-bit or larger, 15 bits otherwise." +msgstr "" + +msgid "Define the ``PYLONG_BITS_IN_DIGIT`` to ``15`` or ``30``." +msgstr "" + +msgid "See :data:`sys.int_info.bits_per_digit `." +msgstr "" + +msgid "" +"Compile the Python ``main()`` function and link Python executable with C++ " +"compiler: ``$CXX``, or *COMPILER* if specified." +msgstr "" + +msgid "Set the Python executable suffix to *SUFFIX*." +msgstr "" + +msgid "" +"The default suffix is ``.exe`` on Windows and macOS (``python.exe`` " +"executable), and an empty string on other platforms (``python`` executable)." +msgstr "" + +msgid "" +"Select the default time zone search path for :data:`zoneinfo.TZPATH`. See " +"the :ref:`Compile-time configuration ` of " +"the :mod:`zoneinfo` module." +msgstr "" + +msgid "" +"Default: ``/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/" +"etc/zoneinfo``." +msgstr "" + +msgid "See :data:`os.pathsep` path separator." +msgstr "" + +msgid "" +"Build the ``_decimal`` extension module using a thread-local context rather " +"than a coroutine-local context (default), see the :mod:`decimal` module." +msgstr "" + +msgid "See :data:`decimal.HAVE_CONTEXTVAR` and the :mod:`contextvars` module." +msgstr "" + +msgid "Override order to check db backends for the :mod:`dbm` module" +msgstr "" + +msgid "" +"A valid value is a colon (``:``) separated string with the backend names:" +msgstr "" + +msgid "``ndbm``;" +msgstr "``ndbm``;" + +msgid "``gdbm``;" +msgstr "``gdbm``;" + +msgid "``bdb``." +msgstr "``bdb``." + +msgid "Disable C locale coercion to a UTF-8 based locale (enabled by default)." +msgstr "" + +msgid "Don't define the ``PY_COERCE_C_LOCALE`` macro." +msgstr "" + +msgid "See :envvar:`PYTHONCOERCECLOCALE` and the :pep:`538`." +msgstr "" + +msgid "Python library directory name (default is ``lib``)." +msgstr "" + +msgid "Fedora and SuSE use ``lib64`` on 64-bit platforms." +msgstr "" + +msgid "See :data:`sys.platlibdir`." +msgstr "" + +msgid "" +"Directory of wheel packages used by the :mod:`ensurepip` module (none by " +"default)." +msgstr "" + +msgid "" +"Some Linux distribution packaging policies recommend against bundling " +"dependencies. For example, Fedora installs wheel packages in the ``/usr/" +"share/python-wheels/`` directory and don't install " +"the :mod:`ensurepip._bundled` package." +msgstr "" + +msgid "Install Options" +msgstr "" + +msgid "" +"Install architecture-independent files in PREFIX. On Unix, it defaults " +"to :file:`/usr/local`." +msgstr "" + +msgid "This value can be retrived at runtime using :data:`sys.prefix`." +msgstr "" + +msgid "" +"As an example, one can use ``--prefix=\"$HOME/.local/\"`` to install a " +"Python in its home directory." +msgstr "" + +msgid "" +"Install architecture-dependent files in EPREFIX, defaults to :option:`--" +"prefix`." +msgstr "" + +msgid "This value can be retrived at runtime using :data:`sys.exec_prefix`." +msgstr "" + +msgid "" +"Don't build nor install test modules, like the :mod:`test` package or " +"the :mod:`_testcapi` extension module (built and installed by default)." +msgstr "" + +msgid "Select the :mod:`ensurepip` command run on Python installation:" +msgstr "" + +msgid "" +"``upgrade`` (default): run ``python -m ensurepip --altinstall --upgrade`` " +"command." +msgstr "" + +msgid "``install``: run ``python -m ensurepip --altinstall`` command;" +msgstr "" + +msgid "``no``: don't run ensurepip;" +msgstr "" + +msgid "Performance options" +msgstr "" + +msgid "" +"Configuring Python using ``--enable-optimizations --with-lto`` (PGO + LTO) " +"is recommended for best performance." +msgstr "" + +msgid "" +"Enable Profile Guided Optimization (PGO) using :envvar:`PROFILE_TASK` " +"(disabled by default)." +msgstr "" + +msgid "" +"The C compiler Clang requires ``llvm-profdata`` program for PGO. On macOS, " +"GCC also requires it: GCC is just an alias to Clang on macOS." +msgstr "" + +msgid "" +"Disable also semantic interposition in libpython if ``--enable-shared`` and " +"GCC is used: add ``-fno-semantic-interposition`` to the compiler and linker " +"flags." +msgstr "" + +msgid "Use ``-fno-semantic-interposition`` on GCC." +msgstr "" + +msgid "" +"Environment variable used in the Makefile: Python command line arguments for " +"the PGO generation task." +msgstr "" + +msgid "Default: ``-m test --pgo --timeout=$(TESTTIMEOUT)``." +msgstr "" + +msgid "Enable Link Time Optimization (LTO) in any build (disabled by default)." +msgstr "" + +msgid "" +"The C compiler Clang requires ``llvm-ar`` for LTO (``ar`` on macOS), as well " +"as an LTO-aware linker (``ld.gold`` or ``lld``)." +msgstr "" + +msgid "" +"Enable computed gotos in evaluation loop (enabled by default on supported " +"compilers)." +msgstr "" + +msgid "" +"Disable the specialized Python memory allocator :ref:`pymalloc ` " +"(enabled by default)." +msgstr "" + +msgid "See also :envvar:`PYTHONMALLOC` environment variable." +msgstr "" + +msgid "" +"Disable static documentation strings to reduce the memory footprint (enabled " +"by default). Documentation strings defined in Python are not affected." +msgstr "" + +msgid "Don't define the ``WITH_DOC_STRINGS`` macro." +msgstr "" + +msgid "See the ``PyDoc_STRVAR()`` macro." +msgstr "" + +msgid "Enable C-level code profiling with ``gprof`` (disabled by default)." +msgstr "" + +msgid "Python Debug Build" +msgstr "" + +msgid "" +"A debug build is Python built with the :option:`--with-pydebug` configure " +"option." +msgstr "" + +msgid "Effects of a debug build:" +msgstr "" + +msgid "" +"Display all warnings by default: the list of default warning filters is " +"empty in the :mod:`warnings` module." +msgstr "" + +msgid "Add ``d`` to :data:`sys.abiflags`." +msgstr "" + +msgid "Add :func:`sys.gettotalrefcount` function." +msgstr "" + +msgid "Add :option:`-X showrefcount <-X>` command line option." +msgstr "" + +msgid "Add :envvar:`PYTHONTHREADDEBUG` environment variable." +msgstr "" + +msgid "" +"Add support for the ``__ltrace__`` variable: enable low-level tracing in the " +"bytecode evaluation loop if the variable is defined." +msgstr "" + +msgid "" +"Install :ref:`debug hooks on memory allocators ` " +"to detect buffer overflow and other memory errors." +msgstr "" + +msgid "Define ``Py_DEBUG`` and ``Py_REF_DEBUG`` macros." +msgstr "" + +msgid "" +"Add runtime checks: code surroundeded by ``#ifdef Py_DEBUG`` and ``#endif``. " +"Enable ``assert(...)`` and ``_PyObject_ASSERT(...)`` assertions: don't set " +"the ``NDEBUG`` macro (see also the :option:`--with-assertions` configure " +"option). Main runtime checks:" +msgstr "" + +msgid "Add sanity checks on the function arguments." +msgstr "" + +msgid "" +"Unicode and int objects are created with their memory filled with a pattern " +"to detect usage of uninitialized objects." +msgstr "" + +msgid "" +"Ensure that functions which can clear or replace the current exception are " +"not called with an exception raised." +msgstr "" + +msgid "" +"The garbage collector (:func:`gc.collect` function) runs some basic checks " +"on objects consistency." +msgstr "" + +msgid "" +"The :c:macro:`Py_SAFE_DOWNCAST()` macro checks for integer underflow and " +"overflow when downcasting from wide types to narrow types." +msgstr "" + +msgid "" +"See also the :ref:`Python Development Mode ` and the :option:`--" +"with-trace-refs` configure option." +msgstr "" + +msgid "" +"Release builds and debug builds are now ABI compatible: defining the " +"``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` macro (see " +"the :option:`--with-trace-refs` option), which introduces the only ABI " +"incompatibility." +msgstr "" + +msgid "Debug options" +msgstr "" + +msgid "" +":ref:`Build Python in debug mode `: define the ``Py_DEBUG`` " +"macro (disabled by default)." +msgstr "" + +msgid "Enable tracing references for debugging purpose (disabled by default)." +msgstr "" + +msgid "Effects:" +msgstr "" + +msgid "Define the ``Py_TRACE_REFS`` macro." +msgstr "" + +msgid "Add :func:`sys.getobjects` function." +msgstr "" + +msgid "Add :envvar:`PYTHONDUMPREFS` environment variable." +msgstr "" + +msgid "" +"This build is not ABI compatible with release build (default build) or debug " +"build (``Py_DEBUG`` and ``Py_REF_DEBUG`` macros)." +msgstr "" + +msgid "" +"Build with C assertions enabled (default is no): ``assert(...);`` and " +"``_PyObject_ASSERT(...);``." +msgstr "" + +msgid "" +"If set, the ``NDEBUG`` macro is not defined in the :envvar:`OPT` compiler " +"variable." +msgstr "" + +msgid "" +"See also the :option:`--with-pydebug` option (:ref:`debug build `) which also enables assertions." +msgstr "" + +msgid "Enable Valgrind support (default is no)." +msgstr "" + +msgid "Enable DTrace support (default is no)." +msgstr "" + +msgid "" +"See :ref:`Instrumenting CPython with DTrace and SystemTap `." +msgstr "" + +msgid "" +"Enable AddressSanitizer memory error detector, ``asan`` (default is no)." +msgstr "" + +msgid "" +"Enable MemorySanitizer allocation error detector, ``msan`` (default is no)." +msgstr "" + +msgid "" +"Enable UndefinedBehaviorSanitizer undefined behaviour detector, ``ubsan`` " +"(default is no)." +msgstr "" + +msgid "Linker options" +msgstr "" + +msgid "Enable building a shared Python library: ``libpython`` (default is no)." +msgstr "" + +msgid "" +"Do not build ``libpythonMAJOR.MINOR.a`` and do not install ``python.o`` " +"(built and enabled by default)." +msgstr "" + +msgid "Libraries options" +msgstr "" + +msgid "Link against additional libraries (default is no)." +msgstr "" + +msgid "" +"Build the :mod:`pyexpat` module using an installed ``expat`` library " +"(default is no)." +msgstr "" + +msgid "" +"Build the :mod:`_ctypes` extension module using an installed ``ffi`` " +"library, see the :mod:`ctypes` module (default is system-dependent)." +msgstr "" + +msgid "" +"Build the ``_decimal`` extension module using an installed ``mpdec`` " +"library, see the :mod:`decimal` module (default is no)." +msgstr "" + +msgid "Use ``editline`` library for backend of the :mod:`readline` module." +msgstr "" + +msgid "Define the ``WITH_EDITLINE`` macro." +msgstr "" + +msgid "Don't build the :mod:`readline` module (built by default)." +msgstr "" + +msgid "Don't define the ``HAVE_LIBREADLINE`` macro." +msgstr "" + +msgid "Override search for Tcl and Tk include files." +msgstr "" + +msgid "Override search for Tcl and Tk libraries." +msgstr "" + +msgid "" +"Override ``libm`` math library to *STRING* (default is system-dependent)." +msgstr "" + +msgid "Override ``libc`` C library to *STRING* (default is system-dependent)." +msgstr "" + +msgid "Root of the OpenSSL directory." +msgstr "" + +msgid "Set runtime library directory (rpath) for OpenSSL libraries:" +msgstr "" + +msgid "``no`` (default): don't set rpath;" +msgstr "" + +msgid "" +"``auto``: auto-detect rpath from :option:`--with-openssl` and ``pkg-config``;" +msgstr "" + +msgid "*DIR*: set an explicit rpath." +msgstr "" + +msgid "Security Options" +msgstr "" + +msgid "Select hash algorithm for use in ``Python/pyhash.c``:" +msgstr "" + +msgid "``siphash24`` (default)." +msgstr "" + +msgid "``fnv``;" +msgstr "" + +msgid "Built-in hash modules:" +msgstr "" + +msgid "``md5``;" +msgstr "``md5``;" + +msgid "``sha1``;" +msgstr "``sha1``;" + +msgid "``sha256``;" +msgstr "``sha256``;" + +msgid "``sha512``;" +msgstr "``sha512``;" + +msgid "``sha3`` (with shake);" +msgstr "" + +msgid "``blake2``." +msgstr "``blake2``." + +msgid "Override the OpenSSL default cipher suites string:" +msgstr "" + +msgid "``python`` (default): use Python's preferred selection;" +msgstr "" + +msgid "``openssl``: leave OpenSSL's defaults untouched;" +msgstr "" + +msgid "*STRING*: use a custom string" +msgstr "" + +msgid "See the :mod:`ssl` module." +msgstr "" + +msgid "" +"The settings ``python`` and *STRING* also set TLS 1.2 as minimum protocol " +"version." +msgstr "" + +msgid "macOS Options" +msgstr "" + +msgid "See ``Mac/README.rst``." +msgstr "" + +msgid "" +"Create a universal binary build. *SDKDIR* specifies which macOS SDK should " +"be used to perform the build (default is no)." +msgstr "" + +msgid "" +"Create a Python.framework rather than a traditional Unix install. Optional " +"*INSTALLDIR* specifies the installation path (default is no)." +msgstr "" + +msgid "" +"Specify the kind of universal binary that should be created. This option is " +"only valid when :option:`--enable-universalsdk` is set." +msgstr "" + +msgid "Options:" +msgstr "" + +msgid "``universal2``;" +msgstr "" + +msgid "``32-bit``;" +msgstr "" + +msgid "``64-bit``;" +msgstr "" + +msgid "``3-way``;" +msgstr "" + +msgid "``intel``;" +msgstr "" + +msgid "``intel-32``;" +msgstr "" + +msgid "``intel-64``;" +msgstr "" + +msgid "``all``." +msgstr "" + +msgid "" +"Specify the name for the python framework on macOS only valid " +"when :option:`--enable-framework` is set (default: ``Python``)." +msgstr "" + +msgid "Python Build System" +msgstr "" + +msgid "Main files of the build system" +msgstr "" + +msgid ":file:`configure.ac` => :file:`configure`;" +msgstr "" + +msgid "" +":file:`Makefile.pre.in` => :file:`Makefile` (created by :file:`configure`);" +msgstr "" + +msgid ":file:`pyconfig.h` (created by :file:`configure`);" +msgstr "" + +msgid "" +":file:`Modules/Setup`: C extensions built by the Makefile " +"using :file:`Module/makesetup` shell script;" +msgstr "" + +msgid ":file:`setup.py`: C extensions built using the :mod:`distutils` module." +msgstr "" + +msgid "Main build steps" +msgstr "" + +msgid "C files (``.c``) are built as object files (``.o``)." +msgstr "" + +msgid "A static ``libpython`` library (``.a``) is created from objects files." +msgstr "" + +msgid "" +"``python.o`` and the static ``libpython`` library are linked into the final " +"``python`` program." +msgstr "" + +msgid "" +"C extensions are built by the Makefile (see :file:`Modules/Setup`) and " +"``python setup.py build``." +msgstr "" + +msgid "Main Makefile targets" +msgstr "" + +msgid "``make``: Build Python with the standard library." +msgstr "" + +msgid "" +"``make platform:``: build the ``python`` program, but don't build the " +"standard library extension modules." +msgstr "" + +msgid "" +"``make profile-opt``: build Python using Profile Guided Optimization (PGO). " +"You can use the configure :option:`--enable-optimizations` option to make " +"this the default target of the ``make`` command (``make all`` or just " +"``make``)." +msgstr "" + +msgid "" +"``make buildbottest``: Build Python and run the Python test suite, the same " +"way than buildbots test Python. Set ``TESTTIMEOUT`` variable (in seconds) to " +"change the test timeout (1200 by default: 20 minutes)." +msgstr "" + +msgid "``make install``: Build and install Python." +msgstr "" + +msgid "" +"``make regen-all``: Regenerate (almost) all generated files; ``make regen-" +"stdlib-module-names`` and ``autoconf`` must be run separately for the " +"remaining generated files." +msgstr "" + +msgid "``make clean``: Remove built files." +msgstr "" + +msgid "" +"``make distclean``: Same than ``make clean``, but remove also files created " +"by the configure script." +msgstr "" + +msgid "C extensions" +msgstr "" + +msgid "" +"Some C extensions are built as built-in modules, like the ``sys`` module. " +"They are built with the ``Py_BUILD_CORE_BUILTIN`` macro defined. Built-in " +"modules have no ``__file__`` attribute::" +msgstr "" + +msgid "" +"Other C extensins are built as dynamic libraries, like the ``_asyncio`` " +"module. They are built with the ``Py_BUILD_CORE_MODULE`` macro defined. " +"Example on Linux x86-64::" +msgstr "" + +msgid "" +":file:`Modules/Setup` is used to generate Makefile targets to build C " +"extensions. At the beginning of the files, C extensions are built as built-" +"in modules. Extensions defined after the ``*shared*`` marker are built as " +"dynamic libraries." +msgstr "" + +msgid "" +"The :file:`setup.py` script only builds C extensions as shared libraries " +"using the :mod:`distutils` module." +msgstr "" + +msgid "" +"The :c:macro:`PyAPI_FUNC()`, :c:macro:`PyAPI_API()` " +"and :c:macro:`PyMODINIT_FUNC()` macros of :file:`Include/pyport.h` are " +"defined differently depending if the ``Py_BUILD_CORE_MODULE`` macro is " +"defined:" +msgstr "" + +msgid "Use ``Py_EXPORTED_SYMBOL`` if the ``Py_BUILD_CORE_MODULE`` is defined" +msgstr "" + +msgid "Use ``Py_IMPORTED_SYMBOL`` otherwise." +msgstr "" + +msgid "" +"If the ``Py_BUILD_CORE_BUILTIN`` macro is used by mistake on a C extension " +"built as a shared library, its ``PyInit_xxx()`` function is not exported, " +"causing an :exc:`ImportError` on import." +msgstr "" + +msgid "Compiler and linker flags" +msgstr "" + +msgid "" +"Options set by the ``./configure`` script and environment variables and used " +"by ``Makefile``." +msgstr "" + +msgid "Preprocessor flags" +msgstr "" + +msgid "" +"Value of :envvar:`CPPFLAGS` variable passed to the ``./configure`` script." +msgstr "" + +msgid "" +"(Objective) C/C++ preprocessor flags, e.g. ``-I`` if you have " +"headers in a nonstandard directory ````." +msgstr "" + +msgid "" +"Both :envvar:`CPPFLAGS` and :envvar:`LDFLAGS` need to contain the shell's " +"value for setup.py to be able to build extension modules using the " +"directories specified in the environment variables." +msgstr "" + +msgid "" +"Extra preprocessor flags added for building the interpreter object files." +msgstr "" + +msgid "" +"Default: ``$(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $" +"(CPPFLAGS)``." +msgstr "" + +msgid "Compiler flags" +msgstr "" + +msgid "C compiler command." +msgstr "" + +msgid "Example: ``gcc -pthread``." +msgstr "" + +msgid "" +"C compiler command used to build the ``main()`` function of programs like " +"``python``." +msgstr "" + +msgid "" +"Variable set by the :option:`--with-cxx-main` option of the configure script." +msgstr "" + +msgid "Default: ``$(CC)``." +msgstr "" + +msgid "C++ compiler command." +msgstr "" + +msgid "Used if the :option:`--with-cxx-main` option is used." +msgstr "" + +msgid "Example: ``g++ -pthread``." +msgstr "" + +msgid "C compiler flags." +msgstr "" + +msgid "" +":envvar:`CFLAGS_NODIST` is used for building the interpreter and stdlib C " +"extensions. Use it when a compiler flag should *not* be part of the " +"distutils :envvar:`CFLAGS` once Python is installed (:issue:`21121`)." +msgstr "" + +msgid "In particular, :envvar:`CFLAGS` should not contain:" +msgstr "" + +msgid "" +"the compiler flag ``-I`` (for setting the search path for include files). " +"The ``-I`` flags are processed from left to right, and any flags " +"in :envvar:`CFLAGS` would take precedence over user- and package-supplied ``-" +"I`` flags." +msgstr "" + +msgid "" +"hardening flags such as ``-Werror`` because distributions cannot control " +"whether packages installed by users conform to such heightened standards." +msgstr "" + +msgid "Extra C compiler flags." +msgstr "" + +msgid "" +"Value of :envvar:`CFLAGS` variable passed to the ``./configure`` script." +msgstr "" + +msgid "" +"Value of :envvar:`CFLAGS_NODIST` variable passed to the ``./configure`` " +"script." +msgstr "" + +msgid "Base compiler flags." +msgstr "" + +msgid "Optimization flags." +msgstr "" + +msgid "Strict or non-strict aliasing flags used to compile ``Python/dtoa.c``." +msgstr "" + +msgid "Compiler flags used to build a shared library." +msgstr "" + +msgid "For example, ``-fPIC`` is used on Linux and on BSD." +msgstr "" + +msgid "Extra C flags added for building the interpreter object files." +msgstr "" + +msgid "" +"Default: ``$(CCSHARED)`` when :option:`--enable-shared` is used, or an empty " +"string otherwise." +msgstr "" + +msgid "" +"Default: ``$(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $" +"(EXTRA_CFLAGS)``." +msgstr "" + +msgid "" +"Default: ``$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST) -I$(srcdir)/Include/" +"internal``." +msgstr "" + +msgid "C flags used for building the interpreter object files." +msgstr "" + +msgid "" +"Default: ``$(PY_CFLAGS) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) $" +"(CFLAGSFORSHARED)``." +msgstr "" + +msgid "Default: ``$(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE``." +msgstr "" + +msgid "" +"Compiler flags to build a standard library extension module as a built-in " +"module, like the :mod:`posix` module." +msgstr "" + +msgid "Default: ``$(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE_BUILTIN``." +msgstr "" + +msgid "Purify command. Purify is a memory debugger program." +msgstr "" + +msgid "Default: empty string (not used)." +msgstr "" + +msgid "Linker flags" +msgstr "" + +msgid "" +"Linker command used to build programs like ``python`` and ``_testembed``." +msgstr "" + +msgid "Default: ``$(PURIFY) $(MAINCC)``." +msgstr "" + +msgid "" +"Value of :envvar:`LDFLAGS` variable passed to the ``./configure`` script." +msgstr "" + +msgid "" +"Avoid assigning :envvar:`CFLAGS`, :envvar:`LDFLAGS`, etc. so users can use " +"them on the command line to append to these values without stomping the pre-" +"set values." +msgstr "" + +msgid "" +":envvar:`LDFLAGS_NODIST` is used in the same manner " +"as :envvar:`CFLAGS_NODIST`. Use it when a linker flag should *not* be part " +"of the distutils :envvar:`LDFLAGS` once Python is installed (:issue:`35257`)." +msgstr "" + +msgid "In particular, :envvar:`LDFLAGS` should not contain:" +msgstr "" + +msgid "" +"the compiler flag ``-L`` (for setting the search path for libraries). The ``-" +"L`` flags are processed from left to right, and any flags " +"in :envvar:`LDFLAGS` would take precedence over user- and package-supplied " +"``-L`` flags." +msgstr "" + +msgid "" +"Value of :envvar:`LDFLAGS_NODIST` variable passed to the ``./configure`` " +"script." +msgstr "" + +msgid "" +"Linker flags, e.g. ``-L`` if you have libraries in a nonstandard " +"directory ````." +msgstr "" + +msgid "" +"Linker flags to pass libraries to the linker when linking the Python " +"executable." +msgstr "" + +msgid "Example: ``-lrt``." +msgstr "" + +msgid "Command to build a shared library." +msgstr "" + +msgid "Default: ``@LDSHARED@ $(PY_LDFLAGS)``." +msgstr "" + +msgid "Command to build ``libpython`` shared library." +msgstr "" + +msgid "Default: ``@BLDSHARED@ $(PY_CORE_LDFLAGS)``." +msgstr "" + +msgid "Default: ``$(CONFIGURE_LDFLAGS) $(LDFLAGS)``." +msgstr "" + +msgid "Default: ``$(CONFIGURE_LDFLAGS_NODIST) $(LDFLAGS_NODIST)``." +msgstr "" + +msgid "Linker flags used for building the interpreter object files." +msgstr "" diff --git a/using/editors.po b/using/editors.po new file mode 100644 index 0000000000..34a02bdef5 --- /dev/null +++ b/using/editors.po @@ -0,0 +1,39 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "Editors and IDEs" +msgstr "Edytory i IDE" + +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 "" + +msgid "" +"Please go to `Python Editors `_ " +"and `Integrated Development Environments `_ for a comprehensive list." +msgstr "" diff --git a/using/index.po b/using/index.po index 409471f687..92e5e272cd 100644 --- a/using/index.po +++ b/using/index.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Python Setup and Usage" msgstr "Instalacja i używanie Pythona" diff --git a/using/mac.po b/using/mac.po index ff5e4af678..7a4c951cf3 100644 --- a/using/mac.po +++ b/using/mac.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Using Python on a Mac" msgstr "" @@ -45,9 +45,9 @@ msgid "" "macOS used to come with Python 2.7 pre-installed between versions 10.8 and " "`12.3 `_. You are invited to install the most " -"recent version of Python 3 from the Python website (https://www.python." -"org). A current \"universal binary\" build of Python, which runs natively " -"on the Mac's new Intel and legacy PPC CPU's, is available there." +"recent version of Python 3 from the Python website (https://" +"www.python.org). A current \"universal binary\" build of Python, which runs " +"natively on the Mac's new Intel and legacy PPC CPU's, is available there." msgstr "" msgid "What you get after installing is a number of things:" @@ -100,13 +100,13 @@ msgstr "" 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. macOS 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` (https://macvim-dev.github.io/macvim/) and :program:`Aquamacs` " -"(http://aquamacs.org/)." +"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` (https://macvim-dev.github.io/macvim/) " +"and :program:`Aquamacs` (http://aquamacs.org/)." msgstr "" msgid "" @@ -134,8 +134,8 @@ msgstr "" msgid "" "With older versions of Python, there is one macOS 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 "" msgid "" @@ -143,14 +143,15 @@ msgid "" msgstr "" msgid "Configuration" -msgstr "" +msgstr "Konfiguracja" msgid "" -"Python on macOS 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 macOS 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 "" msgid "" @@ -206,8 +207,8 @@ msgstr "" msgid "" "*wxPython* is another popular cross-platform GUI toolkit that runs natively " -"on macOS. Packages and documentation are available from https://www.wxpython." -"org." +"on macOS. Packages and documentation are available from https://" +"www.wxpython.org." msgstr "" msgid "" diff --git a/using/unix.po b/using/unix.po index dee9a81d7e..965da0f316 100644 --- a/using/unix.po +++ b/using/unix.po @@ -1,36 +1,36 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Using Python on Unix platforms" -msgstr "" +msgstr "Python na platformach Unix" msgid "Getting and installing the latest version of Python" -msgstr "" +msgstr "Pobieranie i instalacja najnowszej wersji Pythona" msgid "On Linux" -msgstr "" +msgstr "Na Linux" msgid "" "Python comes preinstalled on most Linux distributions, and is available as a " @@ -46,16 +46,16 @@ msgid "" msgstr "" msgid "https://www.debian.org/doc/manuals/maint-guide/first.en.html" -msgstr "" +msgstr "https://www.debian.org/doc/manuals/maint-guide/first.en.html" msgid "for Debian users" -msgstr "" +msgstr "dla użytkowników Debian" msgid "https://en.opensuse.org/Portal:Packaging" -msgstr "" +msgstr "https://en.opensuse.org/Portal:Packaging" msgid "for OpenSuse users" -msgstr "" +msgstr "dla użytkowników OpenSuse" msgid "" "https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/" @@ -63,19 +63,19 @@ msgid "" msgstr "" msgid "for Fedora users" -msgstr "" +msgstr "dla użytkowników Fedora" msgid "http://www.slackbook.org/html/package-management-making-packages.html" msgstr "" msgid "for Slackware users" -msgstr "" +msgstr "dla użytkowników Slackware" msgid "On FreeBSD and OpenBSD" -msgstr "" +msgstr "Na FreeBSD i OpenBSD" msgid "FreeBSD users, to add the package use::" -msgstr "" +msgstr "Użytkownicy FreeBSD, aby dodać pakiet używają::" msgid "OpenBSD users, to add the package use::" msgstr "" @@ -123,9 +123,9 @@ msgstr "" 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." +"conventions; :option:`prefix <--prefix>` and :option:`exec_prefix <--exec-" +"prefix>` are installation-dependent and should be interpreted as for GNU " +"software; they may be the same." msgstr "" msgid "" @@ -139,7 +139,7 @@ msgid "Meaning" msgstr "Znaczenie" msgid ":file:`{exec_prefix}/bin/python3`" -msgstr "" +msgstr ":file:`{exec_prefix}/bin/python3`" msgid "Recommended location of the interpreter." msgstr "" diff --git a/using/windows.po b/using/windows.po index c3ae20be05..0c433caf7f 100644 --- a/using/windows.po +++ b/using/windows.po @@ -1,36 +1,39 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:58+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Using Python on Windows" -msgstr "" +msgstr "Korzystanie z Pythona w systemie Windows" msgid "" "This document aims to give an overview of Windows-specific behaviour you " "should know about when using Python on Microsoft Windows." msgstr "" +"Niniejszy dokument ma na celu przedstawienie przeglądu zachowań " +"specyficznych dla systemu Windows, o których należy pamiętać podczas " +"korzystania z Pythona w systemie Microsoft Windows." msgid "" "Unlike most Unix systems and services, Windows does not include a system " @@ -169,8 +172,8 @@ 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 ``LongPathsEnabled`` to " -"``1`` in the registry key ``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet" -"\\Control\\FileSystem``." +"``1`` in the registry key " +"``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem``." msgstr "" msgid "" @@ -253,9 +256,9 @@ msgid "The default install directory for just-for-me installs" msgstr "" msgid "" -":file:`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY` or :file:`" -"%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-32` or :file:`" -"%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-64`" +":file:`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY` " +"or :file:`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-32` " +"or :file:`%LocalAppData%\\\\\\ Programs\\\\Python\\\\\\ PythonXY-64`" msgstr "" msgid "DefaultCustomTargetDir" @@ -286,15 +289,7 @@ msgid "PrependPath" msgstr "" msgid "" -"Prepend install and Scripts directories to :envvar:`PATH` and add ``.PY`` " -"to :envvar:`PATHEXT`" -msgstr "" - -msgid "AppendPath" -msgstr "" - -msgid "" -"Append install and Scripts directories to :envvar:`PATH` and add ``.PY`` " +"Add install and Scripts directories to :envvar:`PATH` and ``.PY`` " "to :envvar:`PATHEXT`" msgstr "" @@ -421,11 +416,12 @@ msgid "" msgstr "" 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 "" msgid "Installing Without Downloading" @@ -474,8 +470,8 @@ msgid "" msgstr "" 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 "" msgid "The Microsoft Store package" @@ -522,8 +518,8 @@ msgstr "" 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 "" msgid "" @@ -554,23 +550,24 @@ msgstr "" msgid "" "At runtime, Python will use a private copy of well-known Windows folders and " "the registry. For example, if the environment variable :envvar:`%APPDATA%` " -"is :file:`c:\\\\Users\\\\\\\\AppData\\\\`, then when writing to :file:" -"`C:\\\\Users\\\\\\\\AppData\\\\Local` will write to :file:`C:\\\\Users" -"\\\\\\\\AppData\\\\Local\\\\Packages\\\\PythonSoftwareFoundation." -"Python.3.8_qbz5n2kfra8p0\\\\LocalCache\\\\Local\\\\`." +"is :file:`c:\\\\Users\\\\\\\\AppData\\\\`, then when writing " +"to :file:`C:\\\\Users\\\\\\\\AppData\\\\Local` will write to :file:`C:" +"\\\\Users\\\\\\\\AppData\\\\Local\\\\Packages\\" +"\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\\\LocalCache\\\\Local\\" +"\\`." msgstr "" msgid "" "When reading files, Windows will return the file from the private folder, or " -"if that does not exist, the real Windows directory. For example reading :" -"file:`C:\\\\Windows\\\\System32` returns the contents of :file:`C:\\\\Windows" -"\\\\System32` plus the contents of :file:`C:\\\\Program Files\\\\WindowsApps" -"\\\\package_name\\\\VFS\\\\SystemX86`." +"if that does not exist, the real Windows directory. For example " +"reading :file:`C:\\\\Windows\\\\System32` returns the contents of :file:`C:\\" +"\\Windows\\\\System32` plus the contents of :file:`C:\\\\Program Files\\" +"\\WindowsApps\\\\package_name\\\\VFS\\\\SystemX86`." msgstr "" msgid "" -"You can find the real path of any existing file using :func:`os.path." -"realpath`:" +"You can find the real path of any existing file " +"using :func:`os.path.realpath`:" msgstr "" msgid "When writing to the Windows Registry, the following behaviors exist:" @@ -618,9 +615,9 @@ msgstr "" msgid "" "The ``nuget.exe`` command line tool may be downloaded directly from " -"``https://aka.ms/nugetclidl``, for example, using curl or PowerShell. With " -"the tool, the latest version of Python for 64-bit or 32-bit machines is " -"installed using::" +"``https://dist.nuget.org/win-x86-commandline/latest/nuget.exe``, for " +"example, using curl or PowerShell. With the tool, the latest version of " +"Python for 64-bit or 32-bit machines is installed using::" msgstr "" msgid "" @@ -768,7 +765,7 @@ msgid "Installer with multi-platform compatibility, documentation, PyWin32" msgstr "" msgid "`Anaconda `_" -msgstr "" +msgstr "`Anaconda `_" msgid "" "Popular scientific modules (such as numpy, scipy and pandas) and the " @@ -821,8 +818,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -833,18 +830,18 @@ msgstr "" 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." +"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 "" 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 " -"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)." +"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 "" msgid "" @@ -892,9 +889,9 @@ msgid "" msgstr "" 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 " +"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` " @@ -916,8 +913,8 @@ msgstr "" 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.getencoding`)." +"Page). Python uses it for the default encoding of text files " +"(e.g. :func:`locale.getpreferredencoding`)." msgstr "" msgid "" @@ -1059,7 +1056,7 @@ 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 3.7 installed, try changing the " -"first line to ``#! python3.7`` and you should find the |version| version " +"first line to ``#! python3.7`` and you should find the 3.7 version " "information printed." msgstr "" @@ -1074,8 +1071,8 @@ msgid "From file associations" msgstr "" 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." @@ -1108,13 +1105,13 @@ msgid "``/usr/bin/env python``" msgstr "" msgid "``/usr/bin/python``" -msgstr "" +msgstr "``/usr/bin/python``" msgid "``/usr/local/bin/python``" -msgstr "" +msgstr "``/usr/local/bin/python``" msgid "``python``" -msgstr "" +msgstr "``python``" msgid "For example, if the first line of your script starts with" msgstr "" @@ -1141,31 +1138,12 @@ msgid "" "architecture without minor (i.e. ``/usr/bin/python3-64``)." msgstr "" -msgid "" -"The \"-64\" suffix is deprecated, and now implies \"any architecture that is " -"not provably i386/32-bit\". To request a specific environment, use the new " -"``-V:`` argument with the complete tag." -msgstr "" - 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 " "executable :envvar:`PATH` for a Python executable. This corresponds to the " "behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` " -"search. If an executable matching the first argument after the ``env`` " -"command cannot be found, it will be handled as described below. " -"Additionally, the environment variable :envvar:`PYLAUNCHER_NO_SEARCH_PATH` " -"may be set (to any value) to skip this additional search." -msgstr "" - -msgid "" -"Shebang lines that do not match any of these patterns are treated as " -"**Windows** paths that are absolute or relative to the directory containing " -"the script file. This is a convenience for Windows-only scripts, such as " -"those generated by an installer, since the behavior is not compatible with " -"Unix-style shells. These paths may be quoted, and may include multiple " -"arguments, after which the path to the script and any additional arguments " -"will be appended." +"search." msgstr "" msgid "Arguments in shebang lines" @@ -1219,12 +1197,12 @@ msgid "" msgstr "" 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 " -"\"3.7-64\". (Note that the \"-64\" option is only available with the " -"launcher included with Python 3.7 or newer.)" +"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 "" msgid "" @@ -1251,7 +1229,7 @@ msgid "" msgstr "" msgid "Examples:" -msgstr "" +msgstr "Przykłady:" msgid "" "If no relevant options are set, the commands ``python`` and ``python2`` will " @@ -1291,7 +1269,7 @@ msgid "" msgstr "" msgid "For example:" -msgstr "" +msgstr "Na przykład::" msgid "Setting ``PY_PYTHON=3.7`` is equivalent to the INI file containing:" msgstr "" @@ -1305,133 +1283,45 @@ msgid "Diagnostics" msgstr "" msgid "" -"If an environment variable :envvar:`PYLAUNCHER_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. It is primarily intended for testing and debugging." +"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." msgstr "" -msgid "Dry Run" -msgstr "" - -msgid "" -"If an environment variable :envvar:`PYLAUNCHER_DRYRUN` is set (to any " -"value), the launcher will output the command it would have run, but will not " -"actually launch Python. This may be useful for tools that want to use the " -"launcher to detect and then launch Python directly. Note that the command " -"written to standard output is always encoded using UTF-8, and may not render " -"correctly in the console." -msgstr "" - -msgid "Install on demand" -msgstr "" - -msgid "" -"If an environment variable :envvar:`PYLAUNCHER_ALLOW_INSTALL` is set (to any " -"value), and the requested Python version is not installed but is available " -"on the Microsoft Store, the launcher will attempt to install it. This may " -"require user interaction to complete, and you may need to run the command " -"again." +msgid "Finding modules" msgstr "" msgid "" -"An additional :envvar:`PYLAUNCHER_ALWAYS_INSTALL` variable causes the " -"launcher to always try to install Python, even if it is detected. This is " -"mainly intended for testing (and should be used with :envvar:" -"`PYLAUNCHER_DRYRUN`)." -msgstr "" - -msgid "Return codes" +"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 "" msgid "" -"The following exit codes may be returned by the Python launcher. " -"Unfortunately, there is no way to distinguish these from the exit code of " -"Python itself." +"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 " +"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." msgstr "" msgid "" -"The names of codes are as used in the sources, and are only for reference. " -"There is no way to access or resolve them apart from reading this page. " -"Entries are listed in alphabetical order of names." -msgstr "" - -msgid "Value" -msgstr "Wartość" - -msgid "RC_BAD_VENV_CFG" -msgstr "" - -msgid "107" -msgstr "" - -msgid "A :file:`pyvenv.cfg` was found but is corrupt." -msgstr "" - -msgid "RC_CREATE_PROCESS" -msgstr "" - -msgid "101" -msgstr "" - -msgid "Failed to launch Python." -msgstr "" - -msgid "RC_INSTALLING" -msgstr "" - -msgid "111" -msgstr "" - -msgid "" -"An install was started, but the command will need to be re-run after it " -"completes." -msgstr "" - -msgid "RC_INTERNAL_ERROR" -msgstr "" - -msgid "109" -msgstr "" - -msgid "Unexpected error. Please report a bug." -msgstr "" - -msgid "RC_NO_COMMANDLINE" -msgstr "" - -msgid "108" -msgstr "" - -msgid "Unable to obtain command line from the operating system." -msgstr "" - -msgid "RC_NO_PYTHON" -msgstr "" - -msgid "103" -msgstr "" - -msgid "Unable to locate the requested version." -msgstr "" - -msgid "RC_NO_VENV_CFG" -msgstr "" - -msgid "106" -msgstr "" - -msgid "A :file:`pyvenv.cfg` was required but not found." -msgstr "" - -msgid "Finding modules" +"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 " +"``#`` 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 "" msgid "" -"These notes supplement the description at :ref:`sys-path-init` with detailed " -"Windows notes." +"Note that ``.pth`` files (without leading underscore) will be processed " +"normally by the :mod:`site` module when ``import site`` has been specified." msgstr "" msgid "" @@ -1445,18 +1335,18 @@ msgid "" msgstr "" msgid "" -"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.)." +"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 "" 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 "" @@ -1524,8 +1414,8 @@ msgstr "" 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 "" msgid "" @@ -1551,8 +1441,8 @@ msgid "" msgstr "" msgid "" -"Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv." -"cfg``." +"Adds ``._pth`` file support and removes ``applocal`` option from " +"``pyvenv.cfg``." msgstr "" msgid "" @@ -1610,9 +1500,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1632,11 +1522,11 @@ msgid "cx_Freeze" msgstr "" 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 "" msgid "Compiling Python on Windows" diff --git a/whatsnew/2.0.po b/whatsnew/2.0.po index 2c288c2f07..57125e816d 100644 --- a/whatsnew/2.0.po +++ b/whatsnew/2.0.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 -# Maciej Olko , 2022 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New in Python 2.0" msgstr "Co nowego w Python 2.0" @@ -42,6 +41,10 @@ msgid "" "useful changes, and points out a few incompatible changes that may require " "rewriting code." msgstr "" +"Nowa wersja Pythona, wersja 2.0, została wydana 16 października 2000 r. W " +"tym artykule omówiono ekscytujące nowe funkcje wersji 2.0, zwrócono uwagę na " +"kilka innych przydatnych zmian i wskazano kilka niekompatybilnych zmian, " +"które mogą wymagać przepisania kodu od nowa." msgid "" "Python's development never completely stops between releases, and a steady " @@ -53,6 +56,15 @@ msgid "" "for PythonLabs are now getting paid to spend their days fixing bugs, and " "also due to the improved communication resulting from moving to SourceForge." msgstr "" +"Rozwój Pythona nigdy nie zatrzymuje się całkowicie między wydaniami, a stały " +"napływ poprawek błędów i ulepszeń jest zawsze zgłaszany. Wiele drobnych " +"poprawek, kilka optymalizacji, dodatkowe ciągi dokumentów i lepsze " +"komunikaty o błędach weszło do 2.0; Wymienienie ich wszystkich byłoby " +"niemożliwe, ale z pewnością są znaczące. Sprawdź publicznie dostępne logi " +"CVS, jeśli chcesz zobaczyć pełną listę. Postęp ten wynika z tego, że pięciu " +"programistów pracujących dla PythonLabs otrzymuje teraz wynagrodzenie za " +"spędzanie dni na naprawianiu błędów, a także dzięki ulepszonej komunikacji " +"wynikającej z przejścia do SourceForge." msgid "What About Python 1.6?" msgstr "Co z Pythonem 1.6?" @@ -67,6 +79,14 @@ msgid "" "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 "" +"Python 1.6 można traktować jako wydanie Pythona zobowiązań umownych. Po tym, " +"jak główny zespół programistów opuścił CNRI w maju 2000 roku, CNRI poprosiło " +"o stworzenie wydania 1.6, zawierającego wszystkie prace nad Pythonem, które " +"zostały wykonane w CNRI. Python 1.6 reprezentuje zatem stan drzewa CVS w " +"maju 2000 roku, a najważniejszą nową funkcją jest obsługa Unicode. Rozwój " +"kontynuowano oczywiście po maju, więc drzewo 1.6 otrzymało kilka poprawek, " +"aby zapewnić jego zgodność z Pythonem 2.0. 1.6 jest zatem częścią ewolucji " +"Pythona, a nie poboczną gałęzią." msgid "" "So, should you take much interest in Python 1.6? Probably not. The " @@ -148,8 +168,8 @@ msgid "" "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:" -"`1`, \"PEP Purpose and Guidelines\":" +"accepting or rejecting the proposal. Quoting from the introduction " +"to :pep:`1`, \"PEP Purpose and Guidelines\":" msgstr "" msgid "" @@ -170,9 +190,9 @@ msgid "" "Read the rest of :pep:`1` for the details of the PEP editorial process, " "style, 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://peps.python.org/. As of September 2000, " -"there are 25 PEPS, ranging from :pep:`201`, \"Lockstep Iteration\", to PEP " -"225, \"Elementwise/Objectwise Operators\"." +"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\"." msgstr "" msgid "Unicode" @@ -196,10 +216,11 @@ msgstr "" 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 "" msgid "" @@ -285,16 +306,17 @@ msgstr "" 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 " -"translate from the given encoding and return Unicode strings." +"*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 "" 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 " -"strings, translating them to the given encoding on output." +"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 "" msgid "" @@ -356,9 +378,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 "" msgid "" @@ -454,17 +476,17 @@ msgstr "" 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 "" 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 "" msgid "Garbage Collection of Cycles" @@ -622,11 +644,11 @@ msgstr "" 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 https://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 https://" +"pythonce.sourceforge.net/ for more information." msgstr "" msgid "" @@ -641,10 +663,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 "" msgid "" @@ -668,25 +690,25 @@ 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 " -"explicit base\"." +"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 "" 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 "" 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 "" msgid "" @@ -697,10 +719,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 "" msgid "Porting to 2.0" @@ -741,22 +763,23 @@ msgstr "" 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 "" 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 "" msgid "" @@ -795,12 +818,12 @@ msgstr "" 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'``." +"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 "" msgid "" @@ -831,10 +854,10 @@ msgstr "" 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)``." +"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 "" msgid "" @@ -850,8 +873,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 "" @@ -888,11 +911,11 @@ msgstr "" 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 " -"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 " +"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." msgstr "" @@ -932,8 +955,8 @@ msgstr "" 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::" +"For the simple case, when the software contains only .py files, a " +"minimal :file:`setup.py` can be just a few lines long::" msgstr "" msgid "" @@ -986,10 +1009,10 @@ 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 " "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 "" msgid "" @@ -1002,8 +1025,8 @@ msgstr "" 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 "" msgid "" @@ -1035,10 +1058,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1047,9 +1071,9 @@ msgid "" "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 " -"given tag name. Continuing from the previous 2-line example::" +"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 "" msgid "For the *Hamlet* XML file, the above few lines output::" @@ -1103,27 +1127,26 @@ msgstr "Zmiany modułów" 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 "" 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 "" msgid "" -"The :mod:`httplib` module has been rewritten by Greg Stein to support " -"HTTP/1.1. Backward compatibility with the 1.5 version of :mod:`httplib` is " +"The :mod:`httplib` module has been rewritten by Greg Stein to support HTTP/" +"1.1. Backward compatibility with the 1.5 version of :mod:`httplib` is " "provided, though using HTTP/1.1 features such as pipelining will require " "rewriting code to use a different set of interfaces." msgstr "" @@ -1147,10 +1170,10 @@ msgstr "" 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 "" msgid "New modules" @@ -1176,9 +1199,9 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1200,8 +1223,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 "" msgid "" @@ -1233,16 +1256,16 @@ msgid "" "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.)" +"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 "" 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." +"now been added to the core distribution, and enhanced to support " +"Unicode. :mod:`_winreg` was written by Bill Tutt and Mark Hammond." msgstr "" msgid "" @@ -1303,8 +1326,8 @@ msgid "In the editor window, there is now a line/column bar at the bottom." msgstr "" 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 "" msgid "Deleted and Deprecated Modules" @@ -1318,12 +1341,11 @@ msgid "" msgstr "" 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 "" msgid "Acknowledgements" diff --git a/whatsnew/2.1.po b/whatsnew/2.1.po index 493a1928bf..cb51245a04 100644 --- a/whatsnew/2.1.po +++ b/whatsnew/2.1.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New in Python 2.1" msgstr "" @@ -90,10 +90,11 @@ msgid "" "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." +"(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 "" msgid "" @@ -170,10 +171,11 @@ msgstr "" 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 "" msgid ":pep:`236` - Back to the :mod:`__future__`" @@ -214,45 +216,45 @@ msgid "Method name" msgstr "" msgid "``<``" -msgstr "" +msgstr "``<``" msgid ":meth:`__lt__`" msgstr "" msgid "``<=``" -msgstr "" +msgstr "``<=``" msgid ":meth:`__le__`" msgstr "" msgid "``>``" -msgstr "" +msgstr "``>``" msgid ":meth:`__gt__`" msgstr "" msgid "``>=``" -msgstr "" +msgstr "``>=``" msgid ":meth:`__ge__`" msgstr "" msgid "``==``" -msgstr "" +msgstr "``==``" msgid ":meth:`__eq__`" msgstr "" msgid "``!=``" -msgstr "" +msgstr "``!=``" msgid ":meth:`__ne__`" msgstr "" 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 "" msgid "" @@ -272,18 +274,18 @@ 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 "" 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 " -"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 " +"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." msgstr "" @@ -311,8 +313,8 @@ msgid "" msgstr "" 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 " +"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." @@ -334,19 +336,20 @@ 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 "" 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)." +"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 "" msgid "" @@ -404,8 +407,8 @@ msgstr "" 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 "" @@ -500,12 +503,13 @@ msgid "" msgstr "" 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` " -"instance, or any other random object that behaves like a mapping." +"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 "" msgid ":pep:`232` - Function Attributes" @@ -528,9 +532,10 @@ 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 "" msgid "PEP 217: Interactive Display Hook" @@ -600,17 +605,18 @@ msgstr "" 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, " -"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 " -"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` " -"and :command:`bdist_\\*` commands could support an ``upload`` option that " -"would automatically upload your package to a catalog server." +"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 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` and :command:`bdist_\\*` commands " +"could support an ``upload`` option that would automatically upload your " +"package to a catalog server." msgstr "" msgid "" @@ -618,8 +624,8 @@ 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 "" msgid ":pep:`241` - Metadata for Python Software Packages" @@ -639,15 +645,16 @@ msgstr "" 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 "" 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 "" msgid "" @@ -656,8 +663,8 @@ msgid "" "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." +"adaptation of Kent Beck's Smalltalk testing framework. See http://" +"pyunit.sourceforge.net/ for more information about PyUnit." msgstr "" msgid "" @@ -686,21 +693,21 @@ msgid "" msgstr "" 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." +"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 "" msgid "" -"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 " +"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 " @@ -734,11 +741,11 @@ msgstr "" 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 "" msgid "" @@ -762,24 +769,25 @@ msgid "" "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." +"by providing the :option:`!--with-pymalloc` option to " +"the :program:`configure` script; see :file:`Objects/obmalloc.c` for the " +"implementation details." msgstr "" 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 " -"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." +"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." msgstr "" msgid "The object allocator was contributed by Vladimir Marangozov." @@ -798,11 +806,11 @@ msgstr "" 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::" +"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 "" msgid "" @@ -852,9 +860,9 @@ msgid "" msgstr "" 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 "" diff --git a/whatsnew/2.2.po b/whatsnew/2.2.po index 8fac0cd480..53ca748273 100644 --- a/whatsnew/2.2.po +++ b/whatsnew/2.2.po @@ -1,27 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-28 01:51+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New in Python 2.2" msgstr "" @@ -161,16 +161,16 @@ msgstr "" 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 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 "" 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 "" msgid "" @@ -284,12 +284,12 @@ msgstr "" 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 "" msgid "" @@ -303,8 +303,8 @@ 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 "" msgid "" @@ -321,8 +321,8 @@ msgid "" "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::" +"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 "" msgid "" @@ -338,8 +338,9 @@ 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 "" msgid "" @@ -361,8 +362,8 @@ 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 " @@ -377,22 +378,23 @@ msgid "" msgstr "" 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 "" 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 "" msgid "" @@ -421,11 +423,11 @@ 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 " "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 " -"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." +"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." msgstr "" msgid "" @@ -456,16 +458,16 @@ msgid "" "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 "" 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 " -"function, ``iter(obj)`` or ``iter(C, sentinel)``, is used to get an " +"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 " "object *C* until it returns *sentinel* to signal that the iterator is done." @@ -475,10 +477,10 @@ 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." +"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 "" msgid "" @@ -492,25 +494,26 @@ 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::" msgstr "" 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 " -"keys::" +"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 "" 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 "" msgid "" @@ -575,11 +578,12 @@ msgid "" "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.)" +"``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 "" msgid "Here's a sample usage of the :func:`generate_ints` generator::" @@ -624,9 +628,9 @@ 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 "" msgid "" @@ -759,19 +763,20 @@ msgid "" msgstr "" 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 "" 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 "" msgid ":pep:`238` - Changing the Division Operator" @@ -879,10 +884,11 @@ msgid "" "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." +"(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 "" msgid "" @@ -947,24 +953,24 @@ msgid "" msgstr "" 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 "" 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 "" 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 "" msgid "The original patch for this feature was contributed by Nick Mathewson." @@ -977,9 +983,9 @@ msgid "" msgstr "" msgid "" -"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.)" +"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 "" msgid "" @@ -990,13 +996,13 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1010,8 +1016,8 @@ msgid "" msgstr "" 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 " +"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 "" @@ -1024,32 +1030,32 @@ msgid "" msgstr "" 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 " -"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.)" +"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.)" 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 " -"contributed by David Goodger, from ndiff.py code by Tim Peters who then did " -"the generatorization.)" +"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 "" 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 "" msgid "" @@ -1088,12 +1094,12 @@ msgstr "" 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 "" msgid "" @@ -1156,18 +1162,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 "" 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 "" msgid "" @@ -1201,11 +1208,11 @@ 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 " +"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 "" @@ -1226,8 +1233,8 @@ msgstr "" 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." +"The :exc:`ReferenceError` exception has therefore moved from " +"the :mod:`weakref` module to become a built-in exception." msgstr "" msgid "" @@ -1237,10 +1244,10 @@ msgid "" msgstr "" msgid "" -"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`. " +"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.)" msgstr "" @@ -1277,10 +1284,11 @@ msgid "" "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." +"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 "" msgid "" @@ -1316,9 +1324,9 @@ msgstr "" 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 "" msgid "" diff --git a/whatsnew/2.5.po b/whatsnew/2.5.po new file mode 100644 index 0000000000..bf810b0f7b --- /dev/null +++ b/whatsnew/2.5.po @@ -0,0 +1,2377 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New in Python 2.5" +msgstr "" + +msgid "Author" +msgstr "Autor" + +msgid "A.M. Kuchling" +msgstr "" + +msgid "" +"This article explains the new features in Python 2.5. The final release of " +"Python 2.5 is scheduled for August 2006; :pep:`356` describes the planned " +"release schedule. Python 2.5 was released on September 19, 2006." +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 " +"calling C functions." +msgstr "" + +msgid "" +"The language changes are of middling significance. Some pleasant new " +"features were added, but most of them aren't features that you'll use every " +"day. Conditional expressions were finally added to the language using a " +"novel syntax; see section :ref:`pep-308`. The new ':keyword:`with`' " +"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." +msgstr "" + +msgid "" +"As well as the language and library additions, other improvements and " +"bugfixes were made throughout the source tree. A search through the SVN " +"change logs finds there were 353 patches applied and 458 bugs fixed between " +"Python 2.4 and 2.5. (Both figures are likely to be underestimates.)" +msgstr "" + +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 " +"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 " +"feature." +msgstr "" + +msgid "" +"Comments, suggestions, and error reports for this document are welcome; " +"please e-mail them to the author or open a bug in the Python bug tracker." +msgstr "" + +msgid "PEP 308: Conditional Expressions" +msgstr "" + +msgid "" +"For a long time, people have been requesting a way to write conditional " +"expressions, which are expressions that return value A or value B depending " +"on whether a Boolean value is true or false. A conditional expression lets " +"you write a single assignment statement that has the same effect as the " +"following::" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "Guido van Rossum eventually chose a surprising syntax::" +msgstr "" + +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 " +"condition was true. Similarly, the *false_value* expression is only " +"evaluated when the condition is false." +msgstr "" + +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``? " +"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 " +"case' and one value is an 'exceptional case', used only on rarer occasions " +"when the condition isn't met. The conditional syntax makes this pattern a " +"bit more obvious::" +msgstr "" + +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 " +"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 "" + +msgid "" +"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 "" + +msgid "" +"In the first version, I think a reader's eye might group the statement into " +"'level = 1', 'if logging', 'else 0', and think that the condition decides " +"whether the assignment to *level* is performed. The second version reads " +"better, in my opinion, because it makes it clear that the assignment is " +"always performed and the choice is being made between two values." +msgstr "" + +msgid "" +"Another reason for including the brackets: a few odd combinations of list " +"comprehensions and lambdas could look like incorrect conditional " +"expressions. See :pep:`308` for some examples. If you put parentheses " +"around your conditional expressions, you won't run into this case." +msgstr "" + +msgid ":pep:`308` - Conditional Expressions" +msgstr "" + +msgid "" +"PEP written by Guido van Rossum and Raymond D. Hettinger; implemented by " +"Thomas Wouters." +msgstr "" + +msgid "PEP 309: Partial Function Application" +msgstr "" + +msgid "" +"The :mod:`functools` module is intended to contain tools for functional-" +"style programming." +msgstr "" + +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 " +"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 " +"function application\"." +msgstr "" + +msgid "" +":func:`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." +msgstr "" + +msgid "Here's a small but realistic example::" +msgstr "" + +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. ::" +msgstr "" + +msgid "" +"Another function in the :mod:`functools` module is the " +"``update_wrapper(wrapper, wrapped)`` function that helps you write well-" +"behaved decorators. :func:`update_wrapper` copies the name, module, and " +"docstring attribute to a wrapper function so that tracebacks inside the " +"wrapped function are easier to understand. For example, you might write::" +msgstr "" + +msgid "" +":func:`wraps` is a decorator that can be used inside your own decorators to " +"copy the wrapped function's information. An alternate version of the " +"previous example would be::" +msgstr "" + +msgid ":pep:`309` - Partial Function Application" +msgstr "" + +msgid "" +"PEP proposed and written by Peter Harris; implemented by Hye-Shik Chang and " +"Nick Coghlan, with adaptations by Raymond Hettinger." +msgstr "" + +msgid "PEP 314: Metadata for Python Software Packages v1.1" +msgstr "" + +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." +msgstr "" + +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. ::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Before a package can be uploaded, you must be able to build a distribution " +"using the :command:`sdist` Distutils command. Once that works, you can run " +"``python setup.py upload`` to add your package to the PyPI archive. " +"Optionally you can GPG-sign the package by supplying the :option:`!--sign` " +"and :option:`!--identity` options." +msgstr "" + +msgid "" +"Package uploading was implemented by Martin von Löwis and Richard Jones." +msgstr "" + +msgid ":pep:`314` - Metadata for Python Software Packages v1.1" +msgstr "" + +msgid "" +"PEP proposed and written by A.M. Kuchling, Richard Jones, and Fred Drake; " +"implemented by Richard Jones and Fred Drake." +msgstr "" + +msgid "PEP 328: Absolute and Relative Imports" +msgstr "" + +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." +msgstr "" + +msgid "" +"The more complicated part has been implemented in Python 2.5: importing a " +"module can be specified to use absolute or package-relative imports. The " +"plan is to move toward making absolute imports the default in future " +"versions of Python." +msgstr "" + +msgid "Let's say you have a package directory like this::" +msgstr "" + +msgid "" +"This defines a package named :mod:`pkg` containing the :mod:`pkg.main` " +"and :mod:`pkg.string` submodules." +msgstr "" + +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." +msgstr "" + +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. " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +"In Python 2.5, you can switch :keyword:`import`'s behaviour to absolute " +"imports using a ``from __future__ import absolute_import`` directive. This " +"absolute-import behaviour will become the default in a future version " +"(probably Python 2.7). Once absolute imports are the default, ``import " +"string`` will always find the standard library's version. It's suggested " +"that users should begin using absolute imports as much as possible, so it's " +"preferable to begin writing ``from pkg import string`` in your code." +msgstr "" + +msgid "" +"Relative imports are still possible by adding a leading period to the " +"module name when using the ``from ... import`` form::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Leading periods cannot be used with the ``import modname`` form of the " +"import statement, only the ``from ... import`` form." +msgstr "" + +msgid ":pep:`328` - Imports: Multi-Line and Absolute/Relative" +msgstr "" + +msgid "PEP written by Aahz; implemented by Thomas Wouters." +msgstr "" + +msgid "https://pylib.readthedocs.io/" +msgstr "https://pylib.readthedocs.io/" + +msgid "" +"The py library by Holger Krekel, which contains the :mod:`py.std` package." +msgstr "" + +msgid "PEP 338: Executing Modules as Scripts" +msgstr "" + +msgid "" +"The :option:`-m` switch added in Python 2.4 to execute a module as a script " +"gained a few more abilities. Instead of being implemented in C code inside " +"the Python interpreter, the switch now uses an implementation in a new " +"module, :mod:`runpy`." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`338` - Executing modules as scripts" +msgstr "" + +msgid "PEP written and implemented by Nick Coghlan." +msgstr "" + +msgid "PEP 341: Unified try/except/finally" +msgstr "" + +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` " +"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." +msgstr "" + +msgid "" +"Guido van Rossum spent some time working with Java, which does support the " +"equivalent of combining :keyword:`except` blocks and a :keyword:`finally` " +"block, and this clarified what the statement should mean. In Python 2.5, " +"you can now write::" +msgstr "" + +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." +msgstr "" + +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 " +"raised, the code in the *final-block* is still run." +msgstr "" + +msgid ":pep:`341` - Unifying try-except and try-finally" +msgstr "" + +msgid "PEP written by Georg Brandl; implementation by Thomas Lee." +msgstr "" + +msgid "PEP 342: New Generator Features" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "To refresh your memory of basic generators, here's a simple example::" +msgstr "" + +msgid "" +"When you call ``counter(10)``, the result is an iterator that returns the " +"values from 0 up to 9. On encountering the :keyword:`yield` statement, the " +"iterator returns the provided value and suspends the function's execution, " +"preserving the local variables. Execution resumes on the following call to " +"the iterator's :meth:`next` method, picking up after the :keyword:`!yield` " +"statement." +msgstr "" + +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::" +msgstr "" + +msgid "" +"I recommend that you always put parentheses around a :keyword:`yield` " +"expression when you're doing something with the returned value, as in the " +"above example. The parentheses aren't always necessary, but it's easier to " +"always add them instead of having to remember when they're needed." +msgstr "" + +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-" +"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``.)" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Here's the previous example, modified to allow changing the value of the " +"internal counter. ::" +msgstr "" + +msgid "And here's an example of changing the counter::" +msgstr "" + +msgid "" +":keyword:`yield` will usually return :const:`None`, so you should always " +"check for this case. Don't just use its value in expressions unless you're " +"sure that the :meth:`send` method will be the only method used to resume " +"your generator function." +msgstr "" + +msgid "" +"In addition to :meth:`send`, there are two other new methods on generators:" +msgstr "" + +msgid "" +"``throw(type, value=None, traceback=None)`` is used to raise an exception " +"inside the generator; the exception is raised by the :keyword:`yield` " +"expression where the generator's execution is paused." +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." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The cumulative effect of these changes is to turn generators from one-way " +"producers of information into both producers and consumers." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"The addition of the :meth:`close` method has one side effect that isn't " +"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." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`342` - Coroutines via Enhanced Generators" +msgstr "" + +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." +msgstr "" + +msgid "" +"Earlier versions of these features were proposed in :pep:`288` by Raymond " +"Hettinger and :pep:`325` by Samuele Pedroni." +msgstr "" + +msgid "https://en.wikipedia.org/wiki/Coroutine" +msgstr "https://en.wikipedia.org/wiki/Coroutine" + +msgid "The Wikipedia entry for coroutines." +msgstr "" + +msgid "" +"https://web.archive.org/web/20160321211320/http://www.sidhe.org/~dan/blog/" +"archives/000178.html" +msgstr "" +"https://web.archive.org/web/20160321211320/http://www.sidhe.org/~dan/blog/" +"archives/000178.html" + +msgid "" +"An explanation of coroutines from a Perl point of view, written by Dan " +"Sugalski." +msgstr "" + +msgid "PEP 343: The 'with' statement" +msgstr "" + +msgid "" +"The ':keyword:`with`' statement clarifies code that previously would use " +"``try...finally`` blocks to ensure that clean-up code is executed. In this " +"section, I'll discuss the statement as it will commonly be used. In the " +"next section, I'll examine the implementation details and show how to write " +"objects for use with this statement." +msgstr "" + +msgid "" +"The ':keyword:`with`' statement is a new control-flow structure whose basic " +"structure is::" +msgstr "" + +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." +msgstr "" + +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 name *variable*, if given. (Note carefully that *variable* is *not* " +"assigned the result of *expression*.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"To enable the statement in Python 2.5, you need to add the following " +"directive to your module::" +msgstr "" + +msgid "The statement will always be enabled in Python 2.6." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"After this statement has executed, the file object in *f* will have been " +"automatically closed, even if the :keyword:`for` loop raised an exception " +"part-way through the block." +msgstr "" + +msgid "" +"In this case, *f* is the same object created by :func:`open`, " +"because :meth:`file.__enter__` returns *self*." +msgstr "" + +msgid "" +"The :mod:`threading` module's locks and condition variables also support " +"the ':keyword:`with`' statement::" +msgstr "" + +msgid "" +"The lock is acquired before the block is executed and always released once " +"the block is complete." +msgstr "" + +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::" +msgstr "" + +msgid "Writing Context Managers" +msgstr "" + +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 " +"if you like. Authors of new objects will need to understand the details of " +"the underlying implementation and should keep reading." +msgstr "" + +msgid "A high-level explanation of the context management protocol is:" +msgstr "" + +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." +msgstr "" + +msgid "" +"The context manager's :meth:`__enter__` method is called. The value " +"returned is assigned to *VAR*. If no ``'as VAR'`` clause is present, the " +"value is simply discarded." +msgstr "" + +msgid "The code in *BLOCK* is executed." +msgstr "" + +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." +msgstr "" + +msgid "" +"If *BLOCK* didn't raise an exception, the :meth:`__exit__` method is still " +"called, but *type*, *value*, and *traceback* are all ``None``." +msgstr "" + +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." +msgstr "" + +msgid "" +"(For people unfamiliar with database terminology: a set of changes to the " +"database are grouped into a transaction. Transactions can be either " +"committed, meaning that all the changes are written into the database, or " +"rolled back, meaning that the changes are all discarded and the database is " +"unchanged. See any database textbook for more information.)" +msgstr "" + +msgid "" +"Let's assume there's an object representing a database connection. Our goal " +"will be to let the user write code like this::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"The :meth:`__enter__` method is pretty easy, having only to start a new " +"transaction. For this application the resulting cursor object would be a " +"useful result, so the method will return it. The user can then add ``as " +"cursor`` to their ':keyword:`with`' statement to bind the cursor to a " +"variable name. ::" +msgstr "" + +msgid "" +"The :meth:`__exit__` method is the most complicated because it's where most " +"of the work has to be done. The method has to check if an exception " +"occurred. If there was no exception, the transaction is committed. The " +"transaction is rolled back if there was an exception." +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. ::" +msgstr "" + +msgid "The contextlib module" +msgstr "" + +msgid "" +"The new :mod:`contextlib` module provides some functions and a decorator " +"that are useful for writing objects for use with the ':keyword:`with`' " +"statement." +msgstr "" + +msgid "" +"The decorator is called :func:`contextmanager`, and lets you write a single " +"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` " +"statement." +msgstr "" + +msgid "" +"Our database example from the previous section could be written using this " +"decorator as::" +msgstr "" + +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::" +msgstr "" + +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. ::" +msgstr "" + +msgid ":pep:`343` - The \"with\" statement" +msgstr "" + +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 " +"statement works." +msgstr "" + +msgid "The documentation for the :mod:`contextlib` module." +msgstr "" + +msgid "PEP 352: Exceptions as New-Style Classes" +msgstr "" + +msgid "" +"Exception classes can now be new-style classes, not just classic classes, " +"and the built-in :exc:`Exception` class and all the standard built-in " +"exceptions (:exc:`NameError`, :exc:`ValueError`, etc.) are now new-style " +"classes." +msgstr "" + +msgid "" +"The inheritance hierarchy for exceptions has been rearranged a bit. In 2.5, " +"the inheritance relationships are::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"In Python 2.5, you can now write ``except Exception`` to achieve the same " +"result, catching all the exceptions that usually indicate errors but " +"leaving :exc:`KeyboardInterrupt` and :exc:`SystemExit` alone. As in " +"previous versions, a bare ``except:`` still catches all exceptions." +msgstr "" + +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 " +"``except:`` form should be removed in Python 3.0, but Guido van Rossum " +"hasn't decided whether to do this or not." +msgstr "" + +msgid "" +"Raising of strings as exceptions, as in the statement ``raise \"Error " +"occurred\"``, is deprecated in Python 2.5 and will trigger a warning. The " +"aim is to be able to remove the string-exception feature in a few releases." +msgstr "" + +msgid ":pep:`352` - Required Superclass for Exceptions" +msgstr "" + +msgid "" +"PEP written by Brett Cannon and Guido van Rossum; implemented by Brett " +"Cannon." +msgstr "" + +msgid "PEP 353: Using ssize_t as the index type" +msgstr "" + +msgid "" +"A wide-ranging change to Python's C API, using a new :c:type:`Py_ssize_t` " +"type definition instead of :c:expr:`int`, will permit the interpreter to " +"handle more data on 64-bit platforms. This change doesn't affect Python's " +"capacity on 32-bit platforms." +msgstr "" + +msgid "" +"Various pieces of the Python interpreter used C's :c:expr:`int` type to " +"store sizes or counts; for example, the number of items in a list or tuple " +"were stored in an :c:expr:`int`. The C compilers for most 64-bit platforms " +"still define :c:expr:`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 https://" +"unix.org/version2/whatsnew/lp64_wp.html for a discussion -- but the most " +"commonly available model leaves :c:expr:`int` as 32 bits.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"It's possible to address that much memory on a 64-bit platform, however. " +"The pointers for a list that size would only require 16 GiB of space, so " +"it's not unreasonable that Python programmers might construct lists that " +"large. Therefore, the Python interpreter had to be changed to use some type " +"other than :c:expr:`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.)" +msgstr "" + +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`." +msgstr "" + +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:expr:`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 "" + +msgid "" +":pep:`353` has a section on conversion guidelines that extension authors " +"should read to learn about supporting 64-bit platforms." +msgstr "" + +msgid ":pep:`353` - Using ssize_t as the index type" +msgstr "" + +msgid "PEP written and implemented by Martin von Löwis." +msgstr "" + +msgid "PEP 357: The '__index__' method" +msgstr "" + +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 " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Instead, a new special method called :meth:`__index__` was added. It takes " +"no arguments and returns an integer giving the slice index to use. For " +"example::" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`357` - Allowing Any Object to be Used for Slicing" +msgstr "" + +msgid "PEP written and implemented by Travis Oliphant." +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "" +"Here are all of the changes that Python 2.5 makes to the core Python " +"language." +msgstr "" + +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::" +msgstr "" + +msgid "" +"Both 8-bit and Unicode strings have new ``partition(sep)`` and " +"``rpartition(sep)`` methods that simplify a common use case." +msgstr "" + +msgid "" +"The ``find(S)`` method is often used to get an index which is then used to " +"slice the string and obtain the pieces that are before and after the " +"separator. ``partition(sep)`` condenses this pattern into a single method " +"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'." +msgstr "" + +msgid "Some examples::" +msgstr "Trochę przykładów::" + +msgid "" +"(Implemented by Fredrik Lundh following a suggestion by Raymond Hettinger.)" +msgstr "" + +msgid "" +"The :meth:`startswith` and :meth:`endswith` methods of string types now " +"accept tuples of strings to check for. ::" +msgstr "" + +msgid "(Implemented by Georg Brandl following a suggestion by Tom Lynn.)" +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 " +"with the smallest/largest return value from this function. For example, to " +"find the longest string in a list, you can do::" +msgstr "" + +msgid "(Contributed by Steven Bethard and Raymond Hettinger.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The result of a class's :meth:`__hash__` method can now be either a long " +"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)." +msgstr "" + +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::" +msgstr "" + +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. The result of the comparison is " +"false::" +msgstr "" + +msgid "" +"Previously this would raise a :class:`UnicodeDecodeError` exception, but in " +"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." +msgstr "" + +msgid "" +"Raising an exception for such a comparison is strictly correct, but the " +"change might have broken code, so instead :class:`UnicodeWarning` was " +"introduced." +msgstr "" + +msgid "(Implemented by Marc-André Lemburg.)" +msgstr "" + +msgid "" +"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.)" +msgstr "" + +msgid "" +"The list of base classes in a class definition can now be empty. As an " +"example, this is now legal::" +msgstr "" + +msgid "(Implemented by Brett Cannon.)" +msgstr "" + +msgid "Interactive Interpreter Changes" +msgstr "" + +msgid "" +"In the interactive interpreter, ``quit`` and ``exit`` have long been " +"strings so that new users get a somewhat helpful message when they try to " +"quit::" +msgstr "" + +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. " +"(Implemented by Georg Brandl.)" +msgstr "" + +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.)" +msgstr "" + +msgid "Optimizations" +msgstr "" + +msgid "" +"Several of the optimizations were developed at the NeedForSpeed sprint, an " +"event held in Reykjavik, Iceland, from May 21--28 2006. The sprint focused " +"on speed enhancements to the CPython implementation and was funded by EWT " +"LLC with local support from CCP Games. Those optimizations added at this " +"sprint are specially marked in the following list." +msgstr "" + +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, and as a result sets will use a third less memory and are " +"somewhat faster. (Implemented by Raymond Hettinger.)" +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 " +"Walter Dörwald and Martin von Löwis.)" +msgstr "" + +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 " +"around 800--1000 digits where the function is 6 times faster. (Contributed " +"by Alan McIntyre and committed at the NeedForSpeed sprint.)" +msgstr "" + +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\\*` " +"method. (Implemented by Thomas Wouters.)" +msgstr "" + +msgid "" +"The :mod:`struct` module now compiles structure format strings into an " +"internal representation and caches this representation, yielding a 20% " +"speedup. (Contributed by Bob Ippolito at the NeedForSpeed sprint.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +msgid "New, Improved, and Removed Modules" +msgstr "" + +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 " +"more complete list of changes, or look through the SVN logs for all the " +"details." +msgstr "" + +msgid "" +"The :mod:`audioop` module now supports the a-LAW encoding, and the code for " +"u-LAW encoding has been improved. (Contributed by Lars Immisch.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The :mod:`collections` module gained a new type, :class:`defaultdict`, that " +"subclasses the standard :class:`dict` type. The new type mostly behaves " +"like a dictionary but constructs a default value when a key isn't present, " +"automatically adding it to the dictionary for the requested key value." +msgstr "" + +msgid "" +"The first argument to :class:`defaultdict`'s constructor is a factory " +"function that gets called whenever a key is requested but not found. This " +"factory function receives no arguments, so you can use built-in type " +"constructors such as :func:`list` or :func:`int`. For example, you can " +"make an index of words based on their initial letter like this::" +msgstr "" + +msgid "Printing ``index`` results in the following output::" +msgstr "" + +msgid "(Contributed by Guido van Rossum.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"New module: The :mod:`contextlib` module contains helper functions for use " +"with the new ':keyword:`with`' statement. See section :ref:`contextlibmod` " +"for more about this module." +msgstr "" + +msgid "" +"New module: The :mod:`cProfile` module is a C implementation of the " +"existing :mod:`profile` module that has much lower overhead. The module's " +"interface is the same as :mod:`profile`: you run ``cProfile.run('main()')`` " +"to profile a function, can save profile data to a file, etc. It's not yet " +"known if the Hotshot profiler, which is also written in C but doesn't match " +"the :mod:`profile` module's interface, will continue to be maintained in " +"future versions of Python. (Contributed by Armin Rigo.)" +msgstr "" + +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 " +"Montanaro.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The CSV parser is now stricter about multi-line quoted fields. Previously, " +"if a line ended within a quoted field without a terminating newline " +"character, a newline would be inserted into the returned field. This " +"behavior caused problems when reading files that contained carriage return " +"characters within fields, so the code was changed to return the field " +"without inserting newlines. As a consequence, if newlines embedded within " +"fields are important, the input should be split into lines in a manner that " +"preserves the newline characters." +msgstr "" + +msgid "(Contributed by Skip Montanaro and Andrew McNamara.)" +msgstr "" + +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`::" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The :mod:`doctest` module gained a ``SKIP`` option that keeps an example " +"from being executed at all. This is intended for code snippets that are " +"usage examples intended for the reader and aren't actually test cases." +msgstr "" + +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 easier to use non-ASCII characters in tests contained within a " +"docstring. (Contributed by Bjorn Tillenius.)" +msgstr "" + +msgid "" +"The :mod:`email` package has been updated to version 4.0. (Contributed by " +"Barry Warsaw.)" +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. (Contributed by Georg Brandl.)" +msgstr "" + +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 " +"*generation* argument of 0, 1, or 2 to specify which generation to collect. " +"(Contributed by Barry Warsaw.)" +msgstr "" + +msgid "" +"The :func:`nsmallest` and :func:`nlargest` functions in the :mod:`heapq` " +"module now support a ``key`` keyword parameter similar to the one provided " +"by the :func:`min`/:func:`max` functions and the :meth:`sort` methods. For " +"example::" +msgstr "" + +msgid "(Contributed by Raymond Hettinger.)" +msgstr "" + +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::" +msgstr "" + +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`." +msgstr "" + +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 " +"*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." +msgstr "" + +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." +msgstr "" + +msgid "" +"A new :func:`currency` function was also added that formats a number " +"according to the current locale's settings." +msgstr "" + +msgid "(Contributed by Georg Brandl.)" +msgstr "" + +msgid "" +"The :mod:`mailbox` module underwent a massive rewrite to add the capability " +"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::" +msgstr "" + +msgid "" +"(Contributed by Gregory K. Johnson. Funding was provided by Google's 2005 " +"Summer of Code.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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`." +msgstr "" + +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.)" +msgstr "" + +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ò.)" +msgstr "" + +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 " +"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.)" +msgstr "" + +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 " +"tuple of arguments instead. The ability to return ``None`` was deprecated " +"in Python 2.4, so this completes the removal of the feature." +msgstr "" + +msgid "" +"The :mod:`pkgutil` module, containing various utility functions for finding " +"packages, was enhanced to support :pep:`302`'s import hooks and now also " +"works for packages stored in ZIP-format archives. (Contributed by Phillip J. " +"Eby.)" +msgstr "" + +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 " +"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 " +"reducing the result to a single number as :file:`pystone.py` does." +msgstr "" + +msgid "" +"The :mod:`pyexpat` module now uses version 2.0 of the Expat parser. " +"(Contributed by Trent Mick.)" +msgstr "" + +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 " +"Hettinger.)" +msgstr "" + +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`." +msgstr "" + +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 " +"directory to ``sys.path``, this removal shouldn't affect your code." +msgstr "" + +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.)" +msgstr "" + +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." +msgstr "" + +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)``." +msgstr "" + +msgid "" +"Two new methods on socket objects, ``recv_into(buffer)`` and " +"``recvfrom_into(buffer)``, store the received data in an object that " +"supports the buffer protocol instead of returning the data as a string. " +"This means you can put the data directly into an array or a memory-mapped " +"file." +msgstr "" + +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." +msgstr "" + +msgid "" +"New module: the :mod:`spwd` module provides functions for accessing the " +"shadow password database on systems that support shadow passwords." +msgstr "" + +msgid "" +"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 them. Or you can use :class:`Struct` instances directly::" +msgstr "" + +msgid "" +"You can also pack and unpack data to and from buffer objects directly using " +"the ``pack_into(buffer, offset, v1, v2, ...)`` and ``unpack_from(buffer, " +"offset)`` methods. This lets you store data directly into an array or a " +"memory-mapped file." +msgstr "" + +msgid "" +"(:class:`Struct` objects were implemented by Bob Ippolito at the " +"NeedForSpeed sprint. Support for buffer objects was added by Martin Blais, " +"also at the NeedForSpeed sprint.)" +msgstr "" + +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')``." +msgstr "" + +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.)" +msgstr "" + +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 " +"function is called. (Contributed by Tim Peters.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The compression used for a tarfile opened in stream mode can now be " +"autodetected using the mode ``'r|*'``. (Contributed by Lars Gustäbel.)" +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.)" +msgstr "" + +msgid "" +"The :mod:`unicodedata` module has been updated to use version 4.1.0 of the " +"Unicode character database. Version 3.2.0 is required by some " +"specifications, so it's still available as :attr:`unicodedata.ucd_3_2_0`." +msgstr "" + +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.) ::" +msgstr "" + +msgid "(Contributed by Ka-Ping Yee.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The :mod:`zipfile` module now supports the ZIP64 version of the format, " +"meaning that a .zip archive can now be larger than 4 GiB and can contain " +"individual files larger than 4 GiB. (Contributed by Ronald Oussoren.)" +msgstr "" + +msgid "" +"The :mod:`zlib` module's :class:`Compress` and :class:`Decompress` objects " +"now support a :meth:`copy` method that makes a copy of the object's " +"internal state and returns a new :class:`Compress` or :class:`Decompress` " +"object. (Contributed by Chris AtLee.)" +msgstr "" + +msgid "The ctypes package" +msgstr "" + +msgid "" +"The :mod:`ctypes` package, written by Thomas Heller, has been added to the " +"standard library. :mod:`ctypes` lets you call arbitrary functions in " +"shared libraries or DLLs. Long-time users may remember the :mod:`dl` " +"module, which provides functions for loading shared libraries and calling " +"functions in them. The :mod:`ctypes` package is much fancier." +msgstr "" + +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. ::" +msgstr "" + +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:expr:`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 "" + +msgid "" +"You shouldn't use :func:`c_char_p` with a Python string when the C function " +"will be modifying the memory area, because Python strings are supposed to " +"be immutable; breaking this rule will cause puzzling bugs. When you need a " +"modifiable memory area, use :func:`create_string_buffer`::" +msgstr "" + +msgid "" +"C functions are assumed to return integers, but you can set " +"the :attr:`restype` attribute of the function object to change this::" +msgstr "" + +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:expr:`PyObject *` pointer. A simple " +"usage::" +msgstr "" + +msgid "" +"Don't forget to use :class:`py_object()`; if it's omitted you end up with a " +"segmentation fault." +msgstr "" + +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 wrappers atop a library accessed through :mod:`ctypes` instead of " +"extension modules, now that :mod:`ctypes` is included with core Python." +msgstr "" + +msgid "" +"https://web.archive.org/web/20180410025338/http://starship.python.net/crew/" +"theller/ctypes/" +msgstr "" +"https://web.archive.org/web/20180410025338/http://starship.python.net/crew/" +"theller/ctypes/" + +msgid "The pre-stdlib ctypes web page, with a tutorial, reference, and FAQ." +msgstr "" + +msgid "The documentation for the :mod:`ctypes` module." +msgstr "" + +msgid "The ElementTree package" +msgstr "" + +msgid "" +"A subset of Fredrik Lundh's ElementTree library for processing XML has been " +"added to the standard library as :mod:`xml.etree`. The available modules " +"are :mod:`ElementTree`, :mod:`ElementPath`, and :mod:`ElementInclude` from " +"ElementTree 1.2.6. The :mod:`cElementTree` accelerator module is also " +"included." +msgstr "" + +msgid "" +"The rest of this section will provide a brief overview of using ElementTree. " +"Full documentation for ElementTree is available at https://web.archive.org/" +"web/20201124024954/http://effbot.org/zone/element-index.htm." +msgstr "" + +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 " +"node, including :class:`TextNode`.)" +msgstr "" + +msgid "" +"The most commonly used parsing function is :func:`parse`, that takes either " +"a string (assumed to contain a filename) or a file-like object and returns " +"an :class:`ElementTree` instance::" +msgstr "" + +msgid "" +"Once you have an :class:`ElementTree` instance, you can call " +"its :meth:`getroot` method to get the root :class:`Element` node." +msgstr "" + +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 " +"provides a tidy way to incorporate XML fragments, approaching the " +"convenience of an XML literal::" +msgstr "" + +msgid "" +"Each XML element supports some dictionary-like and some list-like access " +"methods. Dictionary-like operations are used to access attribute values, " +"and list-like operations are used to access child nodes." +msgstr "" + +msgid "Operation" +msgstr "" + +msgid "Result" +msgstr "" + +msgid "``elem[n]``" +msgstr "``elem[n]``" + +msgid "Returns n'th child element." +msgstr "" + +msgid "``elem[m:n]``" +msgstr "``elem[m:n]``" + +msgid "Returns list of m'th through n'th child elements." +msgstr "" + +msgid "``len(elem)``" +msgstr "``len(elem)``" + +msgid "Returns number of child elements." +msgstr "" + +msgid "``list(elem)``" +msgstr "``list(elem)``" + +msgid "Returns list of child elements." +msgstr "" + +msgid "``elem.append(elem2)``" +msgstr "``elem.append(elem2)``" + +msgid "Adds *elem2* as a child." +msgstr "" + +msgid "``elem.insert(index, elem2)``" +msgstr "``elem.insert(index, elem2)``" + +msgid "Inserts *elem2* at the specified location." +msgstr "" + +msgid "``del elem[n]``" +msgstr "``del elem[n]``" + +msgid "Deletes n'th child element." +msgstr "" + +msgid "``elem.keys()``" +msgstr "``elem.keys()``" + +msgid "Returns list of attribute names." +msgstr "" + +msgid "``elem.get(name)``" +msgstr "``elem.get(name)``" + +msgid "Returns value of attribute *name*." +msgstr "" + +msgid "``elem.set(name, value)``" +msgstr "``elem.set(name, value)``" + +msgid "Sets new value for attribute *name*." +msgstr "" + +msgid "``elem.attrib``" +msgstr "``elem.attrib``" + +msgid "Retrieves the dictionary containing attributes." +msgstr "" + +msgid "``del elem.attrib[name]``" +msgstr "``del elem.attrib[name]``" + +msgid "Deletes attribute *name*." +msgstr "" + +msgid "" +"Comments and processing instructions are also represented " +"as :class:`Element` nodes. To check if a node is a comment or processing " +"instructions::" +msgstr "" + +msgid "" +"To generate XML output, you should call the :meth:`ElementTree.write` " +"method. Like :func:`parse`, it can take either a string or a file-like " +"object::" +msgstr "" + +msgid "" +"(Caution: the default encoding used for output is ASCII. For general XML " +"work, where an element's name may contain arbitrary Unicode characters, " +"ASCII isn't a very useful encoding because it will raise an exception if an " +"element's name contains any characters with values greater than 127. " +"Therefore, it's best to specify a different encoding such as UTF-8 that can " +"handle any Unicode character.)" +msgstr "" + +msgid "" +"This section is only a partial description of the ElementTree interfaces. " +"Please read the package's official documentation for more details." +msgstr "" + +msgid "" +"https://web.archive.org/web/20201124024954/http://effbot.org/zone/element-" +"index.htm" +msgstr "" +"https://web.archive.org/web/20201124024954/http://effbot.org/zone/element-" +"index.htm" + +msgid "Official documentation for ElementTree." +msgstr "" + +msgid "The hashlib package" +msgstr "" + +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 " +"implementations of algorithms." +msgstr "" + +msgid "" +"The old :mod:`md5` and :mod:`sha` modules still exist as wrappers around " +"hashlib to preserve backwards compatibility. The new module's interface is " +"very close to that of the old modules, but not identical. The most " +"significant difference is that the constructor functions for creating new " +"hashing objects are named differently. ::" +msgstr "" + +msgid "" +"Once a hash object has been created, its methods are the same as before: " +"``update(string)`` hashes the specified string into the current digest " +"state, :meth:`digest` and :meth:`hexdigest` return the digest value as a " +"binary string or a string of hex digits, and :meth:`copy` returns a new " +"hashing object with the same digest state." +msgstr "" + +msgid "The documentation for the :mod:`hashlib` module." +msgstr "" + +msgid "The sqlite3 package" +msgstr "" + +msgid "" +"The pysqlite module (https://www.pysqlite.org), a wrapper for the SQLite " +"embedded database, has been added to the standard library under the package " +"name :mod:`sqlite3`." +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." +msgstr "" + +msgid "" +"pysqlite was written by Gerhard Häring and provides a SQL interface " +"compliant with the DB-API 2.0 specification described by :pep:`249`." +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 " +"available." +msgstr "" + +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::" +msgstr "" + +msgid "" +"You can also supply the special name ``:memory:`` to create a database in " +"RAM." +msgstr "" + +msgid "" +"Once you have a :class:`Connection`, you can create a :class:`Cursor` " +"object and call its :meth:`execute` method to perform SQL commands::" +msgstr "" + +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." +msgstr "" + +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:`execute` method. " +"(Other database modules may use a different placeholder, such as ``%s`` or " +"``:1``.) For example::" +msgstr "" + +msgid "" +"To retrieve data after executing a SELECT statement, you can either treat " +"the cursor as an iterator, call the cursor's :meth:`fetchone` method to " +"retrieve a single matching row, or call :meth:`fetchall` to get a list of " +"the matching rows." +msgstr "" + +msgid "This example uses the iterator form::" +msgstr "" + +msgid "" +"For more information about the SQL dialect supported by SQLite, see https://" +"www.sqlite.org." +msgstr "" + +msgid "https://www.pysqlite.org" +msgstr "https://www.pysqlite.org" + +msgid "The pysqlite web page." +msgstr "" + +msgid "https://www.sqlite.org" +msgstr "https://www.sqlite.org" + +msgid "" +"The SQLite web page; the documentation describes the syntax and the " +"available data types for the supported SQL dialect." +msgstr "" + +msgid "The documentation for the :mod:`sqlite3` module." +msgstr "" + +msgid ":pep:`249` - Database API Specification 2.0" +msgstr "" + +msgid "PEP written by Marc-André Lemburg." +msgstr "" + +msgid "The wsgiref package" +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +msgid "" +"https://web.archive.org/web/20160331090247/http://wsgi.readthedocs.org/en/" +"latest/" +msgstr "" +"https://web.archive.org/web/20160331090247/http://wsgi.readthedocs.org/en/" +"latest/" + +msgid "A central web site for WSGI-related resources." +msgstr "" + +msgid ":pep:`333` - Python Web Server Gateway Interface v1.0" +msgstr "" + +msgid "PEP written by Phillip J. Eby." +msgstr "" + +msgid "Build and C API Changes" +msgstr "" + +msgid "Changes to Python's build process and to the C API include:" +msgstr "" + +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`." +msgstr "" + +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 " +"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." +msgstr "" + +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:expr:`int`. See the earlier section :ref:`pep-353` for a discussion " +"of this change." +msgstr "" + +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 " +"syntax tree that's traversed to produce the bytecode." +msgstr "" + +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::" +msgstr "" + +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." +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "" +"Evan Jones's patch to obmalloc, first described in a talk at PyCon DC 2005, " +"was applied. Python 2.4 allocated small objects in 256K-sized arenas, but " +"never freed arenas. With this patch, Python will free arenas when they're " +"empty. The net effect is that on some platforms, when you allocate many " +"objects, Python's memory usage may actually drop when you delete them and " +"the memory may be returned to the operating system. (Implemented by Evan " +"Jones, and reworked by Tim Peters.)" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"C code can now obtain information about the exact revision of the Python " +"interpreter by calling 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 "" + +msgid "" +"Two new macros can be used to indicate C functions that are local to the " +"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.)" +msgstr "" + +msgid "" +"``PyErr_NewException(name, base, dict)`` can now accept a tuple of base " +"classes as its *base* argument. (Contributed by Georg Brandl.)" +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.)" +msgstr "" + +msgid "" +"The CPython interpreter is still written in C, but the code can now be " +"compiled with a C++ compiler without errors. (Implemented by Anthony " +"Baxter, Martin von Löwis, Skip Montanaro.)" +msgstr "" + +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 " +"something like the following::" +msgstr "" + +msgid "Port-Specific Changes" +msgstr "" + +msgid "" +"MacOS X (10.3 and higher): dynamic loading of modules now uses " +"the :c:func:`dlopen` function instead of MacOS-specific functions." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Windows: :file:`.dll` is no longer supported as a filename extension for " +"extension modules. :file:`.pyd` is now the only filename extension that " +"will be searched for." +msgstr "" + +msgid "Porting to Python 2.5" +msgstr "" + +msgid "" +"This section lists previously described changes that may require changes to " +"your code:" +msgstr "" + +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." +msgstr "" + +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``." +msgstr "" + +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." +msgstr "" + +msgid "" +"Library: the :mod:`csv` module is now stricter about multi-line quoted " +"fields. If your files contain newlines embedded within fields, the input " +"should be split into lines in a manner which preserves the newline " +"characters." +msgstr "" + +msgid "" +"Library: the :mod:`locale` module's :func:`format` function's would " +"previously accept any string as long as no more than one %char specifier " +"appeared. In Python 2.5, the argument must be exactly one %char specifier " +"with no surrounding text." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"C API: Many functions now use :c:type:`Py_ssize_t` instead of :c:expr:`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 "" + +msgid "" +"C API: The obmalloc changes mean that you must be careful to not mix usage " +"of the ``PyMem_*`` and ``PyObject_*`` families of functions. Memory " +"allocated with one family's ``*_Malloc`` must be freed with the " +"corresponding family's ``*_Free`` function." +msgstr "" + +msgid "Acknowledgements" +msgstr "" + +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 " +"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 " +"Wouters." +msgstr "" diff --git a/whatsnew/2.6.po b/whatsnew/2.6.po new file mode 100644 index 0000000000..029421cfdb --- /dev/null +++ b/whatsnew/2.6.po @@ -0,0 +1,3166 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New in Python 2.6" +msgstr "" + +msgid "Author" +msgstr "Autor" + +msgid "A.M. Kuchling (amk at amk.ca)" +msgstr "" + +msgid "" +"This article explains the new features in Python 2.6, released on October 1, " +"2008. The release schedule is described in :pep:`361`." +msgstr "" + +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 " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Python 2.6 also sees a number of improvements and bugfixes throughout the " +"source. A search through the change logs finds there were 259 patches " +"applied and 612 bugs fixed between Python 2.5 and 2.6. Both figures are " +"likely to be underestimates." +msgstr "" + +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." +msgstr "" + +msgid "Python 3.0" +msgstr "" + +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." +msgstr "" + +msgid "" +"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:" +msgstr "" + +msgid "" +"A :meth:`__complex__` method for converting objects to a complex number." +msgstr "" + +msgid "Alternate syntax for catching exceptions: ``except TypeError as exc``." +msgstr "" + +msgid "" +"The addition of :func:`functools.reduce` as a synonym for the built-" +"in :func:`reduce` function." +msgstr "" + +msgid "" +"Python 3.0 adds several new built-in functions and changes the semantics of " +"some existing builtins. Functions that are new in 3.0 such as :func:`bin` " +"have simply been added to Python 2.6, but existing builtins haven't been " +"changed; instead, the :mod:`future_builtins` module has versions with the " +"new 3.0 semantics. Code written to be compatible with 3.0 can do ``from " +"future_builtins import hex, map`` as necessary." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "Changes to the Development Process" +msgstr "" + +msgid "" +"While 2.6 was being developed, the Python development process underwent two " +"significant changes: we switched from SourceForge's issue tracker to a " +"customized Roundup installation, and the documentation was converted from " +"LaTeX to reStructuredText." +msgstr "" + +msgid "New Issue Tracker: Roundup" +msgstr "" + +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 " +"cycle of issues." +msgstr "" + +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." +msgstr "" + +msgid "" +"After posting a call for volunteers, a new Roundup installation was set up " +"at https://bugs.python.org. One installation of Roundup can host multiple " +"trackers, and this server now also hosts issue trackers for Jython and for " +"the Python web site. It will surely find other uses in the future. Where " +"possible, this edition of \"What's New in Python\" links to the bug/patch " +"item for each change." +msgstr "" + +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 ``https://" +"svn.python.org/view/tracker/importer/`` and may be useful to other projects " +"wishing to move from SourceForge to Roundup." +msgstr "" + +msgid "https://bugs.python.org" +msgstr "https://bugs.python.org" + +msgid "The Python bug tracker." +msgstr "" + +msgid "https://bugs.jython.org:" +msgstr "https://bugs.jython.org:" + +msgid "The Jython bug tracker." +msgstr "" + +msgid "https://roundup.sourceforge.io/" +msgstr "https://roundup.sourceforge.io/" + +msgid "Roundup downloads and documentation." +msgstr "" + +msgid "https://svn.python.org/view/tracker/importer/" +msgstr "https://svn.python.org/view/tracker/importer/" + +msgid "Martin von Löwis's conversion scripts." +msgstr "" + +msgid "New Documentation Format: reStructuredText Using Sphinx" +msgstr "" + +msgid "" +"The Python documentation was written using LaTeX since the project started " +"around 1989. In the 1980s and early 1990s, most documentation was printed " +"out for later study, not viewed online. LaTeX was widely used because it " +"provided attractive printed output while remaining straightforward to write " +"once the basic rules of the markup were learned." +msgstr "" + +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 " +"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 "" + +msgid "" +"During the 2.6 development cycle, Georg Brandl put a lot of effort into " +"building a new toolchain for processing the documentation. The resulting " +"package is called Sphinx, and is available from https://www.sphinx-doc.org/." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "`Documenting Python `__" +msgstr "" + +msgid "Describes how to write for Python's documentation." +msgstr "" + +msgid "`Sphinx `__" +msgstr "`Sphinx `__" + +msgid "Documentation and code for the Sphinx toolchain." +msgstr "" + +msgid "`Docutils `__" +msgstr "" + +msgid "The underlying reStructuredText parser and toolset." +msgstr "" + +msgid "PEP 343: The 'with' statement" +msgstr "" + +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 " +"':keyword:`!with`' statement from Python 2.5, you can skip this section." +msgstr "" + +msgid "" +"The ':keyword:`with`' statement clarifies code that previously would use " +"``try...finally`` blocks to ensure that clean-up code is executed. In this " +"section, I'll discuss the statement as it will commonly be used. In the " +"next section, I'll examine the implementation details and show how to write " +"objects for use with this statement." +msgstr "" + +msgid "" +"The ':keyword:`with`' statement is a control-flow structure whose basic " +"structure is::" +msgstr "" + +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)." +msgstr "" + +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 name *variable*, if given. (Note carefully that *variable* is *not* " +"assigned the result of *expression*.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"After this statement has executed, the file object in *f* will have been " +"automatically closed, even if the :keyword:`for` loop raised an exception " +"part-way through the block." +msgstr "" + +msgid "" +"In this case, *f* is the same object created by :func:`open`, " +"because :meth:`file.__enter__` returns *self*." +msgstr "" + +msgid "" +"The :mod:`threading` module's locks and condition variables also support " +"the ':keyword:`with`' statement::" +msgstr "" + +msgid "" +"The lock is acquired before the block is executed and always released once " +"the block is complete." +msgstr "" + +msgid "" +"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 "" + +msgid "Writing Context Managers" +msgstr "" + +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 " +"if you like. Authors of new objects will need to understand the details of " +"the underlying implementation and should keep reading." +msgstr "" + +msgid "A high-level explanation of the context management protocol is:" +msgstr "" + +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." +msgstr "" + +msgid "" +"The context manager's :meth:`__enter__` method is called. The value " +"returned is assigned to *VAR*. If no ``as VAR`` clause is present, the " +"value is simply discarded." +msgstr "" + +msgid "The code in *BLOCK* is executed." +msgstr "" + +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 " +"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 " +"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 "" + +msgid "" +"If *BLOCK* didn't raise an exception, the :meth:`__exit__` method is still " +"called, but *type*, *value*, and *traceback* are all ``None``." +msgstr "" + +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." +msgstr "" + +msgid "" +"(For people unfamiliar with database terminology: a set of changes to the " +"database are grouped into a transaction. Transactions can be either " +"committed, meaning that all the changes are written into the database, or " +"rolled back, meaning that the changes are all discarded and the database is " +"unchanged. See any database textbook for more information.)" +msgstr "" + +msgid "" +"Let's assume there's an object representing a database connection. Our goal " +"will be to let the user write code like this::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"The :meth:`__enter__` method is pretty easy, having only to start a new " +"transaction. For this application the resulting cursor object would be a " +"useful result, so the method will return it. The user can then add ``as " +"cursor`` to their ':keyword:`with`' statement to bind the cursor to a " +"variable name. ::" +msgstr "" + +msgid "" +"The :meth:`__exit__` method is the most complicated because it's where most " +"of the work has to be done. The method has to check if an exception " +"occurred. If there was no exception, the transaction is committed. The " +"transaction is rolled back if there was an exception." +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. ::" +msgstr "" + +msgid "The contextlib module" +msgstr "" + +msgid "" +"The :mod:`contextlib` module provides some functions and a decorator that " +"are useful when writing objects for use with the ':keyword:`with`' statement." +msgstr "" + +msgid "" +"The decorator is called :func:`contextmanager`, and lets you write a single " +"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` " +"statement." +msgstr "" + +msgid "" +"Using this decorator, our database example from the previous section could " +"be written as::" +msgstr "" + +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::" +msgstr "" + +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. ::" +msgstr "" + +msgid ":pep:`343` - The \"with\" statement" +msgstr "" + +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 " +"statement works." +msgstr "" + +msgid "The documentation for the :mod:`contextlib` module." +msgstr "" + +msgid "PEP 366: Explicit Relative Imports From a Main Module" +msgstr "" + +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." +msgstr "" + +msgid "" +"The fix for Python 2.6 adds a :attr:`__package__` attribute to modules. " +"When this attribute is present, relative imports will be relative to the " +"value of this attribute instead of the :attr:`__name__` attribute." +msgstr "" + +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." +msgstr "" + +msgid "PEP 370: Per-user ``site-packages`` Directory" +msgstr "" + +msgid "" +"When you run Python, the module search path ``sys.path`` usually includes a " +"directory whose path ends in ``\"site-packages\"``. This directory is " +"intended to hold locally installed packages available to all users using a " +"machine or a particular site installation." +msgstr "" + +msgid "" +"Python 2.6 introduces a convention for user-specific site directories. The " +"directory varies depending on the platform:" +msgstr "" + +msgid "Unix and Mac OS X: :file:`~/.local/`" +msgstr "" + +msgid "Windows: :file:`%APPDATA%/Python`" +msgstr "Windows: :file:`%APPDATA%/Python`" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The feature can be disabled entirely by running Python with the :option:`-s` " +"option or setting the :envvar:`PYTHONNOUSERSITE` environment variable." +msgstr "" + +msgid ":pep:`370` - Per-user ``site-packages`` Directory" +msgstr "" + +msgid "PEP written and implemented by Christian Heimes." +msgstr "" + +msgid "PEP 371: The ``multiprocessing`` Package" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 still running and the :meth:`join` method to wait for the " +"process to exit." +msgstr "" + +msgid "" +"Here's a simple example where the subprocess will calculate a factorial. " +"The function doing the calculation is written strangely so that it takes " +"significantly longer when the input argument is a multiple of 4." +msgstr "" + +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 " +"variable, the child's value would be unaffected, and vice versa.)" +msgstr "" + +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::" +msgstr "" + +msgid "This produces the following output::" +msgstr "" + +msgid "" +"The other high-level interface, the :class:`Manager` class, creates a " +"separate server process that can hold master copies of Python data " +"structures. Other processes can then access and modify these data " +"structures using proxy objects. The following example creates a shared " +"dictionary by calling the :meth:`dict` method; the worker processes then " +"insert values into the dictionary. (Locking is not done for you " +"automatically, which doesn't matter in this example. :class:`Manager`'s " +"methods also include :meth:`Lock`, :meth:`RLock`, and :meth:`Semaphore` to " +"create shared locks.)" +msgstr "" + +msgid "This will produce the output::" +msgstr "" + +msgid "The documentation for the :mod:`multiprocessing` module." +msgstr "" + +msgid ":pep:`371` - Addition of the multiprocessing package" +msgstr "" + +msgid "" +"PEP written by Jesse Noller and Richard Oudkerk; implemented by Richard " +"Oudkerk and Jesse Noller." +msgstr "" + +msgid "PEP 3101: Advanced String Formatting" +msgstr "" + +msgid "" +"In Python 3.0, the ``%`` operator is supplemented by a more powerful string " +"formatting method, :meth:`format`. Support for the :meth:`str.format` " +"method has been backported to Python 2.6." +msgstr "" + +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 " +"formatting template uses curly brackets (``{``, ``}``) as special " +"characters::" +msgstr "" + +msgid "Curly brackets can be escaped by doubling them::" +msgstr "" + +msgid "" +"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 "" + +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 " +"converted to an integer. You can't write more complicated expressions " +"inside a format string." +msgstr "" + +msgid "" +"So far we've shown how to specify which field to substitute into the " +"resulting string. The precise formatting used is also controllable by " +"adding a colon followed by a format specifier. For example::" +msgstr "" + +msgid "Format specifiers can reference other fields through nesting::" +msgstr "" + +msgid "The alignment of a field within the desired width can be specified:" +msgstr "" + +msgid "Character" +msgstr "Znak" + +msgid "Effect" +msgstr "" + +msgid "< (default)" +msgstr "" + +msgid "Left-align" +msgstr "" + +msgid ">" +msgstr "" + +msgid "Right-align" +msgstr "" + +msgid "^" +msgstr "" + +msgid "Center" +msgstr "" + +msgid "=" +msgstr "" + +msgid "(For numeric types only) Pad after the sign." +msgstr "" + +msgid "" +"Format specifiers can also include a presentation type, which controls how " +"the value is formatted. For example, floating-point numbers can be " +"formatted as a general number or in exponential notation::" +msgstr "" + +msgid "" +"A variety of presentation types are available. Consult the 2.6 " +"documentation for a :ref:`complete list `; here's a sample:" +msgstr "" + +msgid "``b``" +msgstr "``b``" + +msgid "Binary. Outputs the number in base 2." +msgstr "" + +msgid "``c``" +msgstr "``c``" + +msgid "" +"Character. Converts the integer to the corresponding Unicode character " +"before printing." +msgstr "" + +msgid "``d``" +msgstr "``d``" + +msgid "Decimal Integer. Outputs the number in base 10." +msgstr "" + +msgid "``o``" +msgstr "``o``" + +msgid "Octal format. Outputs the number in base 8." +msgstr "" + +msgid "``x``" +msgstr "``x``" + +msgid "" +"Hex format. Outputs the number in base 16, using lower-case letters for the " +"digits above 9." +msgstr "" + +msgid "``e``" +msgstr "``e``" + +msgid "" +"Exponent notation. Prints the number in scientific notation using the letter " +"'e' to indicate the exponent." +msgstr "" + +msgid "``g``" +msgstr "``g``" + +msgid "" +"General format. This prints the number as a fixed-point number, unless the " +"number is too large, in which case it switches to 'e' exponent notation." +msgstr "" + +msgid "``n``" +msgstr "``n``" + +msgid "" +"Number. This is the same as 'g' (for floats) or 'd' (for integers), except " +"that it uses the current locale setting to insert the appropriate number " +"separator characters." +msgstr "" + +msgid "``%``" +msgstr "``%``" + +msgid "" +"Percentage. Multiplies the number by 100 and displays in fixed ('f') format, " +"followed by a percent sign." +msgstr "" + +msgid "" +"Classes and types can define a :meth:`__format__` method to control how " +"they're formatted. It receives a single argument, the format specifier::" +msgstr "" + +msgid "" +"There's also a :func:`format` builtin that will format a single value. It " +"calls the type's :meth:`__format__` method with the provided specifier::" +msgstr "" + +msgid ":ref:`formatstrings`" +msgstr ":ref:`formatstrings`" + +msgid "The reference documentation for format fields." +msgstr "" + +msgid ":pep:`3101` - Advanced String Formatting" +msgstr "" + +msgid "PEP written by Talin. Implemented by Eric Smith." +msgstr "" + +msgid "PEP 3105: ``print`` As a Function" +msgstr "" + +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." +msgstr "" + +msgid "" +"Python 2.6 has a ``__future__`` import that removes ``print`` as language " +"syntax, letting you use the functional form instead. For example::" +msgstr "" + +msgid "The signature of the new function is::" +msgstr "" + +msgid "The parameters are:" +msgstr "" + +msgid "*args*: positional arguments whose values will be printed out." +msgstr "" + +msgid "*sep*: the separator, which will be printed between arguments." +msgstr "" + +msgid "" +"*end*: the ending text, which will be printed after all of the arguments " +"have been output." +msgstr "" + +msgid "*file*: the file object to which the output will be sent." +msgstr "" + +msgid ":pep:`3105` - Make print a function" +msgstr "" + +msgid "PEP written by Georg Brandl." +msgstr "" + +msgid "PEP 3110: Exception-Handling Changes" +msgstr "" + +msgid "" +"One error that Python programmers occasionally make is writing the following " +"code::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"This error happens because the use of the comma here is ambiguous: does it " +"indicate two different nodes in the parse tree, or a single node that's a " +"tuple?" +msgstr "" + +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::" +msgstr "" + +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 " +"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 "" + +msgid ":pep:`3110` - Catching Exceptions in Python 3000" +msgstr "" + +msgid "PEP written and implemented by Collin Winter." +msgstr "" + +msgid "PEP 3112: Byte Literals" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"There's also a ``__future__`` import that causes all string literals to " +"become Unicode strings. This means that ``\\u`` escape sequences can be " +"used to include Unicode characters::" +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." +msgstr "" + +msgid "" +"Instances of the :class:`bytes` type are immutable just as strings are. A " +"new :class:`bytearray` type stores a mutable sequence of bytes::" +msgstr "" + +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`." +msgstr "" + +msgid "" +"There's also a corresponding C API, " +"with :c:func:`PyByteArray_FromObject`, :c:func:`PyByteArray_FromStringAndSize`, " +"and various other functions." +msgstr "" + +msgid ":pep:`3112` - Bytes literals in Python 3000" +msgstr "" + +msgid "PEP written by Jason Orendorff; backported to 2.6 by Christian Heimes." +msgstr "" + +msgid "PEP 3116: New I/O Library" +msgstr "" + +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 in the :mod:`io` module that separates buffering and text-handling " +"features from the fundamental read and write operations." +msgstr "" + +msgid "" +"There are three levels of abstract base classes provided by the :mod:`io` " +"module:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"(In Python 2.6, :class:`io.StringIO` is implemented in pure Python, so it's " +"pretty slow. You should therefore stick with the existing :mod:`StringIO` " +"module or :mod:`cStringIO` for now. At some point Python 3.0's :mod:`io` " +"module will be rewritten into C for speed, and perhaps the C implementation " +"will be backported to the 2.x releases.)" +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 " +"buffering and text I/O." +msgstr "" + +msgid ":pep:`3116` - New I/O" +msgstr "" + +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 " +"Löwis, Tony Lownds, and others." +msgstr "" + +msgid "PEP 3118: Revised Buffer Protocol" +msgstr "" + +msgid "" +"The buffer protocol is a C-level API that lets Python types exchange " +"pointers into their internal representations. A memory-mapped file can be " +"viewed as a buffer of characters, for example, and this lets another module " +"such as :mod:`re` treat memory-mapped files as a string of characters to be " +"searched." +msgstr "" + +msgid "" +"The primary users of the buffer protocol are numeric-processing packages " +"such as NumPy, which expose the internal representation of arrays so that " +"callers can write data directly into an array instead of going through a " +"slower API. This PEP updates the buffer protocol in light of experience " +"from NumPy development, adding a number of new features such as indicating " +"the shape of an array or locking a memory region." +msgstr "" + +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 " +"external caller is done." +msgstr "" + +msgid "" +"The *flags* argument to :c:func:`PyObject_GetBuffer` specifies constraints " +"upon the memory returned. Some examples are:" +msgstr "" + +msgid ":const:`PyBUF_WRITABLE` indicates that the memory must be writable." +msgstr "" + +msgid "" +":const:`PyBUF_LOCK` requests a read-only or exclusive lock on the memory." +msgstr "" + +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." +msgstr "" + +msgid "" +"Two new argument codes for :c:func:`PyArg_ParseTuple`, ``s*`` and ``z*``, " +"return locked buffer objects for a parameter." +msgstr "" + +msgid ":pep:`3118` - Revising the buffer protocol" +msgstr "" + +msgid "" +"PEP written by Travis Oliphant and Carl Banks; implemented by Travis " +"Oliphant." +msgstr "" + +msgid "PEP 3119: Abstract Base Classes" +msgstr "" + +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 " +"basic ABCs that the Python developers think will be widely useful. Future " +"versions of Python will probably add more ABCs." +msgstr "" + +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 " +"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`?" +msgstr "" + +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 "" + +msgid "" +"You can derive your own classes from a particular ABC to indicate they " +"support that ABC's interface::" +msgstr "" + +msgid "" +"Alternatively, you could write the class without deriving from the desired " +"ABC and instead register the class by calling the ABC's :meth:`register` " +"method::" +msgstr "" + +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 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::" +msgstr "" + +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." +msgstr "" + +msgid "" +"To check whether an object supports a particular interface, you can now " +"write::" +msgstr "" + +msgid "" +"Don't feel that you must now begin writing lots of checks as in the above " +"example. Python has a strong tradition of duck-typing, where explicit type-" +"checking is never done and code simply calls methods on an object, trusting " +"that those methods will be there and raising an exception if they aren't. " +"Be judicious in checking for ABCs and only do it where it's absolutely " +"necessary." +msgstr "" + +msgid "" +"You can write your own ABCs by using ``abc.ABCMeta`` as the metaclass in a " +"class definition::" +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +msgid "" +"Abstract data attributes can be declared using the ``@abstractproperty`` " +"decorator::" +msgstr "" + +msgid "Subclasses must then define a :meth:`readonly` property." +msgstr "" + +msgid ":pep:`3119` - Introducing Abstract Base Classes" +msgstr "" + +msgid "" +"PEP written by Guido van Rossum and Talin. Implemented by Guido van Rossum. " +"Backported to 2.6 by Benjamin Aranguren, with Alex Martelli." +msgstr "" + +msgid "PEP 3127: Integer Literal Support and Syntax" +msgstr "" + +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 " +"binary (base-2) integer literals, signalled by a \"0b\" or \"0B\" prefix." +msgstr "" + +msgid "" +"Python 2.6 doesn't drop support for a leading 0 signalling an octal number, " +"but it does add support for \"0o\" and \"0b\"::" +msgstr "" + +msgid "" +"The :func:`oct` builtin still returns numbers prefixed with a leading zero, " +"and a new :func:`bin` builtin returns the binary representation for a " +"number::" +msgstr "" + +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)::" +msgstr "" + +msgid ":pep:`3127` - Integer Literal Support and Syntax" +msgstr "" + +msgid "PEP written by Patrick Maupin; backported to 2.6 by Eric Smith." +msgstr "" + +msgid "PEP 3129: Class Decorators" +msgstr "" + +msgid "" +"Decorators have been extended from functions to classes. It's now legal to " +"write::" +msgstr "" + +msgid "This is equivalent to::" +msgstr "" + +msgid ":pep:`3129` - Class Decorators" +msgstr "" + +msgid "PEP written by Collin Winter." +msgstr "" + +msgid "PEP 3141: A Type Hierarchy for Numbers" +msgstr "" + +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." +msgstr "" + +msgid "" +"The most general ABC is :class:`Number`. It defines no operations at all, " +"and only exists to allow checking if an object is a number by doing " +"``isinstance(obj, Number)``." +msgstr "" + +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`." +msgstr "" + +msgid "" +":class:`Real` further derives from :class:`Complex`, and adds operations " +"that only work on real numbers: :func:`floor`, :func:`trunc`, rounding, " +"taking the remainder mod N, floor division, and comparisons." +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`.)" +msgstr "" + +msgid "" +":class:`Integral` numbers derive from :class:`Rational`, and can be shifted " +"left and right with ``<<`` and ``>>``, combined using bitwise operations " +"such as ``&`` and ``|``, and can be used as array indexes and slice " +"boundaries." +msgstr "" + +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 the function's argument and zero." +msgstr "" + +msgid ":pep:`3141` - A Type Hierarchy for Numbers" +msgstr "" + +msgid "PEP written by Jeffrey Yasskin." +msgstr "" + +msgid "" +"`Scheme's numerical tower `__, from the Guile manual." +msgstr "" + +msgid "" +"`Scheme's number datatypes `__ from the R5RS Scheme specification." +msgstr "" + +msgid "The :mod:`fractions` Module" +msgstr "" + +msgid "" +"To fill out the hierarchy of numeric types, the :mod:`fractions` module " +"provides a rational-number class. Rational numbers store their values as a " +"numerator and denominator forming a fraction, and can exactly represent " +"numbers such as ``2/3`` that floating-point numbers can only approximate." +msgstr "" + +msgid "" +"The :class:`Fraction` constructor takes two :class:`Integral` values that " +"will be the numerator and denominator of the resulting fraction. ::" +msgstr "" + +msgid "" +"For converting floating-point numbers to rationals, the float type now has " +"an :meth:`as_integer_ratio()` method that returns the numerator and " +"denominator for a fraction that evaluates to the same floating-point value::" +msgstr "" + +msgid "" +"Note that values that can only be approximated by floating-point numbers, " +"such as 1./3, are not simplified to the number being approximated; the " +"fraction attempts to match the floating-point value **exactly**." +msgstr "" + +msgid "" +"The :mod:`fractions` module is based upon an implementation by Sjoerd " +"Mullender that was in Python's :file:`Demo/classes/` directory for a long " +"time. This implementation was significantly updated by Jeffrey Yasskin." +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "Some smaller changes made to the core Python language are:" +msgstr "" + +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. " +"(Suggestion and initial patch by Andy Chu, subsequently revised by Phillip " +"J. Eby and Nick Coghlan; :issue:`1739468`.)" +msgstr "" + +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 "" + +msgid "" +"When calling a function using the ``**`` syntax to provide keyword " +"arguments, you are no longer required to use a Python dictionary; any " +"mapping will now work::" +msgstr "" + +msgid "(Contributed by Alexander Belopolsky; :issue:`1686487`.)" +msgstr "" + +msgid "" +"It's also become legal to provide keyword arguments after a ``*args`` " +"argument to a function call. ::" +msgstr "" + +msgid "" +"Previously this would have been a syntax error. (Contributed by Amaury " +"Forgeot d'Arc; :issue:`3473`.)" +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`.)" +msgstr "" + +msgid "" +"Tuples now have :meth:`index` and :meth:`count` methods matching the list " +"type's :meth:`index` and :meth:`count` methods::" +msgstr "" + +msgid "(Contributed by Raymond Hettinger)" +msgstr "" + +msgid "" +"The built-in types now have improved support for extended slicing syntax, " +"accepting various combinations of ``(start, stop, step)``. Previously, the " +"support was partial and certain corner cases wouldn't work. (Implemented by " +"Thomas Wouters.)" +msgstr "" + +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 them like this::" +msgstr "" + +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`." +msgstr "" + +msgid "(Contributed by Raymond Hettinger.)" +msgstr "" + +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`.)" +msgstr "" + +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`)" +msgstr "" + +msgid "" +"Conversion functions were added to convert floating-point numbers into " +"hexadecimal strings (:issue:`3008`). These functions convert floats to and " +"from a string representation without introducing rounding errors from the " +"conversion between decimal and binary. Floats have a :meth:`hex` method " +"that returns a string representation, and the ``float.fromhex()`` method " +"converts a string back into a number::" +msgstr "" + +msgid "" +"A numerical nicety: when creating a complex number from two floats on " +"systems that support signed zeros (-0 and +0), the :func:`complex` " +"constructor will now preserve the sign of the zero. (Fixed by Mark T. " +"Dickinson; :issue:`1507`.)" +msgstr "" + +msgid "" +"Classes that inherit a :meth:`__hash__` method from a parent class can set " +"``__hash__ = None`` to indicate that the class isn't hashable. This will " +"make ``hash(obj)`` raise a :exc:`TypeError` and the class will not be " +"indicated as implementing the :class:`Hashable` ABC." +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`.)" +msgstr "" + +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`. " +"(Contributed by Chad Austin; :issue:`1537`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`compile` built-in function now accepts keyword arguments as well " +"as positional parameters. (Contributed by Thomas Wouters; :issue:`1444529`.)" +msgstr "" + +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`)" +msgstr "" + +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`.)" +msgstr "" + +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`)" +msgstr "" + +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." +msgstr "" + +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.)" +msgstr "" + +msgid "Optimizations" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Type objects now have a cache of methods that can reduce the work required " +"to find the correct method implementation for a particular class; once " +"cached, the interpreter doesn't need to traverse base classes to figure out " +"the right method to call. The cache is cleared if a base class or the class " +"itself is modified, so the cache should remain correct even in the face of " +"Python's dynamic nature. (Original optimization implemented by Armin Rigo, " +"updated for Python 2.6 by Kevin Jacobs; :issue:`1700288`.)" +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 " +"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 " +"interpreter to determine that. See :issue:`1878` for some discussion.)" +msgstr "" + +msgid "" +"Function calls that use keyword arguments are significantly faster by doing " +"a quick pointer comparison, usually saving the time of a full string " +"comparison. (Contributed by Raymond Hettinger, after an initial " +"implementation by Antoine Pitrou; :issue:`1819`.)" +msgstr "" + +msgid "" +"All of the functions in the :mod:`struct` module have been rewritten in C, " +"thanks to work at the Need For Speed sprint. (Contributed by Raymond " +"Hettinger.)" +msgstr "" + +msgid "" +"Some of the standard built-in types now set a bit in their type objects. " +"This speeds up checking whether an object is a subclass of one of these " +"types. (Contributed by Neal Norwitz.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The ``with`` statement now stores the :meth:`__exit__` method on the stack, " +"producing a small speedup. (Implemented by Jeffrey Yasskin.)" +msgstr "" + +msgid "" +"To reduce memory usage, the garbage collector will now clear internal free " +"lists when garbage-collecting the highest generation of objects. This may " +"return memory to the operating system sooner." +msgstr "" + +msgid "Interpreter Changes" +msgstr "" + +msgid "" +"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." +msgstr "" + +msgid "" +"Python can now be prevented from writing :file:`.pyc` or :file:`.pyo` files " +"by supplying the :option:`-B` switch to the Python interpreter, or by " +"setting the :envvar:`PYTHONDONTWRITEBYTECODE` environment variable before " +"running the interpreter. This setting is available to Python programs as " +"the ``sys.dont_write_bytecode`` variable, and Python code can change the " +"value to modify the interpreter's behaviour. (Contributed by Neal Norwitz " +"and Georg Brandl.)" +msgstr "" + +msgid "" +"The encoding used for standard input, output, and standard error can be " +"specified by setting the :envvar:`PYTHONIOENCODING` environment variable " +"before running the interpreter. The value should be a string in the form " +"```` or ``:``. The *encoding* part " +"specifies the encoding's name, e.g. ``utf-8`` or ``latin-1``; the optional " +"*errorhandler* part specifies what to do with characters that can't be " +"handled by the encoding, and should be one of \"error\", \"ignore\", or " +"\"replace\". (Contributed by Martin von Löwis.)" +msgstr "" + +msgid "New and Improved Modules" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :mod:`asyncore` and :mod:`asynchat` modules are being actively " +"maintained again, and a number of patches and bugfixes were applied. " +"(Maintained by Josiah Carlson; see :issue:`1736190` for one patch.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :mod:`bsddb.dbshelve` module now uses the highest pickling protocol " +"available, instead of restricting itself to protocol 1. (Contributed by W. " +"Barnes.)" +msgstr "" + +msgid "" +"The :mod:`cgi` module will now read variables from the query string of an " +"HTTP POST request. This makes it possible to use form actions with URLs " +"that include query strings such as \"/cgi-bin/add.py?category=1\". " +"(Contributed by Alexandre Fiori and Nubis; :issue:`1817`.)" +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The :mod:`cmath` module underwent extensive revision, contributed by Mark " +"Dickinson and Christian Heimes. Five new functions were added:" +msgstr "" + +msgid "" +":func:`polar` converts a complex number to polar form, returning the modulus " +"and argument of the complex number." +msgstr "" + +msgid "" +":func:`rect` does the opposite, turning a modulus, argument pair back into " +"the corresponding complex number." +msgstr "" + +msgid "" +":func:`phase` returns the argument (also called the angle) of a complex " +"number." +msgstr "" + +msgid "" +":func:`isnan` returns True if either the real or imaginary part of its " +"argument is a NaN." +msgstr "" + +msgid "" +":func:`isinf` returns True if either the real or imaginary part of its " +"argument is infinite." +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." +msgstr "" + +msgid "" +"The tests for the module have been greatly expanded; nearly 2000 new test " +"cases exercise the algebraic functions." +msgstr "" + +msgid "" +"On IEEE 754 platforms, the :mod:`cmath` module now handles IEEE 754 special " +"values and floating-point exceptions in a manner consistent with Annex 'G' " +"of the C99 standard." +msgstr "" + +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::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Another change to the :mod:`collections` module is that the :class:`deque` " +"type now supports an optional *maxlen* parameter; if supplied, the deque's " +"size will be restricted to no more than *maxlen* items. Adding more items " +"to a full deque causes old items to be discarded." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new window method in the :mod:`curses` module, :meth:`chgat`, changes the " +"display attributes for a certain number of characters on a single line. " +"(Contributed by Fabian Kreutz.)" +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." +msgstr "" + +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`.)" +msgstr "" + +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`::" +msgstr "" + +msgid "" +"The :meth:`as_tuple` method of :class:`Decimal` objects now returns a named " +"tuple with :attr:`sign`, :attr:`digits`, and :attr:`exponent` fields." +msgstr "" + +msgid "" +"(Implemented by Facundo Batista and Mark Dickinson. Named tuple support " +"added by Raymond Hettinger.)" +msgstr "" + +msgid "" +"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 "" + +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` 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 "" + +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`.)" +msgstr "" + +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 " +"warning is printed before the prompt is displayed. (Contributed by Gregory " +"P. Smith.)" +msgstr "" + +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`)" +msgstr "" + +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::" +msgstr "" + +msgid "" +"Another new function, ``heappushpop(heap, item)``, pushes *item* onto " +"*heap*, then pops off and returns the smallest item. This is more efficient " +"than making a call to :func:`heappush` and then :func:`heappop`." +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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 " +"tuples, the elements of the return value can also be accessed as " +"attributes. (Contributed by Raymond Hettinger.)" +msgstr "" + +msgid "" +"Some new functions in the module " +"include :func:`isgenerator`, :func:`isgeneratorfunction`, " +"and :func:`isabstract`." +msgstr "" + +msgid "The :mod:`itertools` module gained several new functions." +msgstr "" + +msgid "" +"``izip_longest(iter1, iter2, ...[, fillvalue])`` makes tuples from each of " +"the elements; if some of the iterables are shorter than others, the missing " +"values are set to *fillvalue*. For example::" +msgstr "" + +msgid "" +"``product(iter1, iter2, ..., [repeat=N])`` returns the Cartesian product of " +"the supplied iterables, a set of tuples containing every possible " +"combination of the elements returned from each iterable. ::" +msgstr "" + +msgid "" +"The optional *repeat* keyword argument is used for taking the product of an " +"iterable or a set of iterables with themselves, repeated *N* times. With a " +"single iterable argument, *N*-tuples are returned::" +msgstr "" + +msgid "With two iterables, *2N*-tuples are returned. ::" +msgstr "" + +msgid "" +"``combinations(iterable, r)`` returns sub-sequences of length *r* from the " +"elements of *iterable*. ::" +msgstr "" + +msgid "" +"``permutations(iter[, r])`` returns all the permutations of length *r* of " +"the iterable's elements. If *r* is not specified, it will default to the " +"number of elements produced by the iterable. ::" +msgstr "" + +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. ::" +msgstr "" + +msgid "(All contributed by Raymond Hettinger.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +":class:`TimedRotatingFileHandler` also has a *utc* constructor parameter. " +"If the argument is true, UTC time will be used in determining when midnight " +"occurs and in generating filenames; otherwise local time will be used." +msgstr "" + +msgid "Several new functions were added to the :mod:`math` module:" +msgstr "" + +msgid "" +":func:`~math.isinf` and :func:`~math.isnan` determine whether a given float " +"is a (positive or negative) infinity or a NaN (Not a Number), respectively." +msgstr "" + +msgid "" +":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.)" +msgstr "" + +msgid "" +":func:`~math.factorial` computes the factorial of a number. (Contributed by " +"Raymond Hettinger; :issue:`2138`.)" +msgstr "" + +msgid "" +":func:`~math.fsum` adds up the stream of numbers from an iterable, and is " +"careful to avoid loss of precision through using partial sums. (Contributed " +"by Jean Brouwers, Raymond Hettinger, and Mark Dickinson; :issue:`2819`.)" +msgstr "" + +msgid "" +":func:`~math.acosh`, :func:`~math.asinh` and :func:`~math.atanh` compute the " +"inverse hyperbolic functions." +msgstr "" + +msgid ":func:`~math.log1p` returns the natural logarithm of *1+x* (base *e*)." +msgstr "" + +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>`__." +msgstr "" + +msgid "" +"The :mod:`math` module has been improved to give more consistent behaviour " +"across platforms, especially with respect to handling of floating-point " +"exceptions and IEEE 754 special values." +msgstr "" + +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 " +"'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`.)" +msgstr "" + +msgid "(Contributed by Christian Heimes and Mark Dickinson.)" +msgstr "" + +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 " +"which to stop searching. (Contributed by John Lenton.)" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Georg Brandl, after a suggestion by Gregory Petrosyan.)" +msgstr "" + +msgid "" +"The :func:`attrgetter` function now accepts dotted names and performs the " +"corresponding attribute lookups::" +msgstr "" + +msgid "(Contributed by Georg Brandl, after a suggestion by Barry Warsaw.)" +msgstr "" + +msgid "" +"The :mod:`os` module now wraps several new system calls. ``fchmod(fd, " +"mode)`` and ``fchown(fd, uid, gid)`` change the mode and ownership of an " +"opened file, and ``lchmod(path, mode)`` changes the mode of a symlink. " +"(Contributed by Georg Brandl and Christian Heimes.)" +msgstr "" + +msgid "" +":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.)" +msgstr "" + +msgid "" +"``os.closerange(low, high)`` efficiently closes all file descriptors from " +"*low* to *high*, ignoring any errors and not including *high* itself. This " +"function is now used by the :mod:`subprocess` module to make starting " +"processes faster. (Contributed by Georg Brandl; :issue:`1663329`.)" +msgstr "" + +msgid "" +"The ``os.environ`` object's :meth:`clear` method will now unset the " +"environment variables using :func:`os.unsetenv` in addition to clearing the " +"object's keys. (Contributed by Martin Horcicka; :issue:`1181`.)" +msgstr "" + +msgid "" +"The :func:`os.walk` function now has a ``followlinks`` parameter. If set to " +"True, it will follow symlinks pointing to directories and visit the " +"directory's contents. For backward compatibility, the parameter's default " +"value is false. Note that the function can fall into an infinite recursion " +"if there's a symlink that points to a parent directory. (:issue:`1273829`)" +msgstr "" + +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`)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`pdb.post_mortem` function, used to begin debugging a traceback, " +"will now use the traceback returned by :func:`sys.exc_info` if no traceback " +"is supplied. (Contributed by Facundo Batista; :issue:`1106316`.)" +msgstr "" + +msgid "" +"The :mod:`pickletools` module now has an :func:`optimize` function that " +"takes a string containing a pickle and removes some unused opcodes, " +"returning a shorter pickle that contains the same data structure. " +"(Contributed by Raymond Hettinger.)" +msgstr "" + +msgid "" +"A :func:`get_data` function was added to the :mod:`pkgutil` module that " +"returns the contents of resource files included with an installed Python " +"package. For example::" +msgstr "" + +msgid "(Contributed by Paul Moore; :issue:`2439`.)" +msgstr "" + +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 character data. (Contributed by Achim Gaedke; :issue:`1137`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The :mod:`random` module's :class:`Random` objects can now be pickled on a " +"32-bit system and unpickled on a 64-bit system, and vice versa. " +"Unfortunately, this change also means that Python 2.6's :class:`Random` " +"objects can't be unpickled correctly on earlier versions of Python. " +"(Contributed by Shawn Ligocki; :issue:`1727780`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Long regular expression searches carried out by the :mod:`re` module will " +"check for signals being delivered, so time-consuming searches can now be " +"interrupted. (Contributed by Josh Hoyt and Ralf Schmitt; :issue:`846388`.)" +msgstr "" + +msgid "" +"The regular expression module is implemented by compiling bytecodes for a " +"tiny regex-specific virtual machine. Untrusted code could create malicious " +"strings of bytecode directly and cause crashes, so Python 2.6 includes a " +"verifier for the regex bytecode. (Contributed by Guido van Rossum from work " +"for Google App Engine; :issue:`3487`.)" +msgstr "" + +msgid "" +"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 "" + +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, represented as a list of named tuples with the fields ``(time, " +"priority, action, argument)``. (Contributed by Raymond " +"Hettinger; :issue:`1861`.)" +msgstr "" + +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, " +"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 "" + +msgid "" +"The :func:`shutil.copytree` function now has an optional *ignore* argument " +"that takes a callable object. This callable will receive each directory " +"path and a list of the directory's contents, and returns a list of names " +"that will be ignored, not copied." +msgstr "" + +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 " +"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 '~'::" +msgstr "" + +msgid "(Contributed by Tarek Ziadé; :issue:`2663`.)" +msgstr "" + +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, " +"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 " +"descriptor." +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by Adam Olsen; :issue:`1583`.)" +msgstr "" + +msgid "" +"The :func:`siginterrupt` function is now available from Python code, and " +"allows changing whether signals can interrupt system calls or not. " +"(Contributed by Ralf Schmitt.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":meth:`SMTP.starttls` now complies with :rfc:`3207` and forgets any " +"knowledge obtained from the server not obtained from the TLS negotiation " +"itself. (Patch contributed by Bill Fenner; :issue:`829951`.)" +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +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 " +"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`.)" +msgstr "" + +msgid "" +"The :mod:`sqlite3` module, maintained by Gerhard Häring, has been updated " +"from version 2.3.2 in Python 2.5 to version 2.4.1." +msgstr "" + +msgid "" +"The :mod:`struct` module now supports the C99 :c:expr:`_Bool` type, using " +"the format character ``'?'``. (Contributed by David Remahl.)" +msgstr "" + +msgid "" +"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.)" +msgstr "" + +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`.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"It's now possible to determine the current profiler and tracer functions by " +"calling :func:`sys.getprofile` and :func:`sys.gettrace`. (Contributed by " +"Georg Brandl; :issue:`1648`.)" +msgstr "" + +msgid "" +"The :mod:`tarfile` module now supports POSIX.1-2001 (pax) tarfiles in " +"addition to the POSIX.1-1988 (ustar) and GNU tar formats that were already " +"supported. The default format is GNU tar; specify the ``format`` parameter " +"to open a file using a different format::" +msgstr "" + +msgid "" +"The new ``encoding`` and ``errors`` parameters specify an encoding and an " +"error handling scheme for character conversions. ``'strict'``, " +"``'ignore'``, and ``'replace'`` are the three standard ways Python can " +"handle errors,; ``'utf-8'`` is a special value that replaces bad characters " +"with their UTF-8 representation. (Character conversions occur because the " +"PAX format supports Unicode filenames, defaulting to UTF-8 encoding.)" +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 " +"added directories." +msgstr "" + +msgid "(All changes contributed by Lars Gustäbel)." +msgstr "" + +msgid "" +"An optional ``timeout`` parameter was added to the :class:`telnetlib.Telnet` " +"class constructor, specifying a timeout measured in seconds. (Added by " +"Facundo Batista.)" +msgstr "" + +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 " +"Miller; :issue:`1537850`.)" +msgstr "" + +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. " +"(Contributed by Dustin J. Mitchell.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :mod:`test.test_support` module gained a number of context managers " +"useful for writing tests. :func:`EnvironmentVarGuard` is a context manager " +"that temporarily changes environment variables and automatically restores " +"them to their old values." +msgstr "" + +msgid "" +"Another context manager, :class:`TransientResource`, can surround calls to " +"resources that may or may not be available; it will catch and ignore a " +"specified list of exceptions. For example, a network test may ignore " +"certain failures when connecting to an external web site::" +msgstr "" + +msgid "" +"Finally, :func:`check_warnings` resets the :mod:`warning` module's warning " +"filters and returns an object that will record all warning messages " +"triggered (:issue:`3781`)::" +msgstr "" + +msgid "(Contributed by Brett Cannon.)" +msgstr "" + +msgid "" +"The :mod:`textwrap` module can now preserve existing whitespace at the " +"beginnings and ends of the newly created lines by specifying " +"``drop_whitespace=False`` as an argument::" +msgstr "" + +msgid "(Contributed by Dwayne Bailey; :issue:`1581073`.)" +msgstr "" + +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 "" + +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`.)" +msgstr "" + +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, " +"repeat, number)`` and ``timeit(stmt, setup, time, number)`` create an " +"instance and call the corresponding method. (Contributed by Erik " +"Demaine; :issue:`1533909`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :mod:`turtle` module for turtle graphics was greatly enhanced by Gregor " +"Lingl. New features in the module include:" +msgstr "" + +msgid "Better animation of turtle movement and rotation." +msgstr "" + +msgid "" +"Control over turtle movement using the new :meth:`delay`, :meth:`tracer`, " +"and :meth:`speed` methods." +msgstr "" + +msgid "" +"The ability to set new shapes for the turtle, and to define a new coordinate " +"system." +msgstr "" + +msgid "Turtles now have an :meth:`undo()` method that can roll back actions." +msgstr "" + +msgid "" +"Simple support for reacting to input events such as mouse and keyboard " +"activity, making it possible to write simple games." +msgstr "" + +msgid "" +"A :file:`turtle.cfg` file can be used to customize the starting appearance " +"of the turtle's screen." +msgstr "" + +msgid "" +"The module's docstrings can be replaced by new docstrings that have been " +"translated into another language." +msgstr "" + +msgid "(:issue:`1513695`)" +msgstr "(:issue:`1513695`)" + +msgid "" +"An optional ``timeout`` parameter was added to the :func:`urllib.urlopen` " +"function and the :class:`urllib.ftpwrapper` class constructor, as well as " +"the :func:`urllib2.urlopen` function. The parameter specifies a timeout " +"measured in seconds. For example::" +msgstr "" + +msgid "(Added by Facundo Batista.)" +msgstr "" + +msgid "" +"The Unicode database provided by the :mod:`unicodedata` module has been " +"updated to version 5.1.0. (Updated by Martin von Löwis; :issue:`3811`.)" +msgstr "" + +msgid "" +"The :mod:`warnings` module's :func:`formatwarning` and :func:`showwarning` " +"gained an optional *line* argument that can be used to supply the line of " +"source code. (Added as part of :issue:`1631171`, which re-implemented part " +"of the :mod:`warnings` module in C code.)" +msgstr "" + +msgid "" +"A new function, :func:`catch_warnings`, is a context manager intended for " +"testing purposes that lets you temporarily modify the warning filters and " +"then restore their original values (:issue:`3781`)." +msgstr "" + +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 " +"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`.)" +msgstr "" + +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. " +"(Contributed by Alan McIntyre as part of his project for Google's Summer of " +"Code 2007.)" +msgstr "" + +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 "" + +msgid "" +"The :mod:`zipfile` module's :class:`ZipFile` class now has :meth:`extract` " +"and :meth:`extractall` methods that will unpack a single file or all the " +"files in the archive to the current directory, or to a specified directory::" +msgstr "" + +msgid "(Contributed by Alan McIntyre; :issue:`467924`.)" +msgstr "" + +msgid "" +"The :meth:`open`, :meth:`read` and :meth:`extract` methods can now take " +"either a filename or a :class:`ZipInfo` object. This is useful when an " +"archive accidentally contains a duplicated filename. (Contributed by Graham " +"Horler; :issue:`1775025`.)" +msgstr "" + +msgid "" +"Finally, :mod:`zipfile` now supports using Unicode filenames for archived " +"files. (Contributed by Alexey Borzenkov; :issue:`1734346`.)" +msgstr "" + +msgid "The :mod:`ast` module" +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +msgid "This outputs a deeply nested tree::" +msgstr "" + +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 " +"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 "" + +msgid "" +"The module also includes :class:`NodeVisitor` and :class:`NodeTransformer` " +"classes for traversing and modifying an AST, and functions for common " +"transformations such as changing line numbers." +msgstr "" + +msgid "The :mod:`future_builtins` module" +msgstr "" + +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." +msgstr "" + +msgid "The functions in this module currently include:" +msgstr "" + +msgid "" +"``ascii(obj)``: equivalent to :func:`repr`. In Python 3.0, :func:`repr` " +"will return a Unicode string, while :func:`ascii` will return a pure ASCII " +"bytestring." +msgstr "" + +msgid "" +"``filter(predicate, iterable)``, ``map(func, iterable1, ...)``: the 3.0 " +"versions return iterators, unlike the 2.x builtins which return lists." +msgstr "" + +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." +msgstr "" + +msgid "The :mod:`json` module: JavaScript Object Notation" +msgstr "" + +msgid "" +"The new :mod:`json` module supports the encoding and decoding of Python " +"types in JSON (Javascript Object Notation). JSON is a lightweight " +"interchange format often used in web applications. For more information " +"about JSON, see http://www.json.org." +msgstr "" + +msgid "" +":mod:`json` comes with support for decoding and encoding most built-in " +"Python types. The following example encodes and decodes a dictionary::" +msgstr "" + +msgid "" +"It's also possible to write your own decoders and encoders to support more " +"types. Pretty-printing of the JSON strings is also supported." +msgstr "" + +msgid ":mod:`json` (originally called simplejson) was written by Bob Ippolito." +msgstr "" + +msgid "The :mod:`plistlib` module: A Property-List Parser" +msgstr "" + +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." +msgstr "" + +msgid "" +"Despite being primarily used on Mac OS X, the format has nothing Mac-" +"specific about it and the Python implementation works on any platform that " +"Python supports, so the :mod:`plistlib` module has been promoted to the " +"standard library." +msgstr "" + +msgid "Using the module is simple::" +msgstr "" + +msgid "ctypes Enhancements" +msgstr "" + +msgid "" +"Thomas Heller continued to maintain and enhance the :mod:`ctypes` module." +msgstr "" + +msgid "" +":mod:`ctypes` now supports a :class:`c_bool` datatype that represents the " +"C99 ``bool`` type. (Contributed by David Remahl; :issue:`1649190`.)" +msgstr "" + +msgid "" +"The :mod:`ctypes` string, buffer and array types have improved support for " +"extended slicing syntax, where various combinations of ``(start, stop, " +"step)`` are supplied. (Implemented by Thomas Wouters.)" +msgstr "" + +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." +msgstr "" + +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 " +"Thomas Heller; :issue:`1798`.)" +msgstr "" + +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 " +"error value." +msgstr "" + +msgid "" +"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 "" + +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 " +"added to the returned pointer." +msgstr "" + +msgid "Improved SSL Support" +msgstr "" + +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 " +"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 "" + +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." +msgstr "" + +msgid "The documentation for the :mod:`ssl` module." +msgstr "" + +msgid "Deprecations and Removals" +msgstr "" + +msgid "" +"String exceptions have been removed. Attempting to use them raises " +"a :exc:`TypeError`." +msgstr "" + +msgid "" +"Changes to the :class:`Exception` interface as dictated by :pep:`352` " +"continue to be made. For 2.6, the :attr:`message` attribute is being " +"deprecated in favor of the :attr:`args` attribute." +msgstr "" + +msgid "" +"(3.0-warning mode) Python 3.0 will feature a reorganized standard library " +"that will drop many outdated modules and rename others. Python 2.6 running " +"in 3.0-warning mode will warn about these modules when they are imported." +msgstr "" + +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`." +msgstr "" + +msgid "The :mod:`gopherlib` module has been removed." +msgstr "" + +msgid "" +"The :mod:`MimeWriter` module and :mod:`mimify` module have been deprecated; " +"use the :mod:`email` package instead." +msgstr "" + +msgid "" +"The :mod:`md5` module has been deprecated; use the :mod:`hashlib` module " +"instead." +msgstr "" + +msgid "" +"The :mod:`posixfile` module has been deprecated; :func:`fcntl.lockf` " +"provides better locking." +msgstr "" + +msgid "" +"The :mod:`popen2` module has been deprecated; use the :mod:`subprocess` " +"module." +msgstr "" + +msgid "The :mod:`rgbimg` module has been removed." +msgstr "" + +msgid "" +"The :mod:`sets` module has been deprecated; it's better to use the built-" +"in :class:`set` and :class:`frozenset` types." +msgstr "" + +msgid "" +"The :mod:`sha` module has been deprecated; use the :mod:`hashlib` module " +"instead." +msgstr "" + +msgid "Build and C API Changes" +msgstr "" + +msgid "Changes to Python's build process and to the C API include:" +msgstr "" + +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." +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The new buffer interface, previously described in `the PEP 3118 section " +"<#pep-3118-revised-buffer-protocol>`__, adds :c:func:`PyObject_GetBuffer` " +"and :c:func:`PyBuffer_Release`, as well as a few other functions." +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.)" +msgstr "" + +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.)" +msgstr "" + +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`.)" +msgstr "" + +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 " +"method. This is a backport of a Python 3.0 change. (Contributed by Mark " +"Dickinson; :issue:`1675423`.)" +msgstr "" + +msgid "" +"Python's C API now includes two functions for case-insensitive string " +"comparisons, ``PyOS_stricmp(char*, char*)`` and ``PyOS_strnicmp(char*, " +"char*, Py_ssize_t)``. (Contributed by Christian Heimes; :issue:`1635`.)" +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()`. (Contributed by Christian Heimes.)" +msgstr "" + +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`)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Several basic data types, such as integers and strings, maintain internal " +"free lists of objects that can be re-used. The data structures for these " +"free lists now follow a naming convention: the variable is always named " +"``free_list``, the counter is always named ``numfree``, and a macro " +"``Py_MAXFREELIST`` is always defined." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"Another new target, \"make profile-opt\", compiles a Python binary using " +"GCC's profile-guided optimization. It compiles Python with profiling " +"enabled, runs the test suite to obtain a set of profiling results, and then " +"compiles using these results for optimization. (Contributed by Gregory P. " +"Smith.)" +msgstr "" + +msgid "Port-Specific Changes: Windows" +msgstr "" + +msgid "" +"The support for Windows 95, 98, ME and NT4 has been dropped. Python 2.6 " +"requires at least Windows 2000 SP4." +msgstr "" + +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 " +"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 "" + +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.)" +msgstr "" + +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 " +"path. (Contributed by Josiah Carlson; :issue:`957650`.)" +msgstr "" + +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." +msgstr "" + +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.)" +msgstr "" + +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`)" +msgstr "" + +msgid "" +"The :mod:`msilib` module's :class:`Record` object gained :meth:`GetInteger` " +"and :meth:`GetString` methods that return field values as an integer or a " +"string. (Contributed by Floris Bruynooghe; :issue:`2125`.)" +msgstr "" + +msgid "Port-Specific Changes: Mac OS X" +msgstr "" + +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." +msgstr "" + +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`)" +msgstr "" + +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 "" + +msgid "Port-Specific Changes: IRIX" +msgstr "" + +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 "" + +msgid "Porting to Python 2.6" +msgstr "" + +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code:" +msgstr "" + +msgid "" +"Classes that aren't supposed to be hashable should set ``__hash__ = None`` " +"in their definitions to indicate the fact." +msgstr "" + +msgid "" +"The :meth:`__init__` method of :class:`collections.deque` now clears any " +"existing contents of the deque before adding elements from the iterable. " +"This change makes the behavior match ``list.__init__()``." +msgstr "" + +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 " +"that end up calling the corresponding method on :class:`object` (perhaps " +"through using :func:`super`). See :issue:`1683368` for discussion." +msgstr "" + +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." +msgstr "" + +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 " +"explicitly checks for this case and raises an :exc:`ImportError`." +msgstr "" + +msgid "" +"C API: the :c:func:`PyImport_Import` and :c:func:`PyImport_ImportModule` " +"functions now default to absolute imports, not relative imports. This will " +"affect C extensions that import other modules." +msgstr "" + +msgid "" +"C API: extension data types that shouldn't be hashable should define their " +"``tp_hash`` slot to :c:func:`PyObject_HashNotImplemented`." +msgstr "" + +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`.)" +msgstr "" + +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`)" +msgstr "" + +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." +msgstr "" + +msgid "" +"(3.0-warning mode) inequality comparisons between two dictionaries or two " +"objects that don't implement comparison methods are reported as warnings. " +"``dict1 == dict2`` still works, but ``dict1 < dict2`` is being phased out." +msgstr "" + +msgid "" +"Comparisons between cells, which are an implementation detail of Python's " +"scoping rules, also cause warnings because such comparisons are forbidden " +"entirely in 3.0." +msgstr "" + +msgid "Acknowledgements" +msgstr "" + +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 " +"Johnson, Chris Lambacher, Martin Michlmayr, Antoine Pitrou, Brian Warner." +msgstr "" diff --git a/whatsnew/3.0.po b/whatsnew/3.0.po index 73301c657f..f297710108 100644 --- a/whatsnew/3.0.po +++ b/whatsnew/3.0.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Stefan Ocetkiewicz , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-29 12:56+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New In Python 3.0" msgstr "" @@ -36,11 +35,12 @@ msgstr "" msgid "" "This article explains the new features in Python 3.0, compared to 2.6. " "Python 3.0, also known as \"Python 3000\" or \"Py3K\", is the first ever " -"*intentionally backwards incompatible* Python release. There are more " -"changes than in a typical release, and more that are important for all " -"Python users. Nevertheless, after digesting the changes, you'll find that " -"Python really hasn't changed all that much -- by and large, we're mostly " -"fixing well-known annoyances and warts, and removing a lot of old cruft." +"*intentionally backwards incompatible* Python release. Python 3.0 was " +"released on December 3, 2008. There are more changes than in a typical " +"release, and more that are important for all Python users. Nevertheless, " +"after digesting the changes, you'll find that Python really hasn't changed " +"all that much -- by and large, we're mostly fixing well-known annoyances and " +"warts, and removing a lot of old cruft." msgstr "" msgid "" @@ -84,13 +84,13 @@ msgid "which produces:" msgstr "" msgid "Note:" -msgstr "" +msgstr "Uwaga:" 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 "" msgid "" @@ -111,34 +111,34 @@ msgid "Some well-known APIs no longer return lists:" msgstr "" 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 "" 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 "" 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 " +"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 "" 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)))``." +"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 "" msgid "" @@ -168,15 +168,15 @@ msgstr "" 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 "" 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. " -"(If you really need the :func:`cmp` functionality, you could use the " +"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 "" @@ -199,9 +199,9 @@ 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 " -"same build options)." +"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 "" msgid "" @@ -224,14 +224,14 @@ 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 "" msgid "" @@ -239,9 +239,9 @@ 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 "" msgid "" @@ -251,10 +251,10 @@ msgstr "" 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 "" msgid "" @@ -274,11 +274,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -299,10 +299,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -310,14 +310,14 @@ msgid "" "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 " -"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 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`." msgstr "" msgid "" @@ -388,8 +388,8 @@ msgstr "" 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 "" msgid "" @@ -433,8 +433,8 @@ msgid "Changed Syntax" msgstr "" 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 "" msgid "" @@ -448,8 +448,8 @@ msgid "" msgstr "" 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 "" msgid ":pep:`3115`: New Metaclass Syntax. Instead of::" @@ -544,17 +544,18 @@ msgid "" msgstr "" msgid ":ref:`pep-0370`." -msgstr "" +msgstr ":ref:`pep-0370`." msgid ":ref:`pep-0371`." -msgstr "" +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 "" msgid "" @@ -578,11 +579,11 @@ 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)." +"*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 "" msgid "" @@ -591,11 +592,11 @@ msgid "" msgstr "" 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 "" msgid "" @@ -604,7 +605,7 @@ msgid "" msgstr "" msgid ":ref:`pep-3129`." -msgstr "" +msgstr ":ref:`pep-3129`." msgid "" ":ref:`pep-3141`. The :mod:`numbers` module is another new use of ABCs, " @@ -623,19 +624,19 @@ msgstr "" 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." +"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 "" 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." +"However, the package is alive and well, externally maintained at https://" +"www.jcea.es/programacion/pybsddb.htm." msgstr "" msgid "" @@ -717,33 +718,33 @@ msgid "" msgstr "" 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 "" msgid ":mod:`html` (:mod:`HTMLParser`, :mod:`htmlentitydefs`)." msgstr "" 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 "" 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 "" msgid "" -":mod:`urllib` (:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`, :mod:" -"`robotparse`)." +":mod:`urllib` " +"(:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`, :mod:`robotparse`)." msgstr "" msgid "" -":mod:`xmlrpc` (:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`, :mod:" -"`SimpleXMLRPCServer`)." +":mod:`xmlrpc` " +"(:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`, :mod:`SimpleXMLRPCServer`)." msgstr "" msgid "" @@ -754,9 +755,9 @@ msgid "Killed :mod:`sets`. Use the built-in :func:`set` class." msgstr "" 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 "" msgid "" @@ -767,13 +768,14 @@ msgid "" msgstr "" 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 "" 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 "" msgid "Cleanup of the :mod:`random` module: removed the :func:`jumpahead` API." @@ -793,18 +795,18 @@ msgid "" msgstr "" msgid "" -":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\".)" +":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 "" 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 "" msgid ":pep:`3101`: A New Approach To String Formatting" @@ -826,20 +828,21 @@ msgid "" msgstr "" 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 "" 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 "" msgid ":exc:`StandardError` was removed." @@ -861,8 +864,8 @@ msgstr "" 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 "" msgid "" @@ -887,10 +890,10 @@ msgid "" msgstr "" 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 "" msgid "" @@ -906,8 +909,8 @@ msgid "Operators And Special Methods" msgstr "" msgid "" -"``!=`` now returns the opposite of ``==``, unless ``==`` returns :data:" -"`NotImplemented`." +"``!=`` now returns the opposite of ``==``, unless ``==`` " +"returns :data:`NotImplemented`." msgstr "" msgid "" @@ -924,27 +927,27 @@ msgid "" msgstr "" 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 "" 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 "" msgid "Removed support for :attr:`__members__` and :attr:`__methods__`." msgstr "" 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." +"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 "" msgid ":meth:`__nonzero__` is now :meth:`__bool__`." @@ -970,8 +973,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1003,8 +1006,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -1051,14 +1054,14 @@ msgid "No more C API support for restricted execution." msgstr "" 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 "" 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 "" msgid "" @@ -1112,8 +1115,8 @@ msgstr "" 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 " diff --git a/whatsnew/3.1.po b/whatsnew/3.1.po index d3dd2c76d4..76255d2a0c 100644 --- a/whatsnew/3.1.po +++ b/whatsnew/3.1.po @@ -1,28 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New In Python 3.1" msgstr "" @@ -45,8 +44,8 @@ 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." +"the experiences from those implementations, a " +"new :class:`collections.OrderedDict` class has been introduced." msgstr "" msgid "" @@ -88,8 +87,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -146,10 +145,10 @@ msgstr "" 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 "" msgid "(Contributed by Georg Brandl; :issue:`5675`.)" @@ -272,13 +271,13 @@ msgid "(Contributed by Raymond Hettinger and Mark Dickinson.)" msgstr "" 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`::" +"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 "" msgid "(Contributed by Raymond Hettinger.)" @@ -304,10 +303,11 @@ msgid "(Contributed by Gregory Smith.)" msgstr "" 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 "" msgid "(Contributed by Vinay Sajip; :issue:`4384`)." @@ -323,8 +323,8 @@ msgid "(Contributed by Andi Vajda; :issue:`4195`.)" msgstr "" 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 "" msgid "(Contributed by Alexander Belopolsky; :issue:`4201`.)" @@ -359,19 +359,17 @@ msgid "" msgstr "" 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 "" msgid "(Contributed by Benjamin Peterson and Antoine Pitrou.)" msgstr "" 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 "" msgid "The :attr:`sys.version_info` tuple is now a named tuple::" @@ -456,8 +454,8 @@ msgid "" msgstr "" 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 "" msgid "" @@ -490,7 +488,7 @@ msgid "(Contributed by Jake McGuire and Antoine Pitrou; :issue:`5084`.)" msgstr "" msgid "IDLE" -msgstr "" +msgstr "IDLE" msgid "" "IDLE's format menu now provides an option to strip trailing whitespace from " @@ -545,8 +543,8 @@ msgstr "" 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 "" msgid "(Contributed by Mark Dickinson; :issue:`5914`.)" diff --git a/whatsnew/3.10.po b/whatsnew/3.10.po index 6a89caa55d..8e8ec24bcb 100644 --- a/whatsnew/3.10.po +++ b/whatsnew/3.10.po @@ -1,28 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New In Python 3.10" msgstr "Co nowego w Pythonie 3.10" @@ -47,9 +47,12 @@ msgstr "Pablo Galindo Salgado" msgid "" "This article explains the new features in Python 3.10, compared to 3.9. " -"Python 3.10 was released on October 4, 2021. For full details, see the :ref:" -"`changelog `." +"Python 3.10 was released on October 4, 2021. For full details, see " +"the :ref:`changelog `." msgstr "" +"W tym artykule wyjaśniono nowe funkcje w Pythonie 3.10 w porównaniu z wersją " +"3.9. Python 3.10 został wydany 4 października 2021 r. Aby uzyskać " +"szczegółowe informacje, zobacz :ref:`changelog `." msgid "Summary -- Release highlights" msgstr "Podsumowanie – najważniejsze nowości" @@ -90,11 +93,14 @@ msgstr "Nowe cechy typowania:" msgid ":pep:`604`, Allow writing union types as X | Y" msgstr ":pep:`604`, Zezwolone pisanie sumy typów jako X | Y" +msgid ":pep:`612`, Parameter Specification Variables" +msgstr ":pep:`612`, Zmienne specyfikacji parametrów" + msgid ":pep:`613`, Explicit Type Aliases" msgstr ":pep:`613`, Explicit Type Aliases" -msgid ":pep:`612`, Parameter Specification Variables" -msgstr ":pep:`612`, Zmienne specyfikacji parametrów" +msgid ":pep:`647`, User-Defined Type Guards" +msgstr "" msgid "Important deprecations, removals or restrictions:" msgstr "Ważne dezaprobaty, usunięcia lub ograniczenia:" @@ -141,18 +147,18 @@ msgid "" msgstr "Można też użyć przecinka na końcu grupy otoczonej nawiasami:" msgid "" -"This new syntax uses the non LL(1) capacities of the new parser. Check :pep:" -"`617` for more details." +"This new syntax uses the non LL(1) capacities of the new parser. " +"Check :pep:`617` for more details." msgstr "" "Ta nowa składnia używa zdolności nie-LL(1) nowego parsera. Więcej szczegółów " "znajdziesz w :pep:`617`." msgid "" -"(Contributed by Guido van Rossum, Pablo Galindo and Lysandros Nikolaou in :" -"issue:`12782` and :issue:`40334`.)" +"(Contributed by Guido van Rossum, Pablo Galindo and Lysandros Nikolaou " +"in :issue:`12782` and :issue:`40334`.)" msgstr "" -"(Napisane przez Guido van Rossuma, Pablo Galinda i Lysandrosa Nikolaou w :" -"issue:`12782` i :issue:`40334`.)" +"(Napisane przez Guido van Rossuma, Pablo Galinda i Lysandrosa Nikolaou " +"w :issue:`12782` i :issue:`40334`.)" msgid "Better error messages" msgstr "Lepsze komunikaty błędów" @@ -167,28 +173,39 @@ msgid "" "pointing to some incorrect location. For instance, consider the following " "code (notice the unclosed '{'):" msgstr "" +"Podczas analizowania kodu, który zawiera niezamknięte nawiasy lub nawiasy, " +"interpreter uwzględnia teraz lokalizację niezamkniętych nawiasów, zamiast " +"wyświetlać *SyntaxError: nieoczekiwany EOF podczas analizowania* lub " +"wskazywać nieprawidłową lokalizację. Rozważmy na przykład następujący kod " +"(zwróć uwagę na niezamknięte '{'):" msgid "" "Previous versions of the interpreter reported confusing places as the " "location of the syntax error:" msgstr "" +"Poprzednie wersje interpretera podawały mylące miejsca jako lokalizację " +"błędu składniowego:" msgid "but in Python 3.10 a more informative error is emitted:" -msgstr "" +msgstr "ale w Pythonie 3.10 emitowany jest bardziej informacyjny błąd:" msgid "" "In a similar way, errors involving unclosed string literals (single and " "triple quoted) now point to the start of the string instead of reporting EOF/" "EOL." msgstr "" +"W podobny sposób błędy związane z niezamkniętymi literałami łańcuchowymi " +"(pojedyncze i potrójne cudzysłowy) wskazują teraz początek łańcucha zamiast " +"raportowania EOF/EOL." msgid "" "These improvements are inspired by previous work in the PyPy interpreter." msgstr "" +"Te ulepszenia są inspirowane wcześniejszymi pracami nad interpreterem PyPy." msgid "" -"(Contributed by Pablo Galindo in :issue:`42864` and Batuhan Taskaya in :" -"issue:`40176`.)" +"(Contributed by Pablo Galindo in :issue:`42864` and Batuhan Taskaya " +"in :issue:`40176`.)" msgstr "" msgid "" @@ -199,10 +216,10 @@ msgid "" msgstr "" msgid "now Python 3.10 will display the exception as:" -msgstr "" +msgstr "teraz Python 3.10 wyświetli wyjątek jako:" msgid "This improvement was contributed by Pablo Galindo in :issue:`43914`." -msgstr "" +msgstr "Do poprawy tej przyczynił się Pablo Galindo w :issue:`43914`" msgid "" "A considerable amount of new specialized messages for :exc:`SyntaxError` " @@ -211,19 +228,19 @@ msgid "" msgstr "" msgid "Missing ``:`` before blocks:" -msgstr "" +msgstr "Brakuje ``:`` przed blokami:" msgid "(Contributed by Pablo Galindo in :issue:`42997`.)" -msgstr "" +msgstr "(Autor: Pablo Galindo w :issue:`42997`.)" msgid "Unparenthesised tuples in comprehensions targets:" msgstr "" msgid "(Contributed by Pablo Galindo in :issue:`43017`.)" -msgstr "" +msgstr "(Autor: Pablo Galindo w :issue:`43017`.)" msgid "Missing commas in collection literals and between expressions:" -msgstr "" +msgstr "Brakujące przecinki w literałach kolekcji i między wyrażeniami:" msgid "(Contributed by Pablo Galindo in :issue:`43822`.)" msgstr "" @@ -289,9 +306,9 @@ msgid "NameErrors" msgstr "" msgid "" -"When printing :exc:`NameError` raised by the interpreter, :c:func:" -"`PyErr_Display` will offer suggestions of similar variable names in the " -"function that the exception was raised from:" +"When printing :exc:`NameError` raised by the " +"interpreter, :c:func:`PyErr_Display` will offer suggestions of similar " +"variable names in the function that the exception was raised from:" msgstr "" msgid "" @@ -301,7 +318,7 @@ msgid "" msgstr "" msgid "PEP 626: Precise line numbers for debugging and other tools" -msgstr "" +msgstr "PEP 626: Precyzyjne numerowanie linii do debugowania i innych narzędzi" msgid "" "PEP 626 brings more precise and reliable line numbers for debugging, " @@ -309,6 +326,10 @@ msgid "" "are generated for all lines of code executed and only for lines of code that " "are executed." msgstr "" +"PEP 626 zapewnia bardziej precyzyjne i niezawodne numerowanie linii dla " +"narzędzi do debugowania, profilowania i pokrycia. Zdarzenia śledzenia z " +"poprawnym numerem wiersza są generowane dla wszystkich wykonanych wierszy " +"kodu i tylko dla wykonanych wierszy kodu." msgid "" "The ``f_lineno`` attribute of frame objects will always contain the expected " @@ -334,16 +355,19 @@ msgid "" msgstr "" msgid "Syntax and operations" -msgstr "" +msgstr "Składnia i operacje" msgid "The generic syntax of pattern matching is::" -msgstr "" +msgstr "Ogólna składnia dopasowywania wzorców jest następująca::" msgid "" "A match statement takes an expression and compares its value to successive " "patterns given as one or more case blocks. Specifically, pattern matching " "operates by:" msgstr "" +"Instrukcja dopasowania przyjmuje wyrażenie i porównuje jego wartość z " +"kolejnymi wzorcami podanymi jako jeden lub więcej bloków przypadków. W " +"szczególności dopasowanie wzorców działa poprzez:" msgid "using data with type and shape (the ``subject``)" msgstr "" @@ -396,7 +420,7 @@ msgid "" msgstr "" msgid "Simple pattern: match to a literal" -msgstr "" +msgstr "Prosty wzór: dopasowanie do literału" msgid "" "Let's look at this example as pattern matching in its simplest form: a " @@ -515,7 +539,7 @@ msgid "Other Key Features" msgstr "" msgid "Several other key features:" -msgstr "" +msgstr "Kilka innych kluczowych cech:" msgid "" "Like unpacking assignments, tuple and list patterns have exactly the same " @@ -533,8 +557,8 @@ msgid "" msgstr "" msgid "" -"Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the ``" -"\"bandwidth\"`` and ``\"latency\"`` values from a dict. Unlike sequence " +"Mapping patterns: ``{\"bandwidth\": b, \"latency\": l}`` captures the " +"``\"bandwidth\"`` and ``\"latency\"`` values from a dict. Unlike sequence " "patterns, extra keys are ignored. A wildcard ``**rest`` is also supported. " "(But ``**_`` would be redundant, so is not allowed.)" msgstr "" @@ -559,8 +583,8 @@ msgid "" msgstr "" msgid "" -"For the full specification see :pep:`634`. Motivation and rationale are in :" -"pep:`635`, and a longer tutorial is in :pep:`636`." +"For the full specification see :pep:`634`. Motivation and rationale are " +"in :pep:`635`, and a longer tutorial is in :pep:`636`." msgstr "" msgid "Optional ``EncodingWarning`` and ``encoding=\"locale\"`` option" @@ -591,8 +615,8 @@ msgid "New Features Related to Type Hints" msgstr "" msgid "" -"This section covers major changes affecting :pep:`484` type hints and the :" -"mod:`typing` module." +"This section covers major changes affecting :pep:`484` type hints and " +"the :mod:`typing` module." msgstr "" msgid "PEP 604: New Type Union Operator" @@ -613,8 +637,8 @@ msgid "Type hints can now be written in a more succinct manner::" msgstr "" msgid "" -"This new syntax is also accepted as the second argument to :func:" -"`isinstance` and :func:`issubclass`::" +"This new syntax is also accepted as the second argument " +"to :func:`isinstance` and :func:`issubclass`::" msgstr "" msgid "See :ref:`types-union` and :pep:`604` for more details." @@ -649,9 +673,8 @@ msgid "" msgstr "" msgid "" -"See :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing." -"Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing." -"ParamSpecKwargs`, and :pep:`612` for more details." +"See :class:`typing.Callable`, :class:`typing.ParamSpec`, :class:`typing.Concatenate`, :class:`typing.ParamSpecArgs`, :class:`typing.ParamSpecKwargs`, " +"and :pep:`612` for more details." msgstr "" msgid "" @@ -687,8 +710,8 @@ msgstr "" msgid "" ":data:`TypeGuard` has been added to the :mod:`typing` module to annotate " "type guard functions and improve information provided to static type " -"checkers during type narrowing. For more information, please see :data:" -"`TypeGuard`\\ 's documentation, and :pep:`647`." +"checkers during type narrowing. For more information, please " +"see :data:`TypeGuard`\\ 's documentation, and :pep:`647`." msgstr "" msgid "" @@ -706,10 +729,10 @@ msgid "" msgstr "" msgid "" -"The views returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:`dict." -"items` now all have a ``mapping`` attribute that gives a :class:`types." -"MappingProxyType` object wrapping the original dictionary. (Contributed by " -"Dennis Sweeney in :issue:`40890`.)" +"The views returned by :meth:`dict.keys`, :meth:`dict.values` " +"and :meth:`dict.items` now all have a ``mapping`` attribute that gives " +"a :class:`types.MappingProxyType` object wrapping the original dictionary. " +"(Contributed by Dennis Sweeney in :issue:`40890`.)" msgstr "" msgid "" @@ -721,14 +744,16 @@ msgid "" "Builtin and extension functions that take integer arguments no longer " "accept :class:`~decimal.Decimal`\\ s, :class:`~fractions.Fraction`\\ s and " "other objects that can be converted to integers only with a loss (e.g. that " -"have the :meth:`~object.__int__` method but do not have the :meth:`~object." -"__index__` method). (Contributed by Serhiy Storchaka in :issue:`37999`.)" +"have the :meth:`~object.__int__` method but do not have " +"the :meth:`~object.__index__` method). (Contributed by Serhiy Storchaka " +"in :issue:`37999`.)" msgstr "" msgid "" "If :func:`object.__ipow__` returns :const:`NotImplemented`, the operator " -"will correctly fall back to :func:`object.__pow__` and :func:`object." -"__rpow__` as expected. (Contributed by Alex Shkop in :issue:`38302`.)" +"will correctly fall back to :func:`object.__pow__` " +"and :func:`object.__rpow__` as expected. (Contributed by Alex Shkop " +"in :issue:`38302`.)" msgstr "" msgid "" @@ -752,8 +777,8 @@ msgid "" msgstr "" msgid "" -"Static methods (:func:`@staticmethod `) and class methods (:" -"func:`@classmethod `) now inherit the method attributes " +"Static methods (:func:`@staticmethod `) and class methods " +"(:func:`@classmethod `) now inherit the method attributes " "(``__module__``, ``__name__``, ``__qualname__``, ``__doc__``, " "``__annotations__``) and have a new ``__wrapped__`` attribute. Moreover, " "static methods are now callable as regular functions. (Contributed by Victor " @@ -763,8 +788,8 @@ msgstr "" msgid "" "Annotations for complex targets (everything beside ``simple name`` targets " "defined by :pep:`526`) no longer cause any runtime effects with ``from " -"__future__ import annotations``. (Contributed by Batuhan Taskaya in :issue:" -"`42737`.)" +"__future__ import annotations``. (Contributed by Batuhan Taskaya " +"in :issue:`42737`.)" msgstr "" msgid "" @@ -778,8 +803,8 @@ msgstr "" msgid "" "Annotations consist of ``yield``, ``yield from``, ``await`` or named " "expressions are now forbidden under ``from __future__ import annotations`` " -"due to their side effects. (Contributed by Batuhan Taskaya in :issue:" -"`42725`.)" +"due to their side effects. (Contributed by Batuhan Taskaya " +"in :issue:`42725`.)" msgstr "" msgid "" @@ -790,18 +815,18 @@ msgid "" msgstr "" msgid "" -"Hashes of NaN values of both :class:`float` type and :class:`decimal." -"Decimal` type now depend on object identity. Formerly, they always hashed to " -"``0`` even though NaN values are not equal to one another. This caused " -"potentially quadratic runtime behavior due to excessive hash collisions when " -"creating dictionaries and sets containing multiple NaNs. (Contributed by " -"Raymond Hettinger in :issue:`43475`.)" +"Hashes of NaN values of both :class:`float` type " +"and :class:`decimal.Decimal` type now depend on object identity. Formerly, " +"they always hashed to ``0`` even though NaN values are not equal to one " +"another. This caused potentially quadratic runtime behavior due to excessive " +"hash collisions when creating dictionaries and sets containing multiple " +"NaNs. (Contributed by Raymond Hettinger in :issue:`43475`.)" msgstr "" msgid "" "A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when " -"deleting the :const:`__debug__` constant. (Contributed by Dong-hee Na in :" -"issue:`45000`.)" +"deleting the :const:`__debug__` constant. (Contributed by Dong-hee Na " +"in :issue:`45000`.)" msgstr "" msgid "" @@ -817,15 +842,15 @@ msgid "None yet." msgstr "" msgid "Improved Modules" -msgstr "" +msgstr "Ulepszone moduły" msgid "asyncio" -msgstr "" +msgstr "asyncio" msgid "" -"Add missing :meth:`~asyncio.events.AbstractEventLoop." -"connect_accepted_socket` method. (Contributed by Alex Grönholm in :issue:" -"`41332`.)" +"Add " +"missing :meth:`~asyncio.events.AbstractEventLoop.connect_accepted_socket` " +"method. (Contributed by Alex Grönholm in :issue:`41332`.)" msgstr "" msgid "argparse" @@ -875,8 +900,9 @@ msgid "bisect" msgstr "" msgid "" -"Added the possibility of providing a *key* function to the APIs in the :mod:" -"`bisect` module. (Contributed by Raymond Hettinger in :issue:`4356`.)" +"Added the possibility of providing a *key* function to the APIs in " +"the :mod:`bisect` module. (Contributed by Raymond Hettinger " +"in :issue:`4356`.)" msgstr "" msgid "codecs" @@ -892,17 +918,17 @@ msgstr "" msgid "" "The ``__args__`` of the :ref:`parameterized generic ` " -"for :class:`collections.abc.Callable` are now consistent with :data:`typing." -"Callable`. :class:`collections.abc.Callable` generic now flattens type " -"parameters, similar to what :data:`typing.Callable` currently does. This " -"means that ``collections.abc.Callable[[int, str], str]`` will have " -"``__args__`` of ``(int, str, str)``; previously this was ``([int, str], " +"for :class:`collections.abc.Callable` are now consistent " +"with :data:`typing.Callable`. :class:`collections.abc.Callable` generic now " +"flattens type parameters, similar to what :data:`typing.Callable` currently " +"does. This means that ``collections.abc.Callable[[int, str], str]`` will " +"have ``__args__`` of ``(int, str, str)``; previously this was ``([int, str], " "str)``. To allow this change, :class:`types.GenericAlias` can now be " -"subclassed, and a subclass will be returned when subscripting the :class:" -"`collections.abc.Callable` type. Note that a :exc:`TypeError` may be raised " -"for invalid forms of parameterizing :class:`collections.abc.Callable` which " -"may have passed silently in Python 3.9. (Contributed by Ken Jin in :issue:" -"`42195`.)" +"subclassed, and a subclass will be returned when subscripting " +"the :class:`collections.abc.Callable` type. Note that a :exc:`TypeError` " +"may be raised for invalid forms of " +"parameterizing :class:`collections.abc.Callable` which may have passed " +"silently in Python 3.9. (Contributed by Ken Jin in :issue:`42195`.)" msgstr "" msgid "contextlib" @@ -929,11 +955,11 @@ msgstr "" msgid "" "The extended color functions added in ncurses 6.1 will be used transparently " -"by :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses." -"init_pair`, and :func:`curses.pair_content`. A new function, :func:`curses." -"has_extended_color_support`, indicates whether extended color support is " -"provided by the underlying ncurses library. (Contributed by Jeffrey " -"Kintscher and Hans Petter Jansson in :issue:`36982`.)" +"by :func:`curses.color_content`, :func:`curses.init_color`, :func:`curses.init_pair`, " +"and :func:`curses.pair_content`. A new " +"function, :func:`curses.has_extended_color_support`, indicates whether " +"extended color support is provided by the underlying ncurses library. " +"(Contributed by Jeffrey Kintscher and Hans Petter Jansson in :issue:`36982`.)" msgstr "" msgid "" @@ -946,7 +972,7 @@ msgid "dataclasses" msgstr "" msgid "__slots__" -msgstr "" +msgstr "__slots__" msgid "" "Added ``slots`` parameter in :func:`dataclasses.dataclass` decorator. " @@ -998,11 +1024,11 @@ msgid "" "3.12. Its functionality for specifying package builds has already been " "completely replaced by third-party packages ``setuptools`` and " "``packaging``, and most other commonly used APIs are available elsewhere in " -"the standard library (such as :mod:`platform`, :mod:`shutil`, :mod:" -"`subprocess` or :mod:`sysconfig`). There are no plans to migrate any other " -"functionality from ``distutils``, and applications that are using other " -"functions should plan to make private copies of the code. Refer to :pep:" -"`632` for discussion." +"the standard library (such " +"as :mod:`platform`, :mod:`shutil`, :mod:`subprocess` or :mod:`sysconfig`). " +"There are no plans to migrate any other functionality from ``distutils``, " +"and applications that are using other functions should plan to make private " +"copies of the code. Refer to :pep:`632` for discussion." msgstr "" msgid "" @@ -1015,8 +1041,8 @@ msgid "doctest" msgstr "" msgid "" -"When a module does not define ``__loader__``, fall back to ``__spec__." -"loader``. (Contributed by Brett Cannon in :issue:`42133`.)" +"When a module does not define ``__loader__``, fall back to " +"``__spec__.loader``. (Contributed by Brett Cannon in :issue:`42133`.)" msgstr "" msgid "encodings" @@ -1027,27 +1053,13 @@ msgid "" "(Contributed by Hai Shi in :issue:`39337`.)" msgstr "" -msgid "enum" -msgstr "" - -msgid "" -":class:`Enum` :func:`__repr__` now returns ``enum_name.member_name`` and :" -"func:`__str__` now returns ``member_name``. Stdlib enums available as " -"module constants have a :func:`repr` of ``module_name.member_name``. " -"(Contributed by Ethan Furman in :issue:`40066`.)" -msgstr "" - -msgid "" -"Add :class:`enum.StrEnum` for enums where all members are strings. " -"(Contributed by Ethan Furman in :issue:`41816`.)" -msgstr "" - msgid "fileinput" msgstr "" msgid "" -"Add *encoding* and *errors* parameters in :func:`fileinput.input` and :class:" -"`fileinput.FileInput`. (Contributed by Inada Naoki in :issue:`43712`.)" +"Add *encoding* and *errors* parameters in :func:`fileinput.input` " +"and :class:`fileinput.FileInput`. (Contributed by Inada Naoki " +"in :issue:`43712`.)" msgstr "" msgid "" @@ -1061,25 +1073,26 @@ msgstr "" msgid "" "The :mod:`faulthandler` module now detects if a fatal error occurs during a " -"garbage collector collection. (Contributed by Victor Stinner in :issue:" -"`44466`.)" +"garbage collector collection. (Contributed by Victor Stinner " +"in :issue:`44466`.)" msgstr "" msgid "gc" msgstr "" msgid "" -"Add audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` and :" -"func:`gc.get_referents`. (Contributed by Pablo Galindo in :issue:`43439`.)" +"Add audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` " +"and :func:`gc.get_referents`. (Contributed by Pablo Galindo " +"in :issue:`43439`.)" msgstr "" msgid "glob" msgstr "" msgid "" -"Add the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and :func:" -"`~glob.iglob` which allow to specify the root directory for searching. " -"(Contributed by Serhiy Storchaka in :issue:`38144`.)" +"Add the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` " +"and :func:`~glob.iglob` which allow to specify the root directory for " +"searching. (Contributed by Serhiy Storchaka in :issue:`38144`.)" msgstr "" msgid "hashlib" @@ -1114,18 +1127,18 @@ msgstr "" msgid "" "Make IDLE invoke :func:`sys.excepthook` (when started without '-n'). User " -"hooks were previously ignored. (Contributed by Ken Hilton in :issue:" -"`43008`.)" +"hooks were previously ignored. (Contributed by Ken Hilton " +"in :issue:`43008`.)" msgstr "" msgid "" "Rearrange the settings dialog. Split the General tab into Windows and Shell/" "Ed tabs. Move help sources, which extend the Help menu, to the Extensions " "tab. Make space for new options and shorten the dialog. The latter makes " -"the dialog better fit small screens. (Contributed by Terry Jan Reedy in :" -"issue:`40468`.) Move the indent space setting from the Font tab to the new " -"Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:" -"`33962`.)" +"the dialog better fit small screens. (Contributed by Terry Jan Reedy " +"in :issue:`40468`.) Move the indent space setting from the Font tab to the " +"new Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy " +"in :issue:`33962`.)" msgstr "" msgid "The changes above were backported to a 3.9 maintenance release." @@ -1149,11 +1162,12 @@ msgid "" msgstr "" msgid "" -"Highlight the new :ref:`soft keywords ` :keyword:`match`, :" -"keyword:`case `, and :keyword:`_ ` in pattern-" -"matching statements. However, this highlighting is not perfect and will be " -"incorrect in some rare cases, including some ``_``-s in ``case`` patterns. " -"(Contributed by Tal Einat in :issue:`44010`.)" +"Highlight the new :ref:`soft keywords ` :keyword:`match`, :keyword:`case `, and :keyword:`_ " +"` in pattern-matching statements. However, this " +"highlighting is not perfect and will be incorrect in some rare cases, " +"including some ``_``-s in ``case`` patterns. (Contributed by Tal Einat " +"in :issue:`44010`.)" msgstr "" msgid "New in 3.10 maintenance releases." @@ -1179,15 +1193,15 @@ msgstr "" msgid "" ":ref:`importlib.metadata entry points ` now provide a nicer " -"experience for selecting entry points by group and name through a new :class:" -"`importlib.metadata.EntryPoints` class. See the Compatibility Note in the " -"docs for more info on the deprecation and usage." +"experience for selecting entry points by group and name through a " +"new :class:`importlib.metadata.EntryPoints` class. See the Compatibility " +"Note in the docs for more info on the deprecation and usage." msgstr "" msgid "" "Added :func:`importlib.metadata.packages_distributions` for resolving top-" -"level Python modules and packages to their :class:`importlib.metadata." -"Distribution`." +"level Python modules and packages to " +"their :class:`importlib.metadata.Distribution`." msgstr "" msgid "inspect" @@ -1198,24 +1212,25 @@ msgid "" "defined on an object. It works around the quirks of accessing the " "annotations on various types of objects, and makes very few assumptions " "about the object it examines. :func:`inspect.get_annotations` can also " -"correctly un-stringize stringized annotations. :func:`inspect." -"get_annotations` is now considered best practice for accessing the " -"annotations dict defined on any Python object; for more information on best " -"practices for working with annotations, please see :ref:`annotations-howto`. " -"Relatedly, :func:`inspect.signature`, :func:`inspect.Signature." -"from_callable`, and :func:`inspect.Signature.from_function` now call :func:" -"`inspect.get_annotations` to retrieve annotations. This means :func:`inspect." -"signature` and :func:`inspect.Signature.from_callable` can also now un-" -"stringize stringized annotations. (Contributed by Larry Hastings in :issue:" -"`43817`.)" +"correctly un-stringize stringized " +"annotations. :func:`inspect.get_annotations` is now considered best " +"practice for accessing the annotations dict defined on any Python object; " +"for more information on best practices for working with annotations, please " +"see :ref:`annotations-howto`. " +"Relatedly, :func:`inspect.signature`, :func:`inspect.Signature.from_callable`, " +"and :func:`inspect.Signature.from_function` now " +"call :func:`inspect.get_annotations` to retrieve annotations. This " +"means :func:`inspect.signature` and :func:`inspect.Signature.from_callable` " +"can also now un-stringize stringized annotations. (Contributed by Larry " +"Hastings in :issue:`43817`.)" msgstr "" msgid "itertools" msgstr "" msgid "" -"Add :func:`itertools.pairwise()`. (Contributed by Raymond Hettinger in :" -"issue:`38200`.)" +"Add :func:`itertools.pairwise()`. (Contributed by Raymond Hettinger " +"in :issue:`38200`.)" msgstr "" msgid "linecache" @@ -1231,8 +1246,8 @@ msgstr "" msgid "" "Add a new function :func:`os.eventfd` and related helpers to wrap the " -"``eventfd2`` syscall on Linux. (Contributed by Christian Heimes in :issue:" -"`41001`.)" +"``eventfd2`` syscall on Linux. (Contributed by Christian Heimes " +"in :issue:`41001`.)" msgstr "" msgid "" @@ -1243,9 +1258,17 @@ msgid "" msgstr "" msgid "" -"Add :data:`~os.O_EVTONLY`, :data:`~os.O_FSYNC`, :data:`~os.O_SYMLINK` and :" -"data:`~os.O_NOFOLLOW_ANY` for macOS. (Contributed by Dong-hee Na in :issue:" -"`43106`.)" +"Add :data:`~os.O_EVTONLY`, :data:`~os.O_FSYNC`, :data:`~os.O_SYMLINK` " +"and :data:`~os.O_NOFOLLOW_ANY` for macOS. (Contributed by Dong-hee Na " +"in :issue:`43106`.)" +msgstr "" + +msgid "" +"As of 3.10.15, :func:`os.mkdir` and :func:`os.makedirs` on Windows now " +"support passing a *mode* value of ``0o700`` to apply access control to the " +"new directory. This implicitly affects :func:`tempfile.mkdtemp` and is a " +"mitigation for CVE-2024-4030. Other values for *mode* continue to be " +"ignored. (Contributed by Steve Dower in :gh:`118486`.)" msgstr "" msgid "os.path" @@ -1266,8 +1289,9 @@ msgid "" msgstr "" msgid "" -"Add negative indexing support to :attr:`PurePath.parents `. (Contributed by Yaroslav Pankovych in :issue:`21041`.)" +"Add negative indexing support to :attr:`PurePath.parents " +"`. (Contributed by Yaroslav Pankovych " +"in :issue:`21041`.)" msgstr "" msgid "" @@ -1280,8 +1304,8 @@ msgstr "" msgid "" ":meth:`pathlib.Path.stat` and :meth:`~pathlib.Path.chmod` now accept a " "*follow_symlinks* keyword-only argument for consistency with corresponding " -"functions in the :mod:`os` module. (Contributed by Barney Gale in :issue:" -"`39906`.)" +"functions in the :mod:`os` module. (Contributed by Barney Gale " +"in :issue:`39906`.)" msgstr "" msgid "platform" @@ -1320,9 +1344,9 @@ msgstr "" msgid "" "Add an ``end_lineno`` attribute to the ``Function`` and ``Class`` objects in " -"the tree returned by :func:`pyclbr.readline` and :func:`pyclbr." -"readline_ex`. It matches the existing (start) ``lineno``. (Contributed by " -"Aviral Srivastava in :issue:`38307`.)" +"the tree returned by :func:`pyclbr.readline` " +"and :func:`pyclbr.readline_ex`. It matches the existing (start) ``lineno``. " +"(Contributed by Aviral Srivastava in :issue:`38307`.)" msgstr "" msgid "shelve" @@ -1338,9 +1362,10 @@ msgid "statistics" msgstr "" msgid "" -"Add :func:`~statistics.covariance`, Pearson's :func:`~statistics." -"correlation`, and simple :func:`~statistics.linear_regression` functions. " -"(Contributed by Tymoteusz Wołodźko in :issue:`38490`.)" +"Add :func:`~statistics.covariance`, " +"Pearson's :func:`~statistics.correlation`, and " +"simple :func:`~statistics.linear_regression` functions. (Contributed by " +"Tymoteusz Wołodźko in :issue:`38490`.)" msgstr "" msgid "site" @@ -1373,28 +1398,29 @@ msgid "" msgstr "" msgid "" -"The ssl module has preliminary support for OpenSSL 3.0.0 and new option :" -"data:`~ssl.OP_IGNORE_UNEXPECTED_EOF`. (Contributed by Christian Heimes in :" -"issue:`38820`, :issue:`43794`, :issue:`43788`, :issue:`43791`, :issue:" -"`43799`, :issue:`43920`, :issue:`43789`, and :issue:`43811`.)" +"The ssl module has preliminary support for OpenSSL 3.0.0 and new " +"option :data:`~ssl.OP_IGNORE_UNEXPECTED_EOF`. (Contributed by Christian " +"Heimes " +"in :issue:`38820`, :issue:`43794`, :issue:`43788`, :issue:`43791`, :issue:`43799`, :issue:`43920`, :issue:`43789`, " +"and :issue:`43811`.)" msgstr "" msgid "" -"Deprecated function and use of deprecated constants now result in a :exc:" -"`DeprecationWarning`. :attr:`ssl.SSLContext.options` has :data:`~ssl." -"OP_NO_SSLv2` and :data:`~ssl.OP_NO_SSLv3` set by default and therefore " -"cannot warn about setting the flag again. The :ref:`deprecation section " -"` has a list of deprecated features. (Contributed by " -"Christian Heimes in :issue:`43880`.)" +"Deprecated function and use of deprecated constants now result in " +"a :exc:`DeprecationWarning`. :attr:`ssl.SSLContext.options` " +"has :data:`~ssl.OP_NO_SSLv2` and :data:`~ssl.OP_NO_SSLv3` set by default and " +"therefore cannot warn about setting the flag again. The :ref:`deprecation " +"section ` has a list of deprecated features. " +"(Contributed by Christian Heimes in :issue:`43880`.)" msgstr "" msgid "" "The ssl module now has more secure default settings. Ciphers without forward " "secrecy or SHA-1 MAC are disabled by default. Security level 2 prohibits " -"weak RSA, DH, and ECC keys with less than 112 bits of security. :class:`~ssl." -"SSLContext` defaults to minimum protocol version TLS 1.2. Settings are based " -"on Hynek Schlawack's research. (Contributed by Christian Heimes in :issue:" -"`43998`.)" +"weak RSA, DH, and ECC keys with less than 112 bits of " +"security. :class:`~ssl.SSLContext` defaults to minimum protocol version TLS " +"1.2. Settings are based on Hynek Schlawack's research. (Contributed by " +"Christian Heimes in :issue:`43998`.)" msgstr "" msgid "" @@ -1423,13 +1449,14 @@ msgid "sqlite3" msgstr "" msgid "" -"Add audit events for :func:`~sqlite3.connect/handle`, :meth:`~sqlite3." -"Connection.enable_load_extension`, and :meth:`~sqlite3.Connection." -"load_extension`. (Contributed by Erlend E. Aasland in :issue:`43762`.)" +"Add audit events for :func:`~sqlite3.connect/" +"handle`, :meth:`~sqlite3.Connection.enable_load_extension`, " +"and :meth:`~sqlite3.Connection.load_extension`. (Contributed by Erlend E. " +"Aasland in :issue:`43762`.)" msgstr "" msgid "sys" -msgstr "" +msgstr "sys" msgid "" "Add :data:`sys.orig_argv` attribute: the list of the original command line " @@ -1442,6 +1469,16 @@ msgid "" "library module names. (Contributed by Victor Stinner in :issue:`42955`.)" msgstr "" +msgid "tempfile" +msgstr "" + +msgid "" +"As of 3.10.15 on Windows, the default mode ``0o700`` used " +"by :func:`tempfile.mkdtemp` now limits access to the new directory due to " +"changes to :func:`os.mkdir`. This is a mitigation for CVE-2024-4030. " +"(Contributed by Steve Dower in :gh:`118486`.)" +msgstr "" + msgid "_thread" msgstr "" @@ -1456,8 +1493,9 @@ msgstr "" msgid "" "Add :func:`threading.gettrace` and :func:`threading.getprofile` to retrieve " -"the functions set by :func:`threading.settrace` and :func:`threading." -"setprofile` respectively. (Contributed by Mario Corchero in :issue:`42251`.)" +"the functions set by :func:`threading.settrace` " +"and :func:`threading.setprofile` respectively. (Contributed by Mario " +"Corchero in :issue:`42251`.)" msgstr "" msgid "" @@ -1470,20 +1508,20 @@ msgid "traceback" msgstr "" msgid "" -"The :func:`~traceback.format_exception`, :func:`~traceback." -"format_exception_only`, and :func:`~traceback.print_exception` functions can " -"now take an exception object as a positional-only argument. (Contributed by " -"Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" +"The :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, " +"and :func:`~traceback.print_exception` functions can now take an exception " +"object as a positional-only argument. (Contributed by Zackery Spytz and " +"Matthias Bussonnier in :issue:`26389`.)" msgstr "" msgid "types" msgstr "" msgid "" -"Reintroduce the :data:`types.EllipsisType`, :data:`types.NoneType` and :data:" -"`types.NotImplementedType` classes, providing a new set of types readily " -"interpretable by type checkers. (Contributed by Bas van Beek in :issue:" -"`41810`.)" +"Reintroduce the :data:`types.EllipsisType`, :data:`types.NoneType` " +"and :data:`types.NotImplementedType` classes, providing a new set of types " +"readily interpretable by type checkers. (Contributed by Bas van Beek " +"in :issue:`41810`.)" msgstr "" msgid "typing" @@ -1493,8 +1531,9 @@ msgid "For major changes, see :ref:`new-feat-related-type-hints`." msgstr "" msgid "" -"The behavior of :class:`typing.Literal` was changed to conform with :pep:" -"`586` and to match the behavior of static type checkers specified in the PEP." +"The behavior of :class:`typing.Literal` was changed to conform " +"with :pep:`586` and to match the behavior of static type checkers specified " +"in the PEP." msgstr "" msgid "``Literal`` now de-duplicates parameters." @@ -1523,22 +1562,22 @@ msgstr "" msgid "" "Add new function :func:`typing.is_typeddict` to introspect if an annotation " -"is a :class:`typing.TypedDict`. (Contributed by Patrick Reader in :issue:" -"`41792`.)" +"is a :class:`typing.TypedDict`. (Contributed by Patrick Reader " +"in :issue:`41792`.)" msgstr "" msgid "" "Subclasses of ``typing.Protocol`` which only have data variables declared " "will now raise a ``TypeError`` when checked with ``isinstance`` unless they " "are decorated with :func:`runtime_checkable`. Previously, these checks " -"passed silently. Users should decorate their subclasses with the :func:" -"`runtime_checkable` decorator if they want runtime protocols. (Contributed " -"by Yurii Karabas in :issue:`38908`.)" +"passed silently. Users should decorate their subclasses with " +"the :func:`runtime_checkable` decorator if they want runtime protocols. " +"(Contributed by Yurii Karabas in :issue:`38908`.)" msgstr "" msgid "" -"Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" -"exc:`DeprecationWarning`. These submodules have been deprecated since " +"Importing from the ``typing.io`` and ``typing.re`` submodules will now " +"emit :exc:`DeprecationWarning`. These submodules have been deprecated since " "Python 3.8 and will be removed in a future version of Python. Anything " "belonging to those submodules should be imported directly from :mod:`typing` " "instead. (Contributed by Sebastian Rittau in :issue:`38291`.)" @@ -1558,33 +1597,43 @@ msgstr "" msgid "" "Python versions earlier than Python 3.10 allowed using both ``;`` and ``&`` " -"as query parameter separators in :func:`urllib.parse.parse_qs` and :func:" -"`urllib.parse.parse_qsl`. Due to security concerns, and to conform with " -"newer W3C recommendations, this has been changed to allow only a single " -"separator key, with ``&`` as the default. This change also affects :func:" -"`cgi.parse` and :func:`cgi.parse_multipart` as they use the affected " -"functions internally. For more details, please see their respective " -"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " -"in :issue:`42967`.)" +"as query parameter separators in :func:`urllib.parse.parse_qs` " +"and :func:`urllib.parse.parse_qsl`. Due to security concerns, and to " +"conform with newer W3C recommendations, this has been changed to allow only " +"a single separator key, with ``&`` as the default. This change also " +"affects :func:`cgi.parse` and :func:`cgi.parse_multipart` as they use the " +"affected functions internally. For more details, please see their " +"respective documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran " +"and Ken Jin in :issue:`42967`.)" +msgstr "" + +msgid "" +"The presence of newline or tab characters in parts of a URL allows for some " +"forms of attacks. Following the WHATWG specification that " +"updates :rfc:`3986`, ASCII newline ``\\n``, ``\\r`` and tab ``\\t`` " +"characters are stripped from the URL by the parser in :mod:`urllib.parse` " +"preventing such attacks. The removal characters are controlled by a new " +"module level variable ``urllib.parse._UNSAFE_URL_BYTES_TO_REMOVE``. " +"(See :issue:`43882`)" msgstr "" msgid "xml" msgstr "" msgid "" -"Add a :class:`~xml.sax.handler.LexicalHandler` class to the :mod:`xml.sax." -"handler` module. (Contributed by Jonathan Gossage and Zackery Spytz in :" -"issue:`35018`.)" +"Add a :class:`~xml.sax.handler.LexicalHandler` class to " +"the :mod:`xml.sax.handler` module. (Contributed by Jonathan Gossage and " +"Zackery Spytz in :issue:`35018`.)" msgstr "" msgid "zipimport" msgstr "" msgid "" -"Add methods related to :pep:`451`: :meth:`~zipimport.zipimporter." -"find_spec`, :meth:`zipimport.zipimporter.create_module`, and :meth:" -"`zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon in :issue:" -"`42131`.)" +"Add methods related " +"to :pep:`451`: :meth:`~zipimport.zipimporter.find_spec`, :meth:`zipimport.zipimporter.create_module`, " +"and :meth:`zipimport.zipimporter.exec_module`. (Contributed by Brett Cannon " +"in :issue:`42131`.)" msgstr "" msgid "" @@ -1597,16 +1646,16 @@ msgstr "" msgid "" "Constructors :func:`str`, :func:`bytes` and :func:`bytearray` are now faster " -"(around 30--40% for small objects). (Contributed by Serhiy Storchaka in :" -"issue:`41334`.)" +"(around 30--40% for small objects). (Contributed by Serhiy Storchaka " +"in :issue:`41334`.)" msgstr "" msgid "" "The :mod:`runpy` module now imports fewer modules. The ``python3 -m module-" -"name`` command startup time is 1.4x faster in average. On Linux, ``python3 -" -"I -m module-name`` imports 69 modules on Python 3.9, whereas it only imports " -"51 modules (-18) on Python 3.10. (Contributed by Victor Stinner in :issue:" -"`41006` and :issue:`41718`.)" +"name`` command startup time is 1.4x faster in average. On Linux, ``python3 " +"-I -m module-name`` imports 69 modules on Python 3.9, whereas it only " +"imports 51 modules (-18) on Python 3.10. (Contributed by Victor Stinner " +"in :issue:`41006` and :issue:`41718`.)" msgstr "" msgid "" @@ -1621,19 +1670,19 @@ msgid "" "When building Python with :option:`--enable-optimizations` now ``-fno-" "semantic-interposition`` is added to both the compile and link line. This " "speeds builds of the Python interpreter created with :option:`--enable-" -"shared` with ``gcc`` by up to 30%. See `this article `_ for more details. (Contributed by Victor Stinner " -"and Pablo Galindo in :issue:`38980`.)" +"shared` with ``gcc`` by up to 30%. See `this article `_ for more details. (Contributed by Victor " +"Stinner and Pablo Galindo in :issue:`38980`.)" msgstr "" msgid "" -"Use a new output buffer management code for :mod:`bz2` / :mod:`lzma` / :mod:" -"`zlib` modules, and add ``.readall()`` function to ``_compression." -"DecompressReader`` class. bz2 decompression is now 1.09x ~ 1.17x faster, " -"lzma decompression 1.20x ~ 1.32x faster, ``GzipFile.read(-1)`` 1.11x ~ 1.18x " -"faster. (Contributed by Ma Lin, reviewed by Gregory P. Smith, in :issue:" -"`41486`)" +"Use a new output buffer management code " +"for :mod:`bz2` / :mod:`lzma` / :mod:`zlib` modules, and add ``.readall()`` " +"function to ``_compression.DecompressReader`` class. bz2 decompression is " +"now 1.09x ~ 1.17x faster, lzma decompression 1.20x ~ 1.32x faster, " +"``GzipFile.read(-1)`` 1.11x ~ 1.18x faster. (Contributed by Ma Lin, reviewed " +"by Gregory P. Smith, in :issue:`41486`)" msgstr "" msgid "" @@ -1655,24 +1704,25 @@ msgstr "" msgid "" "Add micro-optimizations to ``_PyType_Lookup()`` to improve type attribute " "cache lookup performance in the common case of cache hits. This makes the " -"interpreter 1.04 times faster on average. (Contributed by Dino Viehland in :" -"issue:`43452`.)" +"interpreter 1.04 times faster on average. (Contributed by Dino Viehland " +"in :issue:`43452`.)" msgstr "" msgid "" "The following built-in functions now support the faster :pep:`590` " -"vectorcall calling convention: :func:`map`, :func:`filter`, :func:" -"`reversed`, :func:`bool` and :func:`float`. (Contributed by Dong-hee Na and " -"Jeroen Demeyer in :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:" -"`41873` and :issue:`41870`.)" +"vectorcall calling " +"convention: :func:`map`, :func:`filter`, :func:`reversed`, :func:`bool` " +"and :func:`float`. (Contributed by Dong-hee Na and Jeroen Demeyer " +"in :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:`41873` " +"and :issue:`41870`.)" msgstr "" msgid "" ":class:`BZ2File` performance is improved by removing internal ``RLock``. " "This makes :class:`BZ2File` thread unsafe in the face of multiple " -"simultaneous readers or writers, just like its equivalent classes in :mod:" -"`gzip` and :mod:`lzma` have always been. (Contributed by Inada Naoki in :" -"issue:`43785`.)" +"simultaneous readers or writers, just like its equivalent classes " +"in :mod:`gzip` and :mod:`lzma` have always been. (Contributed by Inada " +"Naoki in :issue:`43785`.)" msgstr "" msgid "Deprecated" @@ -1684,27 +1734,28 @@ msgid "" "ambiguous expressions like ``[0x1for x in y]`` (which can be interpreted as " "``[0x1 for x in y]`` or ``[0x1f or x in y]``). Starting in this release, a " "deprecation warning is raised if the numeric literal is immediately followed " -"by one of keywords :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:" -"`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`. In future releases it " -"will be changed to syntax warning, and finally to syntax error. (Contributed " -"by Serhiy Storchaka in :issue:`43833`.)" +"by one of " +"keywords :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` " +"and :keyword:`or`. In future releases it will be changed to syntax warning, " +"and finally to syntax error. (Contributed by Serhiy Storchaka " +"in :issue:`43833`.)" msgstr "" msgid "" "Starting in this release, there will be a concerted effort to begin cleaning " "up old import semantics that were kept for Python 2.7 compatibility. " -"Specifically, :meth:`~importlib.abc.PathEntryFinder.find_loader`/:meth:" -"`~importlib.abc.Finder.find_module` (superseded by :meth:`~importlib.abc." -"Finder.find_spec`), :meth:`~importlib.abc.Loader.load_module` (superseded " -"by :meth:`~importlib.abc.Loader.exec_module`), :meth:`~importlib.abc.Loader." -"module_repr` (which the import system takes care of for you), the " -"``__package__`` attribute (superseded by ``__spec__.parent``), the " -"``__loader__`` attribute (superseded by ``__spec__.loader``), and the " -"``__cached__`` attribute (superseded by ``__spec__.cached``) will slowly be " -"removed (as well as other classes and methods in :mod:`importlib`). :exc:" -"`ImportWarning` and/or :exc:`DeprecationWarning` will be raised as " -"appropriate to help identify code which needs updating during this " -"transition." +"Specifically, :meth:`~importlib.abc.PathEntryFinder.find_loader`/:meth:`~importlib.abc.Finder.find_module` " +"(superseded " +"by :meth:`~importlib.abc.Finder.find_spec`), :meth:`~importlib.abc.Loader.load_module` " +"(superseded " +"by :meth:`~importlib.abc.Loader.exec_module`), :meth:`~importlib.abc.Loader.module_repr` " +"(which the import system takes care of for you), the ``__package__`` " +"attribute (superseded by ``__spec__.parent``), the ``__loader__`` attribute " +"(superseded by ``__spec__.loader``), and the ``__cached__`` attribute " +"(superseded by ``__spec__.cached``) will slowly be removed (as well as other " +"classes and methods in :mod:`importlib`). :exc:`ImportWarning` and/" +"or :exc:`DeprecationWarning` will be raised as appropriate to help identify " +"code which needs updating during this transition." msgstr "" msgid "" @@ -1714,16 +1765,16 @@ msgid "" msgstr "" msgid "" -"Non-integer arguments to :func:`random.randrange` are deprecated. The :exc:" -"`ValueError` is deprecated in favor of a :exc:`TypeError`. (Contributed by " -"Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.)" +"Non-integer arguments to :func:`random.randrange` are deprecated. " +"The :exc:`ValueError` is deprecated in favor of a :exc:`TypeError`. " +"(Contributed by Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.)" msgstr "" msgid "" "The various ``load_module()`` methods of :mod:`importlib` have been " -"documented as deprecated since Python 3.6, but will now also trigger a :exc:" -"`DeprecationWarning`. Use :meth:`~importlib.abc.Loader.exec_module` instead. " -"(Contributed by Brett Cannon in :issue:`26131`.)" +"documented as deprecated since Python 3.6, but will now also trigger " +"a :exc:`DeprecationWarning`. Use :meth:`~importlib.abc.Loader.exec_module` " +"instead. (Contributed by Brett Cannon in :issue:`26131`.)" msgstr "" msgid "" @@ -1734,14 +1785,16 @@ msgstr "" msgid "" "The use of :meth:`~importlib.abc.Loader.load_module` by the import system " -"now triggers an :exc:`ImportWarning` as :meth:`~importlib.abc.Loader." -"exec_module` is preferred. (Contributed by Brett Cannon in :issue:`26131`.)" +"now triggers an :exc:`ImportWarning` " +"as :meth:`~importlib.abc.Loader.exec_module` is preferred. (Contributed by " +"Brett Cannon in :issue:`26131`.)" msgstr "" msgid "" -"The use of :meth:`importlib.abc.MetaPathFinder.find_module` and :meth:" -"`importlib.abc.PathEntryFinder.find_module` by the import system now trigger " -"an :exc:`ImportWarning` as :meth:`importlib.abc.MetaPathFinder.find_spec` " +"The use of :meth:`importlib.abc.MetaPathFinder.find_module` " +"and :meth:`importlib.abc.PathEntryFinder.find_module` by the import system " +"now trigger an :exc:`ImportWarning` " +"as :meth:`importlib.abc.MetaPathFinder.find_spec` " "and :meth:`importlib.abc.PathEntryFinder.find_spec` are preferred, " "respectively. You can use :func:`importlib.util.spec_from_loader` to help in " "porting. (Contributed by Brett Cannon in :issue:`42134`.)" @@ -1749,42 +1802,40 @@ msgstr "" msgid "" "The use of :meth:`importlib.abc.PathEntryFinder.find_loader` by the import " -"system now triggers an :exc:`ImportWarning` as :meth:`importlib.abc." -"PathEntryFinder.find_spec` is preferred. You can use :func:`importlib.util." -"spec_from_loader` to help in porting. (Contributed by Brett Cannon in :issue:" -"`43672`.)" +"system now triggers an :exc:`ImportWarning` " +"as :meth:`importlib.abc.PathEntryFinder.find_spec` is preferred. You can " +"use :func:`importlib.util.spec_from_loader` to help in porting. (Contributed " +"by Brett Cannon in :issue:`43672`.)" msgstr "" msgid "" -"The various implementations of :meth:`importlib.abc.MetaPathFinder." -"find_module` ( :meth:`importlib.machinery.BuiltinImporter.find_module`, :" -"meth:`importlib.machinery.FrozenImporter.find_module`, :meth:`importlib." -"machinery.WindowsRegistryFinder.find_module`, :meth:`importlib.machinery." -"PathFinder.find_module`, :meth:`importlib.abc.MetaPathFinder." -"find_module` ), :meth:`importlib.abc.PathEntryFinder.find_module` ( :meth:" -"`importlib.machinery.FileFinder.find_module` ), and :meth:`importlib.abc." -"PathEntryFinder.find_loader` ( :meth:`importlib.machinery.FileFinder." -"find_loader` ) now raise :exc:`DeprecationWarning` and are slated for " -"removal in Python 3.12 (previously they were documented as deprecated in " -"Python 3.4). (Contributed by Brett Cannon in :issue:`42135`.)" +"The various implementations " +"of :meth:`importlib.abc.MetaPathFinder.find_module` " +"( :meth:`importlib.machinery.BuiltinImporter.find_module`, :meth:`importlib.machinery.FrozenImporter.find_module`, :meth:`importlib.machinery.WindowsRegistryFinder.find_module`, :meth:`importlib.machinery.PathFinder.find_module`, :meth:`importlib.abc.MetaPathFinder.find_module` ), :meth:`importlib.abc.PathEntryFinder.find_module` " +"( :meth:`importlib.machinery.FileFinder.find_module` ), " +"and :meth:`importlib.abc.PathEntryFinder.find_loader` " +"( :meth:`importlib.machinery.FileFinder.find_loader` ) now " +"raise :exc:`DeprecationWarning` and are slated for removal in Python 3.12 " +"(previously they were documented as deprecated in Python 3.4). (Contributed " +"by Brett Cannon in :issue:`42135`.)" msgstr "" msgid "" -":class:`importlib.abc.Finder` is deprecated (including its sole method, :" -"meth:`~importlib.abc.Finder.find_module`). Both :class:`importlib.abc." -"MetaPathFinder` and :class:`importlib.abc.PathEntryFinder` no longer inherit " -"from the class. Users should inherit from one of these two classes as " -"appropriate instead. (Contributed by Brett Cannon in :issue:`42135`.)" +":class:`importlib.abc.Finder` is deprecated (including its sole " +"method, :meth:`~importlib.abc.Finder.find_module`). " +"Both :class:`importlib.abc.MetaPathFinder` " +"and :class:`importlib.abc.PathEntryFinder` no longer inherit from the class. " +"Users should inherit from one of these two classes as appropriate instead. " +"(Contributed by Brett Cannon in :issue:`42135`.)" msgstr "" msgid "" -"The deprecations of :mod:`imp`, :func:`importlib.find_loader`, :func:" -"`importlib.util.set_package_wrapper`, :func:`importlib.util." -"set_loader_wrapper`, :func:`importlib.util.module_for_loader`, :class:" -"`pkgutil.ImpImporter`, and :class:`pkgutil.ImpLoader` have all been updated " -"to list Python 3.12 as the slated version of removal (they began raising :" -"exc:`DeprecationWarning` in previous versions of Python). (Contributed by " -"Brett Cannon in :issue:`43720`.)" +"The deprecations " +"of :mod:`imp`, :func:`importlib.find_loader`, :func:`importlib.util.set_package_wrapper`, :func:`importlib.util.set_loader_wrapper`, :func:`importlib.util.module_for_loader`, :class:`pkgutil.ImpImporter`, " +"and :class:`pkgutil.ImpLoader` have all been updated to list Python 3.12 as " +"the slated version of removal (they began raising :exc:`DeprecationWarning` " +"in previous versions of Python). (Contributed by Brett Cannon " +"in :issue:`43720`.)" msgstr "" msgid "" @@ -1795,30 +1846,17 @@ msgid "" msgstr "" msgid "" -":meth:`importlib.abc.Loader.module_repr`, :meth:`importlib.machinery." -"FrozenLoader.module_repr`, and :meth:`importlib.machinery.BuiltinLoader." -"module_repr` are deprecated and slated for removal in Python 3.12. " -"(Contributed by Brett Cannon in :issue:`42136`.)" +":meth:`importlib.abc.Loader.module_repr`, :meth:`importlib.machinery.FrozenLoader.module_repr`, " +"and :meth:`importlib.machinery.BuiltinLoader.module_repr` are deprecated and " +"slated for removal in Python 3.12. (Contributed by Brett Cannon " +"in :issue:`42136`.)" msgstr "" msgid "" "``sqlite3.OptimizedUnicode`` has been undocumented and obsolete since Python " "3.3, when it was made an alias to :class:`str`. It is now deprecated, " -"scheduled for removal in Python 3.12. (Contributed by Erlend E. Aasland in :" -"issue:`42264`.)" -msgstr "" - -msgid "" -":func:`asyncio.get_event_loop` now emits a deprecation warning if there is " -"no running event loop. In the future it will be an alias of :func:`~asyncio." -"get_running_loop`. :mod:`asyncio` functions which implicitly create :class:" -"`~asyncio.Future` or :class:`~asyncio.Task` objects now emit a deprecation " -"warning if there is no running event loop and no explicit *loop* argument is " -"passed: :func:`~asyncio.ensure_future`, :func:`~asyncio.wrap_future`, :func:" -"`~asyncio.gather`, :func:`~asyncio.shield`, :func:`~asyncio.as_completed` " -"and constructors of :class:`~asyncio.Future`, :class:`~asyncio.Task`, :class:" -"`~asyncio.StreamReader`, :class:`~asyncio.StreamReaderProtocol`. " -"(Contributed by Serhiy Storchaka in :issue:`39529`.)" +"scheduled for removal in Python 3.12. (Contributed by Erlend E. Aasland " +"in :issue:`42264`.)" msgstr "" msgid "" @@ -1834,29 +1872,30 @@ msgid "The following ``threading`` methods are now deprecated:" msgstr "" msgid "``threading.currentThread`` => :func:`threading.current_thread`" -msgstr "" +msgstr "``threading.currentThread`` => :func:`threading.current_thread`" msgid "``threading.activeCount`` => :func:`threading.active_count`" -msgstr "" +msgstr "``threading.activeCount`` => :func:`threading.active_count`" msgid "" "``threading.Condition.notifyAll`` => :meth:`threading.Condition.notify_all`" msgstr "" +"``threading.Condition.notifyAll`` => :meth:`threading.Condition.notify_all`" msgid "``threading.Event.isSet`` => :meth:`threading.Event.is_set`" -msgstr "" +msgstr "``threading.Event.isSet`` => :meth:`threading.Event.is_set`" msgid "``threading.Thread.setName`` => :attr:`threading.Thread.name`" -msgstr "" +msgstr "``threading.Thread.setName`` => :attr:`threading.Thread.name`" msgid "``threading.thread.getName`` => :attr:`threading.Thread.name`" -msgstr "" +msgstr "``threading.thread.getName`` => :attr:`threading.Thread.name`" msgid "``threading.Thread.isDaemon`` => :attr:`threading.Thread.daemon`" -msgstr "" +msgstr "``threading.Thread.isDaemon`` => :attr:`threading.Thread.daemon`" msgid "``threading.Thread.setDaemon`` => :attr:`threading.Thread.daemon`" -msgstr "" +msgstr "``threading.Thread.setDaemon`` => :attr:`threading.Thread.daemon`" msgid "(Contributed by Jelle Zijlstra in :gh:`87889`.)" msgstr "" @@ -1878,18 +1917,16 @@ msgid "" msgstr "" msgid "" -":data:`~ssl.OP_NO_SSLv2`, :data:`~ssl.OP_NO_SSLv3`, :data:`~ssl." -"OP_NO_TLSv1`, :data:`~ssl.OP_NO_TLSv1_1`, :data:`~ssl.OP_NO_TLSv1_2`, and :" -"data:`~ssl.OP_NO_TLSv1_3` are replaced by :attr:`sslSSLContext." -"minimum_version` and :attr:`sslSSLContext.maximum_version`." +":data:`~ssl.OP_NO_SSLv2`, :data:`~ssl.OP_NO_SSLv3`, :data:`~ssl.OP_NO_TLSv1`, :data:`~ssl.OP_NO_TLSv1_1`, :data:`~ssl.OP_NO_TLSv1_2`, " +"and :data:`~ssl.OP_NO_TLSv1_3` are replaced " +"by :attr:`sslSSLContext.minimum_version` " +"and :attr:`sslSSLContext.maximum_version`." msgstr "" msgid "" -":data:`~ssl.PROTOCOL_SSLv2`, :data:`~ssl.PROTOCOL_SSLv3`, :data:`~ssl." -"PROTOCOL_SSLv23`, :data:`~ssl.PROTOCOL_TLSv1`, :data:`~ssl." -"PROTOCOL_TLSv1_1`, :data:`~ssl.PROTOCOL_TLSv1_2`, and :data:`~ssl." -"PROTOCOL_TLS` are deprecated in favor of :data:`~ssl.PROTOCOL_TLS_CLIENT` " -"and :data:`~ssl.PROTOCOL_TLS_SERVER`" +":data:`~ssl.PROTOCOL_SSLv2`, :data:`~ssl.PROTOCOL_SSLv3`, :data:`~ssl.PROTOCOL_SSLv23`, :data:`~ssl.PROTOCOL_TLSv1`, :data:`~ssl.PROTOCOL_TLSv1_1`, :data:`~ssl.PROTOCOL_TLSv1_2`, " +"and :data:`~ssl.PROTOCOL_TLS` are deprecated in favor " +"of :data:`~ssl.PROTOCOL_TLS_CLIENT` and :data:`~ssl.PROTOCOL_TLS_SERVER`" msgstr "" msgid "" @@ -1903,8 +1940,8 @@ msgid ":func:`~ssl.RAND_pseudo_bytes`, :func:`~ssl.RAND_egd`" msgstr "" msgid "" -"NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` and :meth:`ssl." -"SSLContext.set_npn_protocols` are replaced by ALPN." +"NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` " +"and :meth:`ssl.SSLContext.set_npn_protocols` are replaced by ALPN." msgstr "" msgid "" @@ -1915,9 +1952,9 @@ msgid "" msgstr "" msgid "" -"Importing from the ``typing.io`` and ``typing.re`` submodules will now emit :" -"exc:`DeprecationWarning`. These submodules will be removed in a future " -"version of Python. Anything belonging to these submodules should be " +"Importing from the ``typing.io`` and ``typing.re`` submodules will now " +"emit :exc:`DeprecationWarning`. These submodules will be removed in a " +"future version of Python. Anything belonging to these submodules should be " "imported directly from :mod:`typing` instead. (Contributed by Sebastian " "Rittau in :issue:`38291`.)" msgstr "" @@ -1928,23 +1965,23 @@ msgstr "" msgid "" "Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, " "``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and " -"``__rdivmod__`` of the :class:`complex` class. They always raised a :exc:" -"`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" +"``__rdivmod__`` of the :class:`complex` class. They always raised " +"a :exc:`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.)" msgstr "" msgid "" "The ``ParserBase.error()`` method from the private and undocumented " "``_markupbase`` module has been removed. :class:`html.parser.HTMLParser` is " "the only subclass of ``ParserBase`` and its ``error()`` implementation was " -"already removed in Python 3.5. (Contributed by Berker Peksag in :issue:" -"`31844`.)" +"already removed in Python 3.5. (Contributed by Berker Peksag " +"in :issue:`31844`.)" msgstr "" msgid "" "Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal " "PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was " -"moved to the internal C API. (Contributed by Victor Stinner in :issue:" -"`42157`.)" +"moved to the internal C API. (Contributed by Victor Stinner " +"in :issue:`42157`.)" msgstr "" msgid "" @@ -1966,8 +2003,8 @@ msgid "" "somewhat obsolete, little used, and not tested. It was originally scheduled " "to be removed in Python 3.6, but such removals were delayed until after " "Python 2.7 EOL. Existing users should copy whatever classes they use into " -"their code. (Contributed by Dong-hee Na and Terry J. Reedy in :issue:" -"`42299`.)" +"their code. (Contributed by Dong-hee Na and Terry J. Reedy " +"in :issue:`42299`.)" msgstr "" msgid "" @@ -1978,14 +2015,14 @@ msgstr "" msgid "" "Remove deprecated aliases to :ref:`collections-abstract-base-classes` from " -"the :mod:`collections` module. (Contributed by Victor Stinner in :issue:" -"`37324`.)" +"the :mod:`collections` module. (Contributed by Victor Stinner " +"in :issue:`37324`.)" msgstr "" msgid "" -"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" -"doc:`high-level API <../library/asyncio-api-index>` following deprecation in " -"Python 3.8. The motivation behind this change is multifold:" +"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ " +"'s :doc:`high-level API <../library/asyncio-api-index>` following " +"deprecation in Python 3.8. The motivation behind this change is multifold:" msgstr "" msgid "This simplifies the high-level API." @@ -2036,17 +2073,18 @@ msgid "Changes in the Python API" msgstr "" msgid "" -"The *etype* parameters of the :func:`~traceback.format_exception`, :func:" -"`~traceback.format_exception_only`, and :func:`~traceback.print_exception` " -"functions in the :mod:`traceback` module have been renamed to *exc*. " -"(Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.)" +"The *etype* parameters of " +"the :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, " +"and :func:`~traceback.print_exception` functions in the :mod:`traceback` " +"module have been renamed to *exc*. (Contributed by Zackery Spytz and " +"Matthias Bussonnier in :issue:`26389`.)" msgstr "" msgid "" -":mod:`atexit`: At Python exit, if a callback registered with :func:`atexit." -"register` fails, its exception is now logged. Previously, only some " -"exceptions were logged, and the last exception was always silently ignored. " -"(Contributed by Victor Stinner in :issue:`42639`.)" +":mod:`atexit`: At Python exit, if a callback registered " +"with :func:`atexit.register` fails, its exception is now logged. Previously, " +"only some exceptions were logged, and the last exception was always silently " +"ignored. (Contributed by Victor Stinner in :issue:`42639`.)" msgstr "" msgid "" @@ -2057,21 +2095,21 @@ msgid "" "accesses the arguments via :func:`typing.get_args` or ``__args__`` need to " "account for this change. Furthermore, :exc:`TypeError` may be raised for " "invalid forms of parameterizing :class:`collections.abc.Callable` which may " -"have passed silently in Python 3.9. (Contributed by Ken Jin in :issue:" -"`42195`.)" +"have passed silently in Python 3.9. (Contributed by Ken Jin " +"in :issue:`42195`.)" msgstr "" msgid "" ":meth:`socket.htons` and :meth:`socket.ntohs` now raise :exc:`OverflowError` " "instead of :exc:`DeprecationWarning` if the given parameter will not fit in " -"a 16-bit unsigned integer. (Contributed by Erlend E. Aasland in :issue:" -"`42393`.)" +"a 16-bit unsigned integer. (Contributed by Erlend E. Aasland " +"in :issue:`42393`.)" msgstr "" msgid "" -"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ 's :" -"doc:`high-level API <../library/asyncio-api-index>` following deprecation in " -"Python 3.8." +"The ``loop`` parameter has been removed from most of :mod:`asyncio`\\ " +"'s :doc:`high-level API <../library/asyncio-api-index>` following " +"deprecation in Python 3.8." msgstr "" msgid "A coroutine that currently looks like this::" @@ -2089,11 +2127,11 @@ msgstr "" msgid "" "The :data:`types.FunctionType` constructor now inherits the current builtins " "if the *globals* dictionary has no ``\"__builtins__\"`` key, rather than " -"using ``{\"None\": None}`` as builtins: same behavior as :func:`eval` and :" -"func:`exec` functions. Defining a function with ``def function(...): ...`` " -"in Python is not affected, globals cannot be overridden with this syntax: it " -"also inherits the current builtins. (Contributed by Victor Stinner in :issue:" -"`42990`.)" +"using ``{\"None\": None}`` as builtins: same behavior as :func:`eval` " +"and :func:`exec` functions. Defining a function with ``def " +"function(...): ...`` in Python is not affected, globals cannot be overridden " +"with this syntax: it also inherits the current builtins. (Contributed by " +"Victor Stinner in :issue:`42990`.)" msgstr "" msgid "Changes in the C API" @@ -2114,7 +2152,7 @@ msgid "" msgstr "" msgid "Specifically:" -msgstr "" +msgstr "W szczególności:" msgid "" "A call to ``PyParser_SimpleParseStringFlags`` followed by ``PyNode_Compile`` " @@ -2130,9 +2168,10 @@ msgstr "" msgid "" "To compile a file given a ``char *`` filename, explicitly open the file, " "read it and compile the result. One way to do this is using the :py:mod:`io` " -"module with :c:func:`PyImport_ImportModule`, :c:func:`PyObject_CallMethod`, :" -"c:func:`PyBytes_AsString` and :c:func:`Py_CompileString`, as sketched below. " -"(Declarations and error handling are omitted.) ::" +"module " +"with :c:func:`PyImport_ImportModule`, :c:func:`PyObject_CallMethod`, :c:func:`PyBytes_AsString` " +"and :c:func:`Py_CompileString`, as sketched below. (Declarations and error " +"handling are omitted.) ::" msgstr "" msgid "" @@ -2193,8 +2232,8 @@ msgstr "" msgid "" "Some Linux distribution packaging policies recommend against bundling " "dependencies. For example, Fedora installs wheel packages in the ``/usr/" -"share/python-wheels/`` directory and don't install the ``ensurepip." -"_bundled`` package." +"share/python-wheels/`` directory and don't install the " +"``ensurepip._bundled`` package." msgstr "" msgid "(Contributed by Victor Stinner in :issue:`42856`.)" @@ -2212,9 +2251,9 @@ msgstr "" msgid "" "The ``configure`` script now uses the ``pkg-config`` utility, if available, " "to detect the location of Tcl/Tk headers and libraries. As before, those " -"locations can be explicitly specified with the ``--with-tcltk-includes`` and " -"``--with-tcltk-libs`` configuration options. (Contributed by Manolis " -"Stamatogiannakis in :issue:`42603`.)" +"locations can be explicitly specified with the :option:`--with-tcltk-" +"includes` and :option:`--with-tcltk-libs` configuration options. " +"(Contributed by Manolis Stamatogiannakis in :issue:`42603`.)" msgstr "" msgid "" @@ -2241,9 +2280,9 @@ msgid "(Contributed by Petr Viktorin in :pep:`652` and :issue:`43795`.)" msgstr "" msgid "" -"The result of :c:func:`PyNumber_Index` now always has exact type :class:" -"`int`. Previously, the result could have been an instance of a subclass of " -"``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.)" +"The result of :c:func:`PyNumber_Index` now always has exact " +"type :class:`int`. Previously, the result could have been an instance of a " +"subclass of ``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.)" msgstr "" msgid "" @@ -2253,10 +2292,11 @@ msgid "" msgstr "" msgid "" -"The :c:func:`PyDateTime_DATE_GET_TZINFO` and :c:func:" -"`PyDateTime_TIME_GET_TZINFO` macros have been added for accessing the " -"``tzinfo`` attributes of :class:`datetime.datetime` and :class:`datetime." -"time` objects. (Contributed by Zackery Spytz in :issue:`30155`.)" +"The :c:func:`PyDateTime_DATE_GET_TZINFO` " +"and :c:func:`PyDateTime_TIME_GET_TZINFO` macros have been added for " +"accessing the ``tzinfo`` attributes of :class:`datetime.datetime` " +"and :class:`datetime.time` objects. (Contributed by Zackery Spytz " +"in :issue:`30155`.)" msgstr "" msgid "" @@ -2276,9 +2316,9 @@ msgid "" msgstr "" msgid "" -"Add :c:func:`PyModule_AddObjectRef` function: similar to :c:func:" -"`PyModule_AddObject` but don't steal a reference to the value on success. " -"(Contributed by Victor Stinner in :issue:`1635741`.)" +"Add :c:func:`PyModule_AddObjectRef` function: similar " +"to :c:func:`PyModule_AddObject` but don't steal a reference to the value on " +"success. (Contributed by Victor Stinner in :issue:`1635741`.)" msgstr "" msgid "" @@ -2288,9 +2328,9 @@ msgid "" msgstr "" msgid "" -"The :c:func:`PyType_FromSpecWithBases` and :c:func:" -"`PyType_FromModuleAndSpec` functions now accept a single class as the " -"*bases* argument. (Contributed by Serhiy Storchaka in :issue:`42423`.)" +"The :c:func:`PyType_FromSpecWithBases` " +"and :c:func:`PyType_FromModuleAndSpec` functions now accept a single class " +"as the *bases* argument. (Contributed by Serhiy Storchaka in :issue:`42423`.)" msgstr "" msgid "" @@ -2318,34 +2358,34 @@ msgid "" "The limited C API is now supported if :ref:`Python is built in debug mode " "` (if the ``Py_DEBUG`` macro is defined). In the limited C API, " "the :c:func:`Py_INCREF` and :c:func:`Py_DECREF` functions are now " -"implemented as opaque function calls, rather than accessing directly the :c:" -"member:`PyObject.ob_refcnt` member, if Python is built in debug mode and the " -"``Py_LIMITED_API`` macro targets Python 3.10 or newer. It became possible to " -"support the limited C API in debug mode because the :c:type:`PyObject` " -"structure is the same in release and debug mode since Python 3.8 (see :issue:" -"`36465`)." +"implemented as opaque function calls, rather than accessing directly " +"the :c:member:`PyObject.ob_refcnt` member, if Python is built in debug mode " +"and the ``Py_LIMITED_API`` macro targets Python 3.10 or newer. It became " +"possible to support the limited C API in debug mode because " +"the :c:type:`PyObject` structure is the same in release and debug mode since " +"Python 3.8 (see :issue:`36465`)." msgstr "" msgid "" "The limited C API is still not supported in the :option:`--with-trace-refs` " -"special build (``Py_TRACE_REFS`` macro). (Contributed by Victor Stinner in :" -"issue:`43688`.)" +"special build (``Py_TRACE_REFS`` macro). (Contributed by Victor Stinner " +"in :issue:`43688`.)" msgstr "" msgid "" "Add the :c:func:`Py_Is(x, y) ` function to test if the *x* object is " -"the *y* object, the same as ``x is y`` in Python. Add also the :c:func:" -"`Py_IsNone`, :c:func:`Py_IsTrue`, :c:func:`Py_IsFalse` functions to test if " -"an object is, respectively, the ``None`` singleton, the ``True`` singleton " -"or the ``False`` singleton. (Contributed by Victor Stinner in :issue:" -"`43753`.)" +"the *y* object, the same as ``x is y`` in Python. Add also " +"the :c:func:`Py_IsNone`, :c:func:`Py_IsTrue`, :c:func:`Py_IsFalse` functions " +"to test if an object is, respectively, the ``None`` singleton, the ``True`` " +"singleton or the ``False`` singleton. (Contributed by Victor Stinner " +"in :issue:`43753`.)" msgstr "" msgid "" -"Add new functions to control the garbage collector from C code: :c:func:" -"`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. These " -"functions allow to activate, deactivate and query the state of the garbage " -"collector from C code without having to import the :mod:`gc` module." +"Add new functions to control the garbage collector from C " +"code: :c:func:`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`. " +"These functions allow to activate, deactivate and query the state of the " +"garbage collector from C code without having to import the :mod:`gc` module." msgstr "" msgid "" @@ -2360,11 +2400,11 @@ msgid "" msgstr "" msgid "" -"The ``PY_SSIZE_T_CLEAN`` macro must now be defined to use :c:func:" -"`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use ``#``: " -"``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` and ``Z#``. See :" -"ref:`arg-parsing` and :pep:`353`. (Contributed by Victor Stinner in :issue:" -"`40943`.)" +"The ``PY_SSIZE_T_CLEAN`` macro must now be defined to " +"use :c:func:`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use " +"``#``: ``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` and ``Z#``. " +"See :ref:`arg-parsing` and :pep:`353`. (Contributed by Victor Stinner " +"in :issue:`40943`.)" msgstr "" msgid "" @@ -2397,39 +2437,38 @@ msgid "" msgstr "" msgid "" -":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:" -"func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and :c:func:" -"`Py_GetProgramName` functions now return ``NULL`` if called before :c:func:" -"`Py_Initialize` (before Python is initialized). Use the new :ref:`init-" -"config` API to get the :ref:`init-path-config`. (Contributed by Victor " -"Stinner in :issue:`42260`.)" +":c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` " +"and :c:func:`Py_GetProgramName` functions now return ``NULL`` if called " +"before :c:func:`Py_Initialize` (before Python is initialized). Use the " +"new :ref:`init-config` API to get the :ref:`init-path-config`. (Contributed " +"by Victor Stinner in :issue:`42260`.)" msgstr "" msgid "" -":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` and :c:func:" -"`PyCell_SET` macros can no longer be used as l-value or r-value. For " -"example, ``x = PyList_SET_ITEM(a, b, c)`` and ``PyList_SET_ITEM(a, b, c) = " -"x`` now fail with a compiler error. It prevents bugs like ``if " +":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` " +"and :c:func:`PyCell_SET` macros can no longer be used as l-value or r-value. " +"For example, ``x = PyList_SET_ITEM(a, b, c)`` and ``PyList_SET_ITEM(a, b, c) " +"= x`` now fail with a compiler error. It prevents bugs like ``if " "(PyList_SET_ITEM (a, b, c) < 0) ...`` test. (Contributed by Zackery Spytz " "and Victor Stinner in :issue:`30459`.)" msgstr "" msgid "" "The non-limited API files ``odictobject.h``, ``parser_interface.h``, " -"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, ``pyfpe." -"h``, and ``pytime.h`` have been moved to the ``Include/cpython`` directory. " -"These files must not be included directly, as they are already included in " -"``Python.h``; see :ref:`api-includes`. If they have been included directly, " -"consider including ``Python.h`` instead. (Contributed by Nicholas Sim in :" -"issue:`35134`.)" +"``picklebufobject.h``, ``pyarena.h``, ``pyctype.h``, ``pydebug.h``, " +"``pyfpe.h``, and ``pytime.h`` have been moved to the ``Include/cpython`` " +"directory. These files must not be included directly, as they are already " +"included in ``Python.h``; see :ref:`api-includes`. If they have been " +"included directly, consider including ``Python.h`` instead. (Contributed by " +"Nicholas Sim in :issue:`35134`.)" msgstr "" msgid "" "Use the :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable " "type objects. Do not rely on :c:data:`Py_TPFLAGS_HEAPTYPE` to decide if a " "type object is mutable or not; check if :c:data:`Py_TPFLAGS_IMMUTABLETYPE` " -"is set instead. (Contributed by Victor Stinner and Erlend E. Aasland in :" -"issue:`43908`.)" +"is set instead. (Contributed by Victor Stinner and Erlend E. Aasland " +"in :issue:`43908`.)" msgstr "" msgid "" @@ -2450,18 +2489,18 @@ msgid "" msgstr "" msgid "" -"``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:" -"`PyUnicode_GET_LENGTH`" +"``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` " +"or :c:macro:`PyUnicode_GET_LENGTH`" msgstr "" msgid "" -"``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" -"`PyUnicode_FromFormat`" +"``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` " +"or :c:func:`PyUnicode_FromFormat`" msgstr "" msgid "" -"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use :c:func:" -"`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" +"``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: " +"use :c:func:`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring`" msgstr "" msgid "``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare`" @@ -2471,8 +2510,8 @@ msgid "``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch`" msgstr "" msgid "" -"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use :c:func:" -"`PyUnicode_FindChar`" +"``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: " +"use :c:func:`PyUnicode_FindChar`" msgstr "" msgid "" @@ -2481,14 +2520,15 @@ msgid "" msgstr "" msgid "" -"Removed ``PyLong_FromUnicode()``. Please migrate to :c:func:" -"`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki in :issue:`41103`.)" +"Removed ``PyLong_FromUnicode()``. Please migrate " +"to :c:func:`PyLong_FromUnicodeObject`. (Contributed by Inada Naoki " +"in :issue:`41103`.)" msgstr "" msgid "" -"Removed ``PyUnicode_AsUnicodeCopy()``. Please use :c:func:" -"`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` (Contributed " -"by Inada Naoki in :issue:`41103`.)" +"Removed ``PyUnicode_AsUnicodeCopy()``. Please " +"use :c:func:`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` " +"(Contributed by Inada Naoki in :issue:`41103`.)" msgstr "" msgid "" @@ -2499,15 +2539,16 @@ msgstr "" msgid "" "Removed undocumented macros ``Py_ALLOW_RECURSION`` and " -"``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of the :c:" -"type:`PyInterpreterState` structure. (Contributed by Serhiy Storchaka in :" -"issue:`41936`.)" +"``Py_END_ALLOW_RECURSION`` and the ``recursion_critical`` field of " +"the :c:type:`PyInterpreterState` structure. (Contributed by Serhiy Storchaka " +"in :issue:`41936`.)" msgstr "" msgid "" "Removed the undocumented ``PyOS_InitInterrupts()`` function. Initializing " -"Python already implicitly installs signal handlers: see :c:member:`PyConfig." -"install_signal_handlers`. (Contributed by Victor Stinner in :issue:`41713`.)" +"Python already implicitly installs signal handlers: " +"see :c:member:`PyConfig.install_signal_handlers`. (Contributed by Victor " +"Stinner in :issue:`41713`.)" msgstr "" msgid "" @@ -2521,22 +2562,22 @@ msgid "Remove the ``symtable.h`` header file and the undocumented functions:" msgstr "" msgid "``PyST_GetScope()``" -msgstr "" +msgstr "``PyST_GetScope()``" msgid "``PySymtable_Build()``" -msgstr "" +msgstr "``PySymtable_Build()``" msgid "``PySymtable_BuildObject()``" -msgstr "" +msgstr "``PySymtable_BuildObject()``" msgid "``PySymtable_Free()``" -msgstr "" +msgstr "``PySymtable_Free()``" msgid "``Py_SymtableString()``" -msgstr "" +msgstr "``Py_SymtableString()``" msgid "``Py_SymtableStringObject()``" -msgstr "" +msgstr "``Py_SymtableStringObject()``" msgid "" "The ``Py_SymtableString()`` function was part the stable ABI by mistake but " @@ -2572,34 +2613,34 @@ msgid "" msgstr "" msgid "``PyAST_Compile()``" -msgstr "" +msgstr "``PyAST_Compile()``" msgid "``PyAST_CompileEx()``" -msgstr "" +msgstr "``PyAST_CompileEx()``" msgid "``PyAST_CompileObject()``" -msgstr "" +msgstr "``PyAST_CompileObject()``" msgid "``PyFuture_FromAST()``" -msgstr "" +msgstr "``PyFuture_FromAST()``" msgid "``PyFuture_FromASTObject()``" -msgstr "" +msgstr "``PyFuture_FromASTObject()``" msgid "``PyParser_ASTFromFile()``" -msgstr "" +msgstr "``PyParser_ASTFromFile()``" msgid "``PyParser_ASTFromFileObject()``" -msgstr "" +msgstr "``PyParser_ASTFromFileObject()``" msgid "``PyParser_ASTFromFilename()``" -msgstr "" +msgstr "``PyParser_ASTFromFilename()``" msgid "``PyParser_ASTFromString()``" -msgstr "" +msgstr "``PyParser_ASTFromString()``" msgid "``PyParser_ASTFromStringObject()``" -msgstr "" +msgstr "``PyParser_ASTFromStringObject()``" msgid "" "These functions were undocumented and excluded from the limited C API. " @@ -2610,24 +2651,143 @@ msgid "Remove the ``pyarena.h`` header file with functions:" msgstr "" msgid "``PyArena_New()``" -msgstr "" +msgstr "``PyArena_New()``" msgid "``PyArena_Free()``" -msgstr "" +msgstr "``PyArena_Free()``" msgid "``PyArena_Malloc()``" -msgstr "" +msgstr "``PyArena_Malloc()``" msgid "``PyArena_AddPyObject()``" -msgstr "" +msgstr "``PyArena_AddPyObject()``" msgid "" "These functions were undocumented, excluded from the limited C API, and were " -"only used internally by the compiler. (Contributed by Victor Stinner in :" -"issue:`43244`.)" +"only used internally by the compiler. (Contributed by Victor Stinner " +"in :issue:`43244`.)" msgstr "" msgid "" "The ``PyThreadState.use_tracing`` member has been removed to optimize " "Python. (Contributed by Mark Shannon in :issue:`43760`.)" msgstr "" + +msgid "Notable security feature in 3.10.7" +msgstr "" + +msgid "" +"Converting between :class:`int` and :class:`str` in bases other than 2 " +"(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) " +"now raises a :exc:`ValueError` if the number of digits in string form is " +"above a limit to avoid potential denial of service attacks due to the " +"algorithmic complexity. This is a mitigation for `CVE-2020-10735 `_. This limit can be " +"configured or disabled by environment variable, command line flag, " +"or :mod:`sys` APIs. See the :ref:`integer string conversion length " +"limitation ` documentation. The default limit is 4300 " +"digits in string form." +msgstr "" + +msgid "Notable security feature in 3.10.8" +msgstr "" + +msgid "" +"The deprecated :mod:`mailcap` module now refuses to inject unsafe text " +"(filenames, MIME types, parameters) into shell commands. Instead of using " +"such text, it will warn and act as if a match was not found (or for test " +"commands, as if the test failed). (Contributed by Petr Viktorin " +"in :gh:`98966`.)" +msgstr "" + +msgid "Notable Changes in 3.10.12" +msgstr "" + +msgid "tarfile" +msgstr "" + +msgid "" +"The extraction methods in :mod:`tarfile`, and :func:`shutil.unpack_archive`, " +"have a new a *filter* argument that allows limiting tar features than may be " +"surprising or dangerous, such as creating files outside the destination " +"directory. See :ref:`tarfile-extraction-filter` for details. In Python 3.12, " +"use without the *filter* argument will show a :exc:`DeprecationWarning`. In " +"Python 3.14, the default will switch to ``'data'``. (Contributed by Petr " +"Viktorin in :pep:`706`.)" +msgstr "" + +msgid "Notable changes in 3.10.15" +msgstr "" + +msgid "ipaddress" +msgstr "" + +msgid "" +"Fixed ``is_global`` and ``is_private`` behavior in ``IPv4Address``, " +"``IPv6Address``, ``IPv4Network`` and ``IPv6Network``." +msgstr "" + +msgid "email" +msgstr "" + +msgid "Headers with embedded newlines are now quoted on output." +msgstr "" + +msgid "" +"The :mod:`~email.generator` will now refuse to serialize (write) headers " +"that are improperly folded or delimited, such that they would be parsed as " +"multiple headers or joined with adjacent data. If you need to turn this " +"safety feature off, " +"set :attr:`~email.policy.Policy.verify_generated_headers`. (Contributed by " +"Bas Bloemsaat and Petr Viktorin in :gh:`121650`.)" +msgstr "" + +msgid "" +":func:`email.utils.getaddresses` and :func:`email.utils.parseaddr` now " +"return ``('', '')`` 2-tuples in more situations where invalid email " +"addresses are encountered, instead of potentially inaccurate values. An " +"optional *strict* parameter was added to these two functions: use " +"``strict=False`` to get the old behavior, accepting malformed inputs. " +"``getattr(email.utils, 'supports_strict_parsing', False)`` can be used to " +"check if the *strict* paramater is available. (Contributed by Thomas Dwyer " +"and Victor Stinner for :gh:`102988` to improve the CVE-2023-27043 fix.)" +msgstr "" + +msgid "Notable changes in 3.10.18" +msgstr "" + +msgid "" +"The *strict* parameter to :func:`os.path.realpath` accepts a new " +"value, :data:`os.path.ALLOW_MISSING`. If used, errors other " +"than :exc:`FileNotFoundError` will be re-raised; the resulting path can be " +"missing but it will be free of symlinks. (Contributed by Petr Viktorin for " +"CVE 2025-4517.)" +msgstr "" + +msgid "" +":func:`~tarfile.data_filter` now normalizes symbolic link targets in order " +"to avoid path traversal attacks. (Contributed by Petr Viktorin " +"in :gh:`127987` and CVE 2025-4138.)" +msgstr "" + +msgid "" +":func:`~tarfile.TarFile.extractall` now skips fixing up directory attributes " +"when a directory was removed or replaced by another kind of file. " +"(Contributed by Petr Viktorin in :gh:`127987` and CVE 2024-12718.)" +msgstr "" + +msgid "" +":func:`~tarfile.TarFile.extract` and :func:`~tarfile.TarFile.extractall` now " +"(re-)apply the extraction filter when substituting a link (hard or symbolic) " +"with a copy of another archive member, and when fixing up directory " +"attributes. The former raises a new " +"exception, :exc:`~tarfile.LinkFallbackError`. (Contributed by Petr Viktorin " +"for CVE 2025-4330 and CVE 2024-12718.)" +msgstr "" + +msgid "" +":func:`~tarfile.TarFile.extract` and :func:`~tarfile.TarFile.extractall` no " +"longer extract rejected members when :func:`~tarfile.TarFile.errorlevel` is " +"zero. (Contributed by Matt Prodani and Petr Viktorin in :gh:`112887` and CVE " +"2025-4435.)" +msgstr "" diff --git a/whatsnew/3.11.po b/whatsnew/3.11.po deleted file mode 100644 index c155c88aa7..0000000000 --- a/whatsnew/3.11.po +++ /dev/null @@ -1,3421 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -# Translators: -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.11\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2022-11-05 19:49+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" - -msgid "What's New In Python 3.11" -msgstr "" - -msgid "Release" -msgstr "wydanie" - -msgid "|release|" -msgstr "|release|" - -msgid "Date" -msgstr "data" - -msgid "|today|" -msgstr "|today|" - -msgid "Editor" -msgstr "redakcja" - -msgid "Pablo Galindo Salgado" -msgstr "Pablo Galindo Salgado" - -msgid "" -"This article explains the new features in Python 3.11, compared to 3.10." -msgstr "" - -msgid "For full details, see the :ref:`changelog `." -msgstr "Pełne szczegóły znajdziesz w :ref:`changelogu `." - -msgid "Summary -- Release highlights" -msgstr "Podsumowanie – najważniejsze nowości" - -msgid "" -"Python 3.11 is between 10-60% faster than Python 3.10. On average, we " -"measured a 1.25x speedup on the standard benchmark suite. See :ref:" -"`whatsnew311-faster-cpython` for details." -msgstr "" - -msgid "New syntax features:" -msgstr "Nowe cechy składni:" - -msgid ":ref:`whatsnew311-pep654`" -msgstr "" - -msgid "New built-in features:" -msgstr "Nowe wbudowane funkcje:" - -msgid ":ref:`whatsnew311-pep678`" -msgstr "" - -msgid "New standard library modules:" -msgstr "" - -msgid "" -":pep:`680`: :mod:`tomllib` — Support for parsing `TOML `_ " -"in the Standard Library" -msgstr "" - -msgid "Interpreter improvements:" -msgstr "Udoskonalenia interpretera:" - -msgid ":ref:`whatsnew311-pep657`" -msgstr "" - -msgid "" -"New :option:`-P` command line option and :envvar:`PYTHONSAFEPATH` " -"environment variable to :ref:`disable automatically prepending potentially " -"unsafe paths ` to :data:`sys.path`" -msgstr "" - -msgid "New typing features:" -msgstr "Nowe cechy typowania:" - -msgid ":ref:`whatsnew311-pep646`" -msgstr "" - -msgid ":ref:`whatsnew311-pep655`" -msgstr "" - -msgid ":ref:`whatsnew311-pep673`" -msgstr "" - -msgid ":ref:`whatsnew311-pep675`" -msgstr "" - -msgid ":ref:`whatsnew311-pep681`" -msgstr "" - -msgid "Important deprecations, removals and restrictions:" -msgstr "" - -msgid "" -":pep:`594`: :ref:`Many legacy standard library modules have been deprecated " -"` and will be removed in Python 3.13" -msgstr "" - -msgid "" -":pep:`624`: :ref:`Py_UNICODE encoder APIs have been removed `" -msgstr "" - -msgid "" -":pep:`670`: :ref:`Macros converted to static inline functions `" -msgstr "" - -msgid "New Features" -msgstr "Nowe funkcjonalności" - -msgid "PEP 657: Fine-grained error locations in tracebacks" -msgstr "" - -msgid "" -"When printing tracebacks, the interpreter will now point to the exact " -"expression that caused the error, instead of just the line. For example:" -msgstr "" - -msgid "" -"Previous versions of the interpreter would point to just the line, making it " -"ambiguous which object was ``None``. These enhanced errors can also be " -"helpful when dealing with deeply nested :class:`dict` objects and multiple " -"function calls:" -msgstr "" - -msgid "As well as complex arithmetic expressions:" -msgstr "" - -msgid "" -"Additionally, the information used by the enhanced traceback feature is made " -"available via a general API, that can be used to correlate :term:`bytecode` :" -"ref:`instructions ` with source code location. This information " -"can be retrieved using:" -msgstr "" - -msgid "The :meth:`codeobject.co_positions` method in Python." -msgstr "" - -msgid "The :c:func:`PyCode_Addr2Location` function in the C API." -msgstr "" - -msgid "" -"See :pep:`657` for more details. (Contributed by Pablo Galindo, Batuhan " -"Taskaya and Ammar Askar in :issue:`43950`.)" -msgstr "" - -msgid "" -"This feature requires storing column positions in :ref:`codeobjects`, which " -"may result in a small increase in interpreter memory usage and disk usage " -"for compiled Python files. To avoid storing the extra information and " -"deactivate printing the extra traceback information, use the :option:`-X " -"no_debug_ranges <-X>` command line option or the :envvar:" -"`PYTHONNODEBUGRANGES` environment variable." -msgstr "" - -msgid "PEP 654: Exception Groups and ``except*``" -msgstr "" - -msgid "" -":pep:`654` introduces language features that enable a program to raise and " -"handle multiple unrelated exceptions simultaneously. The builtin types :exc:" -"`ExceptionGroup` and :exc:`BaseExceptionGroup` make it possible to group " -"exceptions and raise them together, and the new :keyword:`except* " -"` syntax generalizes :keyword:`except` to match subgroups of " -"exception groups." -msgstr "" - -msgid "See :pep:`654` for more details." -msgstr "" - -msgid "" -"(Contributed by Irit Katriel in :issue:`45292`. PEP written by Irit Katriel, " -"Yury Selivanov and Guido van Rossum.)" -msgstr "" - -msgid "PEP 678: Exceptions can be enriched with notes" -msgstr "" - -msgid "" -"The :meth:`~BaseException.add_note` method is added to :exc:`BaseException`. " -"It can be used to enrich exceptions with context information that is not " -"available at the time when the exception is raised. The added notes appear " -"in the default traceback." -msgstr "" - -msgid "See :pep:`678` for more details." -msgstr "" - -msgid "" -"(Contributed by Irit Katriel in :issue:`45607`. PEP written by Zac Hatfield-" -"Dodds.)" -msgstr "" - -msgid "Windows ``py.exe`` launcher improvements" -msgstr "" - -msgid "" -"The copy of the :ref:`launcher` included with Python 3.11 has been " -"significantly updated. It now supports company/tag syntax as defined in :pep:" -"`514` using the ``-V:/`` argument instead of the limited ``-" -".``. This allows launching distributions other than " -"``PythonCore``, the one hosted on `python.org `_." -msgstr "" - -msgid "" -"When using ``-V:`` selectors, either company or tag can be omitted, but all " -"installs will be searched. For example, ``-V:OtherPython/`` will select the " -"\"best\" tag registered for ``OtherPython``, while ``-V:3.11`` or ``-" -"V:/3.11`` will select the \"best\" distribution with tag ``3.11``." -msgstr "" - -msgid "" -"When using the legacy ``-``, ``-.``, ``--" -"`` or ``-.-`` arguments, all existing " -"behaviour should be preserved from past versions, and only releases from " -"``PythonCore`` will be selected. However, the ``-64`` suffix now implies " -"\"not 32-bit\" (not necessarily x86-64), as there are multiple supported 64-" -"bit platforms. 32-bit runtimes are detected by checking the runtime's tag " -"for a ``-32`` suffix. All releases of Python since 3.5 have included this in " -"their 32-bit builds." -msgstr "" - -msgid "New Features Related to Type Hints" -msgstr "" - -msgid "" -"This section covers major changes affecting :pep:`484` type hints and the :" -"mod:`typing` module." -msgstr "" - -msgid "PEP 646: Variadic generics" -msgstr "" - -msgid "" -":pep:`484` previously introduced :data:`~typing.TypeVar`, enabling creation " -"of generics parameterised with a single type. :pep:`646` adds :data:`~typing." -"TypeVarTuple`, enabling parameterisation with an *arbitrary* number of " -"types. In other words, a :data:`~typing.TypeVarTuple` is a *variadic* type " -"variable, enabling *variadic* generics." -msgstr "" - -msgid "" -"This enables a wide variety of use cases. In particular, it allows the type " -"of array-like structures in numerical computing libraries such as NumPy and " -"TensorFlow to be parameterised with the array *shape*. Static type checkers " -"will now be able to catch shape-related bugs in code that uses these " -"libraries." -msgstr "" - -msgid "See :pep:`646` for more details." -msgstr "" - -msgid "" -"(Contributed by Matthew Rahtz in :issue:`43224`, with contributions by " -"Serhiy Storchaka and Jelle Zijlstra. PEP written by Mark Mendoza, Matthew " -"Rahtz, Pradeep Kumar Srinivasan, and Vincent Siles.)" -msgstr "" - -msgid "" -"PEP 655: Marking individual ``TypedDict`` items as required or not-required" -msgstr "" - -msgid "" -":data:`~typing.Required` and :data:`~typing.NotRequired` provide a " -"straightforward way to mark whether individual items in a :class:`~typing." -"TypedDict` must be present. Previously, this was only possible using " -"inheritance." -msgstr "" - -msgid "" -"All fields are still required by default, unless the *total* parameter is " -"set to ``False``, in which case all fields are still not-required by " -"default. For example, the following specifies a :class:`!TypedDict` with one " -"required and one not-required key::" -msgstr "" - -msgid "The following definition is equivalent::" -msgstr "" - -msgid "See :pep:`655` for more details." -msgstr "" - -msgid "" -"(Contributed by David Foster and Jelle Zijlstra in :issue:`47087`. PEP " -"written by David Foster.)" -msgstr "" - -msgid "PEP 673: ``Self`` type" -msgstr "" - -msgid "" -"The new :data:`~typing.Self` annotation provides a simple and intuitive way " -"to annotate methods that return an instance of their class. This behaves the " -"same as the :class:`~typing.TypeVar`-based approach :pep:`specified in PEP " -"484 <484#annotating-instance-and-class-methods>`, but is more concise and " -"easier to follow." -msgstr "" - -msgid "" -"Common use cases include alternative constructors provided as :func:" -"`classmethod `\\s, and :meth:`~object.__enter__` methods that " -"return ``self``::" -msgstr "" - -msgid "" -":data:`~typing.Self` can also be used to annotate method parameters or " -"attributes of the same type as their enclosing class." -msgstr "" - -msgid "See :pep:`673` for more details." -msgstr "" - -msgid "" -"(Contributed by James Hilton-Balfe in :issue:`46534`. PEP written by Pradeep " -"Kumar Srinivasan and James Hilton-Balfe.)" -msgstr "" - -msgid "PEP 675: Arbitrary literal string type" -msgstr "" - -msgid "" -"The new :data:`~typing.LiteralString` annotation may be used to indicate " -"that a function parameter can be of any literal string type. This allows a " -"function to accept arbitrary literal string types, as well as strings " -"created from other literal strings. Type checkers can then enforce that " -"sensitive functions, such as those that execute SQL statements or shell " -"commands, are called only with static arguments, providing protection " -"against injection attacks." -msgstr "" - -msgid "For example, a SQL query function could be annotated as follows::" -msgstr "" - -msgid "See :pep:`675` for more details." -msgstr "" - -msgid "" -"(Contributed by Jelle Zijlstra in :issue:`47088`. PEP written by Pradeep " -"Kumar Srinivasan and Graham Bleaney.)" -msgstr "" - -msgid "PEP 681: Data class transforms" -msgstr "" - -msgid "" -":data:`~typing.dataclass_transform` may be used to decorate a class, " -"metaclass, or a function that is itself a decorator. The presence of " -"``@dataclass_transform()`` tells a static type checker that the decorated " -"object performs runtime \"magic\" that transforms a class, giving it :func:" -"`dataclass `-like behaviors." -msgstr "" - -msgid "For example::" -msgstr "Dla przykładu::" - -msgid "See :pep:`681` for more details." -msgstr "" - -msgid "" -"(Contributed by Jelle Zijlstra in :gh:`91860`. PEP written by Erik De Bonte " -"and Eric Traut.)" -msgstr "" - -msgid "PEP 563 may not be the future" -msgstr "" - -msgid "" -":pep:`563` Postponed Evaluation of Annotations (the ``from __future__ import " -"annotations`` :ref:`future statement `) that was originally planned " -"for release in Python 3.10 has been put on hold indefinitely. See `this " -"message from the Steering Council `__ for more " -"information." -msgstr "" - -msgid "Other Language Changes" -msgstr "" - -msgid "" -"Starred unpacking expressions can now be used in :keyword:`for` statements. " -"(See :issue:`46725` for more details.)" -msgstr "" - -msgid "" -"Asynchronous :ref:`comprehensions ` are now allowed inside " -"comprehensions in :ref:`asynchronous functions `. Outer " -"comprehensions implicitly become asynchronous in this case. (Contributed by " -"Serhiy Storchaka in :issue:`33346`.)" -msgstr "" - -msgid "" -"A :exc:`TypeError` is now raised instead of an :exc:`AttributeError` in :" -"keyword:`with` statements and :meth:`contextlib.ExitStack.enter_context` for " -"objects that do not support the :term:`context manager` protocol, and in :" -"keyword:`async with` statements and :meth:`contextlib.AsyncExitStack." -"enter_async_context` for objects not supporting the :term:`asynchronous " -"context manager` protocol. (Contributed by Serhiy Storchaka in :issue:" -"`12022` and :issue:`44471`.)" -msgstr "" - -msgid "" -"Added :meth:`object.__getstate__`, which provides the default implementation " -"of the :meth:`!__getstate__` method. :mod:`copy`\\ing and :mod:`pickle`\\ing " -"instances of subclasses of builtin types :class:`bytearray`, :class:`set`, :" -"class:`frozenset`, :class:`collections.OrderedDict`, :class:`collections." -"deque`, :class:`weakref.WeakSet`, and :class:`datetime.tzinfo` now copies " -"and pickles instance attributes implemented as :term:`slots <__slots__>`. " -"(Contributed by Serhiy Storchaka in :issue:`26579`.)" -msgstr "" - -msgid "" -"Added a :option:`-P` command line option and a :envvar:`PYTHONSAFEPATH` " -"environment variable, which disable the automatic prepending to :data:`sys." -"path` of the script's directory when running a script, or the current " -"directory when using :option:`-c` and :option:`-m`. This ensures only stdlib " -"and installed modules are picked up by :keyword:`import`, and avoids " -"unintentionally or maliciously shadowing modules with those in a local (and " -"typically user-writable) directory. (Contributed by Victor Stinner in :gh:" -"`57684`.)" -msgstr "" - -msgid "" -"A ``\"z\"`` option was added to the :ref:`formatspec` that coerces negative " -"to positive zero after rounding to the format precision. See :pep:`682` for " -"more details. (Contributed by John Belmonte in :gh:`90153`.)" -msgstr "" - -msgid "" -"Bytes are no longer accepted on :data:`sys.path`. Support broke sometime " -"between Python 3.2 and 3.6, with no one noticing until after Python 3.10.0 " -"was released. In addition, bringing back support would be problematic due to " -"interactions between :option:`-b` and :data:`sys.path_importer_cache` when " -"there is a mixture of :class:`str` and :class:`bytes` keys. (Contributed by " -"Thomas Grainger in :gh:`91181`.)" -msgstr "" - -msgid "Other CPython Implementation Changes" -msgstr "" - -msgid "" -"The special methods :meth:`~object.__complex__` for :class:`complex` and :" -"meth:`~object.__bytes__` for :class:`bytes` are implemented to support the :" -"class:`typing.SupportsComplex` and :class:`typing.SupportsBytes` protocols. " -"(Contributed by Mark Dickinson and Dong-hee Na in :issue:`24234`.)" -msgstr "" - -msgid "" -"``siphash13`` is added as a new internal hashing algorithm. It has similar " -"security properties as ``siphash24``, but it is slightly faster for long " -"inputs. :class:`str`, :class:`bytes`, and some other types now use it as the " -"default algorithm for :func:`hash`. :pep:`552` :ref:`hash-based .pyc files " -"` now use ``siphash13`` too. (Contributed by Inada Naoki " -"in :issue:`29410`.)" -msgstr "" - -msgid "" -"When an active exception is re-raised by a :keyword:`raise` statement with " -"no parameters, the traceback attached to this exception is now always ``sys." -"exc_info()[1].__traceback__``. This means that changes made to the traceback " -"in the current :keyword:`except` clause are reflected in the re-raised " -"exception. (Contributed by Irit Katriel in :issue:`45711`.)" -msgstr "" - -msgid "" -"The interpreter state's representation of handled exceptions (aka " -"``exc_info`` or ``_PyErr_StackItem``) now only has the ``exc_value`` field; " -"``exc_type`` and ``exc_traceback`` have been removed, as they can be derived " -"from ``exc_value``. (Contributed by Irit Katriel in :issue:`45711`.)" -msgstr "" - -msgid "" -"A new :ref:`command line option `, ``AppendPath``, has " -"been added for the Windows installer. It behaves similarly to " -"``PrependPath``, but appends the install and scripts directories instead of " -"prepending them. (Contributed by Bastian Neuburger in :issue:`44934`.)" -msgstr "" - -msgid "" -"The :c:member:`PyConfig.module_search_paths_set` field must now be set to " -"``1`` for initialization to use :c:member:`PyConfig.module_search_paths` to " -"initialize :data:`sys.path`. Otherwise, initialization will recalculate the " -"path and replace any values added to ``module_search_paths``." -msgstr "" - -msgid "" -"The output of the :option:`--help` option now fits in 50 lines/80 columns. " -"Information about :ref:`Python environment variables ` " -"and :option:`-X` options is now available using the respective :option:`--" -"help-env` and :option:`--help-xoptions` flags, and with the new :option:`--" -"help-all`. (Contributed by Éric Araujo in :issue:`46142`.)" -msgstr "" - -msgid "" -"Converting between :class:`int` and :class:`str` in bases other than 2 " -"(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) " -"now raises a :exc:`ValueError` if the number of digits in string form is " -"above a limit to avoid potential denial of service attacks due to the " -"algorithmic complexity. This is a mitigation for `CVE-2020-10735 `_. This limit can be " -"configured or disabled by environment variable, command line flag, or :mod:" -"`sys` APIs. See the :ref:`integer string conversion length limitation " -"` documentation. The default limit is 4300 digits in " -"string form." -msgstr "" - -msgid "New Modules" -msgstr "" - -msgid "" -":mod:`tomllib`: For parsing `TOML `_. See :pep:`680` for " -"more details. (Contributed by Taneli Hukkinen in :issue:`40059`.)" -msgstr "" - -msgid "" -":mod:`wsgiref.types`: :pep:`WSGI <3333>`-specific types for static type " -"checking. (Contributed by Sebastian Rittau in :issue:`42012`.)" -msgstr "" - -msgid "Improved Modules" -msgstr "" - -msgid "asyncio" -msgstr "" - -msgid "" -"Added the :class:`~asyncio.TaskGroup` class, an :ref:`asynchronous context " -"manager ` holding a group of tasks that will wait " -"for all of them upon exit. For new code this is recommended over using :func:" -"`~asyncio.create_task` and :func:`~asyncio.gather` directly. (Contributed by " -"Yury Selivanov and others in :gh:`90908`.)" -msgstr "" - -msgid "" -"Added :func:`~asyncio.timeout`, an asynchronous context manager for setting " -"a timeout on asynchronous operations. For new code this is recommended over " -"using :func:`~asyncio.wait_for` directly. (Contributed by Andrew Svetlov in :" -"gh:`90927`.)" -msgstr "" - -msgid "" -"Added the :class:`~asyncio.Runner` class, which exposes the machinery used " -"by :func:`~asyncio.run`. (Contributed by Andrew Svetlov in :gh:`91218`.)" -msgstr "" - -msgid "" -"Added the :class:`~asyncio.Barrier` class to the synchronization primitives " -"in the asyncio library, and the related :exc:`~asyncio.BrokenBarrierError` " -"exception. (Contributed by Yves Duprat and Andrew Svetlov in :gh:`87518`.)" -msgstr "" - -msgid "" -"Added keyword argument *all_errors* to :meth:`asyncio.loop." -"create_connection` so that multiple connection errors can be raised as an :" -"exc:`ExceptionGroup`." -msgstr "" - -msgid "" -"Added the :meth:`asyncio.StreamWriter.start_tls` method for upgrading " -"existing stream-based connections to TLS. (Contributed by Ian Good in :issue:" -"`34975`.)" -msgstr "" - -msgid "" -"Added raw datagram socket functions to the event loop: :meth:`~asyncio.loop." -"sock_sendto`, :meth:`~asyncio.loop.sock_recvfrom` and :meth:`~asyncio.loop." -"sock_recvfrom_into`. These have implementations in :class:`~asyncio." -"SelectorEventLoop` and :class:`~asyncio.ProactorEventLoop`. (Contributed by " -"Alex Grönholm in :issue:`46805`.)" -msgstr "" - -msgid "" -"Added :meth:`~asyncio.Task.cancelling` and :meth:`~asyncio.Task.uncancel` " -"methods to :class:`~asyncio.Task`. These are primarily intended for internal " -"use, notably by :class:`~asyncio.TaskGroup`." -msgstr "" - -msgid "contextlib" -msgstr "" - -msgid "" -"Added non parallel-safe :func:`~contextlib.chdir` context manager to change " -"the current working directory and then restore it on exit. Simple wrapper " -"around :func:`~os.chdir`. (Contributed by Filipe Laíns in :issue:`25625`)" -msgstr "" - -msgid "dataclasses" -msgstr "" - -msgid "" -"Change field default mutability check, allowing only defaults which are :" -"term:`hashable` instead of any object which is not an instance of :class:" -"`dict`, :class:`list` or :class:`set`. (Contributed by Eric V. Smith in :" -"issue:`44674`.)" -msgstr "" - -msgid "datetime" -msgstr "" - -msgid "" -"Add :attr:`datetime.UTC`, a convenience alias for :attr:`datetime.timezone." -"utc`. (Contributed by Kabir Kwatra in :gh:`91973`.)" -msgstr "" - -msgid "" -":meth:`datetime.date.fromisoformat`, :meth:`datetime.time.fromisoformat` " -"and :meth:`datetime.datetime.fromisoformat` can now be used to parse most " -"ISO 8601 formats (barring only those that support fractional hours and " -"minutes). (Contributed by Paul Ganssle in :gh:`80010`.)" -msgstr "" - -msgid "enum" -msgstr "" - -msgid "" -"Renamed :class:`!EnumMeta` to :class:`~enum.EnumType` (:class:`!EnumMeta` " -"kept as an alias)." -msgstr "" - -msgid "" -"Added :class:`~enum.StrEnum`, with members that can be used as (and must be) " -"strings." -msgstr "" - -msgid "" -"Added :class:`~enum.ReprEnum`, which only modifies the :meth:`~object." -"__repr__` of members while returning their literal values (rather than " -"names) for :meth:`~object.__str__` and :meth:`~object.__format__` (used by :" -"func:`str`, :func:`format` and :term:`f-string`\\s)." -msgstr "" - -msgid "" -"Changed :class:`~enum.IntEnum`, :class:`~enum.IntFlag` and :class:`~enum." -"StrEnum` to now inherit from :class:`~enum.ReprEnum`, so their :func:`str` " -"output now matches :func:`format` (both ``str(AnIntEnum.ONE)`` and " -"``format(AnIntEnum.ONE)`` return ``'1'``, whereas before ``str(AnIntEnum." -"ONE)`` returned ``'AnIntEnum.ONE'``." -msgstr "" - -msgid "" -"Changed :meth:`Enum.__format__() ` (the default for :" -"func:`format`, :meth:`str.format` and :term:`f-string`\\s) of enums with " -"mixed-in types (e.g. :class:`int`, :class:`str`) to also include the class " -"name in the output, not just the member's key. This matches the existing " -"behavior of :meth:`enum.Enum.__str__`, returning e.g. ``'AnEnum.MEMBER'`` " -"for an enum ``AnEnum(str, Enum)`` instead of just ``'MEMBER'``." -msgstr "" - -msgid "" -"Added a new *boundary* class parameter to :class:`~enum.Flag` enums and the :" -"class:`~enum.FlagBoundary` enum with its options, to control how to handle " -"out-of-range flag values." -msgstr "" - -msgid "" -"Added the :func:`~enum.verify` enum decorator and the :class:`~enum." -"EnumCheck` enum with its options, to check enum classes against several " -"specific constraints." -msgstr "" - -msgid "" -"Added the :func:`~enum.member` and :func:`~enum.nonmember` decorators, to " -"ensure the decorated object is/is not converted to an enum member." -msgstr "" - -msgid "" -"Added the :func:`~enum.property` decorator, which works like :func:" -"`property` except for enums. Use this instead of :func:`types." -"DynamicClassAttribute`." -msgstr "" - -msgid "" -"Added the :func:`~enum.global_enum` enum decorator, which adjusts :meth:" -"`~object.__repr__` and :meth:`~object.__str__` to show values as members of " -"their module rather than the enum class. For example, ``'re.ASCII'`` for " -"the :data:`~re.ASCII` member of :class:`re.RegexFlag` rather than " -"``'RegexFlag.ASCII'``." -msgstr "" - -msgid "" -"Enhanced :class:`~enum.Flag` to support :func:`len`, iteration and :keyword:" -"`in`/:keyword:`not in` on its members. For example, the following now works: " -"``len(AFlag(3)) == 2 and list(AFlag(3)) == (AFlag.ONE, AFlag.TWO)``" -msgstr "" - -msgid "" -"Changed :class:`~enum.Enum` and :class:`~enum.Flag` so that members are now " -"defined before :meth:`~object.__init_subclass__` is called; :func:`dir` now " -"includes methods, etc., from mixed-in data types." -msgstr "" - -msgid "" -"Changed :class:`~enum.Flag` to only consider primary values (power of two) " -"canonical while composite values (``3``, ``6``, ``10``, etc.) are considered " -"aliases; inverted flags are coerced to their positive equivalent." -msgstr "" - -msgid "fcntl" -msgstr "" - -msgid "" -"On FreeBSD, the :data:`!F_DUP2FD` and :data:`!F_DUP2FD_CLOEXEC` flags " -"respectively are supported, the former equals to ``dup2`` usage while the " -"latter set the ``FD_CLOEXEC`` flag in addition." -msgstr "" - -msgid "fractions" -msgstr "" - -msgid "" -"Support :PEP:`515`-style initialization of :class:`~fractions.Fraction` from " -"string. (Contributed by Sergey B Kirpichev in :issue:`44258`.)" -msgstr "" - -msgid "" -":class:`~fractions.Fraction` now implements an ``__int__`` method, so that " -"an ``isinstance(some_fraction, typing.SupportsInt)`` check passes. " -"(Contributed by Mark Dickinson in :issue:`44547`.)" -msgstr "" - -msgid "functools" -msgstr "" - -msgid "" -":func:`functools.singledispatch` now supports :data:`types.UnionType` and :" -"data:`typing.Union` as annotations to the dispatch argument.::" -msgstr "" - -msgid "(Contributed by Yurii Karabas in :issue:`46014`.)" -msgstr "" - -msgid "hashlib" -msgstr "" - -msgid "" -":func:`hashlib.blake2b` and :func:`hashlib.blake2s` now prefer `libb2`_ over " -"Python's vendored copy. (Contributed by Christian Heimes in :issue:`47095`.)" -msgstr "" - -msgid "" -"The internal ``_sha3`` module with SHA3 and SHAKE algorithms now uses " -"*tiny_sha3* instead of the *Keccak Code Package* to reduce code and binary " -"size. The :mod:`hashlib` module prefers optimized SHA3 and SHAKE " -"implementations from OpenSSL. The change affects only installations without " -"OpenSSL support. (Contributed by Christian Heimes in :issue:`47098`.)" -msgstr "" - -msgid "" -"Add :func:`hashlib.file_digest`, a helper function for efficient hashing of " -"files or file-like objects. (Contributed by Christian Heimes in :gh:`89313`.)" -msgstr "" - -msgid "IDLE and idlelib" -msgstr "" - -msgid "" -"Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex Waygood " -"and Terry Jan Reedy in :issue:`45447`.)" -msgstr "" - -msgid "" -"Include prompts when saving Shell with inputs and outputs. (Contributed by " -"Terry Jan Reedy in :gh:`95191`.)" -msgstr "" - -msgid "inspect" -msgstr "" - -msgid "" -"Add :func:`~inspect.getmembers_static` to return all members without " -"triggering dynamic lookup via the descriptor protocol. (Contributed by " -"Weipeng Hong in :issue:`30533`.)" -msgstr "" - -msgid "" -"Add :func:`~inspect.ismethodwrapper` for checking if the type of an object " -"is a :class:`~types.MethodWrapperType`. (Contributed by Hakan Çelik in :" -"issue:`29418`.)" -msgstr "" - -msgid "" -"Change the frame-related functions in the :mod:`inspect` module to return " -"new :class:`~inspect.FrameInfo` and :class:`~inspect.Traceback` class " -"instances (backwards compatible with the previous :term:`named tuple`-like " -"interfaces) that includes the extended :pep:`657` position information (end " -"line number, column and end column). The affected functions are:" -msgstr "" - -msgid ":func:`inspect.getframeinfo`" -msgstr "" - -msgid ":func:`inspect.getouterframes`" -msgstr "" - -msgid ":func:`inspect.getinnerframes`," -msgstr "" - -msgid ":func:`inspect.stack`" -msgstr "" - -msgid ":func:`inspect.trace`" -msgstr "" - -msgid "(Contributed by Pablo Galindo in :gh:`88116`.)" -msgstr "" - -msgid "locale" -msgstr "" - -msgid "" -"Add :func:`locale.getencoding` to get the current locale encoding. It is " -"similar to ``locale.getpreferredencoding(False)`` but ignores the :ref:" -"`Python UTF-8 Mode `." -msgstr "" - -msgid "logging" -msgstr "" - -msgid "" -"Added :func:`~logging.getLevelNamesMapping` to return a mapping from logging " -"level names (e.g. ``'CRITICAL'``) to the values of their corresponding :ref:" -"`levels` (e.g. ``50``, by default). (Contributed by Andrei Kulakovin in :gh:" -"`88024`.)" -msgstr "" - -msgid "" -"Added a :meth:`~logging.handlers.SysLogHandler.createSocket` method to :" -"class:`~logging.handlers.SysLogHandler`, to match :meth:`SocketHandler." -"createSocket() `. It is called " -"automatically during handler initialization and when emitting an event, if " -"there is no active socket. (Contributed by Kirill Pinchuk in :gh:`88457`.)" -msgstr "" - -msgid "math" -msgstr "" - -msgid "" -"Add :func:`math.exp2`: return 2 raised to the power of x. (Contributed by " -"Gideon Mitchell in :issue:`45917`.)" -msgstr "" - -msgid "" -"Add :func:`math.cbrt`: return the cube root of x. (Contributed by Ajith " -"Ramachandran in :issue:`44357`.)" -msgstr "" - -msgid "" -"The behaviour of two :func:`math.pow` corner cases was changed, for " -"consistency with the IEEE 754 specification. The operations ``math.pow(0.0, -" -"math.inf)`` and ``math.pow(-0.0, -math.inf)`` now return ``inf``. Previously " -"they raised :exc:`ValueError`. (Contributed by Mark Dickinson in :issue:" -"`44339`.)" -msgstr "" - -msgid "" -"The :data:`math.nan` value is now always available. (Contributed by Victor " -"Stinner in :issue:`46917`.)" -msgstr "" - -msgid "operator" -msgstr "" - -msgid "" -"A new function ``operator.call`` has been added, such that ``operator." -"call(obj, *args, **kwargs) == obj(*args, **kwargs)``. (Contributed by Antony " -"Lee in :issue:`44019`.)" -msgstr "" - -msgid "os" -msgstr "" - -msgid "" -"On Windows, :func:`os.urandom` now uses ``BCryptGenRandom()``, instead of " -"``CryptGenRandom()`` which is deprecated. (Contributed by Dong-hee Na in :" -"issue:`44611`.)" -msgstr "" - -msgid "pathlib" -msgstr "" - -msgid "" -":meth:`~pathlib.Path.glob` and :meth:`~pathlib.Path.rglob` return only " -"directories if *pattern* ends with a pathname components separator: :data:" -"`~os.sep` or :data:`~os.altsep`. (Contributed by Eisuke Kawasima in :issue:" -"`22276` and :issue:`33392`.)" -msgstr "" - -msgid "re" -msgstr "" - -msgid "" -"Atomic grouping (``(?>...)``) and possessive quantifiers (``*+``, ``++``, ``?" -"+``, ``{m,n}+``) are now supported in regular expressions. (Contributed by " -"Jeffrey C. Jacobs and Serhiy Storchaka in :issue:`433030`.)" -msgstr "" - -msgid "shutil" -msgstr "" - -msgid "" -"Add optional parameter *dir_fd* in :func:`shutil.rmtree`. (Contributed by " -"Serhiy Storchaka in :issue:`46245`.)" -msgstr "" - -msgid "socket" -msgstr "" - -msgid "" -"Add CAN Socket support for NetBSD. (Contributed by Thomas Klausner in :issue:" -"`30512`.)" -msgstr "" - -msgid "" -":meth:`~socket.create_connection` has an option to raise, in case of failure " -"to connect, an :exc:`ExceptionGroup` containing all errors instead of only " -"raising the last error. (Contributed by Irit Katriel in :issue:`29980`.)" -msgstr "" - -msgid "sqlite3" -msgstr "" - -msgid "" -"You can now disable the authorizer by passing :const:`None` to :meth:" -"`~sqlite3.Connection.set_authorizer`. (Contributed by Erlend E. Aasland in :" -"issue:`44491`.)" -msgstr "" - -msgid "" -"Collation name :meth:`~sqlite3.Connection.create_collation` can now contain " -"any Unicode character. Collation names with invalid characters now raise :" -"exc:`UnicodeEncodeError` instead of :exc:`sqlite3.ProgrammingError`. " -"(Contributed by Erlend E. Aasland in :issue:`44688`.)" -msgstr "" - -msgid "" -":mod:`sqlite3` exceptions now include the SQLite extended error code as :" -"attr:`~sqlite3.Error.sqlite_errorcode` and the SQLite error name as :attr:" -"`~sqlite3.Error.sqlite_errorname`. (Contributed by Aviv Palivoda, Daniel " -"Shahaf, and Erlend E. Aasland in :issue:`16379` and :issue:`24139`.)" -msgstr "" - -msgid "" -"Add :meth:`~sqlite3.Connection.setlimit` and :meth:`~sqlite3.Connection." -"getlimit` to :class:`sqlite3.Connection` for setting and getting SQLite " -"limits by connection basis. (Contributed by Erlend E. Aasland in :issue:" -"`45243`.)" -msgstr "" - -msgid "" -":mod:`sqlite3` now sets :attr:`sqlite3.threadsafety` based on the default " -"threading mode the underlying SQLite library has been compiled with. " -"(Contributed by Erlend E. Aasland in :issue:`45613`.)" -msgstr "" - -msgid "" -":mod:`sqlite3` C callbacks now use unraisable exceptions if callback " -"tracebacks are enabled. Users can now register an :func:`unraisable hook " -"handler ` to improve their debug experience. " -"(Contributed by Erlend E. Aasland in :issue:`45828`.)" -msgstr "" - -msgid "" -"Fetch across rollback no longer raises :exc:`~sqlite3.InterfaceError`. " -"Instead we leave it to the SQLite library to handle these cases. " -"(Contributed by Erlend E. Aasland in :issue:`44092`.)" -msgstr "" - -msgid "" -"Add :meth:`~sqlite3.Connection.serialize` and :meth:`~sqlite3.Connection." -"deserialize` to :class:`sqlite3.Connection` for serializing and " -"deserializing databases. (Contributed by Erlend E. Aasland in :issue:" -"`41930`.)" -msgstr "" - -msgid "" -"Add :meth:`~sqlite3.Connection.create_window_function` to :class:`sqlite3." -"Connection` for creating aggregate window functions. (Contributed by Erlend " -"E. Aasland in :issue:`34916`.)" -msgstr "" - -msgid "" -"Add :meth:`~sqlite3.Connection.blobopen` to :class:`sqlite3.Connection`. :" -"class:`sqlite3.Blob` allows incremental I/O operations on blobs. " -"(Contributed by Aviv Palivoda and Erlend E. Aasland in :issue:`24905`.)" -msgstr "" - -msgid "string" -msgstr "" - -msgid "" -"Add :meth:`~string.Template.get_identifiers` and :meth:`~string.Template." -"is_valid` to :class:`string.Template`, which respectively return all valid " -"placeholders, and whether any invalid placeholders are present. (Contributed " -"by Ben Kehoe in :gh:`90465`.)" -msgstr "" - -msgid "sys" -msgstr "" - -msgid "" -":func:`sys.exc_info` now derives the ``type`` and ``traceback`` fields from " -"the ``value`` (the exception instance), so when an exception is modified " -"while it is being handled, the changes are reflected in the results of " -"subsequent calls to :func:`!exc_info`. (Contributed by Irit Katriel in :" -"issue:`45711`.)" -msgstr "" - -msgid "" -"Add :func:`sys.exception` which returns the active exception instance " -"(equivalent to ``sys.exc_info()[1]``). (Contributed by Irit Katriel in :" -"issue:`46328`.)" -msgstr "" - -msgid "" -"Add the :data:`sys.flags.safe_path ` flag. (Contributed by Victor " -"Stinner in :gh:`57684`.)" -msgstr "" - -msgid "sysconfig" -msgstr "" - -msgid "" -"Three new :ref:`installation schemes ` (*posix_venv*, " -"*nt_venv* and *venv*) were added and are used when Python creates new " -"virtual environments or when it is running from a virtual environment. The " -"first two schemes (*posix_venv* and *nt_venv*) are OS-specific for non-" -"Windows and Windows, the *venv* is essentially an alias to one of them " -"according to the OS Python runs on. This is useful for downstream " -"distributors who modify :func:`sysconfig.get_preferred_scheme`. Third party " -"code that creates new virtual environments should use the new *venv* " -"installation scheme to determine the paths, as does :mod:`venv`. " -"(Contributed by Miro Hrončok in :issue:`45413`.)" -msgstr "" - -msgid "tempfile" -msgstr "" - -msgid "" -":class:`~tempfile.SpooledTemporaryFile` objects now fully implement the " -"methods of :class:`io.BufferedIOBase` or :class:`io.TextIOBase` (depending " -"on file mode). This lets them work correctly with APIs that expect file-like " -"objects, such as compression modules. (Contributed by Carey Metcalfe in :gh:" -"`70363`.)" -msgstr "" - -msgid "threading" -msgstr "" - -msgid "" -"On Unix, if the ``sem_clockwait()`` function is available in the C library " -"(glibc 2.30 and newer), the :meth:`threading.Lock.acquire` method now uses " -"the monotonic clock (:data:`time.CLOCK_MONOTONIC`) for the timeout, rather " -"than using the system clock (:data:`time.CLOCK_REALTIME`), to not be " -"affected by system clock changes. (Contributed by Victor Stinner in :issue:" -"`41710`.)" -msgstr "" - -msgid "time" -msgstr "" - -msgid "" -"On Unix, :func:`time.sleep` now uses the ``clock_nanosleep()`` or " -"``nanosleep()`` function, if available, which has a resolution of 1 " -"nanosecond (10\\ :sup:`-9` seconds), rather than using ``select()`` which " -"has a resolution of 1 microsecond (10\\ :sup:`-6` seconds). (Contributed by " -"Benjamin Szőke and Victor Stinner in :issue:`21302`.)" -msgstr "" - -msgid "" -"On Windows 8.1 and newer, :func:`time.sleep` now uses a waitable timer based " -"on `high-resolution timers `_ which has a resolution of " -"100 nanoseconds (10\\ :sup:`-7` seconds). Previously, it had a resolution of " -"1 millisecond (10\\ :sup:`-3` seconds). (Contributed by Benjamin Szőke, Dong-" -"hee Na, Eryk Sun and Victor Stinner in :issue:`21302` and :issue:`45429`.)" -msgstr "" - -msgid "tkinter" -msgstr "" - -msgid "" -"Added method ``info_patchlevel()`` which returns the exact version of the " -"Tcl library as a named tuple similar to :data:`sys.version_info`. " -"(Contributed by Serhiy Storchaka in :gh:`91827`.)" -msgstr "" - -msgid "traceback" -msgstr "" - -msgid "" -"Add :func:`traceback.StackSummary.format_frame_summary` to allow users to " -"override which frames appear in the traceback, and how they are formatted. " -"(Contributed by Ammar Askar in :issue:`44569`.)" -msgstr "" - -msgid "" -"Add :func:`traceback.TracebackException.print`, which prints the formatted :" -"exc:`~traceback.TracebackException` instance to a file. (Contributed by Irit " -"Katriel in :issue:`33809`.)" -msgstr "" - -msgid "typing" -msgstr "" - -msgid "For major changes, see :ref:`new-feat-related-type-hints-311`." -msgstr "" - -msgid "" -"Add :func:`typing.assert_never` and :class:`typing.Never`. :func:`typing." -"assert_never` is useful for asking a type checker to confirm that a line of " -"code is not reachable. At runtime, it raises an :exc:`AssertionError`. " -"(Contributed by Jelle Zijlstra in :gh:`90633`.)" -msgstr "" - -msgid "" -"Add :func:`typing.reveal_type`. This is useful for asking a type checker " -"what type it has inferred for a given expression. At runtime it prints the " -"type of the received value. (Contributed by Jelle Zijlstra in :gh:`90572`.)" -msgstr "" - -msgid "" -"Add :func:`typing.assert_type`. This is useful for asking a type checker to " -"confirm that the type it has inferred for a given expression matches the " -"given type. At runtime it simply returns the received value. (Contributed by " -"Jelle Zijlstra in :gh:`90638`.)" -msgstr "" - -msgid "" -":data:`typing.TypedDict` types can now be generic. (Contributed by Samodya " -"Abeysiriwardane in :gh:`89026`.)" -msgstr "" - -msgid "" -":class:`~typing.NamedTuple` types can now be generic. (Contributed by Serhiy " -"Storchaka in :issue:`43923`.)" -msgstr "" - -msgid "" -"Allow subclassing of :class:`typing.Any`. This is useful for avoiding type " -"checker errors related to highly dynamic class, such as mocks. (Contributed " -"by Shantanu Jain in :gh:`91154`.)" -msgstr "" - -msgid "" -"The :func:`typing.final` decorator now sets the ``__final__`` attributed on " -"the decorated object. (Contributed by Jelle Zijlstra in :gh:`90500`.)" -msgstr "" - -msgid "" -"The :func:`typing.get_overloads` function can be used for introspecting the " -"overloads of a function. :func:`typing.clear_overloads` can be used to clear " -"all registered overloads of a function. (Contributed by Jelle Zijlstra in :" -"gh:`89263`.)" -msgstr "" - -msgid "" -"The :meth:`~object.__init__` method of :class:`~typing.Protocol` subclasses " -"is now preserved. (Contributed by Adrian Garcia Badarasco in :gh:`88970`.)" -msgstr "" - -msgid "" -"The representation of empty tuple types (``Tuple[()]``) is simplified. This " -"affects introspection, e.g. ``get_args(Tuple[()])`` now evaluates to ``()`` " -"instead of ``((),)``. (Contributed by Serhiy Storchaka in :gh:`91137`.)" -msgstr "" - -msgid "" -"Loosen runtime requirements for type annotations by removing the callable " -"check in the private ``typing._type_check`` function. (Contributed by " -"Gregory Beauregard in :gh:`90802`.)" -msgstr "" - -msgid "" -":func:`typing.get_type_hints` now supports evaluating strings as forward " -"references in :ref:`PEP 585 generic aliases `. " -"(Contributed by Niklas Rosenstein in :gh:`85542`.)" -msgstr "" - -msgid "" -":func:`typing.get_type_hints` no longer adds :data:`~typing.Optional` to " -"parameters with ``None`` as a default. (Contributed by Nikita Sobolev in :gh:" -"`90353`.)" -msgstr "" - -msgid "" -":func:`typing.get_type_hints` now supports evaluating bare stringified :data:" -"`~typing.ClassVar` annotations. (Contributed by Gregory Beauregard in :gh:" -"`90711`.)" -msgstr "" - -msgid "" -":func:`typing.no_type_check` no longer modifies external classes and " -"functions. It also now correctly marks classmethods as not to be type " -"checked. (Contributed by Nikita Sobolev in :gh:`90729`.)" -msgstr "" - -msgid "unicodedata" -msgstr "" - -msgid "" -"The Unicode database has been updated to version 14.0.0. (Contributed by " -"Benjamin Peterson in :issue:`45190`)." -msgstr "" - -msgid "unittest" -msgstr "" - -msgid "" -"Added methods :meth:`~unittest.TestCase.enterContext` and :meth:`~unittest." -"TestCase.enterClassContext` of class :class:`~unittest.TestCase`, method :" -"meth:`~unittest.IsolatedAsyncioTestCase.enterAsyncContext` of class :class:" -"`~unittest.IsolatedAsyncioTestCase` and function :func:`unittest." -"enterModuleContext`. (Contributed by Serhiy Storchaka in :issue:`45046`.)" -msgstr "" - -msgid "venv" -msgstr "" - -msgid "" -"When new Python virtual environments are created, the *venv* :ref:`sysconfig " -"installation scheme ` is used to determine the paths " -"inside the environment. When Python runs in a virtual environment, the same " -"installation scheme is the default. That means that downstream distributors " -"can change the default sysconfig install scheme without changing behavior of " -"virtual environments. Third party code that also creates new virtual " -"environments should do the same. (Contributed by Miro Hrončok in :issue:" -"`45413`.)" -msgstr "" - -msgid "warnings" -msgstr "" - -msgid "" -":func:`warnings.catch_warnings` now accepts arguments for :func:`warnings." -"simplefilter`, providing a more concise way to locally ignore warnings or " -"convert them to errors. (Contributed by Zac Hatfield-Dodds in :issue:" -"`47074`.)" -msgstr "" - -msgid "zipfile" -msgstr "" - -msgid "" -"Added support for specifying member name encoding for reading metadata in a :" -"class:`~zipfile.ZipFile`'s directory and file headers. (Contributed by " -"Stephen J. Turnbull and Serhiy Storchaka in :issue:`28080`.)" -msgstr "" - -msgid "" -"Added :meth:`ZipFile.mkdir() ` for creating new " -"directories inside ZIP archives. (Contributed by Sam Ezeh in :gh:`49083`.)" -msgstr "" - -msgid "" -"Added :attr:`~zipfile.Path.stem`, :attr:`~zipfile.Path.suffix` and :attr:" -"`~zipfile.Path.suffixes` to :class:`zipfile.Path`. (Contributed by Miguel " -"Brito in :gh:`88261`.)" -msgstr "" - -msgid "Optimizations" -msgstr "" - -msgid "" -"This section covers specific optimizations independent of the :ref:" -"`whatsnew311-faster-cpython` project, which is covered in its own section." -msgstr "" - -msgid "" -"The compiler now optimizes simple :ref:`printf-style % formatting ` on string literals containing only the format codes ``" -"%s``, ``%r`` and ``%a`` and makes it as fast as a corresponding :term:`f-" -"string` expression. (Contributed by Serhiy Storchaka in :issue:`28307`.)" -msgstr "" - -msgid "" -"Integer division (``//``) is better tuned for optimization by compilers. It " -"is now around 20% faster on x86-64 when dividing an :class:`int` by a value " -"smaller than ``2**30``. (Contributed by Gregory P. Smith and Tim Peters in :" -"gh:`90564`.)" -msgstr "" - -msgid "" -":func:`sum` is now nearly 30% faster for integers smaller than ``2**30``. " -"(Contributed by Stefan Behnel in :gh:`68264`.)" -msgstr "" - -msgid "" -"Resizing lists is streamlined for the common case, speeding up :meth:`list." -"append` by ≈15% and simple :term:`list comprehension`\\s by up to 20-30% " -"(Contributed by Dennis Sweeney in :gh:`91165`.)" -msgstr "" - -msgid "" -"Dictionaries don't store hash values when all keys are Unicode objects, " -"decreasing :class:`dict` size. For example, ``sys.getsizeof(dict." -"fromkeys(\"abcdefg\"))`` is reduced from 352 bytes to 272 bytes (23% " -"smaller) on 64-bit platforms. (Contributed by Inada Naoki in :issue:`46845`.)" -msgstr "" - -msgid "" -"Using :class:`asyncio.DatagramProtocol` is now orders of magnitude faster " -"when transferring large files over UDP, with speeds over 100 times higher " -"for a ≈60 MiB file. (Contributed by msoxzw in :gh:`91487`.)" -msgstr "" - -msgid "" -":mod:`math` functions :func:`~math.comb` and :func:`~math.perm` are now ≈10 " -"times faster for large arguments (with a larger speedup for larger *k*). " -"(Contributed by Serhiy Storchaka in :issue:`37295`.)" -msgstr "" - -msgid "" -"The :mod:`statistics` functions :func:`~statistics.mean`, :func:`~statistics." -"variance` and :func:`~statistics.stdev` now consume iterators in one pass " -"rather than converting them to a :class:`list` first. This is twice as fast " -"and can save substantial memory. (Contributed by Raymond Hettinger in :gh:" -"`90415`.)" -msgstr "" - -msgid "" -":func:`unicodedata.normalize` now normalizes pure-ASCII strings in constant " -"time. (Contributed by Dong-hee Na in :issue:`44987`.)" -msgstr "" - -msgid "Faster CPython" -msgstr "" - -msgid "" -"CPython 3.11 is on average `25% faster `_ than CPython 3.10 when measured with the " -"`pyperformance `_ benchmark suite, " -"and compiled with GCC on Ubuntu Linux. Depending on your workload, the " -"speedup could be up to 10-60% faster." -msgstr "" - -msgid "" -"This project focuses on two major areas in Python: faster startup and faster " -"runtime. Other optimizations not under this project are listed in " -"`Optimizations`_." -msgstr "" - -msgid "Faster Startup" -msgstr "" - -msgid "Frozen imports / Static code objects" -msgstr "" - -msgid "" -"Python caches bytecode in the :ref:`__pycache__` directory to " -"speed up module loading." -msgstr "" - -msgid "Previously in 3.10, Python module execution looked like this:" -msgstr "" - -msgid "" -"In Python 3.11, the core modules essential for Python startup are \"frozen" -"\". This means that their code objects (and bytecode) are statically " -"allocated by the interpreter. This reduces the steps in module execution " -"process to this:" -msgstr "" - -msgid "" -"Interpreter startup is now 10-15% faster in Python 3.11. This has a big " -"impact for short-running programs using Python." -msgstr "" - -msgid "" -"(Contributed by Eric Snow, Guido van Rossum and Kumar Aditya in numerous " -"issues.)" -msgstr "" - -msgid "Faster Runtime" -msgstr "" - -msgid "Cheaper, lazy Python frames" -msgstr "" - -msgid "" -"Python frames are created whenever Python calls a Python function. This " -"frame holds execution information. The following are new frame optimizations:" -msgstr "" - -msgid "Streamlined the frame creation process." -msgstr "" - -msgid "" -"Avoided memory allocation by generously re-using frame space on the C stack." -msgstr "" - -msgid "" -"Streamlined the internal frame struct to contain only essential information. " -"Frames previously held extra debugging and memory management information." -msgstr "" - -msgid "" -"Old-style frame objects are now created only when requested by debuggers or " -"by Python introspection functions such as ``sys._getframe`` or ``inspect." -"currentframe``. For most user code, no frame objects are created at all. As " -"a result, nearly all Python functions calls have sped up significantly. We " -"measured a 3-7% speedup in pyperformance." -msgstr "" - -msgid "(Contributed by Mark Shannon in :issue:`44590`.)" -msgstr "" - -msgid "Inlined Python function calls" -msgstr "" - -msgid "" -"During a Python function call, Python will call an evaluating C function to " -"interpret that function's code. This effectively limits pure Python " -"recursion to what's safe for the C stack." -msgstr "" - -msgid "" -"In 3.11, when CPython detects Python code calling another Python function, " -"it sets up a new frame, and \"jumps\" to the new code inside the new frame. " -"This avoids calling the C interpreting function altogether." -msgstr "" - -msgid "" -"Most Python function calls now consume no C stack space. This speeds up most " -"of such calls. In simple recursive functions like fibonacci or factorial, a " -"1.7x speedup was observed. This also means recursive functions can recurse " -"significantly deeper (if the user increases the recursion limit). We " -"measured a 1-3% improvement in pyperformance." -msgstr "" - -msgid "(Contributed by Pablo Galindo and Mark Shannon in :issue:`45256`.)" -msgstr "" - -msgid "PEP 659: Specializing Adaptive Interpreter" -msgstr "" - -msgid "" -":pep:`659` is one of the key parts of the faster CPython project. The " -"general idea is that while Python is a dynamic language, most code has " -"regions where objects and types rarely change. This concept is known as " -"*type stability*." -msgstr "" - -msgid "" -"At runtime, Python will try to look for common patterns and type stability " -"in the executing code. Python will then replace the current operation with a " -"more specialized one. This specialized operation uses fast paths available " -"only to those use cases/types, which generally outperform their generic " -"counterparts. This also brings in another concept called *inline caching*, " -"where Python caches the results of expensive operations directly in the " -"bytecode." -msgstr "" - -msgid "" -"The specializer will also combine certain common instruction pairs into one " -"superinstruction. This reduces the overhead during execution." -msgstr "" - -msgid "" -"Python will only specialize when it sees code that is \"hot\" (executed " -"multiple times). This prevents Python from wasting time for run-once code. " -"Python can also de-specialize when code is too dynamic or when the use " -"changes. Specialization is attempted periodically, and specialization " -"attempts are not too expensive. This allows specialization to adapt to new " -"circumstances." -msgstr "" - -msgid "" -"(PEP written by Mark Shannon, with ideas inspired by Stefan Brunthaler. See :" -"pep:`659` for more information. Implementation by Mark Shannon and Brandt " -"Bucher, with additional help from Irit Katriel and Dennis Sweeney.)" -msgstr "" - -msgid "Operation" -msgstr "" - -msgid "Form" -msgstr "" - -msgid "Specialization" -msgstr "" - -msgid "Operation speedup (up to)" -msgstr "" - -msgid "Contributor(s)" -msgstr "" - -msgid "Binary operations" -msgstr "" - -msgid "``x+x; x*x; x-x;``" -msgstr "" - -msgid "" -"Binary add, multiply and subtract for common types such as ``int``, " -"``float``, and ``str`` take custom fast paths for their underlying types." -msgstr "" - -msgid "10%" -msgstr "" - -msgid "Mark Shannon, Dong-hee Na, Brandt Bucher, Dennis Sweeney" -msgstr "" - -msgid "Subscript" -msgstr "" - -msgid "``a[i]``" -msgstr "" - -msgid "" -"Subscripting container types such as ``list``, ``tuple`` and ``dict`` " -"directly index the underlying data structures." -msgstr "" - -msgid "" -"Subscripting custom ``__getitem__`` is also inlined similar to :ref:`inline-" -"calls`." -msgstr "" - -msgid "10-25%" -msgstr "" - -msgid "Irit Katriel, Mark Shannon" -msgstr "" - -msgid "Store subscript" -msgstr "" - -msgid "``a[i] = z``" -msgstr "" - -msgid "Similar to subscripting specialization above." -msgstr "" - -msgid "Dennis Sweeney" -msgstr "" - -msgid "Calls" -msgstr "" - -msgid "``f(arg)`` ``C(arg)``" -msgstr "" - -msgid "" -"Calls to common builtin (C) functions and types such as ``len`` and ``str`` " -"directly call their underlying C version. This avoids going through the " -"internal calling convention." -msgstr "" - -msgid "20%" -msgstr "" - -msgid "Mark Shannon, Ken Jin" -msgstr "" - -msgid "Load global variable" -msgstr "" - -msgid "``print`` ``len``" -msgstr "" - -msgid "" -"The object's index in the globals/builtins namespace is cached. Loading " -"globals and builtins require zero namespace lookups." -msgstr "" - -msgid "[1]_" -msgstr "" - -msgid "Mark Shannon" -msgstr "" - -msgid "Load attribute" -msgstr "" - -msgid "``o.attr``" -msgstr "" - -msgid "" -"Similar to loading global variables. The attribute's index inside the class/" -"object's namespace is cached. In most cases, attribute loading will require " -"zero namespace lookups." -msgstr "" - -msgid "[2]_" -msgstr "" - -msgid "Load methods for call" -msgstr "" - -msgid "``o.meth()``" -msgstr "" - -msgid "" -"The actual address of the method is cached. Method loading now has no " -"namespace lookups -- even for classes with long inheritance chains." -msgstr "" - -msgid "10-20%" -msgstr "" - -msgid "Ken Jin, Mark Shannon" -msgstr "" - -msgid "Store attribute" -msgstr "" - -msgid "``o.attr = z``" -msgstr "" - -msgid "Similar to load attribute optimization." -msgstr "" - -msgid "2% in pyperformance" -msgstr "" - -msgid "Unpack Sequence" -msgstr "" - -msgid "``*seq``" -msgstr "" - -msgid "" -"Specialized for common containers such as ``list`` and ``tuple``. Avoids " -"internal calling convention." -msgstr "" - -msgid "8%" -msgstr "" - -msgid "Brandt Bucher" -msgstr "" - -msgid "" -"A similar optimization already existed since Python 3.8. 3.11 specializes " -"for more forms and reduces some overhead." -msgstr "" - -msgid "" -"A similar optimization already existed since Python 3.10. 3.11 specializes " -"for more forms. Furthermore, all attribute loads should be sped up by :issue:" -"`45947`." -msgstr "" - -msgid "Misc" -msgstr "" - -msgid "" -"Objects now require less memory due to lazily created object namespaces. " -"Their namespace dictionaries now also share keys more freely. (Contributed " -"Mark Shannon in :issue:`45340` and :issue:`40116`.)" -msgstr "" - -msgid "" -"A more concise representation of exceptions in the interpreter reduced the " -"time required for catching an exception by about 10%. (Contributed by Irit " -"Katriel in :issue:`45711`.)" -msgstr "" - -msgid "FAQ" -msgstr "" - -msgid "Q: How should I write my code to utilize these speedups?" -msgstr "" - -msgid "" -"A: You don't have to change your code. Write Pythonic code that follows " -"common best practices. The Faster CPython project optimizes for common code " -"patterns we observe." -msgstr "" - -msgid "Q: Will CPython 3.11 use more memory?" -msgstr "" - -msgid "" -"A: Maybe not. We don't expect memory use to exceed 20% more than 3.10. This " -"is offset by memory optimizations for frame objects and object dictionaries " -"as mentioned above." -msgstr "" - -msgid "Q: I don't see any speedups in my workload. Why?" -msgstr "" - -msgid "" -"A: Certain code won't have noticeable benefits. If your code spends most of " -"its time on I/O operations, or already does most of its computation in a C " -"extension library like numpy, there won't be significant speedup. This " -"project currently benefits pure-Python workloads the most." -msgstr "" - -msgid "" -"Furthermore, the pyperformance figures are a geometric mean. Even within the " -"pyperformance benchmarks, certain benchmarks have slowed down slightly, " -"while others have sped up by nearly 2x!" -msgstr "" - -msgid "Q: Is there a JIT compiler?" -msgstr "" - -msgid "A: No. We're still exploring other optimizations." -msgstr "" - -msgid "About" -msgstr "" - -msgid "" -"Faster CPython explores optimizations for :term:`CPython`. The main team is " -"funded by Microsoft to work on this full-time. Pablo Galindo Salgado is also " -"funded by Bloomberg LP to work on the project part-time. Finally, many " -"contributors are volunteers from the community." -msgstr "" - -msgid "CPython bytecode changes" -msgstr "" - -msgid "" -"The bytecode now contains inline cache entries, which take the form of the " -"newly-added :opcode:`CACHE` instructions. Many opcodes expect to be followed " -"by an exact number of caches, and instruct the interpreter to skip over them " -"at runtime. Populated caches can look like arbitrary instructions, so great " -"care should be taken when reading or modifying raw, adaptive bytecode " -"containing quickened data." -msgstr "" - -msgid "New opcodes" -msgstr "" - -msgid "" -":opcode:`ASYNC_GEN_WRAP`, :opcode:`RETURN_GENERATOR` and :opcode:`SEND`, " -"used in generators and co-routines." -msgstr "" - -msgid "" -":opcode:`COPY_FREE_VARS`, which avoids needing special caller-side code for " -"closures." -msgstr "" - -msgid "" -":opcode:`JUMP_BACKWARD_NO_INTERRUPT`, for use in certain loops where " -"handling interrupts is undesirable." -msgstr "" - -msgid ":opcode:`MAKE_CELL`, to create :ref:`cell-objects`." -msgstr "" - -msgid "" -":opcode:`CHECK_EG_MATCH` and :opcode:`PREP_RERAISE_STAR`, to handle the :" -"ref:`new exception groups and except* ` added in :pep:" -"`654`." -msgstr "" - -msgid ":opcode:`PUSH_EXC_INFO`, for use in exception handlers." -msgstr "" - -msgid "" -":opcode:`RESUME`, a no-op, for internal tracing, debugging and optimization " -"checks." -msgstr "" - -msgid "Replaced opcodes" -msgstr "" - -msgid "Replaced Opcode(s)" -msgstr "" - -msgid "New Opcode(s)" -msgstr "" - -msgid "Notes" -msgstr "Notatki" - -msgid ":opcode:`!BINARY_*`" -msgstr "" - -msgid ":opcode:`!INPLACE_*`" -msgstr "" - -msgid ":opcode:`BINARY_OP`" -msgstr "" - -msgid "Replaced all numeric binary/in-place opcodes with a single opcode" -msgstr "" - -msgid ":opcode:`!CALL_FUNCTION`" -msgstr "" - -msgid ":opcode:`!CALL_FUNCTION_KW`" -msgstr "" - -msgid ":opcode:`!CALL_METHOD`" -msgstr "" - -msgid ":opcode:`CALL`" -msgstr "" - -msgid ":opcode:`KW_NAMES`" -msgstr "" - -msgid ":opcode:`PRECALL`" -msgstr "" - -msgid ":opcode:`PUSH_NULL`" -msgstr "" - -msgid "" -"Decouples argument shifting for methods from handling of keyword arguments; " -"allows better specialization of calls" -msgstr "" - -msgid ":opcode:`!DUP_TOP`" -msgstr "" - -msgid ":opcode:`!DUP_TOP_TWO`" -msgstr "" - -msgid ":opcode:`!ROT_TWO`" -msgstr "" - -msgid ":opcode:`!ROT_THREE`" -msgstr "" - -msgid ":opcode:`!ROT_FOUR`" -msgstr "" - -msgid ":opcode:`!ROT_N`" -msgstr "" - -msgid ":opcode:`COPY`" -msgstr "" - -msgid ":opcode:`SWAP`" -msgstr "" - -msgid "Stack manipulation instructions" -msgstr "" - -msgid ":opcode:`!JUMP_IF_NOT_EXC_MATCH`" -msgstr "" - -msgid ":opcode:`CHECK_EXC_MATCH`" -msgstr "" - -msgid "Now performs check but doesn't jump" -msgstr "" - -msgid ":opcode:`!JUMP_ABSOLUTE`" -msgstr "" - -msgid ":opcode:`!POP_JUMP_IF_FALSE`" -msgstr "" - -msgid ":opcode:`!POP_JUMP_IF_TRUE`" -msgstr "" - -msgid ":opcode:`JUMP_BACKWARD`" -msgstr "" - -msgid ":opcode:`POP_JUMP_BACKWARD_IF_* `" -msgstr "" - -msgid ":opcode:`POP_JUMP_FORWARD_IF_* `" -msgstr "" - -msgid "" -"See [#bytecode-jump]_; ``TRUE``, ``FALSE``, ``NONE`` and ``NOT_NONE`` " -"variants for each direction" -msgstr "" - -msgid ":opcode:`!SETUP_WITH`" -msgstr "" - -msgid ":opcode:`!SETUP_ASYNC_WITH`" -msgstr "" - -msgid ":opcode:`BEFORE_WITH`" -msgstr "" - -msgid ":keyword:`with` block setup" -msgstr "" - -msgid "" -"All jump opcodes are now relative, including the existing :opcode:" -"`JUMP_IF_TRUE_OR_POP` and :opcode:`JUMP_IF_FALSE_OR_POP`. The argument is " -"now an offset from the current instruction rather than an absolute location." -msgstr "" - -msgid "Changed/removed opcodes" -msgstr "" - -msgid "" -"Changed :opcode:`MATCH_CLASS` and :opcode:`MATCH_KEYS` to no longer push an " -"additional boolean value to indicate success/failure. Instead, ``None`` is " -"pushed on failure in place of the tuple of extracted values." -msgstr "" - -msgid "" -"Changed opcodes that work with exceptions to reflect them now being " -"represented as one item on the stack instead of three (see :gh:`89874`)." -msgstr "" - -msgid "" -"Removed :opcode:`!COPY_DICT_WITHOUT_KEYS`, :opcode:`!GEN_START`, :opcode:`!" -"POP_BLOCK`, :opcode:`!SETUP_FINALLY` and :opcode:`!YIELD_FROM`." -msgstr "" - -msgid "Deprecated" -msgstr "" - -msgid "" -"This section lists Python APIs that have been deprecated in Python 3.11." -msgstr "" - -msgid "" -"Deprecated C APIs are :ref:`listed separately `." -msgstr "" - -msgid "Language/Builtins" -msgstr "" - -msgid "" -"Chaining :class:`classmethod` descriptors (introduced in :issue:`19072`) is " -"now deprecated. It can no longer be used to wrap other descriptors such as :" -"class:`property`. The core design of this feature was flawed and caused a " -"number of downstream problems. To \"pass-through\" a :class:`classmethod`, " -"consider using the :attr:`!__wrapped__` attribute that was added in Python " -"3.10. (Contributed by Raymond Hettinger in :gh:`89519`.)" -msgstr "" - -msgid "" -"Octal escapes in string and bytes literals with values larger than ``0o377`` " -"(255 in decimal) now produce a :exc:`DeprecationWarning`. In a future Python " -"version, they will raise a :exc:`SyntaxWarning` and eventually a :exc:" -"`SyntaxError`. (Contributed by Serhiy Storchaka in :gh:`81548`.)" -msgstr "" - -msgid "" -"The delegation of :func:`int` to :meth:`~object.__trunc__` is now " -"deprecated. Calling ``int(a)`` when ``type(a)`` implements :meth:`!" -"__trunc__` but not :meth:`~object.__int__` or :meth:`~object.__index__` now " -"raises a :exc:`DeprecationWarning`. (Contributed by Zackery Spytz in :issue:" -"`44977`.)" -msgstr "" - -msgid "Modules" -msgstr "Moduły" - -msgid "" -":pep:`594` led to the deprecations of the following modules slated for " -"removal in Python 3.13:" -msgstr "" - -msgid ":mod:`aifc`" -msgstr "" - -msgid ":mod:`chunk`" -msgstr "" - -msgid ":mod:`msilib`" -msgstr "" - -msgid ":mod:`pipes`" -msgstr "" - -msgid ":mod:`telnetlib`" -msgstr "" - -msgid ":mod:`audioop`" -msgstr "" - -msgid ":mod:`crypt`" -msgstr "" - -msgid ":mod:`nis`" -msgstr "" - -msgid ":mod:`sndhdr`" -msgstr "" - -msgid ":mod:`uu`" -msgstr "" - -msgid ":mod:`cgi`" -msgstr "" - -msgid ":mod:`imghdr`" -msgstr "" - -msgid ":mod:`nntplib`" -msgstr "" - -msgid ":mod:`spwd`" -msgstr "" - -msgid ":mod:`xdrlib`" -msgstr "" - -msgid ":mod:`cgitb`" -msgstr "" - -msgid ":mod:`mailcap`" -msgstr "" - -msgid ":mod:`ossaudiodev`" -msgstr "" - -msgid ":mod:`sunau`" -msgstr "" - -msgid "" -"(Contributed by Brett Cannon in :issue:`47061` and Victor Stinner in :gh:" -"`68966`.)" -msgstr "" - -msgid "" -"The :mod:`asynchat`, :mod:`asyncore` and :mod:`smtpd` modules have been " -"deprecated since at least Python 3.6. Their documentation and deprecation " -"warnings have now been updated to note they will be removed in Python 3.12. " -"(Contributed by Hugo van Kemenade in :issue:`47022`.)" -msgstr "" - -msgid "" -"The :mod:`lib2to3` package and :ref:`2to3 <2to3-reference>` tool are now " -"deprecated and may not be able to parse Python 3.10 or newer. See :pep:" -"`617`, introducing the new PEG parser, for details. (Contributed by Victor " -"Stinner in :issue:`40360`.)" -msgstr "" - -msgid "" -"Undocumented modules :mod:`!sre_compile`, :mod:`!sre_constants` and :mod:`!" -"sre_parse` are now deprecated. (Contributed by Serhiy Storchaka in :issue:" -"`47152`.)" -msgstr "" - -msgid "Standard Library" -msgstr "" - -msgid "" -"The following have been deprecated in :mod:`configparser` since Python 3.2. " -"Their deprecation warnings have now been updated to note they will be " -"removed in Python 3.12:" -msgstr "" - -msgid "the :class:`!configparser.SafeConfigParser` class" -msgstr "" - -msgid "the :attr:`!configparser.ParsingError.filename` property" -msgstr "" - -msgid "the :meth:`configparser.RawConfigParser.readfp` method" -msgstr "" - -msgid "(Contributed by Hugo van Kemenade in :issue:`45173`.)" -msgstr "" - -msgid "" -":class:`!configparser.LegacyInterpolation` has been deprecated in the " -"docstring since Python 3.2, and is not listed in the :mod:`configparser` " -"documentation. It now emits a :exc:`DeprecationWarning` and will be removed " -"in Python 3.13. Use :class:`configparser.BasicInterpolation` or :class:" -"`configparser.ExtendedInterpolation` instead. (Contributed by Hugo van " -"Kemenade in :issue:`46607`.)" -msgstr "" - -msgid "" -"The older set of :mod:`importlib.resources` functions were deprecated in " -"favor of the replacements added in Python 3.9 and will be removed in a " -"future Python version, due to not supporting resources located within " -"package subdirectories:" -msgstr "" - -msgid ":func:`importlib.resources.contents`" -msgstr "" - -msgid ":func:`importlib.resources.is_resource`" -msgstr "" - -msgid ":func:`importlib.resources.open_binary`" -msgstr "" - -msgid ":func:`importlib.resources.open_text`" -msgstr "" - -msgid ":func:`importlib.resources.read_binary`" -msgstr "" - -msgid ":func:`importlib.resources.read_text`" -msgstr "" - -msgid ":func:`importlib.resources.path`" -msgstr "" - -msgid "" -"The :func:`locale.getdefaultlocale` function is deprecated and will be " -"removed in Python 3.13. Use :func:`locale.setlocale`, :func:`locale." -"getpreferredencoding(False) ` and :func:`locale." -"getlocale` functions instead. (Contributed by Victor Stinner in :gh:`90817`.)" -msgstr "" - -msgid "" -"The :func:`locale.resetlocale` function is deprecated and will be removed in " -"Python 3.13. Use ``locale.setlocale(locale.LC_ALL, \"\")`` instead. " -"(Contributed by Victor Stinner in :gh:`90817`.)" -msgstr "" - -msgid "" -"Stricter rules will now be applied for numerical group references and group " -"names in :ref:`regular expressions `. Only sequences of ASCII " -"digits will now be accepted as a numerical reference, and the group name in :" -"class:`bytes` patterns and replacement strings can only contain ASCII " -"letters, digits and underscores. For now, a deprecation warning is raised " -"for syntax violating these rules. (Contributed by Serhiy Storchaka in :gh:" -"`91760`.)" -msgstr "" - -msgid "" -"In the :mod:`re` module, the :func:`!re.template` function and the " -"corresponding :data:`!re.TEMPLATE` and :data:`!re.T` flags are deprecated, " -"as they were undocumented and lacked an obvious purpose. They will be " -"removed in Python 3.13. (Contributed by Serhiy Storchaka and Miro Hrončok " -"in :gh:`92728`.)" -msgstr "" - -msgid "" -":func:`turtle.settiltangle` has been deprecated since Python 3.1; it now " -"emits a deprecation warning and will be removed in Python 3.13. Use :func:" -"`turtle.tiltangle` instead (it was earlier incorrectly marked as deprecated, " -"and its docstring is now corrected). (Contributed by Hugo van Kemenade in :" -"issue:`45837`.)" -msgstr "" - -msgid "" -":class:`typing.Text`, which exists solely to provide compatibility support " -"between Python 2 and Python 3 code, is now deprecated. Its removal is " -"currently unplanned, but users are encouraged to use :class:`str` instead " -"wherever possible. (Contributed by Alex Waygood in :gh:`92332`.)" -msgstr "" - -msgid "" -"The keyword argument syntax for constructing :data:`typing.TypedDict` types " -"is now deprecated. Support will be removed in Python 3.13. (Contributed by " -"Jingchen Ye in :gh:`90224`.)" -msgstr "" - -msgid "" -":class:`!webbrowser.MacOSX` is deprecated and will be removed in Python " -"3.13. It is untested, undocumented, and not used by :mod:`webbrowser` " -"itself. (Contributed by Dong-hee Na in :issue:`42255`.)" -msgstr "" - -msgid "" -"The behavior of returning a value from a :class:`~unittest.TestCase` and :" -"class:`~unittest.IsolatedAsyncioTestCase` test methods (other than the " -"default ``None`` value) is now deprecated." -msgstr "" - -msgid "" -"Deprecated the following not-formally-documented :mod:`unittest` functions, " -"scheduled for removal in Python 3.13:" -msgstr "" - -msgid ":func:`!unittest.findTestCases`" -msgstr "" - -msgid ":func:`!unittest.makeSuite`" -msgstr "" - -msgid ":func:`!unittest.getTestCaseNames`" -msgstr "" - -msgid "Use :class:`~unittest.TestLoader` methods instead:" -msgstr "" - -msgid ":meth:`unittest.TestLoader.loadTestsFromModule`" -msgstr "" - -msgid ":meth:`unittest.TestLoader.loadTestsFromTestCase`" -msgstr "" - -msgid ":meth:`unittest.TestLoader.getTestCaseNames`" -msgstr "" - -msgid "(Contributed by Erlend E. Aasland in :issue:`5846`.)" -msgstr "" - -msgid "Pending Removal in Python 3.12" -msgstr "" - -msgid "" -"The following Python APIs have been deprecated in earlier Python releases, " -"and will be removed in Python 3.12." -msgstr "" - -msgid "" -"C APIs pending removal are :ref:`listed separately `." -msgstr "" - -msgid "The :mod:`asynchat` module" -msgstr "" - -msgid "The :mod:`asyncore` module" -msgstr "" - -msgid "The :ref:`entire distutils package `" -msgstr "" - -msgid "The :mod:`imp` module" -msgstr "" - -msgid "The :class:`typing.io ` namespace" -msgstr "" - -msgid "The :class:`typing.re ` namespace" -msgstr "" - -msgid ":func:`!cgi.log`" -msgstr "" - -msgid ":func:`importlib.find_loader`" -msgstr "" - -msgid ":meth:`importlib.abc.Loader.module_repr`" -msgstr "" - -msgid ":meth:`importlib.abc.MetaPathFinder.find_module`" -msgstr "" - -msgid ":meth:`importlib.abc.PathEntryFinder.find_loader`" -msgstr "" - -msgid ":meth:`importlib.abc.PathEntryFinder.find_module`" -msgstr "" - -msgid ":meth:`!importlib.machinery.BuiltinImporter.find_module`" -msgstr "" - -msgid ":meth:`!importlib.machinery.BuiltinLoader.module_repr`" -msgstr "" - -msgid ":meth:`!importlib.machinery.FileFinder.find_loader`" -msgstr "" - -msgid ":meth:`!importlib.machinery.FileFinder.find_module`" -msgstr "" - -msgid ":meth:`!importlib.machinery.FrozenImporter.find_module`" -msgstr "" - -msgid ":meth:`!importlib.machinery.FrozenLoader.module_repr`" -msgstr "" - -msgid ":meth:`importlib.machinery.PathFinder.find_module`" -msgstr "" - -msgid ":meth:`!importlib.machinery.WindowsRegistryFinder.find_module`" -msgstr "" - -msgid ":func:`importlib.util.module_for_loader`" -msgstr "" - -msgid ":func:`!importlib.util.set_loader_wrapper`" -msgstr "" - -msgid ":func:`!importlib.util.set_package_wrapper`" -msgstr "" - -msgid ":class:`pkgutil.ImpImporter`" -msgstr "" - -msgid ":class:`pkgutil.ImpLoader`" -msgstr "" - -msgid ":meth:`pathlib.Path.link_to`" -msgstr "" - -msgid ":func:`!sqlite3.enable_shared_cache`" -msgstr "" - -msgid ":func:`!sqlite3.OptimizedUnicode`" -msgstr "" - -msgid ":envvar:`PYTHONTHREADDEBUG` environment variable" -msgstr "" - -msgid "The following deprecated aliases in :mod:`unittest`:" -msgstr "" - -msgid "Deprecated alias" -msgstr "" - -msgid "Method Name" -msgstr "" - -msgid "Deprecated in" -msgstr "" - -msgid "``failUnless``" -msgstr "" - -msgid ":meth:`.assertTrue`" -msgstr "" - -msgid "3.1" -msgstr "" - -msgid "``failIf``" -msgstr "" - -msgid ":meth:`.assertFalse`" -msgstr "" - -msgid "``failUnlessEqual``" -msgstr "" - -msgid ":meth:`.assertEqual`" -msgstr "" - -msgid "``failIfEqual``" -msgstr "" - -msgid ":meth:`.assertNotEqual`" -msgstr "" - -msgid "``failUnlessAlmostEqual``" -msgstr "" - -msgid ":meth:`.assertAlmostEqual`" -msgstr "" - -msgid "``failIfAlmostEqual``" -msgstr "" - -msgid ":meth:`.assertNotAlmostEqual`" -msgstr "" - -msgid "``failUnlessRaises``" -msgstr "" - -msgid ":meth:`.assertRaises`" -msgstr "" - -msgid "``assert_``" -msgstr "" - -msgid "3.2" -msgstr "" - -msgid "``assertEquals``" -msgstr "" - -msgid "``assertNotEquals``" -msgstr "" - -msgid "``assertAlmostEquals``" -msgstr "" - -msgid "``assertNotAlmostEquals``" -msgstr "" - -msgid "``assertRegexpMatches``" -msgstr "" - -msgid ":meth:`.assertRegex`" -msgstr "" - -msgid "``assertRaisesRegexp``" -msgstr "" - -msgid ":meth:`.assertRaisesRegex`" -msgstr "" - -msgid "``assertNotRegexpMatches``" -msgstr "" - -msgid ":meth:`.assertNotRegex`" -msgstr "" - -msgid "3.5" -msgstr "" - -msgid "Removed" -msgstr "" - -msgid "This section lists Python APIs that have been removed in Python 3.11." -msgstr "" - -msgid "" -"Removed C APIs are :ref:`listed separately `." -msgstr "" - -msgid "" -"Removed the :func:`!@asyncio.coroutine` :term:`decorator` enabling legacy " -"generator-based coroutines to be compatible with :keyword:`async` / :keyword:" -"`await` code. The function has been deprecated since Python 3.8 and the " -"removal was initially scheduled for Python 3.10. Use :keyword:`async def` " -"instead. (Contributed by Illia Volochii in :issue:`43216`.)" -msgstr "" - -msgid "" -"Removed :class:`!asyncio.coroutines.CoroWrapper` used for wrapping legacy " -"generator-based coroutine objects in the debug mode. (Contributed by Illia " -"Volochii in :issue:`43216`.)" -msgstr "" - -msgid "" -"Due to significant security concerns, the *reuse_address* parameter of :meth:" -"`asyncio.loop.create_datagram_endpoint`, disabled in Python 3.9, is now " -"entirely removed. This is because of the behavior of the socket option " -"``SO_REUSEADDR`` in UDP. (Contributed by Hugo van Kemenade in :issue:" -"`45129`.)" -msgstr "" - -msgid "" -"Removed the :mod:`!binhex` module, deprecated in Python 3.9. Also removed " -"the related, similarly-deprecated :mod:`binascii` functions:" -msgstr "" - -msgid ":func:`!binascii.a2b_hqx`" -msgstr "" - -msgid ":func:`!binascii.b2a_hqx`" -msgstr "" - -msgid ":func:`!binascii.rlecode_hqx`" -msgstr "" - -msgid ":func:`!binascii.rldecode_hqx`" -msgstr "" - -msgid "The :func:`binascii.crc_hqx` function remains available." -msgstr "" - -msgid "(Contributed by Victor Stinner in :issue:`45085`.)" -msgstr "" - -msgid "" -"Removed the :mod:`distutils` ``bdist_msi`` command deprecated in Python 3.9. " -"Use ``bdist_wheel`` (wheel packages) instead. (Contributed by Hugo van " -"Kemenade in :issue:`45124`.)" -msgstr "" - -msgid "" -"Removed the :meth:`~object.__getitem__` methods of :class:`xml.dom.pulldom." -"DOMEventStream`, :class:`wsgiref.util.FileWrapper` and :class:`fileinput." -"FileInput`, deprecated since Python 3.9. (Contributed by Hugo van Kemenade " -"in :issue:`45132`.)" -msgstr "" - -msgid "" -"Removed the deprecated :mod:`gettext` functions :func:`!lgettext`, :func:`!" -"ldgettext`, :func:`!lngettext` and :func:`!ldngettext`. Also removed the :" -"func:`!bind_textdomain_codeset` function, the :meth:`!NullTranslations." -"output_charset` and :meth:`!NullTranslations.set_output_charset` methods, " -"and the *codeset* parameter of :func:`!translation` and :func:`!install`, " -"since they are only used for the :func:`!l*gettext` functions. (Contributed " -"by Dong-hee Na and Serhiy Storchaka in :issue:`44235`.)" -msgstr "" - -msgid "Removed from the :mod:`inspect` module:" -msgstr "" - -msgid "" -"The :func:`!getargspec` function, deprecated since Python 3.0; use :func:" -"`inspect.signature` or :func:`inspect.getfullargspec` instead." -msgstr "" - -msgid "" -"The :func:`!formatargspec` function, deprecated since Python 3.5; use the :" -"func:`inspect.signature` function or the :class:`inspect.Signature` object " -"directly." -msgstr "" - -msgid "" -"The undocumented :meth:`!Signature.from_builtin` and :meth:`!Signature." -"from_function` methods, deprecated since Python 3.5; use the :meth:" -"`Signature.from_callable() ` method instead." -msgstr "" - -msgid "(Contributed by Hugo van Kemenade in :issue:`45320`.)" -msgstr "" - -msgid "" -"Removed the :meth:`~object.__class_getitem__` method from :class:`pathlib." -"PurePath`, because it was not used and added by mistake in previous " -"versions. (Contributed by Nikita Sobolev in :issue:`46483`.)" -msgstr "" - -msgid "" -"Removed the :class:`!MailmanProxy` class in the :mod:`smtpd` module, as it " -"is unusable without the external :mod:`!mailman` package. (Contributed by " -"Dong-hee Na in :issue:`35800`.)" -msgstr "" - -msgid "" -"Removed the deprecated :meth:`!split` method of :class:`!_tkinter." -"TkappType`. (Contributed by Erlend E. Aasland in :issue:`38371`.)" -msgstr "" - -msgid "" -"Removed namespace package support from :mod:`unittest` discovery. It was " -"introduced in Python 3.4 but has been broken since Python 3.7. (Contributed " -"by Inada Naoki in :issue:`23882`.)" -msgstr "" - -msgid "" -"Removed the undocumented private :meth:`!float.__set_format__()` method, " -"previously known as :meth:`!float.__setformat__()` in Python 3.7. Its " -"docstring said: \"You probably don't want to use this function. It exists " -"mainly to be used in Python's test suite.\" (Contributed by Victor Stinner " -"in :issue:`46852`.)" -msgstr "" - -msgid "" -"The :option:`!--experimental-isolated-subinterpreters` configure flag (and " -"corresponding :c:macro:`!EXPERIMENTAL_ISOLATED_SUBINTERPRETERS` macro) have " -"been removed." -msgstr "" - -msgid "" -"`Pynche `_ --- The Pythonically Natural " -"Color and Hue Editor --- has been moved out of ``Tools/scripts`` and is " -"`being developed independently `_ from the Python source tree." -msgstr "" - -msgid "Porting to Python 3.11" -msgstr "" - -msgid "" -"This section lists previously described changes and other bugfixes in the " -"Python API that may require changes to your Python code." -msgstr "" - -msgid "" -"Porting notes for the C API are :ref:`listed separately `." -msgstr "" - -msgid "" -":func:`open`, :func:`io.open`, :func:`codecs.open` and :class:`fileinput." -"FileInput` no longer accept ``'U'`` (\"universal newline\") in the file " -"mode. In Python 3, \"universal newline\" mode is used by default whenever a " -"file is opened in text mode, and the ``'U'`` flag has been deprecated since " -"Python 3.3. The :ref:`newline parameter ` to these " -"functions controls how universal newlines work. (Contributed by Victor " -"Stinner in :issue:`37330`.)" -msgstr "" - -msgid "" -":class:`ast.AST` node positions are now validated when provided to :func:" -"`compile` and other related functions. If invalid positions are detected, a :" -"exc:`ValueError` will be raised. (Contributed by Pablo Galindo in :gh:" -"`93351`)" -msgstr "" - -msgid "" -"Prohibited passing non-:class:`concurrent.futures.ThreadPoolExecutor` " -"executors to :meth:`asyncio.loop.set_default_executor` following a " -"deprecation in Python 3.8. (Contributed by Illia Volochii in :issue:`43234`.)" -msgstr "" - -msgid "" -":mod:`calendar`: The :class:`calendar.LocaleTextCalendar` and :class:" -"`calendar.LocaleHTMLCalendar` classes now use :func:`locale.getlocale`, " -"instead of using :func:`locale.getdefaultlocale`, if no locale is specified. " -"(Contributed by Victor Stinner in :issue:`46659`.)" -msgstr "" - -msgid "" -"The :mod:`pdb` module now reads the :file:`.pdbrc` configuration file with " -"the ``'UTF-8'`` encoding. (Contributed by Srinivas Reddy Thatiparthy (శ్రీనివాస్ " -"రెడ్డి తాటిపర్తి) in :issue:`41137`.)" -msgstr "" - -msgid "" -"The *population* parameter of :func:`random.sample` must be a sequence, and " -"automatic conversion of :class:`set`\\s to :class:`list`\\s is no longer " -"supported. Also, if the sample size is larger than the population size, a :" -"exc:`ValueError` is raised. (Contributed by Raymond Hettinger in :issue:" -"`40465`.)" -msgstr "" - -msgid "" -"The *random* optional parameter of :func:`random.shuffle` was removed. It " -"was previously an arbitrary random function to use for the shuffle; now, :" -"func:`random.random` (its previous default) will always be used." -msgstr "" - -msgid "" -"In :mod:`re` :ref:`re-syntax`, global inline flags (e.g. ``(?i)``) can now " -"only be used at the start of regular expressions. Using them elsewhere has " -"been deprecated since Python 3.6. (Contributed by Serhiy Storchaka in :issue:" -"`47066`.)" -msgstr "" - -msgid "" -"In the :mod:`re` module, several long-standing bugs where fixed that, in " -"rare cases, could cause capture groups to get the wrong result. Therefore, " -"this could change the captured output in these cases. (Contributed by Ma Lin " -"in :issue:`35859`.)" -msgstr "" - -msgid "Build Changes" -msgstr "" - -msgid "" -"CPython now has :pep:`11` :pep:`Tier 3 support <11#tier-3>` for cross " -"compiling to the `WebAssembly `_ platforms " -"`Emscripten `_ (``wasm32-unknown-emscripten``, i.e. " -"Python in the browser) and `WebAssembly System Interface (WASI) `_ (``wasm32-unknown-wasi``). The effort is inspired by previous " -"work like `Pyodide `_. These platforms provide a " -"limited subset of POSIX APIs; Python standard libraries features and modules " -"related to networking, processes, threading, signals, mmap, and users/groups " -"are not available or don't work. (Emscripten contributed by Christian Heimes " -"and Ethan Smith in :gh:`84461` and WASI contributed by Christian Heimes in :" -"gh:`90473`; platforms promoted in :gh:`95085`)" -msgstr "" - -msgid "Building Python now requires:" -msgstr "" - -msgid "" -"A `C11 `_ compiler. `Optional C11 " -"features `_ are not required. " -"(Contributed by Victor Stinner in :issue:`46656`.)" -msgstr "" - -msgid "" -"Support for `IEEE 754 `_ floating " -"point numbers. (Contributed by Victor Stinner in :issue:`46917`.)" -msgstr "" - -msgid "" -"Support for `floating point Not-a-Number (NaN) `_, as the :c:macro:`!Py_NO_NAN` macro has been " -"removed. (Contributed by Victor Stinner in :issue:`46656`.)" -msgstr "" - -msgid "" -"A `C99 `_ ```` header file " -"providing the :c:func:`!copysign`, :c:func:`!hypot`, :c:func:`!isfinite`, :c:" -"func:`!isinf`, :c:func:`!isnan`, and :c:func:`!round` functions (contributed " -"by Victor Stinner in :issue:`45440`); and a :c:data:`!NAN` constant or the :" -"c:func:`!__builtin_nan` function (Contributed by Victor Stinner in :issue:" -"`46640`)." -msgstr "" - -msgid "" -"The :mod:`tkinter` package now requires `Tcl/Tk `_ " -"version 8.5.12 or newer. (Contributed by Serhiy Storchaka in :issue:`46996`.)" -msgstr "" - -msgid "" -"Build dependencies, compiler flags, and linker flags for most stdlib " -"extension modules are now detected by :program:`configure`. libffi, libnsl, " -"libsqlite3, zlib, bzip2, liblzma, libcrypt, Tcl/Tk, and uuid flags are " -"detected by `pkg-config `_ (when available). :mod:`tkinter` now requires a pkg-config " -"command to detect development settings for `Tcl/Tk`_ headers and libraries. " -"(Contributed by Christian Heimes and Erlend Egeberg Aasland in :issue:" -"`45847`, :issue:`45747`, and :issue:`45763`.)" -msgstr "" - -msgid "" -"libpython is no longer linked against libcrypt. (Contributed by Mike Gilbert " -"in :issue:`45433`.)" -msgstr "" - -msgid "" -"CPython can now be built with the `ThinLTO `_ option via passing ``thin`` to :option:`--with-lto`, i.e. " -"``--with-lto=thin``. (Contributed by Dong-hee Na and Brett Holman in :issue:" -"`44340`.)" -msgstr "" - -msgid "" -"Freelists for object structs can now be disabled. A new :program:`configure` " -"option :option:`!--without-freelists` can be used to disable all freelists " -"except empty tuple singleton. (Contributed by Christian Heimes in :issue:" -"`45522`.)" -msgstr "" - -msgid "" -"``Modules/Setup`` and ``Modules/makesetup`` have been improved and tied up. " -"Extension modules can now be built through ``makesetup``. All except some " -"test modules can be linked statically into a main binary or library. " -"(Contributed by Brett Cannon and Christian Heimes in :issue:`45548`, :issue:" -"`45570`, :issue:`45571`, and :issue:`43974`.)" -msgstr "" - -msgid "" -"Use the environment variables :envvar:`!TCLTK_CFLAGS` and :envvar:`!" -"TCLTK_LIBS` to manually specify the location of Tcl/Tk headers and " -"libraries. The :program:`configure` options :option:`!--with-tcltk-includes` " -"and :option:`!--with-tcltk-libs` have been removed." -msgstr "" - -msgid "" -"On RHEL 7 and CentOS 7 the development packages do not provide ``tcl.pc`` " -"and ``tk.pc``; use ``TCLTK_LIBS=\"-ltk8.5 -ltkstub8.5 -ltcl8.5\"``. The " -"directory ``Misc/rhel7`` contains ``.pc`` files and instructions on how to " -"build Python with RHEL 7's and CentOS 7's Tcl/Tk and OpenSSL." -msgstr "" - -msgid "" -"CPython will now use 30-bit digits by default for the Python :class:`int` " -"implementation. Previously, the default was to use 30-bit digits on " -"platforms with ``SIZEOF_VOID_P >= 8``, and 15-bit digits otherwise. It's " -"still possible to explicitly request use of 15-bit digits via either the :" -"option:`--enable-big-digits` option to the configure script or (for Windows) " -"the ``PYLONG_BITS_IN_DIGIT`` variable in ``PC/pyconfig.h``, but this option " -"may be removed at some point in the future. (Contributed by Mark Dickinson " -"in :issue:`45569`.)" -msgstr "" - -msgid "C API Changes" -msgstr "Zmiany w C API" - -msgid "" -"Add a new :c:func:`PyType_GetName` function to get type's short name. " -"(Contributed by Hai Shi in :issue:`42035`.)" -msgstr "" - -msgid "" -"Add a new :c:func:`PyType_GetQualName` function to get type's qualified " -"name. (Contributed by Hai Shi in :issue:`42035`.)" -msgstr "" - -msgid "" -"Add new :c:func:`PyThreadState_EnterTracing` and :c:func:" -"`PyThreadState_LeaveTracing` functions to the limited C API to suspend and " -"resume tracing and profiling. (Contributed by Victor Stinner in :issue:" -"`43760`.)" -msgstr "" - -msgid "" -"Added the :c:data:`Py_Version` constant which bears the same value as :c:" -"macro:`PY_VERSION_HEX`. (Contributed by Gabriele N. Tornetta in :issue:" -"`43931`.)" -msgstr "" - -msgid "" -":c:type:`Py_buffer` and APIs are now part of the limited API and the stable " -"ABI:" -msgstr "" - -msgid ":c:func:`PyObject_CheckBuffer`" -msgstr "" - -msgid ":c:func:`PyObject_GetBuffer`" -msgstr "" - -msgid ":c:func:`PyBuffer_GetPointer`" -msgstr "" - -msgid ":c:func:`PyBuffer_SizeFromFormat`" -msgstr "" - -msgid ":c:func:`PyBuffer_ToContiguous`" -msgstr "" - -msgid ":c:func:`PyBuffer_FromContiguous`" -msgstr "" - -msgid ":c:func:`PyBuffer_CopyData`" -msgstr "" - -msgid ":c:func:`PyBuffer_IsContiguous`" -msgstr "" - -msgid ":c:func:`PyBuffer_FillContiguousStrides`" -msgstr "" - -msgid ":c:func:`PyBuffer_FillInfo`" -msgstr "" - -msgid ":c:func:`PyBuffer_Release`" -msgstr "" - -msgid ":c:func:`PyMemoryView_FromBuffer`" -msgstr "" - -msgid "" -":c:member:`~PyBufferProcs.bf_getbuffer` and :c:member:`~PyBufferProcs." -"bf_releasebuffer` type slots" -msgstr "" - -msgid "(Contributed by Christian Heimes in :issue:`45459`.)" -msgstr "" - -msgid "" -"Added the :c:data:`PyType_GetModuleByDef` function, used to get the module " -"in which a method was defined, in cases where this information is not " -"available directly (via :c:type:`PyCMethod`). (Contributed by Petr Viktorin " -"in :issue:`46613`.)" -msgstr "" - -msgid "" -"Add new functions to pack and unpack C double (serialize and deserialize): :" -"c:func:`PyFloat_Pack2`, :c:func:`PyFloat_Pack4`, :c:func:`PyFloat_Pack8`, :c:" -"func:`PyFloat_Unpack2`, :c:func:`PyFloat_Unpack4` and :c:func:" -"`PyFloat_Unpack8`. (Contributed by Victor Stinner in :issue:`46906`.)" -msgstr "" - -msgid "" -"Add new functions to get frame object attributes: :c:func:" -"`PyFrame_GetBuiltins`, :c:func:`PyFrame_GetGenerator`, :c:func:" -"`PyFrame_GetGlobals`, :c:func:`PyFrame_GetLasti`." -msgstr "" - -msgid "" -"Added two new functions to get and set the active exception instance: :c:" -"func:`PyErr_GetHandledException` and :c:func:`PyErr_SetHandledException`. " -"These are alternatives to :c:func:`PyErr_SetExcInfo()` and :c:func:" -"`PyErr_GetExcInfo()` which work with the legacy 3-tuple representation of " -"exceptions. (Contributed by Irit Katriel in :issue:`46343`.)" -msgstr "" - -msgid "" -"Added the :c:member:`PyConfig.safe_path` member. (Contributed by Victor " -"Stinner in :gh:`57684`.)" -msgstr "" - -msgid "" -"Some macros have been converted to static inline functions to avoid `macro " -"pitfalls `_. The " -"change should be mostly transparent to users, as the replacement functions " -"will cast their arguments to the expected types to avoid compiler warnings " -"due to static type checks. However, when the limited C API is set to >=3.11, " -"these casts are not done, and callers will need to cast arguments to their " -"expected types. See :pep:`670` for more details. (Contributed by Victor " -"Stinner and Erlend E. Aasland in :gh:`89653`.)" -msgstr "" - -msgid "" -":c:func:`PyErr_SetExcInfo()` no longer uses the ``type`` and ``traceback`` " -"arguments, the interpreter now derives those values from the exception " -"instance (the ``value`` argument). The function still steals references of " -"all three arguments. (Contributed by Irit Katriel in :issue:`45711`.)" -msgstr "" - -msgid "" -":c:func:`PyErr_GetExcInfo()` now derives the ``type`` and ``traceback`` " -"fields of the result from the exception instance (the ``value`` field). " -"(Contributed by Irit Katriel in :issue:`45711`.)" -msgstr "" - -msgid "" -":c:struct:`_frozen` has a new ``is_package`` field to indicate whether or " -"not the frozen module is a package. Previously, a negative value in the " -"``size`` field was the indicator. Now only non-negative values be used for " -"``size``. (Contributed by Kumar Aditya in :issue:`46608`.)" -msgstr "" - -msgid "" -":c:func:`_PyFrameEvalFunction` now takes ``_PyInterpreterFrame*`` as its " -"second parameter, instead of ``PyFrameObject*``. See :pep:`523` for more " -"details of how to use this function pointer type." -msgstr "" - -msgid "" -":c:func:`PyCode_New` and :c:func:`PyCode_NewWithPosOnlyArgs` now take an " -"additional ``exception_table`` argument. Using these functions should be " -"avoided, if at all possible. To get a custom code object: create a code " -"object using the compiler, then get a modified version with the ``replace`` " -"method." -msgstr "" - -msgid "" -":c:type:`PyCodeObject` no longer has the ``co_code``, ``co_varnames``, " -"``co_cellvars`` and ``co_freevars`` fields. Instead, use :c:func:" -"`PyCode_GetCode`, :c:func:`PyCode_GetVarnames`, :c:func:`PyCode_GetCellvars` " -"and :c:func:`PyCode_GetFreevars` respectively to access them via the C API. " -"(Contributed by Brandt Bucher in :issue:`46841` and Ken Jin in :gh:`92154` " -"and :gh:`94936`.)" -msgstr "" - -msgid "" -"The old trashcan macros (``Py_TRASHCAN_SAFE_BEGIN``/" -"``Py_TRASHCAN_SAFE_END``) are now deprecated. They should be replaced by the " -"new macros ``Py_TRASHCAN_BEGIN`` and ``Py_TRASHCAN_END``." -msgstr "" - -msgid "A tp_dealloc function that has the old macros, such as::" -msgstr "" - -msgid "should migrate to the new macros as follows::" -msgstr "" - -msgid "" -"Note that ``Py_TRASHCAN_BEGIN`` has a second argument which should be the " -"deallocation function it is in." -msgstr "" - -msgid "" -"To support older Python versions in the same codebase, you can define the " -"following macros and use them throughout the code (credit: these were copied " -"from the ``mypy`` codebase)::" -msgstr "" - -msgid "" -"The :c:func:`PyType_Ready` function now raises an error if a type is defined " -"with the :const:`Py_TPFLAGS_HAVE_GC` flag set but has no traverse function (:" -"c:member:`PyTypeObject.tp_traverse`). (Contributed by Victor Stinner in :" -"issue:`44263`.)" -msgstr "" - -msgid "" -"Heap types with the :const:`Py_TPFLAGS_IMMUTABLETYPE` flag can now inherit " -"the :pep:`590` vectorcall protocol. Previously, this was only possible for :" -"ref:`static types `. (Contributed by Erlend E. Aasland in :" -"issue:`43908`)" -msgstr "" - -msgid "" -"Since :c:func:`Py_TYPE()` is changed to a inline static function, " -"``Py_TYPE(obj) = new_type`` must be replaced with ``Py_SET_TYPE(obj, " -"new_type)``: see the :c:func:`Py_SET_TYPE()` function (available since " -"Python 3.9). For backward compatibility, this macro can be used::" -msgstr "" - -msgid "(Contributed by Victor Stinner in :issue:`39573`.)" -msgstr "" - -msgid "" -"Since :c:func:`Py_SIZE()` is changed to a inline static function, " -"``Py_SIZE(obj) = new_size`` must be replaced with ``Py_SET_SIZE(obj, " -"new_size)``: see the :c:func:`Py_SET_SIZE()` function (available since " -"Python 3.9). For backward compatibility, this macro can be used::" -msgstr "" - -msgid "" -"```` no longer includes the header files ````, ````, ```` and ```` when the ``Py_LIMITED_API`` macro is " -"set to ``0x030b0000`` (Python 3.11) or higher. C extensions should " -"explicitly include the header files after ``#include ``. " -"(Contributed by Victor Stinner in :issue:`45434`.)" -msgstr "" - -msgid "" -"The non-limited API files ``cellobject.h``, ``classobject.h``, ``code.h``, " -"``context.h``, ``funcobject.h``, ``genobject.h`` and ``longintrepr.h`` have " -"been moved to the ``Include/cpython`` directory. Moreover, the ``eval.h`` " -"header file was removed. These files must not be included directly, as they " -"are already included in ``Python.h``: :ref:`Include Files `. " -"If they have been included directly, consider including ``Python.h`` " -"instead. (Contributed by Victor Stinner in :issue:`35134`.)" -msgstr "" - -msgid "" -"The :c:func:`PyUnicode_CHECK_INTERNED` macro has been excluded from the " -"limited C API. It was never usable there, because it used internal " -"structures which are not available in the limited C API. (Contributed by " -"Victor Stinner in :issue:`46007`.)" -msgstr "" - -msgid "" -"The following frame functions and type are now directly available with " -"``#include ``, it's no longer needed to add ``#include " -"``:" -msgstr "" - -msgid ":c:func:`PyFrame_Check`" -msgstr "" - -msgid ":c:func:`PyFrame_GetBack`" -msgstr "" - -msgid ":c:func:`PyFrame_GetBuiltins`" -msgstr "" - -msgid ":c:func:`PyFrame_GetGenerator`" -msgstr "" - -msgid ":c:func:`PyFrame_GetGlobals`" -msgstr "" - -msgid ":c:func:`PyFrame_GetLasti`" -msgstr "" - -msgid ":c:func:`PyFrame_GetLocals`" -msgstr "" - -msgid ":c:type:`PyFrame_Type`" -msgstr "" - -msgid "(Contributed by Victor Stinner in :gh:`93937`.)" -msgstr "" - -msgid "" -"The :c:type:`PyFrameObject` structure members have been removed from the " -"public C API." -msgstr "" - -msgid "" -"While the documentation notes that the :c:type:`PyFrameObject` fields are " -"subject to change at any time, they have been stable for a long time and " -"were used in several popular extensions." -msgstr "" - -msgid "" -"In Python 3.11, the frame struct was reorganized to allow performance " -"optimizations. Some fields were removed entirely, as they were details of " -"the old implementation." -msgstr "" - -msgid ":c:type:`PyFrameObject` fields:" -msgstr "" - -msgid "``f_back``: use :c:func:`PyFrame_GetBack`." -msgstr "" - -msgid "``f_blockstack``: removed." -msgstr "" - -msgid "``f_builtins``: use :c:func:`PyFrame_GetBuiltins`." -msgstr "" - -msgid "``f_code``: use :c:func:`PyFrame_GetCode`." -msgstr "" - -msgid "``f_gen``: use :c:func:`PyFrame_GetGenerator`." -msgstr "" - -msgid "``f_globals``: use :c:func:`PyFrame_GetGlobals`." -msgstr "" - -msgid "``f_iblock``: removed." -msgstr "" - -msgid "" -"``f_lasti``: use :c:func:`PyFrame_GetLasti`. Code using ``f_lasti`` with " -"``PyCode_Addr2Line()`` should use :c:func:`PyFrame_GetLineNumber` instead; " -"it may be faster." -msgstr "" - -msgid "``f_lineno``: use :c:func:`PyFrame_GetLineNumber`" -msgstr "" - -msgid "``f_locals``: use :c:func:`PyFrame_GetLocals`." -msgstr "" - -msgid "``f_stackdepth``: removed." -msgstr "" - -msgid "``f_state``: no public API (renamed to ``f_frame.f_state``)." -msgstr "" - -msgid "``f_trace``: no public API." -msgstr "" - -msgid "" -"``f_trace_lines``: use ``PyObject_GetAttrString((PyObject*)frame, " -"\"f_trace_lines\")``." -msgstr "" - -msgid "" -"``f_trace_opcodes``: use ``PyObject_GetAttrString((PyObject*)frame, " -"\"f_trace_opcodes\")``." -msgstr "" - -msgid "``f_localsplus``: no public API (renamed to ``f_frame.localsplus``)." -msgstr "" - -msgid "``f_valuestack``: removed." -msgstr "" - -msgid "" -"The Python frame object is now created lazily. A side effect is that the " -"``f_back`` member must not be accessed directly, since its value is now also " -"computed lazily. The :c:func:`PyFrame_GetBack` function must be called " -"instead." -msgstr "" - -msgid "" -"Debuggers that accessed the ``f_locals`` directly *must* call :c:func:" -"`PyFrame_GetLocals` instead. They no longer need to call :c:func:" -"`PyFrame_FastToLocalsWithError` or :c:func:`PyFrame_LocalsToFast`, in fact " -"they should not call those functions. The necessary updating of the frame is " -"now managed by the virtual machine." -msgstr "" - -msgid "Code defining ``PyFrame_GetCode()`` on Python 3.8 and older::" -msgstr "" - -msgid "Code defining ``PyFrame_GetBack()`` on Python 3.8 and older::" -msgstr "" - -msgid "" -"Or use the `pythoncapi_compat project `__ to get these two functions on older Python versions." -msgstr "" - -msgid "Changes of the :c:type:`PyThreadState` structure members:" -msgstr "" - -msgid "" -"``frame``: removed, use :c:func:`PyThreadState_GetFrame` (function added to " -"Python 3.9 by :issue:`40429`). Warning: the function returns a :term:`strong " -"reference`, need to call :c:func:`Py_XDECREF`." -msgstr "" - -msgid "" -"``tracing``: changed, use :c:func:`PyThreadState_EnterTracing` and :c:func:" -"`PyThreadState_LeaveTracing` (functions added to Python 3.11 by :issue:" -"`43760`)." -msgstr "" - -msgid "" -"``recursion_depth``: removed, use ``(tstate->recursion_limit - tstate-" -">recursion_remaining)`` instead." -msgstr "" - -msgid "``stackcheck_counter``: removed." -msgstr "" - -msgid "Code defining ``PyThreadState_GetFrame()`` on Python 3.8 and older::" -msgstr "" - -msgid "" -"Code defining ``PyThreadState_EnterTracing()`` and " -"``PyThreadState_LeaveTracing()`` on Python 3.10 and older::" -msgstr "" - -msgid "" -"Or use `the pythoncapi_compat project `__ to get these functions on old Python functions." -msgstr "" - -msgid "" -"Distributors are encouraged to build Python with the optimized Blake2 " -"library `libb2`_." -msgstr "" - -msgid "" -"The :c:member:`PyConfig.module_search_paths_set` field must now be set to 1 " -"for initialization to use :c:member:`PyConfig.module_search_paths` to " -"initialize :data:`sys.path`. Otherwise, initialization will recalculate the " -"path and replace any values added to ``module_search_paths``." -msgstr "" - -msgid "" -":c:func:`PyConfig_Read` no longer calculates the initial search path, and " -"will not fill any values into :c:member:`PyConfig.module_search_paths`. To " -"calculate default paths and then modify them, finish initialization and use :" -"c:func:`PySys_GetObject` to retrieve :data:`sys.path` as a Python list " -"object and modify it directly." -msgstr "" - -msgid "" -"Deprecate the following functions to configure the Python initialization:" -msgstr "" - -msgid ":c:func:`PySys_AddWarnOptionUnicode`" -msgstr "" - -msgid ":c:func:`PySys_AddWarnOption`" -msgstr "" - -msgid ":c:func:`PySys_AddXOption`" -msgstr "" - -msgid ":c:func:`PySys_HasWarnOptions`" -msgstr "" - -msgid ":c:func:`PySys_SetArgvEx`" -msgstr "" - -msgid ":c:func:`PySys_SetArgv`" -msgstr "" - -msgid ":c:func:`PySys_SetPath`" -msgstr "" - -msgid ":c:func:`Py_SetPath`" -msgstr "" - -msgid ":c:func:`Py_SetProgramName`" -msgstr "" - -msgid ":c:func:`Py_SetPythonHome`" -msgstr "" - -msgid ":c:func:`Py_SetStandardStreamEncoding`" -msgstr "" - -msgid ":c:func:`_Py_SetProgramFullPath`" -msgstr "" - -msgid "" -"Use the new :c:type:`PyConfig` API of the :ref:`Python Initialization " -"Configuration ` instead (:pep:`587`). (Contributed by Victor " -"Stinner in :gh:`88279`.)" -msgstr "" - -msgid "" -"Deprecate the ``ob_shash`` member of the :c:type:`PyBytesObject`. Use :c:" -"func:`PyObject_Hash` instead. (Contributed by Inada Naoki in :issue:`46864`.)" -msgstr "" - -msgid "" -"The following C APIs have been deprecated in earlier Python releases, and " -"will be removed in Python 3.12." -msgstr "" - -msgid ":c:func:`PyUnicode_AS_DATA`" -msgstr "" - -msgid ":c:func:`PyUnicode_AS_UNICODE`" -msgstr "" - -msgid ":c:func:`PyUnicode_AsUnicodeAndSize`" -msgstr "" - -msgid ":c:func:`PyUnicode_AsUnicode`" -msgstr "" - -msgid ":c:func:`PyUnicode_FromUnicode`" -msgstr "" - -msgid ":c:func:`PyUnicode_GET_DATA_SIZE`" -msgstr "" - -msgid ":c:func:`PyUnicode_GET_SIZE`" -msgstr "" - -msgid ":c:func:`PyUnicode_GetSize`" -msgstr "" - -msgid ":c:func:`PyUnicode_IS_COMPACT`" -msgstr "" - -msgid ":c:func:`PyUnicode_IS_READY`" -msgstr "" - -msgid ":c:func:`PyUnicode_READY`" -msgstr "" - -msgid ":c:func:`Py_UNICODE_WSTR_LENGTH`" -msgstr "" - -msgid ":c:func:`_PyUnicode_AsUnicode`" -msgstr "" - -msgid ":c:macro:`PyUnicode_WCHAR_KIND`" -msgstr "" - -msgid ":c:type:`PyUnicodeObject`" -msgstr "" - -msgid ":c:func:`PyUnicode_InternImmortal()`" -msgstr "" - -msgid "" -":c:func:`PyFrame_BlockSetup` and :c:func:`PyFrame_BlockPop` have been " -"removed. (Contributed by Mark Shannon in :issue:`40222`.)" -msgstr "" - -msgid "Remove the following math macros using the ``errno`` variable:" -msgstr "" - -msgid "``Py_ADJUST_ERANGE1()``" -msgstr "" - -msgid "``Py_ADJUST_ERANGE2()``" -msgstr "" - -msgid "``Py_OVERFLOWED()``" -msgstr "" - -msgid "``Py_SET_ERANGE_IF_OVERFLOW()``" -msgstr "" - -msgid "``Py_SET_ERRNO_ON_MATH_ERROR()``" -msgstr "" - -msgid "(Contributed by Victor Stinner in :issue:`45412`.)" -msgstr "" - -msgid "" -"Remove ``Py_UNICODE_COPY()`` and ``Py_UNICODE_FILL()`` macros, deprecated " -"since Python 3.3. Use ``PyUnicode_CopyCharacters()`` or ``memcpy()`` " -"(``wchar_t*`` string), and ``PyUnicode_Fill()`` functions instead. " -"(Contributed by Victor Stinner in :issue:`41123`.)" -msgstr "" - -msgid "" -"Remove the ``pystrhex.h`` header file. It only contains private functions. C " -"extensions should only include the main ```` header file. " -"(Contributed by Victor Stinner in :issue:`45434`.)" -msgstr "" - -msgid "" -"Remove the ``Py_FORCE_DOUBLE()`` macro. It was used by the " -"``Py_IS_INFINITY()`` macro. (Contributed by Victor Stinner in :issue:" -"`45440`.)" -msgstr "" - -msgid "" -"The following items are no longer available when :c:macro:`Py_LIMITED_API` " -"is defined:" -msgstr "" - -msgid ":c:func:`PyMarshal_WriteLongToFile`" -msgstr "" - -msgid ":c:func:`PyMarshal_WriteObjectToFile`" -msgstr "" - -msgid ":c:func:`PyMarshal_ReadObjectFromString`" -msgstr "" - -msgid ":c:func:`PyMarshal_WriteObjectToString`" -msgstr "" - -msgid "the ``Py_MARSHAL_VERSION`` macro" -msgstr "" - -msgid "These are not part of the :ref:`limited API `." -msgstr "" - -msgid "(Contributed by Victor Stinner in :issue:`45474`.)" -msgstr "" - -msgid "" -"Exclude :c:func:`PyWeakref_GET_OBJECT` from the limited C API. It never " -"worked since the :c:type:`PyWeakReference` structure is opaque in the " -"limited C API. (Contributed by Victor Stinner in :issue:`35134`.)" -msgstr "" - -msgid "" -"Remove the ``PyHeapType_GET_MEMBERS()`` macro. It was exposed in the public " -"C API by mistake, it must only be used by Python internally. Use the " -"``PyTypeObject.tp_members`` member instead. (Contributed by Victor Stinner " -"in :issue:`40170`.)" -msgstr "" - -msgid "" -"Remove the ``HAVE_PY_SET_53BIT_PRECISION`` macro (moved to the internal C " -"API). (Contributed by Victor Stinner in :issue:`45412`.)" -msgstr "" - -msgid "" -"Remove the :c:type:`Py_UNICODE` encoder APIs, as they have been deprecated " -"since Python 3.3, are little used and are inefficient relative to the " -"recommended alternatives." -msgstr "" - -msgid "The removed functions are:" -msgstr "" - -msgid ":func:`!PyUnicode_Encode`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeASCII`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeLatin1`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeUTF7`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeUTF8`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeUTF16`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeUTF32`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeUnicodeEscape`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeRawUnicodeEscape`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeCharmap`" -msgstr "" - -msgid ":func:`!PyUnicode_TranslateCharmap`" -msgstr "" - -msgid ":func:`!PyUnicode_EncodeDecimal`" -msgstr "" - -msgid ":func:`!PyUnicode_TransformDecimalToASCII`" -msgstr "" - -msgid "" -"See :pep:`624` for details and :pep:`migration guidance <624#alternative-" -"apis>`. (Contributed by Inada Naoki in :issue:`44029`.)" -msgstr "" diff --git a/whatsnew/3.2.po b/whatsnew/3.2.po new file mode 100644 index 0000000000..d2ad2eace7 --- /dev/null +++ b/whatsnew/3.2.po @@ -0,0 +1,2759 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New In Python 3.2" +msgstr "" + +msgid "Author" +msgstr "Autor" + +msgid "Raymond Hettinger" +msgstr "Raymond Hettinger" + +msgid "" +"This article explains the new features in Python 3.2 as compared to 3.1. " +"Python 3.2 was released on February 20, 2011. It focuses on a few highlights " +"and gives a few examples. For full details, see the `Misc/NEWS `_ file." +msgstr "" + +msgid ":pep:`392` - Python 3.2 Release Schedule" +msgstr "" + +msgid "PEP 384: Defining a Stable ABI" +msgstr "" + +msgid "" +"In the past, extension modules built for one Python version were often not " +"usable with other Python versions. Particularly on Windows, every feature " +"release of Python required rebuilding all extension modules that one wanted " +"to use. This requirement was the result of the free access to Python " +"interpreter internals that extension modules could use." +msgstr "" + +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 " +"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." +msgstr "" + +msgid ":pep:`384` - Defining a Stable ABI" +msgstr "" + +msgid "PEP written by Martin von Löwis." +msgstr "" + +msgid "PEP 389: Argparse Command Line Parsing Module" +msgstr "" + +msgid "" +"A new module for command line parsing, :mod:`argparse`, was introduced to " +"overcome the limitations of :mod:`optparse` which did not provide support " +"for positional arguments (not just options), subcommands, required options " +"and other common patterns of specifying and validating options." +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +msgid "Example of calling the parser on a command string::" +msgstr "" + +msgid "Example of the parser's automatically generated help::" +msgstr "" + +msgid "" +"An especially nice :mod:`argparse` feature is the ability to define " +"subparsers, each with their own argument patterns and help displays::" +msgstr "" + +msgid ":pep:`389` - New Command Line Parsing Module" +msgstr "" + +msgid "PEP written by Steven Bethard." +msgstr "" + +msgid "" +":ref:`upgrading-optparse-code` for details on the differences " +"from :mod:`optparse`." +msgstr "" + +msgid "PEP 391: Dictionary Based Configuration for Logging" +msgstr "" + +msgid "" +"The :mod:`logging` module provided two kinds of configuration, one style " +"with function calls for each option or another style driven by an external " +"file saved in a :mod:`ConfigParser` format. Those options did not provide " +"the flexibility to create configurations from JSON or YAML files, nor did " +"they support incremental configuration, which is needed for specifying " +"logger options from a command line." +msgstr "" + +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::" +msgstr "" + +msgid "" +"If that dictionary is stored in a file called :file:`conf.json`, it can be " +"loaded and called with code like this::" +msgstr "" + +msgid ":pep:`391` - Dictionary Based Configuration for Logging" +msgstr "" + +msgid "PEP written by Vinay Sajip." +msgstr "" + +msgid "PEP 3148: The ``concurrent.futures`` module" +msgstr "" + +msgid "" +"Code for creating and managing concurrency is being collected in a new top-" +"level namespace, *concurrent*. Its first member is a *futures* package " +"which provides a uniform high-level interface for managing threads and " +"processes." +msgstr "" + +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." +msgstr "" + +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 " +"queue, add time-out handling, and limit the total number of threads, " +"processes, or remote procedure calls." +msgstr "" + +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 " +"competing strategy for resource management." +msgstr "" + +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." +msgstr "" + +msgid "" +"A simple of example of :class:`~concurrent.futures.ThreadPoolExecutor` is a " +"launch of four parallel threads for copying files::" +msgstr "" + +msgid ":pep:`3148` - Futures -- Execute Computations Asynchronously" +msgstr "" + +msgid "PEP written by Brian Quinlan." +msgstr "" + +msgid "" +":ref:`Code for Threaded Parallel URL reads`, an " +"example using threads to fetch multiple web pages in parallel." +msgstr "" + +msgid "" +":ref:`Code for computing prime numbers in parallel`, an example " +"demonstrating :class:`~concurrent.futures.ProcessPoolExecutor`." +msgstr "" + +msgid "PEP 3147: PYC Repository Directories" +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 " +"caching." +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Aside from the filenames and target directories, the new scheme has a few " +"aspects that are visible to the programmer:" +msgstr "" + +msgid "" +"Imported modules now have a :attr:`__cached__` attribute which stores the " +"name of the actual file that was imported:" +msgstr "" + +msgid "" +"The tag that is unique to each interpreter is accessible from the :mod:`imp` " +"module:" +msgstr "" + +msgid "" +"Scripts that try to deduce source filename from the imported file now need " +"to be smarter. It is no longer sufficient to simply strip the \"c\" from a " +"\".pyc\" filename. Instead, use the new functions in the :mod:`imp` module:" +msgstr "" + +msgid "" +"The :mod:`py_compile` and :mod:`compileall` modules have been updated to " +"reflect the new naming convention and target directory. The command-line " +"invocation of *compileall* has new options: ``-i`` for specifying a list of " +"files and directories to compile and ``-b`` which causes bytecode files to " +"be written to their legacy location rather than *__pycache__*." +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)." +msgstr "" + +msgid ":pep:`3147` - PYC Repository Directories" +msgstr "" + +msgid "PEP written by Barry Warsaw." +msgstr "" + +msgid "PEP 3149: ABI Version Tagged .so Files" +msgstr "" + +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." +msgstr "" + +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::" +msgstr "" + +msgid "" +"In Python itself, the tags are accessible from functions in " +"the :mod:`sysconfig` module::" +msgstr "" + +msgid ":pep:`3149` - ABI Version Tagged .so Files" +msgstr "" + +msgid "PEP 3333: Python Web Server Gateway Interface v1.0.1" +msgstr "" + +msgid "" +"This informational PEP clarifies how bytes/text issues are to be handled by " +"the WSGI protocol. The challenge is that string handling in Python 3 is " +"most conveniently handled with the :class:`str` type even though the HTTP " +"protocol is itself bytes oriented." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *native strings* are always of type :class:`str` but are restricted to " +"code points between *U+0000* through *U+00FF* which are translatable to " +"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." +msgstr "" + +msgid "" +"For developers porting WSGI applications from Python 2, here are the salient " +"points:" +msgstr "" + +msgid "" +"If the app already used strings for headers in Python 2, no change is needed." +msgstr "" + +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')``." +msgstr "" + +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 " +"native strings. The two cannot be mixed." +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." +msgstr "" + +msgid ":pep:`3333` - Python Web Server Gateway Interface v1.0.1" +msgstr "" + +msgid "PEP written by Phillip Eby." +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "Some smaller changes made to the core Python language are:" +msgstr "" + +msgid "" +"String formatting for :func:`format` and :meth:`str.format` gained new " +"capabilities for the format character **#**. Previously, for integers in " +"binary, octal, or hexadecimal, it caused the output to be prefixed with " +"'0b', '0o', or '0x' respectively. Now it can also handle floats, complex, " +"and Decimal, causing the output to always have a decimal point even when no " +"digits follow it." +msgstr "" + +msgid "" +"(Suggested by Mark Dickinson and implemented by Eric Smith in :issue:`7094`.)" +msgstr "" + +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::" +msgstr "" + +msgid "" +"(Suggested by Raymond Hettinger and implemented by Eric Smith " +"in :issue:`6081`.)" +msgstr "" + +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:" +msgstr "" + +msgid "(Contributed by Marcin Wojdyr in :issue:`1772833`)." +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* " +"would catch any exception, possibly masking genuine errors. Now, *hasattr* " +"has been tightened to only catch :exc:`AttributeError` and let other " +"exceptions pass through::" +msgstr "" + +msgid "" +"(Discovered by Yury Selivanov and fixed by Benjamin Peterson; :issue:`9666`.)" +msgstr "" + +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:" +msgstr "" + +msgid "(Proposed and implemented by Mark Dickinson; :issue:`9337`.)" +msgstr "" + +msgid "" +":class:`memoryview` objects now have a :meth:`~memoryview.release()` method " +"and they also now support the context management protocol. This allows " +"timely release of any resources that were acquired when requesting a buffer " +"from the original object." +msgstr "" + +msgid "(Added by Antoine Pitrou; :issue:`9757`.)" +msgstr "" + +msgid "" +"Previously it was illegal to delete a name from the local namespace if it " +"occurs as a free variable in a nested block::" +msgstr "" + +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::" +msgstr "" + +msgid "(See :issue:`4617`.)" +msgstr "" + +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:" +msgstr "" + +msgid "" +"(Suggested by Arfrever Frehtes Taifersar Arahesis and implemented by " +"Benjamin Peterson in :issue:`8413`.)" +msgstr "" + +msgid "" +"Warnings are now easier to control using the :envvar:`PYTHONWARNINGS` " +"environment variable as an alternative to using ``-W`` at the command line:" +msgstr "" + +msgid "" +"(Suggested by Barry Warsaw and implemented by Philip Jenvey " +"in :issue:`7301`.)" +msgstr "" + +msgid "" +"A new warning category, :exc:`ResourceWarning`, has been added. It is " +"emitted when potential issues with resource consumption or cleanup are " +"detected. It is silenced by default in normal release builds but can be " +"enabled through the means provided by the :mod:`warnings` module, or on the " +"command line." +msgstr "" + +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." +msgstr "" + +msgid "" +"A :exc:`ResourceWarning` is also issued when a :term:`file object` is " +"destroyed without having been explicitly closed. While the deallocator for " +"such object ensures it closes the underlying operating system resource " +"(usually, a file descriptor), the delay in deallocating the object could " +"produce various issues, especially under Windows. Here is an example of " +"enabling the warning from the command line:" +msgstr "" + +msgid "" +"(Added by Antoine Pitrou and Georg Brandl in :issue:`10093` " +"and :issue:`477863`.)" +msgstr "" + +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::" +msgstr "" + +msgid "" +"(Contributed by Daniel Stutzbach in :issue:`9213`, by Alexander Belopolsky " +"in :issue:`2690`, and by Nick Coghlan in :issue:`10889`.)" +msgstr "" + +msgid "" +"The :func:`callable` builtin function from Py2.x was resurrected. It " +"provides a concise, readable alternative to using an :term:`abstract base " +"class` in an expression like ``isinstance(x, collections.Callable)``:" +msgstr "" + +msgid "(See :issue:`10518`.)" +msgstr "" + +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." +msgstr "" + +msgid "(Required extensive work by Victor Stinner in :issue:`9425`.)" +msgstr "" + +msgid "New, Improved, and Deprecated Modules" +msgstr "" + +msgid "" +"Python's standard library has undergone significant maintenance efforts and " +"quality improvements." +msgstr "" + +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." +msgstr "" + +msgid "" +"Throughout the standard library, there has been more careful attention to " +"encodings and text versus bytes issues. In particular, interactions with " +"the operating system are now better able to exchange non-ASCII data using " +"the Windows MBCS encoding, locale-aware encodings, or UTF-8." +msgstr "" + +msgid "" +"Another significant win is the addition of substantially better support for " +"*SSL* connections and security certificates." +msgstr "" + +msgid "" +"In addition, more classes now implement a :term:`context manager` to support " +"convenient and reliable resource clean-up using a :keyword:`with` statement." +msgstr "" + +msgid "email" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Given bytes input to the model, :class:`~email.generator.Generator` will " +"convert message bodies that have a :mailheader:`Content-Transfer-Encoding` " +"of *8bit* to instead have a *7bit* :mailheader:`Content-Transfer-Encoding`." +msgstr "" + +msgid "" +"Headers with unencoded non-ASCII bytes are deemed to be :rfc:`2047`\\ " +"-encoded using the *unknown-8bit* character set." +msgstr "" + +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*." +msgstr "" + +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." +msgstr "" + +msgid "" +"(Proposed and implemented by R. David Murray, :issue:`4661` " +"and :issue:`10321`.)" +msgstr "" + +msgid "elementtree" +msgstr "" + +msgid "" +"The :mod:`xml.etree.ElementTree` package and " +"its :mod:`xml.etree.cElementTree` counterpart have been updated to version " +"1.3." +msgstr "" + +msgid "Several new and useful functions and methods have been added:" +msgstr "" + +msgid "" +":func:`xml.etree.ElementTree.fromstringlist` which builds an XML document " +"from a sequence of fragments" +msgstr "" + +msgid "" +":func:`xml.etree.ElementTree.register_namespace` for registering a global " +"namespace prefix" +msgstr "" + +msgid "" +":func:`xml.etree.ElementTree.tostringlist` for string representation " +"including all sublists" +msgstr "" + +msgid "" +":meth:`xml.etree.ElementTree.Element.extend` for appending a sequence of " +"zero or more elements" +msgstr "" + +msgid "" +":meth:`xml.etree.ElementTree.Element.iterfind` searches an element and " +"subelements" +msgstr "" + +msgid "" +":meth:`xml.etree.ElementTree.Element.itertext` creates a text iterator over " +"an element and its subelements" +msgstr "" + +msgid "" +":meth:`xml.etree.ElementTree.TreeBuilder.end` closes the current element" +msgstr "" + +msgid "" +":meth:`xml.etree.ElementTree.TreeBuilder.doctype` handles a doctype " +"declaration" +msgstr "" + +msgid "Two methods have been deprecated:" +msgstr "" + +msgid ":meth:`xml.etree.ElementTree.getchildren` use ``list(elem)`` instead." +msgstr "" + +msgid ":meth:`xml.etree.ElementTree.getiterator` use ``Element.iter`` instead." +msgstr "" + +msgid "" +"For details of the update, see `Introducing ElementTree `_ on Fredrik Lundh's website." +msgstr "" + +msgid "(Contributed by Florent Xicluna and Fredrik Lundh, :issue:`6472`.)" +msgstr "" + +msgid "functools" +msgstr "" + +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." +msgstr "" + +msgid "" +"For example, adding a caching decorator to a database query function can " +"save database accesses for popular searches:" +msgstr "" + +msgid "" +"To help with choosing an effective cache size, the wrapped function is " +"instrumented for tracking cache statistics:" +msgstr "" + +msgid "" +"If the phonelist table gets updated, the outdated contents of the cache can " +"be cleared with:" +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"In the above example, the cache can be removed by recovering the original " +"function:" +msgstr "" + +msgid "" +"(By Nick Coghlan and Terrence Cole; :issue:`9567`, :issue:`3445`, " +"and :issue:`8814`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"For example, supplying *__eq__* and *__lt__* will " +"enable :func:`~functools.total_ordering` to fill-in *__le__*, *__gt__* and " +"*__ge__*::" +msgstr "" + +msgid "" +"With the *total_ordering* decorator, the remaining comparison methods are " +"filled in automatically." +msgstr "" + +msgid "(Contributed by Raymond Hettinger.)" +msgstr "" + +msgid "" +"To aid in porting programs from Python 2, the :func:`functools.cmp_to_key` " +"function converts an old-style comparison function to modern :term:`key " +"function`:" +msgstr "" + +msgid "" +"For sorting examples and a brief sorting tutorial, see the `Sorting HowTo " +"`_ tutorial." +msgstr "" + +msgid "itertools" +msgstr "" + +msgid "" +"The :mod:`itertools` module has a new :func:`~itertools.accumulate` function " +"modeled on APL's *scan* operator and Numpy's *accumulate* function:" +msgstr "" + +msgid "" +"For an example using :func:`~itertools.accumulate`, see the :ref:`examples " +"for the random module `." +msgstr "" + +msgid "" +"(Contributed by Raymond Hettinger and incorporating design suggestions from " +"Mark Dickinson.)" +msgstr "" + +msgid "collections" +msgstr "" + +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:" +msgstr "" + +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." +msgstr "" + +msgid "" +"The default is to move an item to the last position. This is equivalent of " +"renewing an entry with ``od[k] = od.pop(k)``." +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid "threading" +msgstr "" + +msgid "" +"The :mod:`threading` module has a new :class:`~threading.Barrier` " +"synchronization class for making multiple threads wait until all of them " +"have reached a common barrier point. Barriers are useful for making sure " +"that a task with multiple preconditions does not run until all of the " +"predecessor tasks are complete." +msgstr "" + +msgid "" +"Barriers can work with an arbitrary number of threads. This is a " +"generalization of a `Rendezvous `_ which is defined for only two threads." +msgstr "" + +msgid "" +"Implemented as a two-phase cyclic barrier, :class:`~threading.Barrier` " +"objects are suitable for use in loops. The separate *filling* and " +"*draining* phases assure that all threads get released (drained) before any " +"one of them can loop back and re-enter the barrier. The barrier fully " +"resets after each cycle." +msgstr "" + +msgid "Example of using barriers::" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"If any of the predecessor tasks can hang or be delayed, a barrier can be " +"created with an optional *timeout* parameter. Then if the timeout period " +"elapses before all the predecessor tasks reach the barrier point, all " +"waiting threads are released and a :exc:`~threading.BrokenBarrierError` " +"exception is raised::" +msgstr "" + +msgid "" +"In this example, the barrier enforces a more robust rule. If some election " +"sites do not finish before midnight, the barrier times-out and the ballots " +"are sealed and deposited in a queue for later handling." +msgstr "" + +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 " +"`_, " +"*section 3.6*." +msgstr "" + +msgid "" +"(Contributed by Kristján Valur Jónsson with an API review by Jeffrey Yasskin " +"in :issue:`8777`.)" +msgstr "" + +msgid "datetime and time" +msgstr "" + +msgid "" +"The :mod:`datetime` module has a new type :class:`~datetime.timezone` that " +"implements the :class:`~datetime.tzinfo` interface by returning a fixed UTC " +"offset and timezone name. This makes it easier to create timezone-aware " +"datetime objects::" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :meth:`datetime.date.strftime` method is no longer restricted to years " +"after 1900. The new supported year range is from 1000 to 9999 inclusive." +msgstr "" + +msgid "" +"Whenever a two-digit year is used in a time tuple, the interpretation has " +"been governed by :attr:`time.accept2dyear`. The default is ``True`` which " +"means that for a two-digit year, the century is guessed according to the " +"POSIX rules governing the ``%y`` strptime format." +msgstr "" + +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::" +msgstr "" + +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 corresponding operating system functions." +msgstr "" + +msgid "" +"(Contributed by Alexander Belopolsky and Victor Stinner " +"in :issue:`1289118`, :issue:`5094`, :issue:`6641`, :issue:`2706`, :issue:`1777412`, :issue:`8013`, " +"and :issue:`10827`.)" +msgstr "" + +msgid "math" +msgstr "" + +msgid "" +"The :mod:`math` module has been updated with six new functions inspired by " +"the C99 standard." +msgstr "" + +msgid "" +"The :func:`~math.isfinite` function provides a reliable and fast way to " +"detect special values. It returns ``True`` for regular numbers and " +"``False`` for *Nan* or *Infinity*:" +msgstr "" + +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 " +"subtraction of nearly equal quantities:" +msgstr "" + +msgid "" +"The :func:`~math.erf` function computes a probability integral or `Gaussian " +"error function `_. The " +"complementary error function, :func:`~math.erfc`, is ``1 - erf(x)``:" +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 " +"computing the natural logarithm of the gamma function:" +msgstr "" + +msgid "(Contributed by Mark Dickinson.)" +msgstr "" + +msgid "abc" +msgstr "" + +msgid "" +"The :mod:`abc` module now supports :func:`~abc.abstractclassmethod` " +"and :func:`~abc.abstractstaticmethod`." +msgstr "" + +msgid "" +"These tools make it possible to define an :term:`abstract base class` that " +"requires a particular :func:`classmethod` or :func:`staticmethod` to be " +"implemented::" +msgstr "" + +msgid "(Patch submitted by Daniel Urban; :issue:`5867`.)" +msgstr "" + +msgid "io" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Antoine Pitrou in :issue:`5506`.)" +msgstr "" + +msgid "reprlib" +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"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 "" + +msgid "(Contributed by Raymond Hettinger in :issue:`9826` and :issue:`9840`.)" +msgstr "" + +msgid "logging" +msgstr "" + +msgid "" +"In addition to dictionary-based configuration described above, " +"the :mod:`logging` package has many other improvements." +msgstr "" + +msgid "" +"The logging documentation has been augmented by a :ref:`basic tutorial " +"`\\, an :ref:`advanced tutorial `\\, and a :ref:`cookbook ` of logging recipes. " +"These documents are the fastest way to learn about logging." +msgstr "" + +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::" +msgstr "" + +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 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`." +msgstr "" + +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``." +msgstr "" + +msgid "" +"There were a number of other improvements that add flexibility and simplify " +"configuration. See the module documentation for a full listing of changes " +"in Python 3.2." +msgstr "" + +msgid "csv" +msgstr "" + +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``." +msgstr "" + +msgid "" +"The :class:`csv.DictWriter` has a new " +"method, :meth:`~csv.DictWriter.writeheader` for writing-out an initial row " +"to document the field names::" +msgstr "" + +msgid "" +"(New dialect suggested by Jay Talbot in :issue:`5975`, and the new method " +"suggested by Ed Abraham in :issue:`1537721`.)" +msgstr "" + +msgid "contextlib" +msgstr "" + +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." +msgstr "" + +msgid "" +"As a convenience, this new functionality is used " +"by :func:`~contextlib.contextmanager` so that no extra effort is needed to " +"support both roles." +msgstr "" + +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 " +"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." +msgstr "" + +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::" +msgstr "" + +msgid "Formerly, this would have only been usable as a context manager::" +msgstr "" + +msgid "Now, it can be used as a decorator as well::" +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." +msgstr "" + +msgid "" +"In the above example, there is not a clean way for the " +"*track_entry_and_exit* context manager to return a logging instance for use " +"in the body of enclosed statements." +msgstr "" + +msgid "(Contributed by Michael Foord in :issue:`9110`.)" +msgstr "" + +msgid "decimal and fractions" +msgstr "" + +msgid "" +"Mark Dickinson crafted an elegant and efficient scheme for assuring that " +"different numeric datatypes will have the same hash value whenever their " +"actual values are equal (:issue:`8188`)::" +msgstr "" + +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:" +msgstr "" + +msgid "" +"An early decision to limit the inter-operability of various numeric types " +"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 " +"comparisons." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +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`):" +msgstr "" + +msgid "" +"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 "" + +msgid "(Contributed by Mark Dickinson and Raymond Hettinger.)" +msgstr "" + +msgid "ftp" +msgstr "" + +msgid "" +"The :class:`ftplib.FTP` class now supports the context management protocol " +"to unconditionally consume :exc:`socket.error` exceptions and to close the " +"FTP connection when done::" +msgstr "" + +msgid "" +"Other file-like objects such as :class:`mmap.mmap` " +"and :func:`fileinput.input` also grew auto-closing context managers::" +msgstr "" + +msgid "" +"(Contributed by Tarek Ziadé and Giampaolo Rodolà in :issue:`4972`, and by " +"Georg Brandl in :issue:`8046` and :issue:`1286`.)" +msgstr "" + +msgid "" +"The :class:`~ftplib.FTP_TLS` class now accepts a *context* parameter, which " +"is a :class:`ssl.SSLContext` object allowing bundling SSL configuration " +"options, certificates and private keys into a single (potentially long-" +"lived) structure." +msgstr "" + +msgid "(Contributed by Giampaolo Rodolà; :issue:`8806`.)" +msgstr "" + +msgid "popen" +msgstr "" + +msgid "" +"The :func:`os.popen` and :func:`subprocess.Popen` functions now " +"support :keyword:`with` statements for auto-closing of the file descriptors." +msgstr "" + +msgid "" +"(Contributed by Antoine Pitrou and Brian Curtin in :issue:`7461` " +"and :issue:`10554`.)" +msgstr "" + +msgid "select" +msgstr "" + +msgid "" +"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 "" + +msgid "(Available on Unix systems. Patch by Sébastien Sablé in :issue:`9862`)" +msgstr "" + +msgid "gzip and zipfile" +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +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` " +"and :issue:`2846`.)" +msgstr "" + +msgid "" +"Also, the :class:`zipfile.ZipExtFile` class was reworked internally to " +"represent files stored inside an archive. The new implementation is " +"significantly faster and can be wrapped in an :class:`io.BufferedReader` " +"object for more speedups. It also solves an issue where interleaved calls " +"to *read* and *readline* gave the wrong results." +msgstr "" + +msgid "(Patch submitted by Nir Aides in :issue:`7610`.)" +msgstr "" + +msgid "tarfile" +msgstr "" + +msgid "" +"The :class:`~tarfile.TarFile` class can now be used as a context manager. " +"In addition, its :meth:`~tarfile.TarFile.add` method has a new option, " +"*filter*, that controls which files are added to the archive and allows the " +"file metadata to be edited." +msgstr "" + +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``::" +msgstr "" + +msgid "" +"(Proposed by Tarek Ziadé and implemented by Lars Gustäbel in :issue:`6856`.)" +msgstr "" + +msgid "hashlib" +msgstr "" + +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::" +msgstr "" + +msgid "(Suggested by Carl Chenet in :issue:`7418`.)" +msgstr "" + +msgid "ast" +msgstr "" + +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``." +msgstr "" + +msgid "(Implemented by Benjamin Peterson and Georg Brandl.)" +msgstr "" + +msgid "os" +msgstr "" + +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 filenames:" +msgstr "" + +msgid "" +"Some operating systems allow direct access to encoded bytes in the " +"environment. If so, the :attr:`os.supports_bytes_environ` constant will be " +"true." +msgstr "" + +msgid "" +"For direct access to encoded environment variables (if available), use the " +"new :func:`os.getenvb` function or use :data:`os.environb` which is a bytes " +"version of :data:`os.environ`." +msgstr "" + +msgid "(Contributed by Victor Stinner.)" +msgstr "" + +msgid "shutil" +msgstr "" + +msgid "The :func:`shutil.copytree` function has two new options:" +msgstr "" + +msgid "" +"*ignore_dangling_symlinks*: when ``symlinks=False`` so that the function " +"copies a file pointed to by a symlink, not the symlink itself. This option " +"will silence the error raised if the file doesn't exist." +msgstr "" + +msgid "" +"*copy_function*: is a callable that will be used to copy " +"files. :func:`shutil.copy2` is used by default." +msgstr "" + +msgid "(Contributed by Tarek Ziadé.)" +msgstr "" + +msgid "" +"In addition, the :mod:`shutil` module now supports :ref:`archiving " +"operations ` for zipfiles, uncompressed tarfiles, " +"gzipped tarfiles, and bzipped tarfiles. And there are functions for " +"registering additional archiving file formats (such as xz compressed " +"tarfiles or custom formats)." +msgstr "" + +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)." +msgstr "" + +msgid "sqlite3" +msgstr "" + +msgid "" +"The :mod:`sqlite3` module was updated to pysqlite version 2.6.0. It has two " +"new capabilities." +msgstr "" + +msgid "" +"The :attr:`sqlite3.Connection.in_transit` attribute is true if there is an " +"active transaction for uncommitted changes." +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by R. David Murray and Shashwat Anand; :issue:`8845`.)" +msgstr "" + +msgid "html" +msgstr "" + +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:" +msgstr "" + +msgid "socket" +msgstr "" + +msgid "The :mod:`socket` module has two new improvements." +msgstr "" + +msgid "" +"Socket objects now have a :meth:`~socket.socket.detach()` method which puts " +"the socket into closed state without actually closing the underlying file " +"descriptor. The latter can then be reused for other purposes. (Added by " +"Antoine Pitrou; :issue:`8524`.)" +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`.)" +msgstr "" + +msgid "ssl" +msgstr "" + +msgid "" +"The :mod:`ssl` module added a number of features to satisfy common " +"requirements for secure (encrypted, authenticated) internet connections:" +msgstr "" + +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 " +"creating an SSL socket from an SSL context." +msgstr "" + +msgid "" +"A new function, :func:`ssl.match_hostname`, supports server identity " +"verification for higher-level protocols by implementing the rules of HTTPS " +"(from :rfc:`2818`) which are also suitable for other protocols." +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 `__." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +msgid "" +"The extension now loads all the OpenSSL ciphers and digest algorithms. If " +"some SSL certificates cannot be verified, they are reported as an \"unknown " +"algorithm\" error." +msgstr "" + +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)." +msgstr "" + +msgid "" +"(Contributed by Antoine Pitrou " +"in :issue:`8850`, :issue:`1589`, :issue:`8322`, :issue:`5639`, :issue:`4870`, :issue:`8484`, " +"and :issue:`8321`.)" +msgstr "" + +msgid "nntp" +msgstr "" + +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 " +"dysfunctional in itself." +msgstr "" + +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." +msgstr "" + +msgid "" +"(Contributed by Antoine Pitrou in :issue:`9360` and Andrew Vant " +"in :issue:`1926`.)" +msgstr "" + +msgid "certificates" +msgstr "" + +msgid "" +":class:`http.client.HTTPSConnection`, :class:`urllib.request.HTTPSHandler` " +"and :func:`urllib.request.urlopen` now take optional arguments to allow for " +"server certificate checking against a set of Certificate Authorities, as " +"recommended in public uses of HTTPS." +msgstr "" + +msgid "(Added by Antoine Pitrou, :issue:`9003`.)" +msgstr "" + +msgid "imaplib" +msgstr "" + +msgid "" +"Support for explicit TLS on standard IMAP4 connections has been added " +"through the new :mod:`imaplib.IMAP4.starttls` method." +msgstr "" + +msgid "(Contributed by Lorenzo M. Catucci and Antoine Pitrou, :issue:`4471`.)" +msgstr "" + +msgid "http.client" +msgstr "" + +msgid "" +"There were a number of small API improvements in the :mod:`http.client` " +"module. The old-style HTTP 0.9 simple responses are no longer supported and " +"the *strict* parameter is deprecated in all classes." +msgstr "" + +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." +msgstr "" + +msgid "" +"Support for certificate checking and HTTPS virtual hosts were added " +"to :class:`~http.client.HTTPSConnection`." +msgstr "" + +msgid "" +"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." +msgstr "" + +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." +msgstr "" + +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`.)" +msgstr "" + +msgid "unittest" +msgstr "" + +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 " +"names." +msgstr "" + +msgid "" +"The command-line call ``python -m unittest`` can now accept file paths " +"instead of module names for running specific tests (:issue:`10620`). The " +"new test discovery can find tests within packages, locating any test " +"importable from the top-level directory. The top-level directory can be " +"specified with the ``-t`` option, a pattern for matching files with ``-p``, " +"and a directory to start discovery with ``-s``:" +msgstr "" + +msgid "(Contributed by Michael Foord.)" +msgstr "" + +msgid "" +"Experimentation at the interactive prompt is now easier because " +"the :class:`unittest.case.TestCase` class can now be instantiated without " +"arguments:" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Antoine Pitrou, :issue:`9754`.)" +msgstr "" + +msgid "" +"Another new method, :meth:`~unittest.TestCase.assertCountEqual` is used to " +"compare two iterables to determine if their element counts are equal " +"(whether the same elements are present with the same number of occurrences " +"regardless of order)::" +msgstr "" + +msgid "" +"A principal feature of the unittest module is an effort to produce " +"meaningful diagnostics when a test fails. When possible, the failure is " +"recorded along with a diff of the output. This is especially helpful for " +"analyzing log files of failed test runs. However, since diffs can sometime " +"be voluminous, there is a new :attr:`~unittest.TestCase.maxDiff` attribute " +"that sets maximum length of diffs displayed." +msgstr "" + +msgid "" +"In addition, the method names in the module have undergone a number of clean-" +"ups." +msgstr "" + +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 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 " +"has unambiguous camel-casing." +msgstr "" + +msgid "(Contributed by Raymond Hettinger and implemented by Ezio Melotti.)" +msgstr "" + +msgid "" +"To improve consistency, some long-standing method aliases are being " +"deprecated in favor of the preferred names:" +msgstr "" + +msgid "Old Name" +msgstr "" + +msgid "Preferred Name" +msgstr "" + +msgid ":meth:`assert_`" +msgstr "" + +msgid ":meth:`.assertTrue`" +msgstr ":meth:`.assertTrue`" + +msgid ":meth:`assertEquals`" +msgstr "" + +msgid ":meth:`.assertEqual`" +msgstr ":meth:`.assertEqual`" + +msgid ":meth:`assertNotEquals`" +msgstr "" + +msgid ":meth:`.assertNotEqual`" +msgstr ":meth:`.assertNotEqual`" + +msgid ":meth:`assertAlmostEquals`" +msgstr "" + +msgid ":meth:`.assertAlmostEqual`" +msgstr ":meth:`.assertAlmostEqual`" + +msgid ":meth:`assertNotAlmostEquals`" +msgstr "" + +msgid ":meth:`.assertNotAlmostEqual`" +msgstr ":meth:`.assertNotAlmostEqual`" + +msgid "" +"Likewise, the ``TestCase.fail*`` methods deprecated in Python 3.1 are " +"expected to be removed in Python 3.3. Also see the :ref:`deprecated-" +"aliases` section in the :mod:`unittest` documentation." +msgstr "" + +msgid "(Contributed by Ezio Melotti; :issue:`9424`.)" +msgstr "" + +msgid "" +"The :meth:`~unittest.TestCase.assertDictContainsSubset` method was " +"deprecated because it was misimplemented with the arguments in the wrong " +"order. This created hard-to-debug optical illusions where tests like " +"``TestCase().assertDictContainsSubset({'a':1, 'b':2}, {'a':1})`` would fail." +msgstr "" + +msgid "random" +msgstr "" + +msgid "" +"The integer methods in the :mod:`random` module now do a better job of " +"producing uniform distributions. Previously, they computed selections with " +"``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`." +msgstr "" + +msgid "(Contributed by Raymond Hettinger; :issue:`9025`.)" +msgstr "" + +msgid "poplib" +msgstr "" + +msgid "" +":class:`~poplib.POP3_SSL` class now accepts a *context* parameter, which is " +"a :class:`ssl.SSLContext` object allowing bundling SSL configuration " +"options, certificates and private keys into a single (potentially long-" +"lived) structure." +msgstr "" + +msgid "(Contributed by Giampaolo Rodolà; :issue:`8807`.)" +msgstr "" + +msgid "asyncore" +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by Giampaolo Rodolà; :issue:`6706`.)" +msgstr "" + +msgid "tempfile" +msgstr "" + +msgid "" +"The :mod:`tempfile` module has a new context " +"manager, :class:`~tempfile.TemporaryDirectory` which provides easy " +"deterministic cleanup of temporary directories::" +msgstr "" + +msgid "(Contributed by Neil Schemenauer and Nick Coghlan; :issue:`5178`.)" +msgstr "" + +msgid "inspect" +msgstr "" + +msgid "" +"The :mod:`inspect` module has a new " +"function :func:`~inspect.getgeneratorstate` to easily identify the current " +"state of a generator-iterator::" +msgstr "" + +msgid "(Contributed by Rodolpho Eckhardt and Nick Coghlan, :issue:`10220`.)" +msgstr "" + +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::" +msgstr "" + +msgid "pydoc" +msgstr "" + +msgid "" +"The :mod:`pydoc` module now provides a much-improved web server interface, " +"as well as a new command-line option ``-b`` to automatically open a browser " +"window to display that server:" +msgstr "" + +msgid "(Contributed by Ron Adam; :issue:`2001`.)" +msgstr "" + +msgid "dis" +msgstr "" + +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::" +msgstr "" + +msgid "" +"In addition, the :func:`~dis.dis` function now accepts string arguments so " +"that the common idiom ``dis(compile(s, '', 'eval'))`` can be shortened to " +"``dis(s)``::" +msgstr "" + +msgid "" +"Taken together, these improvements make it easier to explore how CPython is " +"implemented and to see for yourself what the language syntax does under-the-" +"hood." +msgstr "" + +msgid "(Contributed by Nick Coghlan in :issue:`9147`.)" +msgstr "" + +msgid "dbm" +msgstr "" + +msgid "" +"All database modules now support the :meth:`get` and :meth:`setdefault` " +"methods." +msgstr "" + +msgid "(Suggested by Ray Allen in :issue:`9523`.)" +msgstr "" + +msgid "ctypes" +msgstr "" + +msgid "" +"A new type, :class:`ctypes.c_ssize_t` represents the C :c:type:`ssize_t` " +"datatype." +msgstr "" + +msgid "site" +msgstr "" + +msgid "" +"The :mod:`site` module has three new functions useful for reporting on the " +"details of a given Python installation." +msgstr "" + +msgid "" +":func:`~site.getsitepackages` lists all global site-packages directories." +msgstr "" + +msgid "" +":func:`~site.getuserbase` reports on the user's base directory where data " +"can be stored." +msgstr "" + +msgid "" +":func:`~site.getusersitepackages` reveals the user-specific site-packages " +"directory path." +msgstr "" + +msgid "" +"Conveniently, some of site's functionality is accessible directly from the " +"command-line:" +msgstr "" + +msgid "(Contributed by Tarek Ziadé in :issue:`6693`.)" +msgstr "" + +msgid "sysconfig" +msgstr "" + +msgid "" +"The new :mod:`sysconfig` module makes it straightforward to discover " +"installation paths and configuration variables that vary across platforms " +"and installations." +msgstr "" + +msgid "" +"The module offers access simple access functions for platform and version " +"information:" +msgstr "" + +msgid "" +":func:`~sysconfig.get_platform` returning values like *linux-i586* or " +"*macosx-10.6-ppc*." +msgstr "" + +msgid "" +":func:`~sysconfig.get_python_version` returns a Python version string such " +"as \"3.2\"." +msgstr "" + +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*:" +msgstr "" + +msgid "" +":func:`~sysconfig.get_paths` makes a dictionary containing installation " +"paths for the current installation scheme." +msgstr "" + +msgid "" +":func:`~sysconfig.get_config_vars` returns a dictionary of platform specific " +"variables." +msgstr "" + +msgid "There is also a convenient command-line interface:" +msgstr "" + +msgid "(Moved out of Distutils by Tarek Ziadé.)" +msgstr "" + +msgid "pdb" +msgstr "" + +msgid "" +"The :mod:`pdb` debugger module gained a number of usability improvements:" +msgstr "" + +msgid "" +":file:`pdb.py` now has a ``-c`` option that executes commands as given in " +"a :file:`.pdbrc` script file." +msgstr "" + +msgid "" +"A :file:`.pdbrc` script file can contain ``continue`` and ``next`` commands " +"that continue debugging." +msgstr "" + +msgid "The :class:`Pdb` class constructor now accepts a *nosigint* argument." +msgstr "" + +msgid "" +"New commands: ``l(list)``, ``ll(long list)`` and ``source`` for listing " +"source code." +msgstr "" + +msgid "" +"New commands: ``display`` and ``undisplay`` for showing or hiding the value " +"of an expression if it has changed." +msgstr "" + +msgid "" +"New command: ``interact`` for starting an interactive interpreter containing " +"the global and local names found in the current scope." +msgstr "" + +msgid "Breakpoints can be cleared by breakpoint number." +msgstr "" + +msgid "(Contributed by Georg Brandl, Antonio Cuni and Ilya Sandler.)" +msgstr "" + +msgid "configparser" +msgstr "" + +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." +msgstr "" + +msgid "Config parsers gained a new API based on the mapping protocol::" +msgstr "" + +msgid "" +"The new API is implemented on top of the classical API, so custom parser " +"subclasses should be able to use it without modifications." +msgstr "" + +msgid "" +"The INI file structure accepted by config parsers can now be customized. " +"Users can specify alternative option/value delimiters and comment prefixes, " +"change the name of the *DEFAULT* section or switch the interpolation syntax." +msgstr "" + +msgid "" +"There is support for pluggable interpolation including an additional " +"interpolation handler :class:`~configparser.ExtendedInterpolation`::" +msgstr "" + +msgid "" +"A number of smaller features were also introduced, like support for " +"specifying encoding in read operations, specifying fallback values for get-" +"functions, or reading directly from dictionaries and strings." +msgstr "" + +msgid "(All changes contributed by Łukasz Langa.)" +msgstr "" + +msgid "urllib.parse" +msgstr "" + +msgid "" +"A number of usability improvements were made for the :mod:`urllib.parse` " +"module." +msgstr "" + +msgid "" +"The :func:`~urllib.parse.urlparse` function now supports `IPv6 `_ addresses as described in :rfc:`2732`:" +msgstr "" + +msgid "" +"The :func:`~urllib.parse.urldefrag` function now returns a :term:`named " +"tuple`::" +msgstr "" + +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::" +msgstr "" + +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:" +msgstr "" + +msgid "" +"(Work by Nick Coghlan, Dan Mahn, and Senthil Kumaran " +"in :issue:`2987`, :issue:`5468`, and :issue:`9873`.)" +msgstr "" + +msgid "mailbox" +msgstr "" + +msgid "" +"Thanks to a concerted effort by R. David Murray, the :mod:`mailbox` module " +"has been fixed for Python 3.2. The challenge was that mailbox had been " +"originally designed with a text interface, but email messages are best " +"represented with :class:`bytes` because various parts of a message may have " +"different encodings." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"As expected, the :meth:`~mailbox.Mailbox.add` method " +"for :class:`mailbox.Mailbox` objects now accepts binary input." +msgstr "" + +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." +msgstr "" + +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*." +msgstr "" + +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." +msgstr "" + +msgid "" +"(Contributed by R. David Murray, with efforts from Steffen Daode Nurpmeso " +"and an initial patch by Victor Stinner in :issue:`9124`.)" +msgstr "" + +msgid "turtledemo" +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:" +msgstr "" + +msgid "" +"(Moved from the Demo directory by Alexander Belopolsky in :issue:`10199`.)" +msgstr "" + +msgid "Multi-threading" +msgstr "Wielowątkowość" + +msgid "" +"The mechanism for serializing execution of concurrently running Python " +"threads (generally known as the :term:`GIL` or 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." +msgstr "" + +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)." +msgstr "" + +msgid "(Contributed by Antoine Pitrou.)" +msgstr "" + +msgid "" +"Regular and recursive locks now accept an optional *timeout* argument to " +"their :meth:`~threading.Lock.acquire` method. (Contributed by Antoine " +"Pitrou; :issue:`7316`.)" +msgstr "" + +msgid "" +"Similarly, :meth:`threading.Semaphore.acquire` also gained a *timeout* " +"argument. (Contributed by Torsten Landschoff; :issue:`850728`.)" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +msgid "Optimizations" +msgstr "" + +msgid "A number of small performance enhancements have been added:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Now that the speed penalty is gone, it is practical to start writing " +"membership tests using set-notation. This style is both semantically clear " +"and operationally fast::" +msgstr "" + +msgid "" +"(Patch and additional tests contributed by Dave Malcolm; :issue:`6690`)." +msgstr "" + +msgid "" +"Serializing and unserializing data using the :mod:`pickle` module is now " +"several times faster." +msgstr "" + +msgid "" +"(Contributed by Alexandre Vassalotti, Antoine Pitrou and the Unladen Swallow " +"team in :issue:`9410` and :issue:`3873`.)" +msgstr "" + +msgid "" +"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 " +"saves time lost to delegating comparisons." +msgstr "" + +msgid "(Patch by Daniel Stutzbach in :issue:`9915`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"(Contributed by Antoine Pitrou in :issue:`7451` and by Raymond Hettinger and " +"Antoine Pitrou in :issue:`10314`.)" +msgstr "" + +msgid "" +"Recursive locks (created with the :func:`threading.RLock` API) now benefit " +"from a C implementation which makes them as fast as regular locks, and " +"between 10x and 15x faster than their previous pure Python implementation." +msgstr "" + +msgid "(Contributed by Antoine Pitrou; :issue:`3001`.)" +msgstr "" + +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`." +msgstr "" + +msgid "(Patch by Florent Xicluna in :issue:`7622` and :issue:`7462`.)" +msgstr "" + +msgid "" +"Integer to string conversions now work two \"digits\" at a time, reducing " +"the number of division and modulo operations." +msgstr "" + +msgid "(:issue:`6713` by Gawain Bolton, Mark Dickinson, and Victor Stinner.)" +msgstr "" + +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)." +msgstr "" + +msgid "Unicode" +msgstr "" + +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." +msgstr "" + +msgid "" +"In addition, the updated standard has altered the character properties for " +"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 `_." +msgstr "" + +msgid "Codecs" +msgstr "" + +msgid "Support was added for *cp720* Arabic DOS encoding (:issue:`1616979`)." +msgstr "" + +msgid "" +"MBCS encoding no longer ignores the error handler argument. In the default " +"strict mode, it raises an :exc:`UnicodeDecodeError` when it encounters an " +"undecodable byte sequence and an :exc:`UnicodeEncodeError` for an " +"unencodable character." +msgstr "" + +msgid "" +"The MBCS codec supports ``'strict'`` and ``'ignore'`` error handlers for " +"decoding, and ``'strict'`` and ``'replace'`` for encoding." +msgstr "" + +msgid "" +"To emulate Python3.1 MBCS encoding, select the ``'ignore'`` handler for " +"decoding and the ``'replace'`` handler for encoding." +msgstr "" + +msgid "" +"On Mac OS X, Python decodes command line arguments with ``'utf-8'`` rather " +"than the locale encoding." +msgstr "" + +msgid "" +"By default, :mod:`tarfile` uses ``'utf-8'`` encoding on Windows (instead of " +"``'mbcs'``) and the ``'surrogateescape'`` error handler on all operating " +"systems." +msgstr "" + +msgid "Documentation" +msgstr "Dokumentacja" + +msgid "The documentation continues to be improved." +msgstr "" + +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 " +"accompanied by tables of cheatsheet-style summaries to provide an overview " +"and memory jog without having to read all of the docs." +msgstr "" + +msgid "" +"In some cases, the pure Python source code can be a helpful adjunct to the " +"documentation, so now many modules now feature quick links to the latest " +"version of the source code. For example, the :mod:`functools` module " +"documentation has a quick link at the top labeled:" +msgstr "" + +msgid "**Source code** :source:`Lib/functools.py`." +msgstr "" + +msgid "" +"(Contributed by Raymond Hettinger; see `rationale `_.)" +msgstr "" + +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`." +msgstr "" + +msgid "" +"The :mod:`datetime` module now has an auxiliary implementation in pure " +"Python. No functionality was changed. This just provides an easier-to-read " +"alternate implementation." +msgstr "" + +msgid "(Contributed by Alexander Belopolsky in :issue:`9528`.)" +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by Georg Brandl in :issue:`7962`.)" +msgstr "" + +msgid "IDLE" +msgstr "IDLE" + +msgid "" +"The format menu now has an option to clean source files by stripping " +"trailing whitespace." +msgstr "" + +msgid "(Contributed by Raymond Hettinger; :issue:`5150`.)" +msgstr "" + +msgid "IDLE on Mac OS X now works with both Carbon AquaTk and Cocoa AquaTk." +msgstr "" + +msgid "" +"(Contributed by Kevin Walzer, Ned Deily, and Ronald Oussoren; :issue:`6075`.)" +msgstr "" + +msgid "Code Repository" +msgstr "" + +msgid "" +"In addition to the existing Subversion code repository at https://" +"svn.python.org there is now a `Mercurial `_ " +"repository at https://hg.python.org/\\ ." +msgstr "" + +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." +msgstr "" + +msgid "" +"To learn to use the new version control system, see the `Quick Start " +"`_ or the `Guide to Mercurial " +"Workflows `_." +msgstr "" + +msgid "Build and C API Changes" +msgstr "" + +msgid "Changes to Python's build process and to the C API include:" +msgstr "" + +msgid "" +"The *idle*, *pydoc* and *2to3* scripts are now installed with a version-" +"specific suffix on ``make altinstall`` (:issue:`10679`)." +msgstr "" + +msgid "" +"The C functions that access the Unicode Database now accept and return " +"characters from the full Unicode range, even on narrow unicode builds " +"(Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others). A visible " +"difference in Python is that :func:`unicodedata.numeric` now returns the " +"correct value for large code points, and :func:`repr` may consider more " +"characters as printable." +msgstr "" + +msgid "" +"(Reported by Bupjoe Lee and fixed by Amaury Forgeot D'Arc; :issue:`5127`.)" +msgstr "" + +msgid "" +"Computed gotos are now enabled by default on supported compilers (which are " +"detected by the configure script). They can still be disabled selectively " +"by specifying ``--without-computed-gotos``." +msgstr "" + +msgid "(Contributed by Antoine Pitrou; :issue:`9203`.)" +msgstr "" + +msgid "" +"The option ``--with-wctype-functions`` was removed. The built-in unicode " +"database is now used for all functions." +msgstr "" + +msgid "(Contributed by Amaury Forgeot D'Arc; :issue:`9210`.)" +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 " +"grow to that size but their performance degraded catastrophically)." +msgstr "" + +msgid "" +"(Suggested by Raymond Hettinger and implemented by Benjamin " +"Peterson; :issue:`9778`.)" +msgstr "" + +msgid "" +"A new macro :c:macro:`Py_VA_COPY` copies the state of the variable argument " +"list. It is equivalent to C99 *va_copy* but available on all Python " +"platforms (:issue:`2443`)." +msgstr "" + +msgid "" +"A new C API function :c:func:`PySys_SetArgvEx` allows an embedded " +"interpreter to set :attr:`sys.argv` without also modifying :attr:`sys.path` " +"(:issue:`5753`)." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The :c:func:`PyUnicode_CompareWithASCIIString` function now returns *not " +"equal* if the Python string is *NUL* terminated." +msgstr "" + +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 Python counterparts (:issue:`7033`)." +msgstr "" + +msgid "" +"When compiled with the ``--with-valgrind`` option, the pymalloc allocator " +"will be automatically disabled when running under Valgrind. This gives " +"improved memory leak detection when running under Valgrind, while taking " +"advantage of pymalloc at other times (:issue:`2422`)." +msgstr "" + +msgid "" +"Removed the ``O?`` format from the *PyArg_Parse* functions. The format is " +"no longer used and it had never been documented (:issue:`8837`)." +msgstr "" + +msgid "" +"There were a number of other small changes to the C-API. See the `Misc/NEWS " +"`_ file for a " +"complete list." +msgstr "" + +msgid "" +"Also, there were a number of updates to the Mac OS X build, see `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 "" + +msgid "Porting to Python 3.2" +msgstr "" + +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code:" +msgstr "" + +msgid "" +"The :mod:`configparser` module has a number of clean-ups. The major change " +"is to replace the old :class:`ConfigParser` class with long-standing " +"preferred alternative :class:`SafeConfigParser`. In addition there are a " +"number of smaller incompatibilities:" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"Inline comments are now disabled by default so now the **;** character can " +"be safely used in values." +msgstr "" + +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 " +"keeps comment prefix characters in values from being mistaken as comments." +msgstr "" + +msgid "" +"``\"\"`` is now a valid value and is no longer automatically converted to an " +"empty string. For empty strings, use ``\"option =\"`` in a line." +msgstr "" + +msgid "" +"The :mod:`nntplib` module was reworked extensively, meaning that its APIs " +"are often incompatible with the 3.1 APIs." +msgstr "" + +msgid "" +":class:`bytearray` objects can no longer be used as filenames; instead, they " +"should be converted to :class:`bytes`." +msgstr "" + +msgid "" +"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 "" + +msgid "``PyArg_Parse*()`` functions:" +msgstr "" + +msgid "\"t#\" format has been removed: use \"s#\" or \"s*\" instead" +msgstr "" + +msgid "\"w\" and \"w#\" formats has been removed: use \"w*\" instead" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :func:`sys.setfilesystemencoding` function was removed because it had a " +"flawed design." +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)``." +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by Georg Brandl; :issue:`5675`.)" +msgstr "" + +msgid "" +"The previously deprecated :func:`contextlib.nested` function has been " +"removed in favor of a plain :keyword:`with` statement which can accept " +"multiple context managers. The latter technique is faster (because it is " +"built-in), and it does a better job finalizing multiple context managers " +"when one of them raises an exception::" +msgstr "" + +msgid "" +"(Contributed by Georg Brandl and Mattias Brändström; `appspot issue 53094 " +"`_.)" +msgstr "" + +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 " +"correct encoding and because a variable-length encoding can fail when " +"writing to fixed length segment of a structure." +msgstr "" + +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, " +"y)``." +msgstr "" + +msgid "" +"(Discovered by David Beazley and fixed by Victor Stinner; :issue:`10783`.)" +msgstr "" + +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`." +msgstr "" + +msgid "" +"The new, longer :func:`str` value on floats may break doctests which rely on " +"the old output format." +msgstr "" + +msgid "" +"In :class:`subprocess.Popen`, the default value for *close_fds* is now " +"``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." +msgstr "" + +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`)." +msgstr "" + +msgid "(Contributed by Antoine Pitrou, :issue:`10711`.)" +msgstr "" + +msgid "" +"SSL sockets in timeout mode now raise :exc:`socket.timeout` when a timeout " +"occurs, rather than a generic :exc:`~ssl.SSLError`." +msgstr "" + +msgid "(Contributed by Antoine Pitrou, :issue:`10272`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"Due to security risks, :func:`asyncore.handle_accept` has been deprecated, " +"and a new function, :func:`asyncore.handle_accepted`, was added to replace " +"it." +msgstr "" + +msgid "(Contributed by Giampaolo Rodola in :issue:`6706`.)" +msgstr "" + +msgid "" +"Due to the new :term:`GIL` implementation, :c:func:`PyEval_InitThreads()` " +"cannot be called before :c:func:`Py_Initialize()` anymore." +msgstr "" diff --git a/whatsnew/3.3.po b/whatsnew/3.3.po new file mode 100644 index 0000000000..fa9ad54fc9 --- /dev/null +++ b/whatsnew/3.3.po @@ -0,0 +1,3185 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New In Python 3.3" +msgstr "" + +msgid "" +"This article explains the new features in Python 3.3, compared to 3.2. " +"Python 3.3 was released on September 29, 2012. For full details, see the " +"`changelog `_." +msgstr "" + +msgid ":pep:`398` - Python 3.3 Release Schedule" +msgstr "" + +msgid "Summary -- Release highlights" +msgstr "Podsumowanie – najważniejsze nowości" + +msgid "New syntax features:" +msgstr "Nowe cechy składni:" + +msgid "" +"New ``yield from`` expression for :ref:`generator delegation `." +msgstr "" + +msgid "The ``u'unicode'`` syntax is accepted again for :class:`str` objects." +msgstr "" + +msgid "New library modules:" +msgstr "Nowe moduły biblioteki:" + +msgid ":mod:`faulthandler` (helps debugging low-level crashes)" +msgstr "" + +msgid "" +":mod:`ipaddress` (high-level objects representing IP addresses and masks)" +msgstr "" + +msgid ":mod:`lzma` (compress data using the XZ / LZMA algorithm)" +msgstr "" + +msgid "" +":mod:`unittest.mock` (replace parts of your system under test with mock " +"objects)" +msgstr "" + +msgid "" +":mod:`venv` (Python :ref:`virtual environments `, as in the popular " +"``virtualenv`` package)" +msgstr "" + +msgid "New built-in features:" +msgstr "Nowe wbudowane funkcje:" + +msgid "Reworked :ref:`I/O exception hierarchy `." +msgstr "" + +msgid "Implementation improvements:" +msgstr "" + +msgid "" +"Rewritten :ref:`import machinery ` based on :mod:`importlib`." +msgstr "" + +msgid "More compact :ref:`unicode strings `." +msgstr "" + +msgid "More compact :ref:`attribute dictionaries `." +msgstr "" + +msgid "Significantly Improved Library Modules:" +msgstr "" + +msgid "C Accelerator for the :ref:`decimal ` module." +msgstr "" + +msgid "" +"Better unicode handling in the :ref:`email ` module " +"(:term:`provisional `)." +msgstr "" + +msgid "Security improvements:" +msgstr "" + +msgid "Hash randomization is switched on by default." +msgstr "" + +msgid "Please read on for a comprehensive list of user-facing changes." +msgstr "" + +msgid "PEP 405: Virtual Environments" +msgstr "" + +msgid "" +"Virtual environments help create separate Python setups while sharing a " +"system-wide base install, for ease of maintenance. Virtual environments " +"have their own set of private site packages (i.e. locally installed " +"libraries), and are optionally segregated from the system-wide site " +"packages. Their concept and implementation are inspired by the popular " +"``virtualenv`` third-party package, but benefit from tighter integration " +"with the interpreter core." +msgstr "" + +msgid "" +"This PEP adds the :mod:`venv` module for programmatic access, and the " +"``pyvenv`` script for command-line access and administration. The Python " +"interpreter checks for a ``pyvenv.cfg``, file whose existence signals the " +"base of a virtual environment's directory tree." +msgstr "" + +msgid ":pep:`405` - Python Virtual Environments" +msgstr "" + +msgid "PEP written by Carl Meyer; implementation by Carl Meyer and Vinay Sajip" +msgstr "" + +msgid "PEP 420: Implicit Namespace Packages" +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`)" +msgstr "" + +msgid ":pep:`420` - Implicit Namespace Packages" +msgstr "" + +msgid "" +"PEP written by Eric V. Smith; implementation by Eric V. Smith and Barry " +"Warsaw" +msgstr "" + +msgid "" +"PEP 3118: New memoryview implementation and buffer protocol documentation" +msgstr "" + +msgid "The implementation of :pep:`3118` has been significantly improved." +msgstr "" + +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." +msgstr "" + +msgid "" +"The memoryview object now has a PEP-3118 compliant getbufferproc() that " +"checks the consumer's request type. Many new features have been added, most " +"of them work in full generality for non-contiguous arrays and arrays with " +"suboffsets." +msgstr "" + +msgid "" +"The documentation has been updated, clearly spelling out responsibilities " +"for both exporters and consumers. Buffer request flags are grouped into " +"basic and compound flags. The memory layout of non-contiguous and multi-" +"dimensional NumPy-style arrays is explained." +msgstr "" + +msgid "Features" +msgstr "" + +msgid "" +"All native single character format specifiers in struct module syntax " +"(optionally prefixed with '@') are now supported." +msgstr "" + +msgid "" +"With some restrictions, the cast() method allows changing of format and " +"shape of C-contiguous arrays." +msgstr "" + +msgid "" +"Multi-dimensional list representations are supported for any array type." +msgstr "" + +msgid "Multi-dimensional comparisons are supported for any array type." +msgstr "" + +msgid "" +"One-dimensional memoryviews of hashable (read-only) types with formats B, b " +"or c are now hashable. (Contributed by Antoine Pitrou in :issue:`13411`.)" +msgstr "" + +msgid "" +"Arbitrary slicing of any 1-D arrays type is supported. For example, it is " +"now possible to reverse a memoryview in O(1) by using a negative step." +msgstr "" + +msgid "API changes" +msgstr "" + +msgid "The maximum number of dimensions is officially limited to 64." +msgstr "" + +msgid "" +"The representation of empty shape, strides and suboffsets is now an empty " +"tuple instead of ``None``." +msgstr "" + +msgid "" +"Accessing a memoryview element with format 'B' (unsigned bytes) now returns " +"an integer (in accordance with the struct module syntax). For returning a " +"bytes object the view must be cast to 'c' first." +msgstr "" + +msgid "" +"memoryview comparisons now use the logical structure of the operands and " +"compare all array elements by value. All format strings in struct module " +"syntax are supported. Views with unrecognised format strings are still " +"permitted, but will always compare as unequal, regardless of view contents." +msgstr "" + +msgid "" +"For further changes see `Build and C API Changes`_ and `Porting C code`_." +msgstr "" + +msgid "(Contributed by Stefan Krah in :issue:`10181`.)" +msgstr "" + +msgid ":pep:`3118` - Revising the Buffer Protocol" +msgstr "" + +msgid "PEP 393: Flexible String Representation" +msgstr "" + +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." +msgstr "" + +msgid "On the Python side, there should be no downside to this change." +msgstr "" + +msgid "" +"On the C API side, :pep:`393` is fully backward compatible. The legacy API " +"should remain available at least five years. Applications using the legacy " +"API will not fully benefit of the memory reduction, or - worse - may use a " +"bit more memory, because Python may have to maintain two versions of each " +"string (in the legacy format and in the new efficient storage)." +msgstr "" + +msgid "Functionality" +msgstr "" + +msgid "Changes introduced by :pep:`393` are the following:" +msgstr "" + +msgid "" +"Python now always supports the full range of Unicode code points, including " +"non-BMP ones (i.e. from ``U+0000`` to ``U+10FFFF``). The distinction " +"between narrow and wide builds no longer exists and Python now behaves like " +"a wide build, even under Windows." +msgstr "" + +msgid "" +"With the death of narrow builds, the problems specific to narrow builds have " +"also been fixed, for example:" +msgstr "" + +msgid "" +":func:`len` now always returns 1 for non-BMP characters, so " +"``len('\\U0010FFFF') == 1``;" +msgstr "" + +msgid "" +"surrogate pairs are not recombined in string literals, so " +"``'\\uDBFF\\uDFFF' != '\\U0010FFFF'``;" +msgstr "" + +msgid "" +"indexing or slicing non-BMP characters returns the expected value, so " +"``'\\U0010FFFF'[0]`` now returns ``'\\U0010FFFF'`` and not ``'\\uDBFF'``;" +msgstr "" + +msgid "" +"all other functions in the standard library now correctly handle non-BMP " +"code points." +msgstr "" + +msgid "" +"The value of :data:`sys.maxunicode` is now always ``1114111`` (``0x10FFFF`` " +"in hexadecimal). The :c:func:`PyUnicode_GetMax` function still returns " +"either ``0xFFFF`` or ``0x10FFFF`` for backward compatibility, and it should " +"not be used with the new Unicode API (see :issue:`13054`)." +msgstr "" + +msgid "The :file:`./configure` flag ``--with-wide-unicode`` has been removed." +msgstr "" + +msgid "Performance and resource usage" +msgstr "" + +msgid "" +"The storage of Unicode strings now depends on the highest code point in the " +"string:" +msgstr "" + +msgid "" +"pure ASCII and Latin1 strings (``U+0000-U+00FF``) use 1 byte per code point;" +msgstr "" + +msgid "BMP strings (``U+0000-U+FFFF``) use 2 bytes per code point;" +msgstr "" + +msgid "non-BMP strings (``U+10000-U+10FFFF``) use 4 bytes per code point." +msgstr "" + +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 " +"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 " +"than Python 3.2, and a little bit better than Python 2.7, on a Django " +"benchmark (see the PEP for details)." +msgstr "" + +msgid ":pep:`393` - Flexible String Representation" +msgstr "" + +msgid "" +"PEP written by Martin von Löwis; implementation by Torsten Becker and Martin " +"von Löwis." +msgstr "" + +msgid "PEP 397: Python Launcher for Windows" +msgstr "" + +msgid "" +"The Python 3.3 Windows installer now includes a ``py`` launcher application " +"that can be used to launch Python applications in a version independent " +"fashion." +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-" +"style \"shebang line\" in the Python script." +msgstr "" + +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 " +"Python 2 is also installed, or ``-2.6`` to specifically request an earlier " +"Python version when a more recent version is installed)." +msgstr "" + +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 " +"Curtin in :issue:`3561`.)" +msgstr "" + +msgid ":pep:`397` - Python Launcher for Windows" +msgstr "" + +msgid "" +"PEP written by Mark Hammond and Martin v. Löwis; implementation by Vinay " +"Sajip." +msgstr "" + +msgid "Launcher documentation: :ref:`launcher`" +msgstr "" + +msgid "Installer PATH modification: :ref:`windows-path-mod`" +msgstr "" + +msgid "PEP 3151: Reworking the OS and IO exception hierarchy" +msgstr "" + +msgid "" +"The hierarchy of exceptions raised by operating system errors is now both " +"simplified and finer-grained." +msgstr "" + +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." +msgstr "" + +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:" +msgstr "" + +msgid ":exc:`BlockingIOError`" +msgstr ":exc:`BlockingIOError`" + +msgid ":exc:`ChildProcessError`" +msgstr ":exc:`ChildProcessError`" + +msgid ":exc:`ConnectionError`" +msgstr ":exc:`ConnectionError`" + +msgid ":exc:`FileExistsError`" +msgstr ":exc:`FileExistsError`" + +msgid ":exc:`FileNotFoundError`" +msgstr ":exc:`FileNotFoundError`" + +msgid ":exc:`InterruptedError`" +msgstr ":exc:`InterruptedError`" + +msgid ":exc:`IsADirectoryError`" +msgstr ":exc:`IsADirectoryError`" + +msgid ":exc:`NotADirectoryError`" +msgstr ":exc:`NotADirectoryError`" + +msgid ":exc:`PermissionError`" +msgstr ":exc:`PermissionError`" + +msgid ":exc:`ProcessLookupError`" +msgstr ":exc:`ProcessLookupError`" + +msgid ":exc:`TimeoutError`" +msgstr ":exc:`TimeoutError`" + +msgid "And the :exc:`ConnectionError` itself has finer-grained subclasses:" +msgstr "" + +msgid ":exc:`BrokenPipeError`" +msgstr ":exc:`BrokenPipeError`" + +msgid ":exc:`ConnectionAbortedError`" +msgstr ":exc:`ConnectionAbortedError`" + +msgid ":exc:`ConnectionRefusedError`" +msgstr ":exc:`ConnectionRefusedError`" + +msgid ":exc:`ConnectionResetError`" +msgstr ":exc:`ConnectionResetError`" + +msgid "" +"Thanks to the new exceptions, common usages of the :mod:`errno` can now be " +"avoided. For example, the following code written for Python 3.2::" +msgstr "" + +msgid "" +"can now be written without the :mod:`errno` import and without manual " +"inspection of exception attributes::" +msgstr "" + +msgid ":pep:`3151` - Reworking the OS and IO Exception Hierarchy" +msgstr "" + +msgid "PEP written and implemented by Antoine Pitrou" +msgstr "" + +msgid "PEP 380: Syntax for Delegating to a Subgenerator" +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." +msgstr "" + +msgid "" +"While designed primarily for use in delegating to a subgenerator, the " +"``yield from`` expression actually allows delegation to arbitrary " +"subiterators." +msgstr "" + +msgid "" +"For simple iterators, ``yield from iterable`` is essentially just a " +"shortened form of ``for item in iterable: yield item``::" +msgstr "" + +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::" +msgstr "" + +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 " +"into multiple subfunctions." +msgstr "" + +msgid ":pep:`380` - Syntax for Delegating to a Subgenerator" +msgstr "" + +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 " +"Jędrzejewski-Szmek and Nick Coghlan" +msgstr "" + +msgid "PEP 409: Suppressing exception context" +msgstr "" + +msgid "" +"PEP 409 introduces new syntax that allows the display of the chained " +"exception context to be disabled. This allows cleaner error messages in " +"applications that convert between exception types::" +msgstr "" + +msgid "" +"Without the ``from None`` suffix to suppress the cause, the original " +"exception would be displayed by default::" +msgstr "" + +msgid "" +"No debugging capability is lost, as the original exception context remains " +"available if needed (for example, if an intervening library has incorrectly " +"suppressed valuable underlying details)::" +msgstr "" + +msgid ":pep:`409` - Suppressing exception context" +msgstr "" + +msgid "" +"PEP written by Ethan Furman; implemented by Ethan Furman and Nick Coghlan." +msgstr "" + +msgid "PEP 414: Explicit Unicode literals" +msgstr "" + +msgid "" +"To ease the transition from Python 2 for Unicode aware Python applications " +"that make heavy use of Unicode literals, Python 3.3 once again supports the " +"\"``u``\" prefix for string literals. This prefix has no semantic " +"significance in Python 3, it is provided solely to reduce the number of " +"purely mechanical changes in migrating to Python 3, making it easier for " +"developers to focus on the more significant semantic changes (such as the " +"stricter default separation of binary and text data)." +msgstr "" + +msgid ":pep:`414` - Explicit Unicode literals" +msgstr "" + +msgid "PEP written by Armin Ronacher." +msgstr "" + +msgid "PEP 3155: Qualified name for classes and functions" +msgstr "" + +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 " +"scope." +msgstr "" + +msgid "Example with (non-bound) methods::" +msgstr "" + +msgid "Example with nested classes::" +msgstr "" + +msgid "Example with nested functions::" +msgstr "" + +msgid "" +"The string representation of those objects is also changed to include the " +"new, more precise information::" +msgstr "" + +msgid ":pep:`3155` - Qualified name for classes and functions" +msgstr "" + +msgid "PEP written and implemented by Antoine Pitrou." +msgstr "" + +msgid "PEP 412: Key-Sharing Dictionary" +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." +msgstr "" + +msgid ":pep:`412` - Key-Sharing Dictionary" +msgstr "" + +msgid "PEP written and implemented by Mark Shannon." +msgstr "" + +msgid "PEP 362: Function Signature Object" +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." +msgstr "" + +msgid ":pep:`362`: - Function Signature Object" +msgstr "" + +msgid "" +"PEP written by Brett Cannon, Yury Selivanov, Larry Hastings, Jiwon Seo; " +"implemented by Yury Selivanov." +msgstr "" + +msgid "PEP 421: Adding sys.implementation" +msgstr "" + +msgid "" +"A new attribute on the :mod:`sys` module exposes details specific to the " +"implementation of the currently running interpreter. The initial set of " +"attributes on :attr:`sys.implementation` are ``name``, ``version``, " +"``hexversion``, and ``cache_tag``." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "" +"One example of improved standard library portability is ``cache_tag``. As " +"of Python 3.3, ``sys.implementation.cache_tag`` is used by :mod:`importlib` " +"to support :pep:`3147` compliance. Any Python implementation that uses " +"``importlib`` for its built-in import system may use ``cache_tag`` to " +"control the caching behavior for modules." +msgstr "" + +msgid "SimpleNamespace" +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." +msgstr "" + +msgid ":pep:`421` - Adding sys.implementation" +msgstr "" + +msgid "PEP written and implemented by Eric Snow." +msgstr "" + +msgid "Using importlib as the Implementation of Import" +msgstr "" + +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 " +"__package__" +msgstr "" + +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." +msgstr "" + +msgid "" +"For the common user, there should be no visible change in semantics. For " +"those whose code currently manipulates import or calls import " +"programmatically, the code changes that might possibly be required are " +"covered in the `Porting Python code`_ section of this document." +msgstr "" + +msgid "New APIs" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"In terms of finders, :class:`importlib.machinery.FileFinder` exposes the " +"mechanism used to search for source and bytecode files of a module. " +"Previously this class was an implicit member of :attr:`sys.path_hooks`." +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :func:`importlib.invalidate_caches` function will now call the method " +"with the same name on all finders cached in :attr:`sys.path_importer_cache` " +"to help clean up any stored state as necessary." +msgstr "" + +msgid "Visible Changes" +msgstr "" + +msgid "" +"For potential required changes to code, see the `Porting Python code`_ " +"section." +msgstr "" + +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 " +"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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 " +"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 "" + +msgid "" +"All other changes relate to semantic changes which should be taken into " +"consideration when updating code for Python 3.3, and thus should be read " +"about in the `Porting Python code`_ section of this document." +msgstr "" + +msgid "(Implementation by Brett Cannon)" +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "Some smaller changes made to the core Python language are:" +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by Ezio Melotti in :issue:`12753`.)" +msgstr "" + +msgid "Unicode database updated to UCD version 6.1.0" +msgstr "" + +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`)" +msgstr "" + +msgid "" +"The ``count()``, ``find()``, ``rfind()``, ``index()`` and ``rindex()`` " +"methods of :class:`bytes` and :class:`bytearray` objects now accept an " +"integer between 0 and 255 as their first argument." +msgstr "" + +msgid "(Contributed by Petri Lehtinen in :issue:`12170`.)" +msgstr "" + +msgid "" +"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 "" + +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`)." +msgstr "" + +msgid "" +"Raw bytes literals can now be written ``rb\"...\"`` as well as ``br\"...\"``." +msgstr "" + +msgid "(Contributed by Antoine Pitrou in :issue:`13748`.)" +msgstr "" + +msgid "" +":meth:`dict.setdefault` now does only one lookup for the given key, making " +"it atomic when used with built-in types." +msgstr "" + +msgid "(Contributed by Filip Gruszczyński in :issue:`13521`.)" +msgstr "" + +msgid "" +"The error messages produced when a function call does not match the function " +"signature have been significantly improved." +msgstr "" + +msgid "(Contributed by Benjamin Peterson.)" +msgstr "" + +msgid "A Finer-Grained Import Lock" +msgstr "" + +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." +msgstr "" + +msgid "" +"In Python 3.3, importing a module takes a per-module lock. This correctly " +"serializes importation of a given module from multiple threads (preventing " +"the exposure of incompletely initialized modules), while eliminating the " +"aforementioned annoyances." +msgstr "" + +msgid "(Contributed by Antoine Pitrou in :issue:`9260`.)" +msgstr "" + +msgid "Builtin functions and types" +msgstr "" + +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." +msgstr "" + +msgid "" +":func:`print`: added the *flush* keyword argument. If the *flush* keyword " +"argument is true, the stream is forcibly flushed." +msgstr "" + +msgid "" +":func:`hash`: hash randomization is enabled by default, " +"see :meth:`object.__hash__` and :envvar:`PYTHONHASHSEED`." +msgstr "" + +msgid "" +"The :class:`str` type gets a new :meth:`~str.casefold` method: return a " +"casefolded copy of the string, casefolded strings may be used for caseless " +"matching. For example, ``'ß'.casefold()`` returns ``'ss'``." +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`)." +msgstr "" + +msgid "New Modules" +msgstr "" + +msgid "faulthandler" +msgstr "" + +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 startup by setting " +"the :envvar:`PYTHONFAULTHANDLER` environment variable or by using :option:`-" +"X` ``faulthandler`` command line option." +msgstr "" + +msgid "Example of a segmentation fault on Linux:" +msgstr "" + +msgid "ipaddress" +msgstr "" + +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)." +msgstr "" + +msgid "(Contributed by Google and Peter Moody in :pep:`3144`.)" +msgstr "" + +msgid "lzma" +msgstr "" + +msgid "" +"The newly added :mod:`lzma` module provides data compression and " +"decompression using the LZMA algorithm, including support for the ``.xz`` " +"and ``.lzma`` file formats." +msgstr "" + +msgid "(Contributed by Nadeem Vawda and Per Øyvind Karlsen in :issue:`6715`.)" +msgstr "" + +msgid "Improved Modules" +msgstr "Ulepszone moduły" + +msgid "abc" +msgstr "" + +msgid "" +"Improved support for abstract base classes containing descriptors composed " +"with abstract methods. The recommended approach to declaring abstract " +"descriptors is now to provide :attr:`__isabstractmethod__` as a dynamically " +"updated property. The built-in descriptors have been updated accordingly." +msgstr "" + +msgid "" +":class:`abc.abstractproperty` has been deprecated, use :class:`property` " +"with :func:`abc.abstractmethod` instead." +msgstr "" + +msgid "" +":class:`abc.abstractclassmethod` has been deprecated, " +"use :class:`classmethod` with :func:`abc.abstractmethod` instead." +msgstr "" + +msgid "" +":class:`abc.abstractstaticmethod` has been deprecated, " +"use :class:`staticmethod` with :func:`abc.abstractmethod` instead." +msgstr "" + +msgid "(Contributed by Darren Dale in :issue:`11610`.)" +msgstr "" + +msgid "" +":meth:`abc.ABCMeta.register` now returns the registered subclass, which " +"means it can now be used as a class decorator (:issue:`10868`)." +msgstr "" + +msgid "array" +msgstr "" + +msgid "" +"The :mod:`array` module supports the :c:expr:`long long` type using ``q`` " +"and ``Q`` type codes." +msgstr "" + +msgid "(Contributed by Oren Tirosh and Hirokazu Yamamoto in :issue:`1172711`.)" +msgstr "" + +msgid "base64" +msgstr "" + +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`.)" +msgstr "" + +msgid "binascii" +msgstr "" + +msgid "" +"In addition to the binary objects they normally accept, the ``a2b_`` " +"functions now all also accept ASCII-only strings as input. (Contributed by " +"Antoine Pitrou in :issue:`13637`.)" +msgstr "" + +msgid "bz2" +msgstr "bz2" + +msgid "" +"The :mod:`bz2` module has been rewritten from scratch. In the process, " +"several new features have been added:" +msgstr "" + +msgid "" +"New :func:`bz2.open` function: open a bzip2-compressed file in binary or " +"text mode." +msgstr "" + +msgid "" +":class:`bz2.BZ2File` can now read from and write to arbitrary file-like " +"objects, by means of its constructor's *fileobj* argument." +msgstr "" + +msgid "(Contributed by Nadeem Vawda in :issue:`5863`.)" +msgstr "" + +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." +msgstr "" + +msgid "(Contributed by Nir Aides in :issue:`1625`.)" +msgstr "" + +msgid "" +":class:`bz2.BZ2File` now implements all of the :class:`io.BufferedIOBase` " +"API, except for the :meth:`detach` and :meth:`truncate` methods." +msgstr "" + +msgid "codecs" +msgstr "" + +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." +msgstr "" + +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 " +"is used by ``sys.stdout`` if the console output code page is set to cp65001 " +"(e.g., using ``chcp 65001`` command)." +msgstr "" + +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." +msgstr "" + +msgid "(:issue:`12016`)" +msgstr "(:issue:`12016`)" + +msgid "" +"Incremental CJK codec encoders are no longer reset at each call to their " +"encode() methods. For example::" +msgstr "" + +msgid "" +"This example gives ``b'~{Np~}~{J)~}~{l6~}~{HK~}~{!#~} Bye.'`` with older " +"Python versions." +msgstr "" + +msgid "(:issue:`12100`)" +msgstr "(:issue:`12100`)" + +msgid "The ``unicode_internal`` codec has been deprecated." +msgstr "" + +msgid "collections" +msgstr "" + +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`.)" +msgstr "" + +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`)" +msgstr "" + +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`.)" +msgstr "" + +msgid "contextlib" +msgstr "" + +msgid "" +":class:`~contextlib.ExitStack` now provides a solid foundation for " +"programmatic manipulation of context managers and similar cleanup " +"functionality. Unlike the previous ``contextlib.nested`` API (which was " +"deprecated and removed), the new API is designed to work correctly " +"regardless of whether context managers acquire their resources in their " +"``__init__`` method (for example, file objects) or in their ``__enter__`` " +"method (for example, synchronisation objects from the :mod:`threading` " +"module)." +msgstr "" + +msgid "(:issue:`13585`)" +msgstr "(:issue:`13585`)" + +msgid "crypt" +msgstr "" + +msgid "" +"Addition of salt and modular crypt format (hashing method) and " +"the :func:`~crypt.mksalt` function to the :mod:`crypt` module." +msgstr "" + +msgid "(:issue:`10924`)" +msgstr "(:issue:`10924`)" + +msgid "curses" +msgstr "" + +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`)." +msgstr "" + +msgid "Use the locale encoding instead of ``utf-8`` to encode Unicode strings." +msgstr "" + +msgid "" +":class:`curses.window` has a new :attr:`curses.window.encoding` attribute." +msgstr "" + +msgid "" +"The :class:`curses.window` class has a new :meth:`~curses.window.get_wch` " +"method to get a wide character" +msgstr "" + +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" +msgstr "" + +msgid "(Contributed by Iñigo Serna in :issue:`6755`.)" +msgstr "" + +msgid "datetime" +msgstr "" + +msgid "" +"Equality comparisons between naive and aware :class:`~datetime.datetime` " +"instances now return :const:`False` instead of raising :exc:`TypeError` " +"(:issue:`15006`)." +msgstr "" + +msgid "" +"New :meth:`datetime.datetime.timestamp` method: Return POSIX timestamp " +"corresponding to the :class:`~datetime.datetime` instance." +msgstr "" + +msgid "" +"The :meth:`datetime.datetime.strftime` method supports formatting years " +"older than 1000." +msgstr "" + +msgid "" +"The :meth:`datetime.datetime.astimezone` method can now be called without " +"arguments to convert datetime instance to the system timezone." +msgstr "" + +msgid "decimal" +msgstr "" + +msgid ":issue:`7652` - integrate fast native decimal arithmetic." +msgstr "" + +msgid "C-module and libmpdec written by Stefan Krah." +msgstr "" + +msgid "" +"The new C version of the decimal module integrates the high speed libmpdec " +"library for arbitrary precision correctly rounded decimal floating point " +"arithmetic. libmpdec conforms to IBM's General Decimal Arithmetic " +"Specification." +msgstr "" + +msgid "" +"Performance gains range from 10x for database applications to 100x for " +"numerically intensive applications. These numbers are expected gains for " +"standard precisions used in decimal floating point arithmetic. Since the " +"precision is user configurable, the exact figures may vary. For example, in " +"integer bignum arithmetic the differences can be significantly higher." +msgstr "" + +msgid "" +"The following table is meant as an illustration. Benchmarks are available at " +"https://www.bytereef.org/mpdecimal/quickstart.html." +msgstr "" + +msgid "decimal.py" +msgstr "" + +msgid "_decimal" +msgstr "" + +msgid "speedup" +msgstr "" + +msgid "pi" +msgstr "" + +msgid "42.02s" +msgstr "" + +msgid "0.345s" +msgstr "" + +msgid "120x" +msgstr "" + +msgid "telco" +msgstr "" + +msgid "172.19s" +msgstr "" + +msgid "5.68s" +msgstr "" + +msgid "30x" +msgstr "" + +msgid "psycopg" +msgstr "" + +msgid "3.57s" +msgstr "" + +msgid "0.29s" +msgstr "" + +msgid "12x" +msgstr "" + +msgid "" +"The :exc:`~decimal.FloatOperation` signal optionally enables stricter " +"semantics for mixing floats and Decimals." +msgstr "" + +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``." +msgstr "" + +msgid "" +"The C module has the following context limits, depending on the machine " +"architecture:" +msgstr "" + +msgid "32-bit" +msgstr "32-bit" + +msgid "64-bit" +msgstr "64-bit" + +msgid ":const:`MAX_PREC`" +msgstr ":const:`MAX_PREC`" + +msgid ":const:`425000000`" +msgstr "" + +msgid ":const:`999999999999999999`" +msgstr "" + +msgid ":const:`MAX_EMAX`" +msgstr ":const:`MAX_EMAX`" + +msgid ":const:`MIN_EMIN`" +msgstr ":const:`MIN_EMIN`" + +msgid ":const:`-425000000`" +msgstr "" + +msgid ":const:`-999999999999999999`" +msgstr "" + +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`." +msgstr "" + +msgid "" +"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." +msgstr "" + +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\"." +msgstr "" + +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." +msgstr "" + +msgid "" +"Pickling a :class:`~decimal.Context` produces a different output in order to " +"have a common interchange format for the Python and C versions." +msgstr "" + +msgid "" +"The order of arguments in the :class:`~decimal.Context` constructor has been " +"changed to match the order displayed by :func:`repr`." +msgstr "" + +msgid "" +"The ``watchexp`` parameter in the :meth:`~decimal.Decimal.quantize` method " +"is deprecated." +msgstr "" + +msgid "email" +msgstr "" + +msgid "Policy Framework" +msgstr "" + +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`." +msgstr "" + +msgid "The minimum set of controls implemented by all ``policy`` objects are:" +msgstr "" + +msgid "max_line_length" +msgstr "" + +msgid "" +"The maximum length, excluding the linesep character(s), individual lines may " +"have when a ``Message`` is serialized. Defaults to 78." +msgstr "" + +msgid "linesep" +msgstr "" + +msgid "" +"The character used to separate individual lines when a ``Message`` is " +"serialized. Defaults to ``\\n``." +msgstr "" + +msgid "cte_type" +msgstr "" + +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)." +msgstr "" + +msgid "raise_on_defect" +msgstr "" + +msgid "" +"Causes a ``parser`` to raise error when defects are encountered instead of " +"adding them to the ``Message`` object's ``defects`` list." +msgstr "" + +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::" +msgstr "" + +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 " +"``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``." +msgstr "" + +msgid "Provisional Policy with New Header API" +msgstr "" + +msgid "" +"While the policy framework is worthwhile all by itself, the main motivation " +"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." +msgstr "" + +msgid "" +"The new policies are instances of :class:`~email.policy.EmailPolicy`, and " +"add the following additional controls:" +msgstr "" + +msgid "refold_source" +msgstr "" + +msgid "" +"Controls whether or not headers parsed by a :mod:`~email.parser` are " +"refolded by the :mod:`~email.generator`. It can be ``none``, ``long``, or " +"``all``. The default is ``long``, which means that source headers with a " +"line longer than ``max_line_length`` get refolded. ``none`` means no line " +"get refolded, and ``all`` means that all lines get refolded." +msgstr "" + +msgid "header_factory" +msgstr "" + +msgid "" +"A callable that take a ``name`` and ``value`` and produces a custom header " +"object." +msgstr "" + +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 " +"that give you access to the parsed data of the header. This means you can " +"now do things like this::" +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." +msgstr "" + +msgid "You can also create addresses from parts::" +msgstr "" + +msgid "Decoding to unicode is done automatically::" +msgstr "" + +msgid "" +"When you parse a message, you can use the ``addresses`` and ``groups`` " +"attributes of the header objects to access the groups and individual " +"addresses::" +msgstr "" + +msgid "" +"In summary, if you use one of the new policies, header manipulation works " +"the way it ought to: your application works with unicode strings, and the " +"email package transparently encodes and decodes the unicode to and from the " +"RFC standard Content Transfer Encodings." +msgstr "" + +msgid "Other API Changes" +msgstr "" + +msgid "" +"New :class:`~email.parser.BytesHeaderParser`, added to " +"the :mod:`~email.parser` module to " +"complement :class:`~email.parser.HeaderParser` and complete the Bytes API." +msgstr "" + +msgid "New utility functions:" +msgstr "" + +msgid "" +":func:`~email.utils.format_datetime`: given a :class:`~datetime.datetime`, " +"produce a string formatted for use in an email header." +msgstr "" + +msgid "" +":func:`~email.utils.parsedate_to_datetime`: given a date string from an " +"email header, convert it into an aware :class:`~datetime.datetime`, or a " +"naive :class:`~datetime.datetime` if the offset is ``-0000``." +msgstr "" + +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`." +msgstr "" + +msgid "ftplib" +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "functools" +msgstr "" + +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`.)" +msgstr "" + +msgid "gc" +msgstr "" + +msgid "" +"It is now possible to register callbacks invoked by the garbage collector " +"before and after collection using the new :data:`~gc.callbacks` list." +msgstr "" + +msgid "hmac" +msgstr "" + +msgid "" +"A new :func:`~hmac.compare_digest` function has been added to prevent side " +"channel attacks on digests through timing analysis. (Contributed by Nick " +"Coghlan and Christian Heimes in :issue:`15061`.)" +msgstr "" + +msgid "http" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":class:`http.server` now produces valid ``HTML 4.01 strict`` output. " +"(Contributed by Ezio Melotti in :issue:`13295`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "html" +msgstr "" + +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`.)" +msgstr "" + +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`. " +"(Contributed by Ezio Melotti in :issue:`11113` and :issue:`15156`.)" +msgstr "" + +msgid "imaplib" +msgstr "" + +msgid "" +"The :class:`~imaplib.IMAP4_SSL` constructor now accepts an SSLContext " +"parameter to control parameters of the secure channel." +msgstr "" + +msgid "(Contributed by Sijin Joseph in :issue:`8808`.)" +msgstr "" + +msgid "inspect" +msgstr "" + +msgid "" +"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 "" + +msgid "(Contributed by Meador Inge and Nick Coghlan in :issue:`13062`.)" +msgstr "" + +msgid "" +"A new :func:`~inspect.getgeneratorlocals` function has been added. This " +"function reports the current binding of local variables in the generator's " +"stack frame, making it easier to verify correct internal state when testing " +"generators." +msgstr "" + +msgid "(Contributed by Meador Inge in :issue:`15153`.)" +msgstr "" + +msgid "io" +msgstr "" + +msgid "" +"The :func:`~io.open` function has a new ``'x'`` mode that can be used to " +"exclusively create a new file, and raise a :exc:`FileExistsError` if the " +"file already exists. It is based on the C11 'x' mode to fopen()." +msgstr "" + +msgid "(Contributed by David Townshend in :issue:`12760`.)" +msgstr "" + +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 written on the :class:`~io.TextIOWrapper` object is immediately handled " +"to its underlying binary buffer." +msgstr "" + +msgid "itertools" +msgstr "" + +msgid "" +":func:`~itertools.accumulate` now takes an optional ``func`` argument for " +"providing a user-supplied binary function." +msgstr "" + +msgid "logging" +msgstr "" + +msgid "" +"The :func:`~logging.basicConfig` function now supports an optional " +"``handlers`` argument taking an iterable of handlers to be added to the root " +"logger." +msgstr "" + +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." +msgstr "" + +msgid "math" +msgstr "" + +msgid "" +"The :mod:`math` module has a new function, :func:`~math.log2`, which " +"returns the base-2 logarithm of *x*." +msgstr "" + +msgid "(Written by Mark Dickinson in :issue:`11888`.)" +msgstr "" + +msgid "mmap" +msgstr "" + +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`.)" +msgstr "" + +msgid "multiprocessing" +msgstr "" + +msgid "" +"The new :func:`multiprocessing.connection.wait` function allows polling " +"multiple objects (such as connections, sockets and pipes) with a timeout. " +"(Contributed by Richard Oudkerk in :issue:`12328`.)" +msgstr "" + +msgid "" +":class:`multiprocessing.Connection` objects can now be transferred over " +"multiprocessing connections. (Contributed by Richard Oudkerk " +"in :issue:`4892`.)" +msgstr "" + +msgid "" +":class:`multiprocessing.Process` now accepts a ``daemon`` keyword argument " +"to override the default behavior of inheriting the ``daemon`` flag from the " +"parent process (:issue:`6064`)." +msgstr "" + +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)." +msgstr "" + +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`.)" +msgstr "" + +msgid "nntplib" +msgstr "" + +msgid "" +"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 "" + +msgid "(Contributed by Giampaolo Rodolà in :issue:`9795`.)" +msgstr "" + +msgid "os" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :mod:`os` module has a new :func:`~os.sendfile` function which provides " +"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 " +"socket, e.g. for downloading a file." +msgstr "" + +msgid "" +"(Patch submitted by Ross Lagerwall and Giampaolo Rodolà in :issue:`10882`.)" +msgstr "" + +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`)." +msgstr "" + +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." +msgstr "" + +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`." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "(Patch submitted by Giampaolo Rodolà in :issue:`10784`.)" +msgstr "" + +msgid "" +"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 "" + +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 precision. Symmetrically, :func:`~os.utime` can now write file " +"timestamps with nanosecond precision. (Contributed by Larry Hastings " +"in :issue:`14127`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"New functions to support Linux extended attributes " +"(:issue:`12720`): :func:`~os.getxattr`, :func:`~os.listxattr`, :func:`~os.removexattr`, :func:`~os.setxattr`." +msgstr "" + +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`," +msgstr "" + +msgid "New functions to control the file system:" +msgstr "" + +msgid "" +":func:`~os.posix_fadvise`: Announces an intention to access data in a " +"specific pattern thus allowing the kernel to make optimizations." +msgstr "" + +msgid "" +":func:`~os.posix_fallocate`: Ensures that enough disk space is allocated for " +"a file." +msgstr "" + +msgid ":func:`~os.sync`: Force write of everything to disk." +msgstr "" + +msgid "Additional new posix functions:" +msgstr "" + +msgid "" +":func:`~os.lockf`: Apply, test or remove a POSIX lock on an open file " +"descriptor." +msgstr "" + +msgid "" +":func:`~os.pread`: Read from a file descriptor at an offset, the file offset " +"remains unchanged." +msgstr "" + +msgid "" +":func:`~os.pwrite`: Write to a file descriptor from an offset, leaving the " +"file offset unchanged." +msgstr "" + +msgid "" +":func:`~os.readv`: Read from a file descriptor into a number of writable " +"buffers." +msgstr "" + +msgid "" +":func:`~os.truncate`: Truncate the file corresponding to *path*, so that it " +"is at most *length* bytes in size." +msgstr "" + +msgid "" +":func:`~os.waitid`: Wait for the completion of one or more child processes." +msgstr "" + +msgid "" +":func:`~os.writev`: Write the contents of *buffers* to a file descriptor, " +"where *buffers* is an arbitrary sequence of buffers." +msgstr "" + +msgid "" +":func:`~os.getgrouplist` (:issue:`9344`): Return list of group ids that " +"specified user belongs to." +msgstr "" + +msgid "" +":func:`~os.times` and :func:`~os.uname`: Return type changed from a tuple to " +"a tuple-like object with named attributes." +msgstr "" + +msgid "" +"Some platforms now support additional constants for the :func:`~os.lseek` " +"function, such as ``os.SEEK_HOLE`` and ``os.SEEK_DATA``." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":func:`os.symlink` now accepts (and ignores) the ``target_is_directory`` " +"keyword argument on non-Windows platforms, to ease cross-platform support." +msgstr "" + +msgid "pdb" +msgstr "" + +msgid "" +"Tab-completion is now available not only for command names, but also their " +"arguments. For example, for the ``break`` command, function and file names " +"are completed." +msgstr "" + +msgid "(Contributed by Georg Brandl in :issue:`14210`)" +msgstr "" + +msgid "pickle" +msgstr "" + +msgid "" +":class:`pickle.Pickler` objects now have an " +"optional :attr:`~pickle.Pickler.dispatch_table` attribute allowing per-" +"pickler reduction functions to be set." +msgstr "" + +msgid "(Contributed by Richard Oudkerk in :issue:`14166`.)" +msgstr "" + +msgid "pydoc" +msgstr "" + +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 " +"deprecated in Python 3.2." +msgstr "" + +msgid "re" +msgstr "" + +msgid "" +":class:`str` regular expressions now support ``\\u`` and ``\\U`` escapes." +msgstr "" + +msgid "(Contributed by Serhiy Storchaka in :issue:`3665`.)" +msgstr "" + +msgid "sched" +msgstr "" + +msgid "" +":meth:`~sched.scheduler.run` now accepts a *blocking* parameter which when " +"set to false makes the method execute the scheduled events due to expire " +"soonest (if any) and then return immediately. This is useful in case you " +"want to use the :class:`~sched.scheduler` in non-blocking applications. " +"(Contributed by Giampaolo Rodolà in :issue:`13449`.)" +msgstr "" + +msgid "" +":class:`~sched.scheduler` class can now be safely used in multi-threaded " +"environments. (Contributed by Josiah Carlson and Giampaolo Rodolà " +"in :issue:`8684`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":meth:`~sched.scheduler.enter` and :meth:`~sched.scheduler.enterabs` " +"*argument* parameter is now optional. (Contributed by Chris Clark " +"in :issue:`13245`.)" +msgstr "" + +msgid "" +":meth:`~sched.scheduler.enter` and :meth:`~sched.scheduler.enterabs` now " +"accept a *kwargs* parameter. (Contributed by Chris Clark in :issue:`13245`.)" +msgstr "" + +msgid "select" +msgstr "" + +msgid "" +"Solaris and derivative platforms have a new class :class:`select.devpoll` " +"for high performance asynchronous sockets via :file:`/dev/poll`. " +"(Contributed by Jesús Cea Avión in :issue:`6397`.)" +msgstr "" + +msgid "shlex" +msgstr "" + +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." +msgstr "" + +msgid "shutil" +msgstr "" + +msgid "New functions:" +msgstr "" + +msgid "" +":func:`~shutil.disk_usage`: provides total, used and free disk space " +"statistics. (Contributed by Giampaolo Rodolà in :issue:`12442`.)" +msgstr "" + +msgid "" +":func:`~shutil.chown`: allows one to change user and/or group of the given " +"path also specifying the user/group names and not only their numeric ids. " +"(Contributed by Sandro Tosi in :issue:`12191`.)" +msgstr "" + +msgid "" +":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 "" + +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 " +"Hastings in :issue:`14127` and :issue:`15238`.)" +msgstr "" + +msgid "" +"Several functions now take an optional ``symlinks`` argument: when that " +"parameter is true, symlinks aren't dereferenced and the operation instead " +"acts on the symlink itself (or creates one, if relevant). (Contributed by " +"Hynek Schlawack in :issue:`12715`.)" +msgstr "" + +msgid "" +"When copying files to a different file system, :func:`~shutil.move` now " +"handles symlinks the way the posix ``mv`` command does, recreating the " +"symlink rather than copying the target file contents. (Contributed by " +"Jonathan Niehof in :issue:`9993`.) :func:`~shutil.move` now also returns " +"the ``dst`` argument as its result." +msgstr "" + +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`.)" +msgstr "" + +msgid "signal" +msgstr "" + +msgid "The :mod:`signal` module has new functions:" +msgstr "" + +msgid "" +":func:`~signal.pthread_sigmask`: fetch and/or change the signal mask of the " +"calling thread (Contributed by Jean-Paul Calderone in :issue:`8407`);" +msgstr "" + +msgid ":func:`~signal.pthread_kill`: send a signal to a thread;" +msgstr "" + +msgid ":func:`~signal.sigpending`: examine pending functions;" +msgstr "" + +msgid ":func:`~signal.sigwait`: wait a signal;" +msgstr "" + +msgid "" +":func:`~signal.sigwaitinfo`: wait for a signal, returning detailed " +"information about it;" +msgstr "" + +msgid "" +":func:`~signal.sigtimedwait`: like :func:`~signal.sigwaitinfo` but with a " +"timeout." +msgstr "" + +msgid "" +"The signal handler writes the signal number as a single byte instead of a " +"nul byte into the wakeup file descriptor. So it is possible to wait more " +"than one signal and know which signals were raised." +msgstr "" + +msgid "" +":func:`signal.signal` and :func:`signal.siginterrupt` raise an OSError, " +"instead of a RuntimeError: OSError has an errno attribute." +msgstr "" + +msgid "smtpd" +msgstr "" + +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." +msgstr "" + +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`)" +msgstr "" + +msgid "smtplib" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":class:`~smtplib.SMTP` now supports the context management protocol, " +"allowing an ``SMTP`` instance to be used in a ``with`` statement. " +"(Contributed by Giampaolo Rodolà in :issue:`11289`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "socket" +msgstr "" + +msgid "" +"The :class:`~socket.socket` class now exposes additional methods to process " +"ancillary data when supported by the underlying platform:" +msgstr "" + +msgid ":func:`~socket.socket.sendmsg`" +msgstr ":func:`~socket.socket.sendmsg`" + +msgid ":func:`~socket.socket.recvmsg`" +msgstr ":func:`~socket.socket.recvmsg`" + +msgid ":func:`~socket.socket.recvmsg_into`" +msgstr ":func:`~socket.socket.recvmsg_into`" + +msgid "" +"(Contributed by David Watson in :issue:`6560`, based on an earlier patch by " +"Heiko Wundram)" +msgstr "" + +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)." +msgstr "" + +msgid "" +"(Contributed by Matthias Fuchs, updated by Tiago Gonçalves " +"in :issue:`10141`.)" +msgstr "" + +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/)." +msgstr "" + +msgid "" +"The :class:`~socket.socket` class now supports the ``PF_SYSTEM`` protocol " +"family on OS X. (Contributed by Michael Goderbauer in :issue:`13777`.)" +msgstr "" + +msgid "" +"New function :func:`~socket.sethostname` allows the hostname to be set on " +"Unix systems if the calling process has sufficient privileges. (Contributed " +"by Ross Lagerwall in :issue:`10866`.)" +msgstr "" + +msgid "socketserver" +msgstr "" + +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 processes. (Contributed by Justin Warkentin in :issue:`11109`.)" +msgstr "" + +msgid "sqlite3" +msgstr "" + +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`.)" +msgstr "" + +msgid "ssl" +msgstr "" + +msgid "The :mod:`ssl` module has two new random generation functions:" +msgstr "" + +msgid "" +":func:`~ssl.RAND_bytes`: generate cryptographically strong pseudo-random " +"bytes." +msgstr "" + +msgid ":func:`~ssl.RAND_pseudo_bytes`: generate pseudo-random bytes." +msgstr "" + +msgid "(Contributed by Victor Stinner in :issue:`12049`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"SSL sockets have a new :meth:`~ssl.SSLSocket.get_channel_binding` method " +"allowing the implementation of certain authentication mechanisms such as " +"SCRAM-SHA-1-PLUS. (Contributed by Jacek Konieczny in :issue:`12551`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`~ssl.get_server_certificate` function now supports IPv6. " +"(Contributed by Charles-François Natali in :issue:`11811`.)" +msgstr "" + +msgid "" +"New attribute :attr:`~ssl.OP_CIPHER_SERVER_PREFERENCE` allows setting SSLv3 " +"server sockets to use the server's cipher ordering preference rather than " +"the client's (:issue:`13635`)." +msgstr "" + +msgid "stat" +msgstr "" + +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'." +msgstr "" + +msgid "(Contributed by Giampaolo Rodolà in :issue:`14807`.)" +msgstr "" + +msgid "struct" +msgstr "" + +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`.)" +msgstr "" + +msgid "subprocess" +msgstr "" + +msgid "" +"Command strings can now be bytes objects on posix platforms. (Contributed " +"by Victor Stinner in :issue:`8513`.)" +msgstr "" + +msgid "" +"A new constant :data:`~subprocess.DEVNULL` allows suppressing output in a " +"platform-independent fashion. (Contributed by Ross Lagerwall " +"in :issue:`5870`.)" +msgstr "" + +msgid "sys" +msgstr "sys" + +msgid "" +"The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`named tuple` " +"holding information about the thread implementation (:issue:`11223`)." +msgstr "" + +msgid "tarfile" +msgstr "" + +msgid "" +":mod:`tarfile` now supports ``lzma`` encoding via the :mod:`lzma` module. " +"(Contributed by Lars Gustäbel in :issue:`5689`.)" +msgstr "" + +msgid "tempfile" +msgstr "" + +msgid "" +":class:`tempfile.SpooledTemporaryFile`\\'s :meth:`~tempfile.SpooledTemporaryFile.truncate` " +"method now accepts a ``size`` parameter. (Contributed by Ryan Kelly " +"in :issue:`9957`.)" +msgstr "" + +msgid "textwrap" +msgstr "" + +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`)." +msgstr "" + +msgid "threading" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :class:`threading.Thread` constructor now accepts a ``daemon`` keyword " +"argument to override the default behavior of inheriting the ``daemon`` flag " +"value from the parent thread (:issue:`6064`)." +msgstr "" + +msgid "" +"The formerly private function ``_thread.get_ident`` is now available as the " +"public function :func:`threading.get_ident`. This eliminates several cases " +"of direct access to the ``_thread`` module in the stdlib. Third party code " +"that used ``_thread.get_ident`` should likewise be changed to use the new " +"public interface." +msgstr "" + +msgid "time" +msgstr "" + +msgid "The :pep:`418` added new functions to the :mod:`time` module:" +msgstr "" + +msgid ":func:`~time.get_clock_info`: Get information on a clock." +msgstr "" + +msgid "" +":func:`~time.monotonic`: Monotonic clock (cannot go backward), not affected " +"by system clock updates." +msgstr "" + +msgid "" +":func:`~time.perf_counter`: Performance counter with the highest available " +"resolution to measure a short duration." +msgstr "" + +msgid "" +":func:`~time.process_time`: Sum of the system and user CPU time of the " +"current process." +msgstr "" + +msgid "Other new functions:" +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +msgid "types" +msgstr "" + +msgid "" +"Add a new :class:`types.MappingProxyType` class: Read-only proxy of a " +"mapping. (:issue:`14386`)" +msgstr "" + +msgid "" +"The new functions :func:`types.new_class` and :func:`types.prepare_class` " +"provide support for :pep:`3115` compliant dynamic type creation. " +"(:issue:`14588`)" +msgstr "" + +msgid "unittest" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":meth:`unittest.TestCase.run` now returns the :class:`~unittest.TestResult` " +"object." +msgstr "" + +msgid "urllib" +msgstr "" + +msgid "" +"The :class:`~urllib.request.Request` class, now accepts a *method* argument " +"used by :meth:`~urllib.request.Request.get_method` to determine what HTTP " +"method should be used. For example, this will send a ``'HEAD'`` request::" +msgstr "" + +msgid "(:issue:`1673007`)" +msgstr "(:issue:`1673007`)" + +msgid "webbrowser" +msgstr "" + +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), 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`.)" +msgstr "" + +msgid "xml.etree.ElementTree" +msgstr "" + +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." +msgstr "" + +msgid "zlib" +msgstr "zlib" + +msgid "" +"New attribute :attr:`zlib.Decompress.eof` makes it possible to distinguish " +"between a properly formed compressed stream and an incomplete or truncated " +"one. (Contributed by Nadeem Vawda in :issue:`12646`.)" +msgstr "" + +msgid "" +"New attribute :attr:`zlib.ZLIB_RUNTIME_VERSION` reports the version string " +"of the underlying ``zlib`` library that is loaded at runtime. (Contributed " +"by Torsten Landschoff in :issue:`12306`.)" +msgstr "" + +msgid "Optimizations" +msgstr "" + +msgid "Major performance enhancements have been added:" +msgstr "" + +msgid "" +"Thanks to :pep:`393`, some operations on Unicode strings have been optimized:" +msgstr "" + +msgid "the memory footprint is divided by 2 to 4 depending on the text" +msgstr "" + +msgid "" +"encode an ASCII string to UTF-8 doesn't need to encode characters anymore, " +"the UTF-8 representation is shared with the ASCII representation" +msgstr "" + +msgid "the UTF-8 encoder has been optimized" +msgstr "" + +msgid "" +"repeating a single ASCII letter and getting a substring of an ASCII string " +"is 4 times faster" +msgstr "" + +msgid "UTF-8 is now 2x to 4x faster. UTF-16 encoding is now up to 10x faster." +msgstr "" + +msgid "" +"(Contributed by Serhiy Storchaka, :issue:`14624`, :issue:`14738` " +"and :issue:`15026`.)" +msgstr "" + +msgid "Build and C API Changes" +msgstr "" + +msgid "Changes to Python's build process and to the C API include:" +msgstr "" + +msgid "New :pep:`3118` related function:" +msgstr "" + +msgid ":c:func:`PyMemoryView_FromMemory`" +msgstr ":c:func:`PyMemoryView_FromMemory`" + +msgid ":pep:`393` added new Unicode types, macros and functions:" +msgstr "" + +msgid "High-level API:" +msgstr "" + +msgid ":c:func:`PyUnicode_CopyCharacters`" +msgstr ":c:func:`PyUnicode_CopyCharacters`" + +msgid ":c:func:`PyUnicode_FindChar`" +msgstr ":c:func:`PyUnicode_FindChar`" + +msgid ":c:func:`PyUnicode_GetLength`, :c:macro:`PyUnicode_GET_LENGTH`" +msgstr ":c:func:`PyUnicode_GetLength`, :c:macro:`PyUnicode_GET_LENGTH`" + +msgid ":c:func:`PyUnicode_New`" +msgstr ":c:func:`PyUnicode_New`" + +msgid ":c:func:`PyUnicode_Substring`" +msgstr ":c:func:`PyUnicode_Substring`" + +msgid ":c:func:`PyUnicode_ReadChar`, :c:func:`PyUnicode_WriteChar`" +msgstr ":c:func:`PyUnicode_ReadChar`, :c:func:`PyUnicode_WriteChar`" + +msgid "Low-level API:" +msgstr "" + +msgid ":c:type:`Py_UCS1`, :c:type:`Py_UCS2`, :c:type:`Py_UCS4` types" +msgstr "" + +msgid ":c:type:`PyASCIIObject` and :c:type:`PyCompactUnicodeObject` structures" +msgstr "" + +msgid ":c:macro:`PyUnicode_READY`" +msgstr ":c:macro:`PyUnicode_READY`" + +msgid ":c:func:`PyUnicode_FromKindAndData`" +msgstr ":c:func:`PyUnicode_FromKindAndData`" + +msgid ":c:func:`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsUCS4Copy`" +msgstr ":c:func:`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsUCS4Copy`" + +msgid ":c:macro:`PyUnicode_DATA`, :c:macro:`PyUnicode_1BYTE_DATA`, :c:macro:`PyUnicode_2BYTE_DATA`, :c:macro:`PyUnicode_4BYTE_DATA`" +msgstr "" + +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`" +msgstr "" + +msgid ":c:macro:`PyUnicode_READ`, :c:macro:`PyUnicode_READ_CHAR`, :c:macro:`PyUnicode_WRITE`" +msgstr "" + +msgid ":c:macro:`PyUnicode_MAX_CHAR_VALUE`" +msgstr ":c:macro:`PyUnicode_MAX_CHAR_VALUE`" + +msgid "" +":c:macro:`PyArg_ParseTuple` now accepts a :class:`bytearray` for the ``c`` " +"format (:issue:`12380`)." +msgstr "" + +msgid "Deprecated" +msgstr "" + +msgid "Unsupported Operating Systems" +msgstr "" + +msgid "OS/2 and VMS are no longer supported due to the lack of a maintainer." +msgstr "" + +msgid "" +"Windows 2000 and Windows platforms which set ``COMSPEC`` to ``command.com`` " +"are no longer supported due to maintenance burden." +msgstr "" + +msgid "OSF support, which was deprecated in 3.2, has been completely removed." +msgstr "" + +msgid "Deprecated Python modules, functions and methods" +msgstr "" + +msgid "" +"Passing a non-empty string to ``object.__format__()`` is deprecated, and " +"will produce a :exc:`TypeError` in Python 3.4 (:issue:`9856`)." +msgstr "" + +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 (``utf-32-le`` or ``utf-32-be``)" +msgstr "" + +msgid "" +":meth:`ftplib.FTP.nlst` and :meth:`ftplib.FTP.dir`: " +"use :meth:`ftplib.FTP.mlsd`" +msgstr "" + +msgid "" +":func:`platform.popen`: use the :mod:`subprocess` module. Check especially " +"the :ref:`subprocess-replacements` section (:issue:`11377`)." +msgstr "" + +msgid "" +":issue:`13374`: The Windows bytes API has been deprecated in the :mod:`os` " +"module. Use Unicode filenames, instead of bytes filenames, to not depend on " +"the ANSI code page anymore and to support any filename." +msgstr "" + +msgid "" +":issue:`13988`: The :mod:`xml.etree.cElementTree` module is deprecated. The " +"accelerator is used automatically whenever available." +msgstr "" + +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, " +"depending on your requirements, to have a well defined behaviour." +msgstr "" + +msgid "The :func:`os.stat_float_times` function is deprecated." +msgstr "" + +msgid ":mod:`abc` module:" +msgstr "" + +msgid ":mod:`importlib` package:" +msgstr "" + +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." +msgstr "" + +msgid "Deprecated functions and types of the C API" +msgstr "" + +msgid "" +"The :c:type:`Py_UNICODE` has been deprecated by :pep:`393` and will be " +"removed in Python 4. All functions using this type are deprecated:" +msgstr "" + +msgid "" +"Unicode functions and methods using :c:type:`Py_UNICODE` " +"and :c:expr:`Py_UNICODE*` types:" +msgstr "" + +msgid "" +":c:macro:`PyUnicode_FromUnicode`: use :c:func:`PyUnicode_FromWideChar` " +"or :c:func:`PyUnicode_FromKindAndData`" +msgstr "" + +msgid "" +":c:macro:`PyUnicode_AS_UNICODE`, :c:func:`PyUnicode_AsUnicode`, :c:func:`PyUnicode_AsUnicodeAndSize`: " +"use :c:func:`PyUnicode_AsWideCharString`" +msgstr "" + +msgid "" +":c:macro:`PyUnicode_AS_DATA`: use :c:macro:`PyUnicode_DATA` " +"with :c:macro:`PyUnicode_READ` and :c:macro:`PyUnicode_WRITE`" +msgstr "" + +msgid "" +":c:macro:`PyUnicode_GET_SIZE`, :c:func:`PyUnicode_GetSize`: " +"use :c:macro:`PyUnicode_GET_LENGTH` or :c:func:`PyUnicode_GetLength`" +msgstr "" + +msgid "" +":c:macro:`PyUnicode_GET_DATA_SIZE`: use ``PyUnicode_GET_LENGTH(str) * " +"PyUnicode_KIND(str)`` (only work on ready strings)" +msgstr "" + +msgid "" +":c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` " +"or :c:func:`PyUnicode_AsWideCharString`" +msgstr "" + +msgid ":c:func:`PyUnicode_GetMax`" +msgstr "" + +msgid "Functions and macros manipulating Py_UNICODE* strings:" +msgstr "" + +msgid "" +":c:macro:`Py_UNICODE_strlen`: use :c:func:`PyUnicode_GetLength` " +"or :c:macro:`PyUnicode_GET_LENGTH`" +msgstr "" + +msgid "" +":c:macro:`Py_UNICODE_strcat`: use :c:func:`PyUnicode_CopyCharacters` " +"or :c:func:`PyUnicode_FromFormat`" +msgstr "" + +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`" +msgstr "" + +msgid ":c:macro:`Py_UNICODE_strcmp`: use :c:func:`PyUnicode_Compare`" +msgstr "" + +msgid ":c:macro:`Py_UNICODE_strncmp`: use :c:func:`PyUnicode_Tailmatch`" +msgstr "" + +msgid "" +":c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: " +"use :c:func:`PyUnicode_FindChar`" +msgstr "" + +msgid ":c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`" +msgstr "" + +msgid ":c:macro:`Py_UNICODE_MATCH`" +msgstr "" + +msgid "Encoders:" +msgstr "" + +msgid ":c:func:`PyUnicode_Encode`: use :c:func:`PyUnicode_AsEncodedObject`" +msgstr "" + +msgid ":c:func:`PyUnicode_EncodeUTF7`" +msgstr "" + +msgid "" +":c:func:`PyUnicode_EncodeUTF8`: use :c:func:`PyUnicode_AsUTF8` " +"or :c:func:`PyUnicode_AsUTF8String`" +msgstr "" + +msgid ":c:func:`PyUnicode_EncodeUTF32`" +msgstr "" + +msgid ":c:func:`PyUnicode_EncodeUTF16`" +msgstr "" + +msgid "" +":c:func:`PyUnicode_EncodeUnicodeEscape` " +"use :c:func:`PyUnicode_AsUnicodeEscapeString`" +msgstr "" + +msgid "" +":c:func:`PyUnicode_EncodeRawUnicodeEscape` " +"use :c:func:`PyUnicode_AsRawUnicodeEscapeString`" +msgstr "" + +msgid "" +":c:func:`PyUnicode_EncodeLatin1`: use :c:func:`PyUnicode_AsLatin1String`" +msgstr "" + +msgid ":c:func:`PyUnicode_EncodeASCII`: use :c:func:`PyUnicode_AsASCIIString`" +msgstr "" + +msgid ":c:func:`PyUnicode_EncodeCharmap`" +msgstr "" + +msgid ":c:func:`PyUnicode_TranslateCharmap`" +msgstr "" + +msgid "" +":c:func:`PyUnicode_EncodeMBCS`: use :c:func:`PyUnicode_AsMBCSString` " +"or :c:func:`PyUnicode_EncodeCodePage` (with ``CP_ACP`` code_page)" +msgstr "" + +msgid ":c:func:`PyUnicode_EncodeDecimal`, :c:func:`PyUnicode_TransformDecimalToASCII`" +msgstr "" + +msgid "Deprecated features" +msgstr "" + +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." +msgstr "" + +msgid "Porting to Python 3.3" +msgstr "" + +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code." +msgstr "" + +msgid "Porting Python code" +msgstr "" + +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." +msgstr "" + +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' " +"if you don't need to support older Python versions." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +":exc:`ImportError` now uses the full name of the module that was attempted " +"to be imported. Doctests that check ImportErrors' message will need to be " +"updated to use the full name of the module instead of just the tail of the " +"name." +msgstr "" + +msgid "" +"The *index* argument to :func:`__import__` now defaults to 0 instead of -1 " +"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." +msgstr "" + +msgid "" +":func:`__import__` no longer allows one to use an index value other than 0 " +"for top-level modules. E.g. ``__import__('sys', level=1)`` is now an error." +msgstr "" + +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` " +"instead of :meth:`list.append` to add to those lists." +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." +msgstr "" + +msgid "" +":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 `." +msgstr "" + +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." +msgstr "" + +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 " +"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." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The ``strict`` argument to :class:`email.parser.Parser`, deprecated since " +"Python 2.4, has finally been removed." +msgstr "" + +msgid "" +"The deprecated method ``unittest.TestCase.assertSameElements`` has been " +"removed." +msgstr "" + +msgid "The deprecated variable ``time.accept2dyear`` has been removed." +msgstr "" + +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`.)" +msgstr "" + +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`." +msgstr "" + +msgid "" +"Passing a negative value to :func:`time.sleep` on Windows now raises an " +"error instead of sleeping forever. It has always raised an error on posix." +msgstr "" + +msgid "" +"The ``ast.__version__`` constant has been removed. If you need to make " +"decisions affected by the AST version, use :attr:`sys.version_info` to make " +"the decision." +msgstr "" + +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." +msgstr "" + +msgid "" +"The undocumented debugging machinery in the threading module has been " +"removed, simplifying the code. This should have no effect on production " +"code, but is mentioned here in case any application debug frameworks were " +"interacting with it (:issue:`13550`)." +msgstr "" + +msgid "Porting C code" +msgstr "" + +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." +msgstr "" + +msgid "" +"All extensions relying on the relevant parts in ``memoryobject.h`` or " +"``object.h`` must be rebuilt." +msgstr "" + +msgid "" +"Due to :ref:`PEP 393 `, the :c:type:`Py_UNICODE` type and all " +"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>`." +msgstr "" + +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." +msgstr "" + +msgid ":c:func:`PyImport_GetMagicNumber` now returns ``-1`` upon failure." +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``." +msgstr "" + +msgid "Building C extensions" +msgstr "" + +msgid "" +"The range of possible file names for C extensions has been narrowed. Very " +"rarely used spellings have been suppressed: under POSIX, files named " +"``xxxmodule.so``, ``xxxmodule.abi3.so`` and ``xxxmodule.cpython-*.so`` are " +"no longer recognized as implementing the ``xxx`` module. If you had been " +"generating such files, you have to switch to the other spellings (i.e., " +"remove the ``module`` string from the file names)." +msgstr "" + +msgid "(implemented in :issue:`14040`.)" +msgstr "" + +msgid "Command Line Switch Changes" +msgstr "" + +msgid "" +"The -Q command-line flag and related artifacts have been removed. Code " +"checking sys.flags.division_warning will need updating." +msgstr "" + +msgid "(:issue:`10998`, contributed by Éric Araujo.)" +msgstr "" + +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 " +"versions, it did." +msgstr "" + +msgid "" +"(:issue:`11591`, contributed by Carl Meyer with editions by Éric Araujo.)" +msgstr "" diff --git a/whatsnew/3.4.po b/whatsnew/3.4.po new file mode 100644 index 0000000000..81b596cf25 --- /dev/null +++ b/whatsnew/3.4.po @@ -0,0 +1,3050 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New In Python 3.4" +msgstr "" + +msgid "Author" +msgstr "Autor" + +msgid "R. David Murray (Editor)" +msgstr "" + +msgid "" +"This article explains the new features in Python 3.4, compared to 3.3. " +"Python 3.4 was released on March 16, 2014. For full details, see the " +"`changelog `_." +msgstr "" + +msgid ":pep:`429` -- Python 3.4 Release Schedule" +msgstr "" + +msgid "Summary -- Release Highlights" +msgstr "Podsumowanie - najważniejsze informacje o wydaniu" + +msgid "New syntax features:" +msgstr "Nowe cechy składni:" + +msgid "No new syntax features were added in Python 3.4." +msgstr "" + +msgid "Other new features:" +msgstr "" + +msgid ":ref:`pip should always be available ` (:pep:`453`)." +msgstr "" + +msgid "" +":ref:`Newly created file descriptors are non-inheritable ` " +"(:pep:`446`)." +msgstr "" + +msgid "" +"command line option for :ref:`isolated mode ` " +"(:issue:`16499`)." +msgstr "" + +msgid "" +":ref:`improvements in the handling of codecs ` " +"that are not text encodings (multiple issues)." +msgstr "" + +msgid "" +":ref:`A ModuleSpec Type ` for the Import System " +"(:pep:`451`). (Affects importer authors.)" +msgstr "" + +msgid "" +"The :mod:`marshal` format has been made :ref:`more compact and efficient " +"` (:issue:`16475`)." +msgstr "" + +msgid "New library modules:" +msgstr "Nowe moduły biblioteki:" + +msgid "" +":mod:`asyncio`: :ref:`New provisional API for asynchronous IO ` (:pep:`3156`)." +msgstr "" + +msgid "" +":mod:`ensurepip`: :ref:`Bootstrapping the pip installer ` (:pep:`453`)." +msgstr "" + +msgid "" +":mod:`enum`: :ref:`Support for enumeration types ` " +"(:pep:`435`)." +msgstr "" + +msgid "" +":mod:`pathlib`: :ref:`Object-oriented filesystem paths ` " +"(:pep:`428`)." +msgstr "" + +msgid "" +":mod:`selectors`: :ref:`High-level and efficient I/O multiplexing `, built upon the :mod:`select` module primitives (part " +"of :pep:`3156`)." +msgstr "" + +msgid "" +":mod:`statistics`: A basic :ref:`numerically stable statistics library " +"` (:pep:`450`)." +msgstr "" + +msgid "" +":mod:`tracemalloc`: :ref:`Trace Python memory allocations ` (:pep:`454`)." +msgstr "" + +msgid "Significantly improved library modules:" +msgstr "" + +msgid "" +":ref:`Single-dispatch generic functions ` " +"in :mod:`functools` (:pep:`443`)." +msgstr "" + +msgid "" +"New :mod:`pickle` :ref:`protocol 4 ` (:pep:`3154`)." +msgstr "" + +msgid "" +":mod:`multiprocessing` now has :ref:`an option to avoid using os.fork on " +"Unix ` (:issue:`8713`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The :mod:`inspect` and :mod:`pydoc` modules are now capable of correct " +"introspection of a much wider variety of callable objects, which improves " +"the output of the Python :func:`help` system." +msgstr "" + +msgid "The :mod:`ipaddress` module API has been declared stable" +msgstr "" + +msgid "Security improvements:" +msgstr "" + +msgid "" +":ref:`Secure and interchangeable hash algorithm ` " +"(:pep:`456`)." +msgstr "" + +msgid "" +":ref:`Make newly created file descriptors non-inheritable ` (:pep:`446`) to avoid leaking file descriptors to child processes." +msgstr "" + +msgid "" +"New command line option for :ref:`isolated mode `, " +"(:issue:`16499`)." +msgstr "" + +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." +msgstr "" + +msgid "" +":mod:`multiprocessing` child processes on Windows no longer inherit all of " +"the parent's inheritable handles, only the necessary ones." +msgstr "" + +msgid "" +"A new :func:`hashlib.pbkdf2_hmac` function provides the `PKCS#5 password-" +"based key derivation function 2 `_." +msgstr "" + +msgid ":ref:`TLSv1.1 and TLSv1.2 support ` for :mod:`ssl`." +msgstr "" + +msgid "" +":ref:`Retrieving certificates from the Windows system cert store support " +"` for :mod:`ssl`." +msgstr "" + +msgid "" +":ref:`Server-side SNI (Server Name Indication) support ` " +"for :mod:`ssl`." +msgstr "" + +msgid "" +"The :class:`ssl.SSLContext` class has a :ref:`lot of improvements " +"`." +msgstr "" + +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`)." +msgstr "" + +msgid "CPython implementation improvements:" +msgstr "" + +msgid ":ref:`Safe object finalization ` (:pep:`442`)." +msgstr "" + +msgid "" +"Leveraging :pep:`442`, in most cases :ref:`module globals are no longer set " +"to None during finalization ` (:issue:`18214`)." +msgstr "" + +msgid ":ref:`Configurable memory allocators ` (:pep:`445`)." +msgstr "" + +msgid ":ref:`Argument Clinic ` (:pep:`436`)." +msgstr "" + +msgid "" +"Please read on for a comprehensive list of user-facing changes, including " +"many other smaller improvements, CPython optimizations, deprecations, and " +"potential porting issues." +msgstr "" + +msgid "New Features" +msgstr "Nowe funkcjonalności" + +msgid "PEP 453: Explicit Bootstrapping of PIP in Python Installations" +msgstr "" + +msgid "Bootstrapping pip By Default" +msgstr "" + +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 " +"update the bundled version to the latest version of ``pip`` that is " +"available at the time of creating the release candidate." +msgstr "" + +msgid "" +"By default, the commands ``pipX`` and ``pipX.Y`` will be installed on all " +"platforms (where X.Y stands for the version of the Python installation), " +"along with the ``pip`` Python package and its dependencies. On Windows and " +"in virtual environments on all platforms, the unversioned ``pip`` command " +"will also be installed. On other platforms, the system wide unversioned " +"``pip`` command typically refers to the separately installed Python 2 " +"version." +msgstr "" + +msgid "" +"The ``pyvenv`` command line utility and the :mod:`venv` module make use of " +"the :mod:`ensurepip` module to make ``pip`` readily available in virtual " +"environments. When using the command line utility, ``pip`` is installed by " +"default, while when using the :mod:`venv` module :ref:`venv-api` " +"installation of ``pip`` must be requested explicitly." +msgstr "" + +msgid "" +"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 "" + +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``." +msgstr "" + +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)." +msgstr "" + +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 " +"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." +msgstr "" + +msgid "Documentation Changes" +msgstr "" + +msgid "" +"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." +msgstr "" + +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`." +msgstr "" + +msgid ":pep:`453` -- Explicit bootstrapping of pip in Python installations" +msgstr "" + +msgid "" +"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, " +"Nick Coghlan, Martin von Löwis and Ned Deily." +msgstr "" + +msgid "PEP 446: Newly Created File Descriptors Are Non-Inheritable" +msgstr "" + +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." +msgstr "" + +msgid "" +"However, there are occasions when inheritance is desired. To support these " +"cases, the following new functions and methods are available:" +msgstr "" + +msgid ":func:`os.get_inheritable`, :func:`os.set_inheritable`" +msgstr ":func:`os.get_inheritable`, :func:`os.set_inheritable`" + +msgid ":func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`" +msgstr ":func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`" + +msgid ":meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable`" +msgstr ":meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable`" + +msgid ":pep:`446` -- Make newly created file descriptors non-inheritable" +msgstr "" + +msgid "PEP written and implemented by Victor Stinner." +msgstr "" + +msgid "Improvements to Codec Handling" +msgstr "" + +msgid "" +"Since it was first introduced, the :mod:`codecs` module has always been " +"intended to operate as a type-neutral dynamic encoding and decoding system. " +"However, its close coupling with the Python text model, especially the type " +"restricted convenience methods on the builtin :class:`str`, :class:`bytes` " +"and :class:`bytearray` types, has historically obscured that fact." +msgstr "" + +msgid "" +"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 "" + +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`` " +"conversions (in Python 2)." +msgstr "" + +msgid "" +"In Python 3.4, the interpreter is able to identify the known non-text " +"encodings provided in the standard library and direct users towards these " +"general purpose convenience functions when appropriate::" +msgstr "" + +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 " +"the codec responsible for producing the error::" +msgstr "" + +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::" +msgstr "" + +msgid "" +"The binary and text transforms provided in the standard library are detailed " +"in :ref:`binary-transforms` and :ref:`text-transforms`." +msgstr "" + +msgid "" +"(Contributed by Nick Coghlan " +"in :issue:`7475`, :issue:`17827`, :issue:`17828` and :issue:`19619`.)" +msgstr "" + +msgid "PEP 451: A ModuleSpec Type for the Import System" +msgstr "" + +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`__." +msgstr "" + +msgid "" +"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 and their replacements." +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "Some smaller changes made to the core Python language are:" +msgstr "" + +msgid "Unicode database updated to UCD version 6.3." +msgstr "" + +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`.)" +msgstr "" + +msgid "Module objects are now :mod:`weakref`'able." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"All the UTF-\\* codecs (except UTF-7) now reject surrogates during both " +"encoding and decoding unless the ``surrogatepass`` error handler is used, " +"with the exception of the UTF-16 decoder (which accepts valid surrogate " +"pairs) and the UTF-16 encoder (which produces them while encoding non-BMP " +"characters). (Contributed by Victor Stinner, Kang-Hao (Kenny) Lu and Serhiy " +"Storchaka in :issue:`12892`.)" +msgstr "" + +msgid "" +"New German EBCDIC :ref:`codec ` ``cp273``. (Contributed " +"by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)" +msgstr "" + +msgid "" +"New Ukrainian :ref:`codec ` ``cp1125``. (Contributed by " +"Serhiy Storchaka in :issue:`19668`.)" +msgstr "" + +msgid "" +":class:`bytes`.join() and :class:`bytearray`.join() now accept arbitrary " +"buffer objects as arguments. (Contributed by Antoine Pitrou " +"in :issue:`15958`.)" +msgstr "" + +msgid "" +"The :class:`int` constructor now accepts any object that has an " +"``__index__`` method for its *base* argument. (Contributed by Mark " +"Dickinson in :issue:`16772`.)" +msgstr "" + +msgid "" +"Frame objects now have a :func:`~frame.clear` method that clears all " +"references to local variables from the frame. (Contributed by Antoine " +"Pitrou in :issue:`17934`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Signatures reported by :func:`help` have been modified and improved in " +"several cases as a result of the introduction of Argument Clinic and other " +"changes to the :mod:`inspect` and :mod:`pydoc` modules." +msgstr "" + +msgid "" +":meth:`~object.__length_hint__` is now part of the formal language " +"specification (see :pep:`424`). (Contributed by Armin Ronacher " +"in :issue:`16148`.)" +msgstr "" + +msgid "New Modules" +msgstr "" + +msgid "asyncio" +msgstr "asyncio" + +msgid "" +"The new :mod:`asyncio` module (defined in :pep:`3156`) provides a standard " +"pluggable event loop model for Python, providing solid asynchronous IO " +"support in the standard library, and making it easier for other event loop " +"implementations to interoperate with the standard library and each other." +msgstr "" + +msgid "For Python 3.4, this module is considered a :term:`provisional API`." +msgstr "" + +msgid ":pep:`3156` -- Asynchronous IO Support Rebooted: the \"asyncio\" Module" +msgstr "" + +msgid "PEP written and implementation led by Guido van Rossum." +msgstr "" + +msgid "ensurepip" +msgstr "" + +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." +msgstr "" + +msgid "" +":mod:`ensurepip` includes a bundled copy of ``pip``, up-to-date as of the " +"first release candidate of the release of CPython with which it ships (this " +"applies to both maintenance releases and feature releases). ``ensurepip`` " +"does not access the internet. If the installation has internet access, " +"after ``ensurepip`` is run the bundled ``pip`` can be used to upgrade " +"``pip`` to a more recent release than the bundled one. (Note that such an " +"upgraded version of ``pip`` is considered to be a separately installed " +"package and will not be removed if Python is uninstalled.)" +msgstr "" + +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 " +"cause it to install the bundled copy of ``pip`` if the existing installed " +"version of ``pip`` is older than the bundled copy." +msgstr "" + +msgid "enum" +msgstr "" + +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." +msgstr "" + +msgid ":pep:`435` -- Adding an Enum type to the Python standard library" +msgstr "" + +msgid "" +"PEP written by Barry Warsaw, Eli Bendersky and Ethan Furman, implemented by " +"Ethan Furman." +msgstr "" + +msgid "pathlib" +msgstr "" + +msgid "" +"The new :mod:`pathlib` module offers classes representing filesystem paths " +"with semantics appropriate for different operating systems. Path classes " +"are divided between *pure paths*, which provide purely computational " +"operations without I/O, and *concrete paths*, which inherit from pure paths " +"but also provide I/O operations." +msgstr "" + +msgid ":pep:`428` -- The pathlib module -- object-oriented filesystem paths" +msgstr "" + +msgid "PEP written and implemented by Antoine Pitrou." +msgstr "" + +msgid "selectors" +msgstr "" + +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." +msgstr "" + +msgid "statistics" +msgstr "" + +msgid "" +"The new :mod:`statistics` module (defined in :pep:`450`) offers some core " +"statistics functionality directly in the standard library. This module " +"supports calculation of the mean, median, mode, variance and standard " +"deviation of a data series." +msgstr "" + +msgid ":pep:`450` -- Adding A Statistics Module To The Standard Library" +msgstr "" + +msgid "PEP written and implemented by Steven D'Aprano" +msgstr "" + +msgid "tracemalloc" +msgstr "" + +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 " +"information:" +msgstr "" + +msgid "Trace where an object was allocated" +msgstr "" + +msgid "" +"Statistics on allocated memory blocks per filename and per line number: " +"total size, number and average size of allocated memory blocks" +msgstr "" + +msgid "Compute the differences between two snapshots to detect memory leaks" +msgstr "" + +msgid "" +":pep:`454` -- Add a new tracemalloc module to trace Python memory allocations" +msgstr "" + +msgid "PEP written and implemented by Victor Stinner" +msgstr "" + +msgid "Improved Modules" +msgstr "Ulepszone moduły" + +msgid "abc" +msgstr "" + +msgid "" +"New function :func:`abc.get_cache_token` can be used to know when to " +"invalidate caches that are affected by changes in the object graph. " +"(Contributed by Łukasz Langa in :issue:`16832`.)" +msgstr "" + +msgid "" +"New class :class:`~abc.ABC` has :class:`~abc.ABCMeta` as its meta class. " +"Using ``ABC`` as a base class has essentially the same effect as specifying " +"``metaclass=abc.ABCMeta``, but is simpler to type and easier to read. " +"(Contributed by Bruno Dupuis in :issue:`16049`.)" +msgstr "" + +msgid "aifc" +msgstr "" + +msgid "" +"The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than " +"a plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :meth:`~aifc.aifc.writeframesraw` and :meth:`~aifc.aifc.writeframes` " +"methods now accept any :term:`bytes-like object`. (Contributed by Serhiy " +"Storchaka in :issue:`8311`.)" +msgstr "" + +msgid "argparse" +msgstr "" + +msgid "" +"The :class:`~argparse.FileType` class now accepts *encoding* and *errors* " +"arguments, which are passed through to :func:`open`. (Contributed by Lucas " +"Maystre in :issue:`11175`.)" +msgstr "" + +msgid "audioop" +msgstr "" + +msgid "" +":mod:`audioop` now supports 24-bit samples. (Contributed by Serhiy " +"Storchaka in :issue:`12866`.)" +msgstr "" + +msgid "" +"New :func:`~audioop.byteswap` function converts big-endian samples to little-" +"endian and vice versa. (Contributed by Serhiy Storchaka in :issue:`19641`.)" +msgstr "" + +msgid "" +"All :mod:`audioop` functions now accept any :term:`bytes-like object`. " +"Strings are not accepted: they didn't work before, now they raise an error " +"right away. (Contributed by Serhiy Storchaka in :issue:`16685`.)" +msgstr "" + +msgid "base64" +msgstr "" + +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`.)" +msgstr "" + +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 "" + +msgid "collections" +msgstr "" + +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`.)" +msgstr "" + +msgid "colorsys" +msgstr "" + +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`.)" +msgstr "" + +msgid "contextlib" +msgstr "" + +msgid "" +"The new :class:`contextlib.suppress` context manager helps to clarify the " +"intent of code that deliberately suppresses exceptions from a single " +"statement. (Contributed by Raymond Hettinger in :issue:`15806` and Zero " +"Piraeus in :issue:`19266`.)" +msgstr "" + +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 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`.)" +msgstr "" + +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." +msgstr "" + +msgid "dbm" +msgstr "" + +msgid "" +":func:`dbm.open` objects now support the context management protocol. When " +"used in a :keyword:`with` statement, the ``close`` method of the database " +"object will be called automatically at the end of the block. (Contributed " +"by Claudiu Popa and Nick Coghlan in :issue:`19282`.)" +msgstr "" + +msgid "dis" +msgstr "" + +msgid "" +"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 "" + +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 " +"bytecode operation." +msgstr "" + +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 " +"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::" +msgstr "" + +msgid "" +"The various display tools in the :mod:`dis` module have been rewritten to " +"use these new components." +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::" +msgstr "" + +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 ``distb(tb)``)." +msgstr "" + +msgid "" +"(Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver " +"in :issue:`11816` and Claudiu Popa in :issue:`17916`.)" +msgstr "" + +msgid "" +"New function :func:`~dis.stack_effect` computes the effect on the Python " +"stack of a given opcode and argument, information that is not otherwise " +"available. (Contributed by Larry Hastings in :issue:`19722`.)" +msgstr "" + +msgid "doctest" +msgstr "" + +msgid "" +"A new :ref:`option flag `, :data:`~doctest.FAIL_FAST`, " +"halts test running as soon as the first failure is detected. (Contributed " +"by R. David Murray and Daniel Urban in :issue:`16522`.)" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +msgid "" +":mod:`doctest` will now find doctests in extension module ``__doc__`` " +"strings. (Contributed by Zachary Ware in :issue:`3158`.)" +msgstr "" + +msgid "email" +msgstr "" + +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`.)" +msgstr "" + +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. " +"(Contributed by R. David Murray in :issue:`18600`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A pair of new subclasses of :class:`~email.message.Message` have been added " +"(:class:`.EmailMessage` and :class:`.MIMEPart`), along with a new sub-" +"module, :mod:`~email.contentmanager` and a new :mod:`~email.policy` " +"attribute :attr:`~email.policy.EmailPolicy.content_manager`. All " +"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`.)" +msgstr "" + +msgid "filecmp" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "functools" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +msgid "" +"The new :func:`~functools.singledispatch` decorator brings support for " +"single-dispatch generic functions to the Python standard library. Where " +"object oriented programming focuses on grouping multiple operations on a " +"common set of data into a class, a generic function focuses on grouping " +"multiple implementations of an operation that allows it to work with " +"*different* kinds of data." +msgstr "" + +msgid ":pep:`443` -- Single-dispatch generic functions" +msgstr "" + +msgid "PEP written and implemented by Łukasz Langa." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "gc" +msgstr "" + +msgid "" +"New function :func:`~gc.get_stats` returns a list of three per-generation " +"dictionaries containing the collections statistics since interpreter " +"startup. (Contributed by Antoine Pitrou in :issue:`16351`.)" +msgstr "" + +msgid "glob" +msgstr "" + +msgid "" +"A new function :func:`~glob.escape` provides a way to escape special " +"characters in a filename so that they do not become part of the globbing " +"expansion but are instead matched literally. (Contributed by Serhiy " +"Storchaka in :issue:`8402`.)" +msgstr "" + +msgid "hashlib" +msgstr "" + +msgid "" +"A new :func:`hashlib.pbkdf2_hmac` function provides the `PKCS#5 password-" +"based key derivation function 2 `_. " +"(Contributed by Christian Heimes in :issue:`18582`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "hmac" +msgstr "" + +msgid "" +":mod:`hmac` now accepts ``bytearray`` as well as ``bytes`` for the *key* " +"argument to the :func:`~hmac.new` function, and the *msg* parameter to both " +"the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now " +"accepts any type supported by the :mod:`hashlib` module. (Contributed by " +"Jonas Borgström in :issue:`18240`.)" +msgstr "" + +msgid "" +"The *digestmod* argument to the :func:`hmac.new` function may now be any " +"hash digest name recognized by :mod:`hashlib`. In addition, the current " +"behavior in which the value of *digestmod* defaults to ``MD5`` is " +"deprecated: in a future version of Python there will be no default value. " +"(Contributed by Christian Heimes in :issue:`17276`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "html" +msgstr "" + +msgid "" +"New function :func:`~html.unescape` function converts HTML5 character " +"references to the corresponding Unicode characters. (Contributed by Ezio " +"Melotti in :issue:`2927`.)" +msgstr "" + +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``, " +"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 "" + +msgid "" +"The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated. " +"(Contributed by Ezio Melotti in :issue:`15114`.)" +msgstr "" + +msgid "http" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :mod:`http.server` :ref:`command line interface ` now " +"has a ``-b/--bind`` option that causes the server to listen on a specific " +"address. (Contributed by Malte Swart in :issue:`17764`.)" +msgstr "" + +msgid "idlelib and IDLE" +msgstr "" + +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." +msgstr "" + +msgid "importlib" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":class:`~importlib.abc.InspectLoader` also now has a default implementation " +"for the :meth:`~importlib.abc.InspectLoader.get_code` method. However, it " +"will normally be desirable to override the default implementation for " +"performance reasons. (Contributed by Brett Cannon in :issue:`18072`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":mod:`importlib.util` now has a :data:`~importlib.util.MAGIC_NUMBER` " +"attribute providing access to the bytecode version number. This replaces " +"the :func:`~imp.get_magic` function in the deprecated :mod:`imp` module. " +"(Contributed by Brett Cannon in :issue:`18192`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +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`.)" +msgstr "" + +msgid "inspect" +msgstr "" + +msgid "" +"The :mod:`inspect` module now offers a basic :ref:`command line interface " +"` to quickly display source code and other information " +"for modules, classes and functions. (Contributed by Claudiu Popa and Nick " +"Coghlan in :issue:`18626`.)" +msgstr "" + +msgid "" +":func:`~inspect.unwrap` makes it easy to unravel wrapper function chains " +"created by :func:`functools.wraps` (and any other API that sets the " +"``__wrapped__`` attribute on a wrapper function). (Contributed by Daniel " +"Urban, Aaron Iles and Nick Coghlan in :issue:`13266`.)" +msgstr "" + +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`.)" +msgstr "" + +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 "" + +msgid "" +":func:`~inspect.signature` now supports duck types of CPython functions, " +"which adds support for functions compiled with Cython. (Contributed by " +"Stefan Behnel and Yury Selivanov in :issue:`17159`.)" +msgstr "" + +msgid "ipaddress" +msgstr "" + +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." +msgstr "" + +msgid "" +"A new :attr:`~ipaddress.IPv4Address.is_global` property is ``True`` if an " +"address is globally routeable. (Contributed by Peter Moody " +"in :issue:`17400`.)" +msgstr "" + +msgid "logging" +msgstr "" + +msgid "" +"The :class:`~logging.handlers.TimedRotatingFileHandler` has a new *atTime* " +"parameter that can be used to specify the time of day when rollover should " +"happen. (Contributed by Ronald Oussoren in :issue:`9556`.)" +msgstr "" + +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.)" +msgstr "" + +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 "" + +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`.)" +msgstr "" + +msgid "marshal" +msgstr "" + +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 " +"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`.)" +msgstr "" + +msgid "mmap" +msgstr "" + +msgid "" +"mmap objects can now be :mod:`weakref`\\ ed. (Contributed by Valerie " +"Lambert in :issue:`4885`.)" +msgstr "" + +msgid "multiprocessing" +msgstr "" + +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`.)" +msgstr "" + +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 Richard Oudkerk " +"in :issue:`18999`.)" +msgstr "" + +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`)." +msgstr "" + +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`.)" +msgstr "" + +msgid "operator" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"There is now a pure-python version of the :mod:`operator` module available " +"for reference and for use by alternate implementations of Python. " +"(Contributed by Zachary Ware in :issue:`16694`.)" +msgstr "" + +msgid "os" +msgstr "" + +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`)." +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +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 " +"Windows). (Contributed by Brian Curtin in :issue:`11939`.)" +msgstr "" + +msgid "" +":func:`os.path.ismount` now recognizes volumes mounted below a drive root on " +"Windows. (Contributed by Tim Golden in :issue:`9035`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "pdb" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The ``print`` command has been removed from :mod:`pdb`, restoring access to " +"the Python :func:`print` function from the pdb command line. Python2's " +"``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 " +"``print`` function, making it inaccessible at the ``pdb`` prompt. " +"(Contributed by Connor Osborn in :issue:`18764`.)" +msgstr "" + +msgid "pickle" +msgstr "" + +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 efficiency improvements." +msgstr "" + +msgid ":pep:`3154` -- Pickle protocol 4" +msgstr "" + +msgid "PEP written by Antoine Pitrou and implemented by Alexandre Vassalotti." +msgstr "" + +msgid "plistlib" +msgstr "" + +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 Ronald Oussoren and others " +"in :issue:`14455`.)" +msgstr "" + +msgid "poplib" +msgstr "" + +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 encrypted POP3 session if the POP server supports it. (Contributed by " +"Lorenzo Catucci in :issue:`4473`.)" +msgstr "" + +msgid "pprint" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"Long strings are now wrapped using Python's normal line continuation " +"syntax. (Contributed by Antoine Pitrou in :issue:`17150`.)" +msgstr "" + +msgid "pty" +msgstr "" + +msgid "" +":func:`pty.spawn` now returns the status value from :func:`os.waitpid` on " +"the child process, instead of ``None``. (Contributed by Gregory P. Smith.)" +msgstr "" + +msgid "pydoc" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"As the :func:`help` builtin is based on :mod:`pydoc`, the above changes also " +"affect the behaviour of :func:`help`." +msgstr "" + +msgid "re" +msgstr "" + +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 " +"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 "" + +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 " +"Lopes Tavares and Serhiy Storchaka in :issue:`13592` and :issue:`17087`.)" +msgstr "" + +msgid "resource" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "select" +msgstr "" + +msgid "" +":class:`~select.epoll` objects now support the context management protocol. " +"When used in a :keyword:`with` statement, the :meth:`~select.epoll.close` " +"method will be called automatically at the end of the block. (Contributed " +"by Serhiy Storchaka in :issue:`16488`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "shelve" +msgstr "" + +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`.)" +msgstr "" + +msgid "shutil" +msgstr "" + +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`.)" +msgstr "" + +msgid "smtpd" +msgstr "" + +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`.)" +msgstr "" + +msgid "smtplib" +msgstr "" + +msgid "" +":exc:`~smtplib.SMTPException` is now a subclass of :exc:`OSError`, which " +"allows both socket level errors and SMTP protocol level errors to be caught " +"in one try/except statement by code that only cares whether or not an error " +"occurred. (Contributed by Ned Jackson Lovely in :issue:`2118`.)" +msgstr "" + +msgid "socket" +msgstr "" + +msgid "" +"The socket module now supports the :data:`~socket.CAN_BCM` protocol on " +"platforms that support it. (Contributed by Brian Thorne in :issue:`15359`.)" +msgstr "" + +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`." +msgstr "" + +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\"." +msgstr "" + +msgid "The :data:`~socket.AF_LINK` constant is now available on BSD and OSX." +msgstr "" + +msgid "" +":func:`~socket.inet_pton` and :func:`~socket.inet_ntop` are now supported on " +"Windows. (Contributed by Atsuo Ishimoto in :issue:`7171`.)" +msgstr "" + +msgid "sqlite3" +msgstr "" + +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 " +"`SQLite URI documentation `_). " +"(Contributed by poq in :issue:`13773`.)" +msgstr "" + +msgid "ssl" +msgstr "" + +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 " +"available if Python is linked with OpenSSL 1.0.1 or later. (Contributed by " +"Michele Orrù and Antoine Pitrou in :issue:`16692`.)" +msgstr "" + +msgid "" +"New function :func:`~ssl.create_default_context` provides a standard way to " +"obtain an :class:`~ssl.SSLContext` whose settings are intended to be a " +"reasonable balance between compatibility and security. These settings are " +"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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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 "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "stat" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "struct" +msgstr "" + +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`.)" +msgstr "" + +msgid "subprocess" +msgstr "" + +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. " +"(Contributed by Zack Weinberg in :issue:`16624`.)" +msgstr "" + +msgid "" +":func:`~subprocess.getstatus` and :func:`~subprocess.getstatusoutput` now " +"work on Windows. This change was actually inadvertently made in 3.3.4. " +"(Contributed by Tim Golden in :issue:`10197`.)" +msgstr "" + +msgid "sunau" +msgstr "" + +msgid "" +"The :meth:`~sunau.getparams` method now returns a namedtuple rather than a " +"plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)" +msgstr "" + +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 " +"Storchaka in :issue:`18878`.)" +msgstr "" + +msgid "" +":meth:`.AU_write.setsampwidth` now supports 24 bit samples, thus adding " +"support for writing 24 sample using the module. (Contributed by Serhiy " +"Storchaka in :issue:`19261`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "sys" +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "tarfile" +msgstr "" + +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`.)" +msgstr "" + +msgid "textwrap" +msgstr "" + +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 " +"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`.)" +msgstr "" + +msgid "threading" +msgstr "" + +msgid "" +"The :class:`~threading.Thread` object representing the main thread can be " +"obtained from the new :func:`~threading.main_thread` function. In normal " +"conditions this will be the thread from which the Python interpreter was " +"started. (Contributed by Andrew Svetlov in :issue:`18882`.)" +msgstr "" + +msgid "traceback" +msgstr "" + +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`.)" +msgstr "" + +msgid "types" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +msgid "urllib" +msgstr "" + +msgid "" +":mod:`urllib.request` now supports ``data:`` URLs via " +"the :class:`~urllib.request.DataHandler` class. (Contributed by Mathias " +"Panzenböck in :issue:`16423`.)" +msgstr "" + +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`.)" +msgstr "" + +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 "" + +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`.)" +msgstr "" + +msgid "unittest" +msgstr "" + +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 "" + +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`.)" +msgstr "" + +msgid "" +":func:`unittest.main` now accepts an iterable of test names for " +"*defaultTest*, where previously it only accepted a single test name as a " +"string. (Contributed by Jyrki Pulliainen in :issue:`15132`.)" +msgstr "" + +msgid "" +"If :class:`~unittest.SkipTest` is raised during test discovery (that is, at " +"the module level in the test file), it is now reported as a skip instead of " +"an error. (Contributed by Zach Ware in :issue:`16935`.)" +msgstr "" + +msgid "" +":meth:`~unittest.TestLoader.discover` now sorts the discovered files to " +"provide consistent test ordering. (Contributed by Martin Melin and Jeff " +"Ramnani in :issue:`16709`.)" +msgstr "" + +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 " +"defines a custom ``_removeTestAtIndex`` method. (Contributed by Tom " +"Wardill, Matt McClure, and Andrew Svetlov in :issue:`11798`.)" +msgstr "" + +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 " +"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 "" + +msgid "" +"Test discovery now works with namespace packages (Contributed by Claudiu " +"Popa in :issue:`17457`.)" +msgstr "" + +msgid "" +":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 "" + +msgid "" +":func:`~mock.mock_open` objects now have ``readline`` and ``readlines`` " +"methods. (Contributed by Toshio Kuratomi in :issue:`17467`.)" +msgstr "" + +msgid "venv" +msgstr "" + +msgid "" +":mod:`venv` now includes activation scripts for the ``csh`` and ``fish`` " +"shells. (Contributed by Andrew Svetlov in :issue:`15417`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "wave" +msgstr "" + +msgid "" +"The :meth:`~wave.getparams` method now returns a namedtuple rather than a " +"plain tuple. (Contributed by Claudiu Popa in :issue:`17487`.)" +msgstr "" + +msgid "" +":meth:`wave.open` now supports the context management protocol. " +"(Contributed by Claudiu Popa in :issue:`17616`.)" +msgstr "" + +msgid "" +":mod:`wave` can now :ref:`write output to unseekable files `. (Contributed by David Jones, Guilherme Polo, and Serhiy " +"Storchaka in :issue:`5202`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "weakref" +msgstr "" + +msgid "" +"New :class:`~weakref.WeakMethod` class simulates weak references to bound " +"methods. (Contributed by Antoine Pitrou in :issue:`14631`.)" +msgstr "" + +msgid "" +"New :class:`~weakref.finalize` class makes it possible to register a " +"callback to be invoked when an object is garbage collected, without needing " +"to carefully manage the lifecycle of the weak reference itself. " +"(Contributed by Richard Oudkerk in :issue:`15528`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "xml.etree" +msgstr "" + +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`.)" +msgstr "" + +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 "" + +msgid "zipfile" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The *allowZip64* parameter to :class:`~zipfile.ZipFile` " +"and :class:`~zipfile.PyZipfile` is now ``True`` by default. (Contributed by " +"William Mallard in :issue:`17201`.)" +msgstr "" + +msgid "CPython Implementation Changes" +msgstr "" + +msgid "PEP 445: Customization of CPython Memory Allocators" +msgstr "" + +msgid "" +":pep:`445` adds new C level interfaces to customize memory allocation in the " +"CPython interpreter." +msgstr "" + +msgid ":pep:`445` -- Add new APIs to customize Python memory allocators" +msgstr "" + +msgid "PEP 442: Safe Object Finalization" +msgstr "" + +msgid "" +":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 "" + +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." +msgstr "" + +msgid ":pep:`442` -- Safe object finalization" +msgstr "" + +msgid "PEP 456: Secure and Interchangeable Hash Algorithm" +msgstr "" + +msgid "" +":pep:`456` follows up on earlier security fix work done on Python's hash " +"algorithm to address certain DOS attacks to which public facing APIs backed " +"by dictionary lookups may be subject. (See :issue:`14621` for the start of " +"the current round of improvements.) The PEP unifies CPython's hash code to " +"make it easier for a packager to substitute a different hash algorithm, and " +"switches Python's default implementation to a SipHash implementation on " +"platforms that have a 64 bit data type. Any performance differences in " +"comparison with the older FNV algorithm are trivial." +msgstr "" + +msgid "" +"The PEP adds additional fields to the :attr:`sys.hash_info` named tuple to " +"describe the hash algorithm in use by the currently executing binary. " +"Otherwise, the PEP does not alter any existing CPython APIs." +msgstr "" + +msgid "PEP 436: Argument Clinic" +msgstr "" + +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 " +"in C." +msgstr "" + +msgid "" +"Some standard library extension modules have been converted to use Argument " +"Clinic in Python 3.4, and :mod:`pydoc` and :mod:`inspect` have been updated " +"accordingly." +msgstr "" + +msgid "" +"It is expected that signature metadata for programmatic introspection will " +"be added to additional callables implemented in C as part of Python 3.4 " +"maintenance releases." +msgstr "" + +msgid "" +"The Argument Clinic PEP is not fully up to date with the state of the " +"implementation. This has been deemed acceptable by the release manager and " +"core development team in this case, as Argument Clinic will not be made " +"available as a public API for third party use in Python 3.4." +msgstr "" + +msgid ":pep:`436` -- The Argument Clinic DSL" +msgstr "" + +msgid "PEP written and implemented by Larry Hastings." +msgstr "" + +msgid "Other Build and C API Changes" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Most Python C APIs that don't mutate string arguments are now correctly " +"marked as accepting ``const char *`` rather than ``char *``. (Contributed " +"by Serhiy Storchaka in :issue:`1772673`.)" +msgstr "" + +msgid "" +"A new shell version of ``python-config`` can be used even when a python " +"interpreter is not available (for example, in cross compilation scenarios)." +msgstr "" + +msgid "" +":c:func:`PyUnicode_FromFormat` now supports width and precision " +"specifications for ``%s``, ``%A``, ``%U``, ``%V``, ``%S``, and ``%R``. " +"(Contributed by Ysj Ray and Victor Stinner in :issue:`7330`.)" +msgstr "" + +msgid "" +"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 "" + +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`.)" +msgstr "" + +msgid "" +"The Windows build now uses `Address Space Layout Randomization `_ and `Data " +"Execution Prevention `_. (Contributed by Christian Heimes " +"in :issue:`16632`.)" +msgstr "" + +msgid "" +"New function :c:func:`PyObject_LengthHint` is the C API equivalent " +"of :func:`operator.length_hint`. (Contributed by Armin Ronacher " +"in :issue:`16148`.)" +msgstr "" + +msgid "Other Improvements" +msgstr "" + +msgid "" +"The :ref:`python ` command has a new :ref:`option `, ``-I``, which causes it to run in \"isolated mode\", " +"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 " +"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`.)" +msgstr "" + +msgid "" +"Tab-completion is now enabled by default in the interactive interpreter on " +"systems that support :mod:`readline`. History is also enabled by default, " +"and is written to (and read from) the file :file:`~/.python-history`. " +"(Contributed by Antoine Pitrou and Éric Araujo in :issue:`5845`.)" +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`)." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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 "" + +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`.)" +msgstr "" + +msgid "``python -m`` now works with namespace packages." +msgstr "" + +msgid "" +"The :mod:`stat` module is now implemented in C, which means it gets the " +"values for its constants from the C header files, instead of having the " +"values hard-coded in the python module as was previously the case." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The ``pyvenv`` command now accepts a ``--copies`` option to use copies " +"rather than symlinks even on systems where symlinks are the default. " +"(Contributed by Vinay Sajip in :issue:`18807`.)" +msgstr "" + +msgid "" +"The ``pyvenv`` command also accepts a ``--without-pip`` option to suppress " +"the otherwise-automatic bootstrapping of pip into the virtual environment. " +"(Contributed by Nick Coghlan in :issue:`19552` as part of the :pep:`453` " +"implementation.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :mod:`bz2`, :mod:`lzma`, and :mod:`gzip` module ``open`` functions now " +"support ``x`` (exclusive creation) mode. (Contributed by Tim Heaney and " +"Vajrasky Kok in :issue:`19201`, :issue:`19222`, and :issue:`19223`.)" +msgstr "" + +msgid "Significant Optimizations" +msgstr "" + +msgid "" +"The UTF-32 decoder is now 3x to 4x faster. (Contributed by Serhiy Storchaka " +"in :issue:`14625`.)" +msgstr "" + +msgid "" +"The cost of hash collisions for sets is now reduced. Each hash table probe " +"now checks a series of consecutive, adjacent key/hash pairs before " +"continuing to make random probes through the hash table. This exploits " +"cache locality to make collision resolution less expensive. The collision " +"resolution scheme can be described as a hybrid of linear probing and open " +"addressing. The number of additional linear probes defaults to nine. This " +"can be changed at compile-time by defining LINEAR_PROBES to be any value. " +"Set LINEAR_PROBES=0 to turn-off linear probing entirely. (Contributed by " +"Raymond Hettinger in :issue:`18771`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":class:`bz2.BZ2File` is now as fast or faster than the Python2 version for " +"most cases. :class:`lzma.LZMAFile` has also been optimized. (Contributed " +"by Serhiy Storchaka and Nadeem Vawda in :issue:`16034`.)" +msgstr "" + +msgid "" +":func:`random.getrandbits` is 20%-40% faster for small integers (the most " +"common use case). (Contributed by Serhiy Storchaka in :issue:`16674`.)" +msgstr "" + +msgid "" +"By taking advantage of the new storage format for strings, pickling of " +"strings is now significantly faster. (Contributed by Victor Stinner and " +"Antoine Pitrou in :issue:`15596`.)" +msgstr "" + +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 " +"Richard Oudkerk in :issue:`15758`.)" +msgstr "" + +msgid "" +":func:`html.escape` is now 10x faster. (Contributed by Matt Bryant " +"in :issue:`18020`.)" +msgstr "" + +msgid "" +"On Windows, the native ``VirtualAlloc`` is now used instead of the CRT " +"``malloc`` in ``obmalloc``. Artificial benchmarks show about a 3% memory " +"savings." +msgstr "" + +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 " +"threads. (Contributed by Antoine Pitrou in :issue:`18756`.)" +msgstr "" + +msgid "Deprecated" +msgstr "" + +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``)." +msgstr "" + +msgid "Deprecations in the Python API" +msgstr "" + +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 " +"functions are now handled automatically by the import system." +msgstr "" + +msgid "" +"The :mod:`imp` module is pending deprecation. To keep compatibility with " +"Python 2/3 code bases, the module's removal is currently not scheduled." +msgstr "" + +msgid "" +"The :mod:`formatter` module is pending deprecation and is slated for removal " +"in Python 3.6." +msgstr "" + +msgid "" +"``MD5`` as the default *digestmod* for the :func:`hmac.new` function is " +"deprecated. Python 3.6 will require an explicit digest name or constructor " +"as *digestmod* argument." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +msgid "" +"The *strict* argument of :class:`~html.parser.HTMLParser` is deprecated." +msgstr "" + +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 "" + +msgid "" +"The :mod:`sysconfig` key ``SO`` is deprecated, it has been replaced by " +"``EXT_SUFFIX``." +msgstr "" + +msgid "" +"The ``U`` mode accepted by various ``open`` functions is deprecated. In " +"Python3 it does not do anything useful, and should be replaced by " +"appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline* " +"argument." +msgstr "" + +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." +msgstr "" + +msgid "Deprecated Features" +msgstr "" + +msgid "" +"Running :ref:`idle` with the ``-n`` flag (no subprocess) is deprecated. " +"However, the feature will not be removed until :issue:`18823` is resolved." +msgstr "" + +msgid "" +"The site module adding a \"site-python\" directory to sys.path, if it " +"exists, is deprecated (:issue:`19375`)." +msgstr "" + +msgid "Removed" +msgstr "" + +msgid "Operating Systems No Longer Supported" +msgstr "" + +msgid "" +"Support for the following operating systems has been removed from the source " +"and build tools:" +msgstr "" + +msgid "OS/2 (:issue:`16135`)." +msgstr "OS/2 (:issue:`16135`)." + +msgid "Windows 2000 (changeset e52df05b496a)." +msgstr "" + +msgid "" +"Windows systems where ``COMSPEC`` points to ``command.com`` (:issue:`14470`)." +msgstr "" + +msgid "VMS (:issue:`16136`)." +msgstr "VMS (:issue:`16136`)." + +msgid "API and Feature Removals" +msgstr "" + +msgid "" +"The following obsolete and previously deprecated APIs and features have been " +"removed:" +msgstr "" + +msgid "" +"The unmaintained ``Misc/TextMate`` and ``Misc/vim`` directories have been " +"removed (see the `devguide `_ for suggestions " +"on what to use instead)." +msgstr "" + +msgid "" +"The ``SO`` makefile macro is removed (it was replaced by the " +"``SHLIB_SUFFIX`` and ``EXT_SUFFIX`` macros) (:issue:`16754`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"``PyLoader`` and ``PyPycLoader`` have been removed from :mod:`importlib`. " +"(Contributed by Taras Lyapun in :issue:`15641`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The deprecated :mod:`urllib.request.Request` getter and setter methods " +"``add_data``, ``has_data``, ``get_data``, ``get_type``, ``get_host``, " +"``get_selector``, ``set_proxy``, ``get_origin_req_host``, and " +"``is_unverifiable`` have been removed (use direct attribute access instead)." +msgstr "" + +msgid "" +"Support for loading the deprecated ``TYPE_INT64`` has been removed " +"from :mod:`marshal`. (Contributed by Dan Riti in :issue:`15480`.)" +msgstr "" + +msgid "" +":class:`inspect.Signature`: positional-only parameters are now required to " +"have a valid name." +msgstr "" + +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 " +"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." +msgstr "" + +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`)." +msgstr "" + +msgid "Code Cleanups" +msgstr "" + +msgid "" +"The unused and undocumented internal ``Scanner`` class has been removed from " +"the :mod:`pydoc` module." +msgstr "" + +msgid "" +"The private and effectively unused ``_gestalt`` module has been removed, " +"along with the private :mod:`platform` functions ``_mac_ver_lookup``, " +"``_mac_ver_gstalt``, and ``_bcd2str``, which would only have ever been " +"called on badly broken OSX systems (see :issue:`18393`)." +msgstr "" + +msgid "" +"The hardcoded copies of certain :mod:`stat` constants that were included in " +"the :mod:`tarfile` module namespace have been removed." +msgstr "" + +msgid "Porting to Python 3.4" +msgstr "" + +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code." +msgstr "" + +msgid "Changes in 'python' Command Behavior" +msgstr "" + +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 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`." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The python command and most stdlib scripts (as well as :mod:`argparse`) now " +"output ``--version`` information to ``stdout`` instead of ``stderr`` (for " +"issue list see :ref:`other-improvements-3.4` above)." +msgstr "" + +msgid "Changes in the Python API" +msgstr "" + +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." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +"Import now resets relevant attributes (e.g. ``__name__``, ``__loader__``, " +"``__package__``, ``__file__``, ``__cached__``) unconditionally when " +"reloading. Note that this restores a pre-3.3 behavior in that it means a " +"module is re-found when re-loaded (:issue:`19413`)." +msgstr "" + +msgid "" +"Frozen packages no longer set ``__path__`` to a list containing the package " +"name, they now set it to an empty list. The previous behavior could cause " +"the import system to do the wrong thing on submodule imports if there was " +"also a directory with the same name as the frozen package. The correct way " +"to determine if a module is a package or not is to use ``hasattr(module, " +"'__path__')`` (:issue:`18065`)." +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`." +msgstr "" + +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 " +"regardless of what type of file path they were originally." +msgstr "" + +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 "" + +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 " +"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." +msgstr "" + +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." +msgstr "" + +msgid "" +":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`)." +msgstr "" + +msgid "" +"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 "" + +msgid "" +"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`)." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +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`.)" +msgstr "" + +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`)." +msgstr "" + +msgid "" +"Defaults for keyword-only arguments are now evaluated *after* defaults for " +"regular keyword arguments, instead of before. Hopefully no one wrote any " +"code that depends on the previous buggy behavior (:issue:`16967`)." +msgstr "" + +msgid "" +"Stale thread states are now cleared after :func:`~os.fork`. This may cause " +"some system resources to be released that previously were incorrectly kept " +"perpetually alive (for example, database connections kept in thread-local " +"storage). (:issue:`17094`.)" +msgstr "" + +msgid "" +"Parameter names in ``__annotations__`` dicts are now mangled properly, " +"similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov " +"in :issue:`20625`.)" +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +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." +msgstr "" + +msgid "" +"The :func:`re.split`, :func:`re.findall`, and :func:`re.sub` functions, and " +"the :meth:`~re.match.group` and :meth:`~re.match.groups` methods of " +"``match`` objects now always return a *bytes* object when the string to be " +"matched is a :term:`bytes-like object`. Previously the return type matched " +"the input type, so if your code was depending on the return value being, " +"say, a ``bytearray``, you will need to change your code." +msgstr "" + +msgid "" +":mod:`audioop` functions now raise an error immediately if passed string " +"input, instead of failing randomly later on (:issue:`16685`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"Since the *digestmod* argument to the :func:`hmac.new` function will in the " +"future have no default, all calls to :func:`hmac.new` should be changed to " +"explicitly specify a *digestmod* (:issue:`17276`)." +msgstr "" + +msgid "" +"Calling :func:`sysconfig.get_config_var` with the ``SO`` key, or looking " +"``SO`` up in the results of a call to :func:`sysconfig.get_config_vars` is " +"deprecated. This key should be replaced by ``EXT_SUFFIX`` or " +"``SHLIB_SUFFIX``, depending on the context (:issue:`19555`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"If you use ``pyvenv`` in a script and desire that pip *not* be installed, " +"you must add ``--without-pip`` to your command invocation." +msgstr "" + +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 " +"you have tests that are doing white-space-sensitive comparisons of such " +"output (:issue:`16333`)." +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`)." +msgstr "" + +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`)." +msgstr "" + +msgid "Changes in the C API" +msgstr "" + +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 "" + +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." +msgstr "" + +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`)" +msgstr "" + +msgid "" +":c:func:`PyThread_set_key_value` now always set the value. In Python 3.3, " +"the function did nothing if the key already exists (if the current value is " +"a non-``NULL`` pointer)." +msgstr "" + +msgid "" +"The ``f_tstate`` (thread state) field of the :c:type:`PyFrameObject` " +"structure has been removed to fix a bug: see :issue:`14432` for the " +"rationale." +msgstr "" + +msgid "Changed in 3.4.3" +msgstr "" + +msgid "" +"PEP 476: Enabling certificate verification by default for stdlib http clients" +msgstr "" + +msgid "" +":mod:`http.client` and modules which use it, such as :mod:`urllib.request` " +"and :mod:`xmlrpc.client`, will now verify that the server presents a " +"certificate which is signed by a CA in the platform trust store and whose " +"hostname matches the hostname being requested by default, significantly " +"improving security for many applications." +msgstr "" + +msgid "" +"For applications which require the old previous behavior, they can pass an " +"alternate context::" +msgstr "" diff --git a/whatsnew/3.5.po b/whatsnew/3.5.po new file mode 100644 index 0000000000..00abcce04b --- /dev/null +++ b/whatsnew/3.5.po @@ -0,0 +1,2835 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New In Python 3.5" +msgstr "" + +msgid "Editors" +msgstr "Redaktorzy" + +msgid "Elvis Pranskevichus , Yury Selivanov " +msgstr "" + +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." +msgstr "" + +msgid ":pep:`478` - Python 3.5 Release Schedule" +msgstr "" + +msgid "Summary -- Release highlights" +msgstr "Podsumowanie – najważniejsze nowości" + +msgid "New syntax features:" +msgstr "Nowe cechy składni:" + +msgid "" +":ref:`PEP 492 `, coroutines with async and await syntax." +msgstr "" + +msgid "" +":ref:`PEP 465 `, a new matrix multiplication operator: ``a " +"@ b``." +msgstr "" + +msgid "" +":ref:`PEP 448 `, additional unpacking generalizations." +msgstr "" + +msgid "New library modules:" +msgstr "Nowe moduły biblioteki:" + +msgid ":mod:`typing`: :ref:`PEP 484 -- Type Hints `." +msgstr "" + +msgid "" +":mod:`zipapp`: :ref:`PEP 441 Improving Python ZIP Application Support " +"`." +msgstr "" + +msgid "New built-in features:" +msgstr "Nowe wbudowane funkcje:" + +msgid "" +"``bytes % args``, ``bytearray % args``: :ref:`PEP 461 ` -- " +"Adding ``%`` formatting to bytes and bytearray." +msgstr "" + +msgid "" +"New :meth:`bytes.hex`, :meth:`bytearray.hex` and :meth:`memoryview.hex` " +"methods. (Contributed by Arnon Yaari in :issue:`9951`.)" +msgstr "" + +msgid "" +":class:`memoryview` now supports tuple indexing (including multi-" +"dimensional). (Contributed by Antoine Pitrou in :issue:`23632`.)" +msgstr "" + +msgid "" +"Generators have a new ``gi_yieldfrom`` attribute, which returns the object " +"being iterated by ``yield from`` expressions. (Contributed by Benno Leslie " +"and Yury Selivanov in :issue:`24450`.)" +msgstr "" + +msgid "" +"A new :exc:`RecursionError` exception is now raised when maximum recursion " +"depth is reached. (Contributed by Georg Brandl in :issue:`19235`.)" +msgstr "" + +msgid "CPython implementation improvements:" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"``.pyo`` files are no longer used and have been replaced by a more flexible " +"scheme that includes the optimization level explicitly in ``.pyc`` name. " +"(See :ref:`PEP 488 overview `.)" +msgstr "" + +msgid "" +"Builtin and extension modules are now initialized in a multi-phase process, " +"which is similar to how Python modules are loaded. (See :ref:`PEP 489 " +"overview `.)" +msgstr "" + +msgid "Significant improvements in the standard library:" +msgstr "" + +msgid "" +":class:`collections.OrderedDict` is now :ref:`implemented in C `, which makes it 4 to 100 times faster." +msgstr "" + +msgid "" +"The :mod:`ssl` module gained :ref:`support for Memory BIO `, which decouples SSL protocol handling from network IO." +msgstr "" + +msgid "" +"The new :func:`os.scandir` function provides a :ref:`better and " +"significantly faster way ` of directory traversal." +msgstr "" + +msgid "" +":func:`functools.lru_cache` has been mostly :ref:`reimplemented in C " +"`, yielding much better performance." +msgstr "" + +msgid "" +"The new :func:`subprocess.run` function provides a :ref:`streamlined way to " +"run subprocesses `." +msgstr "" + +msgid "" +"The :mod:`traceback` module has been significantly :ref:`enhanced ` for improved performance and developer convenience." +msgstr "" + +msgid "Security improvements:" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"HTTP cookie parsing is now stricter, in order to protect against potential " +"injection attacks. (Contributed by Antoine Pitrou in :issue:`22796`.)" +msgstr "" + +msgid "Windows improvements:" +msgstr "" + +msgid "" +"A new installer for Windows has replaced the old MSI. See :ref:`using-on-" +"windows` for more information." +msgstr "" + +msgid "" +"Windows builds now use Microsoft Visual C++ 14.0, and extension modules " +"should use the same." +msgstr "" + +msgid "" +"Please read on for a comprehensive list of user-facing changes, including " +"many other smaller improvements, CPython optimizations, deprecations, and " +"potential porting issues." +msgstr "" + +msgid "New Features" +msgstr "Nowe funkcjonalności" + +msgid "PEP 492 - Coroutines with async and await syntax" +msgstr "" + +msgid "" +":pep:`492` greatly improves support for asynchronous programming in Python " +"by adding :term:`awaitable objects `, :term:`coroutine functions " +"`, :term:`asynchronous iteration `, and :term:`asynchronous context managers `." +msgstr "" + +msgid "" +"Coroutine functions are declared using the new :keyword:`async def` syntax::" +msgstr "" + +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." +msgstr "" + +msgid "" +"PEP 492 also adds :keyword:`async for` statement for convenient iteration " +"over asynchronous iterables." +msgstr "" + +msgid "An example of a rudimentary HTTP client written using the new syntax::" +msgstr "" + +msgid "" +"Similarly to asynchronous iteration, there is a new syntax for asynchronous " +"context managers. The following script::" +msgstr "" + +msgid "will output::" +msgstr "" + +msgid "" +"Note that both :keyword:`async for` and :keyword:`async with` can only be " +"used inside a coroutine function declared with :keyword:`async def`." +msgstr "" + +msgid "" +"Coroutine functions are intended to be run inside a compatible event loop, " +"such as the :ref:`asyncio loop `." +msgstr "" + +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`." +msgstr "" + +msgid "See more details in the :ref:`async-iterators` documentation section." +msgstr "" + +msgid ":pep:`492` -- Coroutines with async and await syntax" +msgstr "" + +msgid "PEP written and implemented by Yury Selivanov." +msgstr "" + +msgid "PEP 465 - A dedicated infix operator for matrix multiplication" +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 " +"multiplication. The semantics of these methods is similar to that of " +"methods defining other infix arithmetic operators." +msgstr "" + +msgid "" +"Matrix multiplication is a notably common operation in many fields of " +"mathematics, science, engineering, and the addition of ``@`` allows writing " +"cleaner code::" +msgstr "" + +msgid "instead of::" +msgstr "" + +msgid "NumPy 1.10 has support for the new operator::" +msgstr "" + +msgid ":pep:`465` -- A dedicated infix operator for matrix multiplication" +msgstr "" + +msgid "PEP written by Nathaniel J. Smith; implemented by Benjamin Peterson." +msgstr "" + +msgid "PEP 448 - Additional Unpacking Generalizations" +msgstr "" + +msgid "" +":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 "" + +msgid "" +"Similarly, tuple, list, set, and dictionary displays allow multiple " +"unpackings (see :ref:`exprlists` and :ref:`dict`)::" +msgstr "" + +msgid ":pep:`448` -- Additional Unpacking Generalizations" +msgstr "" + +msgid "" +"PEP written by Joshua Landau; implemented by Neil Girdhar, Thomas Wouters, " +"and Joshua Landau." +msgstr "" + +msgid "PEP 461 - percent formatting support for bytes and bytearray" +msgstr "" + +msgid "" +":pep:`461` adds support for the ``%`` :ref:`interpolation operator ` to :class:`bytes` and :class:`bytearray`." +msgstr "" + +msgid "" +"While interpolation is usually thought of as a string operation, there are " +"cases where interpolation on ``bytes`` or ``bytearrays`` makes sense, and " +"the work needed to make up for this missing functionality detracts from the " +"overall readability of the code. This issue is particularly important when " +"dealing with wire format protocols, which are often a mixture of binary and " +"ASCII compatible text." +msgstr "" + +msgid "Examples::" +msgstr "Przykłady::" + +msgid "" +"Unicode is not allowed for ``%b``, but it is accepted by ``%a`` (equivalent " +"of ``repr(obj).encode('ascii', 'backslashreplace')``)::" +msgstr "" + +msgid "" +"Note that ``%s`` and ``%r`` conversion types, although supported, should " +"only be used in codebases that need compatibility with Python 2." +msgstr "" + +msgid ":pep:`461` -- Adding % formatting to bytes and bytearray" +msgstr "" + +msgid "" +"PEP written by Ethan Furman; implemented by Neil Schemenauer and Ethan " +"Furman." +msgstr "" + +msgid "PEP 484 - Type Hints" +msgstr "" + +msgid "" +"Function annotation syntax has been a Python feature since version 3.0 " +"(:pep:`3107`), however the semantics of annotations has been left undefined." +msgstr "" + +msgid "" +"Experience has shown that the majority of function annotation uses were to " +"provide type hints to function parameters and return values. It became " +"evident that it would be beneficial for Python users, if the standard " +"library included the base definitions and tools for type annotations." +msgstr "" + +msgid "" +":pep:`484` introduces a :term:`provisional module ` to " +"provide these standard definitions and tools, along with some conventions " +"for situations where annotations are not available." +msgstr "" + +msgid "" +"For example, here is a simple function whose argument and return type are " +"declared in the annotations::" +msgstr "" + +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." +msgstr "" + +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) all types." +msgstr "" + +msgid ":mod:`typing` module documentation" +msgstr "" + +msgid ":pep:`484` -- Type Hints" +msgstr "" + +msgid "" +"PEP written by Guido van Rossum, Jukka Lehtosalo, and Łukasz Langa; " +"implemented by Guido van Rossum." +msgstr "" + +msgid ":pep:`483` -- The Theory of Type Hints" +msgstr "" + +msgid "PEP written by Guido van Rossum" +msgstr "" + +msgid "" +"PEP 471 - os.scandir() function -- a better and faster directory iterator" +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." +msgstr "" + +msgid "" +"Additionally, ``scandir`` returns an iterator, as opposed to returning a " +"list of file names, which improves memory efficiency when iterating over " +"very large directories." +msgstr "" + +msgid "" +"The following example shows a simple use of :func:`os.scandir` to display " +"all the files (excluding directories) in the given *path* that don't start " +"with ``'.'``. The :meth:`entry.is_file() ` call will " +"generally not make an additional system call::" +msgstr "" + +msgid "" +":pep:`471` -- os.scandir() function -- a better and faster directory iterator" +msgstr "" + +msgid "" +"PEP written and implemented by Ben Hoyt with the help of Victor Stinner." +msgstr "" + +msgid "PEP 475: Retry system calls failing with EINTR" +msgstr "" + +msgid "" +"An :py:data:`errno.EINTR` error code is returned whenever a system call, " +"that is waiting for I/O, is interrupted by a signal. Previously, Python " +"would raise :exc:`InterruptedError` in such cases. This meant that, when " +"writing a Python application, the developer had two choices:" +msgstr "" + +msgid "Ignore the ``InterruptedError``." +msgstr "" + +msgid "" +"Handle the ``InterruptedError`` and attempt to restart the interrupted " +"system call at every call site." +msgstr "" + +msgid "" +"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 "" + +msgid "and::" +msgstr "" + +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." +msgstr "" + +msgid "" +"Below is a list of functions which are now retried when interrupted by a " +"signal:" +msgstr "" + +msgid ":func:`open` and :func:`io.open`;" +msgstr "" + +msgid "functions of the :mod:`faulthandler` module;" +msgstr "" + +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`;" +msgstr "" + +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);" +msgstr "" + +msgid "" +":mod:`select` functions: :func:`devpoll.poll() " +"`, :func:`epoll.poll() " +"`, :func:`kqueue.control() " +"`, :func:`poll.poll() " +"`, :func:`~select.select`;" +msgstr "" + +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`;" +msgstr "" + +msgid ":func:`signal.sigtimedwait` and :func:`signal.sigwaitinfo`;" +msgstr "" + +msgid ":func:`time.sleep`." +msgstr ":func:`time.sleep`." + +msgid ":pep:`475` -- Retry system calls failing with EINTR" +msgstr "" + +msgid "" +"PEP and implementation written by Charles-François Natali and Victor " +"Stinner, with the help of Antoine Pitrou (the French connection)." +msgstr "" + +msgid "PEP 479: Change StopIteration handling inside generators" +msgstr "" + +msgid "" +"The interaction of generators and :exc:`StopIteration` in Python 3.4 and " +"earlier was sometimes surprising, and could conceal obscure bugs. " +"Previously, ``StopIteration`` raised accidentally inside a generator " +"function was interpreted as the end of the iteration by the loop construct " +"driving the generator." +msgstr "" + +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." +msgstr "" + +msgid "" +"This is a backwards incompatible change, so to enable the new behavior, " +"a :term:`__future__` import is necessary::" +msgstr "" + +msgid "" +"Without a ``__future__`` import, a :exc:`PendingDeprecationWarning` will be " +"raised whenever a :exc:`StopIteration` exception is raised inside a " +"generator." +msgstr "" + +msgid ":pep:`479` -- Change StopIteration handling inside generators" +msgstr "" + +msgid "" +"PEP written by Chris Angelico and Guido van Rossum. Implemented by Chris " +"Angelico, Yury Selivanov and Nick Coghlan." +msgstr "" + +msgid "PEP 485: A function for testing approximate equality" +msgstr "" + +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 " +"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 " +"the larger absolute value::" +msgstr "" + +msgid "" +"It is also possible to compare two values using absolute tolerance, which " +"must be a non-negative value::" +msgstr "" + +msgid ":pep:`485` -- A function for testing approximate equality" +msgstr "" + +msgid "" +"PEP written by Christopher Barker; implemented by Chris Barker and Tal Einat." +msgstr "" + +msgid "PEP 486: Make the Python Launcher aware of virtual environments" +msgstr "" + +msgid "" +":pep:`486` makes the Windows launcher (see :pep:`397`) aware of an active " +"virtual environment. When the default interpreter would be used and the " +"``VIRTUAL_ENV`` environment variable is set, the interpreter in the virtual " +"environment will be used." +msgstr "" + +msgid ":pep:`486` -- Make the Python Launcher aware of virtual environments" +msgstr "" + +msgid "PEP written and implemented by Paul Moore." +msgstr "" + +msgid "PEP 488: Elimination of PYO files" +msgstr "" + +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." +msgstr "" + +msgid ":pep:`488` -- Elimination of PYO files" +msgstr "" + +msgid "PEP written and implemented by Brett Cannon." +msgstr "" + +msgid "PEP 489: Multi-phase extension module initialization" +msgstr "" + +msgid "" +":pep:`489` updates extension module initialization to take advantage of the " +"two step module loading mechanism introduced by :pep:`451` in Python 3.4." +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." +msgstr "" + +msgid ":pep:`489` -- Multi-phase extension module initialization" +msgstr "" + +msgid "" +"PEP written by Petr Viktorin, Stefan Behnel, and Nick Coghlan; implemented " +"by Petr Viktorin." +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "Some smaller changes made to the core Python language are:" +msgstr "" + +msgid "" +"Added the ``\"namereplace\"`` error handlers. The ``\"backslashreplace\"`` " +"error handlers now work with decoding and translating. (Contributed by " +"Serhiy Storchaka in :issue:`19676` and :issue:`22286`.)" +msgstr "" + +msgid "" +"The :option:`-b` option now affects comparisons of :class:`bytes` " +"with :class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`.)" +msgstr "" + +msgid "" +"New Kazakh ``kz1048`` and Tajik ``koi8_t`` :ref:`codecs `. (Contributed by Serhiy Storchaka in :issue:`22682` " +"and :issue:`22681`.)" +msgstr "" + +msgid "" +"Property docstrings are now writable. This is especially useful " +"for :func:`collections.namedtuple` docstrings. (Contributed by Berker Peksag " +"in :issue:`24064`.)" +msgstr "" + +msgid "" +"Circular imports involving relative imports are now supported. (Contributed " +"by Brett Cannon and Antoine Pitrou in :issue:`17636`.)" +msgstr "" + +msgid "New Modules" +msgstr "" + +msgid "typing" +msgstr "" + +msgid "" +"The new :mod:`typing` :term:`provisional ` module provides " +"standard definitions and tools for function type annotations. See :ref:`Type " +"Hints ` for more information." +msgstr "" + +msgid "zipapp" +msgstr "" + +msgid "" +"The new :mod:`zipapp` module (specified in :pep:`441`) provides an API and " +"command line tool for creating executable Python Zip Applications, which " +"were introduced in Python 2.6 in :issue:`1739468`, but which were not well " +"publicized, either at the time or since." +msgstr "" + +msgid "" +"With the new module, bundling your application is as simple as putting all " +"the files, including a ``__main__.py`` file, into a directory ``myapp`` and " +"running:" +msgstr "" + +msgid "" +"The module implementation has been contributed by Paul Moore " +"in :issue:`23491`." +msgstr "" + +msgid ":pep:`441` -- Improving Python ZIP Application Support" +msgstr "" + +msgid "Improved Modules" +msgstr "Ulepszone moduły" + +msgid "argparse" +msgstr "" + +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 Bethard, paul j3 and Daniel Eriksson in :issue:`14910`.)" +msgstr "" + +msgid "asyncio" +msgstr "asyncio" + +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." +msgstr "" + +msgid "Notable changes in the :mod:`asyncio` module since Python 3.4.0:" +msgstr "" + +msgid "" +"New debugging APIs: :meth:`loop.set_debug() ` " +"and :meth:`loop.get_debug() ` methods. (Contributed " +"by Victor Stinner.)" +msgstr "" + +msgid "" +"The proactor event loop now supports SSL. (Contributed by Antoine Pitrou and " +"Victor Stinner in :issue:`22560`.)" +msgstr "" + +msgid "" +"A new :meth:`loop.is_closed() ` method to check if " +"the event loop is closed. (Contributed by Victor Stinner in :issue:`21326`.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The :func:`~asyncio.async` function is deprecated in favor " +"of :func:`~asyncio.ensure_future`. (Contributed by Yury Selivanov.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"New :meth:`Queue.join() ` and :meth:`Queue.task_done() " +"` queue methods. (Contributed by Victor Stinner.)" +msgstr "" + +msgid "" +"The ``JoinableQueue`` class was removed, in favor of " +"the :class:`asyncio.Queue` class. (Contributed by Victor Stinner.)" +msgstr "" + +msgid "Updates in 3.5.1:" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"New :func:`~asyncio.run_coroutine_threadsafe` function to submit coroutines " +"to event loops from other threads. (Contributed by Vincent Michel.)" +msgstr "" + +msgid "" +"New :meth:`Transport.is_closing() ` method " +"to check if the transport is closing or closed. (Contributed by Yury " +"Selivanov.)" +msgstr "" + +msgid "" +"The :meth:`loop.create_server() ` method can now " +"accept a list of hosts. (Contributed by Yann Sionneau.)" +msgstr "" + +msgid "Updates in 3.5.2:" +msgstr "" + +msgid "" +"New :meth:`loop.create_future() ` method to " +"create Future objects. This allows alternative event loop implementations, " +"such as `uvloop `_, to provide a " +"faster :class:`asyncio.Future` implementation. (Contributed by Yury " +"Selivanov.)" +msgstr "" + +msgid "" +"New :meth:`loop.get_exception_handler() " +"` method to get the current exception " +"handler. (Contributed by Yury Selivanov.)" +msgstr "" + +msgid "" +"New :meth:`StreamReader.readuntil() ` method " +"to read data from the stream until a separator bytes sequence appears. " +"(Contributed by Mark Korenberg.)" +msgstr "" + +msgid "" +"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 "" + +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.)" +msgstr "" + +msgid "bz2" +msgstr "bz2" + +msgid "" +"The :meth:`BZ2Decompressor.decompress ` " +"method now accepts an optional *max_length* argument to limit the maximum " +"size of decompressed data. (Contributed by Nikolaus Rath in :issue:`15955`.)" +msgstr "" + +msgid "cgi" +msgstr "" + +msgid "" +"The :class:`~cgi.FieldStorage` class now supports the :term:`context " +"manager` protocol. (Contributed by Berker Peksag in :issue:`20289`.)" +msgstr "" + +msgid "cmath" +msgstr "" + +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`.)" +msgstr "" + +msgid "code" +msgstr "" + +msgid "" +"The :func:`InteractiveInterpreter.showtraceback() " +"` method now prints the full " +"chained traceback, just like the interactive interpreter. (Contributed by " +"Claudiu Popa in :issue:`17442`.)" +msgstr "" + +msgid "collections" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":meth:`OrderedDict.items() " +"`, :meth:`OrderedDict.keys() " +"`, :meth:`OrderedDict.values() " +"` views now support :func:`reversed` " +"iteration. (Contributed by Serhiy Storchaka in :issue:`19505`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Docstrings produced by :func:`~collections.namedtuple` can now be updated::" +msgstr "" + +msgid "(Contributed by Berker Peksag in :issue:`24064`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "collections.abc" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new :class:`~collections.abc.Generator` abstract base class. (Contributed " +"by Stefan Behnel in :issue:`24018`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"For earlier Python versions, a backport of the new ABCs is available in an " +"external `PyPI package `_." +msgstr "" + +msgid "compileall" +msgstr "" + +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`` " +"parameter. (Contributed by Claudiu Popa in :issue:`16104`.)" +msgstr "" + +msgid "" +"Another new option, ``-r``, allows controlling the maximum recursion level " +"for subdirectories. (Contributed by Claudiu Popa in :issue:`19628`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "concurrent.futures" +msgstr "" + +msgid "" +"The :meth:`Executor.map() ` method now " +"accepts a *chunksize* argument to allow batching of tasks to improve " +"performance when :meth:`~concurrent.futures.ProcessPoolExecutor` is used. " +"(Contributed by Dan O'Reilly in :issue:`11271`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "configparser" +msgstr "" + +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." +msgstr "" + +msgid "Example::" +msgstr "Przykład::" + +msgid "(Contributed by Łukasz Langa in :issue:`18159`.)" +msgstr "" + +msgid "contextlib" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Berker Peksag in :issue:`22389`.)" +msgstr "" + +msgid "csv" +msgstr "" + +msgid "" +"The :meth:`~csv.csvwriter.writerow` method now supports arbitrary iterables, " +"not just sequences. (Contributed by Serhiy Storchaka in :issue:`23171`.)" +msgstr "" + +msgid "curses" +msgstr "" + +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`.)" +msgstr "" + +msgid "dbm" +msgstr "" + +msgid "" +":func:`dumb.open ` always creates a new database when the " +"flag has the value ``\"n\"``. (Contributed by Claudiu Popa " +"in :issue:`18039`.)" +msgstr "" + +msgid "difflib" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`~difflib.diff_bytes` function can now compare lists of byte " +"strings. This fixes a regression from Python 2. (Contributed by Terry J. " +"Reedy and Greg Ward in :issue:`17445`.)" +msgstr "" + +msgid "distutils" +msgstr "" + +msgid "" +"Both the ``build`` and ``build_ext`` commands now accept a ``-j`` option to " +"enable parallel building of extension modules. (Contributed by Antoine " +"Pitrou in :issue:`5309`.)" +msgstr "" + +msgid "" +"The :mod:`distutils` module now supports ``xz`` compression, and can be " +"enabled by passing ``xztar`` as an argument to ``bdist --format``. " +"(Contributed by Serhiy Storchaka in :issue:`16314`.)" +msgstr "" + +msgid "doctest" +msgstr "" + +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`.)" +msgstr "" + +msgid "email" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +msgid "" +"The :class:`mime.text.MIMEText ` constructor now " +"accepts a :class:`charset.Charset ` instance. " +"(Contributed by Claude Paroz and Berker Peksag in :issue:`16324`.)" +msgstr "" + +msgid "enum" +msgstr "" + +msgid "" +"The :class:`~enum.Enum` callable has a new parameter *start* to specify the " +"initial number of enum values if only *names* are provided::" +msgstr "" + +msgid "(Contributed by Ethan Furman in :issue:`21706`.)" +msgstr "" + +msgid "faulthandler" +msgstr "" + +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`.)" +msgstr "" + +msgid "functools" +msgstr "" + +msgid "" +"Most of the :func:`~functools.lru_cache` machinery is now implemented in C, " +"making it significantly faster. (Contributed by Matt Joiner, Alexey " +"Kachayev, and Serhiy Storchaka in :issue:`14373`.)" +msgstr "" + +msgid "glob" +msgstr "" + +msgid "" +"The :func:`~glob.iglob` and :func:`~glob.glob` functions now support " +"recursive search in subdirectories, using the ``\"**\"`` pattern. " +"(Contributed by Serhiy Storchaka in :issue:`13968`.)" +msgstr "" + +msgid "gzip" +msgstr "" + +msgid "" +"The *mode* argument of the :class:`~gzip.GzipFile` constructor now accepts " +"``\"x\"`` to request exclusive creation. (Contributed by Tim Heaney " +"in :issue:`19222`.)" +msgstr "" + +msgid "heapq" +msgstr "" + +msgid "" +"Element comparison in :func:`~heapq.merge` can now be customized by passing " +"a :term:`key function` in a new optional *key* keyword argument, and a new " +"optional *reverse* keyword argument can be used to reverse element " +"comparison::" +msgstr "" + +msgid "(Contributed by Raymond Hettinger in :issue:`13742`.)" +msgstr "" + +msgid "http" +msgstr "" + +msgid "" +"A new :class:`HTTPStatus ` enum that defines a set of HTTP " +"status codes, reason phrases and long descriptions written in English. " +"(Contributed by Demian Brecht in :issue:`21793`.)" +msgstr "" + +msgid "http.client" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Martin Panter in :issue:`3566`.)" +msgstr "" + +msgid "idlelib and IDLE" +msgstr "" + +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." +msgstr "" + +msgid "imaplib" +msgstr "" + +msgid "" +"The :class:`~imaplib.IMAP4` class now supports the :term:`context manager` " +"protocol. When used in a :keyword:`with` statement, the IMAP4 ``LOGOUT`` " +"command will be called automatically at the end of the block. (Contributed " +"by Tarek Ziadé and Serhiy Storchaka in :issue:`4972`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :mod:`imaplib` module now automatically encodes non-ASCII string " +"usernames and passwords using UTF-8, as recommended by the RFCs. " +"(Contributed by Milan Oberkirch in :issue:`21800`.)" +msgstr "" + +msgid "imghdr" +msgstr "" + +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`.)" +msgstr "" + +msgid "importlib" +msgstr "" + +msgid "" +"The :class:`util.LazyLoader ` class allows for " +"lazy loading of modules in applications where startup time is important. " +"(Contributed by Brett Cannon in :issue:`17621`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The new :func:`util.module_from_spec() ` " +"function is now the preferred way to create a new module. As opposed to " +"creating a :class:`types.ModuleType` instance directly, this new function " +"will set the various import-controlled attributes based on the passed-in " +"spec object. (Contributed by Brett Cannon in :issue:`20383`.)" +msgstr "" + +msgid "inspect" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new :meth:`BoundArguments.apply_defaults() " +"` method provides a way to set " +"default values for missing arguments::" +msgstr "" + +msgid "(Contributed by Yury Selivanov in :issue:`24190`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "io" +msgstr "" + +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`.)" +msgstr "" + +msgid "ipaddress" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Peter Moody and Antoine Pitrou in :issue:`16531`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "(Contributed by Leon Weber in :issue:`20480`.)" +msgstr "" + +msgid "json" +msgstr "json" + +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`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "linecache" +msgstr "" + +msgid "" +"A new :func:`~linecache.lazycache` function can be used to capture " +"information about a non-file-based module to permit getting its lines later " +"via :func:`~linecache.getline`. This avoids doing I/O until a line is " +"actually needed, without having to carry the module globals around " +"indefinitely. (Contributed by Robert Collins in :issue:`17911`.)" +msgstr "" + +msgid "locale" +msgstr "" + +msgid "" +"A new :func:`~locale.delocalize` function can be used to convert a string " +"into a normalized number string, taking the ``LC_NUMERIC`` settings into " +"account::" +msgstr "" + +msgid "(Contributed by Cédric Krier in :issue:`13918`.)" +msgstr "" + +msgid "logging" +msgstr "" + +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 *exc_info* argument, in addition " +"to boolean values and exception tuples::" +msgstr "" + +msgid "(Contributed by Yury Selivanov in :issue:`20537`.)" +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`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "lzma" +msgstr "" + +msgid "" +"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 "" + +msgid "math" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new function :func:`~math.isclose` provides a way to test for approximate " +"equality. (Contributed by Chris Barker and Tal Einat in :issue:`24270`.)" +msgstr "" + +msgid "" +"A new :func:`~math.gcd` function has been added. The :func:`fractions.gcd` " +"function is now deprecated. (Contributed by Mark Dickinson and Serhiy " +"Storchaka in :issue:`22486`.)" +msgstr "" + +msgid "multiprocessing" +msgstr "" + +msgid "" +":func:`sharedctypes.synchronized() " +"` objects now support " +"the :term:`context manager` protocol. (Contributed by Charles-François " +"Natali in :issue:`21565`.)" +msgstr "" + +msgid "operator" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"New :func:`~operator.matmul` and :func:`~operator.imatmul` functions to " +"perform matrix multiplication. (Contributed by Benjamin Peterson " +"in :issue:`21176`.)" +msgstr "" + +msgid "os" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`~os.truncate` and :func:`~os.ftruncate` functions are now " +"supported on Windows. (Contributed by Steve Dower in :issue:`23668`.)" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Rafik Draoui and Serhiy Storchaka in :issue:`10395`.)" +msgstr "" + +msgid "pathlib" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Vajrasky Kok and Antoine Pitrou in :issue:`19775`.)" +msgstr "" + +msgid "" +"The :meth:`Path.mkdir() ` method now accepts a new " +"optional *exist_ok* argument to match ``mkdir -p`` and :func:`os.makedirs` " +"functionality. (Contributed by Berker Peksag in :issue:`21539`.)" +msgstr "" + +msgid "" +"There is a new :meth:`Path.expanduser() ` method to " +"expand ``~`` and ``~user`` prefixes. (Contributed by Serhiy Storchaka and " +"Claudiu Popa in :issue:`19776`.)" +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`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The following code snippet will create or rewrite existing file ``~/" +"spam42``::" +msgstr "" + +msgid "(Contributed by Christopher Welborn in :issue:`20218`.)" +msgstr "" + +msgid "pickle" +msgstr "" + +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`.)" +msgstr "" + +msgid "poplib" +msgstr "" + +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`.)" +msgstr "" + +msgid "re" +msgstr "" + +msgid "" +"References and conditional references to groups with fixed length are now " +"allowed in lookbehind assertions::" +msgstr "" + +msgid "(Contributed by Serhiy Storchaka in :issue:`9179`.)" +msgstr "" + +msgid "" +"The number of capturing groups in regular expressions is no longer limited " +"to 100. (Contributed by Serhiy Storchaka in :issue:`22437`.)" +msgstr "" + +msgid "" +"The :func:`~re.sub` and :func:`~re.subn` functions now replace unmatched " +"groups with empty strings instead of raising an exception. (Contributed by " +"Serhiy Storchaka in :issue:`1519638`.)" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Serhiy Storchaka in :issue:`22578`.)" +msgstr "" + +msgid "readline" +msgstr "" + +msgid "" +"A new :func:`~readline.append_history_file` function can be used to append " +"the specified number of trailing elements in history to the given file. " +"(Contributed by Bruno Cauet in :issue:`22940`.)" +msgstr "" + +msgid "selectors" +msgstr "" + +msgid "" +"The new :class:`~selectors.DevpollSelector` supports efficient ``/dev/poll`` " +"polling on Solaris. (Contributed by Giampaolo Rodola' in :issue:`18931`.)" +msgstr "" + +msgid "shutil" +msgstr "" + +msgid "" +"The :func:`~shutil.move` function now accepts a *copy_function* argument, " +"allowing, for example, the :func:`~shutil.copy` function to be used instead " +"of the default :func:`~shutil.copy2` if there is a need to ignore file " +"metadata when moving. (Contributed by Claudiu Popa in :issue:`19840`.)" +msgstr "" + +msgid "" +"The :func:`~shutil.make_archive` function now supports the *xztar* format. " +"(Contributed by Serhiy Storchaka in :issue:`5411`.)" +msgstr "" + +msgid "signal" +msgstr "" + +msgid "" +"On Windows, the :func:`~signal.set_wakeup_fd` function now also supports " +"socket handles. (Contributed by Victor Stinner in :issue:`22018`.)" +msgstr "" + +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 " +"Rodola' in :issue:`21076`.)" +msgstr "" + +msgid "smtpd" +msgstr "" + +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`.)" +msgstr "" + +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 the *mail_options* keyword. (Contributed by Milan Oberkirch and R. " +"David Murray in :issue:`21795`.)" +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`.)" +msgstr "" + +msgid "" +"It is now possible to provide, directly or via name resolution, IPv6 " +"addresses in the :class:`~smtpd.SMTPServer` constructor, and have it " +"successfully connect. (Contributed by Milan Oberkirch in :issue:`14758`.)" +msgstr "" + +msgid "smtplib" +msgstr "" + +msgid "" +"A new :meth:`SMTP.auth() ` method provides a convenient " +"way to implement custom authentication mechanisms. (Contributed by Milan " +"Oberkirch in :issue:`15014`.)" +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "sndhdr" +msgstr "" + +msgid "" +"The :func:`~sndhdr.what` and :func:`~sndhdr.whathdr` functions now return " +"a :func:`~collections.namedtuple`. (Contributed by Claudiu Popa " +"in :issue:`18615`.)" +msgstr "" + +msgid "socket" +msgstr "" + +msgid "" +"Functions with timeouts now use a monotonic clock, instead of a system " +"clock. (Contributed by Victor Stinner in :issue:`22043`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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 "" + +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`.)" +msgstr "" + +msgid "ssl" +msgstr "" + +msgid "Memory BIO Support" +msgstr "" + +msgid "(Contributed by Geert Jansen in :issue:`21965`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The memory BIO SSL support is primarily intended to be used in frameworks " +"implementing asynchronous I/O for which :class:`~ssl.SSLSocket`'s readiness " +"model (\"select/poll\") is inefficient." +msgstr "" + +msgid "" +"A new :meth:`SSLContext.wrap_bio() ` method can be " +"used to create a new ``SSLObject`` instance." +msgstr "" + +msgid "Application-Layer Protocol Negotiation Support" +msgstr "" + +msgid "(Contributed by Benjamin Peterson in :issue:`20188`.)" +msgstr "" + +msgid "" +"Where OpenSSL support is present, the :mod:`ssl` module now implements the " +"*Application-Layer Protocol Negotiation* TLS extension as described " +"in :rfc:`7301`." +msgstr "" + +msgid "" +"The new :meth:`SSLContext.set_alpn_protocols() " +"` can be used to specify which protocols " +"a socket should advertise during the TLS handshake." +msgstr "" + +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." +msgstr "" + +msgid "Other Changes" +msgstr "" + +msgid "" +"There is a new :meth:`SSLSocket.version() ` method to " +"query the actual protocol version in use. (Contributed by Antoine Pitrou " +"in :issue:`20421`.)" +msgstr "" + +msgid "" +"The :class:`~ssl.SSLSocket` class now implements " +"a :meth:`SSLSocket.sendfile() ` method. (Contributed " +"by Giampaolo Rodola' in :issue:`17552`.)" +msgstr "" + +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 " +"return ``0``. (Contributed by Nikolaus Rath in :issue:`20951`.)" +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`.)" +msgstr "" + +msgid "" +"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 "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`~ssl.match_hostname` function now supports matching of IP " +"addresses. (Contributed by Antoine Pitrou in :issue:`23239`.)" +msgstr "" + +msgid "sqlite3" +msgstr "" + +msgid "" +"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 "" + +msgid "subprocess" +msgstr "" + +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. " +"(Contributed by Thomas Kluyver in :issue:`23342`.)" +msgstr "" + +msgid "sys" +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "sysconfig" +msgstr "" + +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`.)" +msgstr "" + +msgid "tarfile" +msgstr "" + +msgid "" +"The *mode* argument of the :func:`~tarfile.open` function now accepts " +"``\"x\"`` to request exclusive creation. (Contributed by Berker Peksag " +"in :issue:`21717`.)" +msgstr "" + +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 " +"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`.)" +msgstr "" + +msgid "" +"The :meth:`TarFile.list() ` now accepts an optional " +"*members* keyword argument that can be set to a subset of the list returned " +"by :meth:`TarFile.getmembers() `. (Contributed " +"by Serhiy Storchaka in :issue:`21549`.)" +msgstr "" + +msgid "threading" +msgstr "" + +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`.)" +msgstr "" + +msgid "time" +msgstr "" + +msgid "" +"The :func:`~time.monotonic` function is now always available. (Contributed " +"by Victor Stinner in :issue:`22043`.)" +msgstr "" + +msgid "timeit" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`~timeit.timeit` function has a new *globals* parameter for " +"specifying the namespace in which the code will be running. (Contributed by " +"Ben Roberts in :issue:`2527`.)" +msgstr "" + +msgid "tkinter" +msgstr "" + +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` " +"module which makes no permanent changes to environment variables. " +"(Contributed by Zachary Ware in :issue:`20035`.)" +msgstr "" + +msgid "traceback" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"New lightweight " +"classes: :class:`~traceback.TracebackException`, :class:`~traceback.StackSummary`, " +"and :class:`~traceback.FrameSummary`. (Contributed by Robert Collins " +"in :issue:`17911`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "types" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "unicodedata" +msgstr "" + +msgid "" +"The :mod:`unicodedata` module now uses data from `Unicode 8.0.0 `_." +msgstr "" + +msgid "unittest" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new command line option ``--locals`` to show local variables in " +"tracebacks. (Contributed by Robert Collins in :issue:`22936`.)" +msgstr "" + +msgid "unittest.mock" +msgstr "" + +msgid "The :class:`~unittest.mock.Mock` class has the following improvements:" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new :meth:`Mock.assert_not_called() " +"` method to check if the mock object " +"was called. (Contributed by Kushal Das in :issue:`21262`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "urllib" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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 "" + +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`.)" +msgstr "" + +msgid "wsgiref" +msgstr "" + +msgid "" +"The *headers* argument of the :class:`headers.Headers " +"` class constructor is now optional. (Contributed " +"by Pablo Torres Navarrete and SilentGhost in :issue:`5800`.)" +msgstr "" + +msgid "xmlrpc" +msgstr "" + +msgid "" +"The :class:`client.ServerProxy ` class now " +"supports the :term:`context manager` protocol. (Contributed by Claudiu Popa " +"in :issue:`20627`.)" +msgstr "" + +msgid "" +"The :class:`client.ServerProxy ` constructor now " +"accepts an optional :class:`ssl.SSLContext` instance. (Contributed by Alex " +"Gaynor in :issue:`22960`.)" +msgstr "" + +msgid "xml.sax" +msgstr "" + +msgid "" +"SAX parsers now support a character stream of " +"the :class:`xmlreader.InputSource ` object. " +"(Contributed by Serhiy Storchaka in :issue:`2175`.)" +msgstr "" + +msgid "" +":func:`~xml.sax.parseString` now accepts a :class:`str` instance. " +"(Contributed by Serhiy Storchaka in :issue:`10590`.)" +msgstr "" + +msgid "zipfile" +msgstr "" + +msgid "" +"ZIP output can now be written to unseekable streams. (Contributed by Serhiy " +"Storchaka in :issue:`23252`.)" +msgstr "" + +msgid "" +"The *mode* argument of :meth:`ZipFile.open() ` method " +"now accepts ``\"x\"`` to request exclusive creation. (Contributed by Serhiy " +"Storchaka in :issue:`21717`.)" +msgstr "" + +msgid "Other module-level changes" +msgstr "" + +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`.)" +msgstr "" + +msgid "Optimizations" +msgstr "" + +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. " +"(Contributed by Ben Hoyt with help from Victor Stinner in :issue:`23605`.)" +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Pickling of :mod:`ipaddress` objects was optimized to produce significantly " +"smaller output. (Contributed by Serhiy Storchaka in :issue:`23133`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The UTF-32 encoder is now 3 to 7 times faster. (Contributed by Serhiy " +"Storchaka in :issue:`15027`.)" +msgstr "" + +msgid "" +"Regular expressions are now parsed up to 10% faster. (Contributed by Serhiy " +"Storchaka in :issue:`19380`.)" +msgstr "" + +msgid "" +"The :func:`json.dumps` function was optimized to run with " +"``ensure_ascii=False`` as fast as with ``ensure_ascii=True``. (Contributed " +"by Naoki Inada in :issue:`23206`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Method caching was slightly improved, yielding up to 5% performance " +"improvement in some benchmarks. (Contributed by Antoine Pitrou " +"in :issue:`22847`.)" +msgstr "" + +msgid "" +"Objects from the :mod:`random` module now use 50% less memory on 64-bit " +"builds. (Contributed by Serhiy Storchaka in :issue:`23488`.)" +msgstr "" + +msgid "" +"The :func:`property` getter calls are up to 25% faster. (Contributed by Joe " +"Jevnik in :issue:`23910`.)" +msgstr "" + +msgid "" +"Instantiation of :class:`fractions.Fraction` is now up to 30% faster. " +"(Contributed by Stefan Behnel in :issue:`22464`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "Build and C API Changes" +msgstr "" + +msgid "New ``calloc`` functions were added:" +msgstr "" + +msgid ":c:func:`PyMem_RawCalloc`," +msgstr ":c:func:`PyMem_RawCalloc`," + +msgid ":c:func:`PyMem_Calloc`," +msgstr ":c:func:`PyMem_Calloc`," + +msgid ":c:func:`PyObject_Calloc`." +msgstr ":c:func:`PyObject_Calloc`." + +msgid "(Contributed by Victor Stinner in :issue:`21233`.)" +msgstr "" + +msgid "New encoding/decoding helper functions:" +msgstr "" + +msgid ":c:func:`Py_DecodeLocale` (replaced ``_Py_char2wchar()``)," +msgstr "" + +msgid ":c:func:`Py_EncodeLocale` (replaced ``_Py_wchar2char()``)." +msgstr "" + +msgid "(Contributed by Victor Stinner in :issue:`18395`.)" +msgstr "" + +msgid "" +"A new :c:func:`PyCodec_NameReplaceErrors` function to replace the unicode " +"encode error with ``\\N{...}`` escapes. (Contributed by Serhiy Storchaka " +"in :issue:`19676`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A new :c:data:`PyExc_RecursionError` exception. (Contributed by Georg Brandl " +"in :issue:`19235`.)" +msgstr "" + +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`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"The :c:member:`PyTypeObject.tp_finalize` slot is now part of the stable ABI." +msgstr "" + +msgid "" +"Windows builds now require Microsoft Visual C++ 14.0, which is available as " +"part of `Visual Studio 2015 `_." +msgstr "" + +msgid "" +"Extension modules now include a platform information tag in their filename " +"on some platforms (the tag is optional, and CPython will import extensions " +"without it, although if the tag is present and mismatched, the extension " +"won't be loaded):" +msgstr "" + +msgid "" +"On Linux, extension module filenames end with ``.cpython-m-" +"-.pyd``:" +msgstr "" + +msgid "" +"```` is the major number of the Python version; for Python 3.5 this " +"is ``3``." +msgstr "" + +msgid "" +"```` is the minor number of the Python version; for Python 3.5 this " +"is ``5``." +msgstr "" + +msgid "" +"```` is the hardware architecture the extension module was " +"built to run on. It's most commonly either ``i386`` for 32-bit Intel " +"platforms or ``x86_64`` for 64-bit Intel (and AMD) platforms." +msgstr "" + +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 " +"```` will be ``x86_64``)." +msgstr "" + +msgid "" +"On Windows, extension module filenames end with ``.cp-" +".pyd``:" +msgstr "" + +msgid "" +"```` is the platform the extension module was built for, either " +"``win32`` for Win32, ``win_amd64`` for Win64, ``win_ia64`` for Windows " +"Itanium 64, and ``win_arm`` for Windows on ARM." +msgstr "" + +msgid "" +"If built in debug mode, ```` will be ``_d``, otherwise it will be " +"blank." +msgstr "" + +msgid "" +"On OS X platforms, extension module filenames now end with ``-darwin.so``." +msgstr "" + +msgid "" +"On all other platforms, extension module filenames are the same as they were " +"with Python 3.4." +msgstr "" + +msgid "Deprecated" +msgstr "" + +msgid "New Keywords" +msgstr "" + +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." +msgstr "" + +msgid "Deprecated Python Behavior" +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 " +"handling inside generators ` for details." +msgstr "" + +msgid "Unsupported Operating Systems" +msgstr "" + +msgid "" +"Windows XP is no longer supported by Microsoft, thus, per :PEP:`11`, CPython " +"3.5 is no longer officially supported on this OS." +msgstr "" + +msgid "Deprecated Python modules, functions and methods" +msgstr "" + +msgid "" +"The :mod:`formatter` module has now graduated to full deprecation and is " +"still slated for removal in Python 3.6." +msgstr "" + +msgid "" +"The :func:`asyncio.async` function is deprecated in favor " +"of :func:`~asyncio.ensure_future`." +msgstr "" + +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* " +"keyword with an appropriate value to avoid the deprecation warning." +msgstr "" + +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." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`platform.dist` and :func:`platform.linux_distribution` functions " +"are now deprecated. Linux distributions use too many different ways of " +"describing themselves, so the functionality is left to a package. " +"(Contributed by Vajrasky Kok and Berker Peksag in :issue:`1322`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`inspect.getargspec` function is deprecated and scheduled to be " +"removed in Python 3.6. (See :issue:`20438` for details.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":func:`~inspect.getargvalues` and :func:`~inspect.formatargvalues` functions " +"were inadvertently marked as deprecated with the release of Python 3.5.0." +msgstr "" + +msgid "" +"Use of :const:`re.LOCALE` flag with str patterns or :const:`re.ASCII` is now " +"deprecated. (Contributed by Serhiy Storchaka in :issue:`22407`.)" +msgstr "" + +msgid "" +"Use of unrecognized special sequences consisting of ``'\\'`` and an ASCII " +"letter in regular expression patterns and replacement patterns now raises a " +"deprecation warning and will be forbidden in Python 3.6. (Contributed by " +"Serhiy Storchaka in :issue:`23622`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "Removed" +msgstr "" + +msgid "API and Feature Removals" +msgstr "" + +msgid "" +"The following obsolete and previously deprecated APIs and features have been " +"removed:" +msgstr "" + +msgid "" +"The ``__version__`` attribute has been dropped from the email package. The " +"email code hasn't been shipped separately from the stdlib for a long time, " +"and the ``__version__`` string was not updated in the last few releases." +msgstr "" + +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`.)" +msgstr "" + +msgid "The concept of ``.pyo`` files has been removed." +msgstr "" + +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`.)" +msgstr "" + +msgid "Porting to Python 3.5" +msgstr "" + +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code." +msgstr "" + +msgid "Changes in Python behavior" +msgstr "" + +msgid "" +"Due to an oversight, earlier Python versions erroneously accepted the " +"following syntax::" +msgstr "" + +msgid "" +"Python 3.5 now correctly raises a :exc:`SyntaxError`, as generator " +"expressions must be put in parentheses if not a sole argument to a function." +msgstr "" + +msgid "Changes in the Python API" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`)." +msgstr "" + +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 " +"in :mod:`http.client` and :mod:`http.server` remain available for backwards " +"compatibility. (Contributed by Demian Brecht in :issue:`21793`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"The :mod:`socket` module now exports the :data:`~socket.CAN_RAW_FD_FRAMES` " +"constant on linux 3.6 and greater." +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`.)" +msgstr "" + +msgid "" +"The ``pygettext.py`` Tool now uses the standard +NNNN format for timezones " +"in the POT-Creation-Date header." +msgstr "" + +msgid "" +"The :mod:`smtplib` module now uses :data:`sys.stderr` instead of the " +"previous module-level :data:`stderr` variable for debug output. If your " +"(test) program depends on patching the module-level variable to capture the " +"debug output, you will need to update it to capture sys.stderr instead." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`inspect.getdoc` function now returns documentation strings " +"inherited from base classes. Documentation strings no longer need to be " +"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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "Changes in the C API" +msgstr "" + +msgid "" +"The undocumented :c:member:`~PyMemoryViewObject.format` member of the (non-" +"public) :c:type:`PyMemoryViewObject` structure has been removed. All " +"extensions relying on the relevant parts in ``memoryobject.h`` must be " +"rebuilt." +msgstr "" + +msgid "" +"The :c:type:`PyMemAllocator` structure was renamed " +"to :c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added." +msgstr "" + +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`.)" +msgstr "" + +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 " +"future. (Contributed by Serhiy Storchaka in :issue:`20204`.)" +msgstr "" + +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." +msgstr "" + +msgid "Notable changes in Python 3.5.4" +msgstr "" + +msgid "New ``make regen-all`` build target" +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." +msgstr "" + +msgid "" +"Instead, a new ``make regen-all`` command has been added to force " +"regeneration of these files when desired (e.g. after an initial version of " +"Python has already been built based on the pregenerated versions)." +msgstr "" + +msgid "" +"More selective regeneration targets are also defined - " +"see :source:`Makefile.pre.in` for details." +msgstr "" + +msgid "(Contributed by Victor Stinner in :issue:`23404`.)" +msgstr "" + +msgid "Removal of ``make touch`` build target" +msgstr "" + +msgid "" +"The ``make touch`` build target previously used to request implicit " +"regeneration of generated files by updating their modification times has " +"been removed." +msgstr "" + +msgid "It has been replaced by the new ``make regen-all`` target." +msgstr "" diff --git a/whatsnew/3.6.po b/whatsnew/3.6.po new file mode 100644 index 0000000000..be47576e9b --- /dev/null +++ b/whatsnew/3.6.po @@ -0,0 +1,2743 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2026, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# python-doc bot, 2025 +# Maciej Olko, 2026 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgid "What's New In Python 3.6" +msgstr "" + +msgid "Editors" +msgstr "Redaktorzy" + +msgid "Elvis Pranskevichus , Yury Selivanov " +msgstr "" + +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." +msgstr "" + +msgid ":pep:`494` - Python 3.6 Release Schedule" +msgstr "" + +msgid "Summary -- Release highlights" +msgstr "Podsumowanie – najważniejsze nowości" + +msgid "New syntax features:" +msgstr "Nowe cechy składni:" + +msgid ":ref:`PEP 498 `, formatted string literals." +msgstr "" + +msgid ":ref:`PEP 515 `, underscores in numeric literals." +msgstr "" + +msgid ":ref:`PEP 526 `, syntax for variable annotations." +msgstr "" + +msgid ":ref:`PEP 525 `, asynchronous generators." +msgstr "" + +msgid ":ref:`PEP 530 `: asynchronous comprehensions." +msgstr "" + +msgid "New library modules:" +msgstr "Nowe moduły biblioteki:" + +msgid "" +":mod:`secrets`: :ref:`PEP 506 -- Adding A Secrets Module To The Standard " +"Library `." +msgstr "" + +msgid "CPython implementation improvements:" +msgstr "" + +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." +msgstr "" + +msgid "" +"Customization of class creation has been simplified with the :ref:`new " +"protocol `." +msgstr "" + +msgid "" +"The class attribute definition order is :ref:`now preserved `." +msgstr "" + +msgid "" +"The order of elements in ``**kwargs`` now :ref:`corresponds to the order " +"` in which keyword arguments were passed to the function." +msgstr "" + +msgid "" +"DTrace and SystemTap :ref:`probing support ` has been " +"added." +msgstr "" + +msgid "" +"The new :ref:`PYTHONMALLOC ` environment variable " +"can now be used to debug the interpreter memory allocation and access errors." +msgstr "" + +msgid "Significant improvements in the standard library:" +msgstr "" + +msgid "" +"The :mod:`asyncio` module has received new features, significant usability " +"and performance improvements, and a fair amount of bug fixes. Starting with " +"Python 3.6 the ``asyncio`` module is no longer provisional and its API is " +"considered stable." +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." +msgstr "" + +msgid "" +"The :mod:`datetime` module has gained support for :ref:`Local Time " +"Disambiguation `." +msgstr "" + +msgid "" +"The :mod:`typing` module received a number of :ref:`improvements `." +msgstr "" + +msgid "" +"The :mod:`tracemalloc` module has been significantly reworked and is now " +"used to provide better output for :exc:`ResourceWarning` as well as provide " +"better diagnostics for memory allocation errors. See the :ref:`PYTHONMALLOC " +"section ` for more information." +msgstr "" + +msgid "Security improvements:" +msgstr "" + +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." +msgstr "" + +msgid "" +"On Linux, :func:`os.urandom` now blocks until the system urandom entropy " +"pool is initialized to increase the security. See the :pep:`524` for the " +"rationale." +msgstr "" + +msgid "The :mod:`hashlib` and :mod:`ssl` modules now support OpenSSL 1.1.0." +msgstr "" + +msgid "" +"The default settings and feature set of the :mod:`ssl` module have been " +"improved." +msgstr "" + +msgid "" +"The :mod:`hashlib` module received support for the BLAKE2, SHA-3 and SHAKE " +"hash algorithms and the :func:`~hashlib.scrypt` key derivation function." +msgstr "" + +msgid "Windows improvements:" +msgstr "" + +msgid "" +":ref:`PEP 528 ` and :ref:`PEP 529 `, " +"Windows filesystem and console encoding changed to UTF-8." +msgstr "" + +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 " +"arguments or a config file). Handling of shebang lines remains unchanged - " +"\"python\" refers to Python 2 in that case." +msgstr "" + +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." +msgstr "" + +msgid "" +"A ``._pth`` file can be added to force isolated mode and fully specify all " +"search paths to avoid registry and environment lookup. See :ref:`the " +"documentation ` for more information." +msgstr "" + +msgid "" +"A ``python36.zip`` file now works as a landmark to " +"infer :envvar:`PYTHONHOME`. See :ref:`the documentation ` " +"for more information." +msgstr "" + +msgid "New Features" +msgstr "Nowe funkcjonalności" + +msgid "PEP 498: Formatted string literals" +msgstr "" + +msgid "" +":pep:`498` introduces a new kind of string literals: *f-strings*, " +"or :ref:`formatted string literals `." +msgstr "" + +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::" +msgstr "" + +msgid ":pep:`498` -- Literal String Interpolation." +msgstr "" + +msgid "PEP written and implemented by Eric V. Smith." +msgstr "" + +msgid ":ref:`Feature documentation `." +msgstr "" + +msgid "PEP 526: Syntax for variable annotations" +msgstr "" + +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::" +msgstr "" + +msgid "" +"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 "" + +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 " +"metadata for third party tools and libraries via the abstract syntax tree " +"and the ``__annotations__`` attribute." +msgstr "" + +msgid ":pep:`526` -- Syntax for variable annotations." +msgstr "" + +msgid "" +"PEP written by Ryan Gonzalez, Philip House, Ivan Levkivskyi, Lisa Roach, and " +"Guido van Rossum. Implemented by Ivan Levkivskyi." +msgstr "" + +msgid "" +"Tools that use or will use the new syntax: `mypy `_, `pytype `_, PyCharm, etc." +msgstr "" + +msgid "PEP 515: Underscores in Numeric Literals" +msgstr "" + +msgid "" +":pep:`515` adds the ability to use underscores in numeric literals for " +"improved readability. For example::" +msgstr "" + +msgid "" +"Single underscores are allowed between digits and after any base specifier. " +"Leading, trailing, or multiple underscores in a row are not allowed." +msgstr "" + +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::" +msgstr "" + +msgid ":pep:`515` -- Underscores in Numeric Literals" +msgstr "" + +msgid "PEP written by Georg Brandl and Serhiy Storchaka." +msgstr "" + +msgid "PEP 525: Asynchronous Generators" +msgstr "" + +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, " +"making it possible to define *asynchronous generators*::" +msgstr "" + +msgid "The new syntax allows for faster and more concise code." +msgstr "" + +msgid ":pep:`525` -- Asynchronous Generators" +msgstr "" + +msgid "PEP written and implemented by Yury Selivanov." +msgstr "" + +msgid "PEP 530: Asynchronous Comprehensions" +msgstr "" + +msgid "" +":pep:`530` adds support for using ``async for`` in list, set, dict " +"comprehensions and generator expressions::" +msgstr "" + +msgid "" +"Additionally, ``await`` expressions are supported in all kinds of " +"comprehensions::" +msgstr "" + +msgid ":pep:`530` -- Asynchronous Comprehensions" +msgstr "" + +msgid "PEP 487: Simpler customization of class creation" +msgstr "" + +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 " +"whenever a new subclass is created::" +msgstr "" + +msgid "" +"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 "" + +msgid ":pep:`487` -- Simpler customization of class creation" +msgstr "" + +msgid "PEP written and implemented by Martin Teichmann." +msgstr "" + +msgid ":ref:`Feature documentation `" +msgstr "" + +msgid "PEP 487: Descriptor Protocol Enhancements" +msgstr "" + +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, 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 in the owner class::" +msgstr "" + +msgid ":ref:`Feature documentation `" +msgstr "" + +msgid "PEP 519: Adding a file system path protocol" +msgstr "" + +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 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." +msgstr "" + +msgid "" +"To fix this situation, a new interface represented by :class:`os.PathLike` " +"has been defined. By implementing the :meth:`~os.PathLike.__fspath__` " +"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. " +"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." +msgstr "" + +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`." +msgstr "" + +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)." +msgstr "" + +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::" +msgstr "" + +msgid "" +"(Implemented by Brett Cannon, Ethan Furman, Dusty Phillips, and Jelle " +"Zijlstra.)" +msgstr "" + +msgid ":pep:`519` -- Adding a file system path protocol" +msgstr "" + +msgid "PEP written by Brett Cannon and Koos Zevenhoven." +msgstr "" + +msgid "PEP 495: Local Time Disambiguation" +msgstr "" + +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 " +"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 "" + +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::" +msgstr "" + +msgid "" +"The values of the :attr:`fold ` attribute have the " +"value ``0`` for all instances except those that represent the second " +"(chronologically) moment in time in an ambiguous case." +msgstr "" + +msgid ":pep:`495` -- Local Time Disambiguation" +msgstr "" + +msgid "" +"PEP written by Alexander Belopolsky and Tim Peters, implementation by " +"Alexander Belopolsky." +msgstr "" + +msgid "PEP 529: Change Windows filesystem encoding to UTF-8" +msgstr "" + +msgid "" +"Representing filesystem paths is best performed with str (Unicode) rather " +"than bytes. However, there are some situations where using bytes is " +"sufficient and correct." +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'``." +msgstr "" + +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`." +msgstr "" + +msgid "" +"See :pep:`529` for more information and discussion of code modifications " +"that may be required." +msgstr "" + +msgid "PEP 528: Change Windows console encoding to UTF-8" +msgstr "" + +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." +msgstr "" + +msgid "" +"This change only applies when using an interactive console, and not when " +"redirecting files or pipes. To revert to the previous behaviour for " +"interactive console use, set :envvar:`PYTHONLEGACYWINDOWSSTDIO`." +msgstr "" + +msgid ":pep:`528` -- Change Windows console encoding to UTF-8" +msgstr "" + +msgid "PEP written and implemented by Steve Dower." +msgstr "" + +msgid "PEP 520: Preserving Class Attribute Definition Order" +msgstr "" + +msgid "" +"Attributes in a class definition body have a natural ordering: the same " +"order in which the names appear in the source. This order is now preserved " +"in the new class's :attr:`~object.__dict__` attribute." +msgstr "" + +msgid "" +"Also, the effective default class *execution* namespace (returned " +"from :ref:`type.__prepare__() `) is now an insertion-order-" +"preserving mapping." +msgstr "" + +msgid ":pep:`520` -- Preserving Class Attribute Definition Order" +msgstr "" + +msgid "PEP written and implemented by Eric Snow." +msgstr "" + +msgid "PEP 468: Preserving Keyword Argument Order" +msgstr "" + +msgid "" +"``**kwargs`` in a function signature is now guaranteed to be an insertion-" +"order-preserving mapping." +msgstr "" + +msgid ":pep:`468` -- Preserving Keyword Argument Order" +msgstr "" + +msgid "New :ref:`dict ` implementation" +msgstr "" + +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." +msgstr "" + +msgid "" +"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)." +msgstr "" + +msgid "" +"(Contributed by INADA Naoki in :issue:`27350`. Idea `originally suggested by " +"Raymond Hettinger `_.)" +msgstr "" + +msgid "PEP 523: Adding a frame evaluation API to CPython" +msgstr "" + +msgid "" +"While Python provides extensive support to customize how code executes, one " +"place it has not done so is in the evaluation of frame objects. If you " +"wanted some way to intercept frame evaluation in Python there really wasn't " +"any way without directly manipulating function pointers for defined " +"functions." +msgstr "" + +msgid "" +":pep:`523` changes this by providing an API to make frame evaluation " +"pluggable at the C level. This will allow for tools such as debuggers and " +"JITs to intercept frame evaluation before the execution of Python code " +"begins. This enables the use of alternative evaluation implementations for " +"Python code, tracking frame evaluation, etc." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`523` -- Adding a frame evaluation API to CPython" +msgstr "" + +msgid "PEP written by Brett Cannon and Dino Viehland." +msgstr "" + +msgid "PYTHONMALLOC environment variable" +msgstr "" + +msgid "" +"The new :envvar:`PYTHONMALLOC` environment variable allows setting the " +"Python memory allocators and installing debug hooks." +msgstr "" + +msgid "" +"It is now possible to install debug hooks on Python memory allocators on " +"Python compiled in release mode using ``PYTHONMALLOC=debug``. Effects of " +"debug hooks:" +msgstr "" + +msgid "Newly allocated memory is filled with the byte ``0xCB``" +msgstr "" + +msgid "Freed memory is filled with the byte ``0xDB``" +msgstr "" + +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`." +msgstr "" + +msgid "Detect writes before the start of a buffer (buffer underflows)" +msgstr "" + +msgid "Detect writes after the end of a buffer (buffer overflows)" +msgstr "" + +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." +msgstr "" + +msgid "Checking if the GIL is held is also a new feature of Python 3.6." +msgstr "" + +msgid "" +"See the :c:func:`PyMem_SetupDebugHooks` function for debug hooks on Python " +"memory allocators." +msgstr "" + +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 " +"``PYTHONMALLOC=malloc``. This is helpful when using external memory " +"debuggers like Valgrind on a Python compiled in release mode." +msgstr "" + +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." +msgstr "" + +msgid "" +"Example of fatal error on buffer overflow using ``python3.6 -X " +"tracemalloc=5`` (store 5 frames in traces)::" +msgstr "" + +msgid "(Contributed by Victor Stinner in :issue:`26516` and :issue:`26564`.)" +msgstr "" + +msgid "DTrace and SystemTap probing support" +msgstr "" + +msgid "" +"Python can now be built ``--with-dtrace`` which enables static markers for " +"the following events in the interpreter:" +msgstr "" + +msgid "function call/return" +msgstr "" + +msgid "garbage collection started/finished" +msgstr "" + +msgid "line of code executed." +msgstr "" + +msgid "" +"This can be used to instrument running interpreters in production, without " +"the need to recompile specific :ref:`debug builds ` or " +"providing application-specific profiling/debugging code." +msgstr "" + +msgid "More details in :ref:`instrumentation`." +msgstr "" + +msgid "" +"The current implementation is tested on Linux and macOS. Additional markers " +"may be added in the future." +msgstr "" + +msgid "" +"(Contributed by Łukasz Langa in :issue:`21590`, based on patches by Jesús " +"Cea Avión, David Malcolm, and Nikhil Benesch.)" +msgstr "" + +msgid "Other Language Changes" +msgstr "" + +msgid "Some smaller changes made to the core Python language are:" +msgstr "" + +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`." +msgstr "" + +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. " +"(Contributed by Andrew Barnert and Ivan Levkivskyi in :issue:`25958`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"Class methods relying on zero-argument ``super()`` will now work correctly " +"when called from metaclass methods during class creation. (Contributed by " +"Martin Teichmann in :issue:`23722`.)" +msgstr "" + +msgid "New Modules" +msgstr "" + +msgid "secrets" +msgstr "" + +msgid "" +"The main purpose of the new :mod:`secrets` module is to provide an obvious " +"way to reliably generate cryptographically strong pseudo-random values " +"suitable for managing secrets, such as account authentication, tokens, and " +"similar." +msgstr "" + +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." +msgstr "" + +msgid ":pep:`506` -- Adding A Secrets Module To The Standard Library" +msgstr "" + +msgid "PEP written and implemented by Steven D'Aprano." +msgstr "" + +msgid "Improved Modules" +msgstr "Ulepszone moduły" + +msgid "array" +msgstr "" + +msgid "" +"Exhausted iterators of :class:`array.array` will now stay exhausted even if " +"the iterated array is extended. This is consistent with the behavior of " +"other mutable sequences." +msgstr "" + +msgid "Contributed by Serhiy Storchaka in :issue:`26492`." +msgstr "" + +msgid "ast" +msgstr "" + +msgid "" +"The new :class:`ast.Constant` AST node has been added. It can be used by " +"external AST optimizers for the purposes of constant folding." +msgstr "" + +msgid "Contributed by Victor Stinner in :issue:`26146`." +msgstr "" + +msgid "asyncio" +msgstr "asyncio" + +msgid "" +"Starting with Python 3.6 the ``asyncio`` module is no longer provisional and " +"its API is considered stable." +msgstr "" + +msgid "" +"Notable changes in the :mod:`asyncio` module since Python 3.5.0 (all " +"backported to 3.5.x due to the provisional status):" +msgstr "" + +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`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"New :func:`~asyncio.run_coroutine_threadsafe` function to submit coroutines " +"to event loops from other threads. (Contributed by Vincent Michel.)" +msgstr "" + +msgid "" +"New :meth:`Transport.is_closing() ` method " +"to check if the transport is closing or closed. (Contributed by Yury " +"Selivanov.)" +msgstr "" + +msgid "" +"The :meth:`loop.create_server() ` method can now " +"accept a list of hosts. (Contributed by Yann Sionneau.)" +msgstr "" + +msgid "" +"New :meth:`loop.create_future() ` method to " +"create Future objects. This allows alternative event loop implementations, " +"such as `uvloop `_, to provide a " +"faster :class:`asyncio.Future` implementation. (Contributed by Yury " +"Selivanov in :issue:`27041`.)" +msgstr "" + +msgid "" +"New :meth:`loop.get_exception_handler() " +"` method to get the current exception " +"handler. (Contributed by Yury Selivanov in :issue:`27040`.)" +msgstr "" + +msgid "" +"New :meth:`StreamReader.readuntil() ` method " +"to read data from the stream until a separator bytes sequence appears. " +"(Contributed by Mark Korenberg.)" +msgstr "" + +msgid "" +"The performance of :meth:`StreamReader.readexactly() " +"` has been improved. (Contributed by Mark " +"Korenberg in :issue:`28370`.)" +msgstr "" + +msgid "" +"The :meth:`loop.getaddrinfo() ` method is " +"optimized to avoid calling the system ``getaddrinfo`` function if the " +"address is already resolved. (Contributed by A. Jesse Jiryu Davis.)" +msgstr "" + +msgid "" +"The :meth:`loop.stop() ` method has been changed to stop " +"the loop immediately after the current iteration. Any new callbacks " +"scheduled as a result of the last iteration will be discarded. (Contributed " +"by Guido van Rossum in :issue:`25593`.)" +msgstr "" + +msgid "" +":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 "" + +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. " +"(Contributed by Jim Fulton in :issue:`27392`.)" +msgstr "" + +msgid "" +"``TCP_NODELAY`` flag is now set for all TCP transports by default. " +"(Contributed by Yury Selivanov in :issue:`27456`.)" +msgstr "" + +msgid "" +"New :meth:`loop.shutdown_asyncgens() ` to " +"properly close pending asynchronous generators before closing the loop. " +"(Contributed by Yury Selivanov in :issue:`28003`.)" +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`.)" +msgstr "" + +msgid "binascii" +msgstr "" + +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`.)" +msgstr "" + +msgid "cmath" +msgstr "" + +msgid "" +"The new :const:`cmath.tau` (*τ*) constant has been added. (Contributed by " +"Lisa Roach in :issue:`12345`, see :pep:`628` for details.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "collections" +msgstr "" + +msgid "" +"The new :class:`~collections.abc.Collection` abstract base class has been " +"added to represent sized iterable container classes. (Contributed by Ivan " +"Levkivskyi, docs by Neil Girdhar in :issue:`27598`.)" +msgstr "" + +msgid "" +"The new :class:`~collections.abc.Reversible` abstract base class represents " +"iterable classes that also provide the :meth:`__reversed__` method. " +"(Contributed by Ivan Levkivskyi in :issue:`25987`.)" +msgstr "" + +msgid "" +"The new :class:`~collections.abc.AsyncGenerator` abstract base class " +"represents asynchronous generators. (Contributed by Yury Selivanov " +"in :issue:`28720`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The *verbose* and *rename* arguments for :func:`~collections.namedtuple` are " +"now keyword-only. (Contributed by Raymond Hettinger in :issue:`25628`.)" +msgstr "" + +msgid "" +"Recursive :class:`collections.deque` instances can now be pickled. " +"(Contributed by Serhiy Storchaka in :issue:`26482`.)" +msgstr "" + +msgid "concurrent.futures" +msgstr "" + +msgid "" +"The :class:`ThreadPoolExecutor ` " +"class constructor now accepts an optional *thread_name_prefix* argument to " +"make it possible to customize the names of the threads created by the pool. " +"(Contributed by Gregory P. Smith in :issue:`27664`.)" +msgstr "" + +msgid "contextlib" +msgstr "" + +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`.)" +msgstr "" + +msgid "datetime" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :func:`datetime.isoformat() ` function now " +"accepts an optional *timespec* argument that specifies the number of " +"additional components of the time value to include. (Contributed by " +"Alessandro Cucci and Alexander Belopolsky in :issue:`19475`.)" +msgstr "" + +msgid "" +"The :meth:`datetime.combine() ` now accepts an " +"optional *tzinfo* argument. (Contributed by Alexander Belopolsky " +"in :issue:`27661`.)" +msgstr "" + +msgid "decimal" +msgstr "" + +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::" +msgstr "" + +msgid "(Contributed by Stefan Krah amd Mark Dickinson in :issue:`25928`.)" +msgstr "" + +msgid "distutils" +msgstr "" + +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." +msgstr "" + +msgid "email" +msgstr "" + +msgid "" +"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`.)" +msgstr "" + +msgid "" +"The :mod:`email.mime` classes now all accept an optional *policy* keyword. " +"(Contributed by Berker Peksag in :issue:`27331`.)" +msgstr "" + +msgid "" +"The :class:`~email.generator.DecodedGenerator` now supports the *policy* " +"keyword." +msgstr "" + +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`.)" +msgstr "" + +msgid "encodings" +msgstr "" + +msgid "" +"On Windows, added the ``'oem'`` encoding to use ``CP_OEMCP``, and the " +"``'ansi'`` alias for the existing ``'mbcs'`` encoding, which uses the " +"``CP_ACP`` code page. (Contributed by Steve Dower in :issue:`27959`.)" +msgstr "" + +msgid "enum" +msgstr "" + +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 constants that can be combined using the bitwise operators. " +"(Contributed by Ethan Furman in :issue:`23591`.)" +msgstr "" + +msgid "" +"Many standard library modules have been updated to use " +"the :class:`~enum.IntFlags` class for their constants." +msgstr "" + +msgid "" +"The new :class:`enum.auto` value can be used to assign values to enum " +"members automatically::" +msgstr "" + +msgid "faulthandler" +msgstr "" + +msgid "" +"On Windows, the :mod:`faulthandler` module now installs a handler for " +"Windows exceptions: see :func:`faulthandler.enable`. (Contributed by Victor " +"Stinner in :issue:`23848`.)" +msgstr "" + +msgid "fileinput" +msgstr "" + +msgid "" +":func:`~fileinput.hook_encoded` now supports the *errors* argument. " +"(Contributed by Joseph Hackman in :issue:`25788`.)" +msgstr "" + +msgid "hashlib" +msgstr "" + +msgid "" +":mod:`hashlib` supports OpenSSL 1.1.0. The minimum recommend version is " +"1.0.2. (Contributed by Christian Heimes in :issue:`26470`.)" +msgstr "" + +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.)" +msgstr "" + +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.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "http.client" +msgstr "" + +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`.)" +msgstr "" + +msgid "idlelib and IDLE" +msgstr "" + +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. " +"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." +msgstr "" + +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.)" +msgstr "" + +msgid "" +"In compensation, the eventual result with be that some idlelib classes will " +"be easier to use, with better APIs and docstrings explaining them. " +"Additional useful information will be added to idlelib when available." +msgstr "" + +msgid "New in 3.6.2:" +msgstr "" + +msgid "" +"Multiple fixes for autocompletion. (Contributed by Louie Lu " +"in :issue:`15786`.)" +msgstr "" + +msgid "New in 3.6.3:" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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 "" + +msgid "New in 3.6.4:" +msgstr "" + +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 " +"other characters. (Contributed by Serhiy Storchaka in :issue:`31860`.)" +msgstr "" + +msgid "New in 3.6.6:" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "New in 3.6.7:" +msgstr "" + +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 "" + +msgid "importlib" +msgstr "" + +msgid "" +"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 "" + +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`." +msgstr "" + +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`." +msgstr "" + +msgid "inspect" +msgstr "" + +msgid "" +"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 "" + +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`)" +msgstr "" + +msgid "json" +msgstr "json" + +msgid "" +":func:`json.load` and :func:`json.loads` now support binary input. Encoded " +"JSON should be represented using either UTF-8, UTF-16, or UTF-32. " +"(Contributed by Serhiy Storchaka in :issue:`17909`.)" +msgstr "" + +msgid "logging" +msgstr "" + +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`.)" +msgstr "" + +msgid "math" +msgstr "" + +msgid "" +"The tau (*τ*) constant has been added to the :mod:`math` and :mod:`cmath` " +"modules. (Contributed by Lisa Roach in :issue:`12345`, see :pep:`628` for " +"details.)" +msgstr "" + +msgid "multiprocessing" +msgstr "" + +msgid "" +":ref:`Proxy Objects ` returned " +"by :func:`multiprocessing.Manager` can now be nested. (Contributed by Davin " +"Potts in :issue:`6766`.)" +msgstr "" + +msgid "os" +msgstr "" + +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 `." +msgstr "" + +msgid ":func:`~os.scandir` now supports :class:`bytes` paths on Windows." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The Linux ``getrandom()`` syscall (get random bytes) is now exposed as the " +"new :func:`os.getrandom` function. (Contributed by Victor Stinner, part of " +"the :pep:`524`)" +msgstr "" + +msgid "pathlib" +msgstr "" + +msgid "" +":mod:`pathlib` now supports :term:`path-like objects `. " +"(Contributed by Brett Cannon in :issue:`27186`.)" +msgstr "" + +msgid "See the summary of :ref:`PEP 519 ` for details." +msgstr "" + +msgid "pdb" +msgstr "" + +msgid "" +"The :class:`~pdb.Pdb` class constructor has a new optional *readrc* argument " +"to control whether ``.pdbrc`` files should be read." +msgstr "" + +msgid "pickle" +msgstr "" + +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 " +"Serhiy Storchaka in :issue:`24164`.)" +msgstr "" + +msgid "pickletools" +msgstr "" + +msgid "" +":func:`pickletools.dis()` now outputs the implicit memo index for the " +"``MEMOIZE`` opcode. (Contributed by Serhiy Storchaka in :issue:`25382`.)" +msgstr "" + +msgid "pydoc" +msgstr "" + +msgid "" +"The :mod:`pydoc` module has learned to respect the ``MANPAGER`` environment " +"variable. (Contributed by Matthias Klose in :issue:`8637`.)" +msgstr "" + +msgid "" +":func:`help` and :mod:`pydoc` can now list named tuple fields in the order " +"they were defined rather than alphabetically. (Contributed by Raymond " +"Hettinger in :issue:`24879`.)" +msgstr "" + +msgid "random" +msgstr "" + +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`.)" +msgstr "" + +msgid "re" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":class:`~re.Match` objects now support :meth:`index-like objects " +"` as group indices. (Contributed by Jeroen Demeyer and " +"Xiang Zhang in :issue:`27177`.)" +msgstr "" + +msgid "readline" +msgstr "" + +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`.)" +msgstr "" + +msgid "rlcompleter" +msgstr "" + +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`.)" +msgstr "" + +msgid "shlex" +msgstr "" + +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 " +"Vinay Sajip in :issue:`1521950`.)" +msgstr "" + +msgid "site" +msgstr "" + +msgid "" +"When specifying paths to add to :attr:`sys.path` in a ``.pth`` file, you may " +"now specify file paths on top of directories (e.g. zip files). (Contributed " +"by Wolfgang Langner in :issue:`26587`)." +msgstr "" + +msgid "sqlite3" +msgstr "" + +msgid "" +":attr:`sqlite3.Cursor.lastrowid` now supports the ``REPLACE`` statement. " +"(Contributed by Alex LordThorsen in :issue:`16864`.)" +msgstr "" + +msgid "socket" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :meth:`~socket.socket.getsockopt` constants ``SO_DOMAIN``, " +"``SO_PROTOCOL``, ``SO_PEERSEC``, and ``SO_PASSSEC`` are now supported. " +"(Contributed by Christian Heimes in :issue:`26907`.)" +msgstr "" + +msgid "" +"The :meth:`~socket.socket.setsockopt` now supports the ``setsockopt(level, " +"optname, None, optlen: int)`` form. (Contributed by Christian Heimes " +"in :issue:`27744`.)" +msgstr "" + +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.)" +msgstr "" + +msgid "" +"New Linux constants ``TCP_USER_TIMEOUT`` and ``TCP_CONGESTION`` were added. " +"(Contributed by Omar Sandoval, :issue:`26273`)." +msgstr "" + +msgid "socketserver" +msgstr "" + +msgid "" +"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 "" + +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`.)" +msgstr "" + +msgid "ssl" +msgstr "" + +msgid "" +":mod:`ssl` supports OpenSSL 1.1.0. The minimum recommend version is 1.0.2. " +"(Contributed by Christian Heimes in :issue:`26470`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +":class:`~ssl.SSLContext` has better default configuration for options and " +"ciphers. (Contributed by Christian Heimes in :issue:`28043`.)" +msgstr "" + +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 " +"by Christian Heimes in :issue:`19500` based on a draft by Alex Warhawk.)" +msgstr "" + +msgid "" +"The new :meth:`~ssl.SSLContext.get_ciphers` method can be used to get a list " +"of enabled ciphers in order of cipher priority." +msgstr "" + +msgid "" +"All constants and flags have been converted to :class:`~enum.IntEnum` " +"and :class:`~enum.IntFlags`. (Contributed by Christian Heimes " +"in :issue:`28025`.)" +msgstr "" + +msgid "" +"Server and client-side specific TLS protocols for :class:`~ssl.SSLContext` " +"were added. (Contributed by Christian Heimes in :issue:`28085`.)" +msgstr "" + +msgid "statistics" +msgstr "" + +msgid "" +"A new :func:`~statistics.harmonic_mean` function has been added. " +"(Contributed by Steven D'Aprano in :issue:`27181`.)" +msgstr "" + +msgid "struct" +msgstr "" + +msgid "" +":mod:`struct` now supports IEEE 754 half-precision floats via the ``'e'`` " +"format specifier. (Contributed by Eli Stevens, Mark Dickinson " +"in :issue:`11734`.)" +msgstr "" + +msgid "subprocess" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :class:`subprocess.Popen` constructor and all functions that pass " +"arguments through to it now accept *encoding* and *errors* arguments. " +"Specifying either of these will enable text mode for the *stdin*, *stdout* " +"and *stderr* streams. (Contributed by Steve Dower in :issue:`6135`.)" +msgstr "" + +msgid "sys" +msgstr "sys" + +msgid "" +"The new :func:`~sys.getfilesystemencodeerrors` function returns the name of " +"the error mode used to convert between Unicode filenames and bytes " +"filenames. (Contributed by Steve Dower in :issue:`27781`.)" +msgstr "" + +msgid "" +"On Windows the return value of the :func:`~sys.getwindowsversion` function " +"now includes the *platform_version* field which contains the accurate major " +"version, minor version and build number of the current operating system, " +"rather than the version that is being emulated for the process (Contributed " +"by Steve Dower in :issue:`27932`.)" +msgstr "" + +msgid "telnetlib" +msgstr "" + +msgid "" +":class:`~telnetlib.Telnet` is now a context manager (contributed by Stéphane " +"Wirtel in :issue:`25485`)." +msgstr "" + +msgid "time" +msgstr "" + +msgid "" +"The :class:`~time.struct_time` attributes :attr:`tm_gmtoff` " +"and :attr:`tm_zone` are now available on all platforms." +msgstr "" + +msgid "timeit" +msgstr "" + +msgid "" +"The new :meth:`Timer.autorange() ` convenience " +"method has been added to call :meth:`Timer.timeit() ` " +"repeatedly so that the total run time is greater or equal to 200 " +"milliseconds. (Contributed by Steven D'Aprano in :issue:`6422`.)" +msgstr "" + +msgid "" +":mod:`timeit` now warns when there is substantial (4x) variance between best " +"and worst times. (Contributed by Serhiy Storchaka in :issue:`23552`.)" +msgstr "" + +msgid "tkinter" +msgstr "" + +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`)." +msgstr "" + +msgid "traceback" +msgstr "" + +msgid "" +"Both the traceback module and the interpreter's builtin exception display " +"now abbreviate long sequences of repeated lines in tracebacks as shown in " +"the following example::" +msgstr "" + +msgid "(Contributed by Emanuel Barry in :issue:`26823`.)" +msgstr "" + +msgid "tracemalloc" +msgstr "" + +msgid "" +"The :mod:`tracemalloc` module now supports tracing memory allocations in " +"multiple different address spaces." +msgstr "" + +msgid "" +"The new :class:`~tracemalloc.DomainFilter` filter class has been added to " +"filter block traces by their address space (domain)." +msgstr "" + +msgid "(Contributed by Victor Stinner in :issue:`26588`.)" +msgstr "" + +msgid "typing" +msgstr "" + +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." +msgstr "" + +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 `_.)" +msgstr "" + +msgid "" +"The :class:`typing.ContextManager` class has been added for " +"representing :class:`contextlib.AbstractContextManager`. (Contributed by " +"Brett Cannon in :issue:`25609`.)" +msgstr "" + +msgid "" +"The :class:`typing.Collection` class has been added for " +"representing :class:`collections.abc.Collection`. (Contributed by Ivan " +"Levkivskyi in :issue:`27598`.)" +msgstr "" + +msgid "" +"The :const:`typing.ClassVar` type construct has been added to mark class " +"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 `_.)" +msgstr "" + +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 `_.)" +msgstr "" + +msgid "" +"A new :func:`~typing.NewType` helper function has been added to create " +"lightweight distinct types for annotations::" +msgstr "" + +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 `_.)" +msgstr "" + +msgid "unicodedata" +msgstr "" + +msgid "" +"The :mod:`unicodedata` module now uses data from `Unicode 9.0.0 `_. (Contributed by Benjamin Peterson.)" +msgstr "" + +msgid "unittest.mock" +msgstr "" + +msgid "The :class:`~unittest.mock.Mock` class has the following improvements:" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "urllib.request" +msgstr "" + +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`.)" +msgstr "" + +msgid "urllib.robotparser" +msgstr "" + +msgid "" +":class:`~urllib.robotparser.RobotFileParser` now supports the ``Crawl-" +"delay`` and ``Request-rate`` extensions. (Contributed by Nikolay Bogoychev " +"in :issue:`16099`.)" +msgstr "" + +msgid "venv" +msgstr "" + +msgid "" +":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 "" + +msgid "warnings" +msgstr "" + +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`)." +msgstr "" + +msgid "" +"When a :exc:`ResourceWarning` warning is logged, the :mod:`tracemalloc` " +"module is now used to try to retrieve the traceback where the destroyed " +"object was allocated." +msgstr "" + +msgid "Example with the script ``example.py``::" +msgstr "" + +msgid "Output of the command ``python3.6 -Wd -X tracemalloc=5 example.py``::" +msgstr "" + +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." +msgstr "" + +msgid "winreg" +msgstr "" + +msgid "" +"Added the 64-bit integer type :data:`REG_QWORD `. " +"(Contributed by Clement Rouault in :issue:`23026`.)" +msgstr "" + +msgid "winsound" +msgstr "" + +msgid "" +"Allowed keyword arguments to be passed to :func:`Beep " +"`, :func:`MessageBeep `, " +"and :func:`PlaySound ` (:issue:`27982`)." +msgstr "" + +msgid "xmlrpc.client" +msgstr "" + +msgid "" +"The :mod:`xmlrpc.client` module now supports unmarshalling additional data " +"types used by the Apache XML-RPC implementation for numerics and ``None``. " +"(Contributed by Serhiy Storchaka in :issue:`26885`.)" +msgstr "" + +msgid "zipfile" +msgstr "" + +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. " +"(Contributed by Thomas Kluyver in :issue:`26039`.)" +msgstr "" + +msgid "" +"The :meth:`ZipFile.open() ` method can now be used to " +"write data into a ZIP file, as well as for extracting data. (Contributed by " +"Thomas Kluyver in :issue:`26039`.)" +msgstr "" + +msgid "zlib" +msgstr "zlib" + +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.)" +msgstr "" + +msgid "Optimizations" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :class:`asyncio.Future` class now has an optimized C implementation. " +"(Contributed by Yury Selivanov and INADA Naoki in :issue:`26081`.)" +msgstr "" + +msgid "" +"The :class:`asyncio.Task` class now has an optimized C implementation. " +"(Contributed by Yury Selivanov in :issue:`28544`.)" +msgstr "" + +msgid "" +"Various implementation improvements in the :mod:`typing` module (such as " +"caching of generic types) allow up to 30 times performance improvements and " +"reduced memory footprint." +msgstr "" + +msgid "" +"The ASCII decoder is now up to 60 times as fast for error handlers " +"``surrogateescape``, ``ignore`` and ``replace`` (Contributed by Victor " +"Stinner in :issue:`24870`)." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"The UTF-8 decoder is now up to 15 times as fast for error handlers " +"``ignore``, ``replace`` and ``surrogateescape`` (Contributed by Victor " +"Stinner in :issue:`25301`)." +msgstr "" + +msgid "" +"``bytes % args`` is now up to 2 times faster. (Contributed by Victor Stinner " +"in :issue:`25349`)." +msgstr "" + +msgid "" +"``bytearray % args`` is now between 2.5 and 5 times faster. (Contributed by " +"Victor Stinner in :issue:`25399`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"Optimize ``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``: " +"up to 80% faster. (Contributed by Josh Snider in :issue:`26574`)." +msgstr "" + +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. " +"(Contributed by Victor Stinner in :issue:`26249`)." +msgstr "" + +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`)." +msgstr "" + +msgid "" +"Passing :term:`keyword arguments ` to a function has an " +"overhead in comparison with passing :term:`positional arguments `. Now in extension functions implemented with using Argument " +"Clinic this overhead is significantly decreased. (Contributed by Serhiy " +"Storchaka in :issue:`27574`)." +msgstr "" + +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`)." +msgstr "" + +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`)." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "Build and C API Changes" +msgstr "" + +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`." +msgstr "" + +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`." +msgstr "" + +msgid "" +"The ``--enable-optimizations`` configure flag has been added. Turning it on " +"will activate expensive optimizations like PGO. (Original patch by " +"Alecsandru Patrascu of Intel in :issue:`26359`.)" +msgstr "" + +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." +msgstr "" + +msgid "" +"New :c:func:`Py_FinalizeEx` API which indicates if flushing buffered data " +"failed. (Contributed by Martin Panter in :issue:`5319`.)" +msgstr "" + +msgid "" +":c:func:`PyArg_ParseTupleAndKeywords` now supports :ref:`positional-only " +"parameters `. Positional-only parameters are " +"defined by empty names. (Contributed by Serhiy Storchaka in :issue:`26282`)." +msgstr "" + +msgid "" +"``PyTraceback_Print`` method now abbreviates long sequences of repeated " +"lines as ``\"[Previous line repeated {count} more times]\"``. (Contributed " +"by Emanuel Barry in :issue:`26823`.)" +msgstr "" + +msgid "" +"The new :c:func:`PyErr_SetImportErrorSubclass` function allows for " +"specifying a subclass of :exc:`ImportError` to raise. (Contributed by Eric " +"Snow in :issue:`15767`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"The new :c:func:`PyOS_FSPath` function returns the file system " +"representation of a :term:`path-like object`. (Contributed by Brett Cannon " +"in :issue:`27186`.)" +msgstr "" + +msgid "" +"The :c:func:`PyUnicode_FSConverter` and :c:func:`PyUnicode_FSDecoder` " +"functions will now accept :term:`path-like objects `." +msgstr "" + +msgid "Other Improvements" +msgstr "" + +msgid "" +"When :option:`--version` (short form: :option:`-V`) is supplied twice, " +"Python prints :data:`sys.version` for detailed information." +msgstr "" + +msgid "Deprecated" +msgstr "" + +msgid "New Keywords" +msgstr "" + +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 " +"``async`` or ``await`` as names will generate a :exc:`DeprecationWarning`." +msgstr "" + +msgid "Deprecated Python behavior" +msgstr "" + +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." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"When performing a relative import, falling back on ``__name__`` and " +"``__path__`` from the calling module when ``__spec__`` or ``__package__`` " +"are not defined now raises an :exc:`ImportWarning`. (Contributed by Rose " +"Ames in :issue:`25791`.)" +msgstr "" + +msgid "Deprecated Python modules, functions and methods" +msgstr "" + +msgid "asynchat" +msgstr "" + +msgid "" +"The :mod:`asynchat` has been deprecated in favor of :mod:`asyncio`. " +"(Contributed by Mariatta in :issue:`25002`.)" +msgstr "" + +msgid "asyncore" +msgstr "" + +msgid "" +"The :mod:`asyncore` has been deprecated in favor of :mod:`asyncio`. " +"(Contributed by Mariatta in :issue:`25002`.)" +msgstr "" + +msgid "dbm" +msgstr "" + +msgid "" +"Unlike other :mod:`dbm` implementations, the :mod:`dbm.dumb` module creates " +"databases with the ``'rw'`` mode and allows modifying the database opened " +"with the ``'r'`` mode. This behavior is now deprecated and will be removed " +"in 3.8. (Contributed by Serhiy Storchaka in :issue:`21708`.)" +msgstr "" + +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." +msgstr "" + +msgid "grp" +msgstr "" + +msgid "" +"The support of non-integer arguments in :func:`~grp.getgrgid` has been " +"deprecated. (Contributed by Serhiy Storchaka in :issue:`26129`.)" +msgstr "" + +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`." +msgstr "" + +msgid "" +"The :class:`importlib.machinery.WindowsRegistryFinder` class is now " +"deprecated. As of 3.6.0, it is still added to :attr:`sys.meta_path` by " +"default (on Windows), but this may change in future releases." +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`.)" +msgstr "" + +msgid "" +"Support for inline flags ``(?letters)`` in the middle of the regular " +"expression has been deprecated and will be removed in a future Python " +"version. Flags at the start of a regular expression are still allowed. " +"(Contributed by Serhiy Storchaka in :issue:`22493`.)" +msgstr "" + +msgid "" +"OpenSSL 0.9.8, 1.0.0 and 1.0.1 are deprecated and no longer supported. In " +"the future the :mod:`ssl` module will require at least OpenSSL 1.0.2 or " +"1.1.0." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"A couple of protocols and functions of the :mod:`ssl` module are now " +"deprecated. Some features will no longer be available in future versions of " +"OpenSSL. Other features are deprecated in favor of a different API. " +"(Contributed by Christian Heimes in :issue:`28022` and :issue:`26470`.)" +msgstr "" + +msgid "" +"The :mod:`tkinter.tix` module is now deprecated. :mod:`tkinter` users " +"should use :mod:`tkinter.ttk` instead." +msgstr "" + +msgid "" +"The ``pyvenv`` script has been deprecated in favour of ``python3 -m venv``. " +"This prevents confusion as to what Python interpreter ``pyvenv`` is " +"connected to and thus what Python interpreter will be used by the virtual " +"environment. (Contributed by Brett Cannon in :issue:`25154`.)" +msgstr "" + +msgid "Deprecated functions and types of the C API" +msgstr "" + +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." +msgstr "" + +msgid "Deprecated Build Options" +msgstr "" + +msgid "" +"The ``--with-system-ffi`` configure flag is now on by default on non-macOS " +"UNIX platforms. It may be disabled by using ``--without-system-ffi``, but " +"using the flag is deprecated and will not be accepted in Python 3.7. macOS " +"is unaffected by this change. Note that many OS distributors already use " +"the ``--with-system-ffi`` flag when building their system Python." +msgstr "" + +msgid "Removed" +msgstr "" + +msgid "API and Feature Removals" +msgstr "" + +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." +msgstr "" + +msgid "" +"``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 "" + +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." +msgstr "" + +msgid "" +"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 "" + +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." +msgstr "" + +msgid "" +"The undocumented ``IN``, ``CDROM``, ``DLFCN``, ``TYPES``, ``CDIO``, and " +"``STROPTS`` modules have been removed. They had been available in the " +"platform specific ``Lib/plat-*/`` directories, but were chronically out of " +"date, inconsistently available across platforms, and unmaintained. The " +"script that created these modules is still available in the source " +"distribution at `Tools/scripts/h2py.py `_." +msgstr "" + +msgid "The deprecated ``asynchat.fifo`` class has been removed." +msgstr "" + +msgid "Porting to Python 3.6" +msgstr "" + +msgid "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code." +msgstr "" + +msgid "Changes in 'python' Command Behavior" +msgstr "" + +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`.)" +msgstr "" + +msgid "Changes in the Python API" +msgstr "" + +msgid "" +":func:`open() ` will no longer allow combining the ``'U'`` mode flag " +"with ``'+'``. (Contributed by Jeff Balogh and John O'Connor " +"in :issue:`2091`.)" +msgstr "" + +msgid "" +":mod:`sqlite3` no longer implicitly commits an open transaction before DDL " +"statements." +msgstr "" + +msgid "" +"On Linux, :func:`os.urandom` now blocks until the system urandom entropy " +"pool is initialized to increase the security." +msgstr "" + +msgid "" +"When :meth:`importlib.abc.Loader.exec_module` is " +"defined, :meth:`importlib.abc.Loader.create_module` must also be defined." +msgstr "" + +msgid "" +":c:func:`PyErr_SetImportError` now sets :exc:`TypeError` when its **msg** " +"argument is not set. Previously only ``NULL`` was returned." +msgstr "" + +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``, " +"``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." +msgstr "" + +msgid "" +"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 "" + +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`." +msgstr "" + +msgid "" +"The :mod:`imp` module now raises a :exc:`DeprecationWarning` instead " +"of :exc:`PendingDeprecationWarning`." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"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 "" + +msgid "" +"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. " +"(Contributed by Martin Panter in :issue:`23430`.)" +msgstr "" + +msgid "" +":func:`spwd.getspnam` now raises a :exc:`PermissionError` instead " +"of :exc:`KeyError` if the user doesn't have privileges." +msgstr "" + +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`.)" +msgstr "" + +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." +msgstr "" + +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`.)" +msgstr "" + +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 "" + +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." +msgstr "" + +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 " +"distributions are required, configure the project with a ``setup.cfg`` file " +"containing the following:" +msgstr "" + +msgid "" +"This behavior has also been backported to earlier Python versions by " +"Setuptools 26.0.0." +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The :class:`~csv.DictReader` now returns rows of " +"type :class:`~collections.OrderedDict`. (Contributed by Steve Holden " +"in :issue:`27842`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"On Linux, :func:`ctypes.util.find_library` now looks in ``LD_LIBRARY_PATH`` " +"for shared libraries. (Contributed by Vinay Sajip in :issue:`9998`.)" +msgstr "" + +msgid "" +"The :class:`imaplib.IMAP4` class now handles flags containing the ``']'`` " +"character in messages sent from the server to improve real-world " +"compatibility. (Contributed by Lita Cho in :issue:`21815`.)" +msgstr "" + +msgid "" +"The :func:`mmap.write() ` function now returns the number of " +"bytes written like other write methods. (Contributed by Jakub Stasiak " +"in :issue:`26335`.)" +msgstr "" + +msgid "" +"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 "" + +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 " +"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`.)" +msgstr "" + +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." +msgstr "" + +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." +msgstr "" + +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 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 "" + +msgid "Changes in the C API" +msgstr "" + +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`." +msgstr "" + +msgid "" +":c:func:`Py_Exit` (and the main interpreter) now override the exit status " +"with 120 if flushing buffered data failed. See :issue:`5319`." +msgstr "" + +msgid "CPython bytecode changes" +msgstr "" + +msgid "" +"There have been several major changes to the :term:`bytecode` in Python 3.6." +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +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`.)" +msgstr "" + +msgid "" +"The new :opcode:`SETUP_ANNOTATIONS` and :opcode:`STORE_ANNOTATION` opcodes " +"have been added to support the new :term:`variable annotation` syntax. " +"(Contributed by Ivan Levkivskyi in :issue:`27985`.)" +msgstr "" + +msgid "Notable changes in Python 3.6.2" +msgstr "" + +msgid "New ``make regen-all`` build target" +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." +msgstr "" + +msgid "" +"Instead, a new ``make regen-all`` command has been added to force " +"regeneration of these files when desired (e.g. after an initial version of " +"Python has already been built based on the pregenerated versions)." +msgstr "" + +msgid "" +"More selective regeneration targets are also defined - " +"see :source:`Makefile.pre.in` for details." +msgstr "" + +msgid "(Contributed by Victor Stinner in :issue:`23404`.)" +msgstr "" + +msgid "Removal of ``make touch`` build target" +msgstr "" + +msgid "" +"The ``make touch`` build target previously used to request implicit " +"regeneration of generated files by updating their modification times has " +"been removed." +msgstr "" + +msgid "It has been replaced by the new ``make regen-all`` target." +msgstr "" + +msgid "Notable changes in Python 3.6.4" +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`.)" +msgstr "" + +msgid "Notable changes in Python 3.6.5" +msgstr "" + +msgid "" +"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 "" + +msgid "Notable changes in Python 3.6.7" +msgstr "" + +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 " +"behavior now matches what the C tokenizer does internally. (Contributed by " +"Ammar Askar in :issue:`33899`.)" +msgstr "" + +msgid "Notable changes in Python 3.6.10" +msgstr "" + +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 "" + +msgid "Notable changes in Python 3.6.13" +msgstr "" + +msgid "" +"Earlier Python versions allowed using both ``;`` and ``&`` as query " +"parameter separators in :func:`urllib.parse.parse_qs` " +"and :func:`urllib.parse.parse_qsl`. Due to security concerns, and to " +"conform with newer W3C recommendations, this has been changed to allow only " +"a single separator key, with ``&`` as the default. This change also " +"affects :func:`cgi.parse` and :func:`cgi.parse_multipart` as they use the " +"affected functions internally. For more details, please see their respective " +"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " +"in :issue:`42967`.)" +msgstr "" diff --git a/whatsnew/3.7.po b/whatsnew/3.7.po index 7a0eba9e7c..083935b1c2 100644 --- a/whatsnew/3.7.po +++ b/whatsnew/3.7.po @@ -1,28 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 -# Krzysztof Abramowicz, 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Krzysztof Abramowicz, 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New In Python 3.7" msgstr "" @@ -35,12 +35,12 @@ msgstr "" 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 `." +"Python 3.7 was released on June 27, 2018. For full details, see " +"the :ref:`changelog `." msgstr "" msgid "Summary -- Release Highlights" -msgstr "" +msgstr "Podsumowanie - najważniejsze informacje o wydaniu" msgid "New syntax features:" msgstr "Nowe cechy składni:" @@ -66,7 +66,7 @@ msgid ":mod:`dataclasses`: :ref:`PEP 557 -- Data Classes `" msgstr "" msgid ":ref:`whatsnew37_importlib_resources`" -msgstr "" +msgstr ":ref:`whatsnew37_importlib_resources`" msgid "New built-in features:" msgstr "Nowe wbudowane funkcje:" @@ -98,8 +98,9 @@ msgid "Significant improvements in the standard library:" msgstr "" msgid "" -"The :mod:`asyncio` module has received new features, significant :ref:" -"`usability and performance improvements `." +"The :mod:`asyncio` module has received new features, " +"significant :ref:`usability and performance improvements " +"`." msgstr "" msgid "" @@ -144,13 +145,13 @@ msgstr "" msgid "" "New documentation translations: `Japanese `_, " -"`French `_, and `Korean `_." +"`French `_, and `Korean `_." msgstr "" msgid "" -"This release features notable performance improvements in many areas. The :" -"ref:`whatsnew37-perf` section lists them in detail." +"This release features notable performance improvements in many areas. " +"The :ref:`whatsnew37-perf` section lists them in detail." msgstr "" msgid "" @@ -225,9 +226,9 @@ msgid "" "automatically coerce that locale to an available UTF-8 based locale as " "described in the documentation of the new :envvar:`PYTHONCOERCECLOCALE` " "environment variable. Automatically setting ``LC_CTYPE`` this way means that " -"both the core interpreter and locale-aware C extensions (such as :mod:" -"`readline`) will assume the use of UTF-8 as the default text encoding, " -"rather than ASCII." +"both the core interpreter and locale-aware C extensions (such " +"as :mod:`readline`) will assume the use of UTF-8 as the default text " +"encoding, rather than ASCII." msgstr "" msgid "" @@ -238,15 +239,16 @@ msgstr "" msgid "" "As part of this change, the default error handler for :data:`~sys.stdin` " "and :data:`~sys.stdout` is now ``surrogateescape`` (rather than ``strict``) " -"when using any of the defined coercion target locales (currently ``C." -"UTF-8``, ``C.utf8``, and ``UTF-8``). The default error handler for :data:" -"`~sys.stderr` continues to be ``backslashreplace``, regardless of locale." +"when using any of the defined coercion target locales (currently " +"``C.UTF-8``, ``C.utf8``, and ``UTF-8``). The default error handler " +"for :data:`~sys.stderr` continues to be ``backslashreplace``, regardless of " +"locale." msgstr "" msgid "" "Locale coercion is silent by default, but to assist in debugging potentially " -"locale related integration problems, explicit warnings (emitted directly on :" -"data:`~sys.stderr`) can be requested by setting " +"locale related integration problems, explicit warnings (emitted directly " +"on :data:`~sys.stderr`) can be requested by setting " "``PYTHONCOERCECLOCALE=warn``. This setting will also cause the Python " "runtime to emit a warning if the legacy C locale remains active when the " "core interpreter is initialized." @@ -279,8 +281,8 @@ msgstr "" 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``." +"encoding by default. The error handlers for :data:`sys.stdin` " +"and :data:`sys.stdout` streams are set to ``surrogateescape``." msgstr "" msgid "" @@ -323,9 +325,10 @@ msgid "" "Built-in ``breakpoint()`` calls :func:`sys.breakpointhook`. By default, the " "latter imports :mod:`pdb` and then calls ``pdb.set_trace()``, but by binding " "``sys.breakpointhook()`` to the function of your choosing, ``breakpoint()`` " -"can enter any debugger. Additionally, the environment variable :envvar:" -"`PYTHONBREAKPOINT` can be set to the callable of your debugger of choice. " -"Set ``PYTHONBREAKPOINT=0`` to completely disable built-in ``breakpoint()``." +"can enter any debugger. Additionally, the environment " +"variable :envvar:`PYTHONBREAKPOINT` can be set to the callable of your " +"debugger of choice. Set ``PYTHONBREAKPOINT=0`` to completely disable built-" +"in ``breakpoint()``." msgstr "" msgid ":pep:`553` -- Built-in breakpoint()" @@ -349,11 +352,11 @@ msgid "" ":pep:`539` changes this by providing a new :ref:`Thread Specific Storage " "(TSS) API ` to CPython which supersedes use of " "the existing TLS API within the CPython interpreter, while deprecating the " -"existing API. The TSS API uses a new type :c:type:`Py_tss_t` instead of :c:" -"expr:`int` to represent TSS keys--an opaque type the definition of which may " -"depend on the underlying TLS implementation. Therefore, this will allow to " -"build CPython on platforms where the native TLS key is defined in a way that " -"cannot be safely cast to :c:expr:`int`." +"existing API. The TSS API uses a new type :c:type:`Py_tss_t` instead " +"of :c:expr:`int` to represent TSS keys--an opaque type the definition of " +"which may depend on the underlying TLS implementation. Therefore, this will " +"allow to build CPython on platforms where the native TLS key is defined in a " +"way that cannot be safely cast to :c:expr:`int`." msgstr "" msgid "" @@ -375,8 +378,8 @@ msgstr "" 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." +"whenever a module attribute is otherwise not found. " +"Defining :meth:`__dir__` on modules is now also allowed." msgstr "" msgid "" @@ -402,30 +405,31 @@ msgid "" msgstr "" msgid ":func:`time.clock_gettime_ns`" -msgstr "" +msgstr ":func:`time.clock_gettime_ns`" msgid ":func:`time.clock_settime_ns`" -msgstr "" +msgstr ":func:`time.clock_settime_ns`" msgid ":func:`time.monotonic_ns`" -msgstr "" +msgstr ":func:`time.monotonic_ns`" msgid ":func:`time.perf_counter_ns`" -msgstr "" +msgstr ":func:`time.perf_counter_ns`" msgid ":func:`time.process_time_ns`" -msgstr "" +msgstr ":func:`time.process_time_ns`" msgid ":func:`time.time_ns`" -msgstr "" +msgstr ":func:`time.time_ns`" msgid "The new functions return the number of nanoseconds as an integer value." msgstr "" msgid "" -"`Measurements `_ show that on Linux and Windows the resolution of :func:`time." -"time_ns` is approximately 3 times better than that of :func:`time.time`." +"`Measurements `_ show that on Linux and Windows the resolution " +"of :func:`time.time_ns` is approximately 3 times better than that " +"of :func:`time.time`." msgstr "" msgid ":pep:`564` -- Add new time functions with nanosecond resolution" @@ -469,10 +473,11 @@ msgid "" msgstr "" msgid "" -"Previously both :exc:`DeprecationWarning` and :exc:" -"`PendingDeprecationWarning` were only visible when running tests, which " -"meant that developers primarily writing single file scripts or using Python " -"interactively could be surprised by breaking changes in the APIs they used." +"Previously both :exc:`DeprecationWarning` " +"and :exc:`PendingDeprecationWarning` were only visible when running tests, " +"which meant that developers primarily writing single file scripts or using " +"Python interactively could be surprised by breaking changes in the APIs they " +"used." msgstr "" msgid ":pep:`565` -- Show DeprecationWarning in ``__main__``" @@ -486,14 +491,14 @@ msgstr "" 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:" -"`typing` module are extensively used by the community, so this restriction " -"is removed. The PEP introduces two special methods :meth:`__class_getitem__` " -"and ``__mro_entries__``, these methods are now used by most classes and " -"special constructs in :mod:`typing`. As a result, the speed of various " -"operations with types increased up to 7 times, the generic types can be used " -"without metaclass conflicts, and several long standing bugs in :mod:`typing` " -"module are fixed." +"*any* changes to the core CPython interpreter. Now type hints and " +"the :mod:`typing` module are extensively used by the community, so this " +"restriction is removed. The PEP introduces two special " +"methods :meth:`__class_getitem__` and ``__mro_entries__``, these methods are " +"now used by most classes and special constructs in :mod:`typing`. As a " +"result, the speed of various operations with types increased up to 7 times, " +"the generic types can be used without metaclass conflicts, and several long " +"standing bugs in :mod:`typing` module are fixed." msgstr "" msgid ":pep:`560` -- Core support for typing module and generic types" @@ -518,8 +523,8 @@ msgid "" "used for invalidation instead of the source timestamp. Such ``.pyc`` files " "are called \"hash-based\". By default, Python still uses timestamp-based " "invalidation and does not generate hash-based ``.pyc`` files at runtime. " -"Hash-based ``.pyc`` files may be generated with :mod:`py_compile` or :mod:" -"`compileall`." +"Hash-based ``.pyc`` files may be generated with :mod:`py_compile` " +"or :mod:`compileall`." msgstr "" msgid "" @@ -572,28 +577,28 @@ msgid "Python Development Mode (-X dev)" msgstr "" msgid "" -"The new :option:`-X` ``dev`` command line option or the new :envvar:" -"`PYTHONDEVMODE` environment variable can be used to enable :ref:`Python " -"Development Mode `. When in development mode, Python performs " -"additional runtime checks that are too expensive to be enabled by default. " -"See :ref:`Python Development Mode ` documentation for the full " -"description." +"The new :option:`-X` ``dev`` command line option or the " +"new :envvar:`PYTHONDEVMODE` environment variable can be used to " +"enable :ref:`Python Development Mode `. When in development mode, " +"Python performs additional runtime checks that are too expensive to be " +"enabled by default. See :ref:`Python Development Mode ` " +"documentation for the full description." msgstr "" msgid "Other Language Changes" msgstr "" 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." +"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 "" 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`.)" +"now have more than 255 parameters. (Contributed by Serhiy Storchaka " +"in :issue:`12844` and :issue:`18896`.)" msgstr "" msgid "" @@ -610,8 +615,8 @@ msgstr "" msgid "" ":exc:`ImportError` now displays module name and module ``__file__`` path " -"when ``from ... import ...`` fails. (Contributed by Matthias Bussonnier in :" -"issue:`29546`.)" +"when ``from ... import ...`` fails. (Contributed by Matthias Bussonnier " +"in :issue:`29546`.)" msgstr "" msgid "" @@ -621,15 +626,15 @@ msgstr "" msgid "" "``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than " -"``format(str(self), '')``. (Contributed by Serhiy Storchaka in :issue:" -"`28974`.)" +"``format(str(self), '')``. (Contributed by Serhiy Storchaka " +"in :issue:`28974`.)" msgstr "" 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`` " -"attribute on :ref:`tracebacks ` is now writable. " -"(Contributed by Nathaniel J. Smith in :issue:`30579`.)" +"In order to better support dynamic creation of stack " +"traces, :class:`types.TracebackType` can now be instantiated from Python " +"code, and the ``tb_next`` attribute on :ref:`tracebacks ` " +"is now writable. (Contributed by Nathaniel J. Smith in :issue:`30579`.)" msgstr "" msgid "" @@ -640,9 +645,10 @@ msgid "" msgstr "" msgid "" -"The new :option:`-X` ``importtime`` option or the :envvar:" -"`PYTHONPROFILEIMPORTTIME` environment variable can be used to show the " -"timing of each module import. (Contributed by Inada Naoki in :issue:`31415`.)" +"The new :option:`-X` ``importtime`` option or " +"the :envvar:`PYTHONPROFILEIMPORTTIME` environment variable can be used to " +"show the timing of each module import. (Contributed by Inada Naoki " +"in :issue:`31415`.)" msgstr "" msgid "New Modules" @@ -677,13 +683,13 @@ msgstr "" msgid "" "The new :func:`~dataclasses.dataclass` decorator provides a way to declare " "*data classes*. A data class describes its attributes using class variable " -"annotations. Its constructor and other magic methods, such as :meth:" -"`~object.__repr__`, :meth:`~object.__eq__`, and :meth:`~object.__hash__` are " -"generated automatically." +"annotations. Its constructor and other magic methods, such " +"as :meth:`~object.__repr__`, :meth:`~object.__eq__`, " +"and :meth:`~object.__hash__` are generated automatically." msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid ":pep:`557` -- Data Classes" msgstr "" @@ -698,10 +704,10 @@ msgid "" "The new :mod:`importlib.resources` module provides several new APIs and one " "new ABC for access to, opening, and reading *resources* inside packages. " "Resources are roughly similar to files inside packages, but they needn't be " -"actual files on the physical file system. Module loaders can provide a :" -"meth:`get_resource_reader()` function which returns a :class:`importlib.abc." -"ResourceReader` instance to support this new API. Built-in file path " -"loaders and zip file loaders both support this." +"actual files on the physical file system. Module loaders can provide " +"a :meth:`get_resource_reader()` function which returns " +"a :class:`importlib.abc.ResourceReader` instance to support this new API. " +"Built-in file path loaders and zip file loaders both support this." msgstr "" msgid "Contributed by Barry Warsaw and Brett Cannon in :issue:`32248`." @@ -713,42 +719,42 @@ msgid "" msgstr "" msgid "Improved Modules" -msgstr "" +msgstr "Ulepszone moduły" msgid "argparse" msgstr "" msgid "" -"The new :meth:`ArgumentParser.parse_intermixed_args() ` method allows intermixing options and " -"positional arguments. (Contributed by paul.j3 in :issue:`14191`.)" +"The new :meth:`ArgumentParser.parse_intermixed_args() " +"` method allows intermixing " +"options and positional arguments. (Contributed by paul.j3 in :issue:`14191`.)" msgstr "" msgid "asyncio" -msgstr "" +msgstr "asyncio" msgid "" -"The :mod:`asyncio` module has received many new features, usability and :ref:" -"`performance improvements `. Notable changes " -"include:" +"The :mod:`asyncio` module has received many new features, usability " +"and :ref:`performance improvements `. Notable " +"changes include:" msgstr "" msgid "" "The new :term:`provisional ` :func:`asyncio.run` function " "can be used to run a coroutine from synchronous code by automatically " -"creating and destroying the event loop. (Contributed by Yury Selivanov in :" -"issue:`32314`.)" +"creating and destroying the event loop. (Contributed by Yury Selivanov " +"in :issue:`32314`.)" msgstr "" msgid "" "asyncio gained support for :mod:`contextvars`. :meth:`loop.call_soon() " -"`, :meth:`loop.call_soon_threadsafe() `, :meth:`loop.call_later() `, :meth:`loop.call_at() `, and :meth:" -"`Future.add_done_callback() ` have a new " -"optional keyword-only *context* parameter. :class:`Tasks ` now " -"track their context automatically. See :pep:`567` for more details. " -"(Contributed by Yury Selivanov in :issue:`32436`.)" +"`, :meth:`loop.call_soon_threadsafe() " +"`, :meth:`loop.call_later() " +"`, :meth:`loop.call_at() `, " +"and :meth:`Future.add_done_callback() ` " +"have a new optional keyword-only *context* parameter. :class:`Tasks " +"` now track their context automatically. See :pep:`567` for " +"more details. (Contributed by Yury Selivanov in :issue:`32436`.)" msgstr "" msgid "" @@ -759,24 +765,25 @@ msgstr "" msgid "" "The new :meth:`loop.start_tls() ` method can be used " -"to upgrade an existing connection to TLS. (Contributed by Yury Selivanov in :" -"issue:`23749`.)" +"to upgrade an existing connection to TLS. (Contributed by Yury Selivanov " +"in :issue:`23749`.)" msgstr "" msgid "" "The new :meth:`loop.sock_recv_into() ` method " "allows reading data from a socket directly into a provided buffer making it " -"possible to reduce data copies. (Contributed by Antoine Pitrou in :issue:" -"`31819`.)" +"possible to reduce data copies. (Contributed by Antoine Pitrou " +"in :issue:`31819`.)" msgstr "" msgid "" -"The new :func:`asyncio.current_task` function returns the currently running :" -"class:`~asyncio.Task` instance, and the new :func:`asyncio.all_tasks` " -"function returns a set of all existing ``Task`` instances in a given loop. " -"The :meth:`Task.current_task() ` and :meth:`Task." -"all_tasks() ` methods have been deprecated. " -"(Contributed by Andrew Svetlov in :issue:`32250`.)" +"The new :func:`asyncio.current_task` function returns the currently " +"running :class:`~asyncio.Task` instance, and the " +"new :func:`asyncio.all_tasks` function returns a set of all existing " +"``Task`` instances in a given loop. The :meth:`Task.current_task() " +"` and :meth:`Task.all_tasks() " +"` methods have been deprecated. (Contributed by " +"Andrew Svetlov in :issue:`32250`.)" msgstr "" msgid "" @@ -789,16 +796,16 @@ 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 " "is in contrast with :func:`asyncio.get_event_loop`, which will *create* a " -"new event loop if none is running. (Contributed by Yury Selivanov in :issue:" -"`32269`.)" +"new event loop if none is running. (Contributed by Yury Selivanov " +"in :issue:`32269`.)" msgstr "" msgid "" -"The new :meth:`StreamWriter.wait_closed() ` coroutine method allows waiting until the stream writer is " -"closed. The new :meth:`StreamWriter.is_closing() ` method can be used to determine if the writer is closing. " -"(Contributed by Andrew Svetlov in :issue:`32391`.)" +"The new :meth:`StreamWriter.wait_closed() " +"` coroutine method allows waiting until " +"the stream writer is closed. The new :meth:`StreamWriter.is_closing() " +"` method can be used to determine if the " +"writer is closing. (Contributed by Andrew Svetlov in :issue:`32391`.)" msgstr "" msgid "" @@ -808,51 +815,51 @@ msgid "" msgstr "" msgid "" -"The new :meth:`Future.get_loop() ` and ``Task." -"get_loop()`` methods return the instance of the loop on which a task or a " -"future were created. :meth:`Server.get_loop() ` " -"allows doing the same for :class:`asyncio.Server` objects. (Contributed by " -"Yury Selivanov in :issue:`32415` and Srinivas Reddy Thatiparthy in :issue:" -"`32418`.)" +"The new :meth:`Future.get_loop() ` and " +"``Task.get_loop()`` methods return the instance of the loop on which a task " +"or a future were created. :meth:`Server.get_loop() " +"` allows doing the same for :class:`asyncio.Server` " +"objects. (Contributed by Yury Selivanov in :issue:`32415` and Srinivas Reddy " +"Thatiparthy in :issue:`32418`.)" msgstr "" msgid "" "It is now possible to control how instances of :class:`asyncio.Server` begin " "serving. Previously, the server would start serving immediately when " -"created. The new *start_serving* keyword argument to :meth:`loop." -"create_server() ` and :meth:`loop." -"create_unix_server() `, as well as :meth:" -"`Server.start_serving() `, and :meth:`Server." -"serve_forever() ` can be used to decouple " -"server instantiation and serving. The new :meth:`Server.is_serving() " -"` method returns ``True`` if the server is " -"serving. :class:`~asyncio.Server` objects are now asynchronous context " -"managers::" +"created. The new *start_serving* keyword argument " +"to :meth:`loop.create_server() ` " +"and :meth:`loop.create_unix_server() `, as " +"well as :meth:`Server.start_serving() `, " +"and :meth:`Server.serve_forever() ` can be " +"used to decouple server instantiation and serving. The " +"new :meth:`Server.is_serving() ` method returns " +"``True`` if the server is serving. :class:`~asyncio.Server` objects are now " +"asynchronous context managers::" msgstr "" msgid "(Contributed by Yury Selivanov in :issue:`32662`.)" msgstr "" msgid "" -"Callback objects returned by :func:`loop.call_later() ` gained the new :meth:`when() ` method " -"which returns an absolute scheduled callback timestamp. (Contributed by " -"Andrew Svetlov in :issue:`32741`.)" +"Callback objects returned by :func:`loop.call_later() " +"` gained the new :meth:`when() " +"` method which returns an absolute scheduled " +"callback timestamp. (Contributed by Andrew Svetlov in :issue:`32741`.)" msgstr "" msgid "" -"The :meth:`loop.create_datagram_endpoint() \\ ` method gained support for Unix sockets. " -"(Contributed by Quentin Dawans in :issue:`31245`.)" +"The :meth:`loop.create_datagram_endpoint() \\ " +"` method gained support for Unix " +"sockets. (Contributed by Quentin Dawans in :issue:`31245`.)" msgstr "" msgid "" "The :func:`asyncio.open_connection`, :func:`asyncio.start_server` " -"functions, :meth:`loop.create_connection() `, :meth:`loop.create_server() `, :meth:`loop.create_accepted_socket() ` methods and their corresponding UNIX socket " -"variants now accept the *ssl_handshake_timeout* keyword argument. " +"functions, :meth:`loop.create_connection() " +"`, :meth:`loop.create_server() " +"`, :meth:`loop.create_accepted_socket() " +"` methods and their corresponding UNIX " +"socket variants now accept the *ssl_handshake_timeout* keyword argument. " "(Contributed by Neil Aspinall in :issue:`29970`.)" msgstr "" @@ -863,29 +870,32 @@ msgid "" msgstr "" msgid "" -"The asyncio source has been converted to use the :keyword:`async`/:keyword:" -"`await` syntax. (Contributed by Andrew Svetlov in :issue:`32193`.)" +"The asyncio source has been converted to use " +"the :keyword:`async`/:keyword:`await` syntax. (Contributed by Andrew Svetlov " +"in :issue:`32193`.)" msgstr "" msgid "" -"The new :meth:`ReadTransport.is_reading() ` method can be used to determine the reading state of the " -"transport. Additionally, calls to :meth:`ReadTransport.resume_reading() " -"` and :meth:`ReadTransport." -"pause_reading() ` are now idempotent. " -"(Contributed by Yury Selivanov in :issue:`32356`.)" +"The new :meth:`ReadTransport.is_reading() " +"` method can be used to determine the " +"reading state of the transport. Additionally, calls " +"to :meth:`ReadTransport.resume_reading() " +"` " +"and :meth:`ReadTransport.pause_reading() " +"` are now idempotent. (Contributed by " +"Yury Selivanov in :issue:`32356`.)" msgstr "" msgid "" "Loop methods which accept socket paths now support passing :term:`path-like " -"objects `. (Contributed by Yury Selivanov in :issue:" -"`32066`.)" +"objects `. (Contributed by Yury Selivanov " +"in :issue:`32066`.)" msgstr "" 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`.)" +"flag set by default. (Contributed by Yury Selivanov and Victor Stinner " +"in :issue:`27456`.)" msgstr "" msgid "" @@ -945,8 +955,8 @@ msgid "concurrent.futures" msgstr "" msgid "" -":class:`ProcessPoolExecutor ` and :" -"class:`ThreadPoolExecutor ` now " +":class:`ProcessPoolExecutor ` " +"and :class:`ThreadPoolExecutor ` now " "support the new *initializer* and *initargs* constructor arguments. " "(Contributed by Antoine Pitrou in :issue:`21423`.)" msgstr "" @@ -967,11 +977,12 @@ msgid "" msgstr "" msgid "" -"The new :func:`~contextlib.asynccontextmanager`, :class:`~contextlib." -"AbstractAsyncContextManager`, and :class:`~contextlib.AsyncExitStack` have " -"been added to complement their synchronous counterparts. (Contributed by " -"Jelle Zijlstra in :issue:`29679` and :issue:`30241`, and by Alexander Mohr " -"and Ilya Kulakov in :issue:`29302`.)" +"The " +"new :func:`~contextlib.asynccontextmanager`, :class:`~contextlib.AbstractAsyncContextManager`, " +"and :class:`~contextlib.AsyncExitStack` have been added to complement their " +"synchronous counterparts. (Contributed by Jelle Zijlstra in :issue:`29679` " +"and :issue:`30241`, and by Alexander Mohr and Ilya Kulakov " +"in :issue:`29302`.)" msgstr "" msgid "cProfile" @@ -979,8 +990,8 @@ msgstr "" msgid "" "The :mod:`cProfile` command line now accepts ``-m module_name`` as an " -"alternative to script path. (Contributed by Sanyam Khurana in :issue:" -"`21862`.)" +"alternative to script path. (Contributed by Sanyam Khurana " +"in :issue:`21862`.)" msgstr "" msgid "crypt" @@ -1002,8 +1013,9 @@ msgstr "" msgid "" "The new :meth:`datetime.fromisoformat() ` " "method constructs a :class:`~datetime.datetime` object from a string in one " -"of the formats output by :meth:`datetime.isoformat() `. (Contributed by Paul Ganssle in :issue:`15873`.)" +"of the formats output by :meth:`datetime.isoformat() " +"`. (Contributed by Paul Ganssle " +"in :issue:`15873`.)" msgstr "" msgid "" @@ -1024,8 +1036,8 @@ msgstr "" msgid "" "The :mod:`decimal` module now uses :ref:`context variables ` to store the decimal context. (Contributed by Yury Selivanov in :" -"issue:`32630`.)" +"pep567>` to store the decimal context. (Contributed by Yury Selivanov " +"in :issue:`32630`.)" msgstr "" msgid "dis" @@ -1083,8 +1095,8 @@ msgid "" "be used before a POSIX ``fork()`` call to make the GC copy-on-write friendly " "or to speed up collection. The new :func:`gc.unfreeze` functions reverses " "this operation. Additionally, :func:`gc.get_freeze_count` can be used to " -"obtain the number of frozen objects. (Contributed by Li Zekun in :issue:" -"`31558`.)" +"obtain the number of frozen objects. (Contributed by Li Zekun " +"in :issue:`31558`.)" msgstr "" msgid "hmac" @@ -1100,9 +1112,10 @@ msgid "http.client" msgstr "" 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`.)" +":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 "" msgid "http.server" @@ -1134,8 +1147,8 @@ msgid "idlelib and IDLE" msgstr "" msgid "" -"Multiple fixes for autocompletion. (Contributed by Louie Lu in :issue:" -"`15786`.)" +"Multiple fixes for autocompletion. (Contributed by Louie Lu " +"in :issue:`15786`.)" msgstr "" msgid "" @@ -1169,8 +1182,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 "" msgid "" @@ -1214,8 +1227,8 @@ 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`.)" +"Options menu. (Contributed by Tal Einat and Saimadhav Heblikar " +"in :issue:`17535`.)" msgstr "" msgid "importlib" @@ -1223,9 +1236,9 @@ msgstr "" msgid "" "The :class:`importlib.abc.ResourceReader` ABC was introduced to support the " -"loading of resources from packages. See also :ref:" -"`whatsnew37_importlib_resources`. (Contributed by Barry Warsaw, Brett Cannon " -"in :issue:`32248`.)" +"loading of resources from packages. See " +"also :ref:`whatsnew37_importlib_resources`. (Contributed by Barry Warsaw, " +"Brett Cannon in :issue:`32248`.)" msgstr "" msgid "" @@ -1235,9 +1248,9 @@ msgstr "" msgid "" ":func:`importlib.find_spec` now raises :exc:`ModuleNotFoundError` instead " -"of :exc:`AttributeError` if the specified parent module is not a package (i." -"e. lacks a ``__path__`` attribute). (Contributed by Milan Oberkirch in :" -"issue:`30436`.)" +"of :exc:`AttributeError` if the specified parent module is not a package " +"(i.e. lacks a ``__path__`` attribute). (Contributed by Milan Oberkirch " +"in :issue:`30436`.)" msgstr "" msgid "" @@ -1252,27 +1265,27 @@ msgstr "" msgid "" "The new :meth:`TextIOWrapper.reconfigure() ` " "method can be used to reconfigure the text stream with the new settings. " -"(Contributed by Antoine Pitrou in :issue:`30526` and INADA Naoki in :issue:" -"`15216`.)" +"(Contributed by Antoine Pitrou in :issue:`30526` and INADA Naoki " +"in :issue:`15216`.)" msgstr "" msgid "ipaddress" msgstr "" msgid "" -"The new ``subnet_of()`` and ``supernet_of()`` methods of :class:`ipaddress." -"IPv6Network` and :class:`ipaddress.IPv4Network` can be used for network " -"containment tests. (Contributed by Michel Albert and Cheryl Sabella in :" -"issue:`20825`.)" +"The new ``subnet_of()`` and ``supernet_of()`` methods " +"of :class:`ipaddress.IPv6Network` and :class:`ipaddress.IPv4Network` can be " +"used for network containment tests. (Contributed by Michel Albert and Cheryl " +"Sabella in :issue:`20825`.)" msgstr "" msgid "itertools" msgstr "" msgid "" -":func:`itertools.islice` now accepts :meth:`integer-like objects ` as start, stop, and slice arguments. (Contributed by Will " -"Roberts in :issue:`30537`.)" +":func:`itertools.islice` now accepts :meth:`integer-like objects " +"` as start, stop, and slice arguments. (Contributed by " +"Will Roberts in :issue:`30537`.)" msgstr "" msgid "locale" @@ -1331,8 +1344,8 @@ msgstr "" msgid "" "The new :meth:`Database.Close() ` method can be used " -"to close the :abbr:`MSI` database. (Contributed by Berker Peksag in :issue:" -"`20486`.)" +"to close the :abbr:`MSI` database. (Contributed by Berker Peksag " +"in :issue:`20486`.)" msgstr "" msgid "multiprocessing" @@ -1371,15 +1384,15 @@ msgstr "" 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`.)" +"callbacks to be executed at process fork. (Contributed by Antoine Pitrou " +"in :issue:`16500`.)" msgstr "" msgid "" -"Added :func:`os.preadv` (combine the functionality of :func:`os.readv` and :" -"func:`os.pread`) and :func:`os.pwritev` functions (combine the functionality " -"of :func:`os.writev` and :func:`os.pwrite`). (Contributed by Pablo Galindo " -"in :issue:`31368`.)" +"Added :func:`os.preadv` (combine the functionality of :func:`os.readv` " +"and :func:`os.pread`) and :func:`os.pwritev` functions (combine the " +"functionality of :func:`os.writev` and :func:`os.pwrite`). (Contributed by " +"Pablo Galindo in :issue:`31368`.)" msgstr "" msgid "" @@ -1394,9 +1407,9 @@ msgid "" msgstr "" 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`.)" +"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 "" msgid "pathlib" @@ -1429,9 +1442,9 @@ msgid "" ":func:`py_compile.compile` -- and by extension, :mod:`compileall` -- now " "respects the :envvar:`SOURCE_DATE_EPOCH` environment variable by " "unconditionally creating ``.pyc`` files for hash-based validation. This " -"allows for guaranteeing `reproducible builds `_ of ``.pyc`` files when they are created eagerly. (Contributed by " -"Bernhard M. Wiedemann in :issue:`29708`.)" +"allows for guaranteeing `reproducible builds `_ of ``.pyc`` files when they are created eagerly. (Contributed " +"by Bernhard M. Wiedemann in :issue:`29708`.)" msgstr "" msgid "pydoc" @@ -1439,8 +1452,8 @@ msgstr "" 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`.)" +"``-n`` command-line argument. (Contributed by Feanil Patel " +"in :issue:`31128`.)" msgstr "" msgid "queue" @@ -1456,13 +1469,13 @@ msgstr "" 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`.)" +"be set within the scope of a group. (Contributed by Serhiy Storchaka " +"in :issue:`31690`.)" msgstr "" msgid "" -":func:`re.split` now supports splitting on a pattern like ``r'\\b'``, ``'^" -"$'`` or ``(?=-)`` that matches an empty string. (Contributed by Serhiy " +":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 "" @@ -1476,14 +1489,14 @@ msgstr "" msgid "" ":exc:`FutureWarning` is now emitted if a regular expression contains " "character set constructs that will change semantically in the future, such " -"as nested sets and set operations. (Contributed by Serhiy Storchaka in :" -"issue:`30349`.)" +"as nested sets and set operations. (Contributed by Serhiy Storchaka " +"in :issue:`30349`.)" msgstr "" 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`.)" +"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 "" msgid "signal" @@ -1508,15 +1521,15 @@ msgstr "" msgid "" "The new :func:`socket.close` function closes the passed socket file " "descriptor. This function should be used instead of :func:`os.close` for " -"better compatibility across platforms. (Contributed by Christian Heimes in :" -"issue:`32454`.)" +"better compatibility across platforms. (Contributed by Christian Heimes " +"in :issue:`32454`.)" msgstr "" 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:" -"`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constants. (Contributed by Omar " -"Sandoval in :issue:`26273` and Nathaniel J. Smith in :issue:`29728`.)" +"(Linux 2.6.13), :data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37), " +"and :data:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constants. (Contributed by " +"Omar Sandoval in :issue:`26273` and Nathaniel J. Smith in :issue:`29728`.)" msgstr "" msgid "" @@ -1541,39 +1554,41 @@ msgstr "" msgid "" "Add a new :attr:`socketserver.ForkingMixIn.block_on_close` class attribute " -"to :class:`socketserver.ForkingMixIn` and :class:`socketserver." -"ThreadingMixIn` classes. Set the class attribute to ``False`` to get the " -"pre-3.7 behaviour." +"to :class:`socketserver.ForkingMixIn` " +"and :class:`socketserver.ThreadingMixIn` classes. Set the class attribute to " +"``False`` to get the pre-3.7 behaviour." msgstr "" msgid "sqlite3" msgstr "" 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`.)" +":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 "" 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`.)" +"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 "" msgid "ssl" msgstr "" 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 " -"during TLS handshake. Any certificate validation error including failing " -"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.hostname_checks_common_name `. (Contributed by Christian Heimes in :issue:" -"`31399`.)" +"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 during TLS handshake. Any certificate validation error " +"including failing 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.hostname_checks_common_name " +"`. (Contributed by Christian " +"Heimes in :issue:`31399`.)" msgstr "" msgid "" @@ -1589,9 +1604,9 @@ msgid "" msgstr "" msgid "" -":func:`~ssl.match_hostname` no longer supports partial wildcards like ``www*." -"example.org``. (Contributed by Mandeep Singh in :issue:`23033` and Christian " -"Heimes in :issue:`31399`.)" +":func:`~ssl.match_hostname` no longer supports partial wildcards like " +"``www*.example.org``. (Contributed by Mandeep Singh in :issue:`23033` and " +"Christian Heimes in :issue:`31399`.)" msgstr "" msgid "" @@ -1604,11 +1619,11 @@ msgstr "" msgid "" "Validation of server certificates containing internationalized domain names " -"(IDNs) is now supported. As part of this change, the :attr:`SSLSocket." -"server_hostname ` attribute now stores the " -"expected hostname in A-label form (``\"xn--pythn-mua.org\"``), rather than " -"the U-label form (``\"pythön.org\"``). (Contributed by Nathaniel J. Smith " -"and Christian Heimes in :issue:`28414`.)" +"(IDNs) is now supported. As part of this change, " +"the :attr:`SSLSocket.server_hostname ` " +"attribute now stores the expected hostname in A-label form (``\"xn--pythn-" +"mua.org\"``), rather than the U-label form (``\"pythön.org\"``). " +"(Contributed by Nathaniel J. Smith and Christian Heimes in :issue:`28414`.)" msgstr "" msgid "" @@ -1616,29 +1631,31 @@ msgid "" "OpenSSL 1.1.1. At the time of Python 3.7.0 release, OpenSSL 1.1.1 is still " "under development and TLS 1.3 hasn't been finalized yet. The TLS 1.3 " "handshake and protocol behaves slightly differently than TLS 1.2 and " -"earlier, see :ref:`ssl-tlsv1_3`. (Contributed by Christian Heimes in :issue:" -"`32947`, :issue:`20995`, :issue:`29136`, :issue:`30622` and :issue:`33618`)" +"earlier, see :ref:`ssl-tlsv1_3`. (Contributed by Christian Heimes " +"in :issue:`32947`, :issue:`20995`, :issue:`29136`, :issue:`30622` " +"and :issue:`33618`)" msgstr "" msgid "" ":class:`~ssl.SSLSocket` and :class:`~ssl.SSLObject` no longer have a public " "constructor. Direct instantiation was never a documented and supported " -"feature. Instances must be created with :class:`~ssl.SSLContext` methods :" -"meth:`~ssl.SSLContext.wrap_socket` and :meth:`~ssl.SSLContext.wrap_bio`. " -"(Contributed by Christian Heimes in :issue:`32951`)" +"feature. Instances must be created with :class:`~ssl.SSLContext` " +"methods :meth:`~ssl.SSLContext.wrap_socket` " +"and :meth:`~ssl.SSLContext.wrap_bio`. (Contributed by Christian Heimes " +"in :issue:`32951`)" msgstr "" msgid "" "OpenSSL 1.1 APIs for setting the minimum and maximum TLS protocol version " -"are available as :attr:`SSLContext.minimum_version ` and :attr:`SSLContext.maximum_version `. Supported protocols are indicated by several new flags, " -"such as :data:`~ssl.HAS_TLSv1_1`. (Contributed by Christian Heimes in :issue:" -"`32609`.)" +"are available as :attr:`SSLContext.minimum_version " +"` and :attr:`SSLContext.maximum_version " +"`. Supported protocols are indicated by " +"several new flags, such as :data:`~ssl.HAS_TLSv1_1`. (Contributed by " +"Christian Heimes in :issue:`32609`.)" msgstr "" msgid "string" -msgstr "" +msgstr "ciąg znaków" msgid "" ":class:`string.Template` now lets you to optionally modify the regular " @@ -1665,26 +1682,28 @@ msgstr "" msgid "" "On Windows the default for *close_fds* was changed from ``False`` to " "``True`` when redirecting the standard handles. It's now possible to set " -"*close_fds* to true when redirecting the standard handles. See :class:" -"`subprocess.Popen`. This means that *close_fds* now defaults to ``True`` on " -"all supported platforms. (Contributed by Segev Finer in :issue:`19764`.)" +"*close_fds* to true when redirecting the standard handles. " +"See :class:`subprocess.Popen`. This means that *close_fds* now defaults to " +"``True`` on all supported platforms. (Contributed by Segev Finer " +"in :issue:`19764`.)" msgstr "" msgid "" -"The subprocess module is now more graceful when handling :exc:" -"`KeyboardInterrupt` during :func:`subprocess.call`, :func:`subprocess.run`, " -"or in a :class:`~subprocess.Popen` context manager. It now waits a short " -"amount of time for the child to exit, before continuing the handling of the " -"``KeyboardInterrupt`` exception. (Contributed by Gregory P. Smith in :issue:" -"`25942`.)" +"The subprocess module is now more graceful when " +"handling :exc:`KeyboardInterrupt` " +"during :func:`subprocess.call`, :func:`subprocess.run`, or in " +"a :class:`~subprocess.Popen` context manager. It now waits a short amount " +"of time for the child to exit, before continuing the handling of the " +"``KeyboardInterrupt`` exception. (Contributed by Gregory P. Smith " +"in :issue:`25942`.)" msgstr "" msgid "sys" -msgstr "" +msgstr "sys" msgid "" -"The new :func:`sys.breakpointhook` hook function is called by the built-in :" -"func:`breakpoint`. (Contributed by Barry Warsaw in :issue:`31353`.)" +"The new :func:`sys.breakpointhook` hook function is called by the built-" +"in :func:`breakpoint`. (Contributed by Barry Warsaw in :issue:`31353`.)" msgstr "" msgid "" @@ -1694,28 +1713,28 @@ msgstr "" msgid "" "The new :func:`sys.get_coroutine_origin_tracking_depth` function returns the " -"current coroutine origin tracking depth, as set by the new :func:`sys." -"set_coroutine_origin_tracking_depth`. :mod:`asyncio` has been converted to " -"use this new API instead of the deprecated :func:`sys." -"set_coroutine_wrapper`. (Contributed by Nathaniel J. Smith in :issue:" -"`32591`.)" +"current coroutine origin tracking depth, as set by the " +"new :func:`sys.set_coroutine_origin_tracking_depth`. :mod:`asyncio` has " +"been converted to use this new API instead of the " +"deprecated :func:`sys.set_coroutine_wrapper`. (Contributed by Nathaniel J. " +"Smith in :issue:`32591`.)" msgstr "" msgid "time" msgstr "" msgid "" -":pep:`564` adds six new functions with nanosecond resolution to the :mod:" -"`time` module:" +":pep:`564` adds six new functions with nanosecond resolution to " +"the :mod:`time` module:" msgstr "" msgid "New clock identifiers have been added:" msgstr "" msgid "" -":data:`time.CLOCK_BOOTTIME` (Linux): Identical to :data:`time." -"CLOCK_MONOTONIC`, except it also includes any time that the system is " -"suspended." +":data:`time.CLOCK_BOOTTIME` (Linux): Identical " +"to :data:`time.CLOCK_MONOTONIC`, except it also includes any time that the " +"system is suspended." msgstr "" msgid "" @@ -1764,17 +1783,17 @@ msgid "types" msgstr "" msgid "" -"The new :class:`~types.WrapperDescriptorType`, :class:`~types." -"MethodWrapperType`, :class:`~types.MethodDescriptorType`, and :class:`~types." -"ClassMethodDescriptorType` classes are now available. (Contributed by Manuel " -"Krebber and Guido van Rossum in :issue:`29377`, and Serhiy Storchaka in :" -"issue:`32265`.)" +"The " +"new :class:`~types.WrapperDescriptorType`, :class:`~types.MethodWrapperType`, :class:`~types.MethodDescriptorType`, " +"and :class:`~types.ClassMethodDescriptorType` classes are now available. " +"(Contributed by Manuel Krebber and Guido van Rossum in :issue:`29377`, and " +"Serhiy Storchaka in :issue:`32265`.)" msgstr "" msgid "" "The new :func:`types.resolve_bases` function resolves MRO entries " -"dynamically as specified by :pep:`560`. (Contributed by Ivan Levkivskyi in :" -"issue:`32717`.)" +"dynamically as specified by :pep:`560`. (Contributed by Ivan Levkivskyi " +"in :issue:`32717`.)" msgstr "" msgid "unicodedata" @@ -1792,9 +1811,10 @@ msgstr "" 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 " -"foo`` runs ``foo_tests.SomeTest.test_something``, ``bar_tests.SomeTest." -"test_foo``, but not ``bar_tests.FooTest.test_something``. (Contributed by " -"Jonas Haag in :issue:`32071`.)" +"foo`` runs ``foo_tests.SomeTest.test_something``, " +"``bar_tests.SomeTest.test_foo``, but not " +"``bar_tests.FooTest.test_something``. (Contributed by Jonas Haag " +"in :issue:`32071`.)" msgstr "" msgid "unittest.mock" @@ -1807,10 +1827,11 @@ msgid "" msgstr "" msgid "" -"The new :func:`~unittest.mock.seal` function allows sealing :class:" -"`~unittest.mock.Mock` instances, which will disallow further creation of " -"attribute mocks. The seal is applied recursively to all attributes that are " -"themselves mocks. (Contributed by Mario Corchero in :issue:`30541`.)" +"The new :func:`~unittest.mock.seal` function allows " +"sealing :class:`~unittest.mock.Mock` instances, which will disallow further " +"creation of attribute mocks. The seal is applied recursively to all " +"attributes that are themselves mocks. (Contributed by Mario Corchero " +"in :issue:`30541`.)" msgstr "" msgid "urllib.parse" @@ -1823,7 +1844,7 @@ msgid "" msgstr "" msgid "uu" -msgstr "" +msgstr "uu" msgid "" "The :func:`uu.encode` function now accepts an optional *backtick* keyword " @@ -1837,8 +1858,8 @@ msgstr "" msgid "" "The new :attr:`UUID.is_safe ` attribute relays " "information from the platform about whether generated UUIDs are generated " -"with a multiprocessing-safe method. (Contributed by Barry Warsaw in :issue:" -"`22807`.)" +"with a multiprocessing-safe method. (Contributed by Barry Warsaw " +"in :issue:`22807`.)" msgstr "" msgid "" @@ -1891,8 +1912,8 @@ msgid "" msgstr "" msgid "" -"(Contributed by Nick Coghlan and Victor Stinner in :issue:`20361`, :issue:" -"`32043`, and :issue:`32230`.)" +"(Contributed by Nick Coghlan and Victor Stinner " +"in :issue:`20361`, :issue:`32043`, and :issue:`32230`.)" msgstr "" msgid "" @@ -1915,9 +1936,9 @@ msgid "xmlrpc.server" msgstr "" msgid "" -":meth:`SimpleXMLRPCDispatcher.register_function ` can now be used as a decorator. (Contributed by " -"Xiang Zhang in :issue:`7769`.)" +":meth:`SimpleXMLRPCDispatcher.register_function " +"` can now be used as a decorator. " +"(Contributed by Xiang Zhang in :issue:`7769`.)" msgstr "" msgid "zipapp" @@ -1953,10 +1974,10 @@ msgid "C API Changes" msgstr "Zmiany w C API" msgid "" -"A new API for thread-local storage has been implemented. See :ref:" -"`whatsnew37-pep539` for an overview and :ref:`thread-specific-storage-api` " -"for a complete reference. (Contributed by Masayuki Yamamoto in :issue:" -"`25658`.)" +"A new API for thread-local storage has been implemented. " +"See :ref:`whatsnew37-pep539` for an overview and :ref:`thread-specific-" +"storage-api` for a complete reference. (Contributed by Masayuki Yamamoto " +"in :issue:`25658`.)" msgstr "" msgid "" @@ -1966,8 +1987,8 @@ msgstr "" msgid "" "The new :c:func:`PyImport_GetModule` function returns the previously " -"imported module with the given name. (Contributed by Eric Snow in :issue:" -"`28411`.)" +"imported module with the given name. (Contributed by Eric Snow " +"in :issue:`28411`.)" msgstr "" msgid "" @@ -1981,67 +2002,70 @@ msgid "" msgstr "" 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`.)" +"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 "" 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`.)" +"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 "" msgid "" -"The fields :c:member:`name` and :c:member:`doc` of structures :c:type:" -"`PyMemberDef`, :c:type:`PyGetSetDef`, :c:type:`PyStructSequence_Field`, :c:" -"type:`PyStructSequence_Desc`, and :c:type:`wrapperbase` are now of type " -"``const char *`` rather of ``char *``. (Contributed by Serhiy Storchaka in :" -"issue:`28761`.)" +"The fields :c:member:`name` and :c:member:`doc` of " +"structures :c:type:`PyMemberDef`, :c:type:`PyGetSetDef`, :c:type:`PyStructSequence_Field`, :c:type:`PyStructSequence_Desc`, " +"and :c:type:`wrapperbase` are now of type ``const char *`` rather of ``char " +"*``. (Contributed by Serhiy Storchaka in :issue:`28761`.)" msgstr "" 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`.)" +"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 "" 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`.)" +"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 "" msgid "" -"Added functions :c:func:`PySlice_Unpack` and :c:func:" -"`PySlice_AdjustIndices`. (Contributed by Serhiy Storchaka in :issue:`27867`.)" +"Added functions :c:func:`PySlice_Unpack` " +"and :c:func:`PySlice_AdjustIndices`. (Contributed by Serhiy Storchaka " +"in :issue:`27867`.)" msgstr "" 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`.)" +":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 "" 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 "" msgid "" -"Added C API support for timezones with timezone constructors :c:func:" -"`PyTimeZone_FromOffset` and :c:func:`PyTimeZone_FromOffsetAndName`, and " -"access to the UTC singleton with :c:data:`PyDateTime_TimeZone_UTC`. " -"Contributed by Paul Ganssle in :issue:`10381`." +"Added C API support for timezones with timezone " +"constructors :c:func:`PyTimeZone_FromOffset` " +"and :c:func:`PyTimeZone_FromOffsetAndName`, and access to the UTC singleton " +"with :c:data:`PyDateTime_TimeZone_UTC`. Contributed by Paul Ganssle " +"in :issue:`10381`." msgstr "" 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:" -"`PyThreadState_SetAsyncExc` changed from :c:expr:`long` to :c:expr:`unsigned " -"long`. (Contributed by Serhiy Storchaka in :issue:`6532`.)" +"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:`PyThreadState_SetAsyncExc` changed from :c:expr:`long` " +"to :c:expr:`unsigned long`. (Contributed by Serhiy Storchaka " +"in :issue:`6532`.)" msgstr "" msgid "" @@ -2052,12 +2076,12 @@ msgstr "" msgid "" "Changes to the startup sequence and the management of dynamic memory " -"allocators mean that the long documented requirement to call :c:func:" -"`Py_Initialize` before calling most C API functions is now relied on more " -"heavily, and failing to abide by it may lead to segfaults in embedding " -"applications. See the :ref:`porting-to-python-37` section in this document " -"and the :ref:`pre-init-safe` section in the C API documentation for more " -"details." +"allocators mean that the long documented requirement to " +"call :c:func:`Py_Initialize` before calling most C API functions is now " +"relied on more heavily, and failing to abide by it may lead to segfaults in " +"embedding applications. See the :ref:`porting-to-python-37` section in this " +"document and the :ref:`pre-init-safe` section in the C API documentation for " +"more details." msgstr "" msgid "" @@ -2079,23 +2103,23 @@ msgstr "" 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`.)" +"adjusted to behave like string slices. (Contributed by Xiang Zhang " +"in :issue:`28822`.)" msgstr "" msgid "Build Changes" msgstr "" msgid "" -"Support for building ``--without-threads`` has been removed. The :mod:" -"`threading` module is now always available. (Contributed by Antoine Pitrou " -"in :issue:`31370`.)." +"Support for building ``--without-threads`` has been removed. " +"The :mod:`threading` module is now always available. (Contributed by Antoine " +"Pitrou in :issue:`31370`.)." msgstr "" 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 " -"libffi is now required when building ``_ctypes`` on such platforms. " +"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 libffi is now required when building ``_ctypes`` on such platforms. " "(Contributed by Zachary Ware in :issue:`27979`.)" msgstr "" @@ -2120,14 +2144,14 @@ msgstr "" 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 " -"the ``METH_FASTCALL`` convention. (Contributed by Victor Stinner in :issue:" -"`29300`, :issue:`29507`, :issue:`29452`, and :issue:`29286`.)" +"the ``METH_FASTCALL`` convention. (Contributed by Victor Stinner " +"in :issue:`29300`, :issue:`29507`, :issue:`29452`, and :issue:`29286`.)" msgstr "" 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`.)" +"up to 30% on macOS. (Contributed by Victor Stinner, INADA Naoki " +"in :issue:`29585`, and Ivan Levkivskyi in :issue:`31333`.)" msgstr "" msgid "" @@ -2143,8 +2167,8 @@ msgstr "" 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`.)" +"make it up to 15 times faster. (Contributed by Yury Selivanov " +"in :issue:`32296`.)" msgstr "" msgid "" @@ -2168,15 +2192,16 @@ msgid "" msgstr "" 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`.)" +"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 "" 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`.)" +"be up to 40-75% faster. (Contributed by Elliot Gorokhovsky " +"in :issue:`28685`.)" msgstr "" msgid "" @@ -2186,8 +2211,9 @@ msgstr "" 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`.)" +"is not found and *obj* does not override :meth:`object.__getattr__` " +"or :meth:`object.__getattribute__`. (Contributed by INADA Naoki " +"in :issue:`32544`.)" msgstr "" msgid "" @@ -2229,35 +2255,35 @@ msgstr "" 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 " -"by about 10% depending on the pattern. (Contributed by INADA Naoki in :issue:" -"`31671`.)" +"by about 10% depending on the pattern. (Contributed by INADA Naoki " +"in :issue:`31671`.)" msgstr "" msgid "" -"The :meth:`~selectors.BaseSelector.modify` methods of classes :class:" -"`selectors.EpollSelector`, :class:`selectors.PollSelector` and :class:" -"`selectors.DevpollSelector` may be around 10% faster under heavy loads. " -"(Contributed by Giampaolo Rodola' in :issue:`30014`)" +"The :meth:`~selectors.BaseSelector.modify` methods of " +"classes :class:`selectors.EpollSelector`, :class:`selectors.PollSelector` " +"and :class:`selectors.DevpollSelector` may be around 10% faster under heavy " +"loads. (Contributed by Giampaolo Rodola' in :issue:`30014`)" msgstr "" msgid "" "Constant folding has been moved from the peephole optimizer to the new AST " "optimizer, which is able perform optimizations more consistently. " -"(Contributed by Eugene Toder and INADA Naoki in :issue:`29469` and :issue:" -"`11549`.)" +"(Contributed by Eugene Toder and INADA Naoki in :issue:`29469` " +"and :issue:`11549`.)" msgstr "" 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 :" -"func:`issubclass` on them 1.5x faster. This also reduces Python start-up " -"time by up to 10%. (Contributed by Ivan Levkivskyi and INADA Naoki in :issue:" -"`31333`)" +"makes creation of abstract base classes, and calling :func:`isinstance` " +"and :func:`issubclass` on them 1.5x faster. This also reduces Python start-" +"up time by up to 10%. (Contributed by Ivan Levkivskyi and INADA Naoki " +"in :issue:`31333`)" msgstr "" msgid "" -"Significant speed improvements to alternate constructors for :class:" -"`datetime.date` and :class:`datetime.datetime` by using fast-path " +"Significant speed improvements to alternate constructors " +"for :class:`datetime.date` and :class:`datetime.datetime` by using fast-path " "constructors when not constructing subclasses. (Contributed by Paul Ganssle " "in :issue:`32403`)" msgstr "" @@ -2291,8 +2317,8 @@ msgid "" "(previously unset), and their ``__spec__.origin`` is also set to ``None`` " "(previously the string ``\"namespace\"``). See :issue:`32305`. Also, the " "namespace module object's ``__spec__.loader`` is set to the same value as " -"``__loader__`` (previously, the former was set to ``None``). See :issue:" -"`32303`." +"``__loader__`` (previously, the former was set to ``None``). " +"See :issue:`32303`." msgstr "" msgid "" @@ -2304,8 +2330,8 @@ msgstr "" 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 " -"ended with a byte equivalent to CR. (Contributed by Bo Bayles in :issue:" -"`32304`.)" +"ended with a byte equivalent to CR. (Contributed by Bo Bayles " +"in :issue:`32304`.)" msgstr "" msgid "Deprecated Python Behavior" @@ -2327,8 +2353,9 @@ msgstr "" msgid "" "Returning a subclass of :class:`complex` from :meth:`object.__complex__` is " "deprecated and will be an error in future Python versions. This makes " -"``__complex__()`` consistent with :meth:`object.__int__` and :meth:`object." -"__float__`. (Contributed by Serhiy Storchaka in :issue:`28894`.)" +"``__complex__()`` consistent with :meth:`object.__int__` " +"and :meth:`object.__float__`. (Contributed by Serhiy Storchaka " +"in :issue:`28894`.)" msgstr "" msgid "Deprecated Python modules, functions and methods" @@ -2339,22 +2366,22 @@ msgstr "" 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`.)" +"Use :func:`aifc.open` instead. (Contributed by Brian Curtin " +"in :issue:`31985`.)" msgstr "" msgid "" "Support for directly ``await``-ing instances of :class:`asyncio.Lock` and " "other asyncio synchronization primitives has been deprecated. An " "asynchronous context manager must be used in order to acquire and release " -"the synchronization resource. (Contributed by Andrew Svetlov in :issue:" -"`32253`.)" +"the synchronization resource. (Contributed by Andrew Svetlov " +"in :issue:`32253`.)" msgstr "" msgid "" "The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks` " -"methods have been deprecated. (Contributed by Andrew Svetlov in :issue:" -"`32250`.)" +"methods have been deprecated. (Contributed by Andrew Svetlov " +"in :issue:`32250`.)" msgstr "" msgid "" @@ -2377,8 +2404,8 @@ msgid "" "classes will raise a :exc:`TypeError` (e.g. ``1 in Color``); similarly, " "attempting to check for non-Flag objects in a :class:`Flag` member will " "raise :exc:`TypeError` (e.g. ``1 in Perm.RW``); currently, both operations " -"return :const:`False` instead. (Contributed by Ethan Furman in :issue:" -"`33217`.)" +"return :const:`False` instead. (Contributed by Ethan Furman " +"in :issue:`33217`.)" msgstr "" msgid "gettext" @@ -2386,18 +2413,21 @@ msgstr "" 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`.)" +"deprecated. It never correctly worked. (Contributed by Serhiy Storchaka " +"in :issue:`28692`.)" msgstr "" msgid "" -"Methods :meth:`MetaPathFinder.find_module() ` (replaced by :meth:`MetaPathFinder.find_spec() `) and :meth:`PathEntryFinder.find_loader() " -"` (replaced by :meth:" -"`PathEntryFinder.find_spec() `) " -"both deprecated in Python 3.4 now emit :exc:`DeprecationWarning`. " -"(Contributed by Matthias Bussonnier in :issue:`29576`)" +"Methods :meth:`MetaPathFinder.find_module() " +"` (replaced " +"by :meth:`MetaPathFinder.find_spec() " +"`) " +"and :meth:`PathEntryFinder.find_loader() " +"` (replaced " +"by :meth:`PathEntryFinder.find_spec() " +"`) both deprecated in Python 3.4 " +"now emit :exc:`DeprecationWarning`. (Contributed by Matthias Bussonnier " +"in :issue:`29576`)" msgstr "" msgid "" @@ -2423,20 +2453,22 @@ msgstr "" msgid "" ":mod:`dummy_threading` and :mod:`_dummy_thread` have been deprecated. It is " -"no longer possible to build Python with threading disabled. Use :mod:" -"`threading` instead. (Contributed by Antoine Pitrou in :issue:`31370`.)" +"no longer possible to build Python with threading disabled. " +"Use :mod:`threading` instead. (Contributed by Antoine Pitrou " +"in :issue:`31370`.)" msgstr "" msgid "" -"The silent argument value truncation in :func:`socket.htons` and :func:" -"`socket.ntohs` has been deprecated. In future versions of Python, if the " -"passed argument is larger than 16 bits, an exception will be raised. " +"The silent argument value truncation in :func:`socket.htons` " +"and :func:`socket.ntohs` has been deprecated. In future versions of Python, " +"if the passed argument is larger than 16 bits, an exception will be raised. " "(Contributed by Oren Milman in :issue:`28332`.)" msgstr "" msgid "" -":func:`ssl.wrap_socket` is deprecated. Use :meth:`ssl.SSLContext." -"wrap_socket` instead. (Contributed by Christian Heimes in :issue:`28124`.)" +":func:`ssl.wrap_socket` is deprecated. " +"Use :meth:`ssl.SSLContext.wrap_socket` instead. (Contributed by Christian " +"Heimes in :issue:`28124`.)" msgstr "" msgid "sunau" @@ -2444,19 +2476,19 @@ msgstr "" msgid "" ":func:`sunau.openfp` has been deprecated and will be removed in Python 3.9. " -"Use :func:`sunau.open` instead. (Contributed by Brian Curtin in :issue:" -"`31985`.)" +"Use :func:`sunau.open` instead. (Contributed by Brian Curtin " +"in :issue:`31985`.)" msgstr "" msgid "" -"Deprecated :func:`sys.set_coroutine_wrapper` and :func:`sys." -"get_coroutine_wrapper`." +"Deprecated :func:`sys.set_coroutine_wrapper` " +"and :func:`sys.get_coroutine_wrapper`." msgstr "" msgid "" "The undocumented ``sys.callstats()`` function has been deprecated and will " -"be removed in a future Python version. (Contributed by Victor Stinner in :" -"issue:`28799`.)" +"be removed in a future Python version. (Contributed by Victor Stinner " +"in :issue:`28799`.)" msgstr "" msgid "wave" @@ -2464,8 +2496,8 @@ msgstr "" msgid "" ":func:`wave.openfp` has been deprecated and will be removed in Python 3.9. " -"Use :func:`wave.open` instead. (Contributed by Brian Curtin in :issue:" -"`31985`.)" +"Use :func:`wave.open` instead. (Contributed by Brian Curtin " +"in :issue:`31985`.)" msgstr "" msgid "Deprecated functions and types of the C API" @@ -2475,15 +2507,15 @@ msgid "" "Function :c:func:`PySlice_GetIndicesEx` is deprecated and replaced with a " "macro if ``Py_LIMITED_API`` is not set or set to a value in the range " "between ``0x03050400`` and ``0x03060000`` (not inclusive), or is " -"``0x03060100`` or higher. (Contributed by Serhiy Storchaka in :issue:" -"`27867`.)" +"``0x03060100`` or higher. (Contributed by Serhiy Storchaka " +"in :issue:`27867`.)" msgstr "" msgid "" -":c:func:`PyOS_AfterFork` has been deprecated. Use :c:func:" -"`PyOS_BeforeFork`, :c:func:`PyOS_AfterFork_Parent` or :c:func:" -"`PyOS_AfterFork_Child()` instead. (Contributed by Antoine Pitrou in :issue:" -"`16500`.)" +":c:func:`PyOS_AfterFork` has been deprecated. " +"Use :c:func:`PyOS_BeforeFork`, :c:func:`PyOS_AfterFork_Parent` " +"or :c:func:`PyOS_AfterFork_Child()` instead. (Contributed by Antoine Pitrou " +"in :issue:`16500`.)" msgstr "" msgid "Platform Support Removals" @@ -2521,10 +2553,10 @@ msgstr "" msgid "" "CPython's own `CI configuration file `_ provides an example of using the SSL :source:" -"`compatibility testing infrastructure ` in " -"CPython's test suite to build and link against OpenSSL 1.1.0 rather than an " -"outdated system provided OpenSSL." +"v3.7.13/.travis.yml>`_ provides an example of using the " +"SSL :source:`compatibility testing infrastructure ` in CPython's test suite to build and link against OpenSSL " +"1.1.0 rather than an outdated system provided OpenSSL." msgstr "" msgid "API and Feature Removals" @@ -2573,9 +2605,9 @@ msgstr "" msgid "" "Removed previously deprecated in Python 2.4 classes ``Plist``, ``Dict`` and " "``_InternalDict`` in the :mod:`plistlib` module. Dict values in the result " -"of functions :func:`~plistlib.readPlist` and :func:`~plistlib." -"readPlistFromBytes` are now normal dicts. You no longer can use attribute " -"access to access items of these dictionaries." +"of functions :func:`~plistlib.readPlist` " +"and :func:`~plistlib.readPlistFromBytes` are now normal dicts. You no " +"longer can use attribute access to access items of these dictionaries." msgstr "" msgid "" @@ -2594,9 +2626,9 @@ msgstr "" msgid "" "Direct instantiation of :class:`ssl.SSLSocket` and :class:`ssl.SSLObject` " "objects is now prohibited. The constructors were never documented, tested, " -"or designed as public constructors. Users were supposed to use :func:`ssl." -"wrap_socket` or :class:`ssl.SSLContext`. (Contributed by Christian Heimes " -"in :issue:`32951`.)" +"or designed as public constructors. Users were supposed to " +"use :func:`ssl.wrap_socket` or :class:`ssl.SSLContext`. (Contributed by " +"Christian Heimes in :issue:`32951`.)" msgstr "" msgid "" @@ -2652,10 +2684,10 @@ msgid "" msgstr "" msgid "" -":pep:`479` is enabled for all code in Python 3.7, meaning that :exc:" -"`StopIteration` exceptions raised directly or indirectly in coroutines and " -"generators are transformed into :exc:`RuntimeError` exceptions. (Contributed " -"by Yury Selivanov in :issue:`32670`.)" +":pep:`479` is enabled for all code in Python 3.7, meaning " +"that :exc:`StopIteration` exceptions raised directly or indirectly in " +"coroutines and generators are transformed into :exc:`RuntimeError` " +"exceptions. (Contributed by Yury Selivanov in :issue:`32670`.)" msgstr "" msgid "" @@ -2672,8 +2704,8 @@ 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 " "cannot have a comma on either side, and the duplication of the parentheses " -"can be omitted only on calls. (Contributed by Serhiy Storchaka in :issue:" -"`32012` and :issue:`32023`.)" +"can be omitted only on calls. (Contributed by Serhiy Storchaka " +"in :issue:`32012` and :issue:`32023`.)" msgstr "" msgid "" @@ -2692,16 +2724,18 @@ msgstr "" msgid "" ":meth:`socketserver.ThreadingMixIn.server_close` now waits until all non-" -"daemon threads complete. Set the new :attr:`socketserver.ThreadingMixIn." -"block_on_close` class attribute to ``False`` to get the pre-3.7 behaviour. " -"(Contributed by Victor Stinner in :issue:`31233` and :issue:`33540`.)" +"daemon threads complete. Set the " +"new :attr:`socketserver.ThreadingMixIn.block_on_close` class attribute to " +"``False`` to get the pre-3.7 behaviour. (Contributed by Victor Stinner " +"in :issue:`31233` and :issue:`33540`.)" msgstr "" msgid "" ":meth:`socketserver.ForkingMixIn.server_close` now waits until all child " -"processes complete. Set the new :attr:`socketserver.ForkingMixIn." -"block_on_close` class attribute to ``False`` to get the pre-3.7 behaviour. " -"(Contributed by Victor Stinner in :issue:`31151` and :issue:`33540`.)" +"processes complete. Set the " +"new :attr:`socketserver.ForkingMixIn.block_on_close` class attribute to " +"``False`` to get the pre-3.7 behaviour. (Contributed by Victor Stinner " +"in :issue:`31151` and :issue:`33540`.)" msgstr "" msgid "" @@ -2717,18 +2751,18 @@ msgid "" msgstr "" msgid "" -"A format string argument for :meth:`string.Formatter.format` is now :ref:" -"`positional-only `. Passing it as a keyword " -"argument was deprecated in Python 3.5. (Contributed by Serhiy Storchaka in :" -"issue:`29193`.)" +"A format string argument for :meth:`string.Formatter.format` is " +"now :ref:`positional-only `. Passing it as a " +"keyword argument was deprecated in Python 3.5. (Contributed by Serhiy " +"Storchaka in :issue:`29193`.)" msgstr "" msgid "" -"Attributes :attr:`~http.cookies.Morsel.key`, :attr:`~http.cookies.Morsel." -"value` and :attr:`~http.cookies.Morsel.coded_value` of class :class:`http." -"cookies.Morsel` are now read-only. Assigning to them was deprecated in " -"Python 3.5. Use the :meth:`~http.cookies.Morsel.set` method for setting " -"them. (Contributed by Serhiy Storchaka in :issue:`29192`.)" +"Attributes :attr:`~http.cookies.Morsel.key`, :attr:`~http.cookies.Morsel.value` " +"and :attr:`~http.cookies.Morsel.coded_value` of " +"class :class:`http.cookies.Morsel` are now read-only. Assigning to them was " +"deprecated in Python 3.5. Use the :meth:`~http.cookies.Morsel.set` method " +"for setting them. (Contributed by Serhiy Storchaka in :issue:`29192`.)" msgstr "" msgid "" @@ -2739,8 +2773,8 @@ msgid "" msgstr "" msgid "" -"The :attr:`struct.Struct.format` type is now :class:`str` instead of :class:" -"`bytes`. (Contributed by Victor Stinner in :issue:`21071`.)" +"The :attr:`struct.Struct.format` type is now :class:`str` instead " +"of :class:`bytes`. (Contributed by Victor Stinner in :issue:`21071`.)" msgstr "" msgid "" @@ -2768,10 +2802,10 @@ msgid "" msgstr "" msgid "" -"Because :func:`shutil.rmtree` is now implemented using the :func:`os." -"scandir` function, the user specified handler *onerror* is now called with " -"the first argument ``os.scandir`` instead of ``os.listdir`` when listing the " -"directory is failed." +"Because :func:`shutil.rmtree` is now implemented using " +"the :func:`os.scandir` function, the user specified handler *onerror* is now " +"called with the first argument ``os.scandir`` instead of ``os.listdir`` when " +"listing the directory is failed." msgstr "" msgid "" @@ -2826,37 +2860,40 @@ msgid "" msgstr "" msgid "" -"On OSes that support :const:`socket.SOCK_NONBLOCK` or :const:`socket." -"SOCK_CLOEXEC` bit flags, the :attr:`socket.type ` no " -"longer has them applied. Therefore, checks like ``if sock.type == socket." -"SOCK_STREAM`` work as expected on all platforms. (Contributed by Yury " -"Selivanov in :issue:`32331`.)" +"On OSes that support :const:`socket.SOCK_NONBLOCK` " +"or :const:`socket.SOCK_CLOEXEC` bit flags, the :attr:`socket.type " +"` no longer has them applied. Therefore, checks like " +"``if sock.type == socket.SOCK_STREAM`` work as expected on all platforms. " +"(Contributed by Yury Selivanov in :issue:`32331`.)" msgstr "" 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 " -"standard handles. If you previously depended on handles being inherited when " -"using :class:`subprocess.Popen` with standard io redirection, you will have " -"to pass ``close_fds=False`` to preserve the previous behaviour, or use :attr:" -"`STARTUPINFO.lpAttributeList `." +"On Windows the default for the *close_fds* argument " +"of :class:`subprocess.Popen` was changed from :const:`False` " +"to :const:`True` when redirecting the standard handles. If you previously " +"depended on handles being inherited when using :class:`subprocess.Popen` " +"with standard io redirection, you will have to pass ``close_fds=False`` to " +"preserve the previous behaviour, or use :attr:`STARTUPINFO.lpAttributeList " +"`." msgstr "" msgid "" ":meth:`importlib.machinery.PathFinder.invalidate_caches` -- which implicitly " -"affects :func:`importlib.invalidate_caches` -- now deletes entries in :data:" -"`sys.path_importer_cache` which are set to ``None``. (Contributed by Brett " -"Cannon in :issue:`33169`.)" +"affects :func:`importlib.invalidate_caches` -- now deletes entries " +"in :data:`sys.path_importer_cache` which are set to ``None``. (Contributed " +"by Brett Cannon in :issue:`33169`.)" msgstr "" msgid "" -"In :mod:`asyncio`, :meth:`loop.sock_recv() `, :meth:" -"`loop.sock_sendall() `, :meth:`loop.sock_accept() " -"`, :meth:`loop.getaddrinfo() `, :meth:`loop.getnameinfo() ` have " -"been changed to be proper coroutine methods to match their documentation. " -"Previously, these methods returned :class:`asyncio.Future` instances. " -"(Contributed by Yury Selivanov in :issue:`32327`.)" +"In :mod:`asyncio`, :meth:`loop.sock_recv() " +"`, :meth:`loop.sock_sendall() " +"`, :meth:`loop.sock_accept() " +"`, :meth:`loop.getaddrinfo() " +"`, :meth:`loop.getnameinfo() " +"` have been changed to be proper coroutine methods " +"to match their documentation. Previously, these methods " +"returned :class:`asyncio.Future` instances. (Contributed by Yury Selivanov " +"in :issue:`32327`.)" msgstr "" msgid "" @@ -2867,15 +2904,15 @@ msgstr "" msgid "" ":attr:`Struct.format ` is now a :class:`str` instance " -"instead of a :class:`bytes` instance. (Contributed by Victor Stinner in :" -"issue:`21071`.)" +"instead of a :class:`bytes` instance. (Contributed by Victor Stinner " +"in :issue:`21071`.)" msgstr "" 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`.)" +"``required=True`` to :meth:`ArgumentParser.add_subparsers() " +"`. (Contributed by Anthony Sottile " +"in :issue:`26510`.)" msgstr "" msgid "" @@ -2891,8 +2928,9 @@ msgid "" "cannot tolerate such exceptions, the new :meth:`Calendar.itermonthdays3 " "` and :meth:`Calendar.itermonthdays4 " "` can be used. The new methods return " -"tuples and are not restricted by the range supported by :class:`datetime." -"date`. (Contributed by Alexander Belopolsky in :issue:`28292`.)" +"tuples and are not restricted by the range supported " +"by :class:`datetime.date`. (Contributed by Alexander Belopolsky " +"in :issue:`28292`.)" msgstr "" msgid "" @@ -2902,9 +2940,9 @@ msgstr "" msgid "" "The ``submit()`` method of :class:`concurrent.futures.ThreadPoolExecutor` " -"and :class:`concurrent.futures.ProcessPoolExecutor` now raises a :exc:" -"`RuntimeError` if called during interpreter shutdown. (Contributed by Mark " -"Nemec in :issue:`33097`.)" +"and :class:`concurrent.futures.ProcessPoolExecutor` now raises " +"a :exc:`RuntimeError` if called during interpreter shutdown. (Contributed by " +"Mark Nemec in :issue:`33097`.)" msgstr "" msgid "" @@ -2916,9 +2954,9 @@ msgid "" msgstr "" msgid "" -"Several undocumented internal imports were removed. One example is that ``os." -"errno`` is no longer available; use ``import errno`` directly instead. Note " -"that such undocumented internal imports may be removed any time without " +"Several undocumented internal imports were removed. One example is that " +"``os.errno`` is no longer available; use ``import errno`` directly instead. " +"Note that such undocumented internal imports may be removed any time without " "notice, even in micro version releases." msgstr "" @@ -2927,13 +2965,13 @@ msgstr "" msgid "" "The function :c:func:`PySlice_GetIndicesEx` is considered unsafe for " -"resizable sequences. If the slice indices are not instances of :class:" -"`int`, but objects that implement the :meth:`!__index__` method, the " -"sequence can be resized after passing its length to :c:func:`!" +"resizable sequences. If the slice indices are not instances " +"of :class:`int`, but objects that implement the :meth:`!__index__` method, " +"the sequence can be resized after passing its length to :c:func:`!" "PySlice_GetIndicesEx`. This can lead to returning indices out of the length " -"of the sequence. For avoiding possible problems use new functions :c:func:" -"`PySlice_Unpack` and :c:func:`PySlice_AdjustIndices`. (Contributed by Serhiy " -"Storchaka in :issue:`27867`.)" +"of the sequence. For avoiding possible problems use new " +"functions :c:func:`PySlice_Unpack` and :c:func:`PySlice_AdjustIndices`. " +"(Contributed by Serhiy Storchaka in :issue:`27867`.)" msgstr "" msgid "CPython bytecode changes" @@ -2951,9 +2989,8 @@ msgstr "" msgid "" "The file used to override :data:`sys.path` is now called ``._pth`` instead of ``'sys.path'``. See :ref:" -"`windows_finding_modules` for more information. (Contributed by Steve Dower " -"in :issue:`28137`.)" +"executable>._pth`` instead of ``'sys.path'``. See :ref:`finding_modules` for " +"more information. (Contributed by Steve Dower in :issue:`28137`.)" msgstr "" msgid "Other CPython implementation changes" @@ -2980,9 +3017,9 @@ msgid "" msgstr "" 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" +"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 "" msgid "" @@ -2990,8 +3027,8 @@ msgid "" "setting :c:data:`Py_BytesWarningFlag` to a value greater than one is no " "longer sufficient to both emit :exc:`BytesWarning` messages and have them " "converted to exceptions. Instead, the flag must be set (to cause the " -"warnings to be emitted in the first place), and an explicit ``error::" -"BytesWarning`` warnings filter added to convert them to exceptions." +"warnings to be emitted in the first place), and an explicit " +"``error::BytesWarning`` warnings filter added to convert them to exceptions." msgstr "" msgid "" @@ -3016,8 +3053,9 @@ msgid "" "respects all of the same environment settings as :c:func:`Py_Main` (in " "earlier Python versions, it respected an ill-defined subset of those " "environment variables, while in Python 3.7.0 it didn't read any of them due " -"to :issue:`34247`). If this behavior is unwanted, set :c:data:" -"`Py_IgnoreEnvironmentFlag` to 1 before calling :c:func:`Py_Initialize`." +"to :issue:`34247`). If this behavior is unwanted, " +"set :c:data:`Py_IgnoreEnvironmentFlag` to 1 before " +"calling :c:func:`Py_Initialize`." msgstr "" msgid "" @@ -3049,12 +3087,12 @@ msgid "Notable changes in Python 3.7.6" msgstr "" 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`.)" +"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 "" msgid "Notable changes in Python 3.7.10" @@ -3062,11 +3100,12 @@ msgstr "" msgid "" "Earlier Python versions allowed using both ``;`` and ``&`` as query " -"parameter separators in :func:`urllib.parse.parse_qs` and :func:`urllib." -"parse.parse_qsl`. Due to security concerns, and to conform with newer W3C " -"recommendations, this has been changed to allow only a single separator key, " -"with ``&`` as the default. This change also affects :func:`cgi.parse` and :" -"func:`cgi.parse_multipart` as they use the affected functions internally. " -"For more details, please see their respective documentation. (Contributed by " -"Adam Goldschmidt, Senthil Kumaran and Ken Jin in :issue:`42967`.)" +"parameter separators in :func:`urllib.parse.parse_qs` " +"and :func:`urllib.parse.parse_qsl`. Due to security concerns, and to " +"conform with newer W3C recommendations, this has been changed to allow only " +"a single separator key, with ``&`` as the default. This change also " +"affects :func:`cgi.parse` and :func:`cgi.parse_multipart` as they use the " +"affected functions internally. For more details, please see their respective " +"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " +"in :issue:`42967`.)" msgstr "" diff --git a/whatsnew/3.8.po b/whatsnew/3.8.po index 8ba55c3025..aad61e1297 100644 --- a/whatsnew/3.8.po +++ b/whatsnew/3.8.po @@ -1,27 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Maciej Olko , 2021 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-04 14:28+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Maciej Olko , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New In Python 3.8" msgstr "Co nowego w Pythonie 3.8" @@ -34,8 +35,8 @@ msgstr "Raymond Hettinger" msgid "" "This article explains the new features in Python 3.8, compared to 3.7. " -"Python 3.8 was released on October 14, 2019. For full details, see the :ref:" -"`changelog `." +"Python 3.8 was released on October 14, 2019. For full details, see " +"the :ref:`changelog `." msgstr "" msgid "Summary -- Release highlights" @@ -50,8 +51,9 @@ msgstr "Wyrażenia przypisania" msgid "" "There is new syntax ``:=`` that assigns values to variables as part of a " "larger expression. It is affectionately known as \"the walrus operator\" due " -"to its resemblance to `the eyes and tusks of a walrus `_." +"to its resemblance to `the eyes and tusks of a walrus `_." msgstr "" "Nowa składnia ``:=`` przypisuje wartości zmiennym w części większego " "wyrażenia. Jest pieszczotliwie nazywany „operatorem morsa” ze względu na " @@ -170,8 +172,9 @@ msgid "" msgstr "" msgid "" -"The location of the cache is reported in :data:`sys.pycache_prefix` (:const:" -"`None` indicates the default location in ``__pycache__`` subdirectories)." +"The location of the cache is reported in :data:`sys.pycache_prefix` " +"(:const:`None` indicates the default location in ``__pycache__`` " +"subdirectories)." msgstr "" msgid "(Contributed by Carl Meyer in :issue:`33499`.)" @@ -190,10 +193,10 @@ msgid "" "Release builds and :ref:`debug builds ` are now ABI compatible: " "defining the ``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` " "macro, which introduces the only ABI incompatibility. The ``Py_TRACE_REFS`` " -"macro, which adds the :func:`sys.getobjects` function and the :envvar:" -"`PYTHONDUMPREFS` environment variable, can be set using the new :option:`./" -"configure --with-trace-refs <--with-trace-refs>` build option. (Contributed " -"by Victor Stinner in :issue:`36465`.)" +"macro, which adds the :func:`sys.getobjects` function and " +"the :envvar:`PYTHONDUMPREFS` environment variable, can be set using the " +"new :option:`./configure --with-trace-refs <--with-trace-refs>` build " +"option. (Contributed by Victor Stinner in :issue:`36465`.)" msgstr "" msgid "" @@ -230,8 +233,8 @@ msgid "" "On the other hand, ``pkg-config python3.8 --libs`` no longer contains ``-" "lpython3.8``. C extensions must not be linked to libpython (except on " "Android and Cygwin, whose cases are handled by the script); this change is " -"backward incompatible on purpose. (Contributed by Victor Stinner in :issue:" -"`36721`.)" +"backward incompatible on purpose. (Contributed by Victor Stinner " +"in :issue:`36721`.)" msgstr "" msgid "f-strings support ``=`` for self-documenting expressions and debugging" @@ -283,97 +286,97 @@ msgid "New structures:" msgstr "" msgid ":c:type:`PyConfig`" -msgstr "" +msgstr ":c:type:`PyConfig`" msgid ":c:type:`PyPreConfig`" -msgstr "" +msgstr ":c:type:`PyPreConfig`" msgid ":c:type:`PyStatus`" -msgstr "" +msgstr ":c:type:`PyStatus`" msgid ":c:type:`PyWideStringList`" -msgstr "" +msgstr ":c:type:`PyWideStringList`" msgid "New functions:" msgstr "" msgid ":c:func:`PyConfig_Clear`" -msgstr "" +msgstr ":c:func:`PyConfig_Clear`" msgid ":c:func:`PyConfig_InitIsolatedConfig`" -msgstr "" +msgstr ":c:func:`PyConfig_InitIsolatedConfig`" msgid ":c:func:`PyConfig_InitPythonConfig`" -msgstr "" +msgstr ":c:func:`PyConfig_InitPythonConfig`" msgid ":c:func:`PyConfig_Read`" -msgstr "" +msgstr ":c:func:`PyConfig_Read`" msgid ":c:func:`PyConfig_SetArgv`" -msgstr "" +msgstr ":c:func:`PyConfig_SetArgv`" msgid ":c:func:`PyConfig_SetBytesArgv`" -msgstr "" +msgstr ":c:func:`PyConfig_SetBytesArgv`" msgid ":c:func:`PyConfig_SetBytesString`" -msgstr "" +msgstr ":c:func:`PyConfig_SetBytesString`" msgid ":c:func:`PyConfig_SetString`" -msgstr "" +msgstr ":c:func:`PyConfig_SetString`" msgid ":c:func:`PyPreConfig_InitIsolatedConfig`" -msgstr "" +msgstr ":c:func:`PyPreConfig_InitIsolatedConfig`" msgid ":c:func:`PyPreConfig_InitPythonConfig`" -msgstr "" +msgstr ":c:func:`PyPreConfig_InitPythonConfig`" msgid ":c:func:`PyStatus_Error`" -msgstr "" +msgstr ":c:func:`PyStatus_Error`" msgid ":c:func:`PyStatus_Exception`" -msgstr "" +msgstr ":c:func:`PyStatus_Exception`" msgid ":c:func:`PyStatus_Exit`" -msgstr "" +msgstr ":c:func:`PyStatus_Exit`" msgid ":c:func:`PyStatus_IsError`" -msgstr "" +msgstr ":c:func:`PyStatus_IsError`" msgid ":c:func:`PyStatus_IsExit`" -msgstr "" +msgstr ":c:func:`PyStatus_IsExit`" msgid ":c:func:`PyStatus_NoMemory`" -msgstr "" +msgstr ":c:func:`PyStatus_NoMemory`" msgid ":c:func:`PyStatus_Ok`" -msgstr "" +msgstr ":c:func:`PyStatus_Ok`" msgid ":c:func:`PyWideStringList_Append`" -msgstr "" +msgstr ":c:func:`PyWideStringList_Append`" msgid ":c:func:`PyWideStringList_Insert`" -msgstr "" +msgstr ":c:func:`PyWideStringList_Insert`" msgid ":c:func:`Py_BytesMain`" -msgstr "" +msgstr ":c:func:`Py_BytesMain`" msgid ":c:func:`Py_ExitStatusException`" -msgstr "" +msgstr ":c:func:`Py_ExitStatusException`" msgid ":c:func:`Py_InitializeFromConfig`" -msgstr "" +msgstr ":c:func:`Py_InitializeFromConfig`" msgid ":c:func:`Py_PreInitialize`" -msgstr "" +msgstr ":c:func:`Py_PreInitialize`" msgid ":c:func:`Py_PreInitializeFromArgs`" -msgstr "" +msgstr ":c:func:`Py_PreInitializeFromArgs`" msgid ":c:func:`Py_PreInitializeFromBytesArgs`" -msgstr "" +msgstr ":c:func:`Py_PreInitializeFromBytesArgs`" msgid ":c:func:`Py_RunMain`" -msgstr "" +msgstr ":c:func:`Py_RunMain`" msgid "" "This PEP also adds ``_PyRuntimeState.preconfig`` (:c:type:`PyPreConfig` " @@ -399,8 +402,9 @@ msgstr "" msgid "" ":ref:`vectorcall` is added to the Python/C API. It is meant to formalize " -"existing optimizations which were already done for various classes. Any :ref:" -"`static type ` implementing a callable can use this protocol." +"existing optimizations which were already done for various classes. " +"Any :ref:`static type ` implementing a callable can use this " +"protocol." msgstr "" msgid "" @@ -412,8 +416,8 @@ msgid "See :pep:`590` for a full description." msgstr "" msgid "" -"(Contributed by Jeroen Demeyer, Mark Shannon and Petr Viktorin in :issue:" -"`36974`.)" +"(Contributed by Jeroen Demeyer, Mark Shannon and Petr Viktorin " +"in :issue:`36974`.)" msgstr "" msgid "Pickle protocol 5 with out-of-band data buffers" @@ -449,18 +453,18 @@ msgstr "" msgid "" "The :class:`bool`, :class:`int`, and :class:`fractions.Fraction` types now " -"have an :meth:`~int.as_integer_ratio` method like that found in :class:" -"`float` and :class:`decimal.Decimal`. This minor API extension makes it " -"possible to write ``numerator, denominator = x.as_integer_ratio()`` and have " -"it work across multiple numeric types. (Contributed by Lisa Roach in :issue:" -"`33073` and Raymond Hettinger in :issue:`37819`.)" +"have an :meth:`~int.as_integer_ratio` method like that found " +"in :class:`float` and :class:`decimal.Decimal`. This minor API extension " +"makes it possible to write ``numerator, denominator = x.as_integer_ratio()`` " +"and have it work across multiple numeric types. (Contributed by Lisa Roach " +"in :issue:`33073` and Raymond Hettinger in :issue:`37819`.)" msgstr "" msgid "" "Constructors of :class:`int`, :class:`float` and :class:`complex` will now " "use the :meth:`~object.__index__` special method, if available and the " -"corresponding method :meth:`~object.__int__`, :meth:`~object.__float__` or :" -"meth:`~object.__complex__` is not available. (Contributed by Serhiy " +"corresponding method :meth:`~object.__int__`, :meth:`~object.__float__` " +"or :meth:`~object.__complex__` is not available. (Contributed by Serhiy " "Storchaka in :issue:`20092`.)" msgstr "" @@ -473,16 +477,16 @@ msgid "" msgstr "" msgid "" -"Dict and dictviews are now iterable in reversed insertion order using :func:" -"`reversed`. (Contributed by Rémi Lapeyre in :issue:`33462`.)" +"Dict and dictviews are now iterable in reversed insertion order " +"using :func:`reversed`. (Contributed by Rémi Lapeyre in :issue:`33462`.)" msgstr "" 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. (Contributed by Benjamin Peterson in :" -"issue:`34641`.)" +"keyword argument assignment term. (Contributed by Benjamin Peterson " +"in :issue:`34641`.)" msgstr "" msgid "" @@ -502,12 +506,13 @@ msgid "" msgstr "" msgid "" -"Arithmetic operations between subclasses of :class:`datetime.date` or :class:" -"`datetime.datetime` and :class:`datetime.timedelta` objects now return an " -"instance of the subclass, rather than the base class. This also affects the " -"return type of operations whose implementation (directly or indirectly) " -"uses :class:`datetime.timedelta` arithmetic, such as :meth:`~datetime." -"datetime.astimezone`. (Contributed by Paul Ganssle in :issue:`32417`.)" +"Arithmetic operations between subclasses of :class:`datetime.date` " +"or :class:`datetime.datetime` and :class:`datetime.timedelta` objects now " +"return an instance of the subclass, rather than the base class. This also " +"affects the return type of operations whose implementation (directly or " +"indirectly) uses :class:`datetime.timedelta` arithmetic, such " +"as :meth:`~datetime.datetime.astimezone`. (Contributed by Paul Ganssle " +"in :issue:`32417`.)" msgstr "" msgid "" @@ -520,12 +525,12 @@ msgid "" msgstr "" msgid "" -"Some advanced styles of programming require updating the :class:`types." -"CodeType` object for an existing function. Since code objects are " -"immutable, a new code object needs to be created, one that is modeled on the " -"existing code object. With 19 parameters, this was somewhat tedious. Now, " -"the new ``replace()`` method makes it possible to create a clone with a few " -"altered parameters." +"Some advanced styles of programming require updating " +"the :class:`types.CodeType` object for an existing function. Since code " +"objects are immutable, a new code object needs to be created, one that is " +"modeled on the existing code object. With 19 parameters, this was somewhat " +"tedious. Now, the new ``replace()`` method makes it possible to create a " +"clone with a few altered parameters." msgstr "" msgid "" @@ -575,9 +580,9 @@ msgid "" "elements long. Formerly, five was the limit. The new, optional sixth " "element is a callable with a ``(obj, state)`` signature. This allows the " "direct control over the state-updating behavior of a specific object. If " -"not *None*, this callable will have priority over the object's :meth:" -"`~__setstate__` method. (Contributed by Pierre Glaser and Olivier Grisel in :" -"issue:`35900`.)" +"not *None*, this callable will have priority over the " +"object's :meth:`~__setstate__` method. (Contributed by Pierre Glaser and " +"Olivier Grisel in :issue:`35900`.)" msgstr "" msgid "New Modules" @@ -593,7 +598,7 @@ msgid "(Contributed by Barry Warsaw and Jason R. Coombs in :issue:`34632`.)" msgstr "" msgid "Improved Modules" -msgstr "" +msgstr "Ulepszone moduły" msgid "ast" msgstr "" @@ -616,8 +621,8 @@ msgid "The :func:`ast.parse` function has some new flags:" msgstr "" msgid "" -"``type_comments=True`` causes it to return the text of :pep:`484` and :pep:" -"`526` type comments associated with certain AST nodes;" +"``type_comments=True`` causes it to return the text of :pep:`484` " +"and :pep:`526` type comments associated with certain AST nodes;" msgstr "" msgid "" @@ -627,15 +632,15 @@ msgstr "" msgid "" "``feature_version=(3, N)`` allows specifying an earlier Python 3 version. " -"For example, ``feature_version=(3, 4)`` will treat :keyword:`async` and :" -"keyword:`await` as non-reserved words." +"For example, ``feature_version=(3, 4)`` will treat :keyword:`async` " +"and :keyword:`await` as non-reserved words." msgstr "" msgid "(Contributed by Guido van Rossum in :issue:`35766`.)" msgstr "" msgid "asyncio" -msgstr "" +msgstr "asyncio" msgid "" ":func:`asyncio.run` has graduated from the provisional to stable API. This " @@ -647,8 +652,9 @@ msgid "This is *roughly* equivalent to::" msgstr "" msgid "" -"The actual implementation is significantly more complex. Thus, :func:" -"`asyncio.run` should be the preferred way of running asyncio programs." +"The actual implementation is significantly more complex. " +"Thus, :func:`asyncio.run` should be the preferred way of running asyncio " +"programs." msgstr "" msgid "(Contributed by Yury Selivanov in :issue:`32314`.)" @@ -665,15 +671,16 @@ msgid "(Contributed by Yury Selivanov in :issue:`37028`.)" msgstr "" msgid "" -"The exception :class:`asyncio.CancelledError` now inherits from :class:" -"`BaseException` rather than :class:`Exception` and no longer inherits from :" -"class:`concurrent.futures.CancelledError`. (Contributed by Yury Selivanov " -"in :issue:`32528`.)" +"The exception :class:`asyncio.CancelledError` now inherits " +"from :class:`BaseException` rather than :class:`Exception` and no longer " +"inherits from :class:`concurrent.futures.CancelledError`. (Contributed by " +"Yury Selivanov in :issue:`32528`.)" msgstr "" msgid "" -"On Windows, the default event loop is now :class:`~asyncio." -"ProactorEventLoop`. (Contributed by Victor Stinner in :issue:`34687`.)" +"On Windows, the default event loop is " +"now :class:`~asyncio.ProactorEventLoop`. (Contributed by Victor Stinner " +"in :issue:`34687`.)" msgstr "" msgid "" @@ -682,9 +689,9 @@ msgid "" msgstr "" msgid "" -":class:`~asyncio.ProactorEventLoop` can now be interrupted by :exc:" -"`KeyboardInterrupt` (\"CTRL+C\"). (Contributed by Vladimir Matveev in :issue:" -"`23057`.)" +":class:`~asyncio.ProactorEventLoop` can now be interrupted " +"by :exc:`KeyboardInterrupt` (\"CTRL+C\"). (Contributed by Vladimir Matveev " +"in :issue:`23057`.)" msgstr "" msgid "" @@ -694,12 +701,12 @@ msgstr "" 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. (Contributed by Alex Grönholm in :" -"issue:`34270`.)" +"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. (Contributed by " +"Alex Grönholm in :issue:`34270`.)" msgstr "" msgid "" @@ -712,28 +719,28 @@ msgid "" msgstr "" msgid "builtins" -msgstr "" +msgstr "builtins" msgid "" -"The :func:`compile` built-in has been improved to accept the ``ast." -"PyCF_ALLOW_TOP_LEVEL_AWAIT`` flag. With this new flag passed, :func:" -"`compile` will allow top-level ``await``, ``async for`` and ``async with`` " -"constructs that are usually considered invalid syntax. Asynchronous code " -"object marked with the ``CO_COROUTINE`` flag may then be returned. " -"(Contributed by Matthias Bussonnier in :issue:`34616`)" +"The :func:`compile` built-in has been improved to accept the " +"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` flag. With this new flag " +"passed, :func:`compile` will allow top-level ``await``, ``async for`` and " +"``async with`` constructs that are usually considered invalid syntax. " +"Asynchronous code object marked with the ``CO_COROUTINE`` flag may then be " +"returned. (Contributed by Matthias Bussonnier in :issue:`34616`)" msgstr "" msgid "collections" msgstr "" msgid "" -"The :meth:`~collections.somenamedtuple._asdict` method for :func:" -"`collections.namedtuple` now returns a :class:`dict` instead of a :class:" -"`collections.OrderedDict`. This works because regular dicts have guaranteed " -"ordering since Python 3.7. If the extra features of :class:`OrderedDict` are " -"required, the suggested remediation is to cast the result to the desired " -"type: ``OrderedDict(nt._asdict())``. (Contributed by Raymond Hettinger in :" -"issue:`35864`.)" +"The :meth:`~collections.somenamedtuple._asdict` method " +"for :func:`collections.namedtuple` now returns a :class:`dict` instead of " +"a :class:`collections.OrderedDict`. This works because regular dicts have " +"guaranteed ordering since Python 3.7. If the extra features " +"of :class:`OrderedDict` are required, the suggested remediation is to cast " +"the result to the desired type: ``OrderedDict(nt._asdict())``. (Contributed " +"by Raymond Hettinger in :issue:`35864`.)" msgstr "" msgid "cProfile" @@ -774,17 +781,18 @@ msgid "" "parameter to specify flags for the underlying ``LoadLibraryEx`` call. The " "default flags are set to only load DLL dependencies from trusted locations, " "including the path where the DLL is stored (if a full or partial path is " -"used to load the initial DLL) and paths added by :func:`~os." -"add_dll_directory`. (Contributed by Steve Dower in :issue:`36085`.)" +"used to load the initial DLL) and paths added " +"by :func:`~os.add_dll_directory`. (Contributed by Steve Dower " +"in :issue:`36085`.)" msgstr "" msgid "datetime" msgstr "" msgid "" -"Added new alternate constructors :meth:`datetime.date.fromisocalendar` and :" -"meth:`datetime.datetime.fromisocalendar`, which construct :class:`date` and :" -"class:`datetime` objects respectively from ISO year, week number, and " +"Added new alternate constructors :meth:`datetime.date.fromisocalendar` " +"and :meth:`datetime.datetime.fromisocalendar`, which construct :class:`date` " +"and :class:`datetime` objects respectively from ISO year, week number, and " "weekday; these are the inverse of each class's ``isocalendar`` method. " "(Contributed by Paul Ganssle in :issue:`36004`.)" msgstr "" @@ -811,8 +819,8 @@ msgstr "" msgid "" "Added a new :func:`functools.singledispatchmethod` decorator that converts " -"methods into :term:`generic functions ` using :term:" -"`single dispatch`::" +"methods into :term:`generic functions ` " +"using :term:`single dispatch`::" msgstr "" msgid "(Contributed by Ethan Smith in :issue:`32380`)" @@ -873,8 +881,8 @@ msgid "" "Added 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`.)" +"Options menu. (Contributed by Tal Einat and Saimadhav Heblikar " +"in :issue:`17535`.)" msgstr "" msgid "" @@ -890,8 +898,8 @@ msgid "New in 3.8.1:" msgstr "" msgid "" -"Add option to toggle cursor blink off. (Contributed by Zackery Spytz in :" -"issue:`4603`.)" +"Add option to toggle cursor blink off. (Contributed by Zackery Spytz " +"in :issue:`4603`.)" msgstr "" msgid "" @@ -995,8 +1003,8 @@ msgid "(Contributed by Pablo Galindo in :issue:`35606`.)" msgstr "" msgid "" -"Added two new combinatoric functions :func:`math.perm` and :func:`math." -"comb`::" +"Added two new combinatoric functions :func:`math.perm` " +"and :func:`math.comb`::" msgstr "" msgid "" @@ -1024,8 +1032,8 @@ msgstr "" msgid "" "The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.madvise` method to " -"access the ``madvise()`` system call. (Contributed by Zackery Spytz in :" -"issue:`32941`.)" +"access the ``madvise()`` system call. (Contributed by Zackery Spytz " +"in :issue:`32941`.)" msgstr "" msgid "multiprocessing" @@ -1047,8 +1055,8 @@ msgstr "" msgid "" "Added new function :func:`~os.add_dll_directory` on Windows for providing " "additional search paths for native dependencies when importing extension " -"modules or loading DLLs using :mod:`ctypes`. (Contributed by Steve Dower in :" -"issue:`36085`.)" +"modules or loading DLLs using :mod:`ctypes`. (Contributed by Steve Dower " +"in :issue:`36085`.)" msgstr "" msgid "" @@ -1062,19 +1070,19 @@ msgid "" "symlinks and directory junctions) has been delegated to the operating " "system. Specifically, :func:`os.stat` will now traverse anything supported " "by the operating system, while :func:`os.lstat` will only open reparse " -"points that identify as \"name surrogates\" while others are opened as for :" -"func:`os.stat`. In all cases, :attr:`stat_result.st_mode` will only have " -"``S_IFLNK`` set for symbolic links and not other kinds of reparse points. To " -"identify other kinds of reparse point, check the new :attr:`stat_result." -"st_reparse_tag` attribute." +"points that identify as \"name surrogates\" while others are opened as " +"for :func:`os.stat`. In all cases, :attr:`stat_result.st_mode` will only " +"have ``S_IFLNK`` set for symbolic links and not other kinds of reparse " +"points. To identify other kinds of reparse point, check the " +"new :attr:`stat_result.st_reparse_tag` attribute." msgstr "" msgid "" "On Windows, :func:`os.readlink` is now able to read directory junctions. " "Note that :func:`~os.path.islink` will return ``False`` for directory " "junctions, and so code that checks ``islink`` first will continue to treat " -"junctions as directories, while code that handles errors from :func:`os." -"readlink` may now treat junctions as links." +"junctions as directories, while code that handles errors " +"from :func:`os.readlink` may now treat junctions as links." msgstr "" msgid "(Contributed by Steve Dower in :issue:`37834`.)" @@ -1084,20 +1092,20 @@ msgid "os.path" msgstr "" 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`.)" +":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 "" msgid "" ":func:`~os.path.expanduser` on Windows now prefers the :envvar:`USERPROFILE` " "environment variable and does not use :envvar:`HOME`, which is not normally " -"set for regular user accounts. (Contributed by Anthony Sottile in :issue:" -"`36264`.)" +"set for regular user accounts. (Contributed by Anthony Sottile " +"in :issue:`36264`.)" msgstr "" msgid "" @@ -1114,15 +1122,12 @@ msgid "pathlib" msgstr "" 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`.)" +":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 "" msgid "" @@ -1134,10 +1139,11 @@ msgid "pickle" msgstr "" msgid "" -":mod:`pickle` extensions subclassing the C-optimized :class:`~pickle." -"Pickler` can now override the pickling logic of functions and classes by " -"defining the special :meth:`~pickle.Pickler.reducer_override` method. " -"(Contributed by Pierre Glaser and Olivier Grisel in :issue:`35900`.)" +":mod:`pickle` extensions subclassing the C-" +"optimized :class:`~pickle.Pickler` can now override the pickling logic of " +"functions and classes by defining the " +"special :meth:`~pickle.Pickler.reducer_override` method. (Contributed by " +"Pierre Glaser and Olivier Grisel in :issue:`35900`.)" msgstr "" msgid "plistlib" @@ -1145,8 +1151,8 @@ msgstr "" msgid "" "Added new :class:`plistlib.UID` and enabled support for reading and writing " -"NSKeyedArchiver-encoded binary plists. (Contributed by Jon Janzen in :issue:" -"`26707`.)" +"NSKeyedArchiver-encoded binary plists. (Contributed by Jon Janzen " +"in :issue:`26707`.)" msgstr "" msgid "pprint" @@ -1180,8 +1186,8 @@ msgid "shlex" msgstr "" msgid "" -"The new :func:`shlex.join` function acts as the inverse of :func:`shlex." -"split`. (Contributed by Bo Bayles in :issue:`32102`.)" +"The new :func:`shlex.join` function acts as the inverse " +"of :func:`shlex.split`. (Contributed by Bo Bayles in :issue:`32102`.)" msgstr "" msgid "shutil" @@ -1201,43 +1207,44 @@ msgstr "" msgid "" ":func:`shutil.rmtree` on Windows now removes directory junctions without " -"recursively removing their contents first. (Contributed by Steve Dower in :" -"issue:`37834`.)" +"recursively removing their contents first. (Contributed by Steve Dower " +"in :issue:`37834`.)" msgstr "" msgid "socket" msgstr "" msgid "" -"Added :meth:`~socket.create_server()` and :meth:`~socket." -"has_dualstack_ipv6()` convenience functions to automate the necessary tasks " -"usually involved when creating a server socket, including accepting both " -"IPv4 and IPv6 connections on the same socket. (Contributed by Giampaolo " -"Rodolà in :issue:`17561`.)" +"Added :meth:`~socket.create_server()` " +"and :meth:`~socket.has_dualstack_ipv6()` convenience functions to automate " +"the necessary tasks usually involved when creating a server socket, " +"including accepting both IPv4 and IPv6 connections on the same socket. " +"(Contributed by Giampaolo Rodolà in :issue:`17561`.)" msgstr "" msgid "" -"The :func:`socket.if_nameindex()`, :func:`socket.if_nametoindex()`, and :" -"func:`socket.if_indextoname()` functions have been implemented on Windows. " -"(Contributed by Zackery Spytz in :issue:`37007`.)" +"The :func:`socket.if_nameindex()`, :func:`socket.if_nametoindex()`, " +"and :func:`socket.if_indextoname()` functions have been implemented on " +"Windows. (Contributed by Zackery Spytz in :issue:`37007`.)" msgstr "" msgid "ssl" msgstr "" msgid "" -"Added :attr:`~ssl.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`.)" +"Added :attr:`~ssl.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 "" msgid "statistics" msgstr "" msgid "" -"Added :func:`statistics.fmean` as a faster, floating point variant of :func:" -"`statistics.mean()`. (Contributed by Raymond Hettinger and Steven D'Aprano " -"in :issue:`35904`.)" +"Added :func:`statistics.fmean` as a faster, floating point variant " +"of :func:`statistics.mean()`. (Contributed by Raymond Hettinger and Steven " +"D'Aprano in :issue:`35904`.)" msgstr "" msgid "" @@ -1263,7 +1270,7 @@ msgid "" msgstr "" msgid "sys" -msgstr "" +msgstr "sys" msgid "" "Add new :func:`sys.unraisablehook` function which can be overridden to " @@ -1288,19 +1295,20 @@ msgid "threading" msgstr "" msgid "" -"Add a new :func:`threading.excepthook` function which handles uncaught :meth:" -"`threading.Thread.run` exception. It can be overridden to control how " -"uncaught :meth:`threading.Thread.run` exceptions are handled. (Contributed " -"by Victor Stinner in :issue:`1230540`.)" +"Add a new :func:`threading.excepthook` function which handles " +"uncaught :meth:`threading.Thread.run` exception. It can be overridden to " +"control how uncaught :meth:`threading.Thread.run` exceptions are handled. " +"(Contributed by Victor Stinner in :issue:`1230540`.)" msgstr "" msgid "" -"Add a new :func:`threading.get_native_id` function and a :data:`~threading." -"Thread.native_id` attribute to the :class:`threading.Thread` class. These " -"return the native integral Thread ID of the current thread assigned by the " -"kernel. This feature is only available on certain platforms, see :func:" -"`get_native_id ` for more information. (Contributed " -"by Jake Tesler in :issue:`36084`.)" +"Add a new :func:`threading.get_native_id` function and " +"a :data:`~threading.Thread.native_id` attribute to " +"the :class:`threading.Thread` class. These return the native integral Thread " +"ID of the current thread assigned by the kernel. This feature is only " +"available on certain platforms, see :func:`get_native_id " +"` for more information. (Contributed by Jake Tesler " +"in :issue:`36084`.)" msgstr "" msgid "tokenize" @@ -1317,10 +1325,10 @@ msgid "tkinter" msgstr "" 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`.)" +"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 "" msgid "" @@ -1329,9 +1337,10 @@ msgid "" msgstr "" msgid "" -"The :class:`tkinter.PhotoImage` class now has :meth:`~tkinter.PhotoImage." -"transparency_get` and :meth:`~tkinter.PhotoImage.transparency_set` methods. " -"(Contributed by Zackery Spytz in :issue:`25451`.)" +"The :class:`tkinter.PhotoImage` class now " +"has :meth:`~tkinter.PhotoImage.transparency_get` " +"and :meth:`~tkinter.PhotoImage.transparency_set` methods. (Contributed by " +"Zackery Spytz in :issue:`25451`.)" msgstr "" msgid "time" @@ -1349,10 +1358,10 @@ msgid "The :mod:`typing` module incorporates several new features:" msgstr "" msgid "" -"A dictionary type with per-key types. See :pep:`589` and :class:`typing." -"TypedDict`. TypedDict uses only string keys. By default, every key is " -"required to be present. Specify \"total=False\" to allow keys to be " -"optional::" +"A dictionary type with per-key types. See :pep:`589` " +"and :class:`typing.TypedDict`. TypedDict uses only string keys. By default, " +"every key is required to be present. Specify \"total=False\" to allow keys " +"to be optional::" msgstr "" msgid "" @@ -1362,15 +1371,16 @@ msgid "" msgstr "" msgid "" -"\"Final\" variables, functions, methods and classes. See :pep:`591`, :class:" -"`typing.Final` and :func:`typing.final`. The final qualifier instructs a " -"static type checker to restrict subclassing, overriding, or reassignment::" +"\"Final\" variables, functions, methods and classes. " +"See :pep:`591`, :class:`typing.Final` and :func:`typing.final`. The final " +"qualifier instructs a static type checker to restrict subclassing, " +"overriding, or reassignment::" msgstr "" msgid "" -"Protocol definitions. See :pep:`544`, :class:`typing.Protocol` and :func:" -"`typing.runtime_checkable`. Simple ABCs like :class:`typing.SupportsInt` " -"are now ``Protocol`` subclasses." +"Protocol definitions. See :pep:`544`, :class:`typing.Protocol` " +"and :func:`typing.runtime_checkable`. Simple ABCs " +"like :class:`typing.SupportsInt` are now ``Protocol`` subclasses." msgstr "" msgid "New protocol class :class:`typing.SupportsIndex`." @@ -1400,15 +1410,16 @@ msgstr "" msgid "" "Added :class:`~unittest.mock.AsyncMock` to support an asynchronous version " "of :class:`~unittest.mock.Mock`. Appropriate new assert functions for " -"testing have been added as well. (Contributed by Lisa Roach in :issue:" -"`26467`)." +"testing have been added as well. (Contributed by Lisa Roach " +"in :issue:`26467`)." msgstr "" msgid "" -"Added :func:`~unittest.addModuleCleanup()` and :meth:`~unittest.TestCase." -"addClassCleanup()` to unittest to support cleanups for :func:`~unittest." -"setUpModule()` and :meth:`~unittest.TestCase.setUpClass()`. (Contributed by " -"Lisa Roach in :issue:`24412`.)" +"Added :func:`~unittest.addModuleCleanup()` " +"and :meth:`~unittest.TestCase.addClassCleanup()` to unittest to support " +"cleanups for :func:`~unittest.setUpModule()` " +"and :meth:`~unittest.TestCase.setUpClass()`. (Contributed by Lisa Roach " +"in :issue:`24412`.)" msgstr "" msgid "" @@ -1423,7 +1434,7 @@ msgid "" msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "venv" msgstr "" @@ -1447,9 +1458,10 @@ msgid "xml" msgstr "" 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`.)" +"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 "" msgid "" @@ -1460,18 +1472,19 @@ msgid "" msgstr "" msgid "" -"The :mod:`xml.etree.ElementTree` module provides a new function :func:`–xml." -"etree.ElementTree.canonicalize()` that implements C14N 2.0. (Contributed by " -"Stefan Behnel in :issue:`13611`.)" +"The :mod:`xml.etree.ElementTree` module provides a new function :func:`–" +"xml.etree.ElementTree.canonicalize()` that implements C14N 2.0. (Contributed " +"by Stefan Behnel in :issue:`13611`.)" msgstr "" msgid "" "The target object of :class:`xml.etree.ElementTree.XMLParser` can receive " "namespace declaration events through the new callback methods ``start_ns()`` " -"and ``end_ns()``. Additionally, the :class:`xml.etree.ElementTree." -"TreeBuilder` target can be configured to process events about comments and " -"processing instructions to include them in the generated tree. (Contributed " -"by Stefan Behnel in :issue:`36676` and :issue:`36673`.)" +"and ``end_ns()``. Additionally, " +"the :class:`xml.etree.ElementTree.TreeBuilder` target can be configured to " +"process events about comments and processing instructions to include them in " +"the generated tree. (Contributed by Stefan Behnel in :issue:`36676` " +"and :issue:`36673`.)" msgstr "" msgid "xmlrpc" @@ -1509,18 +1522,18 @@ msgid "(Contributed by Joannah Nanjekye and Victor Stinner in :issue:`35537`.)" msgstr "" 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 and macOS 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 " -"Rodolà in :issue:`33671`.)" +":func:`shutil.copyfile`, :func:`shutil.copy`, :func:`shutil.copy2`, :func:`shutil.copytree` " +"and :func:`shutil.move` use platform-specific \"fast-copy\" syscalls on " +"Linux and macOS 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 Rodolà in :issue:`33671`.)" msgstr "" msgid "" @@ -1580,14 +1593,14 @@ msgstr "" msgid "" "Reduced an overhead of converting arguments passed to many builtin functions " "and methods. This sped up calling some simple builtin functions and methods " -"up to 20--50%. (Contributed by Serhiy Storchaka in :issue:`23867`, :issue:" -"`35582` and :issue:`36127`.)" +"up to 20--50%. (Contributed by Serhiy Storchaka " +"in :issue:`23867`, :issue:`35582` and :issue:`36127`.)" msgstr "" msgid "" "``LOAD_GLOBAL`` instruction now uses new \"per opcode cache\" mechanism. It " -"is about 40% faster now. (Contributed by Yury Selivanov and Inada Naoki in :" -"issue:`26219`.)" +"is about 40% faster now. (Contributed by Yury Selivanov and Inada Naoki " +"in :issue:`26219`.)" msgstr "" msgid "Build and C API Changes" @@ -1596,8 +1609,8 @@ msgstr "" msgid "" "Default :data:`sys.abiflags` became an empty string: the ``m`` flag for " "pymalloc became useless (builds with and without pymalloc are ABI " -"compatible) and so has been removed. (Contributed by Victor Stinner in :" -"issue:`36707`.)" +"compatible) and so has been removed. (Contributed by Victor Stinner " +"in :issue:`36707`.)" msgstr "" msgid "Example of changes:" @@ -1653,17 +1666,17 @@ msgid "" msgstr "" msgid ":c:func:`Py_INCREF`, :c:func:`Py_DECREF`" -msgstr "" +msgstr ":c:func:`Py_INCREF`, :c:func:`Py_DECREF`" msgid ":c:func:`Py_XINCREF`, :c:func:`Py_XDECREF`" -msgstr "" +msgstr ":c:func:`Py_XINCREF`, :c:func:`Py_XDECREF`" msgid ":c:func:`PyObject_INIT`, :c:func:`PyObject_INIT_VAR`" msgstr "" msgid "" -"Private functions: :c:func:`_PyObject_GC_TRACK`, :c:func:" -"`_PyObject_GC_UNTRACK`, :c:func:`_Py_Dealloc`" +"Private " +"functions: :c:func:`_PyObject_GC_TRACK`, :c:func:`_PyObject_GC_UNTRACK`, :c:func:`_Py_Dealloc`" msgstr "" msgid "(Contributed by Victor Stinner in :issue:`35059`.)" @@ -1678,8 +1691,8 @@ msgstr "" msgid "" "The result of :c:func:`PyExceptionClass_Name` is now of type ``const char " -"*`` rather of ``char *``. (Contributed by Serhiy Storchaka in :issue:" -"`33818`.)" +"*`` rather of ``char *``. (Contributed by Serhiy Storchaka " +"in :issue:`33818`.)" msgstr "" msgid "" @@ -1703,26 +1716,27 @@ msgid "(Contributed by Antoine Pitrou in :issue:`32430`.)" msgstr "" msgid "" -"Functions that convert Python number to C integer like :c:func:" -"`PyLong_AsLong` and argument parsing functions like :c:func:" -"`PyArg_ParseTuple` with integer converting format units like ``'i'`` will " -"now use the :meth:`~object.__index__` special method instead of :meth:" -"`~object.__int__`, if available. The deprecation warning will be emitted " -"for objects with the ``__int__()`` method but without the ``__index__()`` " -"method (like :class:`~decimal.Decimal` and :class:`~fractions.Fraction`). :" -"c:func:`PyNumber_Check` will now return ``1`` for objects implementing " -"``__index__()``. :c:func:`PyNumber_Long`, :c:func:`PyNumber_Float` and :c:" -"func:`PyFloat_AsDouble` also now use the ``__index__()`` method if " -"available. (Contributed by Serhiy Storchaka in :issue:`36048` and :issue:" -"`20092`.)" +"Functions that convert Python number to C integer " +"like :c:func:`PyLong_AsLong` and argument parsing functions " +"like :c:func:`PyArg_ParseTuple` with integer converting format units like " +"``'i'`` will now use the :meth:`~object.__index__` special method instead " +"of :meth:`~object.__int__`, if available. The deprecation warning will be " +"emitted for objects with the ``__int__()`` method but without the " +"``__index__()`` method (like :class:`~decimal.Decimal` " +"and :class:`~fractions.Fraction`). :c:func:`PyNumber_Check` will now return " +"``1`` for objects implementing " +"``__index__()``. :c:func:`PyNumber_Long`, :c:func:`PyNumber_Float` " +"and :c:func:`PyFloat_AsDouble` also now use the ``__index__()`` method if " +"available. (Contributed by Serhiy Storchaka in :issue:`36048` " +"and :issue:`20092`.)" msgstr "" msgid "" -"Heap-allocated type objects will now increase their reference count in :c:" -"func:`PyObject_Init` (and its parallel macro ``PyObject_INIT``) instead of " -"in :c:func:`PyType_GenericAlloc`. Types that modify instance allocation or " -"deallocation may need to be adjusted. (Contributed by Eddie Elizondo in :" -"issue:`35810`.)" +"Heap-allocated type objects will now increase their reference count " +"in :c:func:`PyObject_Init` (and its parallel macro ``PyObject_INIT``) " +"instead of in :c:func:`PyType_GenericAlloc`. Types that modify instance " +"allocation or deallocation may need to be adjusted. (Contributed by Eddie " +"Elizondo in :issue:`35810`.)" msgstr "" msgid "" @@ -1734,8 +1748,9 @@ msgstr "" msgid "" ":c:func:`Py_SetPath` now sets :data:`sys.executable` to the program full " -"path (:c:func:`Py_GetProgramFullPath`) rather than to the program name (:c:" -"func:`Py_GetProgramName`). (Contributed by Victor Stinner in :issue:`38234`.)" +"path (:c:func:`Py_GetProgramFullPath`) rather than to the program name " +"(:c:func:`Py_GetProgramName`). (Contributed by Victor Stinner " +"in :issue:`38234`.)" msgstr "" msgid "Deprecated" @@ -1743,34 +1758,36 @@ msgstr "" msgid "" "The distutils ``bdist_wininst`` command is now deprecated, use " -"``bdist_wheel`` (wheel packages) instead. (Contributed by Victor Stinner in :" -"issue:`37481`.)" +"``bdist_wheel`` (wheel packages) instead. (Contributed by Victor Stinner " +"in :issue:`37481`.)" msgstr "" msgid "" -"Deprecated methods ``getchildren()`` and ``getiterator()`` in the :mod:`~xml." -"etree.ElementTree` module now emit a :exc:`DeprecationWarning` instead of :" -"exc:`PendingDeprecationWarning`. They will be removed in Python 3.9. " -"(Contributed by Serhiy Storchaka in :issue:`29209`.)" +"Deprecated methods ``getchildren()`` and ``getiterator()`` in " +"the :mod:`~xml.etree.ElementTree` module now emit " +"a :exc:`DeprecationWarning` instead of :exc:`PendingDeprecationWarning`. " +"They will be removed in Python 3.9. (Contributed by Serhiy Storchaka " +"in :issue:`29209`.)" msgstr "" msgid "" -"Passing an object that is not an instance of :class:`concurrent.futures." -"ThreadPoolExecutor` to :meth:`loop.set_default_executor() ` is deprecated and will be prohibited in Python 3.9. " -"(Contributed by Elvis Pranskevichus in :issue:`34075`.)" +"Passing an object that is not an instance " +"of :class:`concurrent.futures.ThreadPoolExecutor` " +"to :meth:`loop.set_default_executor() ` " +"is deprecated and will be prohibited in Python 3.9. (Contributed by Elvis " +"Pranskevichus in :issue:`34075`.)" msgstr "" msgid "" -"The :meth:`__getitem__` methods of :class:`xml.dom.pulldom.DOMEventStream`, :" -"class:`wsgiref.util.FileWrapper` and :class:`fileinput.FileInput` have been " -"deprecated." +"The :meth:`__getitem__` methods " +"of :class:`xml.dom.pulldom.DOMEventStream`, :class:`wsgiref.util.FileWrapper` " +"and :class:`fileinput.FileInput` have been deprecated." msgstr "" msgid "" "Implementations of these methods have been ignoring their *index* parameter, " -"and returning the next item instead. (Contributed by Berker Peksag in :issue:" -"`9372`.)" +"and returning the next item instead. (Contributed by Berker Peksag " +"in :issue:`9372`.)" msgstr "" msgid "" @@ -1789,26 +1806,23 @@ msgstr "" msgid "" ":class:`ast.NodeVisitor` methods ``visit_Num()``, ``visit_Str()``, " "``visit_Bytes()``, ``visit_NameConstant()`` and ``visit_Ellipsis()`` are " -"deprecated now and will not be called in future Python versions. Add the :" -"meth:`~ast.NodeVisitor.visit_Constant` method to handle all constant nodes. " -"(Contributed by Serhiy Storchaka in :issue:`36917`.)" +"deprecated now and will not be called in future Python versions. Add " +"the :meth:`~ast.NodeVisitor.visit_Constant` method to handle all constant " +"nodes. (Contributed by Serhiy Storchaka in :issue:`36917`.)" msgstr "" msgid "" "The :func:`asyncio.coroutine` :term:`decorator` is deprecated and will be " -"removed in version 3.10. Instead of ``@asyncio.coroutine``, use :keyword:" -"`async def` instead. (Contributed by Andrew Svetlov in :issue:`36921`.)" +"removed in version 3.10. Instead of ``@asyncio.coroutine``, " +"use :keyword:`async def` instead. (Contributed by Andrew Svetlov " +"in :issue:`36921`.)" msgstr "" msgid "" "In :mod:`asyncio`, the explicit passing of a *loop* argument has been " -"deprecated and will be removed in version 3.10 for the following: :func:" -"`asyncio.sleep`, :func:`asyncio.gather`, :func:`asyncio.shield`, :func:" -"`asyncio.wait_for`, :func:`asyncio.wait`, :func:`asyncio.as_completed`, :" -"class:`asyncio.Task`, :class:`asyncio.Lock`, :class:`asyncio.Event`, :class:" -"`asyncio.Condition`, :class:`asyncio.Semaphore`, :class:`asyncio." -"BoundedSemaphore`, :class:`asyncio.Queue`, :func:`asyncio." -"create_subprocess_exec`, and :func:`asyncio.create_subprocess_shell`." +"deprecated and will be removed in version 3.10 for the " +"following: :func:`asyncio.sleep`, :func:`asyncio.gather`, :func:`asyncio.shield`, :func:`asyncio.wait_for`, :func:`asyncio.wait`, :func:`asyncio.as_completed`, :class:`asyncio.Task`, :class:`asyncio.Lock`, :class:`asyncio.Event`, :class:`asyncio.Condition`, :class:`asyncio.Semaphore`, :class:`asyncio.BoundedSemaphore`, :class:`asyncio.Queue`, :func:`asyncio.create_subprocess_exec`, " +"and :func:`asyncio.create_subprocess_shell`." msgstr "" msgid "" @@ -1819,21 +1833,22 @@ msgstr "" msgid "" "The following functions and methods are deprecated in the :mod:`gettext` " -"module: :func:`~gettext.lgettext`, :func:`~gettext.ldgettext`, :func:" -"`~gettext.lngettext` and :func:`~gettext.ldngettext`. They return encoded " -"bytes, and it's possible that you will get unexpected Unicode-related " -"exceptions if there are encoding problems with the translated strings. It's " -"much better to use alternatives which return Unicode strings in Python 3. " -"These functions have been broken for a long time." +"module: :func:`~gettext.lgettext`, :func:`~gettext.ldgettext`, :func:`~gettext.lngettext` " +"and :func:`~gettext.ldngettext`. They return encoded bytes, and it's " +"possible that you will get unexpected Unicode-related exceptions if there " +"are encoding problems with the translated strings. It's much better to use " +"alternatives which return Unicode strings in Python 3. These functions have " +"been broken for a long time." msgstr "" msgid "" -"Function :func:`~gettext.bind_textdomain_codeset`, methods :meth:`~gettext." -"NullTranslations.output_charset` and :meth:`~gettext.NullTranslations." -"set_output_charset`, and the *codeset* parameter of functions :func:" -"`~gettext.translation` and :func:`~gettext.install` are also deprecated, " -"since they are only used for the ``l*gettext()`` functions. (Contributed by " -"Serhiy Storchaka in :issue:`33710`.)" +"Function :func:`~gettext.bind_textdomain_codeset`, " +"methods :meth:`~gettext.NullTranslations.output_charset` " +"and :meth:`~gettext.NullTranslations.set_output_charset`, and the *codeset* " +"parameter of functions :func:`~gettext.translation` " +"and :func:`~gettext.install` are also deprecated, since they are only used " +"for the ``l*gettext()`` functions. (Contributed by Serhiy Storchaka " +"in :issue:`33710`.)" msgstr "" msgid "" @@ -1843,41 +1858,42 @@ msgstr "" msgid "" "Many builtin and extension functions that take integer arguments will now " -"emit a deprecation warning for :class:`~decimal.Decimal`\\ s, :class:" -"`~fractions.Fraction`\\ s and any other objects that can be converted to " -"integers only with a loss (e.g. that have the :meth:`~object.__int__` method " -"but do not have the :meth:`~object.__index__` method). In future version " -"they will be errors. (Contributed by Serhiy Storchaka in :issue:`36048`.)" +"emit a deprecation warning for :class:`~decimal.Decimal`\\ " +"s, :class:`~fractions.Fraction`\\ s and any other objects that can be " +"converted to integers only with a loss (e.g. that have " +"the :meth:`~object.__int__` method but do not have " +"the :meth:`~object.__index__` method). In future version they will be " +"errors. (Contributed by Serhiy Storchaka in :issue:`36048`.)" msgstr "" msgid "Deprecated passing the following arguments as keyword arguments:" msgstr "" msgid "" -"*func* in :func:`functools.partialmethod`, :func:`weakref.finalize`, :meth:" -"`profile.Profile.runcall`, :meth:`cProfile.Profile.runcall`, :meth:`bdb.Bdb." -"runcall`, :meth:`trace.Trace.runfunc` and :func:`curses.wrapper`." +"*func* " +"in :func:`functools.partialmethod`, :func:`weakref.finalize`, :meth:`profile.Profile.runcall`, :meth:`cProfile.Profile.runcall`, :meth:`bdb.Bdb.runcall`, :meth:`trace.Trace.runfunc` " +"and :func:`curses.wrapper`." msgstr "" msgid "*function* in :meth:`unittest.TestCase.addCleanup`." msgstr "" msgid "" -"*fn* in the :meth:`~concurrent.futures.Executor.submit` method of :class:" -"`concurrent.futures.ThreadPoolExecutor` and :class:`concurrent.futures." -"ProcessPoolExecutor`." +"*fn* in the :meth:`~concurrent.futures.Executor.submit` method " +"of :class:`concurrent.futures.ThreadPoolExecutor` " +"and :class:`concurrent.futures.ProcessPoolExecutor`." msgstr "" msgid "" -"*callback* in :meth:`contextlib.ExitStack.callback`, :meth:`contextlib." -"AsyncExitStack.callback` and :meth:`contextlib.AsyncExitStack." -"push_async_callback`." +"*callback* " +"in :meth:`contextlib.ExitStack.callback`, :meth:`contextlib.AsyncExitStack.callback` " +"and :meth:`contextlib.AsyncExitStack.push_async_callback`." msgstr "" msgid "" "*c* and *typeid* in the :meth:`~multiprocessing.managers.Server.create` " -"method of :class:`multiprocessing.managers.Server` and :class:" -"`multiprocessing.managers.SharedMemoryServer`." +"method of :class:`multiprocessing.managers.Server` " +"and :class:`multiprocessing.managers.SharedMemoryServer`." msgstr "" msgid "*obj* in :func:`weakref.finalize`." @@ -1914,9 +1930,10 @@ msgstr "" msgid "" "The function :func:`time.clock` has been removed, after having been " -"deprecated since Python 3.3: use :func:`time.perf_counter` or :func:`time." -"process_time` instead, depending on your requirements, to have well-defined " -"behavior. (Contributed by Matthias Bussonnier in :issue:`36895`.)" +"deprecated since Python 3.3: use :func:`time.perf_counter` " +"or :func:`time.process_time` instead, depending on your requirements, to " +"have well-defined behavior. (Contributed by Matthias Bussonnier " +"in :issue:`36895`.)" msgstr "" msgid "" @@ -1944,13 +1961,14 @@ msgid "" msgstr "" msgid "" -"Removed the ``doctype()`` method of :class:`~xml.etree.ElementTree." -"XMLParser`. (Contributed by Serhiy Storchaka in :issue:`29209`.)" +"Removed the ``doctype()`` method " +"of :class:`~xml.etree.ElementTree.XMLParser`. (Contributed by Serhiy " +"Storchaka in :issue:`29209`.)" msgstr "" msgid "" -"\"unicode_internal\" codec is removed. (Contributed by Inada Naoki in :issue:" -"`36297`.)" +"\"unicode_internal\" codec is removed. (Contributed by Inada Naoki " +"in :issue:`36297`.)" msgstr "" msgid "" @@ -1959,15 +1977,16 @@ msgid "" msgstr "" msgid "" -"The ``bufsize`` keyword argument of :func:`fileinput.input` and :func:" -"`fileinput.FileInput` which was ignored and deprecated since Python 3.6 has " -"been removed. :issue:`36952` (Contributed by Matthias Bussonnier.)" +"The ``bufsize`` keyword argument of :func:`fileinput.input` " +"and :func:`fileinput.FileInput` which was ignored and deprecated since " +"Python 3.6 has been removed. :issue:`36952` (Contributed by Matthias " +"Bussonnier.)" msgstr "" msgid "" -"The functions :func:`sys.set_coroutine_wrapper` and :func:`sys." -"get_coroutine_wrapper` deprecated in Python 3.7 have been removed; :issue:" -"`36933` (Contributed by Matthias Bussonnier.)" +"The functions :func:`sys.set_coroutine_wrapper` " +"and :func:`sys.get_coroutine_wrapper` deprecated in Python 3.7 have been " +"removed; :issue:`36933` (Contributed by Matthias Bussonnier.)" msgstr "" msgid "Porting to Python 3.8" @@ -1993,8 +2012,8 @@ msgid "" "(``is`` and ``is not``) are used with certain types of literals (e.g. " "strings, numbers). These can often work by accident in CPython, but are not " "guaranteed by the language spec. The warning advises users to use equality " -"tests (``==`` and ``!=``) instead. (Contributed by Serhiy Storchaka in :" -"issue:`34850`.)" +"tests (``==`` and ``!=``) instead. (Contributed by Serhiy Storchaka " +"in :issue:`34850`.)" msgstr "" msgid "" @@ -2005,30 +2024,30 @@ msgid "" msgstr "" msgid "" -"Removed ``__str__`` implementations from builtin types :class:`bool`, :class:" -"`int`, :class:`float`, :class:`complex` and few classes from the standard " -"library. They now inherit ``__str__()`` from :class:`object`. As result, " -"defining the ``__repr__()`` method in the subclass of these classes will " -"affect their string representation. (Contributed by Serhiy Storchaka in :" -"issue:`36793`.)" +"Removed ``__str__`` implementations from builtin " +"types :class:`bool`, :class:`int`, :class:`float`, :class:`complex` and few " +"classes from the standard library. They now inherit ``__str__()`` " +"from :class:`object`. As result, defining the ``__repr__()`` method in the " +"subclass of these classes will affect their string representation. " +"(Contributed by Serhiy Storchaka in :issue:`36793`.)" msgstr "" msgid "" "On AIX, :attr:`sys.platform` doesn't contain the major version anymore. It " "is always ``'aix'``, instead of ``'aix3'`` .. ``'aix7'``. Since older " "Python versions include the version number, so it is recommended to always " -"use ``sys.platform.startswith('aix')``. (Contributed by M. Felt in :issue:" -"`36588`.)" +"use ``sys.platform.startswith('aix')``. (Contributed by M. Felt " +"in :issue:`36588`.)" msgstr "" msgid "" ":c:func:`PyEval_AcquireLock` and :c:func:`PyEval_AcquireThread` now " "terminate the current thread if called while the interpreter is finalizing, " -"making them consistent with :c:func:`PyEval_RestoreThread`, :c:func:" -"`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`. If this behavior is " -"not desired, guard the call by checking :c:func:`_Py_IsFinalizing` or :c:" -"func:`sys.is_finalizing`. (Contributed by Joannah Nanjekye in :issue:" -"`36475`.)" +"making them consistent " +"with :c:func:`PyEval_RestoreThread`, :c:func:`Py_END_ALLOW_THREADS`, " +"and :c:func:`PyGILState_Ensure`. If this behavior is not desired, guard the " +"call by checking :c:func:`_Py_IsFinalizing` or :c:func:`sys.is_finalizing`. " +"(Contributed by Joannah Nanjekye in :issue:`36475`.)" msgstr "" msgid "Changes in the Python API" @@ -2053,8 +2072,8 @@ msgstr "" msgid "" "The *preexec_fn* argument of * :class:`subprocess.Popen` is no longer " "compatible with subinterpreters. The use of the parameter in a " -"subinterpreter now raises :exc:`RuntimeError`. (Contributed by Eric Snow in :" -"issue:`34651`, modified by Christian Heimes in :issue:`37951`.)" +"subinterpreter now raises :exc:`RuntimeError`. (Contributed by Eric Snow " +"in :issue:`34651`, modified by Christian Heimes in :issue:`37951`.)" msgstr "" msgid "" @@ -2069,40 +2088,41 @@ msgid "" msgstr "" 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`.)" +"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 "" msgid "" -"The :meth:`writexml`, :meth:`toxml` and :meth:`toprettyxml` methods of :mod:" -"`xml.dom.minidom`, and the :meth:`write` method of :mod:`xml.etree`, now " -"preserve the attribute order specified by the user. (Contributed by Diego " -"Rojas and Raymond Hettinger in :issue:`34160`.)" +"The :meth:`writexml`, :meth:`toxml` and :meth:`toprettyxml` methods " +"of :mod:`xml.dom.minidom`, and the :meth:`write` method of :mod:`xml.etree`, " +"now preserve the attribute order specified by the user. (Contributed by " +"Diego Rojas and Raymond Hettinger in :issue:`34160`.)" msgstr "" 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`.)" +"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 "" msgid "" -"The ``doctype()`` method defined in a subclass of :class:`~xml.etree." -"ElementTree.XMLParser` will no longer be called and will emit 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`.)" +"The ``doctype()`` method defined in a subclass " +"of :class:`~xml.etree.ElementTree.XMLParser` will no longer be called and " +"will emit 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 "" 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`.)" +"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 "" msgid "" @@ -2111,10 +2131,9 @@ msgid "" msgstr "" 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)." +":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 "" msgid "" @@ -2153,17 +2172,18 @@ msgid "" msgstr "" msgid "" -"Deleting a key from a read-only :mod:`dbm` database (:mod:`dbm.dumb`, :mod:" -"`dbm.gnu` or :mod:`dbm.ndbm`) raises :attr:`error` (:exc:`dbm.dumb.error`, :" -"exc:`dbm.gnu.error` or :exc:`dbm.ndbm.error`) instead of :exc:`KeyError`. " -"(Contributed by Xiang Zhang in :issue:`33106`.)" +"Deleting a key from a read-only :mod:`dbm` database " +"(:mod:`dbm.dumb`, :mod:`dbm.gnu` or :mod:`dbm.ndbm`) raises :attr:`error` " +"(:exc:`dbm.dumb.error`, :exc:`dbm.gnu.error` or :exc:`dbm.ndbm.error`) " +"instead of :exc:`KeyError`. (Contributed by Xiang Zhang in :issue:`33106`.)" msgstr "" msgid "" -"Simplified AST for literals. All constants will be represented as :class:" -"`ast.Constant` instances. Instantiating old classes ``Num``, ``Str``, " -"``Bytes``, ``NameConstant`` and ``Ellipsis`` will return an instance of " -"``Constant``. (Contributed by Serhiy Storchaka in :issue:`32892`.)" +"Simplified AST for literals. All constants will be represented " +"as :class:`ast.Constant` instances. Instantiating old classes ``Num``, " +"``Str``, ``Bytes``, ``NameConstant`` and ``Ellipsis`` will return an " +"instance of ``Constant``. (Contributed by Serhiy Storchaka " +"in :issue:`32892`.)" msgstr "" msgid "" @@ -2185,15 +2205,16 @@ msgstr "" msgid "" "DLL dependencies for extension modules and DLLs loaded with :mod:`ctypes` on " "Windows are now resolved more securely. Only the system paths, the directory " -"containing the DLL or PYD file, and directories added with :func:`~os." -"add_dll_directory` are searched for load-time dependencies. Specifically, :" -"envvar:`PATH` and the current working directory are no longer used, and " -"modifications to these will no longer have any effect on normal DLL " -"resolution. If your application relies on these mechanisms, you should check " -"for :func:`~os.add_dll_directory` and if it exists, use it to add your DLLs " -"directory while loading your library. Note that Windows 7 users will need to " -"ensure that Windows Update KB2533623 has been installed (this is also " -"verified by the installer). (Contributed by Steve Dower in :issue:`36085`.)" +"containing the DLL or PYD file, and directories added " +"with :func:`~os.add_dll_directory` are searched for load-time dependencies. " +"Specifically, :envvar:`PATH` and the current working directory are no longer " +"used, and modifications to these will no longer have any effect on normal " +"DLL resolution. If your application relies on these mechanisms, you should " +"check for :func:`~os.add_dll_directory` and if it exists, use it to add your " +"DLLs directory while loading your library. Note that Windows 7 users will " +"need to ensure that Windows Update KB2533623 has been installed (this is " +"also verified by the installer). (Contributed by Steve Dower " +"in :issue:`36085`.)" msgstr "" msgid "" @@ -2243,20 +2264,21 @@ msgid "" msgstr "" msgid "" -"Use of ``#`` variants of formats in parsing or building value (e.g. :c:func:" -"`PyArg_ParseTuple`, :c:func:`Py_BuildValue`, :c:func:" -"`PyObject_CallFunction`, etc.) without ``PY_SSIZE_T_CLEAN`` defined raises " -"``DeprecationWarning`` now. It will be removed in 3.10 or 4.0. Read :ref:" -"`arg-parsing` for detail. (Contributed by Inada Naoki in :issue:`36381`.)" +"Use of ``#`` variants of formats in parsing or building value " +"(e.g. :c:func:`PyArg_ParseTuple`, :c:func:`Py_BuildValue`, :c:func:`PyObject_CallFunction`, " +"etc.) without ``PY_SSIZE_T_CLEAN`` defined raises ``DeprecationWarning`` " +"now. It will be removed in 3.10 or 4.0. Read :ref:`arg-parsing` for detail. " +"(Contributed by Inada Naoki in :issue:`36381`.)" msgstr "" msgid "" -"Instances of heap-allocated types (such as those created with :c:func:" -"`PyType_FromSpec`) hold a reference to their type object. Increasing the " -"reference count of these type objects has been moved from :c:func:" -"`PyType_GenericAlloc` to the more low-level functions, :c:func:" -"`PyObject_Init` and :c:func:`PyObject_INIT`. This makes types created " -"through :c:func:`PyType_FromSpec` behave like other classes in managed code." +"Instances of heap-allocated types (such as those created " +"with :c:func:`PyType_FromSpec`) hold a reference to their type object. " +"Increasing the reference count of these type objects has been moved " +"from :c:func:`PyType_GenericAlloc` to the more low-level " +"functions, :c:func:`PyObject_Init` and :c:func:`PyObject_INIT`. This makes " +"types created through :c:func:`PyType_FromSpec` behave like other classes in " +"managed code." msgstr "" msgid ":ref:`Statically allocated types ` are not affected." @@ -2276,14 +2298,14 @@ msgstr "" msgid "" "Remove :c:macro:`Py_INCREF` on the type object after allocating an instance " -"- if any. This may happen after calling :c:func:`PyObject_New`, :c:func:" -"`PyObject_NewVar`, :c:func:`PyObject_GC_New`, :c:func:`PyObject_GC_NewVar`, " -"or any other custom allocator that uses :c:func:`PyObject_Init` or :c:func:" -"`PyObject_INIT`." +"- if any. This may happen after " +"calling :c:func:`PyObject_New`, :c:func:`PyObject_NewVar`, :c:func:`PyObject_GC_New`, :c:func:`PyObject_GC_NewVar`, " +"or any other custom allocator that uses :c:func:`PyObject_Init` " +"or :c:func:`PyObject_INIT`." msgstr "" msgid "Example:" -msgstr "" +msgstr "Przykład:" msgid "" "Ensure that all custom ``tp_dealloc`` functions of heap-allocated types " @@ -2305,9 +2327,10 @@ msgid "" "The interpreter does not pretend to support binary compatibility of " "extension types across feature releases, anymore. A :c:type:`PyTypeObject` " "exported by a third-party extension module is supposed to have all the slots " -"expected in the current Python version, including :c:member:`~PyTypeObject." -"tp_finalize` (:const:`Py_TPFLAGS_HAVE_FINALIZE` is not checked anymore " -"before reading :c:member:`~PyTypeObject.tp_finalize`)." +"expected in the current Python version, " +"including :c:member:`~PyTypeObject.tp_finalize` " +"(:const:`Py_TPFLAGS_HAVE_FINALIZE` is not checked anymore before " +"reading :c:member:`~PyTypeObject.tp_finalize`)." msgstr "" msgid "(Contributed by Antoine Pitrou in :issue:`32388`.)" @@ -2328,10 +2351,10 @@ msgstr "" msgid "" "The location of an installed :file:`pythonXY.dll` will depend on the " -"installation options and the version and language of Windows. See :ref:" -"`using-on-windows` for more information. The resulting library should be " -"placed in the same directory as :file:`pythonXY.lib`, which is generally " -"the :file:`libs` directory under your Python installation." +"installation options and the version and language of Windows. " +"See :ref:`using-on-windows` for more information. The resulting library " +"should be placed in the same directory as :file:`pythonXY.lib`, which is " +"generally the :file:`libs` directory under your Python installation." msgstr "" msgid "(Contributed by Steve Dower in :issue:`37351`.)" @@ -2348,16 +2371,17 @@ msgid "" msgstr "" 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`." +"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 "" msgid "" -"(Contributed by Mark Shannon, Antoine Pitrou and Serhiy Storchaka in :issue:" -"`17611`.)" +"(Contributed by Mark Shannon, Antoine Pitrou and Serhiy Storchaka " +"in :issue:`17611`.)" msgstr "" msgid "" @@ -2397,12 +2421,12 @@ msgid "Notable changes in Python 3.8.1" msgstr "" 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`.)" +"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 "" msgid "Notable changes in Python 3.8.8" @@ -2410,13 +2434,14 @@ msgstr "" msgid "" "Earlier Python versions allowed using both ``;`` and ``&`` as query " -"parameter separators in :func:`urllib.parse.parse_qs` and :func:`urllib." -"parse.parse_qsl`. Due to security concerns, and to conform with newer W3C " -"recommendations, this has been changed to allow only a single separator key, " -"with ``&`` as the default. This change also affects :func:`cgi.parse` and :" -"func:`cgi.parse_multipart` as they use the affected functions internally. " -"For more details, please see their respective documentation. (Contributed by " -"Adam Goldschmidt, Senthil Kumaran and Ken Jin in :issue:`42967`.)" +"parameter separators in :func:`urllib.parse.parse_qs` " +"and :func:`urllib.parse.parse_qsl`. Due to security concerns, and to " +"conform with newer W3C recommendations, this has been changed to allow only " +"a single separator key, with ``&`` as the default. This change also " +"affects :func:`cgi.parse` and :func:`cgi.parse_multipart` as they use the " +"affected functions internally. For more details, please see their respective " +"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " +"in :issue:`42967`.)" msgstr "" msgid "Notable changes in Python 3.8.12" diff --git a/whatsnew/3.9.po b/whatsnew/3.9.po index c4a80d01d2..a700eb15d6 100644 --- a/whatsnew/3.9.po +++ b/whatsnew/3.9.po @@ -1,45 +1,32 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 -# Krzysztof Abramowicz, 2022 -# Maciej Olko , 2022 +# python-doc bot, 2025 +# Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Python 3.11\n" +"Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-05 19:46+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Maciej Olko , 2022\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: Maciej Olko, 2026\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "What's New In Python 3.9" msgstr "Co nowego w Pythonie 3.9" -msgid "Release" -msgstr "wydanie" - -msgid "|release|" -msgstr "|release|" - -msgid "Date" -msgstr "data" - -msgid "|today|" -msgstr "|today|" - msgid "Editor" msgstr "redakcja" @@ -112,28 +99,22 @@ msgid "garbage collection does not block on resurrected objects;" msgstr "garbage collection nie blokuje się na wskrzeszonych obiektach;" msgid "" -"a number of Python modules (:mod:`_abc`, :mod:`audioop`, :mod:`_bz2`, :mod:" -"`_codecs`, :mod:`_contextvars`, :mod:`_crypt`, :mod:`_functools`, :mod:" -"`_json`, :mod:`_locale`, :mod:`math`, :mod:`operator`, :mod:`resource`, :mod:" -"`time`, :mod:`_weakref`) now use multiphase initialization as defined by PEP " -"489;" +"a number of Python modules " +"(:mod:`_abc`, :mod:`audioop`, :mod:`_bz2`, :mod:`_codecs`, :mod:`_contextvars`, :mod:`_crypt`, :mod:`_functools`, :mod:`_json`, :mod:`_locale`, :mod:`math`, :mod:`operator`, :mod:`resource`, :mod:`time`, :mod:`_weakref`) " +"now use multiphase initialization as defined by PEP 489;" msgstr "" -"wiele modułów Pythona (:mod:`_abc`, :mod:`audioop`, :mod:`_bz2`, :mod:" -"`_codecs`, :mod:`_contextvars`, :mod:`_crypt`, :mod:`_functools`, :mod:" -"`_json`, :mod:`_locale`, :mod:`math`, :mod:`operator`, :mod:`resource`, :mod:" -"`time`, :mod:`_weakref`) używa teraz wielofazowej inicjalizacji określonej " -"przez PEP 489;" +"wiele modułów Pythona " +"(:mod:`_abc`, :mod:`audioop`, :mod:`_bz2`, :mod:`_codecs`, :mod:`_contextvars`, :mod:`_crypt`, :mod:`_functools`, :mod:`_json`, :mod:`_locale`, :mod:`math`, :mod:`operator`, :mod:`resource`, :mod:`time`, :mod:`_weakref`) " +"używa teraz wielofazowej inicjalizacji określonej przez PEP 489;" msgid "" -"a number of standard library modules (:mod:`audioop`, :mod:`ast`, :mod:" -"`grp`, :mod:`_hashlib`, :mod:`pwd`, :mod:`_posixsubprocess`, :mod:`random`, :" -"mod:`select`, :mod:`struct`, :mod:`termios`, :mod:`zlib`) are now using the " -"stable ABI defined by PEP 384." +"a number of standard library modules " +"(:mod:`audioop`, :mod:`ast`, :mod:`grp`, :mod:`_hashlib`, :mod:`pwd`, :mod:`_posixsubprocess`, :mod:`random`, :mod:`select`, :mod:`struct`, :mod:`termios`, :mod:`zlib`) " +"are now using the stable ABI defined by PEP 384." msgstr "" -"wiele modułów biblioteki standardowej (:mod:`audioop`, :mod:`ast`, :mod:" -"`grp`, :mod:`_hashlib`, :mod:`pwd`, :mod:`_posixsubprocess`, :mod:`random`, :" -"mod:`select`, :mod:`struct`, :mod:`termios`, :mod:`zlib`) używa teraz " -"stablinego ABI określonego w PEP 384." +"wiele modułów biblioteki standardowej " +"(:mod:`audioop`, :mod:`ast`, :mod:`grp`, :mod:`_hashlib`, :mod:`pwd`, :mod:`_posixsubprocess`, :mod:`random`, :mod:`select`, :mod:`struct`, :mod:`termios`, :mod:`zlib`) " +"używa teraz stablinego ABI określonego w PEP 384." msgid "New library modules:" msgstr "Nowe moduły biblioteki:" @@ -149,8 +130,8 @@ msgid "" "an implementation of a topological sort of a graph is now provided in the " "new :mod:`graphlib` module." msgstr "" -"implementacja sortowania topologicznego grafu znajduje się w nowym module :" -"mod:`graphlib`." +"implementacja sortowania topologicznego grafu znajduje się w nowym " +"module :mod:`graphlib`." msgid "Release process changes:" msgstr "Zmiany w procesie wydawniczym:" @@ -173,10 +154,10 @@ msgstr "" "Gdy Python 2.7 był jeszcze wspierany, wiele funkcjonalności było utrzymanych " "w Pythonie 3 dla zgodności wstecznej z Pythonem 2.7. Wraz z zakończeniem " "wsparcia dla Pythona 2.7, te warstwy kompatybilności wstecznej zostały " -"usunięte, lub zostaną wkrótce usunięte. Większość z nich emitowała warning :" -"exc:`DeprecationWarning` przez kilka lat. Na przykład użycie ``collections." -"Mapping`` zamiast ``collections.abc.Mapping`` emituje :exc:" -"`DeprecationWarning` od Pythona 3.3, wydanego w 2012." +"usunięte, lub zostaną wkrótce usunięte. Większość z nich emitowała " +"warning :exc:`DeprecationWarning` przez kilka lat. Na przykład użycie " +"``collections.Mapping`` zamiast ``collections.abc.Mapping`` " +"emituje :exc:`DeprecationWarning` od Pythona 3.3, wydanego w 2012." msgid "" "Test your application with the :option:`-W` ``default`` command-line option " @@ -187,9 +168,9 @@ msgid "" msgstr "" "Testuj swoją aplikację z opcją linii komend :option:`-W` ``default``, by " "widzieć :exc:`DeprecationWarning`\\i i :exc:`PendingDeprecationWarning`\\i, " -"lub nawet z :option:`-W` ``error``, by traktować je jako błędy. Możesz użyć :" -"ref:`filtra warningów `, by ignorować warningi z kodu od " -"osób trzecich." +"lub nawet z :option:`-W` ``error``, by traktować je jako błędy. Możesz " +"użyć :ref:`filtra warningów `, by ignorować warningi z kodu " +"od osób trzecich." msgid "" "Python 3.9 is the last version providing those Python 2 backward " @@ -203,14 +184,14 @@ msgstr "" msgid "" "Aliases to :ref:`Abstract Base Classes ` " -"in the :mod:`collections` module, like ``collections.Mapping`` alias to :" -"class:`collections.abc.Mapping`, are kept for one last release for backward " -"compatibility. They will be removed from Python 3.10." +"in the :mod:`collections` module, like ``collections.Mapping`` alias " +"to :class:`collections.abc.Mapping`, are kept for one last release for " +"backward compatibility. They will be removed from Python 3.10." msgstr "" "Aliasy :ref:`abstrakcyjnych klas bazowych ` w module :mod:`collections`, takie jak alias ``collections." -"Mapping`` do :class:`collections.abc.Mapping`, są zachowane na to jedno " -"wydanie dla zgodności wstecznej. Zostaną usunięte z Pythona 3.10." +"classes>` w module :mod:`collections`, takie jak alias " +"``collections.Mapping`` do :class:`collections.abc.Mapping`, są zachowane na " +"to jedno wydanie dla zgodności wstecznej. Zostaną usunięte z Pythona 3.10." msgid "" "More generally, try to run your tests in the :ref:`Python Development Mode " @@ -230,29 +211,29 @@ msgid "Dictionary Merge & Update Operators" msgstr "Operatory łączenia i aktualizowania słowników" msgid "" -"Merge (``|``) and update (``|=``) operators have been added to the built-in :" -"class:`dict` class. Those complement the existing ``dict.update`` and " +"Merge (``|``) and update (``|=``) operators have been added to the built-" +"in :class:`dict` class. Those complement the existing ``dict.update`` and " "``{**d1, **d2}`` methods of merging dictionaries." msgstr "" msgid "Example::" -msgstr "" +msgstr "Przykład::" msgid "" -"See :pep:`584` for a full description. (Contributed by Brandt Bucher in :" -"issue:`36144`.)" +"See :pep:`584` for a full description. (Contributed by Brandt Bucher " +"in :issue:`36144`.)" msgstr "" msgid "New String Methods to Remove Prefixes and Suffixes" msgstr "" msgid "" -":meth:`str.removeprefix(prefix)` and :meth:`str." -"removesuffix(suffix)` have been added to easily remove an " -"unneeded prefix or a suffix from a string. Corresponding ``bytes``, " -"``bytearray``, and ``collections.UserString`` methods have also been added. " -"See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :" -"issue:`39939`.)" +":meth:`str.removeprefix(prefix)` " +"and :meth:`str.removesuffix(suffix)` have been added to " +"easily remove an unneeded prefix or a suffix from a string. Corresponding " +"``bytes``, ``bytearray``, and ``collections.UserString`` methods have also " +"been added. See :pep:`616` for a full description. (Contributed by Dennis " +"Sweeney in :issue:`39939`.)" msgstr "" msgid "Type Hinting Generics in Standard Collections" @@ -267,7 +248,7 @@ msgid "" msgstr "" msgid "Example:" -msgstr "" +msgstr "Przykład:" msgid "" "See :pep:`585` for more details. (Contributed by Guido van Rossum, Ethan " @@ -308,26 +289,26 @@ msgid "Other Language Changes" msgstr "" msgid "" -":func:`__import__` now raises :exc:`ImportError` instead of :exc:" -"`ValueError`, which used to occur when a relative import went past its top-" -"level package. (Contributed by Ngalim Siregar in :issue:`37444`.)" +":func:`__import__` now raises :exc:`ImportError` instead " +"of :exc:`ValueError`, which used to occur when a relative import went past " +"its top-level package. (Contributed by Ngalim Siregar in :issue:`37444`.)" msgstr "" msgid "" "Python now gets the absolute path of the script filename specified on the " -"command line (ex: ``python3 script.py``): the ``__file__`` attribute of the :" -"mod:`__main__` module became an absolute path, rather than a relative path. " -"These paths now remain valid after the current directory is changed by :func:" -"`os.chdir`. As a side effect, the traceback also displays the absolute path " -"for :mod:`__main__` module frames in this case. (Contributed by Victor " -"Stinner in :issue:`20443`.)" +"command line (ex: ``python3 script.py``): the ``__file__`` attribute of " +"the :mod:`__main__` module became an absolute path, rather than a relative " +"path. These paths now remain valid after the current directory is changed " +"by :func:`os.chdir`. As a side effect, the traceback also displays the " +"absolute path for :mod:`__main__` module frames in this case. (Contributed " +"by Victor Stinner in :issue:`20443`.)" msgstr "" msgid "" "In the :ref:`Python Development Mode ` and in :ref:`debug build " "`, the *encoding* and *errors* arguments are now checked for " -"string encoding and decoding operations. Examples: :func:`open`, :meth:`str." -"encode` and :meth:`bytes.decode`." +"string encoding and decoding operations. " +"Examples: :func:`open`, :meth:`str.encode` and :meth:`bytes.decode`." msgstr "" msgid "" @@ -358,23 +339,24 @@ msgid "" msgstr "" msgid "" -"Parallel running of :meth:`~agen.aclose` / :meth:`~agen.asend` / :meth:" -"`~agen.athrow` is now prohibited, and ``ag_running`` now reflects the actual " -"running status of the async generator. (Contributed by Yury Selivanov in :" -"issue:`30773`.)" +"Parallel running " +"of :meth:`~agen.aclose` / :meth:`~agen.asend` / :meth:`~agen.athrow` is now " +"prohibited, and ``ag_running`` now reflects the actual running status of the " +"async generator. (Contributed by Yury Selivanov in :issue:`30773`.)" msgstr "" msgid "" "Unexpected errors in calling the ``__iter__`` method are no longer masked by " -"``TypeError`` in the :keyword:`in` operator and functions :func:`~operator." -"contains`, :func:`~operator.indexOf` and :func:`~operator.countOf` of the :" -"mod:`operator` module. (Contributed by Serhiy Storchaka in :issue:`40824`.)" +"``TypeError`` in the :keyword:`in` operator and " +"functions :func:`~operator.contains`, :func:`~operator.indexOf` " +"and :func:`~operator.countOf` of the :mod:`operator` module. (Contributed by " +"Serhiy Storchaka in :issue:`40824`.)" msgstr "" msgid "" "Unparenthesized lambda expressions can no longer be the expression part in " -"an ``if`` clause in comprehensions and generator expressions. See :issue:" -"`41848` and :issue:`43755` for details." +"an ``if`` clause in comprehensions and generator expressions. " +"See :issue:`41848` and :issue:`43755` for details." msgstr "" msgid "New Modules" @@ -385,8 +367,9 @@ msgstr "" msgid "" "The :mod:`zoneinfo` module brings support for the IANA time zone database to " -"the standard library. It adds :class:`zoneinfo.ZoneInfo`, a concrete :class:" -"`datetime.tzinfo` implementation backed by the system's time zone data." +"the standard library. It adds :class:`zoneinfo.ZoneInfo`, a " +"concrete :class:`datetime.tzinfo` implementation backed by the system's time " +"zone data." msgstr "" msgid "" @@ -406,22 +389,22 @@ msgid "graphlib" msgstr "" msgid "" -"A new module, :mod:`graphlib`, was added that contains the :class:`graphlib." -"TopologicalSorter` class to offer functionality to perform topological " -"sorting of graphs. (Contributed by Pablo Galindo, Tim Peters and Larry " -"Hastings in :issue:`17005`.)" +"A new module, :mod:`graphlib`, was added that contains " +"the :class:`graphlib.TopologicalSorter` class to offer functionality to " +"perform topological sorting of graphs. (Contributed by Pablo Galindo, Tim " +"Peters and Larry Hastings in :issue:`17005`.)" msgstr "" msgid "Improved Modules" -msgstr "" +msgstr "Ulepszone moduły" msgid "ast" msgstr "" msgid "" "Added the *indent* option to :func:`~ast.dump` which allows it to produce a " -"multiline indented output. (Contributed by Serhiy Storchaka in :issue:" -"`37995`.)" +"multiline indented output. (Contributed by Serhiy Storchaka " +"in :issue:`37995`.)" msgstr "" msgid "" @@ -437,23 +420,24 @@ msgid "" msgstr "" msgid "asyncio" -msgstr "" +msgstr "asyncio" 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`.)" +"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 "" msgid "" -"Added a new :term:`coroutine` :meth:`~asyncio.loop." -"shutdown_default_executor` that schedules a shutdown for the default " -"executor that waits on the :class:`~concurrent.futures.ThreadPoolExecutor` " -"to finish closing. Also, :func:`asyncio.run` has been updated to use the " -"new :term:`coroutine`. (Contributed by Kyle Stanley in :issue:`34037`.)" +"Added a " +"new :term:`coroutine` :meth:`~asyncio.loop.shutdown_default_executor` that " +"schedules a shutdown for the default executor that waits on " +"the :class:`~concurrent.futures.ThreadPoolExecutor` to finish closing. " +"Also, :func:`asyncio.run` has been updated to use the new :term:`coroutine`. " +"(Contributed by Kyle Stanley in :issue:`34037`.)" msgstr "" msgid "" @@ -464,9 +448,10 @@ msgstr "" msgid "" "Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is mainly used " "for running IO-bound functions in a separate thread to avoid blocking the " -"event loop, and essentially works as a high-level version of :meth:`~asyncio." -"loop.run_in_executor` that can directly take keyword arguments. (Contributed " -"by Kyle Stanley and Yury Selivanov in :issue:`32309`.)" +"event loop, and essentially works as a high-level version " +"of :meth:`~asyncio.loop.run_in_executor` that can directly take keyword " +"arguments. (Contributed by Kyle Stanley and Yury Selivanov " +"in :issue:`32309`.)" msgstr "" msgid "" @@ -495,18 +480,19 @@ msgid "" "Added new options for path manipulation in resulting ``.pyc`` files: " "*stripdir*, *prependdir*, *limit_sl_dest* parameters and -s, -p, -e command " "line options. Added the possibility to specify the option for an " -"optimization level multiple times. (Contributed by Lumír 'Frenzy' Balhar in :" -"issue:`38112`.)" +"optimization level multiple times. (Contributed by Lumír 'Frenzy' Balhar " +"in :issue:`38112`.)" msgstr "" msgid "concurrent.futures" msgstr "" msgid "" -"Added a new *cancel_futures* parameter to :meth:`concurrent.futures.Executor." -"shutdown` that cancels all pending futures which have not started running, " -"instead of waiting for them to complete before shutting down the executor. " -"(Contributed by Kyle Stanley in :issue:`39349`.)" +"Added a new *cancel_futures* parameter " +"to :meth:`concurrent.futures.Executor.shutdown` that cancels all pending " +"futures which have not started running, instead of waiting for them to " +"complete before shutting down the executor. (Contributed by Kyle Stanley " +"in :issue:`39349`.)" msgstr "" msgid "" @@ -527,19 +513,19 @@ msgid "curses" msgstr "" msgid "" -"Added :func:`curses.get_escdelay`, :func:`curses.set_escdelay`, :func:" -"`curses.get_tabsize`, and :func:`curses.set_tabsize` functions. (Contributed " -"by Anthony Sottile in :issue:`38312`.)" +"Added :func:`curses.get_escdelay`, :func:`curses.set_escdelay`, :func:`curses.get_tabsize`, " +"and :func:`curses.set_tabsize` functions. (Contributed by Anthony Sottile " +"in :issue:`38312`.)" msgstr "" msgid "datetime" msgstr "" msgid "" -"The :meth:`~datetime.date.isocalendar()` of :class:`datetime.date` and :meth:" -"`~datetime.datetime.isocalendar()` of :class:`datetime.datetime` methods now " -"returns a :func:`~collections.namedtuple` instead of a :class:`tuple`. " -"(Contributed by Dong-hee Na in :issue:`24416`.)" +"The :meth:`~datetime.date.isocalendar()` of :class:`datetime.date` " +"and :meth:`~datetime.datetime.isocalendar()` of :class:`datetime.datetime` " +"methods now returns a :func:`~collections.namedtuple` instead of " +"a :class:`tuple`. (Contributed by Dong-hee Na in :issue:`24416`.)" msgstr "" msgid "distutils" @@ -555,18 +541,19 @@ msgid "fcntl" msgstr "" msgid "" -"Added constants :data:`~fcntl.F_OFD_GETLK`, :data:`~fcntl.F_OFD_SETLK` and :" -"data:`~fcntl.F_OFD_SETLKW`. (Contributed by Dong-hee Na in :issue:`38602`.)" +"Added constants :data:`~fcntl.F_OFD_GETLK`, :data:`~fcntl.F_OFD_SETLK` " +"and :data:`~fcntl.F_OFD_SETLKW`. (Contributed by Dong-hee Na " +"in :issue:`38602`.)" msgstr "" msgid "ftplib" msgstr "" msgid "" -":class:`~ftplib.FTP` and :class:`~ftplib.FTP_TLS` now raise a :class:" -"`ValueError` if the given timeout for their constructor is zero to prevent " -"the creation of a non-blocking socket. (Contributed by Dong-hee Na in :issue:" -"`39259`.)" +":class:`~ftplib.FTP` and :class:`~ftplib.FTP_TLS` now raise " +"a :class:`ValueError` if the given timeout for their constructor is zero to " +"prevent the creation of a non-blocking socket. (Contributed by Dong-hee Na " +"in :issue:`39259`.)" msgstr "" msgid "gc" @@ -576,14 +563,14 @@ msgid "" "When the garbage collector makes a collection in which some objects " "resurrect (they are reachable from outside the isolated cycles after the " "finalizers have been executed), do not block the collection of all objects " -"that are still unreachable. (Contributed by Pablo Galindo and Tim Peters in :" -"issue:`38379`.)" +"that are still unreachable. (Contributed by Pablo Galindo and Tim Peters " +"in :issue:`38379`.)" msgstr "" msgid "" "Added a new function :func:`gc.is_finalized` to check if an object has been " -"finalized by the garbage collector. (Contributed by Pablo Galindo in :issue:" -"`39322`.)" +"finalized by the garbage collector. (Contributed by Pablo Galindo " +"in :issue:`39322`.)" msgstr "" msgid "hashlib" @@ -614,8 +601,8 @@ msgid "IDLE and idlelib" msgstr "" msgid "" -"Added option to toggle cursor blink off. (Contributed by Zackery Spytz in :" -"issue:`4603`.)" +"Added option to toggle cursor blink off. (Contributed by Zackery Spytz " +"in :issue:`4603`.)" msgstr "" msgid "" @@ -633,8 +620,8 @@ msgstr "" msgid "" "Make IDLE invoke :func:`sys.excepthook` (when started without '-n'). User " -"hooks were previously ignored. (Contributed by Ken Hilton in :issue:" -"`43008`.)" +"hooks were previously ignored. (Contributed by Ken Hilton " +"in :issue:`43008`.)" msgstr "" msgid "The changes above have been backported to 3.8 maintenance releases." @@ -644,10 +631,10 @@ msgid "" "Rearrange the settings dialog. Split the General tab into Windows and Shell/" "Ed tabs. Move help sources, which extend the Help menu, to the Extensions " "tab. Make space for new options and shorten the dialog. The latter makes " -"the dialog better fit small screens. (Contributed by Terry Jan Reedy in :" -"issue:`40468`.) Move the indent space setting from the Font tab to the new " -"Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:" -"`33962`.)" +"the dialog better fit small screens. (Contributed by Terry Jan Reedy " +"in :issue:`40468`.) Move the indent space setting from the Font tab to the " +"new Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy " +"in :issue:`33962`.)" msgstr "" msgid "" @@ -660,11 +647,11 @@ msgstr "" msgid "" ":class:`~imaplib.IMAP4` and :class:`~imaplib.IMAP4_SSL` now have an optional " -"*timeout* parameter for their constructors. Also, the :meth:`~imaplib.IMAP4." -"open` method now has an optional *timeout* parameter with this change. The " -"overridden methods of :class:`~imaplib.IMAP4_SSL` and :class:`~imaplib." -"IMAP4_stream` were applied to this change. (Contributed by Dong-hee Na in :" -"issue:`38615`.)" +"*timeout* parameter for their constructors. Also, " +"the :meth:`~imaplib.IMAP4.open` method now has an optional *timeout* " +"parameter with this change. The overridden methods " +"of :class:`~imaplib.IMAP4_SSL` and :class:`~imaplib.IMAP4_stream` were " +"applied to this change. (Contributed by Dong-hee Na in :issue:`38615`.)" msgstr "" msgid "" @@ -680,10 +667,10 @@ msgid "importlib" msgstr "" msgid "" -"To improve consistency with import statements, :func:`importlib.util." -"resolve_name` now raises :exc:`ImportError` instead of :exc:`ValueError` for " -"invalid relative import attempts. (Contributed by Ngalim Siregar in :issue:" -"`37444`.)" +"To improve consistency with import " +"statements, :func:`importlib.util.resolve_name` now " +"raises :exc:`ImportError` instead of :exc:`ValueError` for invalid relative " +"import attempts. (Contributed by Ngalim Siregar in :issue:`37444`.)" msgstr "" msgid "" @@ -707,8 +694,8 @@ msgstr "" msgid "" ":attr:`inspect.BoundArguments.arguments` is changed from ``OrderedDict`` to " -"regular dict. (Contributed by Inada Naoki in :issue:`36350` and :issue:" -"`39775`.)" +"regular dict. (Contributed by Inada Naoki in :issue:`36350` " +"and :issue:`39775`.)" msgstr "" msgid "ipaddress" @@ -721,15 +708,15 @@ msgstr "" msgid "" "Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If " -"present, scope zone ID is available through the :attr:`~ipaddress." -"IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:" -"`34788`.)" +"present, scope zone ID is available through " +"the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by " +"Oleksandr Pavliuk in :issue:`34788`.)" msgstr "" msgid "" "Starting with Python 3.9.5 the :mod:`ipaddress` module no longer accepts any " -"leading zeros in IPv4 address strings. (Contributed by Christian Heimes in :" -"issue:`36384`)." +"leading zeros in IPv4 address strings. (Contributed by Christian Heimes " +"in :issue:`36384`)." msgstr "" msgid "math" @@ -761,32 +748,33 @@ msgid "multiprocessing" msgstr "" msgid "" -"The :class:`multiprocessing.SimpleQueue` class has a new :meth:" -"`~multiprocessing.SimpleQueue.close` method to explicitly close the queue. " -"(Contributed by Victor Stinner in :issue:`30966`.)" +"The :class:`multiprocessing.SimpleQueue` class has a " +"new :meth:`~multiprocessing.SimpleQueue.close` method to explicitly close " +"the queue. (Contributed by Victor Stinner in :issue:`30966`.)" msgstr "" msgid "nntplib" msgstr "" msgid "" -":class:`~nntplib.NNTP` and :class:`~nntplib.NNTP_SSL` now raise a :class:" -"`ValueError` if the given timeout for their constructor is zero to prevent " -"the creation of a non-blocking socket. (Contributed by Dong-hee Na in :issue:" -"`39259`.)" +":class:`~nntplib.NNTP` and :class:`~nntplib.NNTP_SSL` now raise " +"a :class:`ValueError` if the given timeout for their constructor is zero to " +"prevent the creation of a non-blocking socket. (Contributed by Dong-hee Na " +"in :issue:`39259`.)" msgstr "" msgid "os" msgstr "" msgid "" -"Added :data:`~os.CLD_KILLED` and :data:`~os.CLD_STOPPED` for :attr:" -"`si_code`. (Contributed by Dong-hee Na in :issue:`38493`.)" +"Added :data:`~os.CLD_KILLED` and :data:`~os.CLD_STOPPED` " +"for :attr:`si_code`. (Contributed by Dong-hee Na in :issue:`38493`.)" msgstr "" msgid "" -"Exposed the Linux-specific :func:`os.pidfd_open` (:issue:`38692`) and :data:" -"`os.P_PIDFD` (:issue:`38713`) for process management with file descriptors." +"Exposed the Linux-specific :func:`os.pidfd_open` (:issue:`38692`) " +"and :data:`os.P_PIDFD` (:issue:`38713`) for process management with file " +"descriptors." msgstr "" msgid "" @@ -808,8 +796,8 @@ msgid "pathlib" msgstr "" msgid "" -"Added :meth:`pathlib.Path.readlink()` which acts similarly to :func:`os." -"readlink`. (Contributed by Girts Folkmanis in :issue:`30618`)" +"Added :meth:`pathlib.Path.readlink()` which acts similarly " +"to :func:`os.readlink`. (Contributed by Girts Folkmanis in :issue:`30618`)" msgstr "" msgid "pdb" @@ -824,10 +812,10 @@ msgid "poplib" msgstr "" msgid "" -":class:`~poplib.POP3` and :class:`~poplib.POP3_SSL` now raise a :class:" -"`ValueError` if the given timeout for their constructor is zero to prevent " -"the creation of a non-blocking socket. (Contributed by Dong-hee Na in :issue:" -"`39259`.)" +":class:`~poplib.POP3` and :class:`~poplib.POP3_SSL` now raise " +"a :class:`ValueError` if the given timeout for their constructor is zero to " +"prevent the creation of a non-blocking socket. (Contributed by Dong-hee Na " +"in :issue:`39259`.)" msgstr "" msgid "pprint" @@ -860,18 +848,18 @@ msgstr "" msgid "" "Exposed the Linux-specific :func:`signal.pidfd_send_signal` for sending to " -"signals to a process using a file descriptor instead of a pid. (:issue:" -"`38712`)" +"signals to a process using a file descriptor instead of a pid. " +"(:issue:`38712`)" msgstr "" msgid "smtplib" msgstr "" msgid "" -":class:`~smtplib.SMTP` and :class:`~smtplib.SMTP_SSL` now raise a :class:" -"`ValueError` if the given timeout for their constructor is zero to prevent " -"the creation of a non-blocking socket. (Contributed by Dong-hee Na in :issue:" -"`39259`.)" +":class:`~smtplib.SMTP` and :class:`~smtplib.SMTP_SSL` now raise " +"a :class:`ValueError` if the given timeout for their constructor is zero to " +"prevent the creation of a non-blocking socket. (Contributed by Dong-hee Na " +"in :issue:`39259`.)" msgstr "" msgid "" @@ -883,9 +871,9 @@ msgid "socket" msgstr "" msgid "" -"The :mod:`socket` module now exports the :data:`~socket." -"CAN_RAW_JOIN_FILTERS` constant on Linux 4.1 and greater. (Contributed by " -"Stefan Tatschner and Zackery Spytz in :issue:`25780`.)" +"The :mod:`socket` module now exports " +"the :data:`~socket.CAN_RAW_JOIN_FILTERS` constant on Linux 4.1 and greater. " +"(Contributed by Stefan Tatschner and Zackery Spytz in :issue:`25780`.)" msgstr "" msgid "" @@ -894,9 +882,9 @@ msgid "" msgstr "" msgid "" -"The socket module now has the :func:`socket.send_fds` and :func:`socket." -"recv_fds` functions. (Contributed by Joannah Nanjekye, Shinya Okano and " -"Victor Stinner in :issue:`28724`.)" +"The socket module now has the :func:`socket.send_fds` " +"and :func:`socket.recv_fds` functions. (Contributed by Joannah Nanjekye, " +"Shinya Okano and Victor Stinner in :issue:`28724`.)" msgstr "" msgid "time" @@ -905,12 +893,12 @@ msgstr "" msgid "" "On AIX, :func:`~time.thread_time` is now implemented with " "``thread_cputime()`` which has nanosecond resolution, rather than " -"``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 " -"milliseconds. (Contributed by Batuhan Taskaya in :issue:`40192`)" +"``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 ms. " +"(Contributed by Batuhan Taskaya in :issue:`40192`)" msgstr "" msgid "sys" -msgstr "" +msgstr "sys" msgid "" "Added a new :attr:`sys.platlibdir` attribute: name of the platform-specific " @@ -969,10 +957,11 @@ msgid "xml" msgstr "" msgid "" -"White space characters within attributes are now preserved when serializing :" -"mod:`xml.etree.ElementTree` to XML file. EOLNs are no longer normalized to " -"\"\\n\". This is the result of discussion about how to interpret section " -"2.11 of XML spec. (Contributed by Mefistotelis in :issue:`39011`.)" +"White space characters within attributes are now preserved when " +"serializing :mod:`xml.etree.ElementTree` to XML file. EOLNs are no longer " +"normalized to \"\\n\". This is the result of discussion about how to " +"interpret section 2.11 of XML spec. (Contributed by Mefistotelis " +"in :issue:`39011`.)" msgstr "" msgid "Optimizations" @@ -1005,8 +994,8 @@ msgstr "" msgid "" "Previously, the bytecode evaluation loop was interrupted at each instruction " -"until the main thread handles signals. (Contributed by Victor Stinner in :" -"issue:`40010`.)" +"until the main thread handles signals. (Contributed by Victor Stinner " +"in :issue:`40010`.)" msgstr "" msgid "" @@ -1021,10 +1010,11 @@ msgid "" msgstr "" msgid "" -"A number of Python builtins (:class:`range`, :class:`tuple`, :class:`set`, :" -"class:`frozenset`, :class:`list`, :class:`dict`) are now sped up by using :" -"pep:`590` vectorcall protocol. (Contributed by Dong-hee Na, Mark Shannon, " -"Jeroen Demeyer and Petr Viktorin in :issue:`37207`.)" +"A number of Python builtins " +"(:class:`range`, :class:`tuple`, :class:`set`, :class:`frozenset`, :class:`list`, :class:`dict`) " +"are now sped up by using :pep:`590` vectorcall protocol. (Contributed by " +"Dong-hee Na, Mark Shannon, Jeroen Demeyer and Petr Viktorin " +"in :issue:`37207`.)" msgstr "" msgid "" @@ -1061,10 +1051,10 @@ msgid "" "These results were generated from the variable access benchmark script at: " "``Tools/scripts/var_access_benchmark.py``. The benchmark script displays " "timings in nanoseconds. The benchmarks were measured on an `Intel® Core™ " -"i7-4960HQ processor `_ running the macOS 64-bit builds found at `python.org `_." +"i7-4960HQ processor `_ running " +"the macOS 64-bit builds found at `python.org `_." msgstr "" msgid "Deprecated" @@ -1072,8 +1062,8 @@ msgstr "" msgid "" "The distutils ``bdist_msi`` command is now deprecated, use ``bdist_wheel`` " -"(wheel packages) instead. (Contributed by Hugo van Kemenade in :issue:" -"`39586`.)" +"(wheel packages) instead. (Contributed by Hugo van Kemenade " +"in :issue:`39586`.)" msgstr "" msgid "" @@ -1092,10 +1082,10 @@ msgid "" msgstr "" msgid "" -"The Public C API functions :c:func:`PyParser_SimpleParseStringFlags`, :c:" -"func:`PyParser_SimpleParseStringFlagsFilename`, :c:func:" -"`PyParser_SimpleParseFileFlags` and :c:func:`PyNode_Compile` are deprecated " -"and will be removed in Python 3.10 together with the old parser." +"The Public C API " +"functions :c:func:`PyParser_SimpleParseStringFlags`, :c:func:`PyParser_SimpleParseStringFlagsFilename`, :c:func:`PyParser_SimpleParseFileFlags` " +"and :c:func:`PyNode_Compile` are deprecated and will be removed in Python " +"3.10 together with the old parser." msgstr "" msgid "" @@ -1109,16 +1099,17 @@ msgid "" "The :mod:`random` module currently accepts any hashable type as a possible " "seed value. Unfortunately, some of those types are not guaranteed to have a " "deterministic hash value. After Python 3.9, the module will restrict its " -"seeds to :const:`None`, :class:`int`, :class:`float`, :class:`str`, :class:" -"`bytes`, and :class:`bytearray`." +"seeds " +"to :const:`None`, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, " +"and :class:`bytearray`." msgstr "" msgid "" "Opening the :class:`~gzip.GzipFile` file for writing without specifying the " "*mode* argument is deprecated. In future Python versions it will always be " "opened for reading by default. Specify the *mode* argument for opening it " -"for writing and silencing a warning. (Contributed by Serhiy Storchaka in :" -"issue:`28286`.)" +"for writing and silencing a warning. (Contributed by Serhiy Storchaka " +"in :issue:`28286`.)" msgstr "" msgid "" @@ -1159,16 +1150,16 @@ msgid "" ":mod:`ast` classes ``Suite``, ``Param``, ``AugLoad`` and ``AugStore`` are " "considered deprecated and will be removed in future Python versions. They " "were not generated by the parser and not accepted by the code generator in " -"Python 3. (Contributed by Batuhan Taskaya in :issue:`39639` and :issue:" -"`39969` and Serhiy Storchaka in :issue:`39988`.)" +"Python 3. (Contributed by Batuhan Taskaya in :issue:`39639` " +"and :issue:`39969` and Serhiy Storchaka in :issue:`39988`.)" msgstr "" msgid "" "The :c:func:`PyEval_InitThreads` and :c:func:`PyEval_ThreadsInitialized` " -"functions are now deprecated and will be removed in Python 3.11. Calling :c:" -"func:`PyEval_InitThreads` now does nothing. The :term:`GIL` is initialized " -"by :c:func:`Py_Initialize()` since Python 3.7. (Contributed by Victor " -"Stinner in :issue:`39877`.)" +"functions are now deprecated and will be removed in Python 3.11. " +"Calling :c:func:`PyEval_InitThreads` now does nothing. The :term:`GIL` is " +"initialized by :c:func:`Py_Initialize()` since Python 3.7. (Contributed by " +"Victor Stinner in :issue:`39877`.)" msgstr "" msgid "" @@ -1178,8 +1169,8 @@ msgstr "" msgid "" ":func:`smtpd.MailmanProxy` is now deprecated as it is unusable without an " -"external module, ``mailman``. (Contributed by Samuel Colvin in :issue:" -"`35800`.)" +"external module, ``mailman``. (Contributed by Samuel Colvin " +"in :issue:`35800`.)" msgstr "" msgid "" @@ -1207,9 +1198,9 @@ msgid "" ":class:`nntplib.NNTP`: ``xpath()`` and ``xgtitle()`` methods have been " "removed. These methods are deprecated since Python 3.3. Generally, these " "extensions are not supported or not enabled by NNTP server administrators. " -"For ``xgtitle()``, please use :meth:`nntplib.NNTP.descriptions` or :meth:" -"`nntplib.NNTP.description` instead. (Contributed by Dong-hee Na in :issue:" -"`39366`.)" +"For ``xgtitle()``, please use :meth:`nntplib.NNTP.descriptions` " +"or :meth:`nntplib.NNTP.description` instead. (Contributed by Dong-hee Na " +"in :issue:`39366`.)" msgstr "" msgid "" @@ -1227,9 +1218,9 @@ msgstr "" msgid "" "The ``sys.getcheckinterval()`` and ``sys.setcheckinterval()`` functions have " -"been removed. They were deprecated since Python 3.2. Use :func:`sys." -"getswitchinterval` and :func:`sys.setswitchinterval` instead. (Contributed " -"by Victor Stinner in :issue:`37392`.)" +"been removed. They were deprecated since Python 3.2. " +"Use :func:`sys.getswitchinterval` and :func:`sys.setswitchinterval` instead. " +"(Contributed by Victor Stinner in :issue:`37392`.)" msgstr "" msgid "" @@ -1253,25 +1244,28 @@ msgstr "" msgid "" "The :meth:`~threading.Thread.isAlive()` method of :class:`threading.Thread` " -"has been removed. It was deprecated since Python 3.8. Use :meth:`~threading." -"Thread.is_alive()` instead. (Contributed by Dong-hee Na in :issue:`37804`.)" +"has been removed. It was deprecated since Python 3.8. " +"Use :meth:`~threading.Thread.is_alive()` instead. (Contributed by Dong-hee " +"Na in :issue:`37804`.)" msgstr "" msgid "" -"Methods ``getchildren()`` and ``getiterator()`` of classes :class:`~xml." -"etree.ElementTree.ElementTree` and :class:`~xml.etree.ElementTree.Element` " -"in the :mod:`~xml.etree.ElementTree` module have been removed. They were " -"deprecated in Python 3.2. Use ``iter(x)`` or ``list(x)`` instead of ``x." -"getchildren()`` and ``x.iter()`` or ``list(x.iter())`` instead of ``x." -"getiterator()``. (Contributed by Serhiy Storchaka in :issue:`36543`.)" +"Methods ``getchildren()`` and ``getiterator()`` of " +"classes :class:`~xml.etree.ElementTree.ElementTree` " +"and :class:`~xml.etree.ElementTree.Element` in " +"the :mod:`~xml.etree.ElementTree` module have been removed. They were " +"deprecated in Python 3.2. Use ``iter(x)`` or ``list(x)`` instead of " +"``x.getchildren()`` and ``x.iter()`` or ``list(x.iter())`` instead of " +"``x.getiterator()``. (Contributed by Serhiy Storchaka in :issue:`36543`.)" msgstr "" msgid "" "The old :mod:`plistlib` API has been removed, it was deprecated since Python " -"3.4. Use the :func:`~plistlib.load`, :func:`~plistlib.loads`, :func:" -"`~plistlib.dump`, and :func:`~plistlib.dumps` functions. Additionally, the " -"*use_builtin_types* parameter was removed, standard :class:`bytes` objects " -"are always used instead. (Contributed by Jon Janzen in :issue:`36409`.)" +"3.4. Use " +"the :func:`~plistlib.load`, :func:`~plistlib.loads`, :func:`~plistlib.dump`, " +"and :func:`~plistlib.dumps` functions. Additionally, the *use_builtin_types* " +"parameter was removed, standard :class:`bytes` objects are always used " +"instead. (Contributed by Jon Janzen in :issue:`36409`.)" msgstr "" msgid "" @@ -1283,9 +1277,9 @@ msgstr "" msgid "" "``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated " -"since Python 3.1, have been removed: use :func:`base64.encodebytes` and :" -"func:`base64.decodebytes` instead. (Contributed by Victor Stinner in :issue:" -"`39351`.)" +"since Python 3.1, have been removed: use :func:`base64.encodebytes` " +"and :func:`base64.decodebytes` instead. (Contributed by Victor Stinner " +"in :issue:`39351`.)" msgstr "" msgid "" @@ -1303,9 +1297,9 @@ msgstr "" msgid "" "The *encoding* parameter of :func:`json.loads` has been removed. As of " -"Python 3.1, it was deprecated and ignored; using it has emitted a :exc:" -"`DeprecationWarning` since Python 3.8. (Contributed by Inada Naoki in :issue:" -"`39377`)" +"Python 3.1, it was deprecated and ignored; using it has emitted " +"a :exc:`DeprecationWarning` since Python 3.8. (Contributed by Inada Naoki " +"in :issue:`39377`)" msgstr "" msgid "" @@ -1317,17 +1311,17 @@ msgstr "" msgid "" "The :func:`sys.getcounts` function, the ``-X showalloccount`` command line " -"option and the ``show_alloc_count`` field of the C structure :c:type:" -"`PyConfig` have been removed. They required a special Python build by " -"defining ``COUNT_ALLOCS`` macro. (Contributed by Victor Stinner in :issue:" -"`39489`.)" +"option and the ``show_alloc_count`` field of the C " +"structure :c:type:`PyConfig` have been removed. They required a special " +"Python build by defining ``COUNT_ALLOCS`` macro. (Contributed by Victor " +"Stinner in :issue:`39489`.)" msgstr "" msgid "" "The ``_field_types`` attribute of the :class:`typing.NamedTuple` class has " "been removed. It was deprecated since Python 3.8. Use the " -"``__annotations__`` attribute instead. (Contributed by Serhiy Storchaka in :" -"issue:`40182`.)" +"``__annotations__`` attribute instead. (Contributed by Serhiy Storchaka " +"in :issue:`40182`.)" msgstr "" msgid "" @@ -1338,8 +1332,8 @@ msgstr "" msgid "" "The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks` " -"have been removed. They were deprecated since Python 3.7 and you can use :" -"func:`asyncio.current_task` and :func:`asyncio.all_tasks` instead. " +"have been removed. They were deprecated since Python 3.7 and you can " +"use :func:`asyncio.current_task` and :func:`asyncio.all_tasks` instead. " "(Contributed by Rémi Lapeyre in :issue:`40967`)" msgstr "" @@ -1362,10 +1356,11 @@ msgid "Changes in the Python API" msgstr "" msgid "" -":func:`__import__` and :func:`importlib.util.resolve_name` now raise :exc:" -"`ImportError` where it previously raised :exc:`ValueError`. Callers catching " -"the specific exception type and supporting both Python 3.9 and earlier " -"versions will need to catch both using ``except (ImportError, ValueError):``." +":func:`__import__` and :func:`importlib.util.resolve_name` now " +"raise :exc:`ImportError` where it previously raised :exc:`ValueError`. " +"Callers catching the specific exception type and supporting both Python 3.9 " +"and earlier versions will need to catch both using ``except (ImportError, " +"ValueError):``." msgstr "" msgid "" @@ -1374,8 +1369,9 @@ msgid "" msgstr "" msgid "" -"The :meth:`select.epoll.unregister` method no longer ignores the :data:" -"`~errno.EBADF` error. (Contributed by Victor Stinner in :issue:`39239`.)" +"The :meth:`select.epoll.unregister` method no longer ignores " +"the :data:`~errno.EBADF` error. (Contributed by Victor Stinner " +"in :issue:`39239`.)" msgstr "" msgid "" @@ -1404,10 +1400,10 @@ msgid "" msgstr "" msgid "" -":meth:`asyncio.loop.shutdown_default_executor` has been added to :class:" -"`~asyncio.AbstractEventLoop`, meaning alternative event loops that inherit " -"from it should have this method defined. (Contributed by Kyle Stanley in :" -"issue:`34037`.)" +":meth:`asyncio.loop.shutdown_default_executor` has been added " +"to :class:`~asyncio.AbstractEventLoop`, meaning alternative event loops that " +"inherit from it should have this method defined. (Contributed by Kyle " +"Stanley in :issue:`34037`.)" msgstr "" msgid "" @@ -1420,17 +1416,17 @@ msgstr "" msgid "" "``array('u')`` now uses ``wchar_t`` as C type instead of ``Py_UNICODE``. " "This change doesn't affect to its behavior because ``Py_UNICODE`` is alias " -"of ``wchar_t`` since Python 3.3. (Contributed by Inada Naoki in :issue:" -"`34538`.)" +"of ``wchar_t`` since Python 3.3. (Contributed by Inada Naoki " +"in :issue:`34538`.)" msgstr "" msgid "" "The :func:`logging.getLogger` API now returns the root logger when passed " "the name ``'root'``, whereas previously it returned a non-root logger named " "``'root'``. This could affect cases where user code explicitly wants a non-" -"root logger named ``'root'``, or instantiates a logger using ``logging." -"getLogger(__name__)`` in some top-level module called ``'root.py'``. " -"(Contributed by Vinay Sajip in :issue:`37742`.)" +"root logger named ``'root'``, or instantiates a logger using " +"``logging.getLogger(__name__)`` in some top-level module called " +"``'root.py'``. (Contributed by Vinay Sajip in :issue:`37742`.)" msgstr "" msgid "" @@ -1451,11 +1447,11 @@ msgid "" msgstr "" msgid "" -":func:`codecs.lookup` now normalizes the encoding name the same way as :func:" -"`encodings.normalize_encoding`, except that :func:`codecs.lookup` also " -"converts the name to lower case. For example, ``\"latex+latin1\"`` encoding " -"name is now normalized to ``\"latex_latin1\"``. (Contributed by Jordon Xu " -"in :issue:`37751`.)" +":func:`codecs.lookup` now normalizes the encoding name the same way " +"as :func:`encodings.normalize_encoding`, except that :func:`codecs.lookup` " +"also converts the name to lower case. For example, ``\"latex+latin1\"`` " +"encoding name is now normalized to ``\"latex_latin1\"``. (Contributed by " +"Jordon Xu in :issue:`37751`.)" msgstr "" msgid "Changes in the C API" @@ -1466,9 +1462,10 @@ msgid "" "with :c:func:`PyType_FromSpec` and similar APIs) hold a reference to their " "type object since Python 3.8. As indicated in the \"Changes in the C API\" " "of Python 3.8, for the vast majority of cases, there should be no side " -"effect but for types that have a custom :c:member:`~PyTypeObject." -"tp_traverse` function, ensure that all custom ``tp_traverse`` functions of " -"heap-allocated types visit the object's type." +"effect but for types that have a " +"custom :c:member:`~PyTypeObject.tp_traverse` function, ensure that all " +"custom ``tp_traverse`` functions of heap-allocated types visit the object's " +"type." msgstr "" msgid "" @@ -1490,17 +1487,17 @@ msgstr "" msgid "" "The functions ``PyEval_CallObject``, ``PyEval_CallFunction``, " "``PyEval_CallMethod`` and ``PyEval_CallObjectWithKeywords`` are deprecated. " -"Use :c:func:`PyObject_Call` and its variants instead. (See more details in :" -"issue:`29548`.)" +"Use :c:func:`PyObject_Call` and its variants instead. (See more details " +"in :issue:`29548`.)" msgstr "" msgid "CPython bytecode changes" msgstr "" msgid "" -"The :opcode:`LOAD_ASSERTION_ERROR` opcode was added for handling the :" -"keyword:`assert` statement. Previously, the assert statement would not work " -"correctly if the :exc:`AssertionError` exception was being shadowed. " +"The :opcode:`LOAD_ASSERTION_ERROR` opcode was added for handling " +"the :keyword:`assert` statement. Previously, the assert statement would not " +"work correctly if the :exc:`AssertionError` exception was being shadowed. " "(Contributed by Zackery Spytz in :issue:`34880`.)" msgstr "" @@ -1529,10 +1526,10 @@ msgstr "" msgid "" "Added ``--with-platlibdir`` option to the ``configure`` script: name of the " -"platform-specific library directory, stored in the new :attr:`sys." -"platlibdir` attribute. See :attr:`sys.platlibdir` attribute for more " -"information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis " -"and Victor Stinner in :issue:`1294959`.)" +"platform-specific library directory, stored in the " +"new :attr:`sys.platlibdir` attribute. See :attr:`sys.platlibdir` attribute " +"for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos " +"Stratakis and Victor Stinner in :issue:`1294959`.)" msgstr "" msgid "" @@ -1557,8 +1554,8 @@ msgid "" "Frameworks``, as had been the case on older releases of macOS. If a macOS " "SDK is explicitly configured, by using :option:`--enable-universalsdk` or ``-" "isysroot``, only the SDK itself is searched. The default behavior can still " -"be overridden with ``--with-tcltk-includes`` and ``--with-tcltk-libs``. " -"(Contributed by Ned Deily in :issue:`34956`.)" +"be overridden with :option:`--with-tcltk-includes` and :option:`--with-tcltk-" +"libs`. (Contributed by Ned Deily in :issue:`34956`.)" msgstr "" msgid "" @@ -1587,15 +1584,15 @@ msgstr "Zmiany w C API" msgid "" ":pep:`573`: Added :c:func:`PyType_FromModuleAndSpec` to associate a module " "with a class; :c:func:`PyType_GetModule` and :c:func:`PyType_GetModuleState` " -"to retrieve the module and its state; and :c:data:`PyCMethod` and :c:data:" -"`METH_METHOD` to allow a method to access the class it was defined in. " -"(Contributed by Marcel Plch and Petr Viktorin in :issue:`38787`.)" +"to retrieve the module and its state; and :c:data:`PyCMethod` " +"and :c:data:`METH_METHOD` to allow a method to access the class it was " +"defined in. (Contributed by Marcel Plch and Petr Viktorin in :issue:`38787`.)" msgstr "" msgid "" -"Added :c:func:`PyFrame_GetCode` function: get a frame code. Added :c:func:" -"`PyFrame_GetBack` function: get the frame next outer frame. (Contributed by " -"Victor Stinner in :issue:`40421`.)" +"Added :c:func:`PyFrame_GetCode` function: get a frame code. " +"Added :c:func:`PyFrame_GetBack` function: get the frame next outer frame. " +"(Contributed by Victor Stinner in :issue:`40421`.)" msgstr "" msgid "" @@ -1604,12 +1601,12 @@ msgid "" msgstr "" msgid "" -"Added :c:func:`PyThreadState_GetInterpreter` and :c:func:" -"`PyInterpreterState_Get` functions to get the interpreter. Added :c:func:" -"`PyThreadState_GetFrame` function to get the current frame of a Python " -"thread state. Added :c:func:`PyThreadState_GetID` function: get the unique " -"identifier of a Python thread state. (Contributed by Victor Stinner in :" -"issue:`39947`.)" +"Added :c:func:`PyThreadState_GetInterpreter` " +"and :c:func:`PyInterpreterState_Get` functions to get the interpreter. " +"Added :c:func:`PyThreadState_GetFrame` function to get the current frame of " +"a Python thread state. Added :c:func:`PyThreadState_GetID` function: get the " +"unique identifier of a Python thread state. (Contributed by Victor Stinner " +"in :issue:`39947`.)" msgstr "" msgid "" @@ -1644,17 +1641,17 @@ msgid "" msgstr "" msgid "" -"Added the functions :c:func:`PyObject_GC_IsTracked` and :c:func:" -"`PyObject_GC_IsFinalized` to the public API to allow to query if Python " -"objects are being currently tracked or have been already finalized by the " -"garbage collector respectively. (Contributed by Pablo Galindo Salgado in :" -"issue:`40241`.)" +"Added the functions :c:func:`PyObject_GC_IsTracked` " +"and :c:func:`PyObject_GC_IsFinalized` to the public API to allow to query if " +"Python objects are being currently tracked or have been already finalized by " +"the garbage collector respectively. (Contributed by Pablo Galindo Salgado " +"in :issue:`40241`.)" msgstr "" msgid "" "Added :c:func:`_PyObject_FunctionStr` to get a user-friendly string " -"representation of a function-like object. (Patch by Jeroen Demeyer in :issue:" -"`37645`.)" +"representation of a function-like object. (Patch by Jeroen Demeyer " +"in :issue:`37645`.)" msgstr "" msgid "" @@ -1664,19 +1661,20 @@ msgstr "" msgid "" "``PyInterpreterState.eval_frame`` (:pep:`523`) now requires a new mandatory " -"*tstate* parameter (``PyThreadState*``). (Contributed by Victor Stinner in :" -"issue:`38500`.)" +"*tstate* parameter (``PyThreadState*``). (Contributed by Victor Stinner " +"in :issue:`38500`.)" msgstr "" msgid "" -"Extension modules: :c:member:`~PyModuleDef.m_traverse`, :c:member:" -"`~PyModuleDef.m_clear` and :c:member:`~PyModuleDef.m_free` functions of :c:" -"type:`PyModuleDef` are no longer called if the module state was requested " -"but is not allocated yet. This is the case immediately after the module is " -"created and before the module is executed (:c:data:`Py_mod_exec` function). " -"More precisely, these functions are not called if :c:member:`~PyModuleDef." -"m_size` is greater than 0 and the module state (as returned by :c:func:" -"`PyModule_GetState`) is ``NULL``." +"Extension " +"modules: :c:member:`~PyModuleDef.m_traverse`, :c:member:`~PyModuleDef.m_clear` " +"and :c:member:`~PyModuleDef.m_free` functions of :c:type:`PyModuleDef` are " +"no longer called if the module state was requested but is not allocated yet. " +"This is the case immediately after the module is created and before the " +"module is executed (:c:data:`Py_mod_exec` function). More precisely, these " +"functions are not called if :c:member:`~PyModuleDef.m_size` is greater than " +"0 and the module state (as returned by :c:func:`PyModule_GetState`) is " +"``NULL``." msgstr "" msgid "" @@ -1705,13 +1703,13 @@ msgstr "" msgid "" "The :c:type:`PyGC_Head` structure is now opaque. It is only defined in the " -"internal C API (``pycore_gc.h``). (Contributed by Victor Stinner in :issue:" -"`40241`.)" +"internal C API (``pycore_gc.h``). (Contributed by Victor Stinner " +"in :issue:`40241`.)" msgstr "" msgid "" -"The ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``, ``PyUnicode_WSTR_LENGTH``, :c:" -"func:`PyUnicode_FromUnicode`, :c:func:`PyUnicode_AsUnicode`, " +"The ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``, " +"``PyUnicode_WSTR_LENGTH``, :c:func:`PyUnicode_FromUnicode`, :c:func:`PyUnicode_AsUnicode`, " "``_PyUnicode_AsUnicode``, and :c:func:`PyUnicode_AsUnicodeAndSize` are " "marked as deprecated in C. They have been deprecated by :pep:`393` since " "Python 3.3. (Contributed by Inada Naoki in :issue:`36346`.)" @@ -1720,8 +1718,8 @@ msgstr "" msgid "" "The :c:func:`Py_FatalError` function is replaced with a macro which logs " "automatically the name of the current function, unless the " -"``Py_LIMITED_API`` macro is defined. (Contributed by Victor Stinner in :" -"issue:`39882`.)" +"``Py_LIMITED_API`` macro is defined. (Contributed by Victor Stinner " +"in :issue:`39882`.)" msgstr "" msgid "" @@ -1737,10 +1735,10 @@ msgid ":c:func:`PyObject_IS_GC` macro was converted to a function." msgstr "" msgid "" -"The :c:func:`PyObject_NEW` macro becomes an alias to the :c:func:" -"`PyObject_New` macro, and the :c:func:`PyObject_NEW_VAR` macro becomes an " -"alias to the :c:func:`PyObject_NewVar` macro. They no longer access directly " -"the :c:member:`PyTypeObject.tp_basicsize` member." +"The :c:func:`PyObject_NEW` macro becomes an alias to " +"the :c:func:`PyObject_New` macro, and the :c:func:`PyObject_NEW_VAR` macro " +"becomes an alias to the :c:func:`PyObject_NewVar` macro. They no longer " +"access directly the :c:member:`PyTypeObject.tp_basicsize` member." msgstr "" msgid "" @@ -1765,8 +1763,8 @@ msgstr "" msgid "" "Excluded ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()`` macros of " -"``pyfpe.h`` from the limited C API. (Contributed by Victor Stinner in :issue:" -"`38835`.)" +"``pyfpe.h`` from the limited C API. (Contributed by Victor Stinner " +"in :issue:`38835`.)" msgstr "" msgid "" @@ -1780,60 +1778,60 @@ msgid "Excluded the following functions from the limited C API:" msgstr "" msgid "" -"``PyThreadState_DeleteCurrent()`` (Contributed by Joannah Nanjekye in :issue:" -"`37878`.)" +"``PyThreadState_DeleteCurrent()`` (Contributed by Joannah Nanjekye " +"in :issue:`37878`.)" msgstr "" msgid "``_Py_CheckRecursionLimit``" -msgstr "" +msgstr "``_Py_CheckRecursionLimit``" msgid "``_Py_NewReference()``" -msgstr "" +msgstr "``_Py_NewReference()``" msgid "``_Py_ForgetReference()``" -msgstr "" +msgstr "``_Py_ForgetReference()``" msgid "``_PyTraceMalloc_NewReference()``" -msgstr "" +msgstr "``_PyTraceMalloc_NewReference()``" msgid "``_Py_GetRefTotal()``" -msgstr "" +msgstr "``_Py_GetRefTotal()``" msgid "The trashcan mechanism which never worked in the limited C API." msgstr "" msgid "``PyTrash_UNWIND_LEVEL``" -msgstr "" +msgstr "``PyTrash_UNWIND_LEVEL``" msgid "``Py_TRASHCAN_BEGIN_CONDITION``" -msgstr "" +msgstr "``Py_TRASHCAN_BEGIN_CONDITION``" msgid "``Py_TRASHCAN_BEGIN``" -msgstr "" +msgstr "``Py_TRASHCAN_BEGIN``" msgid "``Py_TRASHCAN_END``" -msgstr "" +msgstr "``Py_TRASHCAN_END``" msgid "``Py_TRASHCAN_SAFE_BEGIN``" -msgstr "" +msgstr "``Py_TRASHCAN_SAFE_BEGIN``" msgid "``Py_TRASHCAN_SAFE_END``" -msgstr "" +msgstr "``Py_TRASHCAN_SAFE_END``" msgid "Moved following functions and definitions to the internal C API:" msgstr "" msgid "``_PyDebug_PrintTotalRefs()``" -msgstr "" +msgstr "``_PyDebug_PrintTotalRefs()``" msgid "``_Py_PrintReferences()``" -msgstr "" +msgstr "``_Py_PrintReferences()``" msgid "``_Py_PrintReferenceAddresses()``" -msgstr "" +msgstr "``_Py_PrintReferenceAddresses()``" msgid "``_Py_tracemalloc_config``" -msgstr "" +msgstr "``_Py_tracemalloc_config``" msgid "``_Py_AddToAllObjects()`` (specific to ``Py_TRACE_REFS`` build)" msgstr "" @@ -1852,22 +1850,22 @@ msgid "" msgstr "" msgid "``PyAsyncGen_ClearFreeLists()``" -msgstr "" +msgstr "``PyAsyncGen_ClearFreeLists()``" msgid "``PyContext_ClearFreeList()``" -msgstr "" +msgstr "``PyContext_ClearFreeList()``" msgid "``PyDict_ClearFreeList()``" -msgstr "" +msgstr "``PyDict_ClearFreeList()``" msgid "``PyFloat_ClearFreeList()``" -msgstr "" +msgstr "``PyFloat_ClearFreeList()``" msgid "``PyFrame_ClearFreeList()``" -msgstr "" +msgstr "``PyFrame_ClearFreeList()``" msgid "``PyList_ClearFreeList()``" -msgstr "" +msgstr "``PyList_ClearFreeList()``" msgid "" "``PyMethod_ClearFreeList()`` and ``PyCFunction_ClearFreeList()``: the free " @@ -1879,7 +1877,7 @@ msgid "" msgstr "" msgid "``PyTuple_ClearFreeList()``" -msgstr "" +msgstr "``PyTuple_ClearFreeList()``" msgid "" "``PyUnicode_ClearFreeList()``: the Unicode free list has been removed in " @@ -1905,16 +1903,17 @@ msgid "" "``_Py_InitializeFromWideArgs``, ``_PyFloat_Repr``, ``_PyFloat_Digits``, " "``_PyFloat_DigitsInit``, ``PyFrame_ExtendStack``, ``_PyAIterWrapper_Type``, " "``PyNullImporter_Type``, ``PyCmpWrapper_Type``, ``PySortWrapper_Type``, " -"``PyNoArgsFunction``. (Contributed by Pablo Galindo Salgado in :issue:" -"`39372`.)" +"``PyNoArgsFunction``. (Contributed by Pablo Galindo Salgado " +"in :issue:`39372`.)" msgstr "" msgid "Notable changes in Python 3.9.1" msgstr "Istotne zmiany w wersji 3.9.1" msgid "" -"The behavior of :class:`typing.Literal` was changed to conform with :pep:" -"`586` and to match the behavior of static type checkers specified in the PEP." +"The behavior of :class:`typing.Literal` was changed to conform " +"with :pep:`586` and to match the behavior of static type checkers specified " +"in the PEP." msgstr "" msgid "``Literal`` now de-duplicates parameters." @@ -1970,13 +1969,14 @@ msgid "" "``collections.abc.Callable[[int, str], str]`` will have ``__args__`` of " "``(int, str, str)``; previously this was ``([int, str], str)``. To allow " "this change, :class:`types.GenericAlias` can now be subclassed, and a " -"subclass will be returned when subscripting the :class:`collections.abc." -"Callable` type. Code which accesses the arguments via :func:`typing." -"get_args` or ``__args__`` need to account for this change. A :exc:" -"`DeprecationWarning` may be emitted for invalid forms of parameterizing :" -"class:`collections.abc.Callable` which may have passed silently in Python " -"3.9.1. This :exc:`DeprecationWarning` will become a :exc:`TypeError` in " -"Python 3.10. (Contributed by Ken Jin in :issue:`42195`.)" +"subclass will be returned when subscripting " +"the :class:`collections.abc.Callable` type. Code which accesses the " +"arguments via :func:`typing.get_args` or ``__args__`` need to account for " +"this change. A :exc:`DeprecationWarning` may be emitted for invalid forms " +"of parameterizing :class:`collections.abc.Callable` which may have passed " +"silently in Python 3.9.1. This :exc:`DeprecationWarning` will become " +"a :exc:`TypeError` in Python 3.10. (Contributed by Ken Jin " +"in :issue:`42195`.)" msgstr "" msgid "urllib.parse" @@ -1984,11 +1984,12 @@ msgstr "" msgid "" "Earlier Python versions allowed using both ``;`` and ``&`` as query " -"parameter separators in :func:`urllib.parse.parse_qs` and :func:`urllib." -"parse.parse_qsl`. Due to security concerns, and to conform with newer W3C " -"recommendations, this has been changed to allow only a single separator key, " -"with ``&`` as the default. This change also affects :func:`cgi.parse` and :" -"func:`cgi.parse_multipart` as they use the affected functions internally. " -"For more details, please see their respective documentation. (Contributed by " -"Adam Goldschmidt, Senthil Kumaran and Ken Jin in :issue:`42967`.)" +"parameter separators in :func:`urllib.parse.parse_qs` " +"and :func:`urllib.parse.parse_qsl`. Due to security concerns, and to " +"conform with newer W3C recommendations, this has been changed to allow only " +"a single separator key, with ``&`` as the default. This change also " +"affects :func:`cgi.parse` and :func:`cgi.parse_multipart` as they use the " +"affected functions internally. For more details, please see their respective " +"documentation. (Contributed by Adam Goldschmidt, Senthil Kumaran and Ken Jin " +"in :issue:`42967`.)" msgstr "" diff --git a/whatsnew/changelog.po b/whatsnew/changelog.po index be931cf288..ce1a7d9304 100644 --- a/whatsnew/changelog.po +++ b/whatsnew/changelog.po @@ -1,27 +1,41037 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2026, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: -# Seweryn Piórkowski , 2021 +# python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-16 06:28+0000\n" -"PO-Revision-Date: 2021-06-29 13:04+0000\n" -"Last-Translator: Seweryn Piórkowski , 2021\n" -"Language-Team: Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n" +"POT-Creation-Date: 2026-10-01 23:56+0000\n" +"PO-Revision-Date: 2025-09-22 15:59+0000\n" +"Last-Translator: python-doc bot, 2025\n" +"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" msgid "Changelog" msgstr "Lista zmian" + +msgid "Python 3.10.22 final" +msgstr "" + +msgid "*Release date: 2026-10-01*" +msgstr "" + +msgid "Security" +msgstr "Bezpieczeństwo" + +msgid "" +":gh:`158446`: Fix a crash or incorrect output that could occur when " +"formatting a :class:`float` or :class:`complex` with a precision close to " +"the platform's ``INT_MAX``. :c:func:`PyOS_double_to_string` now " +"raises :exc:`ValueError` for any precision of that magnitude, regardless of " +"presentation type or value, as the format string parsers already did for " +"precisions above ``INT_MAX``." +msgstr "" + +msgid "" +":gh:`156793`: :mod:`asyncio`: :meth:`loop.start_tls() " +"` and :meth:`loop.create_connection() " +"` now validate the *server_hostname* " +"argument if an :class:`ssl.SSLContext` is passed with *check_hostname* set " +"to ``True``, emitting :exc:`DeprecationWarning` if *server_hostname* is " +"missing. (This will raise :exc:`ValueError` in Python 3.13 and later.)" +msgstr "" + +msgid "" +":gh:`156793`: :meth:`ssl.SSLContext.wrap_bio` now validates its " +"*server_side*, *server_hostname* and *session* arguments similar " +"to :meth:`ssl.SSLContext.wrap_socket`, but for backward compatiblity reasons " +"emits :exc:`DeprecationWarning` instead of :exc:`ValueError`." +msgstr "" + +msgid "" +"In particular, a context with :attr:`~ssl.SSLContext.check_hostname` enabled " +"and no *server_hostname* passed to :meth:`!wrap_bio` now " +"emits :exc:`DeprecationWarning` to indicate the hostname wasn't checked. (In " +"Python 3.13 and later, this raises :exc:`ValueError`.)" +msgstr "" + +msgid "" +":gh:`157265`: In :mod:`tarfile`, when extracting a link falls back to " +"extracting a member of the archive, skip the member when the filter function " +"returns None when called with the extracted member's name replaced with the " +"link's." +msgstr "" + +msgid "" +":gh:`157190`: Fixed a vulnerability in the :mod:`tarfile` ``data`` and " +"``tar`` extraction filters where a crafted archive using a hard link to a " +"symbolic link could change the permissions and modification time of a file " +"outside the destination directory, and expose its contents inside the " +"extracted tree. This addresses CVE 2026-82049." +msgstr "" + +msgid "" +":gh:`157953`: Update bundled `libexpat `_ to " +"version 2.8.5." +msgstr "" + +msgid "" +":gh:`156002`: Bound the amount of data :mod:`zipfile` decompresses per read " +"for members compressed with bzip2, LZMA, or Zstandard, matching the existing " +"limit for deflate. A small archive member could previously expand into an " +"unbounded allocation even when read in small chunks." +msgstr "" + +msgid "" +":gh:`155999`: Fix the :mod:`tarfile` ``tar`` and ``data`` extraction filters " +"creating directories outside the destination for members whose name leaves " +"the destination and returns to it, such as ``../evil/../dest/sub/file``. The " +"containment check used the resolved path, but intermediate directories were " +"created from the name as given." +msgstr "" + +msgid "" +":gh:`156293`: Fix a crash in :mod:`ssl` when " +"an :attr:`~ssl.SSLContext.sni_callback` switches a connection to " +"another :class:`~ssl.SSLContext` and the context that carries the callback " +"is no longer referenced by the application. Servers that keep their " +"``sni_callback`` context alive (the usual case when it wraps the listening " +"socket or is stored on the server object) were not affected. This addresses " +"`CVE-2026-19445 `_." +msgstr "" + +msgid "" +":gh:`155292`: Change the :mod:`stringprep` module and :mod:`encodings.idna` " +"codec to not consider Unicode codepoint attributes beyond those defined " +"in :rfc:`3454`." +msgstr "" + +msgid "" +":gh:`155694`: Fix `CVE-2026-15806 `_ by scoping :class:`~urllib.request.HTTPPasswordMgr` " +"credentials to the URL scheme, preventing credentials stored for an HTTPS " +"URL from being used for a matching HTTP URL, while URIs without a scheme " +"continue to match any scheme." +msgstr "" + +msgid "" +":gh:`149018`: Improved protection against XML hash-flooding attacks " +"in :mod:`xml.parsers.expat` and :mod:`xml.etree.ElementTree` when Python is " +"compiled with libExpat 2.8.0 or later." +msgstr "" + +msgid "Library" +msgstr "Biblioteka" + +msgid "" +":gh:`156002`: :mod:`zipfile` again reads members through a third-party " +"decompressor installed by monkey-patching the private " +"``_get_decompressor()`` to return an object that only implements old " +"BZ2Decompressor API from Python 3.3. Note that decompressors without " +"``needs_input`` and two-argument ``decompress()`` are vulnerable to CVE " +"2026-15310." +msgstr "" + +msgid "" +":gh:`156353`: Fix :mod:`configparser` parsing when using whitespace in " +"*delimiters*." +msgstr "" + +msgid "Python 3.10.21 final" +msgstr "" + +msgid "*Release date: 2026-08-13*" +msgstr "" + +msgid "macOS" +msgstr "macOS" + +msgid "" +":gh:`137586`: Invoke :program:`osascript` with absolute path " +"in :mod:`webbrowser` and :mod:`!turtledemo`." +msgstr "" + +msgid "Tests" +msgstr "Testy" + +msgid "" +":gh:`149776`: Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite " +"tests if it's not supported. Patch by Victor Stinner." +msgstr "" + +msgid "" +":gh:`153030`: Fixed quadratic complexity in incremental parsing of long " +"unterminated constructs (such as tags or comments) " +"in :class:`html.parser.HTMLParser`, which could be exploited for a denial of " +"service." +msgstr "" + +msgid "" +":gh:`152674`: The :class:`xml.etree.ElementTree.Element` " +"methods :meth:`~xml.etree.ElementTree.Element.findall`, :meth:`~xml.etree.ElementTree.Element.iterfind` " +"and :meth:`~xml.etree.ElementTree.Element.find` avoid quadratic behavior " +"when using XPath index predicates (``[1]``, ``[last()]``, ``[last()-N]``) on " +"XML documents with many same-tag siblings." +msgstr "" + +msgid "" +":gh:`152216`: Update bundled `libexpat `_ to " +"version 2.8.2." +msgstr "" + +msgid "" +":gh:`151987`: The :meth:`tarfile.TarFile.extract` method now applies the " +"given filter when it extracts a link target from the archive as a fallback." +msgstr "" + +msgid "" +":gh:`151981`: In :mod:`tarfile`, seeking a stream now stops when end of the " +"stream is reached." +msgstr "" + +msgid "" +":gh:`151558`: Fixed an vulnerability in the :mod:`tarfile` ``data`` and " +"``tar`` extraction filters where crafted archives could create a symlink " +"pointing outside the destination directory. This was a bypass of " +"CVE-2025-4330." +msgstr "" + +msgid "" +":gh:`150599`: Fix a possible stack buffer overflow in :mod:`bz2` when " +"a :class:`bz2.BZ2Decompressor` is reused after a decompression error. The " +"decompressor now becomes unusable after libbz2 reports an error." +msgstr "" + +msgid "" +":gh:`150743`: :mod:`http.client` now limits the number of chunked-response " +"trailer lines it will read to 100, and the number of interim (1xx) responses " +"it will skip to 100. A malicious or broken server could previously stream " +"trailer lines or ``100 Continue`` responses forever, hanging the client even " +"when a socket timeout was in use. Reported by ``@YLChen-007`` via GHSA-w4q2-" +"g22w-6fr4." +msgstr "" + +msgid "" +":gh:`149698`: Update bundled `libexpat `_ to " +"version 2.8.1 for the fix for CVE-2026-45186." +msgstr "" + +msgid "" +":gh:`87451`: The :mod:`ftplib` module's undocumented ``ftpcp`` function no " +"longer trusts the IPv4 address value returned from the source server in " +"response to the ``PASV`` command by default, completing the fix for " +"CVE-2021-4189. As with :class:`ftplib.FTP`, the former behavior can be re-" +"enabled by setting the ``trust_server_pasv_ipv4_address`` attribute on the " +"source :class:`ftplib.FTP` instance to ``True``. Thanks to Qi Deng at " +"Aurascape AI for the report." +msgstr "" + +msgid "" +":gh:`149486`: :func:`tarfile.data_filter` now validates link targets using " +"the same normalised value that is written to disk, strips trailing " +"separators from the member name when resolving a symlink's directory, and " +"rejects link members that would replace the destination directory itself. " +"This closes several path-traversal bypasses of the ``data`` extraction " +"filter." +msgstr "" + +msgid "" +":gh:`149079`: Fix a potential denial of service " +"in :func:`unicodedata.normalize`. The canonical ordering step of Unicode " +"normalization used a quadratic-time insertion sort for reordering combining " +"characters, which could be exploited with crafted input containing many " +"combining characters in non-canonical order. Replaced with a linear-time " +"counting sort for long runs." +msgstr "" + +msgid "" +":gh:`149017`: Update bundled `libexpat `_ to " +"version 2.8.0." +msgstr "" + +msgid "" +":gh:`148395`: Fix a dangling input pointer " +"in :class:`lzma.LZMADecompressor`, :class:`bz2.BZ2Decompressor` when memory " +"allocation fails with :exc:`MemoryError`, which could let a " +"subsequent :meth:`!decompress` call read or write through a stale pointer to " +"the already-released caller buffer." +msgstr "" + +msgid "" +":gh:`148169`: A bypass in :mod:`webbrowser` allowed URLs prefixed with " +"``%action`` to pass the dash-prefix safety check." +msgstr "" + +msgid "" +":gh:`146581`: Fix vulnerability in :func:`shutil.unpack_archive` for ZIP " +"files on Windows which allowed to write files outside of the destination " +"tree if the patch in the archive contains a Windows drive prefix. Now such " +"invalid paths will be skipped. Files containing \"..\" in the name (like " +"\"foo..bar\") are no longer skipped." +msgstr "" + +msgid "" +":gh:`146333`: Fix quadratic backtracking " +"in :class:`configparser.RawConfigParser` option parsing regexes (``OPTCRE`` " +"and ``OPTCRE_NV``). A crafted configuration line with many whitespace " +"characters could cause excessive CPU usage." +msgstr "" + +msgid "" +":gh:`146211`: Reject CR/LF characters in tunnel request headers for the " +"HTTPConnection.set_tunnel() method." +msgstr "" + +msgid "" +":gh:`145986`: :mod:`xml.parsers.expat`: Fixed a crash caused by unbounded C " +"recursion when converting deeply nested XML content models " +"with :meth:`~xml.parsers.expat.xmlparser.ElementDeclHandler`. This addresses " +"`CVE-2026-4224 `_." +msgstr "" + +msgid "" +":gh:`145599`: Reject control characters " +"in :class:`http.cookies.Morsel` :meth:`~http.cookies.Morsel.update` " +"and :meth:`~http.cookies.BaseCookie.js_output`. This addresses " +"`CVE-2026-3644 `_." +msgstr "" + +msgid "" +":gh:`145506`: Fixes CVE-2026-2297 by ensuring that ``SourcelessFileLoader`` " +"uses :func:`io.open_code` when opening ``.pyc`` files." +msgstr "" + +msgid "" +":gh:`144370`: Disallow usage of control characters in status " +"in :mod:`wsgiref.handlers` to prevent HTTP header injections. Patch by " +"Benedikt Johannes." +msgstr "" + +msgid "" +":gh:`143930`: Reject leading dashes in URLs passed " +"to :func:`webbrowser.open`." +msgstr "" + +msgid "" +":gh:`143927`: Normalize all line endings (CR, CRLF, and LF) to LF+TAB when " +"writing multi-line configparser values." +msgstr "" + +msgid "" +":gh:`109638`: Fix exponential time in :meth:`csv.Sniffer.sniff` for a sample " +"which contains many quote characters. A doubled quote character is now also " +"detected in a field which contains the delimiter or a line break." +msgstr "" + +msgid "" +":gh:`98820`: Fix quadratic time in :meth:`csv.Sniffer.sniff` for a sample " +"which contains quoted fields, in particular for a single column of quoted " +"fields." +msgstr "" + +msgid "" +":gh:`146083`: Update bundled `libexpat `_ to " +"version 2.7.5." +msgstr "" + +msgid "" +":gh:`141707`: Don't change :class:`tarfile.TarInfo` type from ``AREGTYPE`` " +"to ``DIRTYPE`` when parsing GNU long name or link headers." +msgstr "" + +msgid "" +":gh:`90949`: " +"Add :meth:`~xml.parsers.expat.xmlparser.SetBillionLaughsAttackProtectionActivationThreshold` " +"and :meth:`~xml.parsers.expat.xmlparser.SetBillionLaughsAttackProtectionMaximumAmplification` " +"to :ref:`xmlparser ` objects to tune protections against " +"`billion laughs `_ " +"attacks. Patch by Bénédikt Tran." +msgstr "" + +msgid "" +":gh:`100372`: :meth:`ssl.SSLContext.load_verify_locations` no longer " +"incorrectly accepts some cases of trailing data when parsing DER." +msgstr "" + +msgid "Build" +msgstr "Build" + +msgid "" +":gh:`153438`: Update Windows build and installer tooling and documentation " +"to use the current download URL for ``nuget.exe``." +msgstr "" + +msgid "Python 3.10.20 final" +msgstr "" + +msgid "*Release date: 2026-03-03*" +msgstr "" + +msgid "" +":gh:`144125`: :mod:`~email.generator.BytesGenerator` will now refuse to " +"serialize (write) headers that are unsafely folded or delimited; " +"see :attr:`~email.policy.Policy.verify_generated_headers`. (Contributed by " +"Bas Bloemsaat and Petr Viktorin in :gh:`121650`)." +msgstr "" + +msgid "" +":gh:`143935`: Fixed a bug in the folding of comments when flattening an " +"email message using a modern email policy. Comments consisting of a very " +"long sequence of non-foldable characters could trigger a forced line wrap " +"that omitted the required leading space on the continuation line, causing " +"the remainder of the comment to be interpreted as a new header field. This " +"enabled header injection with carefully crafted inputs." +msgstr "" + +msgid ":gh:`143925`: Reject control characters in ``data:`` URL media types." +msgstr "" + +msgid "" +":gh:`143919`: Reject control characters in :class:`http.cookies.Morsel` " +"fields and values." +msgstr "" + +msgid "" +":gh:`143916`: Reject C0 control characters within wsgiref.headers.Headers " +"fields, values, and parameters." +msgstr "" + +msgid "" +":gh:`142145`: Remove quadratic behavior in ``xml.minidom`` node ID cache " +"clearing. In order to do this without breaking existing users, we also add " +"the *ownerDocument* attribute to :mod:`xml.dom.minidom` elements and " +"attributes created by directly instantiating the ``Element`` or ``Attr`` " +"class. Note that this way of creating nodes is not supported; creator " +"functions like :py:meth:`xml.dom.Document.documentElement` should be used " +"instead." +msgstr "" + +msgid "" +":gh:`137836`: Add support of the \"plaintext\" element, RAWTEXT elements " +"\"xmp\", \"iframe\", \"noembed\" and \"noframes\", and optionally RAWTEXT " +"element \"noscript\" in :class:`html.parser.HTMLParser`." +msgstr "" + +msgid "" +":gh:`136063`: :mod:`email.message`: ensure linear complexity for legacy HTTP " +"parameters parsing. Patch by Bénédikt Tran." +msgstr "" + +msgid ":gh:`136065`: Fix quadratic complexity in :func:`os.path.expandvars`." +msgstr "" + +msgid "" +":gh:`119451`: Fix a potential memory denial of service in " +"the :mod:`http.client` module. When connecting to a malicious server, it " +"could cause an arbitrary amount of memory to be allocated. This could have " +"led to symptoms including a :exc:`MemoryError`, swapping, out of memory " +"(OOM) killed processes or containers, or even system crashes." +msgstr "" + +msgid "" +":gh:`119452`: Fix a potential memory denial of service in " +"the :mod:`http.server` module. When a malicious user is connected to the CGI " +"server on Windows, it could cause an arbitrary amount of memory to be " +"allocated. This could have led to symptoms including a :exc:`MemoryError`, " +"swapping, out of memory (OOM) killed processes or containers, or even system " +"crashes." +msgstr "" + +msgid "" +":gh:`119342`: Fix a potential memory denial of service in " +"the :mod:`plistlib` module. When reading a Plist file received from " +"untrusted source, it could cause an arbitrary amount of memory to be " +"allocated. This could have led to symptoms including a :exc:`MemoryError`, " +"swapping, out of memory (OOM) killed processes or containers, or even system " +"crashes." +msgstr "" + +msgid "" +":gh:`144833`: Fixed a use-after-free in :mod:`ssl` when ``SSL_new()`` " +"returns NULL in ``newPySSLSocket()``. The error was reported via a dangling " +"pointer after the object had already been freed." +msgstr "" + +msgid "" +":gh:`144363`: Update bundled `libexpat `_ to " +"2.7.4" +msgstr "" + +msgid "" +":gh:`90949`: " +"Add :meth:`~xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold` " +"and :meth:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification` " +"to :ref:`xmlparser ` objects to prevent use of " +"disproportional amounts of dynamic memory from within an Expat parser. Patch " +"by Bénédikt Tran." +msgstr "" + +msgid "Core and Builtins" +msgstr "Core i builtiny" + +msgid "" +":gh:`120384`: Fix an array out of bounds crash in ``list_ass_subscript``, " +"which could be invoked via some specificly tailored input: including " +"concurrent modification of a list object, where one thread assigns a slice " +"and another clears it." +msgstr "" + +msgid "" +":gh:`120298`: Fix use-after free in ``list_richcompare_impl`` which can be " +"invoked via some specificly tailored evil input." +msgstr "" + +msgid "Python 3.10.19 final" +msgstr "" + +msgid "*Release date: 2025-10-09*" +msgstr "" + +msgid "" +":gh:`139700`: Check consistency of the zip64 end of central directory " +"record. Support records with \"zip64 extensible data\" if there are no bytes " +"prepended to the ZIP file." +msgstr "" + +msgid "" +":gh:`139400`: :mod:`xml.parsers.expat`: Make sure that parent Expat parsers " +"are only garbage-collected once they are no longer referenced by subparsers " +"created by :meth:`~xml.parsers.expat.xmlparser.ExternalEntityParserCreate`. " +"Patch by Sebastian Pipping." +msgstr "" + +msgid "" +":gh:`135661`: Fix parsing start and end tags " +"in :class:`html.parser.HTMLParser` according to the HTML5 standard." +msgstr "" + +msgid "" +"Whitespaces no longer accepted between ```` does not end the script section." +msgstr "" + +msgid "" +"Vertical tabulation (``\\v``) and non-ASCII whitespaces no longer recognized " +"as whitespaces. The only whitespaces are ``\\t\\n\\r\\f`` and space." +msgstr "" + +msgid "Null character (U+0000) no longer ends the tag name." +msgstr "" + +msgid "" +"Attributes and slashes after the tag name in end tags are now ignored, " +"instead of terminating after the first ``>`` in quoted attribute value. E.g. " +"``\"/>``." +msgstr "" + +msgid "" +"Multiple slashes and whitespaces between the last attribute and closing " +"``>`` are now ignored in both start and end tags. E.g. ````." +msgstr "" + +msgid "" +"Multiple ``=`` between attribute name and value are no longer collapsed. " +"E.g. ```` produces attribute \"foo\" with value \"=bar\"." +msgstr "" + +msgid "" +":gh:`135661`: Fix CDATA section parsing in :class:`html.parser.HTMLParser` " +"according to the HTML5 standard: ``] ]>`` and ``]] >`` no longer end the " +"CDATA section. Add private method ``_set_support_cdata()`` which can be used " +"to specify how to parse ``<[CDATA[`` --- as a CDATA section in foreign " +"content (SVG or MathML) or as a bogus comment in the HTML namespace." +msgstr "" + +msgid "" +":gh:`102555`: Fix comment parsing in :class:`html.parser.HTMLParser` " +"according to the HTML5 standard. ``--!>`` now ends the comment. ``-- >`` no " +"longer ends the comment. Support abnormally ended empty comments ``<-->`` " +"and ``<--->``." +msgstr "" + +msgid "" +":gh:`135462`: Fix quadratic complexity in processing specially crafted input " +"in :class:`html.parser.HTMLParser`. End-of-file errors are now handled " +"according to the HTML5 specs -- comments and declarations are automatically " +"closed, tags are ignored." +msgstr "" + +msgid "" +":gh:`118350`: Fix support of escapable raw text mode (elements \"textarea\" " +"and \"title\") in :class:`html.parser.HTMLParser`." +msgstr "" + +msgid "" +":gh:`86155`: :meth:`html.parser.HTMLParser.close` no longer loses data when " +"the ``