From c6e57afdc0d8c9433f2e35665b2fb65f69528f2e Mon Sep 17 00:00:00 2001 From: python-docs-turkish Date: Fri, 1 Mar 2024 20:28:27 +0000 Subject: [PATCH 1/2] Get changes from CPython Doc for 3.12 --- Makefile | 2 +- c-api/hash.po | 3 +- howto/gdb_helpers.po | 3 +- library/abc.po | 12 +- library/ast.po | 144 ++++---- library/constants.po | 27 +- library/ctypes.po | 529 +++++++++++++++-------------- library/datetime.po | 671 ++++++++++++++++++------------------- library/enum.po | 181 +++++----- library/exceptions.po | 38 ++- library/fcntl.po | 72 ++-- library/functions.po | 204 ++++++------ library/importlib.po | 4 +- library/inspect.po | 372 ++++++++++----------- library/itertools.po | 42 ++- library/logging.po | 695 +++++++++++++++++++++------------------ library/numbers.po | 4 +- library/pickle.po | 10 +- library/pprint.po | 220 ++++++------- library/random.po | 96 +++--- library/ssl.po | 338 +++++++++---------- library/stdtypes.po | 10 +- library/threading.po | 84 +++-- library/time.po | 335 ++++++++++--------- library/unittest.mock.po | 10 +- reference/datamodel.po | 230 ++++++------- reference/expressions.po | 4 +- tutorial/modules.po | 321 +++++++++--------- whatsnew/2.0.po | 241 +++++++------- whatsnew/2.1.po | 88 ++--- whatsnew/2.7.po | 6 +- whatsnew/3.10.po | 8 +- whatsnew/3.4.po | 4 +- whatsnew/3.9.po | 13 +- 34 files changed, 2576 insertions(+), 2445 deletions(-) diff --git a/Makefile b/Makefile index aba338ebc..30b6014c6 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ # test build, we're building with the .rst files that generated our # .po files. -CPYTHON_CURRENT_COMMIT := b4dd31409cf6f23dcd8113d10f74a2e41b8cb1ed +CPYTHON_CURRENT_COMMIT := 90f75e1069f2d692480bcd305fc35b4fe7847e18 LANGUAGE := tr BRANCH := 3.12 diff --git a/c-api/hash.po b/c-api/hash.po index 2a2bb75eb..5c70a095a 100644 --- a/c-api/hash.po +++ b/c-api/hash.po @@ -8,10 +8,11 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/howto/gdb_helpers.po b/howto/gdb_helpers.po index 5879c9e10..814a0325c 100644 --- a/howto/gdb_helpers.po +++ b/howto/gdb_helpers.po @@ -8,10 +8,11 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/abc.po b/library/abc.po index 17f260ca8..2b3433bc6 100644 --- a/library/abc.po +++ b/library/abc.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -119,11 +119,11 @@ msgstr "" #: library/abc.rst:104 msgid "" -"This method should return ``True``, ``False`` or ``NotImplemented``. If it " -"returns ``True``, the *subclass* is considered a subclass of this ABC. If it " -"returns ``False``, the *subclass* is not considered a subclass of this ABC, " -"even if it would normally be one. If it returns ``NotImplemented``, the " -"subclass check is continued with the usual mechanism." +"This method should return ``True``, ``False`` or :data:`NotImplemented`. If " +"it returns ``True``, the *subclass* is considered a subclass of this ABC. If " +"it returns ``False``, the *subclass* is not considered a subclass of this " +"ABC, even if it would normally be one. If it returns :data:`!" +"NotImplemented`, the subclass check is continued with the usual mechanism." msgstr "" #: library/abc.rst:114 diff --git a/library/ast.po b/library/ast.po index 1c4ba70f9..cbe2c525d 100644 --- a/library/ast.po +++ b/library/ast.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -1044,19 +1044,23 @@ msgstr "" #: library/ast.rst:2181 msgid "" -"Also, setting ``feature_version`` to a tuple ``(major, minor)`` will attempt " -"to parse using that Python version's grammar. Currently ``major`` must equal " -"to ``3``. For example, setting ``feature_version=(3, 4)`` will allow the " -"use of ``async`` and ``await`` as variable names. The lowest supported " -"version is ``(3, 4)``; the highest is ``sys.version_info[0:2]``." +"Setting ``feature_version`` to a tuple ``(major, minor)`` will result in a " +"\"best-effort\" attempt to parse using that Python version's grammar. For " +"example, setting ``feature_version=(3, 9)`` will attempt to disallow parsing " +"of :keyword:`match` statements. Currently ``major`` must equal to ``3``. The " +"lowest supported version is ``(3, 4)`` (and this may increase in future " +"Python versions); the highest is ``sys.version_info[0:2]``. \"Best-effort\" " +"attempt means there is no guarantee that the parse (or success of the parse) " +"is the same as when run on the Python version corresponding to " +"``feature_version``." msgstr "" -#: library/ast.rst:2188 +#: library/ast.rst:2191 msgid "" -"If source contains a null character ('\\0'), :exc:`ValueError` is raised." +"If source contains a null character (``\\0``), :exc:`ValueError` is raised." msgstr "" -#: library/ast.rst:2191 +#: library/ast.rst:2194 msgid "" "Note that successfully parsing source code into an AST object doesn't " "guarantee that the source code provided is valid Python code that can be " @@ -1066,43 +1070,43 @@ msgid "" "inside a function node)." msgstr "" -#: library/ast.rst:2198 +#: library/ast.rst:2201 msgid "" "In particular, :func:`ast.parse` won't do any scoping checks, which the " "compilation step does." msgstr "" -#: library/ast.rst:2202 +#: library/ast.rst:2205 msgid "" "It is possible to crash the Python interpreter with a sufficiently large/" "complex string due to stack depth limitations in Python's AST compiler." msgstr "" -#: library/ast.rst:2206 +#: library/ast.rst:2209 msgid "Added ``type_comments``, ``mode='func_type'`` and ``feature_version``." msgstr "" -#: library/ast.rst:2212 +#: library/ast.rst:2215 msgid "" "Unparse an :class:`ast.AST` object and generate a string with code that " "would produce an equivalent :class:`ast.AST` object if parsed back with :" "func:`ast.parse`." msgstr "" -#: library/ast.rst:2217 +#: library/ast.rst:2220 msgid "" "The produced code string will not necessarily be equal to the original code " "that generated the :class:`ast.AST` object (without any compiler " "optimizations, such as constant tuples/frozensets)." msgstr "" -#: library/ast.rst:2222 +#: library/ast.rst:2225 msgid "" "Trying to unparse a highly complex expression would result with :exc:" "`RecursionError`." msgstr "" -#: library/ast.rst:2230 +#: library/ast.rst:2233 msgid "" "Evaluate an expression node or a string containing only a Python literal or " "container display. The string or node provided may only consist of the " @@ -1110,14 +1114,14 @@ msgid "" "dicts, sets, booleans, ``None`` and ``Ellipsis``." msgstr "" -#: library/ast.rst:2235 +#: library/ast.rst:2238 msgid "" "This can be used for evaluating strings containing Python values without the " "need to parse the values oneself. It is not capable of evaluating " "arbitrarily complex expressions, for example involving operators or indexing." msgstr "" -#: library/ast.rst:2240 +#: library/ast.rst:2243 msgid "" "This function had been documented as \"safe\" in the past without defining " "what that meant. That was misleading. This is specifically designed not to " @@ -1129,31 +1133,31 @@ msgid "" "untrusted data is thus not recommended." msgstr "" -#: library/ast.rst:2250 +#: library/ast.rst:2253 msgid "" "It is possible to crash the Python interpreter due to stack depth " "limitations in Python's AST compiler." msgstr "" -#: library/ast.rst:2253 +#: library/ast.rst:2256 msgid "" "It can raise :exc:`ValueError`, :exc:`TypeError`, :exc:`SyntaxError`, :exc:" "`MemoryError` and :exc:`RecursionError` depending on the malformed input." msgstr "" -#: library/ast.rst:2257 +#: library/ast.rst:2260 msgid "Now allows bytes and set literals." msgstr "" -#: library/ast.rst:2260 +#: library/ast.rst:2263 msgid "Now supports creating empty sets with ``'set()'``." msgstr "" -#: library/ast.rst:2263 +#: library/ast.rst:2266 msgid "For string inputs, leading spaces and tabs are now stripped." msgstr "" -#: library/ast.rst:2269 +#: library/ast.rst:2272 msgid "" "Return the docstring of the given *node* (which must be a :class:" "`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or :class:" @@ -1161,11 +1165,11 @@ msgid "" "clean up the docstring's indentation with :func:`inspect.cleandoc`." msgstr "" -#: library/ast.rst:2275 +#: library/ast.rst:2278 msgid ":class:`AsyncFunctionDef` is now supported." msgstr "" -#: library/ast.rst:2281 +#: library/ast.rst:2284 msgid "" "Get source code segment of the *source* that generated *node*. If some " "location information (:attr:`~ast.AST.lineno`, :attr:`~ast.AST.end_lineno`, :" @@ -1173,13 +1177,13 @@ msgid "" "return ``None``." msgstr "" -#: library/ast.rst:2285 +#: library/ast.rst:2288 msgid "" "If *padded* is ``True``, the first line of a multi-line statement will be " "padded with spaces to match its original position." msgstr "" -#: library/ast.rst:2293 +#: library/ast.rst:2296 msgid "" "When you compile a node tree with :func:`compile`, the compiler expects :" "attr:`~ast.AST.lineno` and :attr:`~ast.AST.col_offset` attributes for every " @@ -1189,81 +1193,81 @@ msgid "" "starting at *node*." msgstr "" -#: library/ast.rst:2302 +#: library/ast.rst:2305 msgid "" "Increment the line number and end line number of each node in the tree " "starting at *node* by *n*. This is useful to \"move code\" to a different " "location in a file." msgstr "" -#: library/ast.rst:2309 +#: library/ast.rst:2312 msgid "" "Copy source location (:attr:`~ast.AST.lineno`, :attr:`~ast.AST.col_offset`, :" "attr:`~ast.AST.end_lineno`, and :attr:`~ast.AST.end_col_offset`) from " "*old_node* to *new_node* if possible, and return *new_node*." msgstr "" -#: library/ast.rst:2316 +#: library/ast.rst:2319 msgid "" "Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` " "that is present on *node*." msgstr "" -#: library/ast.rst:2322 +#: library/ast.rst:2325 msgid "" "Yield all direct child nodes of *node*, that is, all fields that are nodes " "and all items of fields that are lists of nodes." msgstr "" -#: library/ast.rst:2328 +#: library/ast.rst:2331 msgid "" "Recursively yield all descendant nodes in the tree starting at *node* " "(including *node* itself), in no specified order. This is useful if you " "only want to modify nodes in place and don't care about the context." msgstr "" -#: library/ast.rst:2335 +#: library/ast.rst:2338 msgid "" "A node visitor base class that walks the abstract syntax tree and calls a " "visitor function for every node found. This function may return a value " "which is forwarded by the :meth:`visit` method." msgstr "" -#: library/ast.rst:2339 +#: library/ast.rst:2342 msgid "" "This class is meant to be subclassed, with the subclass adding visitor " "methods." msgstr "" -#: library/ast.rst:2344 +#: library/ast.rst:2347 msgid "" "Visit a node. The default implementation calls the method called :samp:" "`self.visit_{classname}` where *classname* is the name of the node class, " "or :meth:`generic_visit` if that method doesn't exist." msgstr "" -#: library/ast.rst:2350 +#: library/ast.rst:2353 msgid "This visitor calls :meth:`visit` on all children of the node." msgstr "" -#: library/ast.rst:2352 +#: library/ast.rst:2355 msgid "" "Note that child nodes of nodes that have a custom visitor method won't be " "visited unless the visitor calls :meth:`generic_visit` or visits them itself." msgstr "" -#: library/ast.rst:2358 +#: library/ast.rst:2361 msgid "Handles all constant nodes." msgstr "" -#: library/ast.rst:2360 +#: library/ast.rst:2363 msgid "" "Don't use the :class:`NodeVisitor` if you want to apply changes to nodes " "during traversal. For this a special visitor exists (:class:" "`NodeTransformer`) that allows modifications." msgstr "" -#: library/ast.rst:2366 +#: library/ast.rst:2369 msgid "" "Methods :meth:`!visit_Num`, :meth:`!visit_Str`, :meth:`!visit_Bytes`, :meth:" "`!visit_NameConstant` and :meth:`!visit_Ellipsis` are deprecated now and " @@ -1271,13 +1275,13 @@ msgid "" "`visit_Constant` method to handle all constant nodes." msgstr "" -#: library/ast.rst:2374 +#: library/ast.rst:2377 msgid "" "A :class:`NodeVisitor` subclass that walks the abstract syntax tree and " "allows modification of nodes." msgstr "" -#: library/ast.rst:2377 +#: library/ast.rst:2380 msgid "" "The :class:`NodeTransformer` will walk the AST and use the return value of " "the visitor methods to replace or remove the old node. If the return value " @@ -1286,27 +1290,27 @@ msgid "" "may be the original node in which case no replacement takes place." msgstr "" -#: library/ast.rst:2383 +#: library/ast.rst:2386 msgid "" "Here is an example transformer that rewrites all occurrences of name lookups " "(``foo``) to ``data['foo']``::" msgstr "" -#: library/ast.rst:2395 +#: library/ast.rst:2398 msgid "" "Keep in mind that if the node you're operating on has child nodes you must " "either transform the child nodes yourself or call the :meth:`~ast." "NodeVisitor.generic_visit` method for the node first." msgstr "" -#: library/ast.rst:2399 +#: library/ast.rst:2402 msgid "" "For nodes that were part of a collection of statements (that applies to all " "statement nodes), the visitor may also return a list of nodes rather than " "just a single node." msgstr "" -#: library/ast.rst:2403 +#: library/ast.rst:2406 msgid "" "If :class:`NodeTransformer` introduces new nodes (that weren't part of " "original tree) without giving them location information (such as :attr:`~ast." @@ -1314,11 +1318,11 @@ msgid "" "sub-tree to recalculate the location information::" msgstr "" -#: library/ast.rst:2411 +#: library/ast.rst:2414 msgid "Usually you use the transformer like this::" msgstr "" -#: library/ast.rst:2418 +#: library/ast.rst:2421 msgid "" "Return a formatted dump of the tree in *node*. This is mainly useful for " "debugging purposes. If *annotate_fields* is true (by default), the returned " @@ -1329,7 +1333,7 @@ msgid "" "true." msgstr "" -#: library/ast.rst:2426 +#: library/ast.rst:2429 msgid "" "If *indent* is a non-negative integer or string, then the tree will be " "pretty-printed with that indent level. An indent level of 0, negative, or " @@ -1339,87 +1343,87 @@ msgid "" "string is used to indent each level." msgstr "" -#: library/ast.rst:2433 +#: library/ast.rst:2436 msgid "Added the *indent* option." msgstr "" -#: library/ast.rst:2440 +#: library/ast.rst:2443 msgid "Compiler Flags" msgstr "" -#: library/ast.rst:2442 +#: library/ast.rst:2445 msgid "" "The following flags may be passed to :func:`compile` in order to change " "effects on the compilation of a program:" msgstr "" -#: library/ast.rst:2447 +#: library/ast.rst:2450 msgid "" "Enables support for top-level ``await``, ``async for``, ``async with`` and " "async comprehensions." msgstr "" -#: library/ast.rst:2454 +#: library/ast.rst:2457 msgid "" "Generates and returns an abstract syntax tree instead of returning a " "compiled code object." msgstr "" -#: library/ast.rst:2459 +#: library/ast.rst:2462 msgid "" "Enables support for :pep:`484` and :pep:`526` style type comments (``# type: " "``, ``# type: ignore ``)." msgstr "" -#: library/ast.rst:2468 +#: library/ast.rst:2471 msgid "Command-Line Usage" msgstr "" -#: library/ast.rst:2472 +#: library/ast.rst:2475 msgid "" "The :mod:`ast` module can be executed as a script from the command line. It " "is as simple as:" msgstr "" -#: library/ast.rst:2479 +#: library/ast.rst:2482 msgid "The following options are accepted:" msgstr "" -#: library/ast.rst:2485 +#: library/ast.rst:2488 msgid "Show the help message and exit." msgstr "" -#: library/ast.rst:2490 +#: library/ast.rst:2493 msgid "" "Specify what kind of code must be compiled, like the *mode* argument in :" "func:`parse`." msgstr "" -#: library/ast.rst:2495 +#: library/ast.rst:2498 msgid "Don't parse type comments." msgstr "" -#: library/ast.rst:2499 +#: library/ast.rst:2502 msgid "Include attributes such as line numbers and column offsets." msgstr "" -#: library/ast.rst:2504 +#: library/ast.rst:2507 msgid "Indentation of nodes in AST (number of spaces)." msgstr "" -#: library/ast.rst:2506 +#: library/ast.rst:2509 msgid "" "If :file:`infile` is specified its contents are parsed to AST and dumped to " "stdout. Otherwise, the content is read from stdin." msgstr "" -#: library/ast.rst:2512 +#: library/ast.rst:2515 msgid "" "`Green Tree Snakes `_, an external " "documentation resource, has good details on working with Python ASTs." msgstr "" -#: library/ast.rst:2515 +#: library/ast.rst:2518 msgid "" "`ASTTokens `_ " "annotates Python ASTs with the positions of tokens and text in the source " @@ -1427,21 +1431,21 @@ msgid "" "transformations." msgstr "" -#: library/ast.rst:2520 +#: library/ast.rst:2523 msgid "" "`leoAst.py `_ unifies the " "token-based and parse-tree-based views of python programs by inserting two-" "way links between tokens and ast nodes." msgstr "" -#: library/ast.rst:2524 +#: library/ast.rst:2527 msgid "" "`LibCST `_ parses code as a Concrete Syntax " "Tree that looks like an ast tree and keeps all formatting details. It's " "useful for building automated refactoring (codemod) applications and linters." msgstr "" -#: library/ast.rst:2529 +#: library/ast.rst:2532 msgid "" "`Parso `_ is a Python parser that supports " "error recovery and round-trip parsing for different Python versions (in " diff --git a/library/constants.po b/library/constants.po index 62d0af782..63cbd3577 100644 --- a/library/constants.po +++ b/library/constants.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-18 19:05+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -52,18 +52,19 @@ msgid "" "implemented with respect to the other type; may be returned by the in-place " "binary special methods (e.g. :meth:`~object.__imul__`, :meth:`~object." "__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." +"boolean context. :data:`!NotImplemented` is the sole instance of the :data:" +"`types.NotImplementedType` type." msgstr "" #: library/constants.rst:40 msgid "" -"When a binary (or in-place) method returns ``NotImplemented`` the " +"When a binary (or in-place) method returns :data:`!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." +"other fallback, depending on the operator). If all attempts return :data:`!" +"NotImplemented`, the interpreter will raise an appropriate exception. " +"Incorrectly returning :data:`!NotImplemented` will result in a misleading " +"error message or the :data:`!NotImplemented` value being returned to Python " +"code." msgstr "" #: library/constants.rst:47 @@ -72,15 +73,15 @@ msgstr "" #: library/constants.rst:51 msgid "" -"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even " -"though they have similar names and purposes. See :exc:`NotImplementedError` " -"for details on when to use it." +"``NotImplementedError`` and :data:`!NotImplemented` are not interchangeable, " +"even though they have similar names and purposes. See :exc:" +"`NotImplementedError` for details on when to use it." msgstr "" #: library/constants.rst:55 msgid "" -"Evaluating ``NotImplemented`` in a boolean context is deprecated. While it " -"currently evaluates as true, it will emit a :exc:`DeprecationWarning`. It " +"Evaluating :data:`!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 "" diff --git a/library/ctypes.po b/library/ctypes.po index 9e042f332..d1e794994 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-04 18:33+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -207,7 +207,7 @@ msgid "" "learn more about :mod:`ctypes` data types." msgstr "" -#: library/ctypes.rst:2203 +#: library/ctypes.rst:2199 msgid "Fundamental data types" msgstr "" @@ -1059,22 +1059,15 @@ msgstr "" #: library/ctypes.rst:1116 msgid "" -"If the interpreter would have been started with :option:`-O`, the sample " -"would have printed ``c_long(1)``, or ``c_long(2)`` if :option:`-OO` would " -"have been specified." -msgstr "" - -#: library/ctypes.rst:1120 -msgid "" "An extended example which also demonstrates the use of pointers accesses " "the :c:data:`PyImport_FrozenModules` pointer exported by Python." msgstr "" -#: library/ctypes.rst:1123 +#: library/ctypes.rst:1119 msgid "Quoting the docs for that value:" msgstr "" -#: library/ctypes.rst:1125 +#: library/ctypes.rst:1121 msgid "" "This pointer is initialized to point to an array of :c:struct:`_frozen` " "records, terminated by one whose members are all ``NULL`` or zero. When a " @@ -1083,19 +1076,19 @@ msgid "" "frozen modules." msgstr "" -#: library/ctypes.rst:1130 +#: library/ctypes.rst:1126 msgid "" "So manipulating this pointer could even prove useful. To restrict the " "example size, we show only how this table can be read with :mod:`ctypes`::" msgstr "" -#: library/ctypes.rst:1144 +#: library/ctypes.rst:1140 msgid "" "We have defined the :c:struct:`_frozen` data type, so we can get the pointer " "to the table::" msgstr "" -#: library/ctypes.rst:1151 +#: library/ctypes.rst:1147 msgid "" "Since ``table`` is a ``pointer`` to the array of ``struct_frozen`` records, " "we can iterate over it, but we just have to make sure that our loop " @@ -1104,34 +1097,34 @@ msgid "" "the loop when we hit the ``NULL`` entry::" msgstr "" -#: library/ctypes.rst:1167 +#: library/ctypes.rst:1163 msgid "" "The fact that standard Python has a frozen module and a frozen package " "(indicated by the negative ``size`` member) is not well known, it is only " "used for testing. Try it out with ``import __hello__`` for example." msgstr "" -#: library/ctypes.rst:1175 +#: library/ctypes.rst:1171 msgid "Surprises" msgstr "" -#: library/ctypes.rst:1177 +#: library/ctypes.rst:1173 msgid "" "There are some edges in :mod:`ctypes` where you might expect something other " "than what actually happens." msgstr "" -#: library/ctypes.rst:1180 +#: library/ctypes.rst:1176 msgid "Consider the following example::" msgstr "" -#: library/ctypes.rst:1200 +#: library/ctypes.rst:1196 msgid "" "Hm. We certainly expected the last statement to print ``3 4 1 2``. What " "happened? Here are the steps of the ``rc.a, rc.b = rc.b, rc.a`` line above::" msgstr "" -#: library/ctypes.rst:1208 +#: library/ctypes.rst:1204 msgid "" "Note that ``temp0`` and ``temp1`` are objects still using the internal " "buffer of the ``rc`` object above. So executing ``rc.a = temp0`` copies the " @@ -1140,26 +1133,26 @@ msgid "" "have the expected effect." msgstr "" -#: library/ctypes.rst:1214 +#: library/ctypes.rst:1210 msgid "" "Keep in mind that retrieving sub-objects from Structure, Unions, and Arrays " "doesn't *copy* the sub-object, instead it retrieves a wrapper object " "accessing the root-object's underlying buffer." msgstr "" -#: library/ctypes.rst:1218 +#: library/ctypes.rst:1214 msgid "" "Another example that may behave differently from what one would expect is " "this::" msgstr "" -#: library/ctypes.rst:1230 +#: library/ctypes.rst:1226 msgid "" "Objects instantiated from :class:`c_char_p` can only have their value set to " "bytes or integers." msgstr "" -#: library/ctypes.rst:1233 +#: library/ctypes.rst:1229 msgid "" "Why is it printing ``False``? ctypes instances are objects containing a " "memory block plus some :term:`descriptor`\\s accessing the contents of the " @@ -1168,16 +1161,16 @@ msgid "" "the contents again constructs a new Python object each time!" msgstr "" -#: library/ctypes.rst:1243 +#: library/ctypes.rst:1239 msgid "Variable-sized data types" msgstr "" -#: library/ctypes.rst:1245 +#: library/ctypes.rst:1241 msgid "" ":mod:`ctypes` provides some support for variable-sized arrays and structures." msgstr "" -#: library/ctypes.rst:1247 +#: library/ctypes.rst:1243 msgid "" "The :func:`resize` function can be used to resize the memory buffer of an " "existing ctypes object. The function takes the object as first argument, " @@ -1186,35 +1179,35 @@ msgid "" "objects type, a :exc:`ValueError` is raised if this is tried::" msgstr "" -#: library/ctypes.rst:1267 +#: library/ctypes.rst:1263 msgid "" "This is nice and fine, but how would one access the additional elements " "contained in this array? Since the type still only knows about 4 elements, " "we get errors accessing other elements::" msgstr "" -#: library/ctypes.rst:1279 +#: library/ctypes.rst:1275 msgid "" "Another way to use variable-sized data types with :mod:`ctypes` is to use " "the dynamic nature of Python, and (re-)define the data type after the " "required size is already known, on a case by case basis." msgstr "" -#: library/ctypes.rst:1287 +#: library/ctypes.rst:1283 msgid "ctypes reference" msgstr "" -#: library/ctypes.rst:1293 +#: library/ctypes.rst:1289 msgid "Finding shared libraries" msgstr "" -#: library/ctypes.rst:1295 +#: library/ctypes.rst:1291 msgid "" "When programming in a compiled language, shared libraries are accessed when " "compiling/linking a program, and when the program is run." msgstr "" -#: library/ctypes.rst:1298 +#: library/ctypes.rst:1294 msgid "" "The purpose of the :func:`~ctypes.util.find_library` function is to locate a " "library in a way similar to what the compiler or runtime loader does (on " @@ -1223,13 +1216,13 @@ msgid "" "and call the runtime loader directly." msgstr "" -#: library/ctypes.rst:1304 +#: library/ctypes.rst:1300 msgid "" "The :mod:`!ctypes.util` module provides a function which can help to " "determine the library to load." msgstr "" -#: library/ctypes.rst:1312 +#: library/ctypes.rst:1308 msgid "" "Try to find a library and return a pathname. *name* is the library name " "without any prefix like *lib*, suffix like ``.so``, ``.dylib`` or version " @@ -1237,36 +1230,36 @@ msgid "" "If no library can be found, returns ``None``." msgstr "" -#: library/ctypes.rst:1977 +#: library/ctypes.rst:1973 msgid "The exact functionality is system dependent." msgstr "" -#: library/ctypes.rst:1319 +#: library/ctypes.rst:1315 msgid "" "On Linux, :func:`~ctypes.util.find_library` tries to run external programs " "(``/sbin/ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library " "file. It returns the filename of the library file." msgstr "" -#: library/ctypes.rst:1323 +#: library/ctypes.rst:1319 msgid "" "On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used " "when searching for libraries, if a library cannot be found by any other " "means." msgstr "" -#: library/ctypes.rst:1327 +#: library/ctypes.rst:1323 msgid "Here are some examples::" msgstr "" -#: library/ctypes.rst:1338 +#: library/ctypes.rst:1334 msgid "" "On macOS, :func:`~ctypes.util.find_library` tries several predefined naming " "schemes and paths to locate the library, and returns a full pathname if " "successful::" msgstr "" -#: library/ctypes.rst:1352 +#: library/ctypes.rst:1348 msgid "" "On Windows, :func:`~ctypes.util.find_library` searches along the system " "search path, and returns the full pathname, but since there is no predefined " @@ -1274,7 +1267,7 @@ msgid "" "``None``." msgstr "" -#: library/ctypes.rst:1356 +#: library/ctypes.rst:1352 msgid "" "If wrapping a shared library with :mod:`ctypes`, it *may* be better to " "determine the shared library name at development time, and hardcode that " @@ -1282,24 +1275,24 @@ msgid "" "to locate the library at runtime." msgstr "" -#: library/ctypes.rst:1364 +#: library/ctypes.rst:1360 msgid "Loading shared libraries" msgstr "" -#: library/ctypes.rst:1366 +#: library/ctypes.rst:1362 msgid "" "There are several ways to load shared libraries into the Python process. " "One way is to instantiate one of the following classes:" msgstr "" -#: library/ctypes.rst:1372 +#: library/ctypes.rst:1368 msgid "" "Instances of this class represent loaded shared libraries. Functions in " "these libraries use the standard C calling convention, and are assumed to " "return :c:expr:`int`." msgstr "" -#: library/ctypes.rst:1376 +#: library/ctypes.rst:1372 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:" @@ -1311,17 +1304,17 @@ msgid "" "determine which one is not found using Windows debugging and tracing tools." msgstr "" -#: library/ctypes.rst:1411 library/ctypes.rst:1439 +#: library/ctypes.rst:1407 library/ctypes.rst:1435 msgid "The *name* parameter can now be a :term:`path-like object`." msgstr "" -#: library/ctypes.rst:1392 +#: library/ctypes.rst:1388 msgid "" "`Microsoft DUMPBIN tool `_ -- A tool to find DLL dependents." msgstr "" -#: library/ctypes.rst:1398 +#: library/ctypes.rst:1394 msgid "" "Windows only: Instances of this class represent loaded shared libraries, " "functions in these libraries use the ``stdcall`` calling convention, and are " @@ -1331,26 +1324,26 @@ msgid "" "value signals a failure, an :class:`OSError` is automatically raised." msgstr "" -#: library/ctypes.rst:1405 +#: library/ctypes.rst:1401 msgid "" ":exc:`WindowsError` used to be raised, which is now an alias of :exc:" "`OSError`." msgstr "" -#: library/ctypes.rst:1416 +#: library/ctypes.rst:1412 msgid "" "Windows only: Instances of this class represent loaded shared libraries, " "functions in these libraries use the ``stdcall`` calling convention, and are " "assumed to return :c:expr:`int` by default." msgstr "" -#: library/ctypes.rst:1424 +#: library/ctypes.rst:1420 msgid "" "The Python :term:`global interpreter lock` is released before calling any " "function exported by these libraries, and reacquired afterwards." msgstr "" -#: library/ctypes.rst:1430 +#: library/ctypes.rst:1426 msgid "" "Instances of this class behave like :class:`CDLL` instances, except that the " "Python GIL is *not* released during the function call, and after the " @@ -1358,11 +1351,11 @@ msgid "" "set, a Python exception is raised." msgstr "" -#: library/ctypes.rst:1435 +#: library/ctypes.rst:1431 msgid "Thus, this is only useful to call Python C api functions directly." msgstr "" -#: library/ctypes.rst:1441 +#: library/ctypes.rst:1437 msgid "" "All these classes can be instantiated by calling them with at least one " "argument, the pathname of the shared library. If you have an existing " @@ -1372,7 +1365,7 @@ msgid "" "the process, and to get a handle to it." msgstr "" -#: library/ctypes.rst:1448 +#: library/ctypes.rst:1444 msgid "" "The *mode* parameter can be used to specify how the library is loaded. For " "details, consult the :manpage:`dlopen(3)` manpage. On Windows, *mode* is " @@ -1380,7 +1373,7 @@ msgid "" "configurable." msgstr "" -#: library/ctypes.rst:1453 +#: library/ctypes.rst:1449 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:" @@ -1390,14 +1383,14 @@ msgid "" "private copy, the same happens immediately after the function call." msgstr "" -#: library/ctypes.rst:1460 +#: library/ctypes.rst:1456 msgid "" "The function :func:`ctypes.get_errno` returns the value of the ctypes " "private copy, and the function :func:`ctypes.set_errno` changes the ctypes " "private copy to a new value and returns the former value." msgstr "" -#: library/ctypes.rst:1464 +#: library/ctypes.rst:1460 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 :" @@ -1406,7 +1399,7 @@ msgid "" "private copy of the windows error code." msgstr "" -#: library/ctypes.rst:1470 +#: library/ctypes.rst:1466 msgid "" "The *winmode* parameter is used on Windows to specify how the library is " "loaded (since *mode* is ignored). It takes any value that is valid for the " @@ -1416,29 +1409,29 @@ msgid "" "ensure the correct library and dependencies are loaded." msgstr "" -#: library/ctypes.rst:1477 +#: library/ctypes.rst:1473 msgid "Added *winmode* parameter." msgstr "" -#: library/ctypes.rst:1484 +#: library/ctypes.rst:1480 msgid "" "Flag to use as *mode* parameter. On platforms where this flag is not " "available, it is defined as the integer zero." msgstr "" -#: library/ctypes.rst:1491 +#: library/ctypes.rst:1487 msgid "" "Flag to use as *mode* parameter. On platforms where this is not available, " "it is the same as *RTLD_GLOBAL*." msgstr "" -#: library/ctypes.rst:1498 +#: library/ctypes.rst:1494 msgid "" "The default mode which is used to load shared libraries. On OSX 10.3, this " "is *RTLD_GLOBAL*, otherwise it is the same as *RTLD_LOCAL*." msgstr "" -#: library/ctypes.rst:1501 +#: library/ctypes.rst:1497 msgid "" "Instances of these classes have no public methods. Functions exported by " "the shared library can be accessed as attributes or by index. Please note " @@ -1447,21 +1440,21 @@ msgid "" "other hand, accessing it through an index returns a new object each time::" msgstr "" -#: library/ctypes.rst:1514 +#: library/ctypes.rst:1510 msgid "" "The following public attributes are available, their name starts with an " "underscore to not clash with exported function names:" msgstr "" -#: library/ctypes.rst:1520 +#: library/ctypes.rst:1516 msgid "The system handle used to access the library." msgstr "" -#: library/ctypes.rst:1525 +#: library/ctypes.rst:1521 msgid "The name of the library passed in the constructor." msgstr "" -#: library/ctypes.rst:1527 +#: library/ctypes.rst:1523 msgid "" "Shared libraries can also be loaded by using one of the prefabricated " "objects, which are instances of the :class:`LibraryLoader` class, either by " @@ -1469,13 +1462,13 @@ msgid "" "library as attribute of the loader instance." msgstr "" -#: library/ctypes.rst:1535 +#: library/ctypes.rst:1531 msgid "" "Class which loads shared libraries. *dlltype* should be one of the :class:" "`CDLL`, :class:`PyDLL`, :class:`WinDLL`, or :class:`OleDLL` types." msgstr "" -#: library/ctypes.rst:1538 +#: library/ctypes.rst:1534 msgid "" ":meth:`!__getattr__` has special behavior: It allows loading a shared " "library by accessing it as attribute of a library loader instance. The " @@ -1483,39 +1476,39 @@ msgid "" "each time." msgstr "" -#: library/ctypes.rst:1544 +#: library/ctypes.rst:1540 msgid "" "Load a shared library into the process and return it. This method always " "returns a new instance of the library." msgstr "" -#: library/ctypes.rst:1548 +#: library/ctypes.rst:1544 msgid "These prefabricated library loaders are available:" msgstr "" -#: library/ctypes.rst:1553 +#: library/ctypes.rst:1549 msgid "Creates :class:`CDLL` instances." msgstr "" -#: library/ctypes.rst:1559 +#: library/ctypes.rst:1555 msgid "Windows only: Creates :class:`WinDLL` instances." msgstr "" -#: library/ctypes.rst:1565 +#: library/ctypes.rst:1561 msgid "Windows only: Creates :class:`OleDLL` instances." msgstr "" -#: library/ctypes.rst:1571 +#: library/ctypes.rst:1567 msgid "Creates :class:`PyDLL` instances." msgstr "" -#: library/ctypes.rst:1574 +#: library/ctypes.rst:1570 msgid "" "For accessing the C Python api directly, a ready-to-use Python shared " "library object is available:" msgstr "" -#: library/ctypes.rst:1580 +#: library/ctypes.rst:1576 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:" @@ -1523,50 +1516,50 @@ msgid "" "correct :attr:`!restype` attribute to use these functions." msgstr "" -#: library/ctypes.rst:1585 +#: library/ctypes.rst:1581 msgid "" "Raises an :ref:`auditing event ` ``ctypes.dlopen`` with argument " "``name``." msgstr "" -#: library/ctypes.rst:1587 +#: library/ctypes.rst:1583 msgid "" "Loading a library through any of these objects raises an :ref:`auditing " "event ` ``ctypes.dlopen`` with string argument ``name``, the name " "used to load the library." msgstr "" -#: library/ctypes.rst:1591 +#: library/ctypes.rst:1587 msgid "" "Raises an :ref:`auditing event ` ``ctypes.dlsym`` with arguments " "``library``, ``name``." msgstr "" -#: library/ctypes.rst:1593 +#: library/ctypes.rst:1589 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)." msgstr "" -#: library/ctypes.rst:1597 +#: library/ctypes.rst:1593 msgid "" "Raises an :ref:`auditing event ` ``ctypes.dlsym/handle`` with " "arguments ``handle``, ``name``." msgstr "" -#: library/ctypes.rst:1599 +#: library/ctypes.rst:1595 msgid "" "In cases when only the library handle is available rather than the object, " "accessing a function raises an auditing event ``ctypes.dlsym/handle`` with " "arguments ``handle`` (the raw library handle) and ``name``." msgstr "" -#: library/ctypes.rst:1606 +#: library/ctypes.rst:1602 msgid "Foreign functions" msgstr "" -#: library/ctypes.rst:1608 +#: library/ctypes.rst:1604 msgid "" "As explained in the previous section, foreign functions can be accessed as " "attributes of loaded shared libraries. The function objects created in this " @@ -1575,29 +1568,29 @@ msgid "" "library loader. They are instances of a private class:" msgstr "" -#: library/ctypes.rst:1617 +#: library/ctypes.rst:1613 msgid "Base class for C callable foreign functions." msgstr "" -#: library/ctypes.rst:1619 +#: library/ctypes.rst:1615 msgid "" "Instances of foreign functions are also C compatible data types; they " "represent C function pointers." msgstr "" -#: library/ctypes.rst:1622 +#: library/ctypes.rst:1618 msgid "" "This behavior can be customized by assigning to special attributes of the " "foreign function object." msgstr "" -#: library/ctypes.rst:1627 +#: library/ctypes.rst:1623 msgid "" "Assign a ctypes type to specify the result type of the foreign function. Use " "``None`` for :c:expr:`void`, a function not returning anything." msgstr "" -#: library/ctypes.rst:1630 +#: library/ctypes.rst:1626 msgid "" "It is possible to assign a callable Python object that is not a ctypes type, " "in this case the function is assumed to return a C :c:expr:`int`, and the " @@ -1607,7 +1600,7 @@ msgid "" "callable to the :attr:`errcheck` attribute." msgstr "" -#: library/ctypes.rst:1639 +#: library/ctypes.rst:1635 msgid "" "Assign a tuple of ctypes types to specify the argument types that the " "function accepts. Functions using the ``stdcall`` calling convention can " @@ -1616,7 +1609,7 @@ msgid "" "unspecified arguments as well." msgstr "" -#: library/ctypes.rst:1645 +#: library/ctypes.rst:1641 msgid "" "When a foreign function is called, each actual argument is passed to the :" "meth:`~_CData.from_param` class method of the items in the :attr:`argtypes` " @@ -1626,7 +1619,7 @@ msgid "" "object using ctypes conversion rules." msgstr "" -#: library/ctypes.rst:1652 +#: library/ctypes.rst:1648 msgid "" "New: It is now possible to put items in argtypes which are not ctypes types, " "but each item must have a :meth:`~_CData.from_param` method which returns a " @@ -1634,50 +1627,50 @@ msgid "" "defining adapters that can adapt custom objects as function parameters." msgstr "" -#: library/ctypes.rst:1659 +#: library/ctypes.rst:1655 msgid "" "Assign a Python function or another callable to this attribute. The callable " "will be called with three or more arguments:" msgstr "" -#: library/ctypes.rst:1666 +#: library/ctypes.rst:1662 msgid "" "*result* is what the foreign function returns, as specified by the :attr:`!" "restype` attribute." msgstr "" -#: library/ctypes.rst:1669 +#: library/ctypes.rst:1665 msgid "" "*func* is the foreign function object itself, this allows reusing the same " "callable object to check or post process the results of several functions." msgstr "" -#: library/ctypes.rst:1673 +#: library/ctypes.rst:1669 msgid "" "*arguments* is a tuple containing the parameters originally passed to the " "function call, this allows specializing the behavior on the arguments used." msgstr "" -#: library/ctypes.rst:1677 +#: library/ctypes.rst:1673 msgid "" "The object that this function returns will be returned from the foreign " "function call, but it can also check the result value and raise an exception " "if the foreign function call failed." msgstr "" -#: library/ctypes.rst:1684 +#: library/ctypes.rst:1680 msgid "" "This exception is raised when a foreign function call cannot convert one of " "the passed arguments." msgstr "" -#: library/ctypes.rst:1688 +#: library/ctypes.rst:1684 msgid "" "Raises an :ref:`auditing event ` ``ctypes.set_exception`` with " "argument ``code``." msgstr "" -#: library/ctypes.rst:1690 +#: library/ctypes.rst:1686 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 " @@ -1686,24 +1679,24 @@ msgid "" "hook to replace the exception with its own." msgstr "" -#: library/ctypes.rst:1696 +#: library/ctypes.rst:1692 msgid "" "Raises an :ref:`auditing event ` ``ctypes.call_function`` with " "arguments ``func_pointer``, ``arguments``." msgstr "" -#: library/ctypes.rst:1698 +#: library/ctypes.rst:1694 msgid "" "Some ways to invoke foreign function calls may raise an auditing event " "``ctypes.call_function`` with arguments ``function pointer`` and " "``arguments``." msgstr "" -#: library/ctypes.rst:1704 +#: library/ctypes.rst:1700 msgid "Function prototypes" msgstr "" -#: library/ctypes.rst:1706 +#: library/ctypes.rst:1702 msgid "" "Foreign functions can also be created by instantiating function prototypes. " "Function prototypes are similar to function prototypes in C; they describe a " @@ -1714,7 +1707,7 @@ msgid "" "``@wrapper`` syntax. See :ref:`ctypes-callback-functions` for examples." msgstr "" -#: library/ctypes.rst:1717 +#: library/ctypes.rst:1713 msgid "" "The returned function prototype creates functions that use the standard C " "calling convention. The function will release the GIL during the call. If " @@ -1723,37 +1716,37 @@ msgid "" "after the call; *use_last_error* does the same for the Windows error code." msgstr "" -#: library/ctypes.rst:1727 +#: library/ctypes.rst:1723 msgid "" "Windows only: The returned function prototype creates functions that use the " "``stdcall`` calling convention. The function will release the GIL during " "the call. *use_errno* and *use_last_error* have the same meaning as above." msgstr "" -#: library/ctypes.rst:1735 +#: library/ctypes.rst:1731 msgid "" "The returned function prototype creates functions that use the Python " "calling convention. The function will *not* release the GIL during the call." msgstr "" -#: library/ctypes.rst:1738 +#: library/ctypes.rst:1734 msgid "" "Function prototypes created by these factory functions can be instantiated " "in different ways, depending on the type and number of the parameters in the " "call:" msgstr "" -#: library/ctypes.rst:1745 +#: library/ctypes.rst:1741 msgid "" "Returns a foreign function at the specified address which must be an integer." msgstr "" -#: library/ctypes.rst:1752 +#: library/ctypes.rst:1748 msgid "" "Create a C callable function (a callback function) from a Python *callable*." msgstr "" -#: library/ctypes.rst:1759 +#: library/ctypes.rst:1755 msgid "" "Returns a foreign function exported by a shared library. *func_spec* must be " "a 2-tuple ``(name_or_ordinal, library)``. The first item is the name of the " @@ -1761,7 +1754,7 @@ msgid "" "small integer. The second item is the shared library instance." msgstr "" -#: library/ctypes.rst:1769 +#: library/ctypes.rst:1765 msgid "" "Returns a foreign function that will call a COM method. *vtbl_index* is the " "index into the virtual function table, a small non-negative integer. *name* " @@ -1769,87 +1762,87 @@ msgid "" "identifier which is used in extended error reporting." msgstr "" -#: library/ctypes.rst:1774 +#: library/ctypes.rst:1770 msgid "" "COM methods use a special calling convention: They require a pointer to the " "COM interface as first argument, in addition to those parameters that are " "specified in the :attr:`!argtypes` tuple." msgstr "" -#: library/ctypes.rst:1778 +#: library/ctypes.rst:1774 msgid "" "The optional *paramflags* parameter creates foreign function wrappers with " "much more functionality than the features described above." msgstr "" -#: library/ctypes.rst:1781 +#: library/ctypes.rst:1777 msgid "" "*paramflags* must be a tuple of the same length as :attr:`~_FuncPtr." "argtypes`." msgstr "" -#: library/ctypes.rst:1783 +#: library/ctypes.rst:1779 msgid "" "Each item in this tuple contains further information about a parameter, it " "must be a tuple containing one, two, or three items." msgstr "" -#: library/ctypes.rst:1786 +#: library/ctypes.rst:1782 msgid "" "The first item is an integer containing a combination of direction flags for " "the parameter:" msgstr "" -#: library/ctypes.rst:1790 +#: library/ctypes.rst:1786 msgid "1" msgstr "" -#: library/ctypes.rst:1790 +#: library/ctypes.rst:1786 msgid "Specifies an input parameter to the function." msgstr "" -#: library/ctypes.rst:1793 +#: library/ctypes.rst:1789 msgid "2" msgstr "" -#: library/ctypes.rst:1793 +#: library/ctypes.rst:1789 msgid "Output parameter. The foreign function fills in a value." msgstr "" -#: library/ctypes.rst:1796 +#: library/ctypes.rst:1792 msgid "4" msgstr "" -#: library/ctypes.rst:1796 +#: library/ctypes.rst:1792 msgid "Input parameter which defaults to the integer zero." msgstr "" -#: library/ctypes.rst:1798 +#: library/ctypes.rst:1794 msgid "" "The optional second item is the parameter name as string. If this is " "specified, the foreign function can be called with named parameters." msgstr "" -#: library/ctypes.rst:1801 +#: library/ctypes.rst:1797 msgid "The optional third item is the default value for this parameter." msgstr "" -#: library/ctypes.rst:1804 +#: library/ctypes.rst:1800 msgid "" "The following example demonstrates how to wrap the Windows ``MessageBoxW`` " "function so that it supports default parameters and named arguments. The C " "declaration from the windows header file is this::" msgstr "" -#: library/ctypes.rst:1838 +#: library/ctypes.rst:1834 msgid "Here is the wrapping with :mod:`ctypes`::" msgstr "" -#: library/ctypes.rst:1823 +#: library/ctypes.rst:1819 msgid "The ``MessageBox`` foreign function can now be called in these ways::" msgstr "" -#: library/ctypes.rst:1829 +#: library/ctypes.rst:1825 msgid "" "A second example demonstrates output parameters. The win32 " "``GetWindowRect`` function retrieves the dimensions of a specified window by " @@ -1857,7 +1850,7 @@ msgid "" "the C declaration::" msgstr "" -#: library/ctypes.rst:1847 +#: library/ctypes.rst:1843 msgid "" "Functions with output parameters will automatically return the output " "parameter value if there is a single one, or a tuple containing the output " @@ -1865,7 +1858,7 @@ msgid "" "now returns a RECT instance, when called." msgstr "" -#: library/ctypes.rst:1852 +#: library/ctypes.rst:1848 msgid "" "Output parameters can be combined with the :attr:`~_FuncPtr.errcheck` " "protocol to do further output processing and error checking. The win32 " @@ -1874,7 +1867,7 @@ msgid "" "exception when the api call failed::" msgstr "" -#: library/ctypes.rst:1865 +#: library/ctypes.rst:1861 msgid "" "If the :attr:`~_FuncPtr.errcheck` function returns the argument tuple it " "receives unchanged, :mod:`ctypes` continues the normal processing it does on " @@ -1883,46 +1876,46 @@ msgid "" "and return them instead, the normal processing will no longer take place::" msgstr "" -#: library/ctypes.rst:1884 +#: library/ctypes.rst:1880 msgid "Utility functions" msgstr "" -#: library/ctypes.rst:1888 +#: library/ctypes.rst:1884 msgid "" "Returns the address of the memory buffer as integer. *obj* must be an " "instance of a ctypes type." msgstr "" -#: library/ctypes.rst:1891 +#: library/ctypes.rst:1887 msgid "" "Raises an :ref:`auditing event ` ``ctypes.addressof`` with " "argument ``obj``." msgstr "" -#: library/ctypes.rst:1896 +#: library/ctypes.rst:1892 msgid "" "Returns the alignment requirements of a ctypes type. *obj_or_type* must be a " "ctypes type or instance." msgstr "" -#: library/ctypes.rst:1902 +#: library/ctypes.rst:1898 msgid "" "Returns a light-weight pointer to *obj*, which must be an instance of a " "ctypes type. *offset* defaults to zero, and must be an integer that will be " "added to the internal pointer value." msgstr "" -#: library/ctypes.rst:1906 +#: library/ctypes.rst:1902 msgid "``byref(obj, offset)`` corresponds to this C code::" msgstr "" -#: library/ctypes.rst:1910 +#: library/ctypes.rst:1906 msgid "" "The returned object can only be used as a foreign function call parameter. " "It behaves similar to ``pointer(obj)``, but the construction is a lot faster." msgstr "" -#: library/ctypes.rst:1916 +#: library/ctypes.rst:1912 msgid "" "This function is similar to the cast operator in C. It returns a new " "instance of *type* which points to the same memory block as *obj*. *type* " @@ -1930,19 +1923,19 @@ msgid "" "as a pointer." msgstr "" -#: library/ctypes.rst:1924 +#: library/ctypes.rst:1920 msgid "" "This function creates a mutable character buffer. The returned object is a " "ctypes array of :class:`c_char`." msgstr "" -#: library/ctypes.rst:1927 +#: library/ctypes.rst:1923 msgid "" "*init_or_size* must be an integer which specifies the size of the array, or " "a bytes object which will be used to initialize the array items." msgstr "" -#: library/ctypes.rst:1930 +#: library/ctypes.rst:1926 msgid "" "If a bytes object is specified as first argument, the buffer is made one " "item larger than its length so that the last element in the array is a NUL " @@ -1951,25 +1944,25 @@ msgid "" "not be used." msgstr "" -#: library/ctypes.rst:1935 +#: library/ctypes.rst:1931 msgid "" "Raises an :ref:`auditing event ` ``ctypes.create_string_buffer`` " "with arguments ``init``, ``size``." msgstr "" -#: library/ctypes.rst:1940 +#: library/ctypes.rst:1936 msgid "" "This function creates a mutable unicode character buffer. The returned " "object is a ctypes array of :class:`c_wchar`." msgstr "" -#: library/ctypes.rst:1943 +#: library/ctypes.rst:1939 msgid "" "*init_or_size* must be an integer which specifies the size of the array, or " "a string which will be used to initialize the array items." msgstr "" -#: library/ctypes.rst:1946 +#: library/ctypes.rst:1942 msgid "" "If a string is specified as first argument, the buffer is made one item " "larger than the length of the string so that the last element in the array " @@ -1978,27 +1971,27 @@ msgid "" "should not be used." msgstr "" -#: library/ctypes.rst:1952 +#: library/ctypes.rst:1948 msgid "" "Raises an :ref:`auditing event ` ``ctypes.create_unicode_buffer`` " "with arguments ``init``, ``size``." msgstr "" -#: library/ctypes.rst:1957 +#: library/ctypes.rst:1953 msgid "" "Windows only: This function is a hook which allows implementing in-process " "COM servers with ctypes. It is called from the DllCanUnloadNow function " "that the _ctypes extension dll exports." msgstr "" -#: library/ctypes.rst:1964 +#: library/ctypes.rst:1960 msgid "" "Windows only: This function is a hook which allows implementing in-process " "COM servers with ctypes. It is called from the DllGetClassObject function " "that the ``_ctypes`` extension dll exports." msgstr "" -#: library/ctypes.rst:1972 +#: library/ctypes.rst:1968 msgid "" "Try to find a library and return a pathname. *name* is the library name " "without any prefix like ``lib``, suffix like ``.so``, ``.dylib`` or version " @@ -2006,92 +1999,92 @@ msgid "" "If no library can be found, returns ``None``." msgstr "" -#: library/ctypes.rst:1983 +#: library/ctypes.rst:1979 msgid "" "Windows only: return the filename of the VC runtime library used by Python, " "and by the extension modules. If the name of the library cannot be " "determined, ``None`` is returned." msgstr "" -#: library/ctypes.rst:1987 +#: library/ctypes.rst:1983 msgid "" "If you need to free memory, for example, allocated by an extension module " "with a call to the ``free(void *)``, it is important that you use the " "function in the same library that allocated the memory." msgstr "" -#: library/ctypes.rst:1994 +#: library/ctypes.rst:1990 msgid "" "Windows only: Returns a textual description of the error code *code*. If no " "error code is specified, the last error code is used by calling the Windows " "api function GetLastError." msgstr "" -#: library/ctypes.rst:2001 +#: library/ctypes.rst:1997 msgid "" "Windows only: Returns the last error code set by Windows in the calling " "thread. This function calls the Windows ``GetLastError()`` function " "directly, it does not return the ctypes-private copy of the error code." msgstr "" -#: library/ctypes.rst:2007 +#: library/ctypes.rst:2003 msgid "" "Returns the current value of the ctypes-private copy of the system :data:" "`errno` variable in the calling thread." msgstr "" -#: library/ctypes.rst:2010 +#: library/ctypes.rst:2006 msgid "" "Raises an :ref:`auditing event ` ``ctypes.get_errno`` with no " "arguments." msgstr "" -#: library/ctypes.rst:2014 +#: library/ctypes.rst:2010 msgid "" "Windows only: returns the current value of the ctypes-private copy of the " "system :data:`!LastError` variable in the calling thread." msgstr "" -#: library/ctypes.rst:2017 +#: library/ctypes.rst:2013 msgid "" "Raises an :ref:`auditing event ` ``ctypes.get_last_error`` with no " "arguments." msgstr "" -#: library/ctypes.rst:2021 +#: library/ctypes.rst:2017 msgid "" "Same as the standard C memmove library function: copies *count* bytes from " "*src* to *dst*. *dst* and *src* must be integers or ctypes instances that " "can be converted to pointers." msgstr "" -#: library/ctypes.rst:2028 +#: library/ctypes.rst:2024 msgid "" "Same as the standard C memset library function: fills the memory block at " "address *dst* with *count* bytes of value *c*. *dst* must be an integer " "specifying an address, or a ctypes instance." msgstr "" -#: library/ctypes.rst:2035 +#: library/ctypes.rst:2031 msgid "" "Create and return a new ctypes pointer type. Pointer types are cached and " "reused internally, so calling this function repeatedly is cheap. *type* must " "be a ctypes type." msgstr "" -#: library/ctypes.rst:2042 +#: library/ctypes.rst:2038 msgid "" "Create a new pointer instance, pointing to *obj*. The returned object is of " "the type ``POINTER(type(obj))``." msgstr "" -#: library/ctypes.rst:2045 +#: library/ctypes.rst:2041 msgid "" "Note: If you just want to pass a pointer to an object to a foreign function " "call, you should use ``byref(obj)`` which is much faster." msgstr "" -#: library/ctypes.rst:2051 +#: library/ctypes.rst:2047 msgid "" "This function resizes the internal memory buffer of *obj*, which must be an " "instance of a ctypes type. It is not possible to make the buffer smaller " @@ -2099,51 +2092,51 @@ msgid "" "but it is possible to enlarge the buffer." msgstr "" -#: library/ctypes.rst:2059 +#: library/ctypes.rst:2055 msgid "" "Set the current value of the ctypes-private copy of the system :data:`errno` " "variable in the calling thread to *value* and return the previous value." msgstr "" -#: library/ctypes.rst:2062 +#: library/ctypes.rst:2058 msgid "" "Raises an :ref:`auditing event ` ``ctypes.set_errno`` with " "argument ``errno``." msgstr "" -#: library/ctypes.rst:2067 +#: library/ctypes.rst:2063 msgid "" "Windows only: set the current value of the ctypes-private copy of the " "system :data:`!LastError` variable in the calling thread to *value* and " "return the previous value." msgstr "" -#: library/ctypes.rst:2071 +#: library/ctypes.rst:2067 msgid "" "Raises an :ref:`auditing event ` ``ctypes.set_last_error`` with " "argument ``error``." msgstr "" -#: library/ctypes.rst:2076 +#: library/ctypes.rst:2072 msgid "" "Returns the size in bytes of a ctypes type or instance memory buffer. Does " "the same as the C ``sizeof`` operator." msgstr "" -#: library/ctypes.rst:2082 +#: library/ctypes.rst:2078 msgid "" "This function returns the C string starting at memory address *address* as a " "bytes object. If size is specified, it is used as size, otherwise the string " "is assumed to be zero-terminated." msgstr "" -#: library/ctypes.rst:2086 +#: library/ctypes.rst:2082 msgid "" "Raises an :ref:`auditing event ` ``ctypes.string_at`` with " "arguments ``address``, ``size``." msgstr "" -#: library/ctypes.rst:2091 +#: library/ctypes.rst:2087 msgid "" "Windows only: this function is probably the worst-named thing in ctypes. It " "creates an instance of :exc:`OSError`. If *code* is not specified, " @@ -2152,13 +2145,13 @@ msgid "" "error." msgstr "" -#: library/ctypes.rst:2097 +#: library/ctypes.rst:2093 msgid "" "An instance of :exc:`WindowsError` used to be created, which is now an alias " "of :exc:`OSError`." msgstr "" -#: library/ctypes.rst:2104 +#: library/ctypes.rst:2100 msgid "" "This function returns the wide character string starting at memory address " "*address* as a string. If *size* is specified, it is used as the number of " @@ -2166,17 +2159,17 @@ msgid "" "terminated." msgstr "" -#: library/ctypes.rst:2109 +#: library/ctypes.rst:2105 msgid "" "Raises an :ref:`auditing event ` ``ctypes.wstring_at`` with " "arguments ``address``, ``size``." msgstr "" -#: library/ctypes.rst:2115 +#: library/ctypes.rst:2111 msgid "Data types" msgstr "" -#: library/ctypes.rst:2120 +#: library/ctypes.rst:2116 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 " @@ -2186,13 +2179,13 @@ msgid "" "alive in case the memory block contains pointers." msgstr "" -#: library/ctypes.rst:2127 +#: library/ctypes.rst:2123 msgid "" "Common methods of ctypes data types, these are all class methods (to be " "exact, they are methods of the :term:`metaclass`):" msgstr "" -#: library/ctypes.rst:2132 +#: library/ctypes.rst:2128 msgid "" "This method returns a ctypes instance that shares the buffer of the *source* " "object. The *source* object must support the writeable buffer interface. " @@ -2201,13 +2194,13 @@ msgid "" "exc:`ValueError` is raised." msgstr "" -#: library/ctypes.rst:2148 +#: library/ctypes.rst:2144 msgid "" "Raises an :ref:`auditing event ` ``ctypes.cdata/buffer`` with " "arguments ``pointer``, ``size``, ``offset``." msgstr "" -#: library/ctypes.rst:2142 +#: library/ctypes.rst:2138 msgid "" "This method creates a ctypes instance, copying the buffer from the *source* " "object buffer which must be readable. The optional *offset* parameter " @@ -2215,25 +2208,25 @@ msgid "" "If the source buffer is not large enough a :exc:`ValueError` is raised." msgstr "" -#: library/ctypes.rst:2152 +#: library/ctypes.rst:2148 msgid "" "This method returns a ctypes type instance using the memory specified by " "*address* which must be an integer." msgstr "" -#: library/ctypes.rst:2155 +#: library/ctypes.rst:2151 msgid "" "Raises an :ref:`auditing event ` ``ctypes.cdata`` with argument " "``address``." msgstr "" -#: library/ctypes.rst:2157 +#: library/ctypes.rst:2153 msgid "" "This method, and others that indirectly call this method, raises an :ref:" "`auditing event ` ``ctypes.cdata`` with argument ``address``." msgstr "" -#: library/ctypes.rst:2163 +#: library/ctypes.rst:2159 msgid "" "This method adapts *obj* to a ctypes type. It is called with the actual " "object used in a foreign function call when the type is present in the " @@ -2241,25 +2234,25 @@ msgid "" "object that can be used as a function call parameter." msgstr "" -#: library/ctypes.rst:2168 +#: library/ctypes.rst:2164 msgid "" "All ctypes data types have a default implementation of this classmethod that " "normally returns *obj* if that is an instance of the type. Some types " "accept other objects as well." msgstr "" -#: library/ctypes.rst:2174 +#: library/ctypes.rst:2170 msgid "" "This method returns a ctypes type instance exported by a shared library. " "*name* is the name of the symbol that exports the data, *library* is the " "loaded shared library." msgstr "" -#: library/ctypes.rst:2178 +#: library/ctypes.rst:2174 msgid "Common instance variables of ctypes data types:" msgstr "" -#: library/ctypes.rst:2182 +#: library/ctypes.rst:2178 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:" @@ -2267,13 +2260,13 @@ msgid "" "block." msgstr "" -#: library/ctypes.rst:2189 +#: library/ctypes.rst:2185 msgid "" "This read-only variable is true when the ctypes data instance has allocated " "the memory block itself, false otherwise." msgstr "" -#: library/ctypes.rst:2194 +#: library/ctypes.rst:2190 msgid "" "This member is either ``None`` or a dictionary containing Python objects " "that need to be kept alive so that the memory block contents is kept valid. " @@ -2281,7 +2274,7 @@ msgid "" "dictionary." msgstr "" -#: library/ctypes.rst:2207 +#: library/ctypes.rst:2203 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 " @@ -2290,11 +2283,11 @@ msgid "" "types that are not and do not contain pointers can now be pickled." msgstr "" -#: library/ctypes.rst:2213 +#: library/ctypes.rst:2209 msgid "Instances have a single attribute:" msgstr "" -#: library/ctypes.rst:2217 +#: library/ctypes.rst:2213 msgid "" "This attribute contains the actual value of the instance. For integer and " "pointer types, it is an integer, for character types, it is a single " @@ -2302,7 +2295,7 @@ msgid "" "bytes object or string." msgstr "" -#: library/ctypes.rst:2222 +#: library/ctypes.rst:2218 msgid "" "When the ``value`` attribute is retrieved from a ctypes instance, usually a " "new object is returned each time. :mod:`ctypes` does *not* implement " @@ -2310,7 +2303,7 @@ msgid "" "true for all other ctypes object instances." msgstr "" -#: library/ctypes.rst:2228 +#: library/ctypes.rst:2224 msgid "" "Fundamental data types, when returned as foreign function call results, or, " "for example, by retrieving structure field members or array items, are " @@ -2320,7 +2313,7 @@ msgid "" "instance." msgstr "" -#: library/ctypes.rst:2236 +#: library/ctypes.rst:2232 msgid "" "Subclasses of fundamental data types do *not* inherit this behavior. So, if " "a foreign functions :attr:`!restype` is a subclass of :class:`c_void_p`, you " @@ -2328,25 +2321,25 @@ msgid "" "you can get the value of the pointer by accessing the ``value`` attribute." msgstr "" -#: library/ctypes.rst:2241 +#: library/ctypes.rst:2237 msgid "These are the fundamental ctypes data types:" msgstr "" -#: library/ctypes.rst:2245 +#: library/ctypes.rst:2241 msgid "" "Represents the C :c:expr:`signed char` datatype, and interprets the value as " "small integer. The constructor accepts an optional integer initializer; no " "overflow checking is done." msgstr "" -#: library/ctypes.rst:2252 +#: library/ctypes.rst:2248 msgid "" "Represents the C :c:expr:`char` datatype, and interprets the value as a " "single character. The constructor accepts an optional string initializer, " "the length of the string must be exactly one character." msgstr "" -#: library/ctypes.rst:2259 +#: library/ctypes.rst:2255 msgid "" "Represents the C :c:expr:`char *` datatype when it points to a zero-" "terminated string. For a general character pointer that may also point to " @@ -2354,182 +2347,182 @@ msgid "" "integer address, or a bytes object." msgstr "" -#: library/ctypes.rst:2267 +#: library/ctypes.rst:2263 msgid "" "Represents the C :c:expr:`double` datatype. The constructor accepts an " "optional float initializer." msgstr "" -#: library/ctypes.rst:2273 +#: library/ctypes.rst:2269 msgid "" "Represents the C :c:expr:`long double` datatype. The constructor accepts an " "optional float initializer. On platforms where ``sizeof(long double) == " "sizeof(double)`` it is an alias to :class:`c_double`." msgstr "" -#: library/ctypes.rst:2279 +#: library/ctypes.rst:2275 msgid "" "Represents the C :c:expr:`float` datatype. The constructor accepts an " "optional float initializer." msgstr "" -#: library/ctypes.rst:2285 +#: library/ctypes.rst:2281 msgid "" "Represents the C :c:expr:`signed int` datatype. The constructor accepts an " "optional integer initializer; no overflow checking is done. On platforms " "where ``sizeof(int) == sizeof(long)`` it is an alias to :class:`c_long`." msgstr "" -#: library/ctypes.rst:2292 +#: library/ctypes.rst:2288 msgid "" "Represents the C 8-bit :c:expr:`signed int` datatype. Usually an alias for :" "class:`c_byte`." msgstr "" -#: library/ctypes.rst:2298 +#: library/ctypes.rst:2294 msgid "" "Represents the C 16-bit :c:expr:`signed int` datatype. Usually an alias " "for :class:`c_short`." msgstr "" -#: library/ctypes.rst:2304 +#: library/ctypes.rst:2300 msgid "" "Represents the C 32-bit :c:expr:`signed int` datatype. Usually an alias " "for :class:`c_int`." msgstr "" -#: library/ctypes.rst:2310 +#: library/ctypes.rst:2306 msgid "" "Represents the C 64-bit :c:expr:`signed int` datatype. Usually an alias " "for :class:`c_longlong`." msgstr "" -#: library/ctypes.rst:2316 +#: library/ctypes.rst:2312 msgid "" "Represents the C :c:expr:`signed long` datatype. The constructor accepts an " "optional integer initializer; no overflow checking is done." msgstr "" -#: library/ctypes.rst:2322 +#: library/ctypes.rst:2318 msgid "" "Represents the C :c:expr:`signed long long` datatype. The constructor " "accepts an optional integer initializer; no overflow checking is done." msgstr "" -#: library/ctypes.rst:2328 +#: library/ctypes.rst:2324 msgid "" "Represents the C :c:expr:`signed short` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: library/ctypes.rst:2334 +#: library/ctypes.rst:2330 msgid "Represents the C :c:type:`size_t` datatype." msgstr "" -#: library/ctypes.rst:2339 +#: library/ctypes.rst:2335 msgid "Represents the C :c:type:`ssize_t` datatype." msgstr "" -#: library/ctypes.rst:2346 +#: library/ctypes.rst:2342 msgid "Represents the C :c:type:`time_t` datatype." msgstr "" -#: library/ctypes.rst:2353 +#: library/ctypes.rst:2349 msgid "" "Represents the C :c:expr:`unsigned char` datatype, it interprets the value " "as small integer. The constructor accepts an optional integer initializer; " "no overflow checking is done." msgstr "" -#: library/ctypes.rst:2360 +#: library/ctypes.rst:2356 msgid "" "Represents the C :c:expr:`unsigned int` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done. On platforms " "where ``sizeof(int) == sizeof(long)`` it is an alias for :class:`c_ulong`." msgstr "" -#: library/ctypes.rst:2367 +#: library/ctypes.rst:2363 msgid "" "Represents the C 8-bit :c:expr:`unsigned int` datatype. Usually an alias " "for :class:`c_ubyte`." msgstr "" -#: library/ctypes.rst:2373 +#: library/ctypes.rst:2369 msgid "" "Represents the C 16-bit :c:expr:`unsigned int` datatype. Usually an alias " "for :class:`c_ushort`." msgstr "" -#: library/ctypes.rst:2379 +#: library/ctypes.rst:2375 msgid "" "Represents the C 32-bit :c:expr:`unsigned int` datatype. Usually an alias " "for :class:`c_uint`." msgstr "" -#: library/ctypes.rst:2385 +#: library/ctypes.rst:2381 msgid "" "Represents the C 64-bit :c:expr:`unsigned int` datatype. Usually an alias " "for :class:`c_ulonglong`." msgstr "" -#: library/ctypes.rst:2391 +#: library/ctypes.rst:2387 msgid "" "Represents the C :c:expr:`unsigned long` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: library/ctypes.rst:2397 +#: library/ctypes.rst:2393 msgid "" "Represents the C :c:expr:`unsigned long long` datatype. The constructor " "accepts an optional integer initializer; no overflow checking is done." msgstr "" -#: library/ctypes.rst:2403 +#: library/ctypes.rst:2399 msgid "" "Represents the C :c:expr:`unsigned short` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: library/ctypes.rst:2409 +#: library/ctypes.rst:2405 msgid "" "Represents the C :c:expr:`void *` type. The value is represented as " "integer. The constructor accepts an optional integer initializer." msgstr "" -#: library/ctypes.rst:2415 +#: library/ctypes.rst:2411 msgid "" "Represents the C :c:type:`wchar_t` datatype, and interprets the value as a " "single character unicode string. The constructor accepts an optional string " "initializer, the length of the string must be exactly one character." msgstr "" -#: library/ctypes.rst:2422 +#: library/ctypes.rst:2418 msgid "" "Represents the C :c:expr:`wchar_t *` datatype, which must be a pointer to a " "zero-terminated wide character string. The constructor accepts an integer " "address, or a string." msgstr "" -#: library/ctypes.rst:2429 +#: library/ctypes.rst:2425 msgid "" "Represent the C :c:expr:`bool` datatype (more accurately, :c:expr:`_Bool` " "from C99). Its value can be ``True`` or ``False``, and the constructor " "accepts any object that has a truth value." msgstr "" -#: library/ctypes.rst:2436 +#: library/ctypes.rst:2432 msgid "" "Windows only: Represents a :c:type:`!HRESULT` value, which contains success " "or error information for a function or method call." msgstr "" -#: library/ctypes.rst:2442 +#: library/ctypes.rst:2438 msgid "" "Represents the C :c:expr:`PyObject *` datatype. Calling this without an " "argument creates a ``NULL`` :c:expr:`PyObject *` pointer." msgstr "" -#: library/ctypes.rst:2445 +#: library/ctypes.rst:2441 msgid "" "The :mod:`!ctypes.wintypes` module provides quite some other Windows " "specific data types, for example :c:type:`!HWND`, :c:type:`!WPARAM`, or :c:" @@ -2537,41 +2530,41 @@ msgid "" "are also defined." msgstr "" -#: library/ctypes.rst:2453 +#: library/ctypes.rst:2449 msgid "Structured data types" msgstr "" -#: library/ctypes.rst:2458 +#: library/ctypes.rst:2454 msgid "Abstract base class for unions in native byte order." msgstr "" -#: library/ctypes.rst:2463 +#: library/ctypes.rst:2459 msgid "Abstract base class for unions in *big endian* byte order." msgstr "" -#: library/ctypes.rst:2469 +#: library/ctypes.rst:2465 msgid "Abstract base class for unions in *little endian* byte order." msgstr "" -#: library/ctypes.rst:2475 +#: library/ctypes.rst:2471 msgid "Abstract base class for structures in *big endian* byte order." msgstr "" -#: library/ctypes.rst:2480 +#: library/ctypes.rst:2476 msgid "Abstract base class for structures in *little endian* byte order." msgstr "" -#: library/ctypes.rst:2482 +#: library/ctypes.rst:2478 msgid "" "Structures and unions with non-native byte order cannot contain pointer type " "fields, or any other data types containing pointer type fields." msgstr "" -#: library/ctypes.rst:2488 +#: library/ctypes.rst:2484 msgid "Abstract base class for structures in *native* byte order." msgstr "" -#: library/ctypes.rst:2490 +#: library/ctypes.rst:2486 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:" @@ -2579,34 +2572,34 @@ msgid "" "the fields by direct attribute accesses. These are the" msgstr "" -#: library/ctypes.rst:2498 +#: library/ctypes.rst:2494 msgid "" "A sequence defining the structure fields. The items must be 2-tuples or 3-" "tuples. The first item is the name of the field, the second item specifies " "the type of the field; it can be any ctypes data type." msgstr "" -#: library/ctypes.rst:2502 +#: library/ctypes.rst:2498 msgid "" "For integer type fields like :class:`c_int`, a third optional item can be " "given. It must be a small positive integer defining the bit width of the " "field." msgstr "" -#: library/ctypes.rst:2506 +#: library/ctypes.rst:2502 msgid "" "Field names must be unique within one structure or union. This is not " "checked, only one field can be accessed when names are repeated." msgstr "" -#: library/ctypes.rst:2509 +#: library/ctypes.rst:2505 msgid "" "It is possible to define the :attr:`_fields_` class variable *after* the " "class statement that defines the Structure subclass, this allows creating " "data types that directly or indirectly reference themselves::" msgstr "" -#: library/ctypes.rst:2519 +#: library/ctypes.rst:2515 msgid "" "The :attr:`_fields_` class variable must, however, be defined before the " "type is first used (an instance is created, :func:`sizeof` is called on it, " @@ -2614,14 +2607,14 @@ msgid "" "raise an AttributeError." msgstr "" -#: library/ctypes.rst:2524 +#: library/ctypes.rst:2520 msgid "" "It is possible to define sub-subclasses of structure types, they inherit the " "fields of the base class plus the :attr:`_fields_` defined in the sub-" "subclass, if any." msgstr "" -#: library/ctypes.rst:2531 +#: library/ctypes.rst:2527 msgid "" "An optional small integer that allows overriding the alignment of structure " "fields in the instance. :attr:`_pack_` must already be defined when :attr:" @@ -2629,14 +2622,14 @@ msgid "" "attribute to 0 is the same as not setting it at all." msgstr "" -#: library/ctypes.rst:2539 +#: library/ctypes.rst:2535 msgid "" "An optional sequence that lists the names of unnamed (anonymous) fields. :" "attr:`_anonymous_` must be already defined when :attr:`_fields_` is " "assigned, otherwise it will have no effect." msgstr "" -#: library/ctypes.rst:2543 +#: library/ctypes.rst:2539 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 " @@ -2644,11 +2637,11 @@ msgid "" "structure or union field." msgstr "" -#: library/ctypes.rst:2548 +#: library/ctypes.rst:2544 msgid "Here is an example type (Windows)::" msgstr "" -#: library/ctypes.rst:2561 +#: library/ctypes.rst:2557 msgid "" "The ``TYPEDESC`` structure describes a COM data type, the ``vt`` field " "specifies which one of the union fields is valid. Since the ``u`` field is " @@ -2658,7 +2651,7 @@ msgid "" "temporary union instance::" msgstr "" -#: library/ctypes.rst:2573 +#: library/ctypes.rst:2569 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:" @@ -2666,7 +2659,7 @@ msgid "" "of the base class." msgstr "" -#: library/ctypes.rst:2578 +#: library/ctypes.rst:2574 msgid "" "Structure and union constructors accept both positional and keyword " "arguments. Positional arguments are used to initialize member fields in the " @@ -2676,15 +2669,15 @@ msgid "" "names not present in :attr:`_fields_`." msgstr "" -#: library/ctypes.rst:2589 +#: library/ctypes.rst:2585 msgid "Arrays and pointers" msgstr "" -#: library/ctypes.rst:2593 +#: library/ctypes.rst:2589 msgid "Abstract base class for arrays." msgstr "" -#: library/ctypes.rst:2595 +#: library/ctypes.rst:2591 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 " @@ -2694,34 +2687,34 @@ msgid "" "an :class:`Array`." msgstr "" -#: library/ctypes.rst:2605 +#: library/ctypes.rst:2601 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`." msgstr "" -#: library/ctypes.rst:2612 +#: library/ctypes.rst:2608 msgid "Specifies the type of each element in the array." msgstr "" -#: library/ctypes.rst:2615 +#: library/ctypes.rst:2611 msgid "" "Array subclass constructors accept positional arguments, used to initialize " "the elements in order." msgstr "" -#: library/ctypes.rst:2621 +#: library/ctypes.rst:2617 msgid "Private, abstract base class for pointers." msgstr "" -#: library/ctypes.rst:2623 +#: library/ctypes.rst:2619 msgid "" "Concrete pointer types are created by calling :func:`POINTER` with the type " "that will be pointed to; this is done automatically by :func:`pointer`." msgstr "" -#: library/ctypes.rst:2627 +#: library/ctypes.rst:2623 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 :" @@ -2730,11 +2723,11 @@ msgid "" "probably crash with an access violation (if you're lucky)." msgstr "" -#: library/ctypes.rst:2637 +#: library/ctypes.rst:2633 msgid "Specifies the type pointed to." msgstr "" -#: library/ctypes.rst:2641 +#: library/ctypes.rst:2637 msgid "" "Returns the object to which to pointer points. Assigning to this attribute " "changes the pointer to point to the assigned object." diff --git a/library/datetime.po b/library/datetime.po index 513426831..72c27ad9a 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2023-11-26 17:49-0500\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -442,7 +442,7 @@ msgid "" "example::" msgstr "" -#: library/datetime.rst:546 library/datetime.rst:1690 library/datetime.rst:2292 +#: library/datetime.rst:546 library/datetime.rst:1696 library/datetime.rst:2298 msgid "Class attributes:" msgstr "" @@ -468,7 +468,7 @@ msgid "" "``-timedelta.max`` is not representable as a :class:`timedelta` object." msgstr "" -#: library/datetime.rst:564 library/datetime.rst:1710 +#: library/datetime.rst:564 library/datetime.rst:1716 msgid "Instance attributes (read-only):" msgstr "" @@ -656,7 +656,7 @@ msgid "" "constructor call with canonical attribute values." msgstr "" -#: library/datetime.rst:603 library/datetime.rst:2523 +#: library/datetime.rst:603 library/datetime.rst:2529 msgid "Notes:" msgstr "" @@ -715,7 +715,7 @@ msgid "" "and only if it isn't equal to ``timedelta(0)``." msgstr "" -#: library/datetime.rst:629 library/datetime.rst:1817 +#: library/datetime.rst:629 library/datetime.rst:1823 msgid "Instance methods:" msgstr "" @@ -853,7 +853,7 @@ msgstr "" msgid "Ordinal dates are not currently supported (``YYYY-OOO``)." msgstr "" -#: library/datetime.rst:1011 library/datetime.rst:1446 +#: library/datetime.rst:1011 library/datetime.rst:1452 msgid "Examples::" msgstr "" @@ -991,11 +991,11 @@ msgid "" "values by whichever keyword arguments are specified." msgstr "" -#: library/datetime.rst:1860 +#: library/datetime.rst:1866 msgid "Example::" msgstr "" -#: library/datetime.rst:1331 +#: library/datetime.rst:1337 msgid "" "Return a :class:`time.struct_time` such as returned by :func:`time." "localtime`." @@ -1005,7 +1005,7 @@ msgstr "" msgid "The hours, minutes and seconds are 0, and the DST flag is -1." msgstr "" -#: library/datetime.rst:1333 +#: library/datetime.rst:1339 msgid "``d.timetuple()`` is equivalent to::" msgstr "" @@ -1079,7 +1079,7 @@ msgstr "" msgid "Return a string representing the date::" msgstr "" -#: library/datetime.rst:1517 +#: library/datetime.rst:1523 msgid "``d.ctime()`` is equivalent to::" msgstr "" @@ -1159,27 +1159,27 @@ msgstr "" msgid "``1 <= day <= number of days in the given month and year``," msgstr "" -#: library/datetime.rst:1681 +#: library/datetime.rst:1687 msgid "``0 <= hour < 24``," msgstr "" -#: library/datetime.rst:1682 +#: library/datetime.rst:1688 msgid "``0 <= minute < 60``," msgstr "" -#: library/datetime.rst:1683 +#: library/datetime.rst:1689 msgid "``0 <= second < 60``," msgstr "" -#: library/datetime.rst:1684 +#: library/datetime.rst:1690 msgid "``0 <= microsecond < 1000000``," msgstr "" -#: library/datetime.rst:1685 +#: library/datetime.rst:1691 msgid "``fold in [0, 1]``." msgstr "" -#: library/datetime.rst:1252 library/datetime.rst:1827 +#: library/datetime.rst:1258 library/datetime.rst:1833 msgid "Added the *fold* parameter." msgstr "" @@ -1372,7 +1372,7 @@ msgid "" "ISO 8601 format, with the following exceptions:" msgstr "" -#: library/datetime.rst:1781 +#: library/datetime.rst:1787 msgid "Time zone offsets may have fractional seconds." msgstr "" @@ -1380,7 +1380,7 @@ msgstr "" msgid "The ``T`` separator may be replaced by any single unicode character." msgstr "" -#: library/datetime.rst:1786 +#: library/datetime.rst:1792 msgid "Fractional hours and minutes are not supported." msgstr "" @@ -1436,15 +1436,15 @@ msgid "" "objects, ``timedelta(microseconds=1)``." msgstr "" -#: library/datetime.rst:1714 +#: library/datetime.rst:1720 msgid "In ``range(24)``." msgstr "" -#: library/datetime.rst:1114 library/datetime.rst:1724 +#: library/datetime.rst:1114 library/datetime.rst:1730 msgid "In ``range(60)``." msgstr "" -#: library/datetime.rst:1729 +#: library/datetime.rst:1735 msgid "In ``range(1000000)``." msgstr "" @@ -1454,7 +1454,7 @@ msgid "" "constructor, or ``None`` if none was passed." msgstr "" -#: library/datetime.rst:1740 +#: library/datetime.rst:1746 msgid "" "In ``[0, 1]``. Used to disambiguate wall times during a repeated interval. " "(A repeated interval occurs when clocks are rolled back at the end of " @@ -1467,8 +1467,8 @@ msgstr "" msgid "``datetime2 = datetime1 + timedelta``" msgstr "" -#: library/datetime.rst:2350 library/datetime.rst:2367 -#: library/datetime.rst:2432 library/datetime.rst:2441 +#: library/datetime.rst:2356 library/datetime.rst:2373 +#: library/datetime.rst:2438 library/datetime.rst:2447 msgid "\\(1)" msgstr "" @@ -1476,7 +1476,7 @@ msgstr "" msgid "``datetime2 = datetime1 - timedelta``" msgstr "" -#: library/datetime.rst:2383 +#: library/datetime.rst:2389 msgid "\\(2)" msgstr "" @@ -1566,60 +1566,65 @@ msgstr "" #: library/datetime.rst:1196 msgid "" -"If both comparands are aware and have different :attr:`~.datetime.tzinfo` " -"attributes, the comparison acts as comparands were first converted to UTC " -"datetimes except that the implementation never overflows. :class:`!datetime` " -"instances in a repeated interval are never equal to :class:`!datetime` " -"instances in other time zone." +"If both comparands are aware, and have the same :attr:`!tzinfo` attribute, " +"the :attr:`!tzinfo` and :attr:`~.datetime.fold` attributes are ignored and " +"the base datetimes are compared. If both comparands are aware and have " +"different :attr:`~.datetime.tzinfo` attributes, the comparison acts as " +"comparands were first converted to UTC datetimes except that the " +"implementation never overflows. :class:`!datetime` instances in a repeated " +"interval are never equal to :class:`!datetime` instances in other time zone." msgstr "" -#: library/datetime.rst:1203 +#: library/datetime.rst:1206 msgid "" "*datetime1* is considered less than *datetime2* when *datetime1* precedes " "*datetime2* in time, taking into account the time zone." msgstr "" -#: library/datetime.rst:1206 +#: library/datetime.rst:1209 msgid "" "Order comparison between naive and aware :class:`.datetime` objects, as well " "as a :class:`!datetime` object and a :class:`!date` object that is not also " "a :class:`!datetime` instance, raises :exc:`TypeError`." msgstr "" -#: library/datetime.rst:1210 +#: library/datetime.rst:1213 msgid "" -"If both comparands are aware and have different :attr:`~.datetime.tzinfo` " -"attributes, the comparison acts as comparands were first converted to UTC " -"datetimes except that the implementation never overflows." +"If both comparands are aware, and have the same :attr:`!tzinfo` attribute, " +"the :attr:`!tzinfo` and :attr:`~.datetime.fold` attributes are ignored and " +"the base datetimes are compared. If both comparands are aware and have " +"different :attr:`~.datetime.tzinfo` attributes, the comparison acts as " +"comparands were first converted to UTC datetimes except that the " +"implementation never overflows." msgstr "" -#: library/datetime.rst:1214 +#: library/datetime.rst:1220 msgid "" "Equality comparisons between aware and naive :class:`.datetime` instances " "don't raise :exc:`TypeError`." msgstr "" -#: library/datetime.rst:1222 +#: library/datetime.rst:1228 msgid "Return :class:`date` object with same year, month and day." msgstr "" -#: library/datetime.rst:1227 +#: library/datetime.rst:1233 msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond and " "fold. :attr:`.tzinfo` is ``None``. See also method :meth:`timetz`." msgstr "" -#: library/datetime.rst:1239 +#: library/datetime.rst:1245 msgid "The fold value is copied to the returned :class:`.time` object." msgstr "" -#: library/datetime.rst:1236 +#: library/datetime.rst:1242 msgid "" "Return :class:`.time` object with same hour, minute, second, microsecond, " "fold, and tzinfo attributes. See also method :meth:`time`." msgstr "" -#: library/datetime.rst:1247 +#: library/datetime.rst:1253 msgid "" "Return a datetime with the same attributes, except for those attributes " "given new values by whichever keyword arguments are specified. Note that " @@ -1627,21 +1632,21 @@ msgid "" "datetime with no conversion of date and time data." msgstr "" -#: library/datetime.rst:1258 +#: library/datetime.rst:1264 msgid "" "Return a :class:`.datetime` object with new :attr:`.tzinfo` attribute *tz*, " "adjusting the date and time data so the result is the same UTC time as " "*self*, but in *tz*'s local time." msgstr "" -#: library/datetime.rst:1262 +#: library/datetime.rst:1268 msgid "" "If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and " "its :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If " "*self* is naive, it is presumed to represent time in the system timezone." msgstr "" -#: library/datetime.rst:1266 +#: library/datetime.rst:1272 msgid "" "If called without arguments (or with ``tz=None``) the system local timezone " "is assumed for the target timezone. The ``.tzinfo`` attribute of the " @@ -1649,7 +1654,7 @@ msgid "" "with the zone name and offset obtained from the OS." msgstr "" -#: library/datetime.rst:1271 +#: library/datetime.rst:1277 msgid "" "If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no " "adjustment of date or time data is performed. Else the result is local time " @@ -1658,7 +1663,7 @@ msgid "" "date and time data as ``dt - dt.utcoffset()``." msgstr "" -#: library/datetime.rst:1277 +#: library/datetime.rst:1283 msgid "" "If you merely want to attach a time zone object *tz* to a datetime *dt* " "without adjustment of date and time data, use ``dt.replace(tzinfo=tz)``. If " @@ -1666,54 +1671,54 @@ msgid "" "without conversion of date and time data, use ``dt.replace(tzinfo=None)``." msgstr "" -#: library/datetime.rst:1282 +#: library/datetime.rst:1288 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::" msgstr "" -#: library/datetime.rst:1294 +#: library/datetime.rst:1300 msgid "*tz* now can be omitted." msgstr "" -#: library/datetime.rst:1297 +#: library/datetime.rst:1303 msgid "" "The :meth:`astimezone` method can now be called on naive instances that are " "presumed to represent system local time." msgstr "" -#: library/datetime.rst:1304 +#: library/datetime.rst:1310 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." msgstr "" -#: library/datetime.rst:1900 library/datetime.rst:2252 -#: library/datetime.rst:2576 +#: library/datetime.rst:1906 library/datetime.rst:2258 +#: library/datetime.rst:2582 msgid "The UTC offset is not restricted to a whole number of minutes." msgstr "" -#: library/datetime.rst:1314 +#: library/datetime.rst:1320 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." msgstr "" -#: library/datetime.rst:1910 library/datetime.rst:2061 +#: library/datetime.rst:1916 library/datetime.rst:2067 msgid "The DST offset is not restricted to a whole number of minutes." msgstr "" -#: library/datetime.rst:1324 +#: library/datetime.rst:1330 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," msgstr "" -#: library/datetime.rst:1339 +#: library/datetime.rst:1345 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 :" @@ -1724,7 +1729,7 @@ msgid "" "set to ``0``." msgstr "" -#: library/datetime.rst:1350 +#: library/datetime.rst:1356 msgid "" "If :class:`.datetime` instance *d* is naive, this is the same as ``d." "timetuple()`` except that :attr:`~.time.struct_time.tm_isdst` is forced to 0 " @@ -1732,7 +1737,7 @@ msgid "" "time." msgstr "" -#: library/datetime.rst:1354 +#: library/datetime.rst:1360 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 " @@ -1741,7 +1746,7 @@ msgid "" "UTC adjustment spills over a year boundary." msgstr "" -#: library/datetime.rst:1363 +#: library/datetime.rst:1369 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 " @@ -1751,20 +1756,20 @@ msgid "" "meth:`.datetime.timetuple`." msgstr "" -#: library/datetime.rst:1372 +#: library/datetime.rst:1378 msgid "" "Return the proleptic Gregorian ordinal of the date. The same as ``self." "date().toordinal()``." msgstr "" -#: library/datetime.rst:1377 +#: library/datetime.rst:1383 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`." msgstr "" -#: library/datetime.rst:1381 +#: library/datetime.rst:1387 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 " @@ -1774,18 +1779,18 @@ msgid "" "future." msgstr "" -#: library/datetime.rst:1388 +#: library/datetime.rst:1394 msgid "" "For aware :class:`.datetime` instances, the return value is computed as::" msgstr "" -#: library/datetime.rst:1395 +#: library/datetime.rst:1401 msgid "" "The :meth:`timestamp` method uses the :attr:`.fold` attribute to " "disambiguate the times during a repeated interval." msgstr "" -#: library/datetime.rst:1401 +#: library/datetime.rst:1407 msgid "" "There is no method to obtain the POSIX timestamp directly from a naive :" "class:`.datetime` instance representing UTC time. If your application uses " @@ -1793,145 +1798,145 @@ msgid "" "the POSIX timestamp by supplying ``tzinfo=timezone.utc``::" msgstr "" -#: library/datetime.rst:1409 +#: library/datetime.rst:1415 msgid "or by calculating the timestamp directly::" msgstr "" -#: library/datetime.rst:1415 +#: library/datetime.rst:1421 msgid "" "Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " "The same as ``self.date().weekday()``. See also :meth:`isoweekday`." msgstr "" -#: library/datetime.rst:1421 +#: library/datetime.rst:1427 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`." msgstr "" -#: library/datetime.rst:1428 +#: library/datetime.rst:1434 msgid "" "Return a :term:`named tuple` with three components: ``year``, ``week`` and " "``weekday``. The same as ``self.date().isocalendar()``." msgstr "" -#: library/datetime.rst:1434 +#: library/datetime.rst:1440 msgid "Return a string representing the date and time in ISO 8601 format:" msgstr "" -#: library/datetime.rst:1436 +#: library/datetime.rst:1442 msgid "``YYYY-MM-DDTHH:MM:SS.ffffff``, if :attr:`microsecond` is not 0" msgstr "" -#: library/datetime.rst:1437 +#: library/datetime.rst:1443 msgid "``YYYY-MM-DDTHH:MM:SS``, if :attr:`microsecond` is 0" msgstr "" -#: library/datetime.rst:1439 +#: library/datetime.rst:1445 msgid "" "If :meth:`utcoffset` does not return ``None``, a string is appended, giving " "the UTC offset:" msgstr "" -#: library/datetime.rst:1442 +#: library/datetime.rst:1448 msgid "" "``YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` " "is not 0" msgstr "" -#: library/datetime.rst:1444 +#: library/datetime.rst:1450 msgid "" "``YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0" msgstr "" -#: library/datetime.rst:1454 +#: library/datetime.rst:1460 msgid "" "The optional argument *sep* (default ``'T'``) is a one-character separator, " "placed between the date and time portions of the result. For example::" msgstr "" -#: library/datetime.rst:1840 +#: library/datetime.rst:1846 msgid "" "The optional argument *timespec* specifies the number of additional " "components of the time to include (the default is ``'auto'``). It can be one " "of the following:" msgstr "" -#: library/datetime.rst:1844 +#: library/datetime.rst:1850 msgid "" "``'auto'``: Same as ``'seconds'`` if :attr:`microsecond` is 0, same as " "``'microseconds'`` otherwise." msgstr "" -#: library/datetime.rst:1846 +#: library/datetime.rst:1852 msgid "``'hours'``: Include the :attr:`hour` in the two-digit ``HH`` format." msgstr "" -#: library/datetime.rst:1847 +#: library/datetime.rst:1853 msgid "" "``'minutes'``: Include :attr:`hour` and :attr:`minute` in ``HH:MM`` format." msgstr "" -#: library/datetime.rst:1848 +#: library/datetime.rst:1854 msgid "" "``'seconds'``: Include :attr:`hour`, :attr:`minute`, and :attr:`second` in " "``HH:MM:SS`` format." msgstr "" -#: library/datetime.rst:1850 +#: library/datetime.rst:1856 msgid "" "``'milliseconds'``: Include full time, but truncate fractional second part " "to milliseconds. ``HH:MM:SS.sss`` format." msgstr "" -#: library/datetime.rst:1852 +#: library/datetime.rst:1858 msgid "``'microseconds'``: Include full time in ``HH:MM:SS.ffffff`` format." msgstr "" -#: library/datetime.rst:1856 +#: library/datetime.rst:1862 msgid "Excluded time components are truncated, not rounded." msgstr "" -#: library/datetime.rst:1486 +#: library/datetime.rst:1492 msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument::" msgstr "" -#: library/datetime.rst:1871 +#: library/datetime.rst:1877 msgid "Added the *timespec* parameter." msgstr "" -#: library/datetime.rst:1502 +#: library/datetime.rst:1508 msgid "" "For a :class:`.datetime` instance *d*, ``str(d)`` is equivalent to ``d." "isoformat(' ')``." msgstr "" -#: library/datetime.rst:1508 +#: library/datetime.rst:1514 msgid "Return a string representing the date and time::" msgstr "" -#: library/datetime.rst:1514 +#: library/datetime.rst:1520 msgid "" "The output string will *not* include time zone information, regardless of " "whether the input is aware or naive." msgstr "" -#: library/datetime.rst:1521 +#: library/datetime.rst:1527 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." msgstr "" -#: library/datetime.rst:1528 +#: library/datetime.rst:1534 msgid "" "Return a string representing the date and time, controlled by an explicit " "format string. See also :ref:`strftime-strptime-behavior` and :meth:" "`datetime.isoformat`." msgstr "" -#: library/datetime.rst:1535 +#: library/datetime.rst:1541 msgid "" "Same as :meth:`.datetime.strftime`. This makes it possible to specify a " "format string for a :class:`.datetime` object in :ref:`formatted string " @@ -1939,102 +1944,102 @@ msgid "" "`strftime-strptime-behavior` and :meth:`datetime.isoformat`." msgstr "" -#: library/datetime.rst:1542 +#: library/datetime.rst:1548 msgid "Examples of Usage: :class:`.datetime`" msgstr "" -#: library/datetime.rst:1544 +#: library/datetime.rst:1550 msgid "Examples of working with :class:`.datetime` objects:" msgstr "" -#: library/datetime.rst:1597 +#: library/datetime.rst:1603 msgid "" "The example below defines a :class:`tzinfo` subclass capturing time zone " "information for Kabul, Afghanistan, which used +4 UTC until 1945 and then " "+4:30 UTC thereafter::" msgstr "" -#: library/datetime.rst:1644 +#: library/datetime.rst:1650 msgid "Usage of ``KabulTz`` from above::" msgstr "" -#: library/datetime.rst:1670 +#: library/datetime.rst:1676 msgid ":class:`.time` Objects" msgstr "" -#: library/datetime.rst:1672 +#: library/datetime.rst:1678 msgid "" "A :class:`.time` object represents a (local) time of day, independent of any " "particular day, and subject to adjustment via a :class:`tzinfo` object." msgstr "" -#: library/datetime.rst:1677 +#: library/datetime.rst:1683 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 " "following ranges:" msgstr "" -#: library/datetime.rst:1687 +#: library/datetime.rst:1693 msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised. " "All default to ``0`` except *tzinfo*, which defaults to :const:`None`." msgstr "" -#: library/datetime.rst:1695 +#: library/datetime.rst:1701 msgid "The earliest representable :class:`.time`, ``time(0, 0, 0, 0)``." msgstr "" -#: library/datetime.rst:1700 +#: library/datetime.rst:1706 msgid "The latest representable :class:`.time`, ``time(23, 59, 59, 999999)``." msgstr "" -#: library/datetime.rst:1705 +#: library/datetime.rst:1711 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." msgstr "" -#: library/datetime.rst:1734 +#: library/datetime.rst:1740 msgid "" "The object passed as the tzinfo argument to the :class:`.time` constructor, " "or ``None`` if none was passed." msgstr "" -#: library/datetime.rst:1748 +#: library/datetime.rst:1754 msgid "" ":class:`.time` objects support equality and order comparisons, where *a* is " "considered less than *b* when *a* precedes *b* in time." msgstr "" -#: library/datetime.rst:1751 +#: library/datetime.rst:1757 msgid "" "Naive and aware :class:`!time` objects are never equal. Order comparison " "between naive and aware :class:`!time` objects raises :exc:`TypeError`." msgstr "" -#: library/datetime.rst:1755 +#: library/datetime.rst:1761 msgid "" "If both comparands are aware, and have the same :attr:`~.time.tzinfo` " -"attribute, the common :attr:`!tzinfo` attribute is ignored and the base " -"times are compared. If both comparands are aware and have different :attr:`!" -"tzinfo` attributes, the comparands are first adjusted by subtracting their " -"UTC offsets (obtained from ``self.utcoffset()``)." +"attribute, the :attr:`!tzinfo` and :attr:`!fold` attributes are ignored and " +"the base times are compared. If both comparands are aware and have " +"different :attr:`!tzinfo` attributes, the comparands are first adjusted by " +"subtracting their UTC offsets (obtained from ``self.utcoffset()``)." msgstr "" -#: library/datetime.rst:1761 +#: library/datetime.rst:1767 msgid "" "Equality comparisons between aware and naive :class:`.time` instances don't " "raise :exc:`TypeError`." msgstr "" -#: library/datetime.rst:1765 +#: library/datetime.rst:1771 msgid "" "In Boolean contexts, a :class:`.time` object is always considered to be true." msgstr "" -#: library/datetime.rst:1767 +#: library/datetime.rst:1773 msgid "" "Before Python 3.5, a :class:`.time` object was considered to be false if it " "represented midnight in UTC. This behavior was considered obscure and error-" @@ -2042,39 +2047,39 @@ msgid "" "details." msgstr "" -#: library/datetime.rst:1774 +#: library/datetime.rst:1780 msgid "Other constructor:" msgstr "" -#: library/datetime.rst:1778 +#: library/datetime.rst:1784 msgid "" "Return a :class:`.time` corresponding to a *time_string* in any valid ISO " "8601 format, with the following exceptions:" msgstr "" -#: library/datetime.rst:1782 +#: library/datetime.rst:1788 msgid "" "The leading ``T``, normally required in cases where there may be ambiguity " "between a date and a time, is not required." msgstr "" -#: library/datetime.rst:1784 +#: library/datetime.rst:1790 msgid "" "Fractional seconds may have any number of digits (anything beyond 6 will be " "truncated)." msgstr "" -#: library/datetime.rst:1788 +#: library/datetime.rst:1794 msgid "Examples:" msgstr "" -#: library/datetime.rst:1812 +#: library/datetime.rst:1818 msgid "" "Previously, this method only supported formats that could be emitted by :" "meth:`time.isoformat()`." msgstr "" -#: library/datetime.rst:1822 +#: library/datetime.rst:1828 msgid "" "Return a :class:`.time` with the same value, except for those attributes " "given new values by whichever keyword arguments are specified. Note that " @@ -2082,46 +2087,46 @@ msgid "" "aware :class:`.time`, without conversion of the time data." msgstr "" -#: library/datetime.rst:1833 +#: library/datetime.rst:1839 msgid "Return a string representing the time in ISO 8601 format, one of:" msgstr "" -#: library/datetime.rst:1835 +#: library/datetime.rst:1841 msgid "``HH:MM:SS.ffffff``, if :attr:`microsecond` is not 0" msgstr "" -#: library/datetime.rst:1836 +#: library/datetime.rst:1842 msgid "``HH:MM:SS``, if :attr:`microsecond` is 0" msgstr "" -#: library/datetime.rst:1837 +#: library/datetime.rst:1843 msgid "" "``HH:MM:SS.ffffff+HH:MM[:SS[.ffffff]]``, if :meth:`utcoffset` does not " "return ``None``" msgstr "" -#: library/datetime.rst:1838 +#: library/datetime.rst:1844 msgid "" "``HH:MM:SS+HH:MM[:SS[.ffffff]]``, if :attr:`microsecond` is 0 and :meth:" "`utcoffset` does not return ``None``" msgstr "" -#: library/datetime.rst:1858 +#: library/datetime.rst:1864 msgid ":exc:`ValueError` will be raised on an invalid *timespec* argument." msgstr "" -#: library/datetime.rst:1877 +#: library/datetime.rst:1883 msgid "For a time *t*, ``str(t)`` is equivalent to ``t.isoformat()``." msgstr "" -#: library/datetime.rst:1882 +#: library/datetime.rst:1888 msgid "" "Return a string representing the time, controlled by an explicit format " "string. See also :ref:`strftime-strptime-behavior` and :meth:`time." "isoformat`." msgstr "" -#: library/datetime.rst:1888 +#: library/datetime.rst:1894 msgid "" "Same as :meth:`.time.strftime`. This makes it possible to specify a format " "string for a :class:`.time` object in :ref:`formatted string literals ` file there are some examples of :class:`tzinfo` classes:" msgstr "" -#: library/datetime.rst:2144 +#: library/datetime.rst:2150 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 " @@ -2389,7 +2394,7 @@ msgid "" "ends the minute after 1:59 (EDT) on the first Sunday in November::" msgstr "" -#: library/datetime.rst:2158 +#: library/datetime.rst:2164 msgid "" "When DST starts (the \"start\" line), the local wall clock leaps from 1:59 " "to 3:00. A wall time of the form 2:MM doesn't really make sense on that day, " @@ -2398,7 +2403,7 @@ msgid "" "get::" msgstr "" -#: library/datetime.rst:2177 +#: library/datetime.rst:2183 msgid "" "When DST ends (the \"end\" line), there's a potentially worse problem: " "there's an hour that can't be spelled unambiguously in local wall time: the " @@ -2413,13 +2418,13 @@ msgid "" "Fall back transition of 2016, we get::" msgstr "" -#: library/datetime.rst:2199 +#: library/datetime.rst:2205 msgid "" "Note that the :class:`.datetime` instances that differ only by the value of " "the :attr:`~.datetime.fold` attribute are considered equal in comparisons." msgstr "" -#: library/datetime.rst:2202 +#: library/datetime.rst:2208 msgid "" "Applications that can't bear wall-time ambiguities should explicitly check " "the value of the :attr:`~.datetime.fold` attribute or avoid using hybrid :" @@ -2429,28 +2434,28 @@ msgid "" "offset -4 hours))." msgstr "" -#: library/datetime.rst:2216 +#: library/datetime.rst:2222 msgid ":mod:`zoneinfo`" msgstr "" -#: library/datetime.rst:2211 +#: library/datetime.rst:2217 msgid "" "The :mod:`!datetime` module has a basic :class:`timezone` class (for " "handling arbitrary fixed offsets from UTC) and its :attr:`timezone.utc` " "attribute (a UTC timezone instance)." msgstr "" -#: library/datetime.rst:2215 +#: library/datetime.rst:2221 msgid "" "``zoneinfo`` brings the *IANA timezone database* (also known as the Olson " "database) to Python, and its usage is recommended." msgstr "" -#: library/datetime.rst:2222 +#: library/datetime.rst:2228 msgid "`IANA timezone database `_" msgstr "" -#: library/datetime.rst:2219 +#: library/datetime.rst:2225 msgid "" "The Time Zone Database (often called tz, tzdata or zoneinfo) contains code " "and data that represent the history of local time for many representative " @@ -2459,24 +2464,24 @@ msgid "" "saving rules." msgstr "" -#: library/datetime.rst:2229 +#: library/datetime.rst:2235 msgid ":class:`timezone` Objects" msgstr "" -#: library/datetime.rst:2231 +#: library/datetime.rst:2237 msgid "" "The :class:`timezone` class is a subclass of :class:`tzinfo`, each instance " "of which represents a timezone defined by a fixed offset from UTC." msgstr "" -#: library/datetime.rst:2235 +#: library/datetime.rst:2241 msgid "" "Objects of this class cannot be used to represent timezone information in " "the locations where different offsets are used in different days of the year " "or where historical changes have been made to civil time." msgstr "" -#: library/datetime.rst:2242 +#: library/datetime.rst:2248 msgid "" "The *offset* argument must be specified as a :class:`timedelta` object " "representing the difference between the local time and UTC. It must be " @@ -2484,25 +2489,25 @@ msgid "" "otherwise :exc:`ValueError` is raised." msgstr "" -#: library/datetime.rst:2247 +#: library/datetime.rst:2253 msgid "" "The *name* argument is optional. If specified it must be a string that will " "be used as the value returned by the :meth:`datetime.tzname` method." msgstr "" -#: library/datetime.rst:2269 +#: library/datetime.rst:2275 msgid "" "Return the fixed value specified when the :class:`timezone` instance is " "constructed." msgstr "" -#: library/datetime.rst:2261 +#: library/datetime.rst:2267 msgid "" "The *dt* argument is ignored. The return value is a :class:`timedelta` " "instance equal to the difference between the local time and UTC." msgstr "" -#: library/datetime.rst:2272 +#: library/datetime.rst:2278 msgid "" "If *name* is not provided in the constructor, the name returned by " "``tzname(dt)`` is generated from the value of the ``offset`` as follows. If " @@ -2511,145 +2516,145 @@ msgid "" "are two digits of ``offset.hours`` and ``offset.minutes`` respectively." msgstr "" -#: library/datetime.rst:2278 +#: library/datetime.rst:2284 msgid "" "Name generated from ``offset=timedelta(0)`` is now plain ``'UTC'``, not " "``'UTC+00:00'``." msgstr "" -#: library/datetime.rst:2285 +#: library/datetime.rst:2291 msgid "Always returns ``None``." msgstr "" -#: library/datetime.rst:2289 +#: library/datetime.rst:2295 msgid "" "Return ``dt + offset``. The *dt* argument must be an aware :class:`." "datetime` instance, with ``tzinfo`` set to ``self``." msgstr "" -#: library/datetime.rst:2296 +#: library/datetime.rst:2302 msgid "The UTC timezone, ``timezone(timedelta(0))``." msgstr "" -#: library/datetime.rst:2305 +#: library/datetime.rst:2311 msgid ":meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Behavior" msgstr "" -#: library/datetime.rst:2307 +#: library/datetime.rst:2313 msgid "" ":class:`date`, :class:`.datetime`, and :class:`.time` objects all support a " "``strftime(format)`` method, to create a string representing the time under " "the control of an explicit format string." msgstr "" -#: library/datetime.rst:2311 +#: library/datetime.rst:2317 msgid "" "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 "" -#: library/datetime.rst:2315 +#: library/datetime.rst:2321 msgid "" "The table below provides a high-level comparison of :meth:`~.datetime." "strftime` versus :meth:`~.datetime.strptime`:" msgstr "" -#: library/datetime.rst:2319 +#: library/datetime.rst:2325 msgid "``strftime``" msgstr "" -#: library/datetime.rst:2319 +#: library/datetime.rst:2325 msgid "``strptime``" msgstr "" -#: library/datetime.rst:2321 +#: library/datetime.rst:2327 msgid "Usage" msgstr "" -#: library/datetime.rst:2321 +#: library/datetime.rst:2327 msgid "Convert object to a string according to a given format" msgstr "" -#: library/datetime.rst:2321 +#: library/datetime.rst:2327 msgid "" "Parse a string into a :class:`.datetime` object given a corresponding format" msgstr "" -#: library/datetime.rst:2323 +#: library/datetime.rst:2329 msgid "Type of method" msgstr "" -#: library/datetime.rst:2323 +#: library/datetime.rst:2329 msgid "Instance method" msgstr "" -#: library/datetime.rst:2323 +#: library/datetime.rst:2329 msgid "Class method" msgstr "" -#: library/datetime.rst:2325 +#: library/datetime.rst:2331 msgid "Method of" msgstr "" -#: library/datetime.rst:2325 +#: library/datetime.rst:2331 msgid ":class:`date`; :class:`.datetime`; :class:`.time`" msgstr "" -#: library/datetime.rst:2325 +#: library/datetime.rst:2331 msgid ":class:`.datetime`" msgstr "" -#: library/datetime.rst:2327 +#: library/datetime.rst:2333 msgid "Signature" msgstr "" -#: library/datetime.rst:2327 +#: library/datetime.rst:2333 msgid "``strftime(format)``" msgstr "" -#: library/datetime.rst:2327 +#: library/datetime.rst:2333 msgid "``strptime(date_string, format)``" msgstr "" -#: library/datetime.rst:2334 +#: library/datetime.rst:2340 msgid "" ":meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Format Codes" msgstr "" -#: library/datetime.rst:2336 +#: library/datetime.rst:2342 msgid "" "These methods accept format codes that can be used to parse and format " "dates::" msgstr "" -#: library/datetime.rst:2344 +#: library/datetime.rst:2350 msgid "" "The following is a list of all the format codes that the 1989 C standard " "requires, and these work on all platforms with a standard C implementation." msgstr "" -#: library/datetime.rst:2451 +#: library/datetime.rst:2457 msgid "Directive" msgstr "" -#: library/datetime.rst:2451 +#: library/datetime.rst:2457 msgid "Meaning" msgstr "" -#: library/datetime.rst:2451 +#: library/datetime.rst:2457 msgid "Example" msgstr "" -#: library/datetime.rst:2451 +#: library/datetime.rst:2457 msgid "Notes" msgstr "" -#: library/datetime.rst:2350 +#: library/datetime.rst:2356 msgid "``%a``" msgstr "" -#: library/datetime.rst:2350 +#: library/datetime.rst:2356 msgid "Weekday as locale's abbreviated name." msgstr "" @@ -2661,11 +2666,11 @@ msgstr "" msgid "So, Mo, ..., Sa (de_DE)" msgstr "" -#: library/datetime.rst:2355 +#: library/datetime.rst:2361 msgid "``%A``" msgstr "" -#: library/datetime.rst:2355 +#: library/datetime.rst:2361 msgid "Weekday as locale's full name." msgstr "" @@ -2677,40 +2682,40 @@ msgstr "" msgid "Sonntag, Montag, ..., Samstag (de_DE)" msgstr "" -#: library/datetime.rst:2360 +#: library/datetime.rst:2366 msgid "``%w``" msgstr "" -#: library/datetime.rst:2360 +#: library/datetime.rst:2366 msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." msgstr "" -#: library/datetime.rst:2360 +#: library/datetime.rst:2366 msgid "0, 1, ..., 6" msgstr "" -#: library/datetime.rst:2364 +#: library/datetime.rst:2370 msgid "``%d``" msgstr "" -#: library/datetime.rst:2364 +#: library/datetime.rst:2370 msgid "Day of the month as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2364 +#: library/datetime.rst:2370 msgid "01, 02, ..., 31" msgstr "" -#: library/datetime.rst:2377 library/datetime.rst:2386 -#: library/datetime.rst:2395 library/datetime.rst:2413 +#: library/datetime.rst:2383 library/datetime.rst:2392 +#: library/datetime.rst:2401 library/datetime.rst:2419 msgid "\\(9)" msgstr "" -#: library/datetime.rst:2367 +#: library/datetime.rst:2373 msgid "``%b``" msgstr "" -#: library/datetime.rst:2367 +#: library/datetime.rst:2373 msgid "Month as locale's abbreviated name." msgstr "" @@ -2722,11 +2727,11 @@ msgstr "" msgid "Jan, Feb, ..., Dez (de_DE)" msgstr "" -#: library/datetime.rst:2372 +#: library/datetime.rst:2378 msgid "``%B``" msgstr "" -#: library/datetime.rst:2372 +#: library/datetime.rst:2378 msgid "Month as locale's full name." msgstr "" @@ -2738,67 +2743,67 @@ msgstr "" msgid "Januar, Februar, ..., Dezember (de_DE)" msgstr "" -#: library/datetime.rst:2377 +#: library/datetime.rst:2383 msgid "``%m``" msgstr "" -#: library/datetime.rst:2377 +#: library/datetime.rst:2383 msgid "Month as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2389 +#: library/datetime.rst:2395 msgid "01, 02, ..., 12" msgstr "" -#: library/datetime.rst:2380 +#: library/datetime.rst:2386 msgid "``%y``" msgstr "" -#: library/datetime.rst:2380 +#: library/datetime.rst:2386 msgid "Year without century as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2380 +#: library/datetime.rst:2386 msgid "00, 01, ..., 99" msgstr "" -#: library/datetime.rst:2383 +#: library/datetime.rst:2389 msgid "``%Y``" msgstr "" -#: library/datetime.rst:2383 +#: library/datetime.rst:2389 msgid "Year with century as a decimal number." msgstr "" -#: library/datetime.rst:2453 +#: library/datetime.rst:2459 msgid "0001, 0002, ..., 2013, 2014, ..., 9998, 9999" msgstr "" -#: library/datetime.rst:2386 +#: library/datetime.rst:2392 msgid "``%H``" msgstr "" -#: library/datetime.rst:2386 +#: library/datetime.rst:2392 msgid "Hour (24-hour clock) as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2386 +#: library/datetime.rst:2392 msgid "00, 01, ..., 23" msgstr "" -#: library/datetime.rst:2389 +#: library/datetime.rst:2395 msgid "``%I``" msgstr "" -#: library/datetime.rst:2389 +#: library/datetime.rst:2395 msgid "Hour (12-hour clock) as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2392 +#: library/datetime.rst:2398 msgid "``%p``" msgstr "" -#: library/datetime.rst:2392 +#: library/datetime.rst:2398 msgid "Locale's equivalent of either AM or PM." msgstr "" @@ -2810,127 +2815,127 @@ msgstr "" msgid "am, pm (de_DE)" msgstr "" -#: library/datetime.rst:2392 +#: library/datetime.rst:2398 msgid "\\(1), \\(3)" msgstr "" -#: library/datetime.rst:2395 +#: library/datetime.rst:2401 msgid "``%M``" msgstr "" -#: library/datetime.rst:2395 +#: library/datetime.rst:2401 msgid "Minute as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2398 +#: library/datetime.rst:2404 msgid "00, 01, ..., 59" msgstr "" -#: library/datetime.rst:2398 +#: library/datetime.rst:2404 msgid "``%S``" msgstr "" -#: library/datetime.rst:2398 +#: library/datetime.rst:2404 msgid "Second as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2398 +#: library/datetime.rst:2404 msgid "\\(4), \\(9)" msgstr "" -#: library/datetime.rst:2401 +#: library/datetime.rst:2407 msgid "``%f``" msgstr "" -#: library/datetime.rst:2401 +#: library/datetime.rst:2407 msgid "Microsecond as a decimal number, zero-padded to 6 digits." msgstr "" -#: library/datetime.rst:2401 +#: library/datetime.rst:2407 msgid "000000, 000001, ..., 999999" msgstr "" -#: library/datetime.rst:2401 +#: library/datetime.rst:2407 msgid "\\(5)" msgstr "" -#: library/datetime.rst:2574 +#: library/datetime.rst:2580 msgid "``%z``" msgstr "" -#: library/datetime.rst:2405 +#: library/datetime.rst:2411 msgid "" "UTC offset in the form ``±HHMM[SS[.ffffff]]`` (empty string if the object is " "naive)." msgstr "" -#: library/datetime.rst:2405 +#: library/datetime.rst:2411 msgid "(empty), +0000, -0400, +1030, +063415, -030712.345216" msgstr "" -#: library/datetime.rst:2410 library/datetime.rst:2467 +#: library/datetime.rst:2416 library/datetime.rst:2473 msgid "\\(6)" msgstr "" -#: library/datetime.rst:2602 +#: library/datetime.rst:2608 msgid "``%Z``" msgstr "" -#: library/datetime.rst:2410 +#: library/datetime.rst:2416 msgid "Time zone name (empty string if the object is naive)." msgstr "" -#: library/datetime.rst:2410 +#: library/datetime.rst:2416 msgid "(empty), UTC, GMT" msgstr "" -#: library/datetime.rst:2413 +#: library/datetime.rst:2419 msgid "``%j``" msgstr "" -#: library/datetime.rst:2413 +#: library/datetime.rst:2419 msgid "Day of the year as a zero-padded decimal number." msgstr "" -#: library/datetime.rst:2413 +#: library/datetime.rst:2419 msgid "001, 002, ..., 366" msgstr "" -#: library/datetime.rst:2416 +#: library/datetime.rst:2422 msgid "``%U``" msgstr "" -#: library/datetime.rst:2416 +#: library/datetime.rst:2422 msgid "" "Week number of the year (Sunday as the first day of the week) as a zero-" "padded decimal number. All days in a new year preceding the first Sunday are " "considered to be in week 0." msgstr "" -#: library/datetime.rst:2424 +#: library/datetime.rst:2430 msgid "00, 01, ..., 53" msgstr "" -#: library/datetime.rst:2424 +#: library/datetime.rst:2430 msgid "\\(7), \\(9)" msgstr "" -#: library/datetime.rst:2424 +#: library/datetime.rst:2430 msgid "``%W``" msgstr "" -#: library/datetime.rst:2424 +#: library/datetime.rst:2430 msgid "" "Week number of the year (Monday as the first day of the week) as a zero-" "padded decimal number. All days in a new year preceding the first Monday are " "considered to be in week 0." msgstr "" -#: library/datetime.rst:2432 +#: library/datetime.rst:2438 msgid "``%c``" msgstr "" -#: library/datetime.rst:2432 +#: library/datetime.rst:2438 msgid "Locale's appropriate date and time representation." msgstr "" @@ -2942,11 +2947,11 @@ msgstr "" msgid "Di 16 Aug 21:30:00 1988 (de_DE)" msgstr "" -#: library/datetime.rst:2437 +#: library/datetime.rst:2443 msgid "``%x``" msgstr "" -#: library/datetime.rst:2437 +#: library/datetime.rst:2443 msgid "Locale's appropriate date representation." msgstr "" @@ -2962,11 +2967,11 @@ msgstr "" msgid "16.08.1988 (de_DE)" msgstr "" -#: library/datetime.rst:2441 +#: library/datetime.rst:2447 msgid "``%X``" msgstr "" -#: library/datetime.rst:2441 +#: library/datetime.rst:2447 msgid "Locale's appropriate time representation." msgstr "" @@ -2978,83 +2983,83 @@ msgstr "" msgid "21:30:00 (de_DE)" msgstr "" -#: library/datetime.rst:2444 +#: library/datetime.rst:2450 msgid "``%%``" msgstr "" -#: library/datetime.rst:2444 +#: library/datetime.rst:2450 msgid "A literal ``'%'`` character." msgstr "" -#: library/datetime.rst:2444 +#: library/datetime.rst:2450 msgid "%" msgstr "" -#: library/datetime.rst:2447 +#: library/datetime.rst:2453 msgid "" "Several additional directives not required by the C89 standard are included " "for convenience. These parameters all correspond to ISO 8601 date values." msgstr "" -#: library/datetime.rst:2453 +#: library/datetime.rst:2459 msgid "``%G``" msgstr "" -#: library/datetime.rst:2453 +#: library/datetime.rst:2459 msgid "" "ISO 8601 year with century representing the year that contains the greater " "part of the ISO week (``%V``)." msgstr "" -#: library/datetime.rst:2453 +#: library/datetime.rst:2459 msgid "\\(8)" msgstr "" -#: library/datetime.rst:2458 +#: library/datetime.rst:2464 msgid "``%u``" msgstr "" -#: library/datetime.rst:2458 +#: library/datetime.rst:2464 msgid "ISO 8601 weekday as a decimal number where 1 is Monday." msgstr "" -#: library/datetime.rst:2458 +#: library/datetime.rst:2464 msgid "1, 2, ..., 7" msgstr "" -#: library/datetime.rst:2461 +#: library/datetime.rst:2467 msgid "``%V``" msgstr "" -#: library/datetime.rst:2461 +#: library/datetime.rst:2467 msgid "" "ISO 8601 week as a decimal number with Monday as the first day of the week. " "Week 01 is the week containing Jan 4." msgstr "" -#: library/datetime.rst:2461 +#: library/datetime.rst:2467 msgid "01, 02, ..., 53" msgstr "" -#: library/datetime.rst:2461 +#: library/datetime.rst:2467 msgid "\\(8), \\(9)" msgstr "" -#: library/datetime.rst:2588 +#: library/datetime.rst:2594 msgid "``%:z``" msgstr "" -#: library/datetime.rst:2467 +#: library/datetime.rst:2473 msgid "" "UTC offset in the form ``±HH:MM[:SS[.ffffff]]`` (empty string if the object " "is naive)." msgstr "" -#: library/datetime.rst:2467 +#: library/datetime.rst:2473 msgid "(empty), +00:00, -04:00, +10:30, +06:34:15, -03:07:12.345216" msgstr "" -#: library/datetime.rst:2473 +#: library/datetime.rst:2479 msgid "" "These may not be available on all platforms when used with the :meth:`~." "datetime.strftime` method. The ISO 8601 year and ISO 8601 week directives " @@ -3063,7 +3068,7 @@ msgid "" "directives will raise a :exc:`ValueError`." msgstr "" -#: library/datetime.rst:2478 +#: library/datetime.rst:2484 msgid "" "The full set of format codes supported varies across platforms, because " "Python calls the platform C library's :c:func:`strftime` function, and " @@ -3073,44 +3078,44 @@ msgid "" "unsupported format specifiers." msgstr "" -#: library/datetime.rst:2484 +#: library/datetime.rst:2490 msgid "``%G``, ``%u`` and ``%V`` were added." msgstr "" -#: library/datetime.rst:2487 +#: library/datetime.rst:2493 msgid "``%:z`` was added." msgstr "" -#: library/datetime.rst:2491 +#: library/datetime.rst:2497 msgid "Technical Detail" msgstr "" -#: library/datetime.rst:2493 +#: library/datetime.rst:2499 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:`~date.timetuple` method." msgstr "" -#: library/datetime.rst:2497 +#: library/datetime.rst:2503 msgid "" "For the :meth:`.datetime.strptime` class method, the default value is " "``1900-01-01T00:00:00.000``: any components not specified in the format " "string will be pulled from the default value. [#]_" msgstr "" -#: library/datetime.rst:2501 +#: library/datetime.rst:2507 msgid "Using ``datetime.strptime(date_string, format)`` is equivalent to::" msgstr "" -#: library/datetime.rst:2505 +#: library/datetime.rst:2511 msgid "" "except when the format includes sub-second components or timezone offset " "information, which are supported in ``datetime.strptime`` but are discarded " "by ``time.strptime``." msgstr "" -#: library/datetime.rst:2509 +#: library/datetime.rst:2515 msgid "" "For :class:`.time` objects, the format codes for year, month, and day should " "not be used, as :class:`!time` objects have no such values. If they're used " @@ -3118,14 +3123,14 @@ msgid "" "day." msgstr "" -#: library/datetime.rst:2513 +#: library/datetime.rst:2519 msgid "" "For :class:`date` objects, the format codes for hours, minutes, seconds, and " "microseconds should not be used, as :class:`date` objects have no such " "values. If they're used anyway, ``0`` is substituted for them." msgstr "" -#: library/datetime.rst:2517 +#: library/datetime.rst:2523 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 " @@ -3134,7 +3139,7 @@ msgid "" "`UnicodeError` or return an empty string instead." msgstr "" -#: library/datetime.rst:2526 +#: library/datetime.rst:2532 msgid "" "Because the format depends on the current locale, care should be taken when " "making assumptions about the output value. Field orderings will vary (for " @@ -3142,38 +3147,38 @@ msgid "" "contain non-ASCII characters." msgstr "" -#: library/datetime.rst:2532 +#: library/datetime.rst:2538 msgid "" "The :meth:`~.datetime.strptime` method can parse years in the full [1, 9999] " "range, but years < 1000 must be zero-filled to 4-digit width." msgstr "" -#: library/datetime.rst:2535 +#: library/datetime.rst:2541 msgid "" "In previous versions, :meth:`~.datetime.strftime` method was restricted to " "years >= 1900." msgstr "" -#: library/datetime.rst:2539 +#: library/datetime.rst:2545 msgid "" "In version 3.2, :meth:`~.datetime.strftime` method was restricted to years " ">= 1000." msgstr "" -#: library/datetime.rst:2544 +#: library/datetime.rst:2550 msgid "" "When used with the :meth:`~.datetime.strptime` method, the ``%p`` directive " "only affects the output hour field if the ``%I`` directive is used to parse " "the hour." msgstr "" -#: library/datetime.rst:2548 +#: library/datetime.rst:2554 msgid "" "Unlike the :mod:`time` module, the :mod:`!datetime` module does not support " "leap seconds." msgstr "" -#: library/datetime.rst:2552 +#: library/datetime.rst:2558 msgid "" "When used with the :meth:`~.datetime.strptime` method, the ``%f`` directive " "accepts from one to six digits and zero pads on the right. ``%f`` is an " @@ -3181,17 +3186,17 @@ msgid "" "separately in datetime objects, and therefore always available)." msgstr "" -#: library/datetime.rst:2559 +#: library/datetime.rst:2565 msgid "" "For a naive object, the ``%z``, ``%:z`` and ``%Z`` format codes are replaced " "by empty strings." msgstr "" -#: library/datetime.rst:2562 +#: library/datetime.rst:2568 msgid "For an aware object:" msgstr "" -#: library/datetime.rst:2565 +#: library/datetime.rst:2571 msgid "" ":meth:`~.datetime.utcoffset` is transformed into a string of the form " "``±HHMM[SS[.ffffff]]``, where ``HH`` is a 2-digit string giving the number " @@ -3205,7 +3210,7 @@ msgid "" "replaced with the string ``'-0330'``." msgstr "" -#: library/datetime.rst:2579 +#: library/datetime.rst:2585 msgid "" "When the ``%z`` directive is provided to the :meth:`~.datetime.strptime` " "method, the UTC offsets can have a colon as a separator between hours, " @@ -3214,53 +3219,53 @@ msgid "" "``'+00:00'``." msgstr "" -#: library/datetime.rst:2587 +#: library/datetime.rst:2593 msgid "" "Behaves exactly as ``%z``, but has a colon separator added between hours, " "minutes and seconds." msgstr "" -#: library/datetime.rst:2591 +#: library/datetime.rst:2597 msgid "" "In :meth:`~.datetime.strftime`, ``%Z`` is replaced by an empty string if :" "meth:`~.datetime.tzname` returns ``None``; otherwise ``%Z`` is replaced by " "the returned value, which must be a string." msgstr "" -#: library/datetime.rst:2595 +#: library/datetime.rst:2601 msgid ":meth:`~.datetime.strptime` only accepts certain values for ``%Z``:" msgstr "" -#: library/datetime.rst:2597 +#: library/datetime.rst:2603 msgid "any value in ``time.tzname`` for your machine's locale" msgstr "" -#: library/datetime.rst:2598 +#: library/datetime.rst:2604 msgid "the hard-coded values ``UTC`` and ``GMT``" msgstr "" -#: library/datetime.rst:2600 +#: library/datetime.rst:2606 msgid "" "So someone living in Japan may have ``JST``, ``UTC``, and ``GMT`` as valid " "values, but probably not ``EST``. It will raise ``ValueError`` for invalid " "values." msgstr "" -#: library/datetime.rst:2604 +#: library/datetime.rst:2610 msgid "" "When the ``%z`` directive is provided to the :meth:`~.datetime.strptime` " "method, an aware :class:`.datetime` object will be produced. The ``tzinfo`` " "of the result will be set to a :class:`timezone` instance." msgstr "" -#: library/datetime.rst:2610 +#: library/datetime.rst:2616 msgid "" "When used with the :meth:`~.datetime.strptime` method, ``%U`` and ``%W`` are " "only used in calculations when the day of the week and the calendar year " "(``%Y``) are specified." msgstr "" -#: library/datetime.rst:2615 +#: library/datetime.rst:2621 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:`~." @@ -3268,7 +3273,7 @@ msgid "" "interchangeable." msgstr "" -#: library/datetime.rst:2621 +#: library/datetime.rst:2627 msgid "" "When used with the :meth:`~.datetime.strptime` method, the leading zero is " "optional for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, " @@ -3276,15 +3281,15 @@ msgid "" "zero." msgstr "" -#: library/datetime.rst:2626 +#: library/datetime.rst:2632 msgid "Footnotes" msgstr "" -#: library/datetime.rst:2627 +#: library/datetime.rst:2633 msgid "If, that is, we ignore the effects of Relativity" msgstr "" -#: library/datetime.rst:2629 +#: library/datetime.rst:2635 msgid "" "This matches the definition of the \"proleptic Gregorian\" calendar in " "Dershowitz and Reingold's book *Calendrical Calculations*, where it's the " @@ -3293,23 +3298,23 @@ msgid "" "systems." msgstr "" -#: library/datetime.rst:2635 +#: library/datetime.rst:2641 msgid "" "See R. H. van Gent's `guide to the mathematics of the ISO 8601 calendar " "`_ for a good explanation." msgstr "" -#: library/datetime.rst:2639 +#: library/datetime.rst:2645 msgid "" "Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is " "not a leap year." msgstr "" -#: library/datetime.rst:2299 +#: library/datetime.rst:2305 msgid "% (percent)" msgstr "" -#: library/datetime.rst:2299 +#: library/datetime.rst:2305 msgid "datetime format" msgstr "" diff --git a/library/enum.po b/library/enum.po index f6f16b7c2..054269d3f 100644 --- a/library/enum.po +++ b/library/enum.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -546,35 +546,44 @@ msgid "" "results in the call ``int('1a', 16)`` and a value of ``17`` for the member." msgstr "" -#: library/enum.rst:395 +#: library/enum.rst:393 +msgid "" +"..note:: When writing a custom ``__new__``, do not use ``super().__new__`` --" +msgstr "" + +#: library/enum.rst:394 +msgid "call the appropriate ``__new__`` instead." +msgstr "" + +#: library/enum.rst:398 msgid "" "Returns the string used for *repr()* calls. By default, returns the *Enum* " "name, member name, and value, but can be overridden::" msgstr "" -#: library/enum.rst:411 +#: library/enum.rst:414 msgid "" "Returns the string used for *str()* calls. By default, returns the *Enum* " "name and member name, but can be overridden::" msgstr "" -#: library/enum.rst:426 +#: library/enum.rst:429 msgid "" "Returns the string used for *format()* and *f-string* calls. By default, " "returns :meth:`__str__` return value, but can be overridden::" msgstr "" -#: library/enum.rst:441 +#: library/enum.rst:444 msgid "" "Using :class:`auto` with :class:`Enum` results in integers of increasing " "value, starting with ``1``." msgstr "" -#: library/enum.rst:444 +#: library/enum.rst:447 msgid "Added :ref:`enum-dataclass-support`" msgstr "" -#: library/enum.rst:449 +#: library/enum.rst:452 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 " @@ -582,20 +591,20 @@ msgid "" "enumeration status." msgstr "" -#: library/enum.rst:470 +#: library/enum.rst:473 msgid "" "Using :class:`auto` with :class:`IntEnum` results in integers of increasing " "value, starting with ``1``." msgstr "" -#: library/enum.rst:473 +#: library/enum.rst:476 msgid "" ":meth:`~object.__str__` is now :meth:`!int.__str__` to better support the " "*replacement of existing constants* use-case. :meth:`~object.__format__` was " "already :meth:`!int.__format__` for that same reason." msgstr "" -#: library/enum.rst:480 +#: library/enum.rst:483 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 " @@ -603,7 +612,7 @@ msgid "" "the enumeration." msgstr "" -#: library/enum.rst:486 +#: library/enum.rst:489 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 " @@ -611,280 +620,280 @@ msgid "" "``str(StrEnum.member)``." msgstr "" -#: library/enum.rst:493 +#: library/enum.rst:496 msgid "" "Using :class:`auto` with :class:`StrEnum` results in the lower-cased member " "name as the value." msgstr "" -#: library/enum.rst:498 +#: library/enum.rst:501 msgid "" ":meth:`~object.__str__` is :meth:`!str.__str__` to better support the " "*replacement of existing constants* use-case. :meth:`~object.__format__` is " "likewise :meth:`!str.__format__` for that same reason." msgstr "" -#: library/enum.rst:506 +#: library/enum.rst:509 msgid "" "``Flag`` is the same as :class:`Enum`, but its members support the bitwise " "operators ``&`` (*AND*), ``|`` (*OR*), ``^`` (*XOR*), and ``~`` (*INVERT*); " "the results of those operators are members of the enumeration." msgstr "" -#: library/enum.rst:512 +#: library/enum.rst:515 msgid "Returns *True* if value is in self::" msgstr "" -#: library/enum.rst:533 +#: library/enum.rst:536 msgid "Returns all contained non-alias members::" msgstr "" -#: library/enum.rst:544 +#: library/enum.rst:547 msgid "Returns number of members in flag::" msgstr "" -#: library/enum.rst:553 +#: library/enum.rst:556 msgid "Returns *True* if any members in flag, *False* otherwise::" msgstr "" -#: library/enum.rst:565 +#: library/enum.rst:568 msgid "Returns current flag binary or'ed with other::" msgstr "" -#: library/enum.rst:572 +#: library/enum.rst:575 msgid "Returns current flag binary and'ed with other::" msgstr "" -#: library/enum.rst:581 +#: library/enum.rst:584 msgid "Returns current flag binary xor'ed with other::" msgstr "" -#: library/enum.rst:590 +#: library/enum.rst:593 msgid "Returns all the flags in *type(self)* that are not in self::" msgstr "" -#: library/enum.rst:601 +#: library/enum.rst:604 msgid "" "Function used to format any remaining unnamed numeric values. Default is " "the value's repr; common choices are :func:`hex` and :func:`oct`." msgstr "" -#: library/enum.rst:606 +#: library/enum.rst:609 msgid "" "Using :class:`auto` with :class:`Flag` results in integers that are powers " "of two, starting with ``1``." msgstr "" -#: library/enum.rst:609 +#: library/enum.rst:612 msgid "The *repr()* of zero-valued flags has changed. It is now::" msgstr "" -#: library/enum.rst:617 +#: library/enum.rst:620 msgid "" "*IntFlag* is the same as *Flag*, but its members are also integers and can " "be used anywhere that an integer can be used." msgstr "" -#: library/enum.rst:631 +#: library/enum.rst:634 msgid "" "If any integer operation is performed with an *IntFlag* member, the result " "is not an *IntFlag*::" msgstr "" -#: library/enum.rst:637 +#: library/enum.rst:640 msgid "If a *Flag* operation is performed with an *IntFlag* member and:" msgstr "" -#: library/enum.rst:639 +#: library/enum.rst:642 msgid "the result is a valid *IntFlag*: an *IntFlag* is returned" msgstr "" -#: library/enum.rst:640 +#: library/enum.rst:643 msgid "" "the result is not a valid *IntFlag*: the result depends on the " "*FlagBoundary* setting" msgstr "" -#: library/enum.rst:642 +#: library/enum.rst:645 msgid "The *repr()* of unnamed zero-valued flags has changed. It is now:" msgstr "" -#: library/enum.rst:649 +#: library/enum.rst:652 msgid "" "Using :class:`auto` with :class:`IntFlag` results in integers that are " "powers of two, starting with ``1``." msgstr "" -#: library/enum.rst:654 +#: library/enum.rst:657 msgid "" ":meth:`~object.__str__` is now :meth:`!int.__str__` to better support the " "*replacement of existing constants* use-case. :meth:`~object.__format__` " "was already :meth:`!int.__format__` for that same reason." msgstr "" -#: library/enum.rst:658 +#: library/enum.rst:661 msgid "" "Inversion of an :class:`!IntFlag` now returns a positive value that is the " "union of all flags not in the given flag, rather than a negative value. This " "matches the existing :class:`Flag` behavior." msgstr "" -#: library/enum.rst:664 +#: library/enum.rst:667 msgid "" ":class:`!ReprEnum` uses the :meth:`repr() ` of :class:`Enum`, " "but the :class:`str() ` of the mixed-in data type:" msgstr "" -#: library/enum.rst:667 +#: library/enum.rst:670 msgid ":meth:`!int.__str__` for :class:`IntEnum` and :class:`IntFlag`" msgstr "" -#: library/enum.rst:668 +#: library/enum.rst:671 msgid ":meth:`!str.__str__` for :class:`StrEnum`" msgstr "" -#: library/enum.rst:670 +#: library/enum.rst:673 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() `." msgstr "" -#: library/enum.rst:679 +#: library/enum.rst:682 msgid "" "*EnumCheck* contains the options used by the :func:`verify` decorator to " "ensure various constraints; failed constraints result in a :exc:`ValueError`." msgstr "" -#: library/enum.rst:684 +#: library/enum.rst:687 msgid "Ensure that each value has only one name::" msgstr "" -#: library/enum.rst:700 +#: library/enum.rst:703 msgid "" "Ensure that there are no missing values between the lowest-valued member and " "the highest-valued member::" msgstr "" -#: library/enum.rst:715 +#: library/enum.rst:718 msgid "" "Ensure that any flag groups/masks contain only named flags -- useful when " "values are specified instead of being generated by :func:`auto`::" msgstr "" -#: library/enum.rst:732 +#: library/enum.rst:735 msgid "" "CONTINUOUS and NAMED_FLAGS are designed to work with integer-valued members." msgstr "" -#: library/enum.rst:738 +#: library/enum.rst:741 msgid "" "*FlagBoundary* controls how out-of-range values are handled in *Flag* and " "its subclasses." msgstr "" -#: library/enum.rst:743 +#: library/enum.rst:746 msgid "" "Out-of-range values cause a :exc:`ValueError` to be raised. This is the " "default for :class:`Flag`::" msgstr "" -#: library/enum.rst:761 +#: library/enum.rst:764 msgid "" "Out-of-range values have invalid values removed, leaving a valid *Flag* " "value::" msgstr "" -#: library/enum.rst:775 +#: library/enum.rst:778 msgid "" "Out-of-range values lose their *Flag* membership and revert to :class:`int`." msgstr "" -#: library/enum.rst:788 +#: library/enum.rst:791 msgid "" "Out-of-range values are kept, and the *Flag* membership is kept. This is the " "default for :class:`IntFlag`::" msgstr "" -#: library/enum.rst:805 +#: library/enum.rst:808 msgid "Supported ``__dunder__`` names" msgstr "" -#: library/enum.rst:807 +#: library/enum.rst:810 msgid "" ":attr:`~EnumType.__members__` is a read-only ordered mapping of " "``member_name``:``member`` items. It is only available on the class." msgstr "" -#: library/enum.rst:810 +#: library/enum.rst:813 msgid "" ":meth:`~object.__new__`, if specified, must create and return the enum " "members; it is also a very good idea to set the member's :attr:`!_value_` " "appropriately. Once all the members are created it is no longer used." msgstr "" -#: library/enum.rst:816 +#: library/enum.rst:819 msgid "Supported ``_sunder_`` names" msgstr "" -#: library/enum.rst:818 +#: library/enum.rst:821 msgid ":attr:`~Enum._name_` -- name of the member" msgstr "" -#: library/enum.rst:819 +#: library/enum.rst:822 msgid ":attr:`~Enum._value_` -- value of the member; can be set in ``__new__``" msgstr "" -#: library/enum.rst:820 +#: library/enum.rst:823 msgid "" ":meth:`~Enum._missing_` -- a lookup function used when a value is not found; " "may be overridden" msgstr "" -#: library/enum.rst:822 +#: library/enum.rst:825 msgid "" ":attr:`~Enum._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 "" -#: library/enum.rst:825 +#: library/enum.rst:828 msgid "" ":attr:`~Enum._order_` -- no longer used, kept for backward compatibility " "(class attribute, removed during class creation)" msgstr "" -#: library/enum.rst:827 +#: library/enum.rst:830 msgid "" ":meth:`~Enum._generate_next_value_` -- used to get an appropriate value for " "an enum member; may be overridden" msgstr "" -#: library/enum.rst:832 +#: library/enum.rst:835 msgid "" "For standard :class:`Enum` classes the next value chosen is the last value " "seen incremented by one." msgstr "" -#: library/enum.rst:835 +#: library/enum.rst:838 msgid "" "For :class:`Flag` classes the next value chosen will be the next highest " "power-of-two, regardless of the last value seen." msgstr "" -#: library/enum.rst:838 +#: library/enum.rst:841 msgid "``_missing_``, ``_order_``, ``_generate_next_value_``" msgstr "" -#: library/enum.rst:839 +#: library/enum.rst:842 msgid "``_ignore_``" msgstr "" -#: library/enum.rst:844 +#: library/enum.rst:847 msgid "Utilities and Decorators" msgstr "" -#: library/enum.rst:848 +#: library/enum.rst:851 msgid "" "*auto* can be used in place of a value. If used, the *Enum* machinery will " "call an *Enum*'s :meth:`~Enum._generate_next_value_` to get an appropriate " @@ -895,54 +904,54 @@ msgid "" "manually specified values." msgstr "" -#: library/enum.rst:856 +#: library/enum.rst:859 msgid "" "*auto* instances are only resolved when at the top level of an assignment:" msgstr "" -#: library/enum.rst:858 +#: library/enum.rst:861 msgid "``FIRST = auto()`` will work (auto() is replaced with ``1``);" msgstr "" -#: library/enum.rst:859 +#: library/enum.rst:862 msgid "" "``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` " "is used to create the ``SECOND`` enum member;" msgstr "" -#: library/enum.rst:861 +#: library/enum.rst:864 msgid "" "``THREE = [auto(), -3]`` will *not* work (``, -3`` is used to " "create the ``THREE`` enum member)" msgstr "" -#: library/enum.rst:866 +#: library/enum.rst:869 msgid "" "In prior versions, ``auto()`` had to be the only thing on the assignment " "line to work properly." msgstr "" -#: library/enum.rst:869 +#: library/enum.rst:872 msgid "" "``_generate_next_value_`` can be overridden to customize the values used by " "*auto*." msgstr "" -#: library/enum.rst:872 +#: library/enum.rst:875 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 "" -#: library/enum.rst:878 +#: library/enum.rst:881 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." msgstr "" -#: library/enum.rst:882 +#: library/enum.rst:885 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, " @@ -950,29 +959,29 @@ msgid "" "``name``." msgstr "" -#: library/enum.rst:891 +#: library/enum.rst:894 msgid "" "A :keyword:`class` decorator specifically for enumerations. It searches an " "enumeration's :attr:`~EnumType.__members__`, gathering any aliases it finds; " "if any are found :exc:`ValueError` is raised with the details::" msgstr "" -#: library/enum.rst:909 +#: library/enum.rst:912 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." msgstr "" -#: library/enum.rst:917 +#: library/enum.rst:920 msgid "A decorator for use in enums: its target will become a member." msgstr "" -#: library/enum.rst:923 +#: library/enum.rst:926 msgid "A decorator for use in enums: its target will not become a member." msgstr "" -#: library/enum.rst:929 +#: library/enum.rst:932 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 " @@ -980,40 +989,40 @@ msgid "" "namespace (see :class:`re.RegexFlag` for an example)." msgstr "" -#: library/enum.rst:939 +#: library/enum.rst:942 msgid "Return a list of all power-of-two integers contained in a flag *value*." msgstr "" -#: library/enum.rst:946 +#: library/enum.rst:949 msgid "Notes" msgstr "" -#: library/enum.rst:948 +#: library/enum.rst:951 msgid ":class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag`" msgstr "" -#: library/enum.rst:950 +#: library/enum.rst:953 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:" msgstr "" -#: library/enum.rst:953 +#: library/enum.rst:956 msgid "``__str__`` uses the value and not the name of the enum member" msgstr "" -#: library/enum.rst:955 +#: library/enum.rst:958 msgid "" "``__format__``, because it uses ``__str__``, will also use the value of the " "enum member instead of its name" msgstr "" -#: library/enum.rst:958 +#: library/enum.rst:961 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 "" -#: library/enum.rst:965 +#: library/enum.rst:968 msgid "or you can reassign the appropriate :meth:`str`, etc., in your enum::" msgstr "" diff --git a/library/exceptions.po b/library/exceptions.po index 33d1f7b02..9da9ca690 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2024-02-17 13:11+0300\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -39,13 +39,14 @@ msgstr "" "değildir." #: library/exceptions.rst:19 +#, fuzzy msgid "" -"The built-in exceptions listed below can be generated by the interpreter or " -"built-in functions. Except where mentioned, they have an \"associated " -"value\" indicating the detailed cause of the error. This may be a string or " -"a tuple of several items of information (e.g., an error code and a string " -"explaining the code). The associated value is usually passed as arguments " -"to the exception class's constructor." +"The built-in exceptions listed in this chapter can be generated by the " +"interpreter or built-in functions. Except where mentioned, they have an " +"\"associated value\" indicating the detailed cause of the error. This may " +"be a string or a tuple of several items of information (e.g., an error code " +"and a string explaining the code). The associated value is usually passed " +"as arguments to the exception class's constructor." msgstr "" "Bu bölümde listelenen gömülü istisnalar yorumlayıcı veya gömülü işlevler " "tarafından oluşturulabilir. Belirtilen yerler dışında, hatanın ayrıntılı " @@ -145,8 +146,8 @@ msgid "" "__cause__` is :const:`None` and :attr:`!__suppress_context__` is false." msgstr "" "Varsayılan geri izleme görüntüleme kodu(default traceback display code), " -"istisnanın geri izlemesine ek olarak bu zincirleme istisnaları da gösterir. " -":attr:`!__cause__` içinde açıkça zincirlenmiş bir istisna mevcut olduğunda " +"istisnanın geri izlemesine ek olarak bu zincirleme istisnaları da gösterir. :" +"attr:`!__cause__` içinde açıkça zincirlenmiş bir istisna mevcut olduğunda " "her zaman gösterilir. :attr:`!__context__` içindeki dolaylı zincirleme " "istisna yalnızca :attr:`!__cause__` :const:`None` ve :attr:`!" "__suppress_context__` false ise gösterilir." @@ -532,10 +533,11 @@ msgstr "" "bırakın ya da bir alt sınıfsa :data:`None`. olarak ayarlayın." #: library/exceptions.rst:338 +#, fuzzy msgid "" -"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even " -"though they have similar names and purposes. See :data:`NotImplemented` for " -"details on when to use it." +"``NotImplementedError`` and :data:`NotImplemented` are not interchangeable, " +"even though they have similar names and purposes. See :data:`!" +"NotImplemented` for details on when to use it." msgstr "" "``NotImplementedError`` ve ``NotImplemented`` benzer isimlere ve amaçlara " "sahip olsalar da birbirlerinin yerine kullanılamazlar. Ne zaman " @@ -1112,8 +1114,8 @@ msgid "" "In addition to those of :exc:`OSError`, :exc:`BlockingIOError` can have one " "more attribute:" msgstr "" -":exc:`OSError` özelliğine ek olarak, :exc:`BlockingIOError` bir özelliğe daha " -"sahip olabilir:" +":exc:`OSError` özelliğine ek olarak, :exc:`BlockingIOError` bir özelliğe " +"daha sahip olabilir:" #: library/exceptions.rst:696 msgid "" @@ -1250,8 +1252,8 @@ msgid "" "ENOTCAPABLE`." msgstr "" "Yeterli erişim hakları (örneğin dosya sistemi izinleri) olmadan bir işlem " -"çalıştırılmaya çalışıldığında ortaya çıkar. :c:data:`errno` :py:const:`~errno." -"EACCES`, :py:const:`~errno.EPERM` ve :py:const:`~errno.ENOTCAPABLE` " +"çalıştırılmaya çalışıldığında ortaya çıkar. :c:data:`errno` :py:const:" +"`~errno.EACCES`, :py:const:`~errno.EPERM` ve :py:const:`~errno.ENOTCAPABLE` " "değerlerine karşılık gelir." #: library/exceptions.rst:778 @@ -1435,8 +1437,8 @@ msgstr "" "`BaseExceptionGroup`, :exc:`BaseException`'ı genişletir ve herhangi bir " "istisnayı sarabilirken, :exc:`ExceptionGroup`, :exc:`Exception`'ı genişletir " "ve yalnızca :exc:`Exception`'ın alt sınıflarını sarabilir. Bu tasarım " -"sayesinde ``except Exception`` bir :exc:`ExceptionGroup` u yakalar ancak :exc:" -"`BaseExceptionGroup` u yakalayamaz." +"sayesinde ``except Exception`` bir :exc:`ExceptionGroup` u yakalar ancak :" +"exc:`BaseExceptionGroup` u yakalayamaz." #: library/exceptions.rst:922 msgid "" diff --git a/library/fcntl.po b/library/fcntl.po index 8f5255d10..bc324f0a2 100644 --- a/library/fcntl.po +++ b/library/fcntl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-04 18:33+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -22,10 +22,10 @@ msgstr "" #: library/fcntl.rst:16 msgid "" -"This module performs file control and I/O control on file descriptors. It is " -"an interface to the :c:func:`fcntl` and :c:func:`ioctl` Unix routines. For " -"a complete description of these calls, see :manpage:`fcntl(2)` and :manpage:" -"`ioctl(2)` Unix manual pages." +"This module performs file and I/O control on file descriptors. It is an " +"interface to the :c:func:`fcntl` and :c:func:`ioctl` Unix routines. See the :" +"manpage:`fcntl(2)` and :manpage:`ioctl(2)` Unix manual pages for full " +"details." msgstr "" #: library/fcntl.rst:21 @@ -108,7 +108,7 @@ msgid "" msgstr "" #: library/fcntl.rst:83 -msgid "If the :c:func:`fcntl` fails, an :exc:`OSError` is raised." +msgid "If the :c:func:`fcntl` call fails, an :exc:`OSError` is raised." msgstr "" #: library/fcntl.rst:85 @@ -170,7 +170,8 @@ msgid "" msgstr "" #: library/fcntl.rst:121 -msgid "If the :c:func:`ioctl` fails, an :exc:`OSError` exception is raised." +msgid "" +"If the :c:func:`ioctl` call fails, an :exc:`OSError` exception is raised." msgstr "" #: library/fcntl.rst:123 @@ -192,7 +193,8 @@ msgid "" msgstr "" #: library/fcntl.rst:146 -msgid "If the :c:func:`flock` fails, an :exc:`OSError` exception is raised." +msgid "" +"If the :c:func:`flock` call fails, an :exc:`OSError` exception is raised." msgstr "" #: library/fcntl.rst:148 @@ -209,67 +211,71 @@ msgid "" "*cmd* is one of the following values:" msgstr "" -#: library/fcntl.rst:158 -msgid ":const:`LOCK_UN` -- unlock" +#: library/fcntl.rst:160 +msgid "Release an existing lock." msgstr "" -#: library/fcntl.rst:159 -msgid ":const:`LOCK_SH` -- acquire a shared lock" +#: library/fcntl.rst:164 +msgid "Acquire a shared lock." msgstr "" -#: library/fcntl.rst:160 -msgid ":const:`LOCK_EX` -- acquire an exclusive lock" +#: library/fcntl.rst:168 +msgid "Acquire an exclusive lock." msgstr "" -#: library/fcntl.rst:162 +#: library/fcntl.rst:172 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." +"Bitwise OR with any of the other three ``LOCK_*`` constants to make the " +"request non-blocking." msgstr "" -#: library/fcntl.rst:171 +#: library/fcntl.rst:175 +msgid "" +"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:`~errno.EACCES` or :const:`~errno.EAGAIN` (depending on the " +"operating system; for portability, check for both values). On at least some " +"systems, :const:`!LOCK_EX` can only be used if the file descriptor refers to " +"a file opened for writing." +msgstr "" + +#: library/fcntl.rst:182 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 "" -#: library/fcntl.rst:175 +#: library/fcntl.rst:186 msgid "``0`` -- relative to the start of the file (:const:`os.SEEK_SET`)" msgstr "" -#: library/fcntl.rst:176 +#: library/fcntl.rst:187 msgid "``1`` -- relative to the current buffer position (:const:`os.SEEK_CUR`)" msgstr "" -#: library/fcntl.rst:177 +#: library/fcntl.rst:188 msgid "``2`` -- relative to the end of the file (:const:`os.SEEK_END`)" msgstr "" -#: library/fcntl.rst:179 +#: library/fcntl.rst:190 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 "" -#: library/fcntl.rst:183 +#: library/fcntl.rst:194 msgid "" "Raises an :ref:`auditing event ` ``fcntl.lockf`` with arguments " "``fd``, ``cmd``, ``len``, ``start``, ``whence``." msgstr "" -#: library/fcntl.rst:185 +#: library/fcntl.rst:196 msgid "Examples (all on a SVR4 compliant system)::" msgstr "" -#: library/fcntl.rst:195 +#: library/fcntl.rst:206 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. " @@ -277,11 +283,11 @@ msgid "" "therefore using the :func:`flock` call may be better." msgstr "" -#: library/fcntl.rst:206 +#: library/fcntl.rst:217 msgid "Module :mod:`os`" msgstr "" -#: library/fcntl.rst:204 +#: library/fcntl.rst:215 msgid "" "If the locking flags :const:`~os.O_SHLOCK` and :const:`~os.O_EXLOCK` are " "present in the :mod:`os` module (on BSD only), the :func:`os.open` function " diff --git a/library/functions.po b/library/functions.po index 8f955dd1a..e544d5efd 100644 --- a/library/functions.po +++ b/library/functions.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2023-03-08 10:13-0500\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -2885,7 +2885,11 @@ msgstr "" "ne döndürdüğünü kontrol edebilir. :func:`sys.displayhook` erişilebilir " "değilse, bu fonksiyon :exc:`RuntimeError` değerini yükseltir." -#: library/functions.rst:1575 +#: library/functions.rst:1572 +msgid "This class has a custom representation that can be evaluated::" +msgstr "" + +#: library/functions.rst:1585 #, fuzzy msgid "" "Return a reverse :term:`iterator`. *seq* must be an object which has a :" @@ -2898,7 +2902,7 @@ msgstr "" "tam sayı argümanları alan bir :meth:`__getitem__` metodu) destekleyen bir " "nesne olmalıdır." -#: library/functions.rst:1583 +#: library/functions.rst:1593 msgid "" "Return *number* rounded to *ndigits* precision after the decimal point. If " "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " @@ -2908,7 +2912,7 @@ msgstr "" "*ndigits* verilmediyse veya ``None`` ise, *number* 'a en yakın tam sayı " "döndürülür." -#: library/functions.rst:1587 +#: library/functions.rst:1597 msgid "" "For the built-in types supporting :func:`round`, values are rounded to the " "closest multiple of 10 to the power minus *ndigits*; if two multiples are " @@ -2926,7 +2930,7 @@ msgstr "" "*ndigits* verilmediyse veya ``None`` ise döndürülen değer bir tam sayıdır. " "Aksi takdirde, döndürülen değerin tipi *number* 'ınkiyle aynıdır." -#: library/functions.rst:1596 +#: library/functions.rst:1606 msgid "" "For a general Python object ``number``, ``round`` delegates to ``number." "__round__``." @@ -2934,7 +2938,7 @@ msgstr "" "Genel bir Python nesnesi için ``number``, ``round`` ``number.__round__`` 'u " "temsil eder." -#: library/functions.rst:1601 +#: library/functions.rst:1611 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " "``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " @@ -2948,7 +2952,7 @@ msgstr "" "gösterilemeyeceğinden bu sonucu alıyoruz. Daha fazla bilgi için :ref:`tut-fp-" "issues` 'e bkz." -#: library/functions.rst:1613 +#: library/functions.rst:1623 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-" @@ -2958,7 +2962,7 @@ msgstr "" "nesnesi döndürür. ``set`` yerleşik bir sınıftır. Bu sınıf hakkında " "dokümantasyon için :class:`set` ve :ref:`types-set` 'e bakınız." -#: library/functions.rst:1617 +#: library/functions.rst:1627 msgid "" "For other containers see the built-in :class:`frozenset`, :class:`list`, :" "class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " @@ -2968,7 +2972,7 @@ msgstr "" "`tuple` ve :class:`dict` sınıflarını; aynı zamanda :mod:`collections` " "modülüne bakınız." -#: library/functions.rst:1624 +#: library/functions.rst:1634 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " "string, and an arbitrary value. The string may name an existing attribute " @@ -2981,7 +2985,7 @@ msgstr "" "Fonksiyon, nesnenin izin vermesi koşuluyla, değeri özelliğe atar. Örneğin " "``setattr(x, 'foobar', 123)`` ve ``x.foobar = 123`` eş değerdir." -#: library/functions.rst:1630 +#: library/functions.rst:1640 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:" @@ -2995,7 +2999,7 @@ msgstr "" "zorunda değildir. Adı tanımlayıcı olmayan bir özelliğe nokta kullanılarak " "erişilemez, ancak :func:`getattr` vb. aracılığıyla erişilebilir." -#: library/functions.rst:1638 +#: library/functions.rst:1648 msgid "" "Since :ref:`private name mangling ` happens at " "compilation time, one must manually mangle a private attribute's (attributes " @@ -3005,14 +3009,14 @@ msgstr "" "olacağından, :func:`setattr` ile ayarlamak için özel bir niteliğin (iki alt " "çizgi ile başlayan nitelikler) adını manuel olarak değiştirmek gerekir." -#: library/functions.rst:1647 +#: library/functions.rst:1657 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``." msgstr "" -#: library/functions.rst:1655 +#: library/functions.rst:1665 msgid "" "Slice objects have read-only data attributes :attr:`!start`, :attr:`!stop`, " "and :attr:`!step` which merely return the argument values (or their " @@ -3020,30 +3024,30 @@ msgid "" "by NumPy and other third-party packages." msgstr "" -#: library/functions.rst:1660 +#: library/functions.rst:1670 msgid "" "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 :term:`iterator`." msgstr "" -#: library/functions.rst:1665 +#: library/functions.rst:1675 msgid "" "Slice objects are now :term:`hashable` (provided :attr:`~slice.start`, :attr:" "`~slice.stop`, and :attr:`~slice.step` are hashable)." msgstr "" -#: library/functions.rst:1671 +#: library/functions.rst:1681 msgid "Return a new sorted list from the items in *iterable*." msgstr "" "*iterable* 'ın içindeki elementlerden oluşan sıralı bir liste döndürür." -#: library/functions.rst:1673 +#: library/functions.rst:1683 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "İsimle belirtilmesi gereken 2 opsiyonel parametresi vardır." -#: library/functions.rst:1675 +#: library/functions.rst:1685 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." @@ -3053,7 +3057,7 @@ msgstr "" "için kullanılan bir argümanın fonksiyonunu belirtir (örneğin, ``key=str." "lower``). Varsayılan değer ``None`` 'dır (elementleri direkt karşılaştırır)." -#: library/functions.rst:1679 +#: library/functions.rst:1689 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -3061,7 +3065,7 @@ msgstr "" "*reverse* bir boolean değerdir. Eğer ``True`` ise, liste elementleri tüm " "karşılaştırmalar tersine çevrilmiş şekilde sıralanır." -#: library/functions.rst:1682 +#: library/functions.rst:1692 msgid "" "Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " "*key* function." @@ -3069,7 +3073,7 @@ msgstr "" "Eski stil *cmp* fonksiyonunu bir *key* fonksiyonuna dönüştürmek için :func:" "`functools.cmp_to_key` 'yi kullanın." -#: library/functions.rst:1685 +#: library/functions.rst:1695 msgid "" "The built-in :func:`sorted` function is guaranteed to be stable. A sort is " "stable if it guarantees not to change the relative order of elements that " @@ -3081,7 +3085,7 @@ msgstr "" "garantiliyorsa stabildir --- bu çoklu geçişlerle sıralama (örneğin önce " "departman, ardından maaş sıralama) için yardımcıdır." -#: library/functions.rst:1690 +#: library/functions.rst:1700 msgid "" "The sort algorithm uses only ``<`` comparisons between items. While " "defining an :meth:`~object.__lt__` method will suffice for sorting, :PEP:`8` " @@ -3101,18 +3105,18 @@ msgstr "" "uygulamak ayrıca yansıtılan :meth:`~object.__gt__` metodunu çağırabilen " "karmaşık tür karşılaştırmaları için karışıklığı da önler." -#: library/functions.rst:1699 +#: library/functions.rst:1709 msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" "Sıralama örnekleri ve kısa sıralama öğreticisi için :ref:`sortinghowto` 'ya " "bakınız." -#: library/functions.rst:1703 +#: library/functions.rst:1713 msgid "Transform a method into a static method." msgstr "Bir metodu statik metoda dönüştürür." -#: library/functions.rst:1705 +#: library/functions.rst:1715 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" @@ -3120,7 +3124,7 @@ msgstr "" "Statik bir metot üstü kapalı şekilde bir ilk argüman almaz. Statik metot " "tanımlamak için bu ifadeyi kullanabilirsiniz::" -#: library/functions.rst:1712 +#: library/functions.rst:1722 msgid "" "The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:" "`function` for details." @@ -3128,7 +3132,7 @@ msgstr "" "``@staticmethod`` ifadesi bir :term:`decorator` fonksiyonudur. -- detaylar " "için :ref:`function` bkz." -#: library/functions.rst:1715 +#: library/functions.rst:1725 msgid "" "A static method can be called either on the class (such as ``C.f()``) or on " "an instance (such as ``C().f()``). Moreover, they can be called as regular " @@ -3138,7 +3142,7 @@ msgstr "" "(``C().f()`` gibi) çağırılabilir. Hatta normal fonksiyonlar gibi (``f()``) " "de çağırılabilirler." -#: library/functions.rst:1719 +#: library/functions.rst:1729 msgid "" "Static methods in Python are similar to those found in Java or C++. Also, " "see :func:`classmethod` for a variant that is useful for creating alternate " @@ -3148,7 +3152,7 @@ msgstr "" "için alternatif bir yapıcı metot oluşturmak isterseniz :func:`classmethod` " "bkz." -#: library/functions.rst:1723 +#: library/functions.rst:1733 msgid "" "Like all decorators, it is also possible to call ``staticmethod`` as a " "regular function and do something with its result. This is needed in some " @@ -3162,11 +3166,11 @@ msgstr "" "dönüşümü engellemek istediğinizde işinize yarayabilir. Böyle durumlar için, " "bu ifadeyi kullanabilirsiniz::" -#: library/functions.rst:1735 +#: library/functions.rst:1745 msgid "For more information on static methods, see :ref:`types`." msgstr "Statik metotlar hakkında daha fazla bilgi için, :ref:`types` bkz." -#: library/functions.rst:1737 +#: library/functions.rst:1747 msgid "" "Static methods now inherit the method attributes (``__module__``, " "``__name__``, ``__qualname__``, ``__doc__`` and ``__annotations__``), have a " @@ -3177,14 +3181,14 @@ msgstr "" "``__wrapped__`` özellikleri var ve artık normal fonksiyonlar gibi " "çağırılabilirler." -#: library/functions.rst:1752 +#: library/functions.rst:1762 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" "*object* 'in :class:`str` versiyonunu döndürür. Detaylar için :func:`str` " "bkz." -#: library/functions.rst:1754 +#: library/functions.rst:1764 msgid "" "``str`` is the built-in string :term:`class`. For general information about " "strings, see :ref:`textseq`." @@ -3192,7 +3196,7 @@ msgstr "" "``str`` yerleşik dize :term:`class` 'ıdır. Dizeler hakkında genel bilgi " "için, :ref:`textseq` bkz." -#: library/functions.rst:1760 +#: library/functions.rst:1770 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 " @@ -3202,7 +3206,7 @@ msgstr "" "döndürür. *iterable* 'ın elemanları normal olarak numaralardır ve başlangıç " "değeri bir dize olamaz." -#: library/functions.rst:1764 +#: library/functions.rst:1774 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 ``''." @@ -3217,17 +3221,17 @@ msgstr "" "nesnelerden oluşan bir diziyi birleştirmek istiyorsanız, :func:`itertools." "chain` fonksiyonunu kullanmayı göz önünde bulundurun." -#: library/functions.rst:1770 +#: library/functions.rst:1780 msgid "The *start* parameter can be specified as a keyword argument." msgstr "*start* parametresi bir anahtar kelime argümanı olarak belirtilebilir." -#: library/functions.rst:1773 +#: library/functions.rst:1783 msgid "" "Summation of floats switched to an algorithm that gives higher accuracy on " "most builds." msgstr "" -#: library/functions.rst:1780 +#: library/functions.rst:1790 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 " @@ -3237,7 +3241,7 @@ msgstr "" "eden bir proxy objesi döndürür. Bu bir sınıfta üzerine yazılmış kalıtılan " "metotlara erişmek için kullanışlıdır." -#: library/functions.rst:1784 +#: library/functions.rst:1794 msgid "" "The *object_or_type* determines the :term:`method resolution order` to be " "searched. The search starts from the class right after the *type*." @@ -3245,7 +3249,7 @@ msgstr "" "*object_or_type* aranacak :term:`method resolution order` 'nı belirler. " "Arama *type* 'dan sonraki ilk sınıftan başlar." -#: library/functions.rst:1788 +#: library/functions.rst:1798 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` " @@ -3255,7 +3259,7 @@ msgstr "" "> B -> C -> A -> object`` ise ve *type* değeri ``B`` ise, :func:`super` ``C -" "> A -> object`` 'i arar." -#: library/functions.rst:1792 +#: library/functions.rst:1802 msgid "" "The :attr:`~class.__mro__` attribute of the *object_or_type* lists the " "method resolution search order used by both :func:`getattr` and :func:" @@ -3267,7 +3271,7 @@ msgstr "" "listeler. Özellik dinamiktir ve kalıtım hiyerarşisi her güncellendiğinde " "değişebilir." -#: library/functions.rst:1797 +#: library/functions.rst:1807 msgid "" "If the second argument is omitted, the super object returned is unbound. If " "the second argument is an object, ``isinstance(obj, type)`` must be true. " @@ -3279,7 +3283,7 @@ msgstr "" "zorundadır. Eğer ikinci parametre bir tür ise, ``issubclass(type2, type)`` " "doğru olmak zorundadır (bu sınıf metotları için kullanışlıdır)." -#: library/functions.rst:1802 +#: library/functions.rst:1812 msgid "" "There are two typical use cases for *super*. In a class hierarchy with " "single inheritance, *super* can be used to refer to parent classes without " @@ -3290,7 +3294,7 @@ msgstr "" "hiyerarşisinde *super* üst sınıfları açıkça adlandırmadan onlara başvurmak " "için kullanılabilir. böylece kodu daha sürdürülebilir hale getirir." -#: library/functions.rst:1807 +#: library/functions.rst:1817 msgid "" "The second use case is to support cooperative multiple inheritance in a " "dynamic execution environment. This use case is unique to Python and is not " @@ -3311,12 +3315,12 @@ msgstr "" "sıra sınıf hiyerarşisindeki değişikliklere uyarlanır ve çalışma zamanından " "önce bilinmeyen kardeş sınıfları içerebilir) dikte eder." -#: library/functions.rst:1817 +#: library/functions.rst:1827 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" "İki kullanım durumu için de, tipik bir üst sınıf çağrısı bu şekildedir::" -#: library/functions.rst:1824 +#: library/functions.rst:1834 msgid "" "In addition to method lookups, :func:`super` also works for attribute " "lookups. One possible use case for this is calling :term:`descriptors " @@ -3326,7 +3330,7 @@ msgstr "" "çalışır. Bunun kullanım şekli ebeveyn veya kardeş bir sınıfta :term:" "`tanımlayıcılar ` 'i çağırmaktır." -#: library/functions.rst:1828 +#: library/functions.rst:1838 #, fuzzy msgid "" "Note that :func:`super` is implemented as part of the binding process for " @@ -3343,7 +3347,7 @@ msgstr "" "`super`, ifadeler veya ``super()[name]`` gibi operatörler kullanarak kesin " "aramalar için tanımsızdır." -#: library/functions.rst:1836 +#: library/functions.rst:1846 msgid "" "Also note that, aside from the zero argument form, :func:`super` is not " "limited to use inside methods. The two argument form specifies the " @@ -3358,7 +3362,7 @@ msgstr "" "tanımının içinde çalışır, derleyici tanımlanan sınıfı doğru şekilde almak ve " "sıradan yöntemlere geçerli örnekten erişmek için gerekli detayları doldurur." -#: library/functions.rst:1843 +#: library/functions.rst:1853 msgid "" "For practical suggestions on how to design cooperative classes using :func:" "`super`, see `guide to using super() `_ bkz." -#: library/functions.rst:1853 +#: library/functions.rst:1863 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." @@ -3376,7 +3380,7 @@ msgstr "" "Bir fonksiyon olmaktansa, :class:`tuple` :ref:`typesseq-tuple` ve :ref:" "`typesseq` 'de gösterildiği gibi düzenlenemez bir dizi türüdür." -#: library/functions.rst:1862 +#: library/functions.rst:1872 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." @@ -3386,7 +3390,7 @@ msgstr "" "türüdür ve genellikle :attr:`object.__class__ ` " "tarafından döndürülen obje ile aynıdır." -#: library/functions.rst:1866 +#: library/functions.rst:1876 msgid "" "The :func:`isinstance` built-in function is recommended for testing the type " "of an object, because it takes subclasses into account." @@ -3394,7 +3398,7 @@ msgstr "" ":func:`isinstance` yerleşik fonksiyonu bir objenin türünü test etmek için " "önerilir. Çünkü altsınıfları hesaba katar." -#: library/functions.rst:1870 +#: library/functions.rst:1880 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 " @@ -3415,11 +3419,11 @@ msgstr "" "özelliği yerine geçmeden önce kopyalanabilir veya sarılabilir. Aşağıdaki iki " "ifade birebir aynı :class:`type` nesneleri oluşturur:" -#: library/functions.rst:1885 +#: library/functions.rst:1895 msgid "See also :ref:`bltin-type-objects`." msgstr ":ref:`bltin-type-objects` 'e de bkz." -#: library/functions.rst:1887 +#: library/functions.rst:1897 msgid "" "Keyword arguments provided to the three argument form are passed to the " "appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`) " @@ -3431,11 +3435,11 @@ msgstr "" "tanımındaki anahtar sözcüklerin (*metaclass* dışında) yapacağı şekilde " "iletilir." -#: library/functions.rst:1892 +#: library/functions.rst:1902 msgid "See also :ref:`class-customization`." msgstr ":ref:`class-customization` 'a da bkz." -#: library/functions.rst:1894 +#: library/functions.rst:1904 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." @@ -3443,7 +3447,7 @@ msgstr "" "``type.__new__`` 'in üzerine yazmayan :class:`type` altsınıfları artık bir " "objenin türünü almak için tek argümanlı formu kullanamaz." -#: library/functions.rst:1901 +#: library/functions.rst:1911 msgid "" "Return the :attr:`~object.__dict__` attribute for a module, class, instance, " "or any other object with a :attr:`~object.__dict__` attribute." @@ -3451,7 +3455,7 @@ msgstr "" "Bir modül, sınıf, örnek veya :attr:`~object.__dict__` özelliği bulunan " "herhangi bir obje için, :attr:`~object.__dict__` özelliğini döndürür." -#: library/functions.rst:1904 +#: library/functions.rst:1914 msgid "" "Objects such as modules and instances have an updateable :attr:`~object." "__dict__` attribute; however, other objects may have write restrictions on " @@ -3464,7 +3468,7 @@ msgstr "" "sınıflar doğrudan sözlük güncellemelerini önlemek için :class:`types." "MappingProxyType` sınıfını kullanırlar)." -#: library/functions.rst:1909 +#: library/functions.rst:1919 msgid "" "Without an argument, :func:`vars` acts like :func:`locals`. Note, the " "locals dictionary is only useful for reads since updates to the locals " @@ -3474,7 +3478,7 @@ msgstr "" "ona yapılan güncellemeler görmezden gelindiğinden ötürü, sadece okuma işlemi " "için kullanışlıdır." -#: library/functions.rst:1913 +#: library/functions.rst:1923 msgid "" "A :exc:`TypeError` exception is raised if an object is specified but it " "doesn't have a :attr:`~object.__dict__` attribute (for example, if its class " @@ -3484,7 +3488,7 @@ msgstr "" "(örneğin, :attr:`~object.__slots__` özelliğini tanımlayan bir sınıf ise), :" "exc:`TypeError` hatası ortaya çıkar." -#: library/functions.rst:1919 +#: library/functions.rst:1929 msgid "" "Iterate over several iterables in parallel, producing tuples with an item " "from each one." @@ -3492,11 +3496,11 @@ msgstr "" "Paralel olarak birkaç yinelenebilir nesneyi yineler ve hepsinden bir element " "alarak bir demet üretir." -#: library/functions.rst:1922 +#: library/functions.rst:1932 msgid "Example::" msgstr "Örnek::" -#: library/functions.rst:1931 +#: library/functions.rst:1941 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." @@ -3505,7 +3509,7 @@ msgstr "" "parametre yineleyicisinden *i* 'inci elementi içerdiği bir yineleyici " "döndürür." -#: library/functions.rst:1934 +#: library/functions.rst:1944 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 `_ 'a benzer." -#: library/functions.rst:1938 +#: library/functions.rst:1948 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:" @@ -3525,7 +3529,7 @@ msgstr "" "döngüsü veya :class:`list` tarafından sarılarak yinelenmediği sürece " "elementler işlenmez." -#: library/functions.rst:1942 +#: library/functions.rst:1952 msgid "" "One thing to consider is that the iterables passed to :func:`zip` could have " "different lengths; sometimes by design, and sometimes because of a bug in " @@ -3537,7 +3541,7 @@ msgstr "" "kodda oluşan bir hatadan dolayı farklı uzunluklarda olabilirler. Python " "bununla başa çıkmak için üç farklı yaklaşım sunar:" -#: library/functions.rst:1947 +#: library/functions.rst:1957 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 " @@ -3547,7 +3551,7 @@ msgstr "" "durur. Daha uzun yinelebilirlerde kalan elementleri görmezden gelecektir ve " "sonucu en kısa yineleyicinin uzunluğuna eşitleyecektir::" -#: library/functions.rst:1954 +#: library/functions.rst:1964 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`` " @@ -3557,7 +3561,7 @@ msgstr "" "kullanılır. Bu gibi durumlarda, ``strict=True`` opsiyonunu kullanmak " "önerilir. Çıktısı sıradan :func:`zip` ile aynıdır::" -#: library/functions.rst:1961 +#: library/functions.rst:1971 msgid "" "Unlike the default behavior, it raises a :exc:`ValueError` if one iterable " "is exhausted before the others:" @@ -3565,7 +3569,7 @@ msgstr "" "Varsayılan davranışın aksine, bir yinelenebilir diğerlerinden önce tükenirse " "bir :exc:`ValueError` ortaya çıkar:" -#: library/functions.rst:1979 +#: library/functions.rst:1989 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 " @@ -3575,7 +3579,7 @@ msgstr "" "sonuçlanan hatalar susturulacaktır. Mümkün olduğunca programın başka bir " "bölümünde bulunması zor bir hata olarak tezahür ediyor." -#: library/functions.rst:1983 +#: library/functions.rst:1993 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." @@ -3585,7 +3589,7 @@ msgstr "" "uzunlukta olması için sabit bir değerle doldurulabilirler. Bu :func:" "`itertools.zip_longest` tarafından yapılır." -#: library/functions.rst:1987 +#: library/functions.rst:1997 msgid "" "Edge cases: With a single iterable argument, :func:`zip` returns an iterator " "of 1-tuples. With no arguments, it returns an empty iterator." @@ -3594,11 +3598,11 @@ msgstr "" "bir demetin yineleyicisini döndürür. Argüman verilmezse, boş bir yineleyici " "döndürür." -#: library/functions.rst:1990 +#: library/functions.rst:2000 msgid "Tips and tricks:" msgstr "İpucu ve hileler:" -#: library/functions.rst:1992 +#: library/functions.rst:2002 msgid "" "The left-to-right evaluation order of the iterables is guaranteed. This " "makes possible an idiom for clustering a data series into n-length groups " @@ -3613,7 +3617,7 @@ msgstr "" "sayıda çağrı yapmış olur. Bu, girdiyi n-uzunluklu parçalara bölme etkisine " "sahiptir." -#: library/functions.rst:1998 +#: library/functions.rst:2008 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" @@ -3621,11 +3625,11 @@ msgstr "" ":func:`zip`, bir listeyi açmak için ``*`` operatörüyle birlikte " "kullanılabilir::" -#: library/functions.rst:2009 +#: library/functions.rst:2019 msgid "Added the ``strict`` argument." msgstr "``strict`` argümanı eklendi." -#: library/functions.rst:2021 +#: library/functions.rst:2031 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." @@ -3633,7 +3637,7 @@ msgstr "" "Bu :func:`importlib.import_module` 'un aksine günlük Python programlamasında " "genel olarak kullanılmayan gelişmiş bir fonksiyondur." -#: library/functions.rst:2024 +#: library/functions.rst:2034 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " @@ -3652,7 +3656,7 @@ msgstr "" "neden olmayacağından tavsiye **edilmez**. :func:`__import__` 'un doğrudan " "kullanımı da :func:`importlib.import_module` 'ın lehine tavsiye edilmez." -#: library/functions.rst:2033 +#: library/functions.rst:2043 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " @@ -3668,7 +3672,7 @@ msgstr "" "*locals* argümanını kullanmaya teşebbüs etmez ve *globals* 'i :keyword:" "`import` ifadesinin paket bağlamını belirlemek için kullanır." -#: library/functions.rst:2040 +#: library/functions.rst:2050 msgid "" "*level* specifies whether to use absolute or relative imports. ``0`` (the " "default) means only perform absolute imports. Positive values for *level* " @@ -3682,7 +3686,7 @@ msgstr "" "dizinine göre aranacak üst dizinlerin sayısını gösterir (detaylar için :pep:" "`328` 'e bakınız)." -#: library/functions.rst:2046 +#: library/functions.rst:2056 msgid "" "When the *name* variable is of the form ``package.module``, normally, the " "top-level package (the name up till the first dot) is returned, *not* the " @@ -3693,7 +3697,7 @@ msgstr "" "((ilk noktaya kadar olan isim) döndürülür, *name* isimli modül *değil*. Boş " "olmayan bir *fromlist* argümanı verildiğinde, *name* isimli modül döndürülür." -#: library/functions.rst:2051 +#: library/functions.rst:2061 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" @@ -3701,11 +3705,11 @@ msgstr "" "Örnek olarak, ``import spam`` ifadesi aşağıdaki koda benzeyen bayt koduyla " "sonuçlanır::" -#: library/functions.rst:2056 +#: library/functions.rst:2066 msgid "The statement ``import spam.ham`` results in this call::" msgstr "``import spam.ham`` ifadesi şu çağrıyla sonuçlanır::" -#: library/functions.rst:2060 +#: library/functions.rst:2070 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." @@ -3714,7 +3718,7 @@ msgstr "" "dikkat edin, çünkü bu, :keyword:`import` ifadesiyle bir ada bağlanan " "nesnedir." -#: library/functions.rst:2063 +#: library/functions.rst:2073 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" @@ -3722,7 +3726,7 @@ msgstr "" "Diğer yandan, ``from spam.ham import eggs, sausage as saus`` ifadesi şöyle " "sonuçlanır::" -#: library/functions.rst:2070 +#: library/functions.rst:2080 msgid "" "Here, the ``spam.ham`` module is returned from :func:`__import__`. From " "this object, the names to import are retrieved and assigned to their " @@ -3731,7 +3735,7 @@ msgstr "" "Burada, ``spam.ham`` modülü :func:`__import__` 'dan döndürülür. Bu objeden, " "içeri aktarılacak isimler alınır ve sırasıyla adlarına atanır." -#: library/functions.rst:2074 +#: library/functions.rst:2084 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." @@ -3739,7 +3743,7 @@ msgstr "" "Eğer ismiyle bir modülü (potansiyel olarak bir paket içinde) içe aktarmak " "istiyorsanız, :func:`importlib.import_module` 'i kullanın." -#: library/functions.rst:2077 +#: library/functions.rst:2087 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." @@ -3747,7 +3751,7 @@ msgstr "" "*level* için negatif değerler artık desteklenmiyor (bu, varsayılan değeri 0 " "olarak da değiştirir)." -#: library/functions.rst:2081 +#: library/functions.rst:2091 msgid "" "When the command line options :option:`-E` or :option:`-I` are being used, " "the environment variable :envvar:`PYTHONCASEOK` is now ignored." @@ -3755,11 +3759,11 @@ msgstr "" "Komut satırı opsiyonlarından :option:`-E` veya :option:`-I` kullanıldığında, " "ortam değişkeni :envvar:`PYTHONCASEOK` görmezden gelinir." -#: library/functions.rst:2086 +#: library/functions.rst:2096 msgid "Footnotes" msgstr "Dipnotlar" -#: library/functions.rst:2087 +#: library/functions.rst:2097 msgid "" "Note that the parser only accepts the Unix-style end of line convention. If " "you are reading the code from a file, make sure to use newline conversion " @@ -3774,7 +3778,7 @@ msgstr "" msgid "Boolean" msgstr "" -#: library/functions.rst:1860 +#: library/functions.rst:1870 msgid "type" msgstr "" @@ -3799,7 +3803,7 @@ msgstr "" msgid "__format__" msgstr "" -#: library/functions.rst:1744 +#: library/functions.rst:1754 msgid "string" msgstr "" @@ -3854,7 +3858,7 @@ msgstr "" msgid "text mode" msgstr "metin modu (varsayılan)" -#: library/functions.rst:2015 +#: library/functions.rst:2025 msgid "module" msgstr "" @@ -3862,25 +3866,25 @@ msgstr "" msgid "sys" msgstr "" -#: library/functions.rst:1744 +#: library/functions.rst:1754 #, fuzzy msgid "str() (built-in function)" msgstr "Gömülü Fonksiyonlar" -#: library/functions.rst:1860 +#: library/functions.rst:1870 #, fuzzy msgid "object" msgstr ":func:`object`" -#: library/functions.rst:2015 +#: library/functions.rst:2025 msgid "statement" msgstr "" -#: library/functions.rst:2015 +#: library/functions.rst:2025 msgid "import" msgstr "" -#: library/functions.rst:2015 +#: library/functions.rst:2025 msgid "builtins" msgstr "" diff --git a/library/importlib.po b/library/importlib.po index 3021cd390..b15cde84a 100644 --- a/library/importlib.po +++ b/library/importlib.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-18 22:33+0300\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -398,7 +398,7 @@ msgid "" msgstr "" #: library/importlib.rst:267 -msgid "Returns ``None`` when called instead of ``NotImplemented``." +msgid "Returns ``None`` when called instead of :data:`NotImplemented`." msgstr "" #: library/importlib.rst:273 diff --git a/library/inspect.po b/library/inspect.po index 38401f633..5947fef4e 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -897,12 +897,6 @@ msgstr "" #: library/inspect.rst:658 msgid "" -"If the passed object has a ``__signature__`` attribute, this function " -"returns it without further computations." -msgstr "" - -#: library/inspect.rst:661 -msgid "" "For objects defined in modules using stringized annotations (``from " "__future__ import annotations``), :func:`signature` will attempt to " "automatically un-stringize the annotations using :func:`get_annotations`. " @@ -911,7 +905,7 @@ msgid "" "func:`get_annotations` for instructions on how to use these parameters." msgstr "" -#: library/inspect.rst:670 +#: library/inspect.rst:667 msgid "" "Raises :exc:`ValueError` if no signature can be provided, and :exc:" "`TypeError` if that type of object is not supported. Also, if the " @@ -920,39 +914,47 @@ msgid "" "potentially raise any kind of exception." msgstr "" -#: library/inspect.rst:676 +#: library/inspect.rst:673 msgid "" "A slash(/) in the signature of a function denotes that the parameters prior " "to it are positional-only. For more info, see :ref:`the FAQ entry on " "positional-only parameters `." msgstr "" -#: library/inspect.rst:680 +#: library/inspect.rst:677 msgid "" "The *follow_wrapped* parameter was added. Pass ``False`` to get a signature " "of *callable* specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" -#: library/inspect.rst:789 +#: library/inspect.rst:793 msgid "The *globals*, *locals*, and *eval_str* parameters were added." msgstr "" -#: library/inspect.rst:691 +#: library/inspect.rst:688 msgid "" "Some callables may not be introspectable in certain implementations of " "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" -#: library/inspect.rst:698 +#: library/inspect.rst:694 +msgid "" +"If the passed object has a :attr:`!__signature__` attribute, we may use it " +"to create the signature. The exact semantics are an implementation detail " +"and are subject to unannounced changes. Consult the source code for current " +"semantics." +msgstr "" + +#: library/inspect.rst:702 msgid "" "A :class:`!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." msgstr "" -#: library/inspect.rst:703 +#: library/inspect.rst:707 msgid "" "The optional *parameters* argument is a sequence of :class:`Parameter` " "objects, which is validated to check that there are no parameters with " @@ -961,54 +963,54 @@ msgid "" "defaults follow parameters without defaults." msgstr "" -#: library/inspect.rst:709 +#: library/inspect.rst:713 msgid "" "The optional *return_annotation* argument can be an arbitrary Python object. " "It represents the \"return\" annotation of the callable." msgstr "" -#: library/inspect.rst:712 +#: library/inspect.rst:716 msgid "" ":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` " "to make a modified copy." msgstr "" -#: library/inspect.rst:715 +#: library/inspect.rst:719 msgid ":class:`!Signature` objects are now picklable and :term:`hashable`." msgstr "" -#: library/inspect.rst:720 +#: library/inspect.rst:724 msgid "A special class-level marker to specify absence of a return annotation." msgstr "" -#: library/inspect.rst:724 +#: library/inspect.rst:728 msgid "" "An ordered mapping of parameters' names to the corresponding :class:" "`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" -#: library/inspect.rst:1065 +#: library/inspect.rst:1069 msgid "" "Python only explicitly guaranteed that it preserved the declaration order of " "keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" -#: library/inspect.rst:735 +#: library/inspect.rst:739 msgid "" "The \"return\" annotation for the callable. If the callable has no " "\"return\" annotation, this attribute is set to :attr:`Signature.empty`." msgstr "" -#: library/inspect.rst:740 +#: library/inspect.rst:744 msgid "" "Create a mapping from positional and keyword arguments to parameters. " "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" -#: library/inspect.rst:746 +#: library/inspect.rst:750 msgid "" "Works the same way as :meth:`Signature.bind`, but allows the omission of " "some required arguments (mimics :func:`functools.partial` behavior.) " @@ -1016,7 +1018,7 @@ msgid "" "arguments do not match the signature." msgstr "" -#: library/inspect.rst:753 +#: library/inspect.rst:757 msgid "" "Create a new :class:`Signature` instance based on the instance :meth:" "`replace` was invoked on. It is possible to pass different *parameters* and/" @@ -1025,147 +1027,147 @@ msgid "" "Signature`, pass in :attr:`Signature.empty`." msgstr "" -#: library/inspect.rst:773 +#: library/inspect.rst:777 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " "*obj*." msgstr "" -#: library/inspect.rst:776 +#: library/inspect.rst:780 msgid "This method simplifies subclassing of :class:`Signature`:" msgstr "" -#: library/inspect.rst:785 +#: library/inspect.rst:789 msgid "Its behavior is otherwise identical to that of :func:`signature`." msgstr "" -#: library/inspect.rst:795 +#: library/inspect.rst:799 msgid "" ":class:`!Parameter` objects are *immutable*. Instead of modifying a :class:`!" "Parameter` object, you can use :meth:`Parameter.replace` to create a " "modified copy." msgstr "" -#: library/inspect.rst:799 +#: library/inspect.rst:803 msgid "Parameter objects are now picklable and :term:`hashable`." msgstr "" -#: library/inspect.rst:804 +#: library/inspect.rst:808 msgid "" "A special class-level marker to specify absence of default values and " "annotations." msgstr "" -#: library/inspect.rst:809 +#: library/inspect.rst:813 msgid "" "The name of the parameter as a string. The name must be a valid Python " "identifier." msgstr "" -#: library/inspect.rst:814 +#: library/inspect.rst:818 msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" -#: library/inspect.rst:818 +#: library/inspect.rst:822 msgid "" "These parameter names are now exposed by this module as names like " "``implicit0``." msgstr "" -#: library/inspect.rst:824 +#: library/inspect.rst:828 msgid "" "The default value for the parameter. If the parameter has no default value, " "this attribute is set to :attr:`Parameter.empty`." msgstr "" -#: library/inspect.rst:829 +#: library/inspect.rst:833 msgid "" "The annotation for the parameter. If the parameter has no annotation, this " "attribute is set to :attr:`Parameter.empty`." msgstr "" -#: library/inspect.rst:834 +#: library/inspect.rst:838 msgid "" "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 "" -#: library/inspect.rst:841 +#: library/inspect.rst:845 msgid "Name" msgstr "" -#: library/inspect.rst:841 +#: library/inspect.rst:845 msgid "Meaning" msgstr "" -#: library/inspect.rst:843 +#: library/inspect.rst:847 msgid "*POSITIONAL_ONLY*" msgstr "" -#: library/inspect.rst:843 +#: library/inspect.rst:847 msgid "" "Value must be supplied as a positional argument. Positional only parameters " "are those which appear before a ``/`` entry (if present) in a Python " "function definition." msgstr "" -#: library/inspect.rst:848 +#: library/inspect.rst:852 msgid "*POSITIONAL_OR_KEYWORD*" msgstr "" -#: library/inspect.rst:848 +#: library/inspect.rst:852 msgid "" "Value may be supplied as either a keyword or positional argument (this is " "the standard binding behaviour for functions implemented in Python.)" msgstr "" -#: library/inspect.rst:853 +#: library/inspect.rst:857 msgid "*VAR_POSITIONAL*" msgstr "" -#: library/inspect.rst:853 +#: library/inspect.rst:857 msgid "" "A tuple of positional arguments that aren't bound to any other parameter. " "This corresponds to a ``*args`` parameter in a Python function definition." msgstr "" -#: library/inspect.rst:858 +#: library/inspect.rst:862 msgid "*KEYWORD_ONLY*" msgstr "" -#: library/inspect.rst:858 +#: library/inspect.rst:862 msgid "" "Value must be supplied as a keyword argument. Keyword only parameters are " "those which appear after a ``*`` or ``*args`` entry in a Python function " "definition." msgstr "" -#: library/inspect.rst:863 +#: library/inspect.rst:867 msgid "*VAR_KEYWORD*" msgstr "" -#: library/inspect.rst:863 +#: library/inspect.rst:867 msgid "" "A dict of keyword arguments that aren't bound to any other parameter. This " "corresponds to a ``**kwargs`` parameter in a Python function definition." msgstr "" -#: library/inspect.rst:869 +#: library/inspect.rst:873 msgid "Example: print all keyword-only arguments without default values:" msgstr "" -#: library/inspect.rst:885 +#: library/inspect.rst:889 msgid "Describes a enum value of :attr:`Parameter.kind`." msgstr "" -#: library/inspect.rst:889 +#: library/inspect.rst:893 msgid "Example: print all descriptions of arguments:" msgstr "" -#: library/inspect.rst:906 +#: library/inspect.rst:910 msgid "" "Create a new :class:`Parameter` instance based on the instance replaced was " "invoked on. To override a :class:`!Parameter` attribute, pass the " @@ -1173,94 +1175,94 @@ msgid "" "a :class:`!Parameter`, pass :attr:`Parameter.empty`." msgstr "" -#: library/inspect.rst:924 +#: library/inspect.rst:928 msgid "" "In Python 3.3 :class:`Parameter` objects were allowed to have ``name`` set " "to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no " "longer permitted." msgstr "" -#: library/inspect.rst:931 +#: library/inspect.rst:935 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" -#: library/inspect.rst:936 +#: library/inspect.rst:940 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`." msgstr "" -#: library/inspect.rst:940 +#: library/inspect.rst:944 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" -#: library/inspect.rst:945 +#: library/inspect.rst:949 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." msgstr "" -#: library/inspect.rst:950 +#: library/inspect.rst:954 msgid "" ":attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :" "class:`collections.OrderedDict`." msgstr "" -#: library/inspect.rst:956 +#: library/inspect.rst:960 msgid "" "A tuple of positional arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" -#: library/inspect.rst:961 +#: library/inspect.rst:965 msgid "" "A dict of keyword arguments values. Dynamically computed from the :attr:" "`arguments` attribute." msgstr "" -#: library/inspect.rst:966 +#: library/inspect.rst:970 msgid "A reference to the parent :class:`Signature` object." msgstr "" -#: library/inspect.rst:970 +#: library/inspect.rst:974 msgid "Set default values for missing arguments." msgstr "" -#: library/inspect.rst:972 +#: library/inspect.rst:976 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." msgstr "" -#: library/inspect.rst:975 +#: library/inspect.rst:979 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" -#: library/inspect.rst:988 +#: library/inspect.rst:992 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " "functions:" msgstr "" -#: library/inspect.rst:1003 +#: library/inspect.rst:1007 msgid ":pep:`362` - Function Signature Object." msgstr "" -#: library/inspect.rst:1004 +#: library/inspect.rst:1008 msgid "The detailed specification, implementation details and examples." msgstr "" -#: library/inspect.rst:1010 +#: library/inspect.rst:1014 msgid "Classes and functions" msgstr "" -#: library/inspect.rst:1014 +#: library/inspect.rst:1018 msgid "" "Arrange the given list of classes into a hierarchy of nested lists. Where a " "nested list appears, it contains classes derived from the class whose entry " @@ -1271,19 +1273,19 @@ msgid "" "will appear multiple times." msgstr "" -#: library/inspect.rst:1025 +#: library/inspect.rst:1029 msgid "" "Get the names and default values of a Python function's parameters. A :term:" "`named tuple` is returned:" msgstr "" -#: library/inspect.rst:1028 +#: library/inspect.rst:1032 msgid "" "``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, " "annotations)``" msgstr "" -#: library/inspect.rst:1031 +#: library/inspect.rst:1035 msgid "" "*args* is a list of the positional parameter names. *varargs* is the name of " "the ``*`` parameter or ``None`` if arbitrary positional arguments are not " @@ -1298,7 +1300,7 @@ msgid "" "report the function return value annotation (if any)." msgstr "" -#: library/inspect.rst:1046 +#: library/inspect.rst:1050 msgid "" "Note that :func:`signature` and :ref:`Signature Object ` provide the recommended API for callable introspection, and support " @@ -1308,14 +1310,14 @@ msgid "" "``inspect`` module API." msgstr "" -#: library/inspect.rst:1053 +#: library/inspect.rst:1057 msgid "" "This function is now based on :func:`signature`, but still ignores " "``__wrapped__`` attributes and includes the already bound first parameter in " "the signature output for bound methods." msgstr "" -#: library/inspect.rst:1058 +#: library/inspect.rst:1062 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 " @@ -1323,7 +1325,7 @@ msgid "" "code migrating away from the legacy :func:`getargspec` API." msgstr "" -#: library/inspect.rst:1073 +#: library/inspect.rst:1077 msgid "" "Get information about arguments passed into a particular frame. A :term:" "`named tuple` ``ArgInfo(args, varargs, keywords, locals)`` is returned. " @@ -1332,18 +1334,18 @@ msgid "" "dictionary of the given frame." msgstr "" -#: library/inspect.rst:1090 +#: library/inspect.rst:1094 msgid "This function was inadvertently marked as deprecated in Python 3.5." msgstr "" -#: library/inspect.rst:1085 +#: library/inspect.rst:1089 msgid "" "Format a pretty argument spec from the four values returned by :func:" "`getargvalues`. The format\\* arguments are the corresponding optional " "formatting functions that are called to turn names and values into strings." msgstr "" -#: library/inspect.rst:1095 +#: library/inspect.rst:1099 msgid "" "Return a tuple of class cls's base classes, including cls, in method " "resolution order. No class appears more than once in this tuple. Note that " @@ -1351,7 +1353,7 @@ msgid "" "user-defined metatype is in use, cls will be the first element of the tuple." msgstr "" -#: library/inspect.rst:1103 +#: library/inspect.rst:1107 msgid "" "Bind the *args* and *kwds* to the argument names of the Python function or " "method *func*, as if it was called with them. For bound methods, bind also " @@ -1364,11 +1366,11 @@ msgid "" "example:" msgstr "" -#: library/inspect.rst:1129 +#: library/inspect.rst:1133 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" -#: library/inspect.rst:1135 +#: library/inspect.rst:1139 msgid "" "Get the mapping of external name references in a Python function or method " "*func* to their current values. A :term:`named tuple` " @@ -1380,18 +1382,18 @@ msgid "" "builtins." msgstr "" -#: library/inspect.rst:1144 +#: library/inspect.rst:1148 msgid "" ":exc:`TypeError` is raised if *func* is not a Python function or method." msgstr "" -#: library/inspect.rst:1151 +#: library/inspect.rst:1155 msgid "" "Get the object wrapped by *func*. It follows the chain of :attr:" "`__wrapped__` attributes returning the last object in the chain." msgstr "" -#: library/inspect.rst:1154 +#: library/inspect.rst:1158 msgid "" "*stop* is an optional callback accepting an object in the wrapper chain as " "its sole argument that allows the unwrapping to be terminated early if the " @@ -1401,68 +1403,68 @@ msgid "" "``__signature__`` attribute defined." msgstr "" -#: library/inspect.rst:1161 +#: library/inspect.rst:1165 msgid ":exc:`ValueError` is raised if a cycle is encountered." msgstr "" -#: library/inspect.rst:1168 +#: library/inspect.rst:1172 msgid "Compute the annotations dict for an object." msgstr "" -#: library/inspect.rst:1170 +#: library/inspect.rst:1174 msgid "" "``obj`` may be a callable, class, or module. Passing in an object of any " "other type raises :exc:`TypeError`." msgstr "" -#: library/inspect.rst:1173 +#: library/inspect.rst:1177 msgid "" "Returns a dict. ``get_annotations()`` returns a new dict every time it's " "called; calling it twice on the same object will return two different but " "equivalent dicts." msgstr "" -#: library/inspect.rst:1177 +#: library/inspect.rst:1181 msgid "This function handles several details for you:" msgstr "" -#: library/inspect.rst:1179 +#: library/inspect.rst:1183 msgid "" "If ``eval_str`` is true, values of type ``str`` will be un-stringized using :" "func:`eval()`. This is intended for use with stringized annotations (``from " "__future__ import annotations``)." msgstr "" -#: library/inspect.rst:1183 +#: library/inspect.rst:1187 msgid "" "If ``obj`` doesn't have an annotations dict, returns an empty dict. " "(Functions and methods always have an annotations dict; classes, modules, " "and other types of callables may not.)" msgstr "" -#: library/inspect.rst:1187 +#: library/inspect.rst:1191 msgid "" "Ignores inherited annotations on classes. If a class doesn't have its own " "annotations dict, returns an empty dict." msgstr "" -#: library/inspect.rst:1189 +#: library/inspect.rst:1193 msgid "" "All accesses to object members and dict values are done using ``getattr()`` " "and ``dict.get()`` for safety." msgstr "" -#: library/inspect.rst:1191 +#: library/inspect.rst:1195 msgid "Always, always, always returns a freshly created dict." msgstr "" -#: library/inspect.rst:1193 +#: library/inspect.rst:1197 msgid "" "``eval_str`` controls whether or not values of type ``str`` are replaced " "with the result of calling :func:`eval()` on those values:" msgstr "" -#: library/inspect.rst:1196 +#: library/inspect.rst:1200 msgid "" "If eval_str is true, :func:`eval()` is called on values of type ``str``. " "(Note that ``get_annotations`` doesn't catch exceptions; if :func:`eval()` " @@ -1470,12 +1472,12 @@ msgid "" "call.)" msgstr "" -#: library/inspect.rst:1200 +#: library/inspect.rst:1204 msgid "" "If eval_str is false (the default), values of type ``str`` are unchanged." msgstr "" -#: library/inspect.rst:1202 +#: library/inspect.rst:1206 msgid "" "``globals`` and ``locals`` are passed in to :func:`eval()`; see the " "documentation for :func:`eval()` for more information. If ``globals`` or " @@ -1483,35 +1485,35 @@ msgid "" "specific default, contingent on ``type(obj)``:" msgstr "" -#: library/inspect.rst:1207 +#: library/inspect.rst:1211 msgid "If ``obj`` is a module, ``globals`` defaults to ``obj.__dict__``." msgstr "" -#: library/inspect.rst:1208 +#: library/inspect.rst:1212 msgid "" "If ``obj`` is a class, ``globals`` defaults to ``sys.modules[obj.__module__]." "__dict__`` and ``locals`` defaults to the ``obj`` class namespace." msgstr "" -#: library/inspect.rst:1211 +#: library/inspect.rst:1215 msgid "" "If ``obj`` is a callable, ``globals`` defaults to :attr:`obj.__globals__ " "`, although if ``obj`` is a wrapped function (using :" "func:`functools.update_wrapper`) it is first unwrapped." msgstr "" -#: library/inspect.rst:1216 +#: library/inspect.rst:1220 msgid "" "Calling ``get_annotations`` is best practice for accessing the annotations " "dict of any object. See :ref:`annotations-howto` for more information on " "annotations best practices." msgstr "" -#: library/inspect.rst:1226 +#: library/inspect.rst:1230 msgid "The interpreter stack" msgstr "" -#: library/inspect.rst:1228 +#: library/inspect.rst:1232 msgid "" "Some of the following functions return :class:`FrameInfo` objects. For " "backwards compatibility these objects allow tuple-like operations on all " @@ -1519,95 +1521,95 @@ msgid "" "may be removed in the future." msgstr "" -#: library/inspect.rst:1237 +#: library/inspect.rst:1241 msgid "The :ref:`frame object ` that the record corresponds to." msgstr "" -#: library/inspect.rst:1241 +#: library/inspect.rst:1245 msgid "" "The file name associated with the code being executed by the frame this " "record corresponds to." msgstr "" -#: library/inspect.rst:1246 +#: library/inspect.rst:1250 msgid "" "The line number of the current line associated with the code being executed " "by the frame this record corresponds to." msgstr "" -#: library/inspect.rst:1251 +#: library/inspect.rst:1255 msgid "" "The function name that is being executed by the frame this record " "corresponds to." msgstr "" -#: library/inspect.rst:1255 +#: library/inspect.rst:1259 msgid "" "A list of lines of context from the source code that's being executed by the " "frame this record corresponds to." msgstr "" -#: library/inspect.rst:1299 +#: library/inspect.rst:1303 msgid "" "The index of the current line being executed in the :attr:`code_context` " "list." msgstr "" -#: library/inspect.rst:1264 +#: library/inspect.rst:1268 msgid "" "A :class:`dis.Positions` object containing the start line number, end line " "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this record corresponds to." msgstr "" -#: library/inspect.rst:1268 +#: library/inspect.rst:1272 msgid "Return a :term:`named tuple` instead of a :class:`tuple`." msgstr "" -#: library/inspect.rst:1271 +#: library/inspect.rst:1275 msgid "" ":class:`!FrameInfo` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" -#: library/inspect.rst:1280 +#: library/inspect.rst:1284 msgid "" "The file name associated with the code being executed by the frame this " "traceback corresponds to." msgstr "" -#: library/inspect.rst:1285 +#: library/inspect.rst:1289 msgid "" "The line number of the current line associated with the code being executed " "by the frame this traceback corresponds to." msgstr "" -#: library/inspect.rst:1290 +#: library/inspect.rst:1294 msgid "" "The function name that is being executed by the frame this traceback " "corresponds to." msgstr "" -#: library/inspect.rst:1294 +#: library/inspect.rst:1298 msgid "" "A list of lines of context from the source code that's being executed by the " "frame this traceback corresponds to." msgstr "" -#: library/inspect.rst:1303 +#: library/inspect.rst:1307 msgid "" "A :class:`dis.Positions` object containing the start line number, end line " "number, start column offset, and end column offset associated with the " "instruction being executed by the frame this traceback corresponds to." msgstr "" -#: library/inspect.rst:1308 +#: library/inspect.rst:1312 msgid "" ":class:`!Traceback` is now a class instance (that is backwards compatible " "with the previous :term:`named tuple`)." msgstr "" -#: library/inspect.rst:1315 +#: library/inspect.rst:1319 msgid "" "Keeping references to frame objects, as found in the first element of the " "frame records these functions return, can cause your program to create " @@ -1619,7 +1621,7 @@ msgid "" "consumption which occurs." msgstr "" -#: library/inspect.rst:1323 +#: library/inspect.rst:1327 msgid "" "Though the cycle detector will catch these, destruction of the frames (and " "local variables) can be made deterministic by removing the cycle in a :" @@ -1627,31 +1629,31 @@ msgid "" "disabled when Python was compiled or using :func:`gc.disable`. For example::" msgstr "" -#: library/inspect.rst:1335 +#: library/inspect.rst:1339 msgid "" "If you want to keep the frame around (for example to print a traceback " "later), you can also break reference cycles by using the :meth:`frame.clear` " "method." msgstr "" -#: library/inspect.rst:1339 +#: library/inspect.rst:1343 msgid "" "The optional *context* argument supported by most of these functions " "specifies the number of lines of context to return, which are centered " "around the current line." msgstr "" -#: library/inspect.rst:1346 +#: library/inspect.rst:1350 msgid "" "Get information about a frame or traceback object. A :class:`Traceback` " "object is returned." msgstr "" -#: library/inspect.rst:1349 +#: library/inspect.rst:1353 msgid "A :class:`Traceback` object is returned instead of a named tuple." msgstr "" -#: library/inspect.rst:1354 +#: library/inspect.rst:1358 msgid "" "Get a list of :class:`FrameInfo` objects for a frame and all outer frames. " "These frames represent the calls that lead to the creation of *frame*. The " @@ -1659,17 +1661,17 @@ msgid "" "represents the outermost call on *frame*'s stack." msgstr "" -#: library/inspect.rst:1374 library/inspect.rst:1415 +#: library/inspect.rst:1378 library/inspect.rst:1419 msgid "" "A list of :term:`named tuples ` ``FrameInfo(frame, filename, " "lineno, function, code_context, index)`` is returned." msgstr "" -#: library/inspect.rst:1379 library/inspect.rst:1420 +#: library/inspect.rst:1383 library/inspect.rst:1424 msgid "A list of :class:`FrameInfo` objects is returned." msgstr "" -#: library/inspect.rst:1369 +#: library/inspect.rst:1373 msgid "" "Get a list of :class:`FrameInfo` objects for a traceback's frame and all " "inner frames. These frames represent calls made as a consequence of " @@ -1677,11 +1679,11 @@ msgid "" "represents where the exception was raised." msgstr "" -#: library/inspect.rst:1384 +#: library/inspect.rst:1388 msgid "Return the frame object for the caller's stack frame." msgstr "" -#: library/inspect.rst:1388 +#: library/inspect.rst:1392 msgid "" "This function relies on Python stack frame support in the interpreter, which " "isn't guaranteed to exist in all implementations of Python. If running in " @@ -1689,14 +1691,14 @@ msgid "" "``None``." msgstr "" -#: library/inspect.rst:1396 +#: library/inspect.rst:1400 msgid "" "Return a list of :class:`FrameInfo` objects for the caller's stack. The " "first entry in the returned list represents the caller; the last entry " "represents the outermost call on the stack." msgstr "" -#: library/inspect.rst:1410 +#: library/inspect.rst:1414 msgid "" "Return a list of :class:`FrameInfo` objects for the stack between the " "current frame and the frame in which an exception currently being handled " @@ -1704,11 +1706,11 @@ msgid "" "entry represents where the exception was raised." msgstr "" -#: library/inspect.rst:1424 +#: library/inspect.rst:1428 msgid "Fetching attributes statically" msgstr "" -#: library/inspect.rst:1426 +#: library/inspect.rst:1430 msgid "" "Both :func:`getattr` and :func:`hasattr` can trigger code execution when " "fetching or checking for the existence of attributes. Descriptors, like " @@ -1716,20 +1718,20 @@ msgid "" "`~object.__getattribute__` may be called." msgstr "" -#: library/inspect.rst:1432 +#: library/inspect.rst:1436 msgid "" "For cases where you want passive introspection, like documentation tools, " "this can be inconvenient. :func:`getattr_static` has the same signature as :" "func:`getattr` but avoids executing code when it fetches attributes." msgstr "" -#: library/inspect.rst:1438 +#: library/inspect.rst:1442 msgid "" "Retrieve attributes without triggering dynamic lookup via the descriptor " "protocol, :meth:`~object.__getattr__` or :meth:`~object.__getattribute__`." msgstr "" -#: library/inspect.rst:1442 +#: library/inspect.rst:1446 msgid "" "Note: this function may not be able to retrieve all attributes that getattr " "can fetch (like dynamically created attributes) and may find attributes that " @@ -1737,31 +1739,31 @@ msgid "" "return descriptors objects instead of instance members." msgstr "" -#: library/inspect.rst:1448 +#: library/inspect.rst:1452 msgid "" "If the instance :attr:`~object.__dict__` is shadowed by another member (for " "example a property) then this function will be unable to find instance " "members." msgstr "" -#: library/inspect.rst:1454 +#: library/inspect.rst:1458 msgid "" ":func:`getattr_static` does not resolve descriptors, for example slot " "descriptors or getset descriptors on objects implemented in C. The " "descriptor object is returned instead of the underlying attribute." msgstr "" -#: library/inspect.rst:1458 +#: library/inspect.rst:1462 msgid "" "You can handle these with code like the following. Note that for arbitrary " "getset descriptors invoking these may trigger code execution::" msgstr "" -#: library/inspect.rst:1484 +#: library/inspect.rst:1488 msgid "Current State of Generators, Coroutines, and Asynchronous Generators" msgstr "" -#: library/inspect.rst:1486 +#: library/inspect.rst:1490 msgid "" "When implementing coroutine schedulers and for other advanced uses of " "generators, it is useful to determine whether a generator is currently " @@ -1770,31 +1772,31 @@ msgid "" "generator to be determined easily." msgstr "" -#: library/inspect.rst:1494 +#: library/inspect.rst:1498 msgid "Get current state of a generator-iterator." msgstr "" -#: library/inspect.rst:1512 library/inspect.rst:1529 +#: library/inspect.rst:1516 library/inspect.rst:1533 msgid "Possible states are:" msgstr "" -#: library/inspect.rst:1498 +#: library/inspect.rst:1502 msgid "GEN_CREATED: Waiting to start execution." msgstr "" -#: library/inspect.rst:1499 +#: library/inspect.rst:1503 msgid "GEN_RUNNING: Currently being executed by the interpreter." msgstr "" -#: library/inspect.rst:1500 +#: library/inspect.rst:1504 msgid "GEN_SUSPENDED: Currently suspended at a yield expression." msgstr "" -#: library/inspect.rst:1501 +#: library/inspect.rst:1505 msgid "GEN_CLOSED: Execution has completed." msgstr "" -#: library/inspect.rst:1507 +#: library/inspect.rst:1511 msgid "" "Get current state of a coroutine object. The function is intended to be " "used with coroutine objects created by :keyword:`async def` functions, but " @@ -1802,23 +1804,23 @@ msgid "" "``cr_frame`` attributes." msgstr "" -#: library/inspect.rst:1514 +#: library/inspect.rst:1518 msgid "CORO_CREATED: Waiting to start execution." msgstr "" -#: library/inspect.rst:1515 +#: library/inspect.rst:1519 msgid "CORO_RUNNING: Currently being executed by the interpreter." msgstr "" -#: library/inspect.rst:1516 +#: library/inspect.rst:1520 msgid "CORO_SUSPENDED: Currently suspended at an await expression." msgstr "" -#: library/inspect.rst:1517 +#: library/inspect.rst:1521 msgid "CORO_CLOSED: Execution has completed." msgstr "" -#: library/inspect.rst:1523 +#: library/inspect.rst:1527 msgid "" "Get current state of an asynchronous generator object. The function is " "intended to be used with asynchronous iterator objects created by :keyword:" @@ -1827,30 +1829,30 @@ msgid "" "``ag_frame`` attributes." msgstr "" -#: library/inspect.rst:1531 +#: library/inspect.rst:1535 msgid "AGEN_CREATED: Waiting to start execution." msgstr "" -#: library/inspect.rst:1532 +#: library/inspect.rst:1536 msgid "AGEN_RUNNING: Currently being executed by the interpreter." msgstr "" -#: library/inspect.rst:1533 +#: library/inspect.rst:1537 msgid "AGEN_SUSPENDED: Currently suspended at a yield expression." msgstr "" -#: library/inspect.rst:1534 +#: library/inspect.rst:1538 msgid "AGEN_CLOSED: Execution has completed." msgstr "" -#: library/inspect.rst:1538 +#: library/inspect.rst:1542 msgid "" "The current internal state of the generator can also be queried. This is " "mostly useful for testing purposes, to ensure that internal state is being " "updated as expected:" msgstr "" -#: library/inspect.rst:1544 +#: library/inspect.rst:1548 msgid "" "Get the mapping of live local variables in *generator* to their current " "values. A dictionary is returned that maps from variable names to values. " @@ -1858,14 +1860,14 @@ msgid "" "generator, and all the same caveats apply." msgstr "" -#: library/inspect.rst:1549 +#: library/inspect.rst:1553 msgid "" "If *generator* is a :term:`generator` with no currently associated frame, " "then an empty dictionary is returned. :exc:`TypeError` is raised if " "*generator* is not a Python generator object." msgstr "" -#: library/inspect.rst:1555 +#: library/inspect.rst:1559 msgid "" "This function relies on the generator exposing a Python stack frame for " "introspection, which isn't guaranteed to be the case in all implementations " @@ -1873,79 +1875,79 @@ msgid "" "dictionary." msgstr "" -#: library/inspect.rst:1564 +#: library/inspect.rst:1568 msgid "" "This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " "for coroutine objects created by :keyword:`async def` functions." msgstr "" -#: library/inspect.rst:1571 +#: library/inspect.rst:1575 msgid "" "This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " "for asynchronous generator objects created by :keyword:`async def` functions " "which use the :keyword:`yield` statement." msgstr "" -#: library/inspect.rst:1581 +#: library/inspect.rst:1585 msgid "Code Objects Bit Flags" msgstr "" -#: library/inspect.rst:1583 +#: library/inspect.rst:1587 msgid "" "Python code objects have a :attr:`~codeobject.co_flags` attribute, which is " "a bitmap of the following flags:" msgstr "" -#: library/inspect.rst:1588 +#: library/inspect.rst:1592 msgid "The code object is optimized, using fast locals." msgstr "" -#: library/inspect.rst:1592 +#: library/inspect.rst:1596 msgid "" "If set, a new dict will be created for the frame's :attr:`~frame.f_locals` " "when the code object is executed." msgstr "" -#: library/inspect.rst:1597 +#: library/inspect.rst:1601 msgid "The code object has a variable positional parameter (``*args``-like)." msgstr "" -#: library/inspect.rst:1601 +#: library/inspect.rst:1605 msgid "The code object has a variable keyword parameter (``**kwargs``-like)." msgstr "" -#: library/inspect.rst:1605 +#: library/inspect.rst:1609 msgid "The flag is set when the code object is a nested function." msgstr "" -#: library/inspect.rst:1609 +#: library/inspect.rst:1613 msgid "" "The flag is set when the code object is a generator function, i.e. a " "generator object is returned when the code object is executed." msgstr "" -#: library/inspect.rst:1614 +#: library/inspect.rst:1618 msgid "" "The flag is set when the code object is a coroutine function. When the code " "object is executed it returns a coroutine object. See :pep:`492` for more " "details." msgstr "" -#: library/inspect.rst:1622 +#: library/inspect.rst:1626 msgid "" "The flag is used to transform generators into generator-based coroutines. " "Generator objects with this flag can be used in ``await`` expression, and " "can ``yield from`` coroutine objects. See :pep:`492` for more details." msgstr "" -#: library/inspect.rst:1631 +#: library/inspect.rst:1635 msgid "" "The flag is set when the code object is an asynchronous generator function. " "When the code object is executed it returns an asynchronous generator " "object. See :pep:`525` for more details." msgstr "" -#: library/inspect.rst:1638 +#: library/inspect.rst:1642 msgid "" "The flags are specific to CPython, and may not be defined in other Python " "implementations. Furthermore, the flags are an implementation detail, and " @@ -1953,39 +1955,39 @@ msgid "" "use public APIs from the :mod:`inspect` module for any introspection needs." msgstr "" -#: library/inspect.rst:1646 +#: library/inspect.rst:1650 msgid "Buffer flags" msgstr "" -#: library/inspect.rst:1650 +#: library/inspect.rst:1654 msgid "" "This is an :class:`enum.IntFlag` that represents the flags that can be " "passed to the :meth:`~object.__buffer__` method of objects implementing the :" "ref:`buffer protocol `." msgstr "" -#: library/inspect.rst:1654 +#: library/inspect.rst:1658 msgid "The meaning of the flags is explained at :ref:`buffer-request-types`." msgstr "" -#: library/inspect.rst:1681 +#: library/inspect.rst:1685 msgid "Command Line Interface" msgstr "" -#: library/inspect.rst:1683 +#: library/inspect.rst:1687 msgid "" "The :mod:`inspect` module also provides a basic introspection capability " "from the command line." msgstr "" -#: library/inspect.rst:1688 +#: library/inspect.rst:1692 msgid "" "By default, accepts the name of a module and prints the source of that " "module. A class or function within the module can be printed instead by " "appended a colon and the qualified name of the target object." msgstr "" -#: library/inspect.rst:1694 +#: library/inspect.rst:1698 msgid "" "Print information about the specified object rather than the source code" msgstr "" diff --git a/library/itertools.po b/library/itertools.po index de9928f65..e9c09a674 100644 --- a/library/itertools.po +++ b/library/itertools.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -778,32 +778,42 @@ msgid "" "predicate is true. Roughly equivalent to::" msgstr "" -#: library/itertools.rst:686 +#: library/itertools.rst:683 +msgid "" +"Note, the element that first fails the predicate condition is consumed from " +"the input iterator and there is no way to access it. This could be an issue " +"if an application wants to further consume the input iterator after " +"takewhile has been run to exhaustion. To work around this problem, consider " +"using `more-iterools before_and_after() `_ instead." +msgstr "" + +#: library/itertools.rst:694 msgid "Return *n* independent iterators from a single iterable." msgstr "" -#: library/itertools.rst:688 +#: library/itertools.rst:696 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 "" -#: library/itertools.rst:707 +#: library/itertools.rst:715 msgid "" "Once a :func:`tee` has been created, the original *iterable* should not be " "used anywhere else; otherwise, the *iterable* could get advanced without the " "tee objects being informed." msgstr "" -#: library/itertools.rst:711 +#: library/itertools.rst:719 msgid "" "``tee`` iterators are not threadsafe. A :exc:`RuntimeError` may be raised " "when simultaneously using iterators returned by the same :func:`tee` call, " "even if the original *iterable* is threadsafe." msgstr "" -#: library/itertools.rst:715 +#: library/itertools.rst:723 msgid "" "This itertool may require significant auxiliary storage (depending on how " "much temporary data needs to be stored). In general, if one iterator uses " @@ -811,7 +821,7 @@ msgid "" "func:`list` instead of :func:`tee`." msgstr "" -#: library/itertools.rst:723 +#: library/itertools.rst:731 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 " @@ -819,7 +829,7 @@ msgid "" "Roughly equivalent to::" msgstr "" -#: library/itertools.rst:747 +#: library/itertools.rst:755 msgid "" "If one of the iterables is potentially infinite, then the :func:" "`zip_longest` function should be wrapped with something that limits the " @@ -827,29 +837,29 @@ msgid "" "specified, *fillvalue* defaults to ``None``." msgstr "" -#: library/itertools.rst:756 +#: library/itertools.rst:764 msgid "Itertools Recipes" msgstr "" -#: library/itertools.rst:758 +#: library/itertools.rst:766 msgid "" "This section shows recipes for creating an extended toolset using the " "existing itertools as building blocks." msgstr "" -#: library/itertools.rst:761 +#: library/itertools.rst:769 msgid "" "The primary purpose of the itertools recipes is educational. The recipes " "show various ways of thinking about individual tools — for example, that " "``chain.from_iterable`` is related to the concept of flattening. The " "recipes also give ideas about ways that the tools can be combined — for " -"example, how ``compress()`` and ``range()`` can work together. The recipes " +"example, how ``starmap()`` and ``repeat()`` can work together. The recipes " "also show patterns for using itertools with the :mod:`operator` and :mod:" "`collections` modules as well as with the built-in itertools such as " "``map()``, ``filter()``, ``reversed()``, and ``enumerate()``." msgstr "" -#: library/itertools.rst:770 +#: library/itertools.rst:778 msgid "" "A secondary purpose of the recipes is to serve as an incubator. The " "``accumulate()``, ``compress()``, and ``pairwise()`` itertools started out " @@ -857,14 +867,14 @@ msgid "" "recipes are being tested to see whether they prove their worth." msgstr "" -#: library/itertools.rst:775 +#: library/itertools.rst:783 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 "" -#: library/itertools.rst:781 +#: library/itertools.rst:789 msgid "" "Many of the recipes offer the same high performance as the underlying " "toolset. Superior memory performance is kept by processing elements one at a " @@ -875,6 +885,6 @@ msgid "" "term:`generator`\\s which incur interpreter overhead." msgstr "" -#: library/itertools.rst:1027 +#: library/itertools.rst:989 msgid "The following recipes have a more mathematical flavor:" msgstr "" diff --git a/library/logging.po b/library/logging.po index 10dc080e9..b6a8e7b3b 100644 --- a/library/logging.po +++ b/library/logging.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -121,6 +121,36 @@ msgstr "" #: library/logging.rst:82 msgid "" +"This is the logger's name, and is the value that was passed to :func:" +"`getLogger` to obtain the logger." +msgstr "" + +#: library/logging.rst:145 +msgid "This attribute should be treated as read-only." +msgstr "" + +#: library/logging.rst:89 +msgid "The threshold of this logger, as set by the :meth:`setLevel` method." +msgstr "" + +#: library/logging.rst:91 +msgid "" +"Do not set this attribute directly - always use :meth:`setLevel`, which has " +"checks for the level passed to it." +msgstr "" + +#: library/logging.rst:96 +msgid "" +"The parent logger of this logger. It may change based on later instantiation " +"of loggers which are higher up in the namespace hierarchy." +msgstr "" + +#: library/logging.rst:99 +msgid "This value should be treated as read-only." +msgstr "" + +#: library/logging.rst:103 +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 " @@ -128,13 +158,13 @@ msgid "" "loggers in question are considered." msgstr "" -#: library/logging.rst:88 +#: library/logging.rst:109 msgid "" "If this evaluates to false, logging messages are not passed to the handlers " "of ancestor loggers." msgstr "" -#: library/logging.rst:91 +#: library/logging.rst:112 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 " @@ -147,11 +177,11 @@ msgid "" "handle, and propagation stops at that point." msgstr "" -#: library/logging.rst:100 +#: library/logging.rst:121 msgid "The constructor sets this attribute to ``True``." msgstr "" -#: library/logging.rst:102 +#: library/logging.rst:123 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 " @@ -163,7 +193,24 @@ msgid "" "rest." msgstr "" -#: library/logging.rst:113 +#: library/logging.rst:134 +msgid "The list of handlers directly attached to this logger instance." +msgstr "" + +#: library/logging.rst:136 +msgid "" +"This attribute should be treated as read-only; it is normally changed via " +"the :meth:`addHandler` and :meth:`removeHandler` methods, which use locks to " +"ensure thread-safe operation." +msgstr "" + +#: library/logging.rst:142 +msgid "" +"This attribute disables handling of any events. It is set to ``False`` in " +"the initializer, and only changed by logging configuration code." +msgstr "" + +#: library/logging.rst:149 msgid "" "Sets the threshold for this logger to *level*. Logging messages which are " "less severe than *level* will be ignored; logging messages which have " @@ -172,7 +219,7 @@ msgid "" "severity level than *level*." msgstr "" -#: library/logging.rst:118 +#: library/logging.rst:154 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 " @@ -180,32 +227,32 @@ msgid "" "the root logger is created with level :const:`WARNING`." msgstr "" -#: library/logging.rst:123 +#: library/logging.rst:159 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 "" -#: library/logging.rst:127 +#: library/logging.rst:163 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 "" -#: library/logging.rst:131 +#: library/logging.rst:167 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 "" -#: library/logging.rst:477 +#: library/logging.rst:513 msgid "See :ref:`levels` for a list of levels." msgstr "" -#: library/logging.rst:136 +#: library/logging.rst:172 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`. " @@ -214,7 +261,7 @@ msgid "" "expect to be passed integers." msgstr "" -#: library/logging.rst:146 +#: library/logging.rst:182 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." @@ -222,7 +269,7 @@ msgid "" "meth:`getEffectiveLevel`." msgstr "" -#: library/logging.rst:154 +#: library/logging.rst:190 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 " @@ -231,7 +278,7 @@ msgid "" "integer, typically one of :const:`logging.DEBUG`, :const:`logging.INFO` etc." msgstr "" -#: library/logging.rst:164 +#: library/logging.rst:200 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 " @@ -240,7 +287,7 @@ msgid "" "named using e.g. ``__name__`` rather than a literal string." msgstr "" -#: library/logging.rst:175 +#: library/logging.rst:211 msgid "" "Returns a set of loggers which are immediate children of this logger. So for " "example ``logging.getLogger().getChildren()`` might return a set containing " @@ -250,7 +297,7 @@ msgid "" "include one named ``foo.bar.baz``." msgstr "" -#: library/logging.rst:187 +#: library/logging.rst:223 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 " @@ -260,13 +307,13 @@ msgid "" "are supplied." msgstr "" -#: library/logging.rst:193 +#: library/logging.rst:229 msgid "" "There are four keyword arguments in *kwargs* which are inspected: " "*exc_info*, *stack_info*, *stacklevel* and *extra*." msgstr "" -#: library/logging.rst:196 +#: library/logging.rst:232 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 " @@ -275,7 +322,7 @@ msgid "" "information." msgstr "" -#: library/logging.rst:1116 +#: library/logging.rst:1152 msgid "" "The second optional keyword argument is *stack_info*, which defaults to " "``False``. If true, stack information is added to the logging message, " @@ -287,20 +334,20 @@ msgid "" "handlers." msgstr "" -#: library/logging.rst:1125 +#: library/logging.rst:1161 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 "" -#: library/logging.rst:1133 +#: library/logging.rst:1169 msgid "" "This mimics the ``Traceback (most recent call last):`` which is used when " "displaying exception frames." msgstr "" -#: library/logging.rst:221 +#: library/logging.rst:257 msgid "" "The third optional keyword argument is *stacklevel*, which defaults to " "``1``. If greater than 1, the corresponding number of stack frames are " @@ -312,7 +359,7 @@ msgid "" "module." msgstr "" -#: library/logging.rst:229 +#: library/logging.rst:265 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` " @@ -321,18 +368,18 @@ msgid "" "incorporated into logged messages. For example::" msgstr "" -#: library/logging.rst:241 +#: library/logging.rst:277 msgid "would print something like" msgstr "" -#: library/logging.rst:247 +#: library/logging.rst:283 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 "" -#: library/logging.rst:251 +#: library/logging.rst:287 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:" @@ -343,7 +390,7 @@ msgid "" "dictionary with these keys." msgstr "" -#: library/logging.rst:1164 +#: library/logging.rst:1200 msgid "" "While this might be annoying, this feature is intended for use in " "specialized circumstances, such as multi-threaded servers where the same " @@ -354,78 +401,78 @@ msgid "" "particular :class:`Handler`\\ s." msgstr "" -#: library/logging.rst:265 +#: library/logging.rst:301 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 "" -#: library/logging.rst:1175 +#: library/logging.rst:1211 msgid "The *stack_info* parameter was added." msgstr "" -#: library/logging.rst:272 +#: library/logging.rst:308 msgid "The *exc_info* parameter can now accept exception instances." msgstr "" -#: library/logging.rst:275 +#: library/logging.rst:311 msgid "The *stacklevel* parameter was added." msgstr "" -#: library/logging.rst:281 +#: library/logging.rst:317 msgid "" "Logs a message with level :const:`INFO` on this logger. The arguments are " "interpreted as for :meth:`debug`." msgstr "" -#: library/logging.rst:287 +#: library/logging.rst:323 msgid "" "Logs a message with level :const:`WARNING` on this logger. The arguments are " "interpreted as for :meth:`debug`." msgstr "" -#: library/logging.rst:290 +#: library/logging.rst:326 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 "" -#: library/logging.rst:296 +#: library/logging.rst:332 msgid "" "Logs a message with level :const:`ERROR` on this logger. The arguments are " "interpreted as for :meth:`debug`." msgstr "" -#: library/logging.rst:302 +#: library/logging.rst:338 msgid "" "Logs a message with level :const:`CRITICAL` on this logger. The arguments " "are interpreted as for :meth:`debug`." msgstr "" -#: library/logging.rst:308 +#: library/logging.rst:344 msgid "" "Logs a message with integer level *level* on this logger. The other " "arguments are interpreted as for :meth:`debug`." msgstr "" -#: library/logging.rst:314 +#: library/logging.rst:350 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 "" -#: library/logging.rst:321 +#: library/logging.rst:357 msgid "Adds the specified filter *filter* to this logger." msgstr "" -#: library/logging.rst:326 +#: library/logging.rst:362 msgid "Removes the specified filter *filter* from this logger." msgstr "" -#: library/logging.rst:331 +#: library/logging.rst:367 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 " @@ -434,22 +481,22 @@ msgid "" "processing of the record occurs." msgstr "" -#: library/logging.rst:340 +#: library/logging.rst:376 msgid "Adds the specified handler *hdlr* to this logger." msgstr "" -#: library/logging.rst:345 +#: library/logging.rst:381 msgid "Removes the specified handler *hdlr* from this logger." msgstr "" -#: library/logging.rst:350 +#: library/logging.rst:386 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 "" -#: library/logging.rst:354 +#: library/logging.rst:390 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 " @@ -459,7 +506,7 @@ msgid "" "calls it." msgstr "" -#: library/logging.rst:364 +#: library/logging.rst:400 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 " @@ -468,13 +515,13 @@ msgid "" "filter`." msgstr "" -#: library/logging.rst:372 +#: library/logging.rst:408 msgid "" "This is a factory method which can be overridden in subclasses to create " "specialized :class:`LogRecord` instances." msgstr "" -#: library/logging.rst:377 +#: library/logging.rst:413 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. " @@ -484,15 +531,15 @@ msgid "" "the existence of handlers." msgstr "" -#: library/logging.rst:386 +#: library/logging.rst:422 msgid "Loggers can now be pickled and unpickled." msgstr "" -#: library/logging.rst:392 +#: library/logging.rst:428 msgid "Logging Levels" msgstr "" -#: library/logging.rst:394 +#: library/logging.rst:430 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 " @@ -501,83 +548,83 @@ msgid "" "value; the predefined name is lost." msgstr "" -#: library/logging.rst:401 +#: library/logging.rst:437 msgid "Level" msgstr "" -#: library/logging.rst:401 +#: library/logging.rst:437 msgid "Numeric value" msgstr "" -#: library/logging.rst:401 +#: library/logging.rst:437 msgid "What it means / When to use it" msgstr "" -#: library/logging.rst:403 +#: library/logging.rst:439 msgid "0" msgstr "" -#: library/logging.rst:403 +#: library/logging.rst:439 msgid "" "When set on a logger, indicates that ancestor loggers are to be consulted to " "determine the effective level. If that still resolves to :const:`!NOTSET`, " "then all events are logged. When set on a handler, all events are handled." msgstr "" -#: library/logging.rst:411 +#: library/logging.rst:447 msgid "10" msgstr "" -#: library/logging.rst:411 +#: library/logging.rst:447 msgid "" "Detailed information, typically only of interest to a developer trying to " "diagnose a problem." msgstr "" -#: library/logging.rst:415 +#: library/logging.rst:451 msgid "20" msgstr "" -#: library/logging.rst:415 +#: library/logging.rst:451 msgid "Confirmation that things are working as expected." msgstr "" -#: library/logging.rst:418 +#: library/logging.rst:454 msgid "30" msgstr "" -#: library/logging.rst:418 +#: library/logging.rst:454 msgid "" "An indication that something unexpected happened, or that a problem might " "occur in the near future (e.g. 'disk space low'). The software is still " "working as expected." msgstr "" -#: library/logging.rst:425 +#: library/logging.rst:461 msgid "40" msgstr "" -#: library/logging.rst:425 +#: library/logging.rst:461 msgid "" "Due to a more serious problem, the software has not been able to perform " "some function." msgstr "" -#: library/logging.rst:429 +#: library/logging.rst:465 msgid "50" msgstr "" -#: library/logging.rst:429 +#: library/logging.rst:465 msgid "" "A serious error, indicating that the program itself may be unable to " "continue running." msgstr "" -#: library/logging.rst:438 +#: library/logging.rst:474 msgid "Handler Objects" msgstr "" -#: library/logging.rst:440 +#: library/logging.rst:476 msgid "" "Handlers have the following attributes and methods. Note that :class:" "`Handler` is never instantiated directly; this class acts as a base for more " @@ -585,53 +632,53 @@ msgid "" "to call :meth:`Handler.__init__`." msgstr "" -#: library/logging.rst:449 +#: library/logging.rst:485 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 "" -#: library/logging.rst:456 +#: library/logging.rst:492 msgid "" "Initializes a thread lock which can be used to serialize access to " "underlying I/O functionality which may not be threadsafe." msgstr "" -#: library/logging.rst:462 +#: library/logging.rst:498 msgid "Acquires the thread lock created with :meth:`createLock`." msgstr "" -#: library/logging.rst:467 +#: library/logging.rst:503 msgid "Releases the thread lock acquired with :meth:`acquire`." msgstr "" -#: library/logging.rst:472 +#: library/logging.rst:508 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 "" -#: library/logging.rst:479 +#: library/logging.rst:515 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 "" -#: library/logging.rst:487 +#: library/logging.rst:523 msgid "Sets the :class:`Formatter` for this handler to *fmt*." msgstr "" -#: library/logging.rst:492 +#: library/logging.rst:528 msgid "Adds the specified filter *filter* to this handler." msgstr "" -#: library/logging.rst:497 +#: library/logging.rst:533 msgid "Removes the specified filter *filter* from this handler." msgstr "" -#: library/logging.rst:502 +#: library/logging.rst:538 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 " @@ -640,13 +687,13 @@ msgid "" "record." msgstr "" -#: library/logging.rst:511 +#: library/logging.rst:547 msgid "" "Ensure all logging output has been flushed. This version does nothing and is " "intended to be implemented by subclasses." msgstr "" -#: library/logging.rst:517 +#: library/logging.rst:553 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 :" @@ -654,14 +701,14 @@ msgid "" "from overridden :meth:`close` methods." msgstr "" -#: library/logging.rst:525 +#: library/logging.rst:561 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 "" -#: library/logging.rst:532 +#: library/logging.rst:568 msgid "" "This method should be called from handlers when an exception is encountered " "during an :meth:`emit` call. If the module-level attribute :data:" @@ -674,20 +721,20 @@ msgid "" "is more useful during development)." msgstr "" -#: library/logging.rst:545 +#: library/logging.rst:581 msgid "" "Do formatting for a record - if a formatter is set, use it. Otherwise, use " "the default formatter for the module." msgstr "" -#: library/logging.rst:551 +#: library/logging.rst:587 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 "" -#: library/logging.rst:555 +#: library/logging.rst:591 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 " @@ -696,13 +743,13 @@ msgid "" "Specifically:" msgstr "" -#: library/logging.rst:561 +#: library/logging.rst:597 msgid "" "Logging configuration APIs acquire the module-level lock, and then " "individual handler-level locks as those handlers are configured." msgstr "" -#: library/logging.rst:564 +#: library/logging.rst:600 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 " @@ -712,16 +759,16 @@ msgid "" "method, the handler-level lock has already been acquired)." msgstr "" -#: library/logging.rst:571 +#: library/logging.rst:607 msgid "" "For a list of handlers included as standard, see :mod:`logging.handlers`." msgstr "" -#: library/logging.rst:576 +#: library/logging.rst:612 msgid "Formatter Objects" msgstr "" -#: library/logging.rst:582 +#: library/logging.rst:618 msgid "" "Responsible for converting a :class:`LogRecord` to an output string to be " "interpreted by a human or external system." @@ -731,7 +778,7 @@ msgstr "" msgid "Parameters" msgstr "" -#: library/logging.rst:585 +#: library/logging.rst:621 msgid "" "A format string in the given *style* for the logged output as a whole. The " "possible mapping keys are drawn from the :class:`LogRecord` object's :ref:" @@ -739,14 +786,14 @@ msgid "" "is just the logged message." msgstr "" -#: library/logging.rst:593 +#: library/logging.rst:629 msgid "" "A format string in the given *style* for the date/time portion of the logged " "output. If not specified, the default described in :meth:`formatTime` is " "used." msgstr "" -#: library/logging.rst:598 +#: library/logging.rst:634 msgid "" "Can be one of ``'%'``, ``'{'`` or ``'$'`` and determines how the format " "string will be merged with its data: using one of :ref:`old-string-" @@ -757,32 +804,32 @@ msgid "" "use ``{``- and ``$``-formatting for log messages." msgstr "" -#: library/logging.rst:608 +#: library/logging.rst:644 msgid "" "If ``True`` (the default), incorrect or mismatched *fmt* and *style* will " "raise a :exc:`ValueError`; for example, ``logging.Formatter('%(asctime)s - " "%(message)s', style='{')``." msgstr "" -#: library/logging.rst:613 +#: library/logging.rst:649 msgid "" "A dictionary with default values to use in custom fields. For example, " "``logging.Formatter('%(ip)s %(message)s', defaults={\"ip\": None})``" msgstr "" -#: library/logging.rst:618 +#: library/logging.rst:654 msgid "Added the *style* parameter." msgstr "" -#: library/logging.rst:621 +#: library/logging.rst:657 msgid "Added the *validate* parameter." msgstr "" -#: library/logging.rst:624 +#: library/logging.rst:660 msgid "Added the *defaults* parameter." msgstr "" -#: library/logging.rst:630 +#: library/logging.rst:666 msgid "" "The record's attribute dictionary is used as the operand to a string " "formatting operation. Returns the resulting string. Before formatting the " @@ -801,13 +848,13 @@ msgid "" "recalculates it afresh." msgstr "" -#: library/logging.rst:646 +#: library/logging.rst:682 msgid "" "If stack information is available, it's appended after the exception " "information, using :meth:`formatStack` to transform it if necessary." msgstr "" -#: library/logging.rst:652 +#: library/logging.rst:688 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 " @@ -820,7 +867,7 @@ msgid "" "resulting string is returned." msgstr "" -#: library/logging.rst:662 +#: library/logging.rst:698 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 " @@ -830,7 +877,7 @@ msgid "" "be shown in GMT, set the ``converter`` attribute in the ``Formatter`` class." msgstr "" -#: library/logging.rst:670 +#: library/logging.rst:706 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 " @@ -845,11 +892,11 @@ msgid "" "the millisecond value)." msgstr "" -#: library/logging.rst:683 +#: library/logging.rst:719 msgid "The ``default_msec_format`` can be ``None``." msgstr "" -#: library/logging.rst:688 +#: library/logging.rst:724 msgid "" "Formats the specified exception information (a standard exception tuple as " "returned by :func:`sys.exc_info`) as a string. This default implementation " @@ -857,14 +904,14 @@ msgid "" "returned." msgstr "" -#: library/logging.rst:695 +#: library/logging.rst:731 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 "" -#: library/logging.rst:701 +#: library/logging.rst:737 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 " @@ -873,7 +920,7 @@ msgid "" "used as the line formatter." msgstr "" -#: library/logging.rst:709 +#: library/logging.rst:745 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 " @@ -881,14 +928,14 @@ msgid "" "separator line." msgstr "" -#: library/logging.rst:716 +#: library/logging.rst:752 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 "" -#: library/logging.rst:723 +#: library/logging.rst:759 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 " @@ -896,11 +943,11 @@ msgid "" "and the footer." msgstr "" -#: library/logging.rst:731 +#: library/logging.rst:767 msgid "Filter Objects" msgstr "" -#: library/logging.rst:733 +#: library/logging.rst:769 msgid "" "``Filters`` can be used by ``Handlers`` and ``Loggers`` for more " "sophisticated filtering than is provided by levels. The base filter class " @@ -910,7 +957,7 @@ msgid "" "If initialized with the empty string, all events are passed." msgstr "" -#: library/logging.rst:743 +#: library/logging.rst:779 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 " @@ -918,7 +965,7 @@ msgid "" "event." msgstr "" -#: library/logging.rst:750 +#: library/logging.rst:786 msgid "" "Is the specified record to be logged? Returns false for no, true for yes. " "Filters can either modify log records in-place or return a completely " @@ -926,7 +973,7 @@ msgid "" "future processing of the event." msgstr "" -#: library/logging.rst:755 +#: library/logging.rst:791 msgid "" "Note that filters attached to handlers are consulted before an event is " "emitted by the handler, whereas filters attached to loggers are consulted " @@ -936,13 +983,13 @@ msgid "" "setting, unless the filter has also been applied to those descendant loggers." msgstr "" -#: library/logging.rst:762 +#: library/logging.rst:798 msgid "" "You don't actually need to subclass ``Filter``: you can pass any instance " "which has a ``filter`` method with the same semantics." msgstr "" -#: library/logging.rst:765 +#: library/logging.rst:801 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) " @@ -953,7 +1000,7 @@ msgid "" "value should conform to that returned by :meth:`~Filter.filter`." msgstr "" -#: library/logging.rst:775 +#: library/logging.rst:811 msgid "" "You can now return a :class:`LogRecord` instance from filters to replace the " "log record rather than modifying it in place. This allows filters attached " @@ -961,7 +1008,7 @@ msgid "" "having side effects on other handlers." msgstr "" -#: library/logging.rst:781 +#: library/logging.rst:817 msgid "" "Although filters are used primarily to filter records based on more " "sophisticated criteria than levels, they get to see every record which is " @@ -973,11 +1020,11 @@ msgid "" "contextual information into logs (see :ref:`filters-contextual`)." msgstr "" -#: library/logging.rst:794 +#: library/logging.rst:830 msgid "LogRecord Objects" msgstr "" -#: library/logging.rst:796 +#: library/logging.rst:832 msgid "" ":class:`LogRecord` instances are created automatically by the :class:" "`Logger` every time something is logged, and can be created manually via :" @@ -985,17 +1032,17 @@ msgid "" "wire)." msgstr "" -#: library/logging.rst:804 +#: library/logging.rst:840 msgid "Contains all the information pertinent to the event being logged." msgstr "" -#: library/logging.rst:806 +#: library/logging.rst:842 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 "" -#: library/logging.rst:810 +#: library/logging.rst:846 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 " @@ -1003,7 +1050,7 @@ msgid "" "different (ancestor) logger." msgstr "" -#: library/logging.rst:818 +#: library/logging.rst:854 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* " @@ -1011,46 +1058,46 @@ msgid "" "attr:`!levelname` for the corresponding level name." msgstr "" -#: library/logging.rst:825 +#: library/logging.rst:861 msgid "" "The full string path of the source file where the logging call was made." msgstr "" -#: library/logging.rst:829 +#: library/logging.rst:865 msgid "The line number in the source file where the logging call was made." msgstr "" -#: library/logging.rst:833 +#: library/logging.rst:869 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 "" -#: library/logging.rst:838 +#: library/logging.rst:874 msgid "" "Variable data to merge into the *msg* argument to obtain the event " "description." msgstr "" -#: library/logging.rst:842 +#: library/logging.rst:878 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 "" -#: library/logging.rst:847 +#: library/logging.rst:883 msgid "" "The name of the function or method from which the logging call was invoked." msgstr "" -#: library/logging.rst:851 +#: library/logging.rst:887 msgid "" "A text string representing stack information from the base of the stack in " "the current thread, up to the logging call." msgstr "" -#: library/logging.rst:858 +#: library/logging.rst:894 msgid "" "Returns the message for this :class:`LogRecord` instance after merging any " "user-supplied arguments with the message. If the user-supplied message " @@ -1059,7 +1106,7 @@ msgid "" "whose ``__str__`` method can return the actual format string to be used." msgstr "" -#: library/logging.rst:865 +#: library/logging.rst:901 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 " @@ -1067,24 +1114,24 @@ msgid "" "this for the factory's signature)." msgstr "" -#: library/logging.rst:871 +#: library/logging.rst:907 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 "" -#: library/logging.rst:883 +#: library/logging.rst:919 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 "" -#: library/logging.rst:892 +#: library/logging.rst:928 msgid "LogRecord attributes" msgstr "" -#: library/logging.rst:894 +#: library/logging.rst:930 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 " @@ -1095,7 +1142,7 @@ msgid "" "style format string." msgstr "" -#: library/logging.rst:902 +#: library/logging.rst:938 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 (:" @@ -1103,7 +1150,7 @@ msgid "" "course, replace ``attrname`` with the actual attribute name you want to use." msgstr "" -#: library/logging.rst:908 +#: library/logging.rst:944 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: " @@ -1112,323 +1159,323 @@ msgid "" "on the options available to you." msgstr "" -#: library/logging.rst:915 +#: library/logging.rst:951 msgid "Attribute name" msgstr "" -#: library/logging.rst:1333 +#: library/logging.rst:1369 msgid "Format" msgstr "" -#: library/logging.rst:1333 +#: library/logging.rst:1369 msgid "Description" msgstr "" -#: library/logging.rst:917 +#: library/logging.rst:953 msgid "args" msgstr "" -#: library/logging.rst:931 library/logging.rst:977 +#: library/logging.rst:967 library/logging.rst:1013 msgid "You shouldn't need to format this yourself." msgstr "" -#: library/logging.rst:917 +#: library/logging.rst:953 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 "" -#: library/logging.rst:922 +#: library/logging.rst:958 msgid "asctime" msgstr "" -#: library/logging.rst:922 +#: library/logging.rst:958 msgid "``%(asctime)s``" msgstr "" -#: library/logging.rst:922 +#: library/logging.rst:958 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 "" -#: library/logging.rst:928 +#: library/logging.rst:964 msgid "created" msgstr "" -#: library/logging.rst:928 +#: library/logging.rst:964 msgid "``%(created)f``" msgstr "" -#: library/logging.rst:928 +#: library/logging.rst:964 msgid "" "Time when the :class:`LogRecord` was created (as returned by :func:`time." "time`)." msgstr "" -#: library/logging.rst:931 +#: library/logging.rst:967 msgid "exc_info" msgstr "" -#: library/logging.rst:931 +#: library/logging.rst:967 msgid "" "Exception tuple (à la ``sys.exc_info``) or, if no exception has occurred, " "``None``." msgstr "" -#: library/logging.rst:934 +#: library/logging.rst:970 msgid "filename" msgstr "" -#: library/logging.rst:934 +#: library/logging.rst:970 msgid "``%(filename)s``" msgstr "" -#: library/logging.rst:934 +#: library/logging.rst:970 msgid "Filename portion of ``pathname``." msgstr "" -#: library/logging.rst:936 +#: library/logging.rst:972 msgid "funcName" msgstr "" -#: library/logging.rst:936 +#: library/logging.rst:972 msgid "``%(funcName)s``" msgstr "" -#: library/logging.rst:936 +#: library/logging.rst:972 msgid "Name of function containing the logging call." msgstr "" -#: library/logging.rst:938 +#: library/logging.rst:974 msgid "levelname" msgstr "" -#: library/logging.rst:938 +#: library/logging.rst:974 msgid "``%(levelname)s``" msgstr "" -#: library/logging.rst:938 +#: library/logging.rst:974 msgid "" "Text logging level for the message (``'DEBUG'``, ``'INFO'``, ``'WARNING'``, " "``'ERROR'``, ``'CRITICAL'``)." msgstr "" -#: library/logging.rst:942 +#: library/logging.rst:978 msgid "levelno" msgstr "" -#: library/logging.rst:942 +#: library/logging.rst:978 msgid "``%(levelno)s``" msgstr "" -#: library/logging.rst:942 +#: library/logging.rst:978 msgid "" "Numeric logging level for the message (:const:`DEBUG`, :const:`INFO`, :const:" "`WARNING`, :const:`ERROR`, :const:`CRITICAL`)." msgstr "" -#: library/logging.rst:947 +#: library/logging.rst:983 msgid "lineno" msgstr "" -#: library/logging.rst:947 +#: library/logging.rst:983 msgid "``%(lineno)d``" msgstr "" -#: library/logging.rst:947 +#: library/logging.rst:983 msgid "Source line number where the logging call was issued (if available)." msgstr "" -#: library/logging.rst:950 +#: library/logging.rst:986 msgid "message" msgstr "" -#: library/logging.rst:950 +#: library/logging.rst:986 msgid "``%(message)s``" msgstr "" -#: library/logging.rst:950 +#: library/logging.rst:986 msgid "" "The logged message, computed as ``msg % args``. This is set when :meth:" "`Formatter.format` is invoked." msgstr "" -#: library/logging.rst:954 +#: library/logging.rst:990 msgid "module" msgstr "" -#: library/logging.rst:954 +#: library/logging.rst:990 msgid "``%(module)s``" msgstr "" -#: library/logging.rst:954 +#: library/logging.rst:990 msgid "Module (name portion of ``filename``)." msgstr "" -#: library/logging.rst:956 +#: library/logging.rst:992 msgid "msecs" msgstr "" -#: library/logging.rst:956 +#: library/logging.rst:992 msgid "``%(msecs)d``" msgstr "" -#: library/logging.rst:956 +#: library/logging.rst:992 msgid "" "Millisecond portion of the time when the :class:`LogRecord` was created." msgstr "" -#: library/logging.rst:959 +#: library/logging.rst:995 msgid "msg" msgstr "" -#: library/logging.rst:959 +#: library/logging.rst:995 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 "" -#: library/logging.rst:964 +#: library/logging.rst:1000 msgid "name" msgstr "" -#: library/logging.rst:964 +#: library/logging.rst:1000 msgid "``%(name)s``" msgstr "" -#: library/logging.rst:964 +#: library/logging.rst:1000 msgid "Name of the logger used to log the call." msgstr "" -#: library/logging.rst:966 +#: library/logging.rst:1002 msgid "pathname" msgstr "" -#: library/logging.rst:966 +#: library/logging.rst:1002 msgid "``%(pathname)s``" msgstr "" -#: library/logging.rst:966 +#: library/logging.rst:1002 msgid "" "Full pathname of the source file where the logging call was issued (if " "available)." msgstr "" -#: library/logging.rst:969 +#: library/logging.rst:1005 msgid "process" msgstr "" -#: library/logging.rst:969 +#: library/logging.rst:1005 msgid "``%(process)d``" msgstr "" -#: library/logging.rst:969 +#: library/logging.rst:1005 msgid "Process ID (if available)." msgstr "" -#: library/logging.rst:971 +#: library/logging.rst:1007 msgid "processName" msgstr "" -#: library/logging.rst:971 +#: library/logging.rst:1007 msgid "``%(processName)s``" msgstr "" -#: library/logging.rst:971 +#: library/logging.rst:1007 msgid "Process name (if available)." msgstr "" -#: library/logging.rst:973 +#: library/logging.rst:1009 msgid "relativeCreated" msgstr "" -#: library/logging.rst:973 +#: library/logging.rst:1009 msgid "``%(relativeCreated)d``" msgstr "" -#: library/logging.rst:973 +#: library/logging.rst:1009 msgid "" "Time in milliseconds when the LogRecord was created, relative to the time " "the logging module was loaded." msgstr "" -#: library/logging.rst:977 +#: library/logging.rst:1013 msgid "stack_info" msgstr "" -#: library/logging.rst:977 +#: library/logging.rst:1013 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 "" -#: library/logging.rst:983 +#: library/logging.rst:1019 msgid "thread" msgstr "" -#: library/logging.rst:983 +#: library/logging.rst:1019 msgid "``%(thread)d``" msgstr "" -#: library/logging.rst:983 +#: library/logging.rst:1019 msgid "Thread ID (if available)." msgstr "" -#: library/logging.rst:985 +#: library/logging.rst:1021 msgid "threadName" msgstr "" -#: library/logging.rst:985 +#: library/logging.rst:1021 msgid "``%(threadName)s``" msgstr "" -#: library/logging.rst:985 +#: library/logging.rst:1021 msgid "Thread name (if available)." msgstr "" -#: library/logging.rst:987 +#: library/logging.rst:1023 msgid "taskName" msgstr "" -#: library/logging.rst:987 +#: library/logging.rst:1023 msgid "``%(taskName)s``" msgstr "" -#: library/logging.rst:987 +#: library/logging.rst:1023 msgid ":class:`asyncio.Task` name (if available)." msgstr "" -#: library/logging.rst:990 +#: library/logging.rst:1026 msgid "*processName* was added." msgstr "" -#: library/logging.rst:993 +#: library/logging.rst:1029 msgid "*taskName* was added." msgstr "" -#: library/logging.rst:999 +#: library/logging.rst:1035 msgid "LoggerAdapter Objects" msgstr "" -#: library/logging.rst:1001 +#: library/logging.rst:1037 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 "" -#: library/logging.rst:1007 +#: library/logging.rst:1043 msgid "" "Returns an instance of :class:`LoggerAdapter` initialized with an " "underlying :class:`Logger` instance and a dict-like object." msgstr "" -#: library/logging.rst:1012 +#: library/logging.rst:1048 msgid "" "Modifies the message and/or keyword arguments passed to a logging call in " "order to insert contextual information. This implementation takes the object " @@ -1437,15 +1484,15 @@ msgid "" "(possibly modified) versions of the arguments passed in." msgstr "" -#: library/logging.rst:1020 +#: library/logging.rst:1056 msgid "Delegates to the underlying :attr:`!manager`` on *logger*." msgstr "" -#: library/logging.rst:1024 +#: library/logging.rst:1060 msgid "Delegates to the underlying :meth:`!_log`` method on *logger*." msgstr "" -#: library/logging.rst:1026 +#: library/logging.rst:1062 msgid "" "In addition to the above, :class:`LoggerAdapter` supports the following " "methods of :class:`Logger`: :meth:`~Logger.debug`, :meth:`~Logger.info`, :" @@ -1457,24 +1504,24 @@ msgid "" "interchangeably." msgstr "" -#: library/logging.rst:1037 +#: library/logging.rst:1073 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 "" -#: library/logging.rst:1043 +#: library/logging.rst:1079 msgid "" "Attribute :attr:`!manager` and method :meth:`!_log` were added, which " "delegate to the underlying logger and allow adapters to be nested." msgstr "" -#: library/logging.rst:1048 +#: library/logging.rst:1084 msgid "Thread Safety" msgstr "" -#: library/logging.rst:1050 +#: library/logging.rst:1086 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 " @@ -1483,7 +1530,7 @@ msgid "" "O." msgstr "" -#: library/logging.rst:1055 +#: library/logging.rst:1091 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 " @@ -1491,17 +1538,17 @@ msgid "" "always re-entrant, and so cannot be invoked from such signal handlers." msgstr "" -#: library/logging.rst:1062 +#: library/logging.rst:1098 msgid "Module-Level Functions" msgstr "" -#: library/logging.rst:1064 +#: library/logging.rst:1100 msgid "" "In addition to the classes described above, there are a number of module-" "level functions." msgstr "" -#: library/logging.rst:1070 +#: library/logging.rst:1106 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 " @@ -1510,14 +1557,14 @@ msgid "" "logging." msgstr "" -#: library/logging.rst:1075 +#: library/logging.rst:1111 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 "" -#: library/logging.rst:1082 +#: library/logging.rst:1118 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 " @@ -1526,24 +1573,24 @@ msgid "" "example::" msgstr "" -#: library/logging.rst:1093 +#: library/logging.rst:1129 msgid "Return a callable which is used to create a :class:`LogRecord`." msgstr "" -#: library/logging.rst:1095 +#: library/logging.rst:1131 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 "" -#: library/logging.rst:1100 +#: library/logging.rst:1136 msgid "" "See :func:`setLogRecordFactory` for more information about the how the " "factory is called." msgstr "" -#: library/logging.rst:1105 +#: library/logging.rst:1141 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 " @@ -1552,7 +1599,7 @@ msgid "" "argument.)" msgstr "" -#: library/logging.rst:1110 +#: library/logging.rst:1146 msgid "" "There are three keyword arguments in *kwargs* which are inspected: " "*exc_info* which, if it does not evaluate as false, causes exception " @@ -1562,7 +1609,7 @@ msgid "" "exception information." msgstr "" -#: library/logging.rst:1136 +#: library/logging.rst:1172 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 " @@ -1571,18 +1618,18 @@ msgid "" "logged messages. For example::" msgstr "" -#: library/logging.rst:1147 +#: library/logging.rst:1183 msgid "would print something like:" msgstr "" -#: library/logging.rst:1153 +#: library/logging.rst:1189 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 "" -#: library/logging.rst:1157 +#: library/logging.rst:1193 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:" @@ -1593,58 +1640,58 @@ msgid "" "dictionary with these keys." msgstr "" -#: library/logging.rst:1171 +#: library/logging.rst:1207 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 "" -#: library/logging.rst:1180 +#: library/logging.rst:1216 msgid "" "Logs a message with level :const:`INFO` on the root logger. The arguments " "are interpreted as for :func:`debug`." msgstr "" -#: library/logging.rst:1186 +#: library/logging.rst:1222 msgid "" "Logs a message with level :const:`WARNING` on the root logger. The arguments " "are interpreted as for :func:`debug`." msgstr "" -#: library/logging.rst:1189 +#: library/logging.rst:1225 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 "" -#: library/logging.rst:1196 +#: library/logging.rst:1232 msgid "" "Logs a message with level :const:`ERROR` on the root logger. The arguments " "are interpreted as for :func:`debug`." msgstr "" -#: library/logging.rst:1202 +#: library/logging.rst:1238 msgid "" "Logs a message with level :const:`CRITICAL` on the root logger. The " "arguments are interpreted as for :func:`debug`." msgstr "" -#: library/logging.rst:1208 +#: library/logging.rst:1244 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 "" -#: library/logging.rst:1214 +#: library/logging.rst:1250 msgid "" "Logs a message with level *level* on the root logger. The other arguments " "are interpreted as for :func:`debug`." msgstr "" -#: library/logging.rst:1219 +#: library/logging.rst:1255 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 " @@ -1658,7 +1705,7 @@ msgid "" "individual loggers." msgstr "" -#: library/logging.rst:1230 +#: library/logging.rst:1266 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 " @@ -1666,13 +1713,13 @@ msgid "" "a suitable value." msgstr "" -#: library/logging.rst:1235 +#: library/logging.rst:1271 msgid "" "The *level* parameter was defaulted to level ``CRITICAL``. See :issue:" "`28524` for more information about this change." msgstr "" -#: library/logging.rst:1241 +#: library/logging.rst:1277 msgid "" "Associates level *level* with text *levelName* in an internal dictionary, " "which is used to map numeric levels to a textual representation, for example " @@ -1682,24 +1729,24 @@ msgid "" "and they should increase in increasing order of severity." msgstr "" -#: library/logging.rst:1248 +#: library/logging.rst:1284 msgid "" "If you are thinking of defining your own levels, please see the section on :" "ref:`custom-levels`." msgstr "" -#: library/logging.rst:1253 +#: library/logging.rst:1289 msgid "" "Returns a mapping from level names to their corresponding logging levels. " "For example, the string \"CRITICAL\" maps to :const:`CRITICAL`. The returned " "mapping is copied from an internal mapping on each call to this function." msgstr "" -#: library/logging.rst:1261 +#: library/logging.rst:1297 msgid "Returns the textual or numeric representation of logging level *level*." msgstr "" -#: library/logging.rst:1263 +#: library/logging.rst:1299 msgid "" "If *level* is one of the predefined levels :const:`CRITICAL`, :const:" "`ERROR`, :const:`WARNING`, :const:`INFO` or :const:`DEBUG` then you get the " @@ -1709,20 +1756,20 @@ msgid "" "the corresponding string representation is returned." msgstr "" -#: library/logging.rst:1270 +#: library/logging.rst:1306 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 "" -#: library/logging.rst:1274 +#: library/logging.rst:1310 msgid "" "If no matching numeric or string value is passed in, the string 'Level %s' % " "level is returned." msgstr "" -#: library/logging.rst:1277 +#: library/logging.rst:1313 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 " @@ -1731,7 +1778,7 @@ msgid "" "vice versa." msgstr "" -#: library/logging.rst:1283 +#: library/logging.rst:1319 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. " @@ -1739,17 +1786,17 @@ msgid "" "Python 3.4, but reinstated in 3.4.2 due to retain backward compatibility." msgstr "" -#: library/logging.rst:1291 +#: library/logging.rst:1327 msgid "" "Returns a handler with the specified *name*, or ``None`` if there is no " "handler with that name." msgstr "" -#: library/logging.rst:1298 +#: library/logging.rst:1334 msgid "Returns an immutable set of all known handler names." msgstr "" -#: library/logging.rst:1304 +#: library/logging.rst:1340 msgid "" "Creates and returns a new :class:`LogRecord` instance whose attributes are " "defined by *attrdict*. This function is useful for taking a pickled :class:" @@ -1757,7 +1804,7 @@ msgid "" "as a :class:`LogRecord` instance at the receiving end." msgstr "" -#: library/logging.rst:1312 +#: library/logging.rst:1348 msgid "" "Does basic configuration for the logging system by creating a :class:" "`StreamHandler` with a default :class:`Formatter` and adding it to the root " @@ -1766,13 +1813,13 @@ msgid "" "no handlers are defined for the root logger." msgstr "" -#: library/logging.rst:1318 +#: library/logging.rst:1354 msgid "" "This function does nothing if the root logger already has handlers " "configured, unless the keyword argument *force* is set to ``True``." msgstr "" -#: library/logging.rst:1321 +#: library/logging.rst:1357 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 " @@ -1781,54 +1828,54 @@ msgid "" "unexpected results such as messages being duplicated in the log." msgstr "" -#: library/logging.rst:1328 +#: library/logging.rst:1364 msgid "The following keyword arguments are supported." msgstr "" -#: library/logging.rst:1335 +#: library/logging.rst:1371 msgid "*filename*" msgstr "" -#: library/logging.rst:1335 +#: library/logging.rst:1371 msgid "" "Specifies that a :class:`FileHandler` be created, using the specified " "filename, rather than a :class:`StreamHandler`." msgstr "" -#: library/logging.rst:1339 +#: library/logging.rst:1375 msgid "*filemode*" msgstr "" -#: library/logging.rst:1339 +#: library/logging.rst:1375 msgid "" "If *filename* is specified, open the file in this :ref:`mode `. " "Defaults to ``'a'``." msgstr "" -#: library/logging.rst:1343 +#: library/logging.rst:1379 msgid "*format*" msgstr "" -#: library/logging.rst:1343 +#: library/logging.rst:1379 msgid "" "Use the specified format string for the handler. Defaults to attributes " "``levelname``, ``name`` and ``message`` separated by colons." msgstr "" -#: library/logging.rst:1348 +#: library/logging.rst:1384 msgid "*datefmt*" msgstr "" -#: library/logging.rst:1348 +#: library/logging.rst:1384 msgid "" "Use the specified date/time format, as accepted by :func:`time.strftime`." msgstr "" -#: library/logging.rst:1351 +#: library/logging.rst:1387 msgid "*style*" msgstr "" -#: library/logging.rst:1351 +#: library/logging.rst:1387 msgid "" "If *format* is specified, use this style for the format string. One of " "``'%'``, ``'{'`` or ``'$'`` for :ref:`printf-style `." msgstr "" -#: library/logging.rst:1362 +#: library/logging.rst:1398 msgid "*stream*" msgstr "" -#: library/logging.rst:1362 +#: library/logging.rst:1398 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 "" -#: library/logging.rst:1368 +#: library/logging.rst:1404 msgid "*handlers*" msgstr "" -#: library/logging.rst:1368 +#: library/logging.rst:1404 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 " @@ -1868,33 +1915,33 @@ msgid "" "present, a ``ValueError`` is raised." msgstr "" -#: library/logging.rst:1377 +#: library/logging.rst:1413 msgid "*force*" msgstr "" -#: library/logging.rst:1377 +#: library/logging.rst:1413 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 "" -#: library/logging.rst:1383 +#: library/logging.rst:1419 msgid "*encoding*" msgstr "" -#: library/logging.rst:1383 +#: library/logging.rst:1419 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 "" -#: library/logging.rst:1388 +#: library/logging.rst:1424 msgid "*errors*" msgstr "" -#: library/logging.rst:1388 +#: library/logging.rst:1424 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 " @@ -1903,39 +1950,39 @@ msgid "" "`open`, which means that it will be treated the same as passing 'errors'." msgstr "" -#: library/logging.rst:1399 +#: library/logging.rst:1435 msgid "The *style* argument was added." msgstr "" -#: library/logging.rst:1402 +#: library/logging.rst:1438 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 "" -#: library/logging.rst:1408 +#: library/logging.rst:1444 msgid "The *force* argument was added." msgstr "" -#: library/logging.rst:1411 +#: library/logging.rst:1447 msgid "The *encoding* and *errors* arguments were added." msgstr "" -#: library/logging.rst:1416 +#: library/logging.rst:1452 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 "" -#: library/logging.rst:1420 +#: library/logging.rst:1456 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 "" -#: library/logging.rst:1427 +#: library/logging.rst:1463 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 " @@ -1947,32 +1994,32 @@ msgid "" "loggers." msgstr "" -#: library/logging.rst:1438 +#: library/logging.rst:1474 msgid "Set a callable which is used to create a :class:`LogRecord`." msgstr "" -#: library/logging.rst:1440 +#: library/logging.rst:1476 msgid "The factory callable to be used to instantiate a log record." msgstr "" -#: library/logging.rst:1442 +#: library/logging.rst:1478 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 "" -#: library/logging.rst:1447 +#: library/logging.rst:1483 msgid "The factory has the following signature:" msgstr "" -#: library/logging.rst:1449 +#: library/logging.rst:1485 msgid "" "``factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, " "**kwargs)``" msgstr "" -#: library/logging.rst:1451 +#: library/logging.rst:1487 msgid "The logger name." msgstr "" @@ -1980,7 +2027,7 @@ msgstr "" msgid "level" msgstr "" -#: library/logging.rst:1452 +#: library/logging.rst:1488 msgid "The logging level (numeric)." msgstr "" @@ -1988,7 +2035,7 @@ msgstr "" msgid "fn" msgstr "" -#: library/logging.rst:1453 +#: library/logging.rst:1489 msgid "The full pathname of the file where the logging call was made." msgstr "" @@ -1996,19 +2043,19 @@ msgstr "" msgid "lno" msgstr "" -#: library/logging.rst:1454 +#: library/logging.rst:1490 msgid "The line number in the file where the logging call was made." msgstr "" -#: library/logging.rst:1455 +#: library/logging.rst:1491 msgid "The logging message." msgstr "" -#: library/logging.rst:1456 +#: library/logging.rst:1492 msgid "The arguments for the logging message." msgstr "" -#: library/logging.rst:1457 +#: library/logging.rst:1493 msgid "An exception tuple, or ``None``." msgstr "" @@ -2016,7 +2063,7 @@ msgstr "" msgid "func" msgstr "" -#: library/logging.rst:1458 +#: library/logging.rst:1494 msgid "The name of the function or method which invoked the logging call." msgstr "" @@ -2024,7 +2071,7 @@ msgstr "" msgid "sinfo" msgstr "" -#: library/logging.rst:1460 +#: library/logging.rst:1496 msgid "" "A stack traceback such as is provided by :func:`traceback.print_stack`, " "showing the call hierarchy." @@ -2034,15 +2081,15 @@ msgstr "" msgid "kwargs" msgstr "" -#: library/logging.rst:1462 +#: library/logging.rst:1498 msgid "Additional keyword arguments." msgstr "" -#: library/logging.rst:1466 +#: library/logging.rst:1502 msgid "Module-Level Attributes" msgstr "" -#: library/logging.rst:1470 +#: library/logging.rst:1506 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``, " @@ -2053,15 +2100,15 @@ msgid "" "reason, ``lastResort`` can be set to ``None``." msgstr "" -#: library/logging.rst:1482 +#: library/logging.rst:1518 msgid "Used to see if exceptions during handling should be propagated." msgstr "" -#: library/logging.rst:1484 +#: library/logging.rst:1520 msgid "Default: ``True``." msgstr "" -#: library/logging.rst:1486 +#: library/logging.rst:1522 msgid "" "If :data:`raiseExceptions` is ``False``, exceptions get silently ignored. " "This is what is mostly wanted for a logging system - most users will not " @@ -2069,22 +2116,22 @@ msgid "" "application errors." msgstr "" -#: library/logging.rst:1493 +#: library/logging.rst:1529 msgid "Integration with the warnings module" msgstr "" -#: library/logging.rst:1495 +#: library/logging.rst:1531 msgid "" "The :func:`captureWarnings` function can be used to integrate :mod:`logging` " "with the :mod:`warnings` module." msgstr "" -#: library/logging.rst:1500 +#: library/logging.rst:1536 msgid "" "This function is used to turn the capture of warnings by logging on and off." msgstr "" -#: library/logging.rst:1503 +#: library/logging.rst:1539 msgid "" "If *capture* is ``True``, warnings issued by the :mod:`warnings` module will " "be redirected to the logging system. Specifically, a warning will be " @@ -2093,46 +2140,46 @@ msgid "" "`WARNING`." msgstr "" -#: library/logging.rst:1508 +#: library/logging.rst:1544 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 "" -#: library/logging.rst:1516 +#: library/logging.rst:1552 msgid "Module :mod:`logging.config`" msgstr "" -#: library/logging.rst:1516 +#: library/logging.rst:1552 msgid "Configuration API for the logging module." msgstr "" -#: library/logging.rst:1519 +#: library/logging.rst:1555 msgid "Module :mod:`logging.handlers`" msgstr "" -#: library/logging.rst:1519 +#: library/logging.rst:1555 msgid "Useful handlers included with the logging module." msgstr "" -#: library/logging.rst:1523 +#: library/logging.rst:1559 msgid ":pep:`282` - A Logging System" msgstr "" -#: library/logging.rst:1522 +#: library/logging.rst:1558 msgid "" "The proposal which described this feature for inclusion in the Python " "standard library." msgstr "" -#: library/logging.rst:1528 +#: library/logging.rst:1564 msgid "" "`Original Python logging package `_" msgstr "" -#: library/logging.rst:1526 +#: library/logging.rst:1562 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, " diff --git a/library/numbers.po b/library/numbers.po index b21318fc9..1daf57f36 100644 --- a/library/numbers.po +++ b/library/numbers.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -165,7 +165,7 @@ msgid "" "If ``A`` falls back to the boilerplate code, and it were to return a value " "from :meth:`~object.__add__`, we'd miss the possibility that ``B`` defines a " "more intelligent :meth:`~object.__radd__`, so the boilerplate should return :" -"const:`NotImplemented` from :meth:`!__add__`. (Or ``A`` may not implement :" +"data:`NotImplemented` from :meth:`!__add__`. (Or ``A`` may not implement :" "meth:`!__add__` at all.)" msgstr "" diff --git a/library/pickle.po b/library/pickle.po index b19f6bb55..f0aec451b 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -509,7 +509,7 @@ msgid "" "Special reducer that can be defined in :class:`Pickler` subclasses. This " "method has priority over any reducer in the :attr:`dispatch_table`. It " "should conform to the same interface as a :meth:`~object.__reduce__` method, " -"and can optionally return ``NotImplemented`` to fallback on :attr:" +"and can optionally return :data:`NotImplemented` to fallback on :attr:" "`dispatch_table`-registered reducers to pickle ``obj``." msgstr "" @@ -661,8 +661,8 @@ msgstr "" #: library/pickle.rst:497 msgid "" -"built-in constants (``None``, ``True``, ``False``, ``Ellipsis``, and " -"``NotImplemented``);" +"built-in constants (``None``, ``True``, ``False``, ``Ellipsis``, and :data:" +"`NotImplemented`);" msgstr "" #: library/pickle.rst:500 @@ -1106,7 +1106,7 @@ msgid "" "For those cases, it is possible to subclass from the :class:`Pickler` class " "and implement a :meth:`~Pickler.reducer_override` method. This method can " "return an arbitrary reduction tuple (see :meth:`~object.__reduce__`). It can " -"alternatively return ``NotImplemented`` to fallback to the traditional " +"alternatively return :data:`NotImplemented` to fallback to the traditional " "behavior." msgstr "" diff --git a/library/pprint.po b/library/pprint.po index 2cad9f7d4..f1a1eca3d 100644 --- a/library/pprint.po +++ b/library/pprint.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-18 22:33+0300\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -54,37 +54,103 @@ msgstr "" msgid "Added support for pretty-printing :class:`dataclasses.dataclass`." msgstr "" -#: library/pprint.rst:34 -msgid "The :mod:`pprint` module defines one class:" +#: library/pprint.rst:37 +msgid "Functions" msgstr "" -#: library/pprint.rst:44 +#: library/pprint.rst:41 +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.pprint` as formatting " +"parameters." +msgstr "" + +#: library/pprint.rst:53 +msgid "" +"Prints the formatted representation of *object* on *stream*, followed by a " +"newline. If *stream* is ``None``, :data:`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)." +msgstr "" + +#: library/pprint.rst:59 +msgid "" +"The configuration parameters *stream*, *indent*, *width*, *depth*, " +"*compact*, *sort_dicts* and *underscore_numbers* are passed to the :class:" +"`PrettyPrinter` constructor and their meanings are as described in its " +"documentation above." +msgstr "" + +#: library/pprint.rst:78 +msgid "" +"Return the formatted representation of *object* as a string. *indent*, " +"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are " +"passed to the :class:`PrettyPrinter` constructor as formatting parameters " +"and their meanings are as described in its documentation above." +msgstr "" + +#: library/pprint.rst:88 +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 "" + +#: library/pprint.rst:98 +msgid "" +"Determine if *object* requires a recursive representation. This function is " +"subject to the same limitations as noted in :func:`saferepr` below and may " +"raise an :exc:`RecursionError` if it fails to detect a recursive object." +msgstr "" + +#: library/pprint.rst:105 +msgid "" +"Return a string representation of *object*, protected against recursion in " +"some common data structures, namely instances of :class:`dict`, :class:" +"`list` and :class:`tuple` or subclasses whose ``__repr__`` has not been " +"overridden. If the representation of object exposes a recursive entry, the " +"recursive reference will be represented as ````. The representation is not otherwise formatted." +msgstr "" + +#: library/pprint.rst:118 +msgid "PrettyPrinter Objects" +msgstr "" + +#: library/pprint.rst:120 +msgid "This module defines one class:" +msgstr "" + +#: library/pprint.rst:130 msgid "" "Construct a :class:`PrettyPrinter` instance. This constructor understands " "several keyword parameters." msgstr "" -#: library/pprint.rst:47 +#: library/pprint.rst:133 msgid "" -"*stream* (default ``sys.stdout``) is a :term:`file-like object` to which the " -"output will be written by calling its :meth:`!write` method. If both " -"*stream* and ``sys.stdout`` are ``None``, then :meth:`~PrettyPrinter.pprint` " -"silently returns." +"*stream* (default :data:`!sys.stdout`) is a :term:`file-like object` to " +"which the output will be written by calling its :meth:`!write` method. If " +"both *stream* and :data:`!sys.stdout` are ``None``, then :meth:" +"`~PrettyPrinter.pprint` silently returns." msgstr "" -#: library/pprint.rst:52 +#: library/pprint.rst:138 msgid "" "Other values configure the manner in which nesting of complex data " "structures is displayed." msgstr "" -#: library/pprint.rst:55 +#: library/pprint.rst:141 msgid "" "*indent* (default 1) specifies the amount of indentation added for each " "nesting level." msgstr "" -#: library/pprint.rst:58 +#: library/pprint.rst:144 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 " @@ -92,14 +158,14 @@ msgid "" "objects being formatted." msgstr "" -#: library/pprint.rst:63 +#: library/pprint.rst:149 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 "" -#: library/pprint.rst:67 +#: library/pprint.rst:153 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 " @@ -107,118 +173,52 @@ msgid "" "as will fit within the *width* will be formatted on each output line." msgstr "" -#: library/pprint.rst:73 +#: library/pprint.rst:159 msgid "" "If *sort_dicts* is true (the default), dictionaries will be formatted with " "their keys sorted, otherwise they will display in insertion order." msgstr "" -#: library/pprint.rst:76 +#: library/pprint.rst:162 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 "" -#: library/pprint.rst:80 +#: library/pprint.rst:166 msgid "Added the *compact* parameter." msgstr "" -#: library/pprint.rst:83 +#: library/pprint.rst:169 msgid "Added the *sort_dicts* parameter." msgstr "" -#: library/pprint.rst:86 +#: library/pprint.rst:172 msgid "Added the *underscore_numbers* parameter." msgstr "" -#: library/pprint.rst:89 -msgid "No longer attempts to write to ``sys.stdout`` if it is ``None``." -msgstr "" - -#: library/pprint.rst:118 -msgid "" -"Return the formatted representation of *object* as a string. *indent*, " -"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are " -"passed to the :class:`PrettyPrinter` constructor as formatting parameters " -"and their meanings are as described in its documentation above." -msgstr "" - -#: library/pprint.rst:126 -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 "" - -#: library/pprint.rst:138 -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)." -msgstr "" - -#: library/pprint.rst:144 -msgid "" -"The configuration parameters *stream*, *indent*, *width*, *depth*, " -"*compact*, *sort_dicts* and *underscore_numbers* are passed to the :class:" -"`PrettyPrinter` constructor and their meanings are as described in its " -"documentation above." +#: library/pprint.rst:175 +msgid "No longer attempts to write to :data:`!sys.stdout` if it is ``None``." msgstr "" -#: library/pprint.rst:164 -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 "" - -#: library/pprint.rst:174 -msgid "" -"Determine if *object* requires a recursive representation. This function is " -"subject to the same limitations as noted in :func:`saferepr` below and may " -"raise an :exc:`RecursionError` if it fails to detect a recursive object." -msgstr "" - -#: library/pprint.rst:179 -msgid "One more support function is also defined:" -msgstr "" - -#: library/pprint.rst:183 -msgid "" -"Return a string representation of *object*, protected against recursion in " -"some common data structures, namely instances of :class:`dict`, :class:" -"`list` and :class:`tuple` or subclasses whose ``__repr__`` has not been " -"overridden. If the representation of object exposes a recursive entry, the " -"recursive reference will be represented as ````. The representation is not otherwise formatted." -msgstr "" - -#: library/pprint.rst:197 -msgid "PrettyPrinter Objects" -msgstr "" - -#: library/pprint.rst:199 +#: library/pprint.rst:202 msgid ":class:`PrettyPrinter` instances have the following methods:" msgstr "" -#: library/pprint.rst:204 +#: library/pprint.rst:207 msgid "" "Return the formatted representation of *object*. This takes into account " "the options passed to the :class:`PrettyPrinter` constructor." msgstr "" -#: library/pprint.rst:210 +#: library/pprint.rst:213 msgid "" "Print the formatted representation of *object* on the configured stream, " "followed by a newline." msgstr "" -#: library/pprint.rst:213 +#: library/pprint.rst:216 msgid "" "The following methods provide the implementations for the corresponding " "functions of the same names. Using these methods on an instance is slightly " @@ -226,7 +226,7 @@ msgid "" "created." msgstr "" -#: library/pprint.rst:223 +#: library/pprint.rst:226 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 " @@ -235,18 +235,18 @@ msgid "" "returns ``False``." msgstr "" -#: library/pprint.rst:232 +#: library/pprint.rst:235 msgid "Determine if the object requires a recursive representation." msgstr "" -#: library/pprint.rst:234 +#: library/pprint.rst:237 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 "" -#: library/pprint.rst:241 +#: library/pprint.rst:244 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 " @@ -264,45 +264,45 @@ msgid "" "of the current call." msgstr "" -#: library/pprint.rst:259 +#: library/pprint.rst:262 msgid "Example" msgstr "" -#: library/pprint.rst:261 +#: library/pprint.rst:264 msgid "" -"To demonstrate several uses of the :func:`pprint` function and its " +"To demonstrate several uses of the :func:`~pprint.pprint` function and its " "parameters, let's fetch information about a project from `PyPI `_::" msgstr "" -#: library/pprint.rst:270 -msgid "In its basic form, :func:`pprint` shows the whole object::" +#: library/pprint.rst:273 +msgid "In its basic form, :func:`~pprint.pprint` shows the whole object::" msgstr "" -#: library/pprint.rst:326 +#: library/pprint.rst:329 msgid "" "The result can be limited to a certain *depth* (ellipsis is used for deeper " "contents)::" msgstr "" -#: library/pprint.rst:372 +#: library/pprint.rst:375 msgid "" "Additionally, maximum character *width* can be suggested. If a long object " "cannot be split, the specified width will be exceeded::" msgstr "" -#: library/pprint.rst:39 -msgid "..." +#: library/pprint.rst:224 +msgid "built-in function" msgstr "" -#: library/pprint.rst:39 -msgid "placeholder" +#: library/pprint.rst:224 +msgid "eval" msgstr "" -#: library/pprint.rst:221 -msgid "built-in function" +#: library/pprint.rst:125 +msgid "..." msgstr "" -#: library/pprint.rst:221 -msgid "eval" +#: library/pprint.rst:125 +msgid "placeholder" msgstr "" diff --git a/library/random.po b/library/random.po index 51282850c..4cfad4012 100644 --- a/library/random.po +++ b/library/random.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -413,10 +413,10 @@ msgstr "" #: library/random.rst:303 msgid "" "The end-point value ``b`` may or may not be included in the range depending " -"on floating-point rounding in the equation ``a + (b-a) * random()``." +"on floating-point rounding in the expression ``a + (b-a) * random()``." msgstr "" -#: library/random.rst:309 +#: library/random.rst:310 msgid "" "Return a random floating point number *N* such that ``low <= N <= high`` and " "with the specified *mode* between those bounds. The *low* and *high* bounds " @@ -424,13 +424,13 @@ msgid "" "between the bounds, giving a symmetric distribution." msgstr "" -#: library/random.rst:317 +#: library/random.rst:318 msgid "" "Beta distribution. Conditions on the parameters are ``alpha > 0`` and " "``beta > 0``. Returned values range between 0 and 1." msgstr "" -#: library/random.rst:323 +#: library/random.rst:324 msgid "" "Exponential distribution. *lambd* is 1.0 divided by the desired mean. It " "should be nonzero. (The parameter would be called \"lambda\", but that is a " @@ -439,29 +439,29 @@ msgid "" "negative." msgstr "" -#: library/random.rst:329 +#: library/random.rst:330 msgid "Added the default value for ``lambd``." msgstr "" -#: library/random.rst:335 +#: library/random.rst:336 msgid "" "Gamma distribution. (*Not* the gamma function!) The shape and scale " "parameters, *alpha* and *beta*, must have positive values. (Calling " "conventions vary and some sources define 'beta' as the inverse of the scale)." msgstr "" -#: library/random.rst:340 +#: library/random.rst:341 msgid "The probability distribution function is::" msgstr "" -#: library/random.rst:349 +#: library/random.rst:350 msgid "" "Normal distribution, also called the Gaussian distribution. *mu* is the " "mean, and *sigma* is the standard deviation. This is slightly faster than " "the :func:`normalvariate` function defined below." msgstr "" -#: library/random.rst:354 +#: library/random.rst:355 msgid "" "Multithreading note: When two threads call this function simultaneously, it " "is possible that they will receive the same return value. This can be " @@ -470,11 +470,11 @@ msgid "" "but thread-safe :func:`normalvariate` function instead." msgstr "" -#: library/random.rst:377 +#: library/random.rst:378 msgid "*mu* and *sigma* now have default arguments." msgstr "" -#: library/random.rst:367 +#: library/random.rst:368 msgid "" "Log normal distribution. If you take the natural logarithm of this " "distribution, you'll get a normal distribution with mean *mu* and standard " @@ -482,13 +482,13 @@ msgid "" "than zero." msgstr "" -#: library/random.rst:375 +#: library/random.rst:376 msgid "" "Normal distribution. *mu* is the mean, and *sigma* is the standard " "deviation." msgstr "" -#: library/random.rst:383 +#: library/random.rst:384 msgid "" "*mu* is the mean angle, expressed in radians between 0 and 2\\*\\ *pi*, and " "*kappa* is the concentration parameter, which must be greater than or equal " @@ -496,75 +496,75 @@ msgid "" "uniform random angle over the range 0 to 2\\*\\ *pi*." msgstr "" -#: library/random.rst:391 +#: library/random.rst:392 msgid "Pareto distribution. *alpha* is the shape parameter." msgstr "" -#: library/random.rst:396 +#: library/random.rst:397 msgid "" "Weibull distribution. *alpha* is the scale parameter and *beta* is the " "shape parameter." msgstr "" -#: library/random.rst:401 +#: library/random.rst:402 msgid "Alternative Generator" msgstr "" -#: library/random.rst:405 +#: library/random.rst:406 msgid "" "Class that implements the default pseudo-random number generator used by " "the :mod:`random` module." msgstr "" -#: library/random.rst:408 +#: library/random.rst:409 msgid "" "Formerly the *seed* could be any hashable object. Now it is limited to: " "``None``, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, or :" "class:`bytearray`." msgstr "" -#: library/random.rst:413 +#: library/random.rst:414 msgid "" "Subclasses of :class:`!Random` should override the following methods if they " "wish to make use of a different basic generator:" msgstr "" -#: library/random.rst:418 +#: library/random.rst:419 msgid "" "Override this method in subclasses to customise the :meth:`~random.seed` " "behaviour of :class:`!Random` instances." msgstr "" -#: library/random.rst:423 +#: library/random.rst:424 msgid "" "Override this method in subclasses to customise the :meth:`~random.getstate` " "behaviour of :class:`!Random` instances." msgstr "" -#: library/random.rst:428 +#: library/random.rst:429 msgid "" "Override this method in subclasses to customise the :meth:`~random.setstate` " "behaviour of :class:`!Random` instances." msgstr "" -#: library/random.rst:433 +#: library/random.rst:434 msgid "" "Override this method in subclasses to customise the :meth:`~random.random` " "behaviour of :class:`!Random` instances." msgstr "" -#: library/random.rst:436 +#: library/random.rst:437 msgid "" "Optionally, a custom generator subclass can also supply the following method:" msgstr "" -#: library/random.rst:440 +#: library/random.rst:441 msgid "" "Override this method in subclasses to customise the :meth:`~random." "getrandbits` behaviour of :class:`!Random` instances." msgstr "" -#: library/random.rst:446 +#: library/random.rst:447 msgid "" "Class that uses the :func:`os.urandom` function for generating random " "numbers from sources provided by the operating system. Not available on all " @@ -574,11 +574,11 @@ msgid "" "`NotImplementedError` if called." msgstr "" -#: library/random.rst:455 +#: library/random.rst:456 msgid "Notes on Reproducibility" msgstr "" -#: library/random.rst:457 +#: library/random.rst:458 msgid "" "Sometimes it is useful to be able to reproduce the sequences given by a " "pseudo-random number generator. By reusing a seed value, the same sequence " @@ -586,44 +586,44 @@ msgid "" "running." msgstr "" -#: library/random.rst:461 +#: library/random.rst:462 msgid "" "Most of the random module's algorithms and seeding functions are subject to " "change across Python versions, but two aspects are guaranteed not to change:" msgstr "" -#: library/random.rst:464 +#: library/random.rst:465 msgid "" "If a new seeding method is added, then a backward compatible seeder will be " "offered." msgstr "" -#: library/random.rst:467 +#: library/random.rst:468 msgid "" "The generator's :meth:`~Random.random` method will continue to produce the " "same sequence when the compatible seeder is given the same seed." msgstr "" -#: library/random.rst:473 +#: library/random.rst:474 msgid "Examples" msgstr "" -#: library/random.rst:475 +#: library/random.rst:476 msgid "Basic examples::" msgstr "" -#: library/random.rst:503 +#: library/random.rst:504 msgid "Simulations::" msgstr "" -#: library/random.rst:528 +#: library/random.rst:529 msgid "" "Example of `statistical bootstrapping `_ using resampling with replacement to estimate " "a confidence interval for the mean of a sample::" msgstr "" -#: library/random.rst:541 +#: library/random.rst:542 msgid "" "Example of a `resampling permutation test `_ to determine the statistical " @@ -631,12 +631,12 @@ msgid "" "observed difference between the effects of a drug versus a placebo::" msgstr "" -#: library/random.rst:568 +#: library/random.rst:569 msgid "" "Simulation of arrival times and service deliveries for a multiserver queue::" msgstr "" -#: library/random.rst:597 +#: library/random.rst:598 msgid "" "`Statistics for Hackers `_ a " "video tutorial by `Jake Vanderplas `_ a simulation of a marketplace by `Peter Norvig `_ a tutorial by `Peter Norvig " @@ -661,17 +661,17 @@ msgid "" "how to write simulations, and how to perform data analysis using Python." msgstr "" -#: library/random.rst:618 +#: library/random.rst:619 msgid "Recipes" msgstr "" -#: library/random.rst:620 +#: library/random.rst:621 msgid "" "These recipes show how to efficiently make random selections from the " "combinatoric iterators in the :mod:`itertools` module:" msgstr "" -#: library/random.rst:652 +#: library/random.rst:653 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 " @@ -680,7 +680,7 @@ msgid "" "integer multiple of 2⁻⁵³." msgstr "" -#: library/random.rst:658 +#: library/random.rst:659 msgid "" "The following recipe takes a different approach. All floats in the interval " "are possible selections. The mantissa comes from a uniform distribution of " @@ -689,13 +689,13 @@ msgid "" "often as the next larger exponent." msgstr "" -#: library/random.rst:680 +#: library/random.rst:681 msgid "" "All :ref:`real valued distributions ` in the " "class will use the new method::" msgstr "" -#: library/random.rst:689 +#: library/random.rst:690 msgid "" "The recipe is conceptually equivalent to an algorithm that chooses from all " "the multiples of 2⁻¹⁰⁷⁴ in the range *0.0 ≤ x < 1.0*. All such numbers are " @@ -704,7 +704,7 @@ msgid "" "and is equal to ``math.ulp(0.0)``.)" msgstr "" -#: library/random.rst:698 +#: library/random.rst:699 msgid "" "`Generating Pseudo-random Floating-Point Values `_ a paper by Allen B. Downey describing " diff --git a/library/ssl.po b/library/ssl.po index 5ad443b19..d23a78653 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -477,7 +477,7 @@ msgid "" "exactly ``True`` if the certificate is trustworthy for all purposes." msgstr "" -#: library/ssl.rst:1542 library/ssl.rst:1837 +#: library/ssl.rst:1542 library/ssl.rst:1840 msgid "Example::" msgstr "" @@ -522,7 +522,7 @@ msgid "" "does not send any for client cert authentication." msgstr "" -#: library/ssl.rst:2245 +#: library/ssl.rst:2248 msgid "See the discussion of :ref:`ssl-security` below." msgstr "" @@ -1985,28 +1985,34 @@ msgstr "" #: library/ssl.rst:1768 msgid "" +"To wrap an :class:`SSLSocket` in another :class:`SSLSocket`, use :meth:" +"`SSLContext.wrap_bio`." +msgstr "" + +#: library/ssl.rst:1771 +msgid "" "Always allow a server_hostname to be passed, even if OpenSSL does not have " "SNI." msgstr "" -#: library/ssl.rst:1798 +#: library/ssl.rst:1801 msgid "*session* argument was added." msgstr "" -#: library/ssl.rst:1775 +#: library/ssl.rst:1778 msgid "" "The method returns an instance of :attr:`SSLContext.sslsocket_class` instead " "of hard-coded :class:`SSLSocket`." msgstr "" -#: library/ssl.rst:1781 +#: library/ssl.rst:1784 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`." msgstr "" -#: library/ssl.rst:1790 +#: library/ssl.rst:1793 msgid "" "Wrap the BIO objects *incoming* and *outgoing* and return an instance of :" "attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL " @@ -2014,26 +2020,26 @@ msgid "" "outgoing BIO." msgstr "" -#: library/ssl.rst:1795 +#: library/ssl.rst:1798 msgid "" "The *server_side*, *server_hostname* and *session* parameters have the same " "meaning as in :meth:`SSLContext.wrap_socket`." msgstr "" -#: library/ssl.rst:1801 +#: library/ssl.rst:1804 msgid "" "The method returns an instance of :attr:`SSLContext.sslobject_class` instead " "of hard-coded :class:`SSLObject`." msgstr "" -#: library/ssl.rst:1807 +#: library/ssl.rst:1810 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 "" -#: library/ssl.rst:1815 +#: library/ssl.rst:1818 msgid "" "Get statistics about the SSL sessions created or managed by this context. A " "dictionary is returned which maps the names of each `piece of information " @@ -2042,7 +2048,7 @@ msgid "" "misses in the session cache since the context was created::" msgstr "" -#: library/ssl.rst:1826 +#: library/ssl.rst:1829 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:" @@ -2055,7 +2061,7 @@ msgid "" "With other protocols, hostname checking must be enabled explicitly." msgstr "" -#: library/ssl.rst:1854 +#: library/ssl.rst:1857 msgid "" ":attr:`~SSLContext.verify_mode` is now automatically changed to :data:" "`CERT_REQUIRED` when hostname checking is enabled and :attr:`~SSLContext." @@ -2063,7 +2069,7 @@ msgid "" "failed with a :exc:`ValueError`." msgstr "" -#: library/ssl.rst:1861 +#: library/ssl.rst:1864 msgid "" "Write TLS keys to a keylog file, whenever key material is generated or " "received. The keylog file is designed for debugging purposes only. The file " @@ -2072,7 +2078,7 @@ msgid "" "synchronized between threads, but not between processes." msgstr "" -#: library/ssl.rst:1871 +#: library/ssl.rst:1874 msgid "" "A :class:`TLSVersion` enum member representing the highest supported TLS " "version. The value defaults to :attr:`TLSVersion.MAXIMUM_SUPPORTED`. The " @@ -2080,7 +2086,7 @@ msgid "" "`PROTOCOL_TLS_CLIENT`, and :attr:`PROTOCOL_TLS_SERVER`." msgstr "" -#: library/ssl.rst:1876 +#: library/ssl.rst:1879 msgid "" "The attributes :attr:`~SSLContext.maximum_version`, :attr:`~SSLContext." "minimum_version` and :attr:`SSLContext.options` all affect the supported SSL " @@ -2090,38 +2096,38 @@ msgid "" "`TLSVersion.TLSv1_2` will not be able to establish a TLS 1.2 connection." msgstr "" -#: library/ssl.rst:1889 +#: library/ssl.rst:1892 msgid "" "Like :attr:`SSLContext.maximum_version` except it is the lowest supported " "version or :attr:`TLSVersion.MINIMUM_SUPPORTED`." msgstr "" -#: library/ssl.rst:1896 +#: library/ssl.rst:1899 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." msgstr "" -#: library/ssl.rst:1904 +#: library/ssl.rst:1907 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." msgstr "" -#: library/ssl.rst:1908 +#: library/ssl.rst:1911 msgid ":attr:`SSLContext.options` returns :class:`Options` flags:" msgstr "" -#: library/ssl.rst:1916 +#: library/ssl.rst:1919 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." msgstr "" -#: library/ssl.rst:1922 +#: library/ssl.rst:1925 msgid "" "Enable TLS 1.3 post-handshake client authentication. Post-handshake auth is " "disabled by default and a server can only request a TLS client certificate " @@ -2129,13 +2135,13 @@ msgid "" "client certificate at any time after the handshake." msgstr "" -#: library/ssl.rst:1927 +#: library/ssl.rst:1930 msgid "" "When enabled on client-side sockets, the client signals the server that it " "supports post-handshake authentication." msgstr "" -#: library/ssl.rst:1930 +#: library/ssl.rst:1933 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 " @@ -2143,59 +2149,59 @@ msgid "" "verify_client_post_handshake` is called and some I/O is performed." msgstr "" -#: library/ssl.rst:1940 +#: library/ssl.rst:1943 msgid "" "The protocol version chosen when constructing the context. This attribute " "is read-only." msgstr "" -#: library/ssl.rst:1945 +#: library/ssl.rst:1948 msgid "" "Whether :attr:`~SSLContext.check_hostname` falls back to verify the cert's " "subject common name in the absence of a subject alternative name extension " "(default: true)." msgstr "" -#: library/ssl.rst:1953 +#: library/ssl.rst:1956 msgid "" "The flag had no effect with OpenSSL before version 1.1.1l. Python 3.8.9, " "3.9.3, and 3.10 include workarounds for previous versions." msgstr "" -#: library/ssl.rst:1958 +#: library/ssl.rst:1961 msgid "" "An integer representing the `security level `_ for the context. This " "attribute is read-only." msgstr "" -#: library/ssl.rst:1966 +#: library/ssl.rst:1969 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)." msgstr "" -#: library/ssl.rst:1972 +#: library/ssl.rst:1975 msgid ":attr:`SSLContext.verify_flags` returns :class:`VerifyFlags` flags:" msgstr "" -#: library/ssl.rst:1980 +#: library/ssl.rst:1983 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`." msgstr "" -#: library/ssl.rst:1984 +#: library/ssl.rst:1987 msgid ":attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:" msgstr "" -#: library/ssl.rst:1997 +#: library/ssl.rst:2000 msgid "Certificates" msgstr "" -#: library/ssl.rst:1999 +#: library/ssl.rst:2002 msgid "" "Certificates in general are part of a public-key / private-key system. In " "this system, each *principal*, (which may be a machine, or a person, or an " @@ -2206,7 +2212,7 @@ msgid "" "other part, and **only** with the other part." msgstr "" -#: library/ssl.rst:2007 +#: library/ssl.rst:2010 msgid "" "A certificate contains information about two principals. It contains the " "name of a *subject*, and the subject's public key. It also contains a " @@ -2220,7 +2226,7 @@ msgid "" "as two fields, called \"notBefore\" and \"notAfter\"." msgstr "" -#: library/ssl.rst:2017 +#: library/ssl.rst:2020 msgid "" "In the Python use of certificates, a client or server can use a certificate " "to prove who they are. The other side of a network connection can also be " @@ -2233,18 +2239,18 @@ msgid "" "take place." msgstr "" -#: library/ssl.rst:2027 +#: library/ssl.rst:2030 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::" msgstr "" -#: library/ssl.rst:2036 +#: library/ssl.rst:2039 msgid "Certificate chains" msgstr "" -#: library/ssl.rst:2038 +#: library/ssl.rst:2041 msgid "" "The Python files which contain certificates can contain a sequence of " "certificates, sometimes called a *certificate chain*. This chain should " @@ -2260,11 +2266,11 @@ msgid "" "agency which issued the certification authority's certificate::" msgstr "" -#: library/ssl.rst:2062 +#: library/ssl.rst:2065 msgid "CA certificates" msgstr "" -#: library/ssl.rst:2064 +#: library/ssl.rst:2067 msgid "" "If you are going to require validation of the other side of the connection's " "certificate, you need to provide a \"CA certs\" file, filled with the " @@ -2276,11 +2282,11 @@ msgid "" "create_default_context`." msgstr "" -#: library/ssl.rst:2073 +#: library/ssl.rst:2076 msgid "Combined key and certificate" msgstr "" -#: library/ssl.rst:2075 +#: library/ssl.rst:2078 msgid "" "Often the private key is stored in the same file as the certificate; in this " "case, only the ``certfile`` parameter to :meth:`SSLContext.load_cert_chain` " @@ -2288,11 +2294,11 @@ msgid "" "should come before the first certificate in the certificate chain::" msgstr "" -#: library/ssl.rst:2089 +#: library/ssl.rst:2092 msgid "Self-signed certificates" msgstr "" -#: library/ssl.rst:2091 +#: library/ssl.rst:2094 msgid "" "If you are going to create a server that provides SSL-encrypted connection " "services, you will need to acquire a certificate for that service. There " @@ -2302,51 +2308,51 @@ msgid "" "package, using something like the following::" msgstr "" -#: library/ssl.rst:2120 +#: library/ssl.rst:2123 msgid "" "The disadvantage of a self-signed certificate is that it is its own root " "certificate, and no one else will have it in their cache of known (and " "trusted) root certificates." msgstr "" -#: library/ssl.rst:2126 +#: library/ssl.rst:2129 msgid "Examples" msgstr "" -#: library/ssl.rst:2129 +#: library/ssl.rst:2132 msgid "Testing for SSL support" msgstr "" -#: library/ssl.rst:2131 +#: library/ssl.rst:2134 msgid "" "To test for the presence of SSL support in a Python installation, user code " "should use the following idiom::" msgstr "" -#: library/ssl.rst:2142 +#: library/ssl.rst:2145 msgid "Client-side operation" msgstr "" -#: library/ssl.rst:2144 +#: library/ssl.rst:2147 msgid "" "This example creates a SSL context with the recommended security settings " "for client sockets, including automatic certificate verification::" msgstr "" -#: library/ssl.rst:2149 +#: library/ssl.rst:2152 msgid "" "If you prefer to tune security settings yourself, you might create a context " "from scratch (but beware that you might not get the settings right)::" msgstr "" -#: library/ssl.rst:2156 +#: library/ssl.rst:2159 msgid "" "(this snippet assumes your operating system places a bundle of all CA " "certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an " "error and have to adjust the location)" msgstr "" -#: library/ssl.rst:2160 +#: library/ssl.rst:2163 msgid "" "The :data:`PROTOCOL_TLS_CLIENT` protocol configures the context for cert " "validation and hostname verification. :attr:`~SSLContext.verify_mode` is set " @@ -2354,7 +2360,7 @@ msgid "" "``True``. All other protocols create SSL contexts with insecure defaults." msgstr "" -#: library/ssl.rst:2165 +#: library/ssl.rst:2168 msgid "" "When you use the context to connect to a server, :const:`CERT_REQUIRED` and :" "attr:`~SSLContext.check_hostname` validate the server certificate: it " @@ -2363,27 +2369,27 @@ msgid "" "properties like validity and identity of the hostname::" msgstr "" -#: library/ssl.rst:2175 +#: library/ssl.rst:2178 msgid "You may then fetch the certificate::" msgstr "" -#: library/ssl.rst:2179 +#: library/ssl.rst:2182 msgid "" "Visual inspection shows that the certificate does identify the desired " "service (that is, the HTTPS host ``www.python.org``)::" msgstr "" -#: library/ssl.rst:2222 +#: library/ssl.rst:2225 msgid "" "Now the SSL channel is established and the certificate verified, you can " "proceed to talk with the server::" msgstr "" -#: library/ssl.rst:2249 +#: library/ssl.rst:2252 msgid "Server-side operation" msgstr "" -#: library/ssl.rst:2251 +#: library/ssl.rst:2254 msgid "" "For server operation, typically you'll need to have a server certificate, " "and private key, each in a file. You'll first create a context holding the " @@ -2392,20 +2398,20 @@ msgid "" "start waiting for clients to connect::" msgstr "" -#: library/ssl.rst:2266 +#: library/ssl.rst:2269 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::" msgstr "" -#: library/ssl.rst:2279 +#: library/ssl.rst:2282 msgid "" "Then you'll read data from the ``connstream`` and do something with it till " "you are finished with the client (or the client is finished with you)::" msgstr "" -#: library/ssl.rst:2293 +#: library/ssl.rst:2296 msgid "" "And go back to listening for new client connections (of course, a real " "server would probably handle each client connection in a separate thread, or " @@ -2413,18 +2419,18 @@ msgid "" "event loop)." msgstr "" -#: library/ssl.rst:2301 +#: library/ssl.rst:2304 msgid "Notes on non-blocking sockets" msgstr "" -#: library/ssl.rst:2303 +#: library/ssl.rst:2306 msgid "" "SSL sockets behave slightly different than regular sockets in non-blocking " "mode. When working with non-blocking sockets, there are thus several things " "you need to be aware of:" msgstr "" -#: library/ssl.rst:2307 +#: library/ssl.rst:2310 msgid "" "Most :class:`SSLSocket` methods will raise either :exc:`SSLWantWriteError` " "or :exc:`SSLWantReadError` instead of :exc:`BlockingIOError` if an I/O " @@ -2436,13 +2442,13 @@ msgid "" "require a prior *write* to the underlying socket." msgstr "" -#: library/ssl.rst:2319 +#: library/ssl.rst:2322 msgid "" "In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero " "instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`." msgstr "" -#: library/ssl.rst:2323 +#: library/ssl.rst:2326 msgid "" "Calling :func:`~select.select` tells you that the OS-level socket can be " "read from (or written to), but it does not imply that there is sufficient " @@ -2452,7 +2458,7 @@ msgid "" "`~select.select`." msgstr "" -#: library/ssl.rst:2330 +#: library/ssl.rst:2333 msgid "" "Conversely, since the SSL layer has its own framing, a SSL socket may still " "have data available for reading without :func:`~select.select` being aware " @@ -2461,13 +2467,13 @@ msgid "" "call if still necessary." msgstr "" -#: library/ssl.rst:2336 +#: library/ssl.rst:2339 msgid "" "(of course, similar provisions apply when using other primitives such as :" "func:`~select.poll`, or those in the :mod:`selectors` module)" msgstr "" -#: library/ssl.rst:2339 +#: library/ssl.rst:2342 msgid "" "The SSL handshake itself will be non-blocking: the :meth:`SSLSocket." "do_handshake` method has to be retried until it returns successfully. Here " @@ -2475,7 +2481,7 @@ msgid "" "readiness::" msgstr "" -#: library/ssl.rst:2355 +#: library/ssl.rst:2358 msgid "" "The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets ` and provides a higher level API. It polls for events using " @@ -2484,26 +2490,26 @@ msgid "" "handshake asynchronously as well." msgstr "" -#: library/ssl.rst:2364 +#: library/ssl.rst:2367 msgid "Memory BIO Support" msgstr "" -#: library/ssl.rst:2368 +#: library/ssl.rst:2371 msgid "" "Ever since the SSL module was introduced in Python 2.6, the :class:" "`SSLSocket` class has provided two related but distinct areas of " "functionality:" msgstr "" -#: library/ssl.rst:2371 +#: library/ssl.rst:2374 msgid "SSL protocol handling" msgstr "" -#: library/ssl.rst:2372 +#: library/ssl.rst:2375 msgid "Network IO" msgstr "" -#: library/ssl.rst:2374 +#: library/ssl.rst:2377 msgid "" "The network IO API is identical to that provided by :class:`socket.socket`, " "from which :class:`SSLSocket` also inherits. This allows an SSL socket to be " @@ -2511,7 +2517,7 @@ msgid "" "add SSL support to an existing application." msgstr "" -#: library/ssl.rst:2379 +#: library/ssl.rst:2382 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 " @@ -2523,7 +2529,7 @@ msgid "" "`SSLObject` is provided." msgstr "" -#: library/ssl.rst:2390 +#: library/ssl.rst:2393 msgid "" "A reduced-scope variant of :class:`SSLSocket` representing an SSL protocol " "instance that does not contain any network IO methods. This class is " @@ -2531,7 +2537,7 @@ msgid "" "for SSL through memory buffers." msgstr "" -#: library/ssl.rst:2395 +#: library/ssl.rst:2398 msgid "" "This class implements an interface on top of a low-level SSL object as " "implemented by OpenSSL. This object captures the state of an SSL connection " @@ -2539,7 +2545,7 @@ msgid "" "separate \"BIO\" objects which are OpenSSL's IO abstraction layer." msgstr "" -#: library/ssl.rst:2400 +#: library/ssl.rst:2403 msgid "" "This class has no public constructor. An :class:`SSLObject` instance must " "be created using the :meth:`~SSLContext.wrap_bio` method. This method will " @@ -2548,207 +2554,207 @@ msgid "" "instance, while the *outgoing* BIO is used to pass data the other way around." msgstr "" -#: library/ssl.rst:2407 +#: library/ssl.rst:2410 msgid "The following methods are available:" msgstr "" -#: library/ssl.rst:2409 +#: library/ssl.rst:2412 msgid ":attr:`~SSLSocket.context`" msgstr "" -#: library/ssl.rst:2410 +#: library/ssl.rst:2413 msgid ":attr:`~SSLSocket.server_side`" msgstr "" -#: library/ssl.rst:2411 +#: library/ssl.rst:2414 msgid ":attr:`~SSLSocket.server_hostname`" msgstr "" -#: library/ssl.rst:2412 +#: library/ssl.rst:2415 msgid ":attr:`~SSLSocket.session`" msgstr "" -#: library/ssl.rst:2413 +#: library/ssl.rst:2416 msgid ":attr:`~SSLSocket.session_reused`" msgstr "" -#: library/ssl.rst:2414 +#: library/ssl.rst:2417 msgid ":meth:`~SSLSocket.read`" msgstr "" -#: library/ssl.rst:2415 +#: library/ssl.rst:2418 msgid ":meth:`~SSLSocket.write`" msgstr "" -#: library/ssl.rst:2416 +#: library/ssl.rst:2419 msgid ":meth:`~SSLSocket.getpeercert`" msgstr "" -#: library/ssl.rst:2417 +#: library/ssl.rst:2420 msgid ":meth:`~SSLSocket.selected_alpn_protocol`" msgstr "" -#: library/ssl.rst:2418 +#: library/ssl.rst:2421 msgid ":meth:`~SSLSocket.selected_npn_protocol`" msgstr "" -#: library/ssl.rst:2419 +#: library/ssl.rst:2422 msgid ":meth:`~SSLSocket.cipher`" msgstr "" -#: library/ssl.rst:2420 +#: library/ssl.rst:2423 msgid ":meth:`~SSLSocket.shared_ciphers`" msgstr "" -#: library/ssl.rst:2421 +#: library/ssl.rst:2424 msgid ":meth:`~SSLSocket.compression`" msgstr "" -#: library/ssl.rst:2422 +#: library/ssl.rst:2425 msgid ":meth:`~SSLSocket.pending`" msgstr "" -#: library/ssl.rst:2423 +#: library/ssl.rst:2426 msgid ":meth:`~SSLSocket.do_handshake`" msgstr "" -#: library/ssl.rst:2424 +#: library/ssl.rst:2427 msgid ":meth:`~SSLSocket.verify_client_post_handshake`" msgstr "" -#: library/ssl.rst:2425 +#: library/ssl.rst:2428 msgid ":meth:`~SSLSocket.unwrap`" msgstr "" -#: library/ssl.rst:2426 +#: library/ssl.rst:2429 msgid ":meth:`~SSLSocket.get_channel_binding`" msgstr "" -#: library/ssl.rst:2427 +#: library/ssl.rst:2430 msgid ":meth:`~SSLSocket.version`" msgstr "" -#: library/ssl.rst:2429 +#: library/ssl.rst:2432 msgid "" "When compared to :class:`SSLSocket`, this object lacks the following " "features:" msgstr "" -#: library/ssl.rst:2432 +#: library/ssl.rst:2435 msgid "" "Any form of network IO; ``recv()`` and ``send()`` read and write only to the " "underlying :class:`MemoryBIO` buffers." msgstr "" -#: library/ssl.rst:2435 +#: library/ssl.rst:2438 msgid "" "There is no *do_handshake_on_connect* machinery. You must always manually " "call :meth:`~SSLSocket.do_handshake` to start the handshake." msgstr "" -#: library/ssl.rst:2438 +#: library/ssl.rst:2441 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." msgstr "" -#: library/ssl.rst:2442 +#: library/ssl.rst:2445 msgid "" "The method :meth:`~SSLSocket.unwrap` call does not return anything, unlike " "for an SSL socket where it returns the underlying socket." msgstr "" -#: library/ssl.rst:2445 +#: library/ssl.rst:2448 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." msgstr "" -#: library/ssl.rst:2449 +#: library/ssl.rst:2452 msgid "Some notes related to the use of :class:`SSLObject`:" msgstr "" -#: library/ssl.rst:2451 +#: library/ssl.rst:2454 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." msgstr "" -#: library/ssl.rst:2456 +#: library/ssl.rst:2459 msgid "" ":class:`SSLObject` instances must be created with :meth:`~SSLContext." "wrap_bio`. In earlier versions, it was possible to create instances " "directly. This was never documented or officially supported." msgstr "" -#: library/ssl.rst:2462 +#: library/ssl.rst:2465 msgid "" "An SSLObject communicates with the outside world using memory buffers. The " "class :class:`MemoryBIO` provides a memory buffer that can be used for this " "purpose. It wraps an OpenSSL memory BIO (Basic IO) object:" msgstr "" -#: library/ssl.rst:2468 +#: library/ssl.rst:2471 msgid "" "A memory buffer that can be used to pass data between Python and an SSL " "protocol instance." msgstr "" -#: library/ssl.rst:2473 +#: library/ssl.rst:2476 msgid "Return the number of bytes currently in the memory buffer." msgstr "" -#: library/ssl.rst:2477 +#: library/ssl.rst:2480 msgid "" "A boolean indicating whether the memory BIO is current at the end-of-file " "position." msgstr "" -#: library/ssl.rst:2482 +#: library/ssl.rst:2485 msgid "" "Read up to *n* bytes from the memory buffer. If *n* is not specified or " "negative, all bytes are returned." msgstr "" -#: library/ssl.rst:2487 +#: library/ssl.rst:2490 msgid "" "Write the bytes from *buf* to the memory BIO. The *buf* argument must be an " "object supporting the buffer protocol." msgstr "" -#: library/ssl.rst:2490 +#: library/ssl.rst:2493 msgid "" "The return value is the number of bytes written, which is always equal to " "the length of *buf*." msgstr "" -#: library/ssl.rst:2495 +#: library/ssl.rst:2498 msgid "" "Write an EOF marker to the memory BIO. After this method has been called, it " "is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will " "become true after all data currently in the buffer has been read." msgstr "" -#: library/ssl.rst:2501 +#: library/ssl.rst:2504 msgid "SSL session" msgstr "" -#: library/ssl.rst:2507 +#: library/ssl.rst:2510 msgid "Session object used by :attr:`~SSLSocket.session`." msgstr "" -#: library/ssl.rst:2519 +#: library/ssl.rst:2522 msgid "Security considerations" msgstr "" -#: library/ssl.rst:2522 +#: library/ssl.rst:2525 msgid "Best defaults" msgstr "" -#: library/ssl.rst:2524 +#: library/ssl.rst:2527 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:" @@ -2758,19 +2764,19 @@ msgid "" "settings." msgstr "" -#: library/ssl.rst:2531 +#: library/ssl.rst:2534 msgid "" "For example, here is how you would use the :class:`smtplib.SMTP` class to " "create a trusted, secure connection to a SMTP server::" msgstr "" -#: library/ssl.rst:2540 +#: library/ssl.rst:2543 msgid "" "If a client certificate is needed for the connection, it can be added with :" "meth:`SSLContext.load_cert_chain`." msgstr "" -#: library/ssl.rst:2543 +#: library/ssl.rst:2546 msgid "" "By contrast, if you create the SSL context by calling the :class:" "`SSLContext` constructor yourself, it will not have certificate validation " @@ -2778,15 +2784,15 @@ msgid "" "paragraphs below to achieve a good security level." msgstr "" -#: library/ssl.rst:2549 +#: library/ssl.rst:2552 msgid "Manual settings" msgstr "" -#: library/ssl.rst:2552 +#: library/ssl.rst:2555 msgid "Verifying certificates" msgstr "" -#: library/ssl.rst:2554 +#: library/ssl.rst:2557 msgid "" "When calling the :class:`SSLContext` constructor directly, :const:" "`CERT_NONE` is the default. Since it does not authenticate the other peer, " @@ -2801,13 +2807,13 @@ msgid "" "enabled." msgstr "" -#: library/ssl.rst:2566 +#: library/ssl.rst:2569 msgid "" "Hostname matchings is now performed by OpenSSL. Python no longer uses :func:" "`match_hostname`." msgstr "" -#: library/ssl.rst:2570 +#: library/ssl.rst:2573 msgid "" "In server mode, if you want to authenticate your clients using the SSL layer " "(rather than using a higher-level authentication mechanism), you'll also " @@ -2815,11 +2821,11 @@ msgid "" "certificate." msgstr "" -#: library/ssl.rst:2576 +#: library/ssl.rst:2579 msgid "Protocol versions" msgstr "" -#: library/ssl.rst:2578 +#: library/ssl.rst:2581 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 " @@ -2828,7 +2834,7 @@ msgid "" "by default." msgstr "" -#: library/ssl.rst:2591 +#: library/ssl.rst:2594 msgid "" "The SSL context created above will only allow TLSv1.3 and later (if " "supported by your system) connections to a server. :const:" @@ -2836,11 +2842,11 @@ msgid "" "default. You have to load certificates into the context." msgstr "" -#: library/ssl.rst:2598 +#: library/ssl.rst:2601 msgid "Cipher selection" msgstr "" -#: library/ssl.rst:2600 +#: library/ssl.rst:2603 msgid "" "If you have advanced security requirements, fine-tuning of the ciphers " "enabled when negotiating a SSL session is possible through the :meth:" @@ -2853,11 +2859,11 @@ msgid "" "ciphers`` command on your system." msgstr "" -#: library/ssl.rst:2611 +#: library/ssl.rst:2614 msgid "Multi-processing" msgstr "" -#: library/ssl.rst:2613 +#: library/ssl.rst:2616 msgid "" "If using this module as part of a multi-processed application (using, for " "example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules), be " @@ -2868,17 +2874,17 @@ msgid "" "sufficient." msgstr "" -#: library/ssl.rst:2625 +#: library/ssl.rst:2628 msgid "TLS 1.3" msgstr "" -#: library/ssl.rst:2629 +#: library/ssl.rst:2632 msgid "" "The TLS 1.3 protocol behaves slightly differently than previous version of " "TLS/SSL. Some new TLS 1.3 features are not yet available." msgstr "" -#: library/ssl.rst:2632 +#: library/ssl.rst:2635 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." @@ -2886,14 +2892,14 @@ msgid "" "`SSLContext.get_ciphers` returns them." msgstr "" -#: library/ssl.rst:2636 +#: library/ssl.rst:2639 msgid "" "Session tickets are no longer sent as part of the initial handshake and are " "handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are " "not compatible with TLS 1.3." msgstr "" -#: library/ssl.rst:2639 +#: library/ssl.rst:2642 msgid "" "Client-side certificates are also no longer verified during the initial " "handshake. A server can request a certificate at any time. Clients process " @@ -2901,103 +2907,103 @@ msgid "" "server." msgstr "" -#: library/ssl.rst:2643 +#: library/ssl.rst:2646 msgid "" "TLS 1.3 features like early data, deferred TLS client cert request, " "signature algorithm configuration, and rekeying are not supported yet." msgstr "" -#: library/ssl.rst:2650 +#: library/ssl.rst:2653 msgid "Class :class:`socket.socket`" msgstr "" -#: library/ssl.rst:2650 +#: library/ssl.rst:2653 msgid "Documentation of underlying :mod:`socket` class" msgstr "" -#: library/ssl.rst:2653 +#: library/ssl.rst:2656 msgid "" "`SSL/TLS Strong Encryption: An Introduction `_" msgstr "" -#: library/ssl.rst:2653 +#: library/ssl.rst:2656 msgid "Intro from the Apache HTTP Server documentation" msgstr "" -#: library/ssl.rst:2656 +#: library/ssl.rst:2659 msgid "" ":rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: " "Certificate-Based Key Management <1422>`" msgstr "" -#: library/ssl.rst:2656 +#: library/ssl.rst:2659 msgid "Steve Kent" msgstr "" -#: library/ssl.rst:2659 +#: library/ssl.rst:2662 msgid ":rfc:`RFC 4086: Randomness Requirements for Security <4086>`" msgstr "" -#: library/ssl.rst:2659 +#: library/ssl.rst:2662 msgid "Donald E., Jeffrey I. Schiller" msgstr "" -#: library/ssl.rst:2662 +#: library/ssl.rst:2665 msgid "" ":rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and " "Certificate Revocation List (CRL) Profile <5280>`" msgstr "" -#: library/ssl.rst:2662 +#: library/ssl.rst:2665 msgid "D. Cooper" msgstr "" -#: library/ssl.rst:2665 +#: library/ssl.rst:2668 msgid "" ":rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 " "<5246>`" msgstr "" -#: library/ssl.rst:2665 +#: library/ssl.rst:2668 msgid "T. Dierks et. al." msgstr "" -#: library/ssl.rst:2668 +#: library/ssl.rst:2671 msgid ":rfc:`RFC 6066: Transport Layer Security (TLS) Extensions <6066>`" msgstr "" -#: library/ssl.rst:2668 +#: library/ssl.rst:2671 msgid "D. Eastlake" msgstr "" -#: library/ssl.rst:2671 +#: library/ssl.rst:2674 msgid "" "`IANA TLS: Transport Layer Security (TLS) Parameters `_" msgstr "" -#: library/ssl.rst:2671 +#: library/ssl.rst:2674 msgid "IANA" msgstr "" -#: library/ssl.rst:2674 +#: library/ssl.rst:2677 msgid "" ":rfc:`RFC 7525: Recommendations for Secure Use of Transport Layer Security " "(TLS) and Datagram Transport Layer Security (DTLS) <7525>`" msgstr "" -#: library/ssl.rst:2674 +#: library/ssl.rst:2677 msgid "IETF" msgstr "" -#: library/ssl.rst:2676 +#: library/ssl.rst:2679 msgid "" "`Mozilla's Server Side TLS recommendations `_" msgstr "" -#: library/ssl.rst:2677 +#: library/ssl.rst:2680 msgid "Mozilla" msgstr "" @@ -3025,10 +3031,10 @@ msgstr "" msgid "Secure Sockets Layer" msgstr "" -#: library/ssl.rst:1990 +#: library/ssl.rst:1993 msgid "certificates" msgstr "" -#: library/ssl.rst:1992 +#: library/ssl.rst:1995 msgid "X509 certificate" msgstr "" diff --git a/library/stdtypes.po b/library/stdtypes.po index 7a21ca7a8..548988d2f 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2023-02-01 18:55-0500\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -6842,11 +6842,12 @@ msgid "The NotImplemented Object" msgstr "NotImplemented Nesnesi" #: library/stdtypes.rst:5448 +#, fuzzy msgid "" "This object is returned from comparisons and binary operations when they are " "asked to operate on types they don't support. See :ref:`comparisons` for " -"more information. There is exactly one ``NotImplemented`` object. " -"``type(NotImplemented)()`` produces the singleton instance." +"more information. There is exactly one :data:`NotImplemented` object. :code:" +"`type(NotImplemented)()` produces the singleton instance." msgstr "" "Bu nesne, desteklemedikleri türlerde çalışmaları istendiğinde " "karşılaştırmalardan ve ikili işlemlerden döndürülür. Daha fazla bilgi için :" @@ -6854,7 +6855,8 @@ msgstr "" "nesnesi vardır. ``type(NotImplemented)()``, singleton örneğini üretir." #: library/stdtypes.rst:5453 -msgid "It is written as ``NotImplemented``." +#, fuzzy +msgid "It is written as :code:`NotImplemented`." msgstr "''NotImplemented'' olarak yazılmıştır." #: library/stdtypes.rst:5459 diff --git a/library/threading.po b/library/threading.po index a114146e7..4e643767e 100644 --- a/library/threading.po +++ b/library/threading.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-18 22:33+0300\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -940,7 +940,7 @@ msgid "" msgstr "" #: library/threading.rst:865 library/threading.rst:963 -#: library/threading.rst:1034 +#: library/threading.rst:1031 msgid "changed from a factory function to a class." msgstr "" @@ -994,7 +994,7 @@ msgid "" "it is ``False``." msgstr "" -#: library/threading.rst:999 +#: library/threading.rst:996 msgid "Previously, the method always returned ``None``." msgstr "" @@ -1239,31 +1239,25 @@ msgstr "" #: library/threading.rst:986 msgid "" -"Block until the internal flag is true. If the internal flag is true on " -"entry, return immediately. Otherwise, block until another thread calls :" -"meth:`.set` to set the flag to true, or until the optional timeout occurs." +"Block as long as the internal flag is false and the timeout, if given, has " +"not expired. The return value represents the reason that this blocking " +"method returned; ``True`` if returning because the internal flag is set to " +"true, or ``False`` if a timeout is given and the the internal flag did not " +"become true within the given wait time." msgstr "" -#: library/threading.rst:990 +#: library/threading.rst:992 msgid "" "When the timeout argument is present and not ``None``, it should be a " -"floating point number specifying a timeout for the operation in seconds (or " -"fractions thereof)." -msgstr "" - -#: library/threading.rst:994 -msgid "" -"This method returns ``True`` if and only if the internal flag has been set " -"to true, either before the wait call or after the wait starts, so it will " -"always return ``True`` except if a timeout is given and the operation times " -"out." +"floating point number specifying a timeout for the operation in seconds, or " +"fractions thereof." msgstr "" -#: library/threading.rst:1006 +#: library/threading.rst:1003 msgid "Timer Objects" msgstr "" -#: library/threading.rst:1008 +#: library/threading.rst:1005 msgid "" "This class represents an action that should be run only after a certain " "amount of time has passed --- a timer. :class:`Timer` is a subclass of :" @@ -1271,7 +1265,7 @@ msgid "" "threads." msgstr "" -#: library/threading.rst:1012 +#: library/threading.rst:1009 msgid "" "Timers are started, as with threads, by calling their :meth:`Timer.start " "` method. The timer can be stopped (before its action has " @@ -1280,11 +1274,11 @@ msgid "" "interval specified by the user." msgstr "" -#: library/threading.rst:1018 +#: library/threading.rst:1015 msgid "For example::" msgstr "" -#: library/threading.rst:1029 +#: library/threading.rst:1026 msgid "" "Create a timer that will run *function* with arguments *args* and keyword " "arguments *kwargs*, after *interval* seconds have passed. If *args* is " @@ -1292,17 +1286,17 @@ msgid "" "``None`` (the default) then an empty dict will be used." msgstr "" -#: library/threading.rst:1039 +#: library/threading.rst:1036 msgid "" "Stop the timer, and cancel the execution of the timer's action. This will " "only work if the timer is still in its waiting stage." msgstr "" -#: library/threading.rst:1044 +#: library/threading.rst:1041 msgid "Barrier Objects" msgstr "" -#: library/threading.rst:1048 +#: library/threading.rst:1045 msgid "" "This class provides a simple synchronization primitive for use by a fixed " "number of threads that need to wait for each other. Each of the threads " @@ -1311,18 +1305,18 @@ msgid "" "calls. At this point, the threads are released simultaneously." msgstr "" -#: library/threading.rst:1054 +#: library/threading.rst:1051 msgid "" "The barrier can be reused any number of times for the same number of threads." msgstr "" -#: library/threading.rst:1056 +#: library/threading.rst:1053 msgid "" "As an example, here is a simple way to synchronize a client and server " "thread::" msgstr "" -#: library/threading.rst:1076 +#: library/threading.rst:1073 msgid "" "Create a barrier object for *parties* number of threads. An *action*, when " "provided, is a callable to be called by one of the threads when they are " @@ -1330,7 +1324,7 @@ msgid "" "the :meth:`wait` method." msgstr "" -#: library/threading.rst:1083 +#: library/threading.rst:1080 msgid "" "Pass the barrier. When all the threads party to the barrier have called " "this function, they are all released simultaneously. If a *timeout* is " @@ -1338,44 +1332,44 @@ msgid "" "constructor." msgstr "" -#: library/threading.rst:1088 +#: library/threading.rst:1085 msgid "" "The return value is an integer in the range 0 to *parties* -- 1, different " "for each thread. This can be used to select a thread to do some special " "housekeeping, e.g.::" msgstr "" -#: library/threading.rst:1097 +#: library/threading.rst:1094 msgid "" "If an *action* was provided to the constructor, one of the threads will have " "called it prior to being released. Should this call raise an error, the " "barrier is put into the broken state." msgstr "" -#: library/threading.rst:1101 +#: library/threading.rst:1098 msgid "If the call times out, the barrier is put into the broken state." msgstr "" -#: library/threading.rst:1103 +#: library/threading.rst:1100 msgid "" "This method may raise a :class:`BrokenBarrierError` exception if the barrier " "is broken or reset while a thread is waiting." msgstr "" -#: library/threading.rst:1108 +#: library/threading.rst:1105 msgid "" "Return the barrier to the default, empty state. Any threads waiting on it " "will receive the :class:`BrokenBarrierError` exception." msgstr "" -#: library/threading.rst:1111 +#: library/threading.rst:1108 msgid "" "Note that using this function may require some external synchronization if " "there are other threads whose state is unknown. If a barrier is broken it " "may be better to just leave it and create a new one." msgstr "" -#: library/threading.rst:1117 +#: library/threading.rst:1114 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 " @@ -1383,36 +1377,36 @@ msgid "" "application." msgstr "" -#: library/threading.rst:1122 +#: library/threading.rst:1119 msgid "" "It may be preferable to simply create the barrier with a sensible *timeout* " "value to automatically guard against one of the threads going awry." msgstr "" -#: library/threading.rst:1128 +#: library/threading.rst:1125 msgid "The number of threads required to pass the barrier." msgstr "" -#: library/threading.rst:1132 +#: library/threading.rst:1129 msgid "The number of threads currently waiting in the barrier." msgstr "" -#: library/threading.rst:1136 +#: library/threading.rst:1133 msgid "A boolean that is ``True`` if the barrier is in the broken state." msgstr "" -#: library/threading.rst:1141 +#: library/threading.rst:1138 msgid "" "This exception, a subclass of :exc:`RuntimeError`, is raised when the :class:" "`Barrier` object is reset or broken." msgstr "" -#: library/threading.rst:1148 +#: library/threading.rst:1145 msgid "" "Using locks, conditions, and semaphores in the :keyword:`!with` statement" msgstr "" -#: library/threading.rst:1150 +#: library/threading.rst:1147 msgid "" "All of the objects provided by this module that have ``acquire`` and " "``release`` methods can be used as context managers for a :keyword:`with` " @@ -1421,11 +1415,11 @@ msgid "" "following snippet::" msgstr "" -#: library/threading.rst:1159 +#: library/threading.rst:1156 msgid "is equivalent to::" msgstr "" -#: library/threading.rst:1167 +#: library/threading.rst:1164 msgid "" "Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`, :class:" "`Semaphore`, and :class:`BoundedSemaphore` objects may be used as :keyword:" diff --git a/library/time.po b/library/time.po index 2761db304..07a36c60b 100644 --- a/library/time.po +++ b/library/time.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2023-03-01 11:44+0300\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -301,8 +301,8 @@ msgstr "" "Belirtilen *clk_id* saatinin netliğini (kesinliğini) döndür. *clk_id*'e " "uygun değerlerin bir listesi için :ref:`time-clock-id-constants`'a bakınız." -#: library/time.rst:174 library/time.rst:196 library/time.rst:707 -#: library/time.rst:843 library/time.rst:906 +#: library/time.rst:174 library/time.rst:196 library/time.rst:717 +#: library/time.rst:853 library/time.rst:916 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Availability `: Unix." @@ -764,74 +764,91 @@ msgid "Day of the month as a decimal number [01,31]." msgstr "Onluk sayı şeklinde ayın günü [01,31]." #: library/time.rst:431 +msgid "``%f``" +msgstr "" + +#: library/time.rst:432 +#, fuzzy +msgid "Microseconds as a decimal number" +msgstr "Onluk sayı şeklinde saniye [00,61]." + +#: library/time.rst:432 +msgid "[000000,999999]." +msgstr "" + +#: library/time.rst:431 +msgid "\\(1)" +msgstr "\\(1)" + +#: library/time.rst:435 msgid "``%H``" msgstr "``%H``" -#: library/time.rst:431 +#: library/time.rst:435 msgid "Hour (24-hour clock) as a decimal number [00,23]." msgstr "Onluk sayı şeklinde saat (24-saatlik sistem) [00,23]." -#: library/time.rst:434 +#: library/time.rst:438 msgid "``%I``" msgstr "``%I``" -#: library/time.rst:434 +#: library/time.rst:438 msgid "Hour (12-hour clock) as a decimal number [01,12]." msgstr "Onluk sayı şeklinde saat (12-saatlik sistem) [01,12]." -#: library/time.rst:437 +#: library/time.rst:441 msgid "``%j``" msgstr "``%j``" -#: library/time.rst:437 +#: library/time.rst:441 msgid "Day of the year as a decimal number [001,366]." msgstr "Onluk sayı şeklinde yılın günü [001,366]." -#: library/time.rst:440 +#: library/time.rst:444 msgid "``%m``" msgstr "``%m``" -#: library/time.rst:440 +#: library/time.rst:444 msgid "Month as a decimal number [01,12]." msgstr "Onluk sayı şeklinde ay [01,12]." -#: library/time.rst:443 +#: library/time.rst:447 msgid "``%M``" msgstr "``%M``" -#: library/time.rst:443 +#: library/time.rst:447 msgid "Minute as a decimal number [00,59]." msgstr "Onluk sayı şeklinde dakika [00,59]." -#: library/time.rst:446 +#: library/time.rst:450 msgid "``%p``" msgstr "``%p``" -#: library/time.rst:446 +#: library/time.rst:450 msgid "Locale's equivalent of either AM or PM." msgstr "Yerel ayarın AM veya PM'e göre karşılığı." -#: library/time.rst:446 -msgid "\\(1)" -msgstr "\\(1)" +#: library/time.rst:450 +msgid "\\(2)" +msgstr "\\(2)" -#: library/time.rst:449 +#: library/time.rst:453 msgid "``%S``" msgstr "``%S``" -#: library/time.rst:449 +#: library/time.rst:453 msgid "Second as a decimal number [00,61]." msgstr "Onluk sayı şeklinde saniye [00,61]." -#: library/time.rst:449 -msgid "\\(2)" -msgstr "\\(2)" +#: library/time.rst:453 +msgid "\\(3)" +msgstr "\\(3)" -#: library/time.rst:452 +#: library/time.rst:456 msgid "``%U``" msgstr "``%U``" -#: library/time.rst:452 +#: library/time.rst:456 msgid "" "Week number of the year (Sunday as the first day of the week) as a decimal " "number [00,53]. All days in a new year preceding the first Sunday are " @@ -841,23 +858,23 @@ msgstr "" "numarası [00,53]. Yeni bir yılın ilk Pazar gününden önceki tüm günleri 0. " "hafta olarak kabul edilir." -#: library/time.rst:463 -msgid "\\(3)" -msgstr "\\(3)" +#: library/time.rst:467 +msgid "\\(4)" +msgstr "" -#: library/time.rst:460 +#: library/time.rst:464 msgid "``%w``" msgstr "``%w``" -#: library/time.rst:460 +#: library/time.rst:464 msgid "Weekday as a decimal number [0(Sunday),6]." msgstr "Onluk sayı şeklinde hafta içi [0(Sunday),6]." -#: library/time.rst:463 +#: library/time.rst:467 msgid "``%W``" msgstr "``%W``" -#: library/time.rst:463 +#: library/time.rst:467 msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " "number [00,53]. All days in a new year preceding the first Monday are " @@ -867,43 +884,43 @@ msgstr "" "numarası [00,53]. Yeni bir yılın ilk Pazartesi gününden önceki tüm günleri " "0. hafta olarak kabul edilir." -#: library/time.rst:471 +#: library/time.rst:475 msgid "``%x``" msgstr "``%x``" -#: library/time.rst:471 +#: library/time.rst:475 msgid "Locale's appropriate date representation." msgstr "Yerel ayarın uygun tarih gösterimi." -#: library/time.rst:474 +#: library/time.rst:478 msgid "``%X``" msgstr "``%X``" -#: library/time.rst:474 +#: library/time.rst:478 msgid "Locale's appropriate time representation." msgstr "Yerel ayarın uygun zaman gösterimi." -#: library/time.rst:477 +#: library/time.rst:481 msgid "``%y``" msgstr "``%y``" -#: library/time.rst:477 +#: library/time.rst:481 msgid "Year without century as a decimal number [00,99]." msgstr "Onluk sayı şeklinde yüzyıl olmadan yıl [00,99]." -#: library/time.rst:480 +#: library/time.rst:484 msgid "``%Y``" msgstr "``%Y``" -#: library/time.rst:480 +#: library/time.rst:484 msgid "Year with century as a decimal number." msgstr "Onluk sayı şeklinde yüzyıl ile birlikte yıl." -#: library/time.rst:483 +#: library/time.rst:487 msgid "``%z``" msgstr "``%z``" -#: library/time.rst:483 +#: library/time.rst:487 msgid "" "Time zone offset indicating a positive or negative time difference from UTC/" "GMT of the form +HHMM or -HHMM, where H represents decimal hour digits and M " @@ -913,29 +930,37 @@ msgstr "" "farkını gösteren saat dilimi farkı, burada H ondalık saat hanelerini ve M " "ondalık dakika hanelerini temsil eder [-23:59, +23:59]. [1]_" -#: library/time.rst:489 +#: library/time.rst:493 msgid "``%Z``" msgstr "``%Z``" -#: library/time.rst:489 +#: library/time.rst:493 msgid "Time zone name (no characters if no time zone exists). Deprecated. [1]_" msgstr "" "Yerel zaman ismi (yerel zaman bulunmuyorsa karakter girmeyin). Kullanımdan " "kaldırıldı. [1]_" -#: library/time.rst:492 +#: library/time.rst:496 msgid "``%%``" msgstr "``%%``" -#: library/time.rst:492 +#: library/time.rst:496 msgid "A literal ``'%'`` character." msgstr "Gerçek bir ``'%'`` karakteri." -#: library/time.rst:495 +#: library/time.rst:499 msgid "Notes:" msgstr "Notlar:" -#: library/time.rst:498 +#: library/time.rst:502 +msgid "" +"The ``%f`` format directive only applies to :func:`strptime`, not to :func:" +"`strftime`. However, see also :meth:`datetime.datetime.strptime` and :meth:" +"`datetime.datetime.strftime` where the ``%f`` format directive :ref:`applies " +"to microseconds `." +msgstr "" + +#: library/time.rst:508 msgid "" "When used with the :func:`strptime` function, the ``%p`` directive only " "affects the output hour field if the ``%I`` directive is used to parse the " @@ -945,7 +970,7 @@ msgstr "" "ayrıştırmak için ``%I`` yönergesi kullanılıyorsa, çıkış saati alanını " "etkiler." -#: library/time.rst:504 +#: library/time.rst:514 msgid "" "The range really is ``0`` to ``61``; value ``60`` is valid in timestamps " "representing `leap seconds`_ and value ``61`` is supported for historical " @@ -955,7 +980,7 @@ msgstr "" "seconds`_ 'u temsil eden zaman damgalarında geçerlidir ve ``61`` değeriyse " "tarihsel nedenlerden ötürü desteklenmektedir." -#: library/time.rst:509 +#: library/time.rst:519 msgid "" "When used with the :func:`strptime` function, ``%U`` and ``%W`` are only " "used in calculations when the day of the week and the year are specified." @@ -963,7 +988,7 @@ msgstr "" "``%U`` ve ``%W`` ifadeleri, :func:`strptime` fonksiyonu ile kullanıldığında, " "yalnızca haftanın günü ve yıl belirtilmişse hesaplamalarda kullanılır." -#: library/time.rst:512 +#: library/time.rst:522 msgid "" "Here is an example, a format for dates compatible with that specified in " "the :rfc:`2822` Internet email standard. [1]_ ::" @@ -971,7 +996,7 @@ msgstr "" "İşte bir örnek, :rfc:`2822` İnternet e-posta standardında belirtilenle " "uyumlu tarih biçimi. [1]_ ::" -#: library/time.rst:519 +#: library/time.rst:529 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 " @@ -983,7 +1008,7 @@ msgstr "" "Platformunuzda desteklenen tüm biçim kodlarını görmek için :manpage:" "`strftime(3)` belgelerine bakın." -#: library/time.rst:524 +#: library/time.rst:534 msgid "" "On some platforms, an optional field width and precision specification can " "immediately follow the initial ``'%'`` of a directive in the following " @@ -995,7 +1020,7 @@ msgstr "" "bu da taşınabilir değil. Alan genişliği, 3 olduğu ``%j`` dışında normalde " "2'dir." -#: library/time.rst:535 +#: library/time.rst:545 msgid "" "Parse a string representing a time according to a format. The return value " "is a :class:`struct_time` as returned by :func:`gmtime` or :func:`localtime`." @@ -1004,7 +1029,7 @@ msgstr "" "değeri, :func:`gmtime` veya :func:`localtime` tarafından döndürülen bir :" "class:`struct_time` şeklindedir." -#: library/time.rst:539 +#: library/time.rst:549 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 " @@ -1023,11 +1048,11 @@ msgstr "" "0, 0, 0, 0, 1, -1)`` şeklindedir. Hem *string* hem de *format* dize " "olmalıdır." -#: library/time.rst:547 +#: library/time.rst:557 msgid "For example:" msgstr "Örnek olarak:" -#: library/time.rst:554 +#: library/time.rst:564 msgid "" "Support for the ``%Z`` directive is based on the values contained in " "``tzname`` and whether ``daylight`` is true. Because of this, it is " @@ -1039,7 +1064,7 @@ msgstr "" "zaman bilinen (ve gün ışığından yararlanma saat dilimleri olarak kabul " "edilen) UTC ve GMT'yi tanımak dışında platforma özgüdür." -#: library/time.rst:559 +#: library/time.rst:569 msgid "" "Only the directives specified in the documentation are supported. Because " "``strftime()`` is implemented per platform it can sometimes offer more " @@ -1052,7 +1077,7 @@ msgstr "" "sunabilir. Ancak ``strptime()`` herhangi bir platformdan bağımsızdır ve bu " "nedenle desteklendiği belgelenmeyen mevcut tüm yönergeleri desteklemeyebilir." -#: library/time.rst:568 +#: library/time.rst:578 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 " @@ -1064,105 +1089,105 @@ msgstr "" "nesnedir: değerlere dizin ve öznitelik adıyla erişilebilir. Aşağıdaki " "değerler mevcuttur:" -#: library/time.rst:575 +#: library/time.rst:585 msgid "Index" msgstr "Dizin" -#: library/time.rst:576 +#: library/time.rst:586 msgid "Attribute" msgstr "Öznitelik" -#: library/time.rst:577 +#: library/time.rst:587 msgid "Values" msgstr "Değerler" -#: library/time.rst:579 +#: library/time.rst:589 msgid "0" msgstr "0" -#: library/time.rst:581 +#: library/time.rst:591 msgid "(for example, 1993)" msgstr "(örnek olarak, 1993)" -#: library/time.rst:583 +#: library/time.rst:593 msgid "1" msgstr "1" -#: library/time.rst:585 +#: library/time.rst:595 msgid "range [1, 12]" msgstr "[1, 12] aralığı" -#: library/time.rst:587 +#: library/time.rst:597 msgid "2" msgstr "2" -#: library/time.rst:589 +#: library/time.rst:599 msgid "range [1, 31]" msgstr "[1, 31] aralığı" -#: library/time.rst:591 +#: library/time.rst:601 msgid "3" msgstr "3" -#: library/time.rst:593 +#: library/time.rst:603 msgid "range [0, 23]" msgstr "[0, 23] aralığı" -#: library/time.rst:595 +#: library/time.rst:605 msgid "4" msgstr "4" -#: library/time.rst:597 +#: library/time.rst:607 msgid "range [0, 59]" msgstr "[0, 59] aralığa" -#: library/time.rst:599 +#: library/time.rst:609 msgid "5" msgstr "5" -#: library/time.rst:601 +#: library/time.rst:611 #, fuzzy msgid "range [0, 61]; see :ref:`Note (2) ` in :func:`strftime`" msgstr "[0, 61] aralığı; :func:`strftime` içinde **(2)** açıklamasına göz atın" -#: library/time.rst:603 +#: library/time.rst:613 msgid "6" msgstr "6" -#: library/time.rst:605 +#: library/time.rst:615 #, fuzzy msgid "range [0, 6]; Monday is 0" msgstr "[0, 6] aralığı, Pazartesi 0'dır" -#: library/time.rst:607 +#: library/time.rst:617 msgid "7" msgstr "7" -#: library/time.rst:609 +#: library/time.rst:619 msgid "range [1, 366]" msgstr "[1, 366] aralığı" -#: library/time.rst:611 +#: library/time.rst:621 msgid "8" msgstr "8" -#: library/time.rst:613 +#: library/time.rst:623 msgid "0, 1 or -1; see below" msgstr "0, 1 veya -1; aşağıya bakınız" -#: library/time.rst:619 +#: library/time.rst:629 msgid "N/A" msgstr "N/A" -#: library/time.rst:617 +#: library/time.rst:627 msgid "abbreviation of timezone name" msgstr "saat diliminin adının kısaltması" -#: library/time.rst:621 +#: library/time.rst:631 msgid "offset east of UTC in seconds" msgstr "UTC'nin doğusundaki saniye farkı" -#: library/time.rst:623 +#: library/time.rst:633 msgid "" "Note that unlike the C structure, the month value is a range of [1, 12], not " "[0, 11]." @@ -1170,7 +1195,7 @@ msgstr "" "C yapısından farklı olarak, ay değerinin menzili [1, 12] arasındadır, [0, " "11] değil." -#: library/time.rst:626 +#: library/time.rst:636 msgid "" "In calls to :func:`mktime`, :attr:`tm_isdst` may be set to 1 when daylight " "savings time is in effect, and 0 when it is not. A value of -1 indicates " @@ -1181,7 +1206,7 @@ msgstr "" "1, etkin değilken 0 olarak ayarlanabilir. -1 değeri bunun bilinmediğini " "gösterir ve genellikle doğru durumun doldurulmasıyla sonuçlanır." -#: library/time.rst:630 +#: library/time.rst:640 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:" @@ -1191,7 +1216,7 @@ msgstr "" "iletildiğinde, veya yanlış türde elemanlara sahip olmak, bir :exc:" "`TypeError` yükseltir." -#: library/time.rst:636 +#: library/time.rst:646 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 " @@ -1205,7 +1230,7 @@ msgstr "" "saniye cinsinden süreye dahil edilmez. Bu genellikle `Unix time `_ olarak anılır." -#: library/time.rst:642 +#: library/time.rst:652 msgid "" "Note that even though the time is always returned as a floating point " "number, not all systems provide time with a better precision than 1 second. " @@ -1218,7 +1243,7 @@ msgstr "" "Bu fonksiyon normalde azalmayan değerler döndürürken, sistem saati iki çağrı " "arasında geri ayarlanmışsa önceki çağrıdan daha düşük bir değer döndürebilir." -#: library/time.rst:648 +#: library/time.rst:658 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 :" @@ -1233,7 +1258,7 @@ msgstr "" "iki durumda da, takvim tarihinin bileşenlerine nitelikler olarak " "erişilebilen bir :class:`struct_time` nesnesi döndürülür." -#: library/time.rst:655 +#: library/time.rst:665 msgid "" "Use :func:`time_ns` to avoid the precision loss caused by the :class:`float` " "type." @@ -1241,7 +1266,7 @@ msgstr "" ":class:`float` türünden kaynaklanan kesinlik kaybından kaçınmak için :func:" "`time_ns` kullanınız." -#: library/time.rst:661 +#: library/time.rst:671 msgid "" "Similar to :func:`~time.time` but returns time as an integer number of " "nanoseconds since the epoch_." @@ -1249,7 +1274,7 @@ msgstr "" ":func:`~time.time`'ye benzer, ancak zamanı, epoch_ 'den bu yana geçen " "nanosaniyelerin tamsayısı olarak döndürür." -#: library/time.rst:674 +#: library/time.rst:684 msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current thread. It does not include time elapsed during " @@ -1263,7 +1288,7 @@ msgstr "" "noktası tanımsızdır, böylece sadece aynı iş parçacığındaki iki çağrının " "sonuçları arasındaki fark geçerlidir." -#: library/time.rst:680 +#: library/time.rst:690 msgid "" "Use :func:`thread_time_ns` to avoid the precision loss caused by the :class:" "`float` type." @@ -1271,21 +1296,21 @@ msgstr "" ":class:`float` türünün neden olduğu kesinlik kaybını önlemek için :func:" "`thread_time_ns` kullanın." -#: library/time.rst:683 +#: library/time.rst:693 msgid ":ref:`Availability `: Linux, Unix, Windows." msgstr ":ref:`Availability `: Linux, Unix, Windows." -#: library/time.rst:685 +#: library/time.rst:695 msgid "Unix systems supporting ``CLOCK_THREAD_CPUTIME_ID``." msgstr "Unix sistemler ``CLOCK_THREAD_CPUTIME_ID`` destekliyor." -#: library/time.rst:692 +#: library/time.rst:702 msgid "Similar to :func:`thread_time` but return time as nanoseconds." msgstr "" ":func:`thread_time` ile benzer şekilde ama zamanı nanosaniyeler şeklinde " "döndürür." -#: library/time.rst:699 +#: library/time.rst:709 msgid "" "Reset the time conversion rules used by the library routines. The " "environment variable :envvar:`TZ` specifies how this is done. It will also " @@ -1304,7 +1329,7 @@ msgstr "" "ışığından yararlanma saatinin uygulandığı geçmiş, şimdi veya gelecek bir " "zaman varsa sıfırdan farklı)." -#: library/time.rst:711 +#: library/time.rst:721 msgid "" "Although in many cases, changing the :envvar:`TZ` environment variable may " "affect the output of functions like :func:`localtime` without calling :func:" @@ -1314,11 +1339,11 @@ msgstr "" "gibi işlevlerin çıktısını :func:`tzset` çağırmadan etkileyebilirse de, bu " "davranışa güvenilmemelidir." -#: library/time.rst:715 +#: library/time.rst:725 msgid "The :envvar:`TZ` environment variable should contain no whitespace." msgstr ":envvar:`TZ` çevre değişkeni boşluk karakteri içermemelidir." -#: library/time.rst:717 +#: library/time.rst:727 msgid "" "The standard format of the :envvar:`TZ` environment variable is (whitespace " "added for clarity)::" @@ -1326,15 +1351,15 @@ msgstr "" ":envvar:`TZ` çevre değişkeninin standart biçimi (boşluk karakteri açıklık " "için eklenmiştir)::" -#: library/time.rst:722 +#: library/time.rst:732 msgid "Where the components are:" msgstr "Bileşenlerin olduğu yerde:" -#: library/time.rst:726 +#: library/time.rst:736 msgid "``std`` and ``dst``" msgstr "``std`` ve ``dst``" -#: library/time.rst:725 +#: library/time.rst:735 msgid "" "Three or more alphanumerics giving the timezone abbreviations. These will be " "propagated into time.tzname" @@ -1342,11 +1367,11 @@ msgstr "" "Üç veya daha fazla harfler ve sayılar saat dilimi kısaltmalarını veriyor. " "Bunlar time.tzname içine yayılacaktır" -#: library/time.rst:732 +#: library/time.rst:742 msgid "``offset``" msgstr "``offset``" -#: library/time.rst:729 +#: library/time.rst:739 msgid "" "The offset has the form: ``± hh[:mm[:ss]]``. This indicates the value added " "the local time to arrive at UTC. If preceded by a '-', the timezone is east " @@ -1359,11 +1384,11 @@ msgstr "" "bir sapma yoksa, yaz saatinin standart saatten bir saat ileri olduğu " "varsayılır." -#: library/time.rst:754 +#: library/time.rst:764 msgid "``start[/time], end[/time]``" msgstr "``start[/time], end[/time]``" -#: library/time.rst:735 +#: library/time.rst:745 msgid "" "Indicates when to change to and back from DST. The format of the start and " "end dates are one of the following:" @@ -1371,11 +1396,11 @@ msgstr "" "DST'ye ne zaman geçileceğini ve DST'den geri dönüleceğini gösterir. " "Başlangıç ve bitiş tarihlerinin biçimi aşağıdakilerden biridir:" -#: library/time.rst:740 +#: library/time.rst:750 msgid ":samp:`J{n}`" msgstr ":samp:`J{n}`" -#: library/time.rst:739 +#: library/time.rst:749 msgid "" "The Julian day *n* (1 <= *n* <= 365). Leap days are not counted, so in all " "years February 28 is day 59 and March 1 is day 60." @@ -1383,11 +1408,11 @@ msgstr "" "Jülyen günü *n* (1 <= *n* <= 365). Artık günler sayılmaz, yani bütün " "yıllarda 28 Şubat 59. gün ve 1 Mart 60. gündür." -#: library/time.rst:744 +#: library/time.rst:754 msgid ":samp:`{n}`" msgstr ":samp:`{n}`" -#: library/time.rst:743 +#: library/time.rst:753 msgid "" "The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it " "is possible to refer to February 29." @@ -1395,11 +1420,11 @@ msgstr "" "Sıfır tabanlı Jülyen günü (0 <= *n* <= 365). Artık günler dahil edilmiştir, " "ve 29 Şubat'tan bahsetmek mümkündür." -#: library/time.rst:751 +#: library/time.rst:761 msgid ":samp:`M{m}.{n}.{d}`" msgstr ":samp:`M{m}.{n}.{d}`" -#: library/time.rst:747 +#: library/time.rst:757 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 " @@ -1410,7 +1435,7 @@ msgstr "" "5, 1 <= *m* <= 12, burada 5. hafta \"the last *d* day in month *m*\" " "anlamına gelir ve dördüncü veya beşinci haftada olabilir)." -#: library/time.rst:753 +#: library/time.rst:763 msgid "" "``time`` has the same format as ``offset`` except that no leading sign ('-' " "or '+') is allowed. The default, if time is not given, is 02:00:00." @@ -1419,7 +1444,7 @@ msgstr "" "haricinde aynı biçime sahiptir. Zaman verilmemişse, varsayılan olarak " "02:00:00'dır." -#: library/time.rst:767 +#: library/time.rst:777 msgid "" "On many Unix systems (including \\*BSD, Linux, Solaris, and Darwin), it is " "more convenient to use the system's zoneinfo (:manpage:`tzfile(5)`) " @@ -1438,11 +1463,11 @@ msgstr "" "Eastern'``, ``'Australia/Melbourne'``, ``'Egypt'`` veya ``'Europe/" "Amsterdam'``. ::" -#: library/time.rst:788 +#: library/time.rst:798 msgid "Clock ID Constants" msgstr "Saat Kimliği Sabitleri" -#: library/time.rst:790 +#: library/time.rst:800 msgid "" "These constants are used as parameters for :func:`clock_getres` and :func:" "`clock_gettime`." @@ -1450,7 +1475,7 @@ msgstr "" "Şu sabitler :func:`clock_getres` ve :func:`clock_gettime` için parametre " "olarak kullanılırlar." -#: library/time.rst:795 +#: library/time.rst:805 msgid "" "Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that " "the system is suspended." @@ -1458,7 +1483,7 @@ msgstr "" ":data:`CLOCK_MONOTONIC` ile aynı şekilde, ancak o sistemin askıya alındığı " "herhangi bir zamanı da içerir." -#: library/time.rst:798 +#: library/time.rst:808 msgid "" "This allows applications to get a suspend-aware monotonic clock without " "having to deal with the complications of :data:`CLOCK_REALTIME`, which may " @@ -1470,11 +1495,11 @@ msgstr "" "değiştirildiğinde süreksizliklere sahip olabilecek, askıya alma farkında " "monoton bir saat elde etmelerini sağlar." -#: library/time.rst:803 +#: library/time.rst:813 msgid ":ref:`Availability `: Linux >= 2.6.39." msgstr ":ref:`Availability `: Linux >= 2.6.39." -#: library/time.rst:810 +#: library/time.rst:820 msgid "" "The Solaris OS has a ``CLOCK_HIGHRES`` timer that attempts to use an optimal " "hardware source, and may give close to nanosecond resolution. " @@ -1484,11 +1509,11 @@ msgstr "" "yakın kesinlik sağlayabilen bir ``CLOCK_HIGHRES`` zamanlayıcıya sahiptir. " "``CLOCK_HIGHRES`` ayarlanamaz, yüksek kesinlikli saattir." -#: library/time.rst:814 +#: library/time.rst:824 msgid ":ref:`Availability `: Solaris." msgstr ":ref:`Availability `: Solaris." -#: library/time.rst:821 +#: library/time.rst:831 msgid "" "Clock that cannot be set and represents monotonic time since some " "unspecified starting point." @@ -1496,7 +1521,7 @@ msgstr "" "Belirsiz başlangıç noktasından beri ayarlanamayan ve monoton zamanı temsil " "eden saat." -#: library/time.rst:831 +#: library/time.rst:841 msgid "" "Similar to :data:`CLOCK_MONOTONIC`, but provides access to a raw hardware-" "based time that is not subject to NTP adjustments." @@ -1504,19 +1529,19 @@ msgstr "" ":data:`CLOCK_MONOTONIC` ile benzer, ama NTP ayarlamalarına tabii olmayan " "donanım bazlı ham zamana erişim sağlar." -#: library/time.rst:834 +#: library/time.rst:844 msgid ":ref:`Availability `: Linux >= 2.6.28, macOS >= 10.12." msgstr ":ref:`Availability `: Linux >= 2.6.28, macOS >= 10.12." -#: library/time.rst:850 +#: library/time.rst:860 msgid "High-resolution per-process timer from the CPU." msgstr "CPU'dan yüksek kesinlikli işlem başına zamanlayıcısı." -#: library/time.rst:852 +#: library/time.rst:862 msgid ":ref:`Availability `: FreeBSD, NetBSD >= 7, OpenBSD." msgstr ":ref:`Availability `: FreeBSD, NetBSD >= 7, OpenBSD." -#: library/time.rst:858 +#: library/time.rst:868 msgid "" "`International Atomic Time `_" @@ -1524,7 +1549,7 @@ msgstr "" "`International Atomic Time `_" -#: library/time.rst:860 +#: library/time.rst:870 msgid "" "The system must have a current leap second table in order for this to give " "the correct answer. PTP or NTP software can maintain a leap second table." @@ -1533,15 +1558,15 @@ msgstr "" "tablosuna sahip olması gerekir. PTP veya NTP yazılımı artık saniye " "tablosunu sürdürebilir." -#: library/time.rst:863 +#: library/time.rst:873 msgid ":ref:`Availability `: Linux." msgstr ":ref:`Availability `: Linux." -#: library/time.rst:869 +#: library/time.rst:879 msgid "Thread-specific CPU-time clock." msgstr "İş parçacığına özgü CPU zamanlayıcı saati." -#: library/time.rst:878 +#: library/time.rst:888 msgid "" "Time whose absolute value is the time the system has been running and not " "suspended, providing accurate uptime measurement, both absolute and interval." @@ -1549,11 +1574,11 @@ msgstr "" "Mutlak değeri sistemin çalıştığı ve askıya alınmadığı süre olan süre, hem " "mutlak hem de aralıklı olarak doğru çalışma süresi ölçümü sağlar." -#: library/time.rst:882 +#: library/time.rst:892 msgid ":ref:`Availability `: FreeBSD, OpenBSD >= 5.5." msgstr ":ref:`Availability `: FreeBSD, OpenBSD >= 5.5." -#: library/time.rst:889 +#: library/time.rst:899 msgid "" "Clock that increments monotonically, tracking the time since an arbitrary " "point, unaffected by frequency or time adjustments and not incremented while " @@ -1563,18 +1588,18 @@ msgstr "" "ediyor, sıklıktan ve zaman ayarlamalarından etkilenmiyor ve sistem " "uykudayken artmıyor." -#: library/time.rst:893 +#: library/time.rst:903 msgid ":ref:`Availability `: macOS >= 10.12." msgstr ":ref:`Availability `: macOS >= 10.12." -#: library/time.rst:897 +#: library/time.rst:907 msgid "" "The following constant is the only parameter that can be sent to :func:" "`clock_settime`." msgstr "" "Aşağıdaki sabit :func:`clock_settime`'a gönderilebilecek tek parametredir." -#: library/time.rst:903 +#: library/time.rst:913 msgid "" "System-wide real-time clock. Setting this clock requires appropriate " "privileges." @@ -1582,11 +1607,11 @@ msgstr "" "Sistem çapında gerçek zamanlı saat. Bu saati ayarlamak uygun izinleri " "gerektirir." -#: library/time.rst:914 +#: library/time.rst:924 msgid "Timezone Constants" msgstr "Saat dilimi Sabitleri" -#: library/time.rst:918 +#: library/time.rst:928 msgid "" "The offset of the local DST timezone, in seconds west of UTC, if one is " "defined. This is negative if the local DST timezone is east of UTC (as in " @@ -1598,13 +1623,13 @@ msgstr "" "Avrupa'da olduğu gibi) bu negatiftir. Bunu yalnızca ``daylight`` sıfır " "değilse kullanın. Aşağıdaki nota bakın." -#: library/time.rst:924 +#: library/time.rst:934 msgid "Nonzero if a DST timezone is defined. See note below." msgstr "" "Sıfırdan farklı, eğer bir DST saat dilimi tanımlanmışsa. Aşağıdaki nota göz " "atın." -#: library/time.rst:928 +#: library/time.rst:938 msgid "" "The offset of the local (non-DST) timezone, in seconds west of UTC (negative " "in most of Western Europe, positive in the US, zero in the UK). See note " @@ -1614,7 +1639,7 @@ msgstr "" "farkı (Batı Avrupa'nın çoğunda negatif, ABD'de pozitif, Birleşik Krallık'ta " "sıfır). Aşağıdaki nota bakın." -#: library/time.rst:933 +#: library/time.rst:943 msgid "" "A tuple of two strings: the first is the name of the local non-DST timezone, " "the second is the name of the local DST timezone. If no DST timezone is " @@ -1624,7 +1649,7 @@ msgstr "" "ikincisi yerel DST saat diliminin ismi. DST saat dilimi tanımlanmamışsa, " "ikinci dize kullanılmamalı. Aşağıdaki nota bakın." -#: library/time.rst:939 +#: library/time.rst:949 #, fuzzy msgid "" "For the above Timezone constants (:data:`altzone`, :data:`daylight`, :data:" @@ -1641,19 +1666,19 @@ msgstr "" "almak için :func:`localtime`'den :attr:`tm_gmtoff` ve :attr:`tm_zone` " "sonuçlarının kullanılması önerilir." -#: library/time.rst:949 +#: library/time.rst:959 msgid "Module :mod:`datetime`" msgstr ":mod:`datetime` modülü" -#: library/time.rst:949 +#: library/time.rst:959 msgid "More object-oriented interface to dates and times." msgstr "Tarihler ve zamanlar için daha fazla nesne tabanlı arayüz." -#: library/time.rst:953 +#: library/time.rst:963 msgid "Module :mod:`locale`" msgstr ":mod:`locale` modülü" -#: library/time.rst:952 +#: library/time.rst:962 msgid "" "Internationalization services. The locale setting affects the " "interpretation of many format specifiers in :func:`strftime` and :func:" @@ -1662,11 +1687,11 @@ msgstr "" "Uluslararasılaştırma servisleri. Yerel ayar, :func:`strftime` ve :func:" "`strptime` içindeki birçok biçim belirticisinin yorumlanmasını etkiler." -#: library/time.rst:956 +#: library/time.rst:966 msgid "Module :mod:`calendar`" msgstr ":mod:`calendar` modülü" -#: library/time.rst:956 +#: library/time.rst:966 msgid "" "General calendar-related functions. :func:`~calendar.timegm` is the " "inverse of :func:`gmtime` from this module." @@ -1674,11 +1699,11 @@ msgstr "" "Genel takvim ile alakalı fonksiyonlar. :func:`~calendar.timegm` bu " "modüldeki :func:`gmtime`'in tersidir." -#: library/time.rst:960 +#: library/time.rst:970 msgid "Footnotes" msgstr "Dipnotlar" -#: library/time.rst:961 +#: library/time.rst:971 msgid "" "The use of ``%Z`` is now deprecated, but the ``%z`` escape that expands to " "the preferred hour/minute offset is not supported by all ANSI C libraries. " @@ -1724,23 +1749,23 @@ msgstr "" msgid "Daylight Saving Time" msgstr "" -#: library/time.rst:336 library/time.rst:669 +#: library/time.rst:336 library/time.rst:679 msgid "benchmarking" msgstr "" -#: library/time.rst:669 +#: library/time.rst:679 msgid "CPU time" msgstr "" -#: library/time.rst:669 +#: library/time.rst:679 msgid "processor time" msgstr "" -#: library/time.rst:530 +#: library/time.rst:540 msgid "% (percent)" msgstr "" -#: library/time.rst:530 +#: library/time.rst:540 msgid "datetime format" msgstr "" diff --git a/library/unittest.mock.po b/library/unittest.mock.po index b9044b4e2..47427e40c 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -1715,19 +1715,19 @@ msgid "Methods and their defaults:" msgstr "" #: library/unittest.mock.rst:2097 -msgid "``__lt__``: ``NotImplemented``" +msgid "``__lt__``: :data:`NotImplemented`" msgstr "" #: library/unittest.mock.rst:2098 -msgid "``__gt__``: ``NotImplemented``" +msgid "``__gt__``: :data:`!NotImplemented`" msgstr "" #: library/unittest.mock.rst:2099 -msgid "``__le__``: ``NotImplemented``" +msgid "``__le__``: :data:`!NotImplemented`" msgstr "" #: library/unittest.mock.rst:2100 -msgid "``__ge__``: ``NotImplemented``" +msgid "``__ge__``: :data:`!NotImplemented`" msgstr "" #: library/unittest.mock.rst:2101 diff --git a/reference/datamodel.po b/reference/datamodel.po index 49073226a..bb9c167c9 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -36,8 +36,8 @@ msgstr "" msgid "" "Every object has an identity, a type and a value. An object's *identity* " "never changes once it has been created; you may think of it as the object's " -"address in memory. The ':keyword:`is`' operator compares the identity of " -"two objects; the :func:`id` function returns an integer representing its " +"address in memory. The :keyword:`is` operator compares the identity of two " +"objects; the :func:`id` function returns an integer representing its " "identity." msgstr "" @@ -93,8 +93,8 @@ msgstr "" msgid "" "Note that the use of the implementation's tracing or debugging facilities " "may keep objects alive that would normally be collectable. Also note that " -"catching an exception with a ':keyword:`try`...\\ :keyword:`except`' " -"statement may keep objects alive." +"catching an exception with a :keyword:`try`...\\ :keyword:`except` statement " +"may keep objects alive." msgstr "" #: reference/datamodel.rst:87 @@ -104,8 +104,8 @@ 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 " +"to explicitly close such objects. The :keyword:`try`...\\ :keyword:" +"`finally` statement and the :keyword:`with` statement provide convenient " "ways to do this." msgstr "" @@ -175,7 +175,7 @@ msgstr "" #: reference/datamodel.rst:161 msgid "" "This type has a single value. There is a single object with this value. " -"This object is accessed through the built-in name ``NotImplemented``. " +"This object is accessed through the built-in name :data:`NotImplemented`. " "Numeric methods and rich comparison methods should return this value if they " "do not implement the operation for the operands provided. (The interpreter " "will then try the reflected operation, or some other fallback, depending on " @@ -188,8 +188,8 @@ msgstr "" #: reference/datamodel.rst:172 msgid "" -"Evaluating ``NotImplemented`` in a boolean context is deprecated. While it " -"currently evaluates as true, it will emit a :exc:`DeprecationWarning`. It " +"Evaluating :data:`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 "" @@ -1977,8 +1977,8 @@ msgstr "" #: reference/datamodel.rst:1783 msgid "" -"A rich comparison method may return the singleton ``NotImplemented`` if it " -"does not implement the operation for a given pair of arguments. By " +"A rich comparison method may return the singleton :data:`NotImplemented` if " +"it does not implement the operation for a given pair of arguments. By " "convention, ``False`` and ``True`` are returned for a successful comparison. " "However, these methods can return any value, so if the comparison operator " "is used in a Boolean context (e.g., in the condition of an ``if`` " @@ -1988,11 +1988,11 @@ msgstr "" #: reference/datamodel.rst:1790 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 " +"By default, ``object`` implements :meth:`__eq__` by using ``is``, returning :" +"data:`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 :data:`!NotImplemented`. There " +"are no other implied relationships among the comparison operators or default " "implementations; for example, the truth of ``(x=`` 0. The return value may also be :const:" +"The length must be an integer ``>=`` 0. The return value may also be :data:" "`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." @@ -3340,7 +3340,7 @@ msgstr "" #: reference/datamodel.rst:2975 msgid "" "If one of those methods does not support the operation with the supplied " -"arguments, it should return ``NotImplemented``." +"arguments, it should return :data:`NotImplemented`." msgstr "" #: reference/datamodel.rst:2998 @@ -3352,8 +3352,8 @@ msgid "" "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*." +"__rsub__(y, x)`` is called if ``type(x).__sub__(x, y)`` returns :data:" +"`NotImplemented`." msgstr "" #: reference/datamodel.rst:3010 @@ -3377,29 +3377,31 @@ msgid "" "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " "``>>=``, ``&=``, ``^=``, ``|=``). These methods should attempt to do the " "operation in-place (modifying *self*) and return the result (which could be, " -"but does not have to be, *self*). If a specific method is not defined, the " -"augmented assignment falls back to the normal methods. For instance, if *x* " -"is an instance of a class with an :meth:`__iadd__` method, ``x += y`` is " -"equivalent to ``x = x.__iadd__(y)`` . Otherwise, ``x.__add__(y)`` and ``y." -"__radd__(x)`` are considered, as with the evaluation of ``x + y``. In " -"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." +"but does not have to be, *self*). If a specific method is not defined, or " +"if that method returns :data:`NotImplemented`, 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)`` . If :meth:`__iadd__` does not exist, or if ``x.__iadd__(y)`` " +"returns :data:`!NotImplemented`, ``x.__add__(y)`` and ``y.__radd__(x)`` are " +"considered, as with the evaluation of ``x + y``. In certain situations, " +"augmented assignment can result in unexpected errors (see :ref:`faq-" +"augmented-assignment-tuple-error`), but this behavior is in fact part of the " +"data model." msgstr "" -#: reference/datamodel.rst:3057 +#: reference/datamodel.rst:3059 msgid "" "Called to implement the unary arithmetic operations (``-``, ``+``, :func:" "`abs` and ``~``)." msgstr "" -#: reference/datamodel.rst:3070 +#: reference/datamodel.rst:3072 msgid "" "Called to implement the built-in functions :func:`complex`, :func:`int` and :" "func:`float`. Should return a value of the appropriate type." msgstr "" -#: reference/datamodel.rst:3077 +#: reference/datamodel.rst:3079 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -3408,14 +3410,14 @@ msgid "" "integer type. Must return an integer." msgstr "" -#: reference/datamodel.rst:3083 +#: reference/datamodel.rst:3085 msgid "" "If :meth:`__int__`, :meth:`__float__` and :meth:`__complex__` are not " "defined then corresponding built-in functions :func:`int`, :func:`float` " "and :func:`complex` fall back to :meth:`__index__`." msgstr "" -#: reference/datamodel.rst:3095 +#: reference/datamodel.rst:3097 msgid "" "Called to implement the built-in function :func:`round` and :mod:`math` " "functions :func:`~math.trunc`, :func:`~math.floor` and :func:`~math.ceil`. " @@ -3424,21 +3426,21 @@ msgid "" "(typically an :class:`int`)." msgstr "" -#: reference/datamodel.rst:3101 +#: reference/datamodel.rst:3103 msgid "" "The built-in function :func:`int` falls back to :meth:`__trunc__` if " "neither :meth:`__int__` nor :meth:`__index__` is defined." msgstr "" -#: reference/datamodel.rst:3104 +#: reference/datamodel.rst:3106 msgid "The delegation of :func:`int` to :meth:`__trunc__` is deprecated." msgstr "" -#: reference/datamodel.rst:3111 +#: reference/datamodel.rst:3113 msgid "With Statement Context Managers" msgstr "" -#: reference/datamodel.rst:3113 +#: reference/datamodel.rst:3115 msgid "" "A :dfn:`context manager` is an object that defines the runtime context to be " "established when executing a :keyword:`with` statement. The context manager " @@ -3448,32 +3450,32 @@ msgid "" "can also be used by directly invoking their methods." msgstr "" -#: reference/datamodel.rst:3124 +#: reference/datamodel.rst:3126 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." msgstr "" -#: reference/datamodel.rst:3127 +#: reference/datamodel.rst:3129 msgid "" "For more information on context managers, see :ref:`typecontextmanager`." msgstr "" -#: reference/datamodel.rst:3132 +#: reference/datamodel.rst:3134 msgid "" "Enter the runtime context related to this object. The :keyword:`with` " "statement will bind this method's return value to the target(s) specified in " "the :keyword:`!as` clause of the statement, if any." msgstr "" -#: reference/datamodel.rst:3139 +#: reference/datamodel.rst:3141 msgid "" "Exit the runtime context related to this object. The parameters describe the " "exception that caused the context to be exited. If the context was exited " "without an exception, all three arguments will be :const:`None`." msgstr "" -#: reference/datamodel.rst:3143 +#: reference/datamodel.rst:3145 msgid "" "If an exception is supplied, and the method wishes to suppress the exception " "(i.e., prevent it from being propagated), it should return a true value. " @@ -3481,27 +3483,27 @@ msgid "" "method." msgstr "" -#: reference/datamodel.rst:3147 +#: reference/datamodel.rst:3149 msgid "" "Note that :meth:`~object.__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." msgstr "" -#: reference/datamodel.rst:3154 +#: reference/datamodel.rst:3156 msgid ":pep:`343` - The \"with\" statement" msgstr "" -#: reference/datamodel.rst:3154 +#: reference/datamodel.rst:3156 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." msgstr "" -#: reference/datamodel.rst:3161 +#: reference/datamodel.rst:3163 msgid "Customizing positional arguments in class pattern matching" msgstr "" -#: reference/datamodel.rst:3163 +#: reference/datamodel.rst:3165 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 " @@ -3509,7 +3511,7 @@ msgid "" "pattern, the class needs to define a *__match_args__* attribute." msgstr "" -#: reference/datamodel.rst:3170 +#: reference/datamodel.rst:3172 msgid "" "This class variable can be assigned a tuple of strings. When this class is " "used in a class pattern with positional arguments, each positional argument " @@ -3518,7 +3520,7 @@ msgid "" "to setting it to ``()``." msgstr "" -#: reference/datamodel.rst:3176 +#: reference/datamodel.rst:3178 msgid "" "For example, if ``MyClass.__match_args__`` is ``(\"left\", \"center\", " "\"right\")`` that means that ``case MyClass(x, y)`` is equivalent to ``case " @@ -3528,19 +3530,19 @@ msgid "" "exc:`TypeError`." msgstr "" -#: reference/datamodel.rst:3186 +#: reference/datamodel.rst:3188 msgid ":pep:`634` - Structural Pattern Matching" msgstr "" -#: reference/datamodel.rst:3187 +#: reference/datamodel.rst:3189 msgid "The specification for the Python ``match`` statement." msgstr "" -#: reference/datamodel.rst:3193 +#: reference/datamodel.rst:3195 msgid "Emulating buffer types" msgstr "" -#: reference/datamodel.rst:3195 +#: reference/datamodel.rst:3197 msgid "" "The :ref:`buffer protocol ` provides a way for Python objects " "to expose efficient access to a low-level memory array. This protocol is " @@ -3548,13 +3550,13 @@ msgid "" "and third-party libraries may define additional buffer types." msgstr "" -#: reference/datamodel.rst:3200 +#: reference/datamodel.rst:3202 msgid "" "While buffer types are usually implemented in C, it is also possible to " "implement the protocol in Python." msgstr "" -#: reference/datamodel.rst:3205 +#: reference/datamodel.rst:3207 msgid "" "Called when a buffer is requested from *self* (for example, by the :class:" "`memoryview` constructor). The *flags* argument is an integer representing " @@ -3564,7 +3566,7 @@ msgid "" "`memoryview` object." msgstr "" -#: reference/datamodel.rst:3214 +#: reference/datamodel.rst:3216 msgid "" "Called when a buffer is no longer needed. The *buffer* argument is a :class:" "`memoryview` object that was previously returned by :meth:`~object." @@ -3573,28 +3575,28 @@ msgid "" "to perform any cleanup are not required to implement this method." msgstr "" -#: reference/datamodel.rst:3226 +#: reference/datamodel.rst:3228 msgid ":pep:`688` - Making the buffer protocol accessible in Python" msgstr "" -#: reference/datamodel.rst:3226 +#: reference/datamodel.rst:3228 msgid "" "Introduces the Python ``__buffer__`` and ``__release_buffer__`` methods." msgstr "" -#: reference/datamodel.rst:3228 +#: reference/datamodel.rst:3230 msgid ":class:`collections.abc.Buffer`" msgstr "" -#: reference/datamodel.rst:3229 +#: reference/datamodel.rst:3231 msgid "ABC for buffer types." msgstr "" -#: reference/datamodel.rst:3234 +#: reference/datamodel.rst:3236 msgid "Special method lookup" msgstr "" -#: reference/datamodel.rst:3236 +#: reference/datamodel.rst:3238 msgid "" "For custom classes, implicit invocations of special methods are only " "guaranteed to work correctly if defined on an object's type, not in the " @@ -3602,7 +3604,7 @@ msgid "" "following code raises an exception::" msgstr "" -#: reference/datamodel.rst:3251 +#: reference/datamodel.rst:3253 msgid "" "The rationale behind this behaviour lies with a number of special methods " "such as :meth:`~object.__hash__` and :meth:`~object.__repr__` that are " @@ -3611,21 +3613,21 @@ msgid "" "invoked on the type object itself::" msgstr "" -#: reference/datamodel.rst:3265 +#: reference/datamodel.rst:3267 msgid "" "Incorrectly attempting to invoke an unbound method of a class in this way is " "sometimes referred to as 'metaclass confusion', and is avoided by bypassing " "the instance when looking up special methods::" msgstr "" -#: reference/datamodel.rst:3274 +#: reference/datamodel.rst:3276 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::" msgstr "" -#: reference/datamodel.rst:3300 +#: reference/datamodel.rst:3302 msgid "" "Bypassing the :meth:`~object.__getattribute__` machinery in this fashion " "provides significant scope for speed optimisations within the interpreter, " @@ -3634,36 +3636,36 @@ msgid "" "consistently invoked by the interpreter)." msgstr "" -#: reference/datamodel.rst:3311 +#: reference/datamodel.rst:3313 msgid "Coroutines" msgstr "" -#: reference/datamodel.rst:3315 +#: reference/datamodel.rst:3317 msgid "Awaitable Objects" msgstr "" -#: reference/datamodel.rst:3317 +#: reference/datamodel.rst:3319 msgid "" "An :term:`awaitable` object generally implements an :meth:`~object." "__await__` method. :term:`Coroutine objects ` returned from :" "keyword:`async def` functions are awaitable." msgstr "" -#: reference/datamodel.rst:3323 +#: reference/datamodel.rst:3325 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__`." msgstr "" -#: reference/datamodel.rst:3329 +#: reference/datamodel.rst:3331 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 "" -#: reference/datamodel.rst:3335 +#: reference/datamodel.rst:3337 msgid "" "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 " @@ -3671,15 +3673,15 @@ msgid "" "g. :mod:`asyncio`) that will be managing the :term:`awaitable` object." msgstr "" -#: reference/datamodel.rst:3343 +#: reference/datamodel.rst:3345 msgid ":pep:`492` for additional information about awaitable objects." msgstr "" -#: reference/datamodel.rst:3349 +#: reference/datamodel.rst:3351 msgid "Coroutine Objects" msgstr "" -#: reference/datamodel.rst:3351 +#: reference/datamodel.rst:3353 msgid "" ":term:`Coroutine objects ` are :term:`awaitable` objects. A " "coroutine's execution can be controlled by calling :meth:`~object.__await__` " @@ -3690,18 +3692,18 @@ msgid "" "should not directly raise unhandled :exc:`StopIteration` exceptions." msgstr "" -#: reference/datamodel.rst:3359 +#: reference/datamodel.rst:3361 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " "coroutines do not directly support iteration." msgstr "" -#: reference/datamodel.rst:3363 +#: reference/datamodel.rst:3365 msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once." msgstr "" -#: reference/datamodel.rst:3369 +#: reference/datamodel.rst:3371 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`~object." @@ -3712,7 +3714,7 @@ msgid "" "value, described above." msgstr "" -#: reference/datamodel.rst:3380 +#: reference/datamodel.rst:3382 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " @@ -3723,13 +3725,13 @@ msgid "" "not caught in the coroutine, it propagates back to the caller." msgstr "" -#: reference/datamodel.rst:3391 +#: reference/datamodel.rst:3393 msgid "" "The second signature \\(type\\[, value\\[, traceback\\]\\]\\) is deprecated " "and may be removed in a future version of Python." msgstr "" -#: reference/datamodel.rst:3396 +#: reference/datamodel.rst:3398 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " @@ -3739,99 +3741,99 @@ msgid "" "is marked as having finished executing, even if it was never started." msgstr "" -#: reference/datamodel.rst:3404 +#: reference/datamodel.rst:3406 msgid "" "Coroutine objects are automatically closed using the above process when they " "are about to be destroyed." msgstr "" -#: reference/datamodel.rst:3410 +#: reference/datamodel.rst:3412 msgid "Asynchronous Iterators" msgstr "" -#: reference/datamodel.rst:3412 +#: reference/datamodel.rst:3414 msgid "" "An *asynchronous iterator* can call asynchronous code in its ``__anext__`` " "method." msgstr "" -#: reference/datamodel.rst:3415 +#: reference/datamodel.rst:3417 msgid "" "Asynchronous iterators can be used in an :keyword:`async for` statement." msgstr "" -#: reference/datamodel.rst:3419 +#: reference/datamodel.rst:3421 msgid "Must return an *asynchronous iterator* object." msgstr "" -#: reference/datamodel.rst:3423 +#: reference/datamodel.rst:3425 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." msgstr "" -#: reference/datamodel.rst:3426 +#: reference/datamodel.rst:3428 msgid "An example of an asynchronous iterable object::" msgstr "" -#: reference/datamodel.rst:3443 +#: reference/datamodel.rst:3445 msgid "" "Prior to Python 3.7, :meth:`~object.__aiter__` could return an *awaitable* " "that would resolve to an :term:`asynchronous iterator `." msgstr "" -#: reference/datamodel.rst:3448 +#: reference/datamodel.rst:3450 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." msgstr "" -#: reference/datamodel.rst:3456 +#: reference/datamodel.rst:3458 msgid "Asynchronous Context Managers" msgstr "" -#: reference/datamodel.rst:3458 +#: reference/datamodel.rst:3460 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." msgstr "" -#: reference/datamodel.rst:3461 +#: reference/datamodel.rst:3463 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." msgstr "" -#: reference/datamodel.rst:3465 +#: reference/datamodel.rst:3467 msgid "" "Semantically similar to :meth:`~object.__enter__`, the only difference being " "that it must return an *awaitable*." msgstr "" -#: reference/datamodel.rst:3470 +#: reference/datamodel.rst:3472 msgid "" "Semantically similar to :meth:`~object.__exit__`, the only difference being " "that it must return an *awaitable*." msgstr "" -#: reference/datamodel.rst:3473 +#: reference/datamodel.rst:3475 msgid "An example of an asynchronous context manager class::" msgstr "" -#: reference/datamodel.rst:3486 +#: reference/datamodel.rst:3488 msgid "Footnotes" msgstr "" -#: reference/datamodel.rst:3487 +#: reference/datamodel.rst:3489 msgid "" "It *is* possible in some cases to change an object's type, under certain " "controlled conditions. It generally isn't a good idea though, since it can " "lead to some very strange behaviour if it is handled incorrectly." msgstr "" -#: reference/datamodel.rst:3491 +#: reference/datamodel.rst:3493 msgid "" "The :meth:`~object.__hash__`, :meth:`~object.__iter__`, :meth:`~object." "__reversed__`, and :meth:`~object.__contains__` methods have special " @@ -3839,15 +3841,15 @@ msgid "" "by relying on the behavior that ``None`` is not callable." msgstr "" -#: reference/datamodel.rst:3497 +#: reference/datamodel.rst:3499 msgid "" "\"Does not support\" here means that the class has no such method, or the " -"method returns ``NotImplemented``. Do not set the method to ``None`` if you " -"want to force fallback to the right operand's reflected method—that will " +"method returns :data:`NotImplemented`. Do not set the method to ``None`` if " +"you want to force fallback to the right operand's reflected method—that will " "instead have the opposite effect of explicitly *blocking* such fallback." msgstr "" -#: reference/datamodel.rst:3503 +#: reference/datamodel.rst:3505 msgid "" "For operands of the same type, it is assumed that if the non-reflected " "method -- such as :meth:`~object.__add__` -- fails then the overall " @@ -3874,7 +3876,7 @@ msgstr "" #: reference/datamodel.rst:799 reference/datamodel.rst:1490 #: reference/datamodel.rst:1735 reference/datamodel.rst:2372 #: reference/datamodel.rst:2959 reference/datamodel.rst:3008 -#: reference/datamodel.rst:3065 reference/datamodel.rst:3093 +#: reference/datamodel.rst:3067 reference/datamodel.rst:3095 msgid "built-in function" msgstr "" @@ -4000,7 +4002,7 @@ msgstr "" msgid "Java" msgstr "" -#: reference/datamodel.rst:3065 +#: reference/datamodel.rst:3067 msgid "complex" msgstr "" @@ -4093,7 +4095,7 @@ msgid "assignment" msgstr "" #: reference/datamodel.rst:856 reference/datamodel.rst:1626 -#: reference/datamodel.rst:3120 +#: reference/datamodel.rst:3122 msgid "statement" msgstr "" @@ -4258,7 +4260,7 @@ msgstr "" msgid "iterator" msgstr "" -#: reference/datamodel.rst:3307 +#: reference/datamodel.rst:3309 msgid "coroutine" msgstr "" @@ -4751,26 +4753,26 @@ msgstr "" msgid "pow" msgstr "" -#: reference/datamodel.rst:3055 +#: reference/datamodel.rst:3057 msgid "abs" msgstr "" -#: reference/datamodel.rst:3065 +#: reference/datamodel.rst:3067 msgid "int" msgstr "" -#: reference/datamodel.rst:3065 +#: reference/datamodel.rst:3067 msgid "float" msgstr "" -#: reference/datamodel.rst:3093 +#: reference/datamodel.rst:3095 msgid "round" msgstr "" -#: reference/datamodel.rst:3120 +#: reference/datamodel.rst:3122 msgid "with" msgstr "" -#: reference/datamodel.rst:3120 +#: reference/datamodel.rst:3122 msgid "context manager" msgstr "" diff --git a/reference/expressions.po b/reference/expressions.po index 046bab2d6..f781f999f 100644 --- a/reference/expressions.po +++ b/reference/expressions.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -1575,7 +1575,7 @@ msgstr "" #: reference/expressions.rst:1535 msgid "" -"``None`` and ``NotImplemented`` are singletons. :PEP:`8` advises that " +"``None`` and :data:`NotImplemented` are singletons. :PEP:`8` advises that " "comparisons for singletons should always be done with ``is`` or ``is not``, " "never the equality operators." msgstr "" diff --git a/tutorial/modules.po b/tutorial/modules.po index 2f313d9d9..ec6018312 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2024-03-01 21:11+0300\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -27,10 +27,10 @@ msgid "" "you have made (functions and variables) are lost. Therefore, if you want to " "write a somewhat longer program, you are better off using a text editor to " "prepare the input for the interpreter and running it with that file as input " -"instead. This is known as creating a *script*. As your program gets longer, " -"you may want to split it into several files for easier maintenance. You may " -"also want to use a handy function that you've written in several programs " -"without copying its definition into each program." +"instead. This is known as creating a *script*. As your program gets " +"longer, you may want to split it into several files for easier maintenance. " +"You may also want to use a handy function that you've written in several " +"programs without copying its definition into each program." msgstr "" "Python yorumlayıcısından çıkıp tekrar girerseniz, yaptığınız tanımlar " "(fonksiyonlar ve değişkenler) kaybolur. Bu nedenle, daha uzun bir program " @@ -53,23 +53,23 @@ msgstr "" "komut dosyasında veya yorumlayıcının etkileşimli bir örneğinde kullanmanın " "bir yolunu sağlar. Böyle bir dosyaya *module* denir; bir modülden alınan " "tanımlar diğer modüllere veya *main* modülüne (en üst düzeyde ve hesap " -"makinesi modunda yürütülen bir komut dosyasında erişiminiz olan değişkenlerin " -"derlenmesi) aktarılabilir." +"makinesi modunda yürütülen bir komut dosyasında erişiminiz olan " +"değişkenlerin derlenmesi) aktarılabilir." #: tutorial/modules.rst:22 msgid "" "A module is a file containing Python definitions and statements. The file " "name is the module name with the suffix :file:`.py` appended. Within a " "module, the module's name (as a string) is available as the value of the " -"global variable ``__name__``. For instance, use your favorite text editor to " -"create a file called :file:`fibo.py` in the current directory with the " +"global variable ``__name__``. For instance, use your favorite text editor " +"to create a file called :file:`fibo.py` in the current directory with the " "following contents::" msgstr "" "Modül, Python tanımlarını ve ifadelerini içeren bir dosyadır. Dosya adı, :" "file:`.py` son ekini içeren modül adıdır. Bir modül içinde, modülün adı " "(dize olarak) ``__name__`` genel değişkeninin değeri olarak kullanılabilir. " -"Örneğin, geçerli dizinde aşağıdaki içeriklerle :file:`fibo.py` adlı bir dosya " -"oluşturmak için en sevdiğiniz metin düzenleyicisini kullanın::" +"Örneğin, geçerli dizinde aşağıdaki içeriklerle :file:`fibo.py` adlı bir " +"dosya oluşturmak için en sevdiğiniz metin düzenleyicisini kullanın::" #: tutorial/modules.rst:45 msgid "" @@ -81,9 +81,9 @@ msgstr "" #: tutorial/modules.rst:50 msgid "" -"This does not add the names of the functions defined in ``fibo`` directly to " -"the current :term:`namespace` (see :ref:`tut-scopes` for more details); it " -"only adds the module name ``fibo`` there. Using the module name you can " +"This does not add the names of the functions defined in ``fibo`` directly " +"to the current :term:`namespace` (see :ref:`tut-scopes` for more details); " +"it only adds the module name ``fibo`` there. Using the module name you can " "access the functions::" msgstr "" "Bu, ``fibo`` 'da tanımlanan işlevlerin adlarını doğrudan geçerli :term:" @@ -110,9 +110,9 @@ msgid "" "[#]_ (They are also run if the file is executed as a script.)" msgstr "" "Bir modül, işlev tanımlarının yanı sıra çalıştırılabilir ifadeler de " -"içerebilir. Bu ifadeler modülü başlatmayı amaçlamaktadır. Yalnızca bir import " -"ifadesinde modül adıyla karşılaşıldığında *ilk* kez yürütülürler. [#]_ (Dosya " -"komut dosyası olarak yürütülürse de çalıştırılırlar.)" +"içerebilir. Bu ifadeler modülü başlatmayı amaçlamaktadır. Yalnızca bir " +"import ifadesinde modül adıyla karşılaşıldığında *ilk* kez yürütülürler. " +"[#]_ (Dosya komut dosyası olarak yürütülürse de çalıştırılırlar.)" #: tutorial/modules.rst:79 msgid "" @@ -123,20 +123,21 @@ 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 "" -"Her modülün, modülde tanımlanan tüm işlevler tarafından genel ad alanı olarak " -"kullanılan kendi özel ad alanı vardır. Böylece, bir modülün yazarı, bir " -"kullanıcının genel değişkenleriyle yanlışlıkla çakışma endişesi duymadan, " -"modüldeki genel değişkenleri kullanabilir. Öte yandan, ne yaptığınızı " -"biliyorsanız, bir modülün global değişkenlerine, işlevlerine atıfta bulunmak " -"için kullanılan ``modname.itemname`` notasyonuyla dokunabilirsiniz." +"Her modülün, modülde tanımlanan tüm işlevler tarafından genel ad alanı " +"olarak kullanılan kendi özel ad alanı vardır. Böylece, bir modülün yazarı, " +"bir kullanıcının genel değişkenleriyle yanlışlıkla çakışma endişesi " +"duymadan, modüldeki genel değişkenleri kullanabilir. Öte yandan, ne " +"yaptığınızı biliyorsanız, bir modülün global değişkenlerine, işlevlerine " +"atıfta bulunmak için kullanılan ``modname.itemname`` notasyonuyla " +"dokunabilirsiniz." #: tutorial/modules.rst:86 msgid "" "Modules can import other modules. It is customary but not required to place " -"all :keyword:`import` statements at the beginning of a module (or script, for " -"that matter). The imported module names, if placed at the top level of a " -"module (outside any functions or classes), are added to the module's global " -"namespace." +"all :keyword:`import` statements at the beginning of a module (or script, " +"for that matter). The imported module names, if placed at the top level of " +"a module (outside any functions or classes), are added to the module's " +"global namespace." msgstr "" "Modüller diğer modülleri içe aktarabilir. Tüm :keyword:`import` ifadelerinin " "bir modülün (veya bu konuda betiğin) başına yerleştirilmesi alışılmış bir " @@ -146,8 +147,8 @@ msgstr "" #: tutorial/modules.rst:91 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::" +"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 "" ":keyword:`import` ifadesinin, bir modülden adları doğrudan içe aktaran " "modülün ad alanına aktaran bir çeşidi vardır. Örneğin::" @@ -163,14 +164,15 @@ msgstr "" #: tutorial/modules.rst:101 msgid "There is even a variant to import all names that a module defines::" msgstr "" -"Bir modülün tanımladığı tüm adları içe aktarmak için bir varyant bile vardır::" +"Bir modülün tanımladığı tüm adları içe aktarmak için bir varyant bile " +"vardır::" #: tutorial/modules.rst:107 msgid "" "This imports all names except those beginning with an underscore (``_``). In " -"most cases Python programmers do not use this facility since it introduces an " -"unknown set of names into the interpreter, possibly hiding some things you " -"have already defined." +"most cases Python programmers do not use this facility since it introduces " +"an unknown set of names into the interpreter, possibly hiding some things " +"you have already defined." msgstr "" "Bu, alt çizgiyle başlayanlar (``_``) dışındaki tüm isimleri alır. Çoğu " "durumda Python programcıları bu özelliği kullanmaz, çünkü yorumlayıcıya " @@ -179,13 +181,13 @@ msgstr "" #: tutorial/modules.rst:112 msgid "" -"Note that in general the practice of importing ``*`` from a module or package " -"is frowned upon, since it often causes poorly readable code. However, it is " -"okay to use it to save typing in interactive sessions." +"Note that in general the practice of importing ``*`` from a module or " +"package is frowned upon, since it often causes poorly readable code. " +"However, it is okay to use it to save typing in interactive sessions." msgstr "" "Genel olarak, bir modülden veya paketten ``*`` içeri aktarma uygulamasının, " -"genellikle okunamayan koda neden olduğundan hoş karşılanmadığına dikkat edin. " -"Ancak, etkileşimli oturumlarda yazmayı kaydetmek için kullanmak sorun " +"genellikle okunamayan koda neden olduğundan hoş karşılanmadığına dikkat " +"edin. Ancak, etkileşimli oturumlarda yazmayı kaydetmek için kullanmak sorun " "değildir." #: tutorial/modules.rst:116 @@ -198,8 +200,8 @@ msgstr "" #: tutorial/modules.rst:125 msgid "" -"This is effectively importing the module in the same way that ``import fibo`` " -"will do, with the only difference of it being available as ``fib``." +"This is effectively importing the module in the same way that ``import " +"fibo`` will do, with the only difference of it being available as ``fib``." msgstr "" "Bu, modülün ``import fibo`` 'nun yapacağı şekilde etkin bir şekilde içe " "aktarılmasıdır, tek farkı ``fib`` olarak mevcut olmasıdır." @@ -234,9 +236,9 @@ msgstr "Bir Python modülünü :: ile çalıştırdığınızda::" #: tutorial/modules.rst:153 msgid "" -"the code in the module will be executed, just as if you imported it, but with " -"the ``__name__`` set to ``\"__main__\"``. That means that by adding this " -"code at the end of your module::" +"the code in the module will be executed, just as if you imported it, but " +"with the ``__name__`` set to ``\"__main__\"``. That means that by adding " +"this code at the end of your module::" msgstr "" "modüldeki kod, içe aktardığınız gibi yürütülür, ancak ``__name__`` " "``\"__main__\"`` olarak ayarlanır. Bu, modülünüzün sonuna bu kodu ekleyerek:" @@ -257,9 +259,9 @@ msgstr "Modül içe aktarılırsa kod çalıştırılmaz::" #: tutorial/modules.rst:175 msgid "" -"This is often used either to provide a convenient user interface to a module, " -"or for testing purposes (running the module as a script executes a test " -"suite)." +"This is often used either to provide a convenient user interface to a " +"module, or for testing purposes (running the module as a script executes a " +"test suite)." msgstr "" "Bu genellikle bir modüle uygun bir kullanıcı arabirimi sağlamak veya test " "amacıyla kullanılır (modülü komut dosyası olarak çalıştırmak bir test paketi " @@ -317,9 +319,9 @@ msgid "" "script is calculated after the symlink is followed. In other words the " "directory containing the symlink is **not** added to the module search path." msgstr "" -"Symlink'leri destekleyen dosya sistemlerinde, symlink izlendikten sonra girdi " -"komut dosyasını içeren dizin hesaplanır. Başka bir deyişle, symlink içeren " -"dizin modül arama yoluna **not** eklenir." +"Symlink'leri destekleyen dosya sistemlerinde, symlink izlendikten sonra " +"girdi komut dosyasını içeren dizin hesaplanır. Başka bir deyişle, symlink " +"içeren dizin modül arama yoluna **not** eklenir." #: tutorial/modules.rst:206 msgid "" @@ -345,8 +347,8 @@ msgstr "\"Derlenmiş\" Python dosyaları" msgid "" "To speed up loading modules, Python caches the compiled version of each " "module in the ``__pycache__`` directory under the name :file:`module." -"{version}.pyc`, where the version encodes the format of the compiled file; it " -"generally contains the Python version number. For example, in CPython " +"{version}.pyc`, where the version encodes the format of the compiled file; " +"it generally contains the Python version number. For example, in CPython " "release 3.3 the compiled version of spam.py would be cached as ``__pycache__/" "spam.cpython-33.pyc``. This naming convention allows compiled modules from " "different releases and different versions of Python to coexist." @@ -377,10 +379,10 @@ msgstr "" msgid "" "Python does not check the cache in two circumstances. First, it always " "recompiles and does not store the result for the module that's loaded " -"directly from the command line. Second, it does not check the cache if there " -"is no source module. To support a non-source (compiled only) distribution, " -"the compiled module must be in the source directory, and there must not be a " -"source module." +"directly from the command line. Second, it does not check the cache if " +"there is no source module. To support a non-source (compiled only) " +"distribution, the compiled module must be in the source directory, and there " +"must not be a source module." msgstr "" "Python iki durumda önbelleği kontrol etmez. İlk olarak, doğrudan komut " "satırından yüklenen modülün sonucunu her zaman yeniden derler ve saklamaz. " @@ -399,17 +401,17 @@ msgid "" "statements, the ``-OO`` switch removes both assert statements and __doc__ " "strings. Since some programs may rely on having these available, you should " "only use this option if you know what you're doing. \"Optimized\" modules " -"have an ``opt-`` tag and are usually smaller. Future releases may change the " -"effects of optimization." -msgstr "" -"Derlenmiş bir modülün boyutunu küçültmek için Python komutundaki :option:`-O` " -"veya :option:`-OO` anahtarlarını kullanabilirsiniz. ``-O`` anahtarı, onaylama " -"ifadelerini kaldırır, ``-OO`` anahtarı, hem assert ifadelerini hem de __doc__ " -"dizelerini kaldırır. Bazı programlar bunların kullanılabilir olmasına " -"güvenebileceğinden, bu seçeneği yalnızca ne yaptığınızı biliyorsanız " -"kullanmalısınız. \"Optimize edilmiş\" modüller bir \"opt-\" etiketine " -"sahiptir ve genellikle daha küçüktür. Gelecekteki sürümler, optimizasyonun " -"etkilerini değiştirebilir." +"have an ``opt-`` tag and are usually smaller. Future releases may change " +"the effects of optimization." +msgstr "" +"Derlenmiş bir modülün boyutunu küçültmek için Python komutundaki :option:`-" +"O` veya :option:`-OO` anahtarlarını kullanabilirsiniz. ``-O`` anahtarı, " +"onaylama ifadelerini kaldırır, ``-OO`` anahtarı, hem assert ifadelerini hem " +"de __doc__ dizelerini kaldırır. Bazı programlar bunların kullanılabilir " +"olmasına güvenebileceğinden, bu seçeneği yalnızca ne yaptığınızı " +"biliyorsanız kullanmalısınız. \"Optimize edilmiş\" modüller bir \"opt-\" " +"etiketine sahiptir ve genellikle daha küçüktür. Gelecekteki sürümler, " +"optimizasyonun etkilerini değiştirebilir." #: tutorial/modules.rst:251 msgid "" @@ -418,8 +420,8 @@ msgid "" "pyc`` files is the speed with which they are loaded." msgstr "" "Bir program ``.pyc`` dosyasından okunduğunda, ``.py`` dosyasından " -"okunduğundan daha hızlı çalışmaz; ``.pyc`` dosyaları hakkında daha hızlı olan " -"tek şey, yüklenme hızlarıdır." +"okunduğundan daha hızlı çalışmaz; ``.pyc`` dosyaları hakkında daha hızlı " +"olan tek şey, yüklenme hızlarıdır." #: tutorial/modules.rst:255 msgid "" @@ -442,26 +444,27 @@ msgid "Standard Modules" msgstr "Standart modüller" #: tutorial/modules.rst:269 +#, fuzzy msgid "" "Python comes with a library of standard modules, described in a separate " "document, the Python Library Reference (\"Library Reference\" hereafter). " "Some modules are built into the interpreter; these provide access to " -"operations that are not part of the core of the language but are nevertheless " -"built in, either for efficiency or to provide access to operating system " -"primitives such as system calls. The set of such modules is a configuration " -"option which also depends on the underlying platform. For example, the :mod:" -" `winreg` module is only provided on Windows systems. One particular module " -"deserves some attention: :mod:`sys`, which is built into every Python " -"interpreter. The variables ``sys.ps1`` and ``sys.ps2`` define the strings " -"used as primary and secondary prompts::" +"operations that are not part of the core of the language but are " +"nevertheless built in, either for efficiency or to provide access to " +"operating system primitives such as system calls. The set of such modules " +"is a configuration option which also depends on the underlying platform. " +"For example, the :mod:`winreg` module is only provided on Windows systems. " +"One particular module deserves some attention: :mod:`sys`, which is built " +"into every Python interpreter. The variables ``sys.ps1`` and ``sys.ps2`` " +"define the strings used as primary and secondary prompts::" msgstr "" "Python, ayrı bir belge olan Python Kütüphane Referansında (bundan sonra " "\"Kütüphane Referansı\") açıklanan standart modüllerden oluşan bir " "kütüphaneyle birlikte gelir. Bazı modüller yorumlayıcıda yerleşik olarak " "bulunur; bunlar dilin çekirdeğinin bir parçası olmayan ancak yine de " -"verimlilik için veya sistem çağrıları gibi işletim sistemi ilkellerine erişim " -"sağlamak için yerleşik olarak bulunan işlemlere erişim sağlar. Bu tür " -"modüllerin kümesi, altta yatan platforma da bağlı olan bir yapılandırma " +"verimlilik için veya sistem çağrıları gibi işletim sistemi ilkellerine " +"erişim sağlamak için yerleşik olarak bulunan işlemlere erişim sağlar. Bu " +"tür modüllerin kümesi, altta yatan platforma da bağlı olan bir yapılandırma " "seçeneğidir. Örneğin, :mod:`winreg` modülü yalnızca Windows sistemlerinde " "sağlanır. Belirli bir modül biraz ilgiyi hak ediyor: :mod:`sys`, her Python " "yorumlayıcısında yerleşik olarak bulunur. ``sys.ps1`` ve ``sys.ps2`` " @@ -479,12 +482,12 @@ msgid "" "The variable ``sys.path`` is a list of strings that determines the " "interpreter's search path for modules. It is initialized to a default path " "taken from the environment variable :envvar:`PYTHONPATH`, or from a built-in " -"default if :envvar:`PYTHONPATH` is not set. You can modify it using standard " -"list operations::" +"default if :envvar:`PYTHONPATH` is not set. You can modify it using " +"standard list operations::" msgstr "" "``sys.path`` değişkeni, yorumlayıcının modüller için arama yolunu belirleyen " -"bir dizeler listesidir. :envvar:`PYTHONPATH` ortam değişkeninden veya :envvar:" -"`PYTHONPATH` ayarlanmamışsa yerleşik bir varsayılan değerden alınan " +"bir dizeler listesidir. :envvar:`PYTHONPATH` ortam değişkeninden veya :" +"envvar:`PYTHONPATH` ayarlanmamışsa yerleşik bir varsayılan değerden alınan " "varsayılan bir yola başlatılır. Standart liste işlemlerini kullanarak " "değiştirebilirsiniz::" @@ -497,8 +500,8 @@ 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 "" -"Yerleşik fonksiyon :func:`dir`, bir modülün hangi adları tanımladığını bulmak " -"için kullanılır. Sıralanmış bir dize listesi döndürür::" +"Yerleşik fonksiyon :func:`dir`, bir modülün hangi adları tanımladığını " +"bulmak için kullanılır. Sıralanmış bir dize listesi döndürür::" #: tutorial/modules.rst:338 msgid "" @@ -510,7 +513,8 @@ msgstr "" msgid "" "Note that it lists all types of names: variables, modules, functions, etc." msgstr "" -"Her tür adın listelendiğini unutmayın: değişkenler, modüller, fonksiyonlar vb." +"Her tür adın listelendiğini unutmayın: değişkenler, modüller, fonksiyonlar " +"vb." #: tutorial/modules.rst:350 msgid "" @@ -528,47 +532,47 @@ msgstr "Paketler" #: tutorial/modules.rst:391 msgid "" -"Packages are a way of structuring Python's module namespace by using \"dotted " -"module names\". For example, the module name :mod:`!A.B` designates a " -"submodule named ``B`` in a package named ``A``. Just like the use of modules " -"saves the authors of different modules from having to worry about each " -"other's global variable names, the use of dotted module names saves the " -"authors of multi-module packages like NumPy or Pillow from having to worry " -"about each other's module names." +"Packages are a way of structuring Python's module namespace by using " +"\"dotted module names\". For example, the module name :mod:`!A.B` " +"designates a submodule named ``B`` in a package named ``A``. Just like the " +"use of modules saves the authors of different modules from having to worry " +"about each other's global variable names, the use of dotted module names " +"saves the authors of multi-module packages like NumPy or Pillow from having " +"to worry about each other's module names." msgstr "" "Paketler, Python'un modül isim alanını \"noktalı modül isimleri\" kullanarak " "yapılandırmanın bir yoludur. Örneğin, :mod:`!A.B` modül adı, ``A`` adlı bir " "paketteki ``B`` adlı bir alt modülü belirtir. Modül kullanımının farklı " "modüllerin yazarlarını birbirlerinin global değişken isimleri hakkında " -"endişelenmekten kurtarması gibi, noktalı modül isimlerinin kullanımı da NumPy " -"veya Pillow gibi çok modüllü paketlerin yazarlarını birbirlerinin modül " -"isimleri hakkında endişelenmekten kurtarır." +"endişelenmekten kurtarması gibi, noktalı modül isimlerinin kullanımı da " +"NumPy veya Pillow gibi çok modüllü paketlerin yazarlarını birbirlerinin " +"modül isimleri hakkında endişelenmekten kurtarır." #: tutorial/modules.rst:399 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):" +"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 "" "Ses dosyalarının ve ses verilerinin tek tip işlenmesi için bir modül " -"koleksiyonu (\"paket\") tasarlamak istediğinizi varsayalım. Birçok farklı ses " -"dosyası biçimi vardır (genellikle uzantılarıyla tanınır, örneğin: :file:`." -"wav`, :file:`.aiff`, :file:`.au`) bu nedenle, çeşitli dosya biçimleri " +"koleksiyonu (\"paket\") tasarlamak istediğinizi varsayalım. Birçok farklı " +"ses dosyası biçimi vardır (genellikle uzantılarıyla tanınır, örneğin: :file:" +"`.wav`, :file:`.aiff`, :file:`.au`) bu nedenle, çeşitli dosya biçimleri " "arasında dönüşüm için büyüyen bir modül koleksiyonu oluşturmanız ve " "sürdürmeniz gerekebilir. Ses verileri üzerinde gerçekleştirmek " "isteyebileceğiniz birçok farklı işlem de vardır (karıştırma, eko ekleme, " -"ekolayzır işlevi uygulama, yapay bir stereo efekti oluşturma gibi) bu nedenle " -"ek olarak, bu işlemleri gerçekleştirmek için hiç bitmeyen bir modül akışı " -"yazıyor olacaksınız. İşte paketiniz için olası bir yapı (hiyerarşik bir dosya " -"sistemi cinsinden ifade edilir):" +"ekolayzır işlevi uygulama, yapay bir stereo efekti oluşturma gibi) bu " +"nedenle ek olarak, bu işlemleri gerçekleştirmek için hiç bitmeyen bir modül " +"akışı yazıyor olacaksınız. İşte paketiniz için olası bir yapı (hiyerarşik " +"bir dosya sistemi cinsinden ifade edilir):" #: tutorial/modules.rst:436 msgid "" @@ -627,7 +631,8 @@ msgstr "" #: tutorial/modules.rst:466 msgid "" -"Yet another variation is to import the desired function or variable directly::" +"Yet another variation is to import the desired function or variable " +"directly::" msgstr "" "Yine başka bir varyasyon, istenen işlevi veya değişkeni doğrudan içe " "aktarmaktır::" @@ -649,12 +654,12 @@ msgid "" "module and attempts to load it. If it fails to find it, an :exc:" "`ImportError` exception is raised." msgstr "" -"``from package import item`` kullanırken, öğenin paketin bir alt modülü (veya " -"alt paketi) veya pakette tanımlanmış bir fonksiyon, sınıf veya değişken gibi " -"başka bir ad olabileceğini unutmayın. ``import`` ifadesi önce öğenin pakette " -"tanımlanıp tanımlanmadığını test eder; değilse modül olduğunu varsayar ve " -"yüklemeye çalışır. Onu bulamazsa, bir :exc:`ImportError` istisnası ortaya " -"çıkar." +"``from package import item`` kullanırken, öğenin paketin bir alt modülü " +"(veya alt paketi) veya pakette tanımlanmış bir fonksiyon, sınıf veya " +"değişken gibi başka bir ad olabileceğini unutmayın. ``import`` ifadesi önce " +"öğenin pakette tanımlanıp tanımlanmadığını test eder; değilse modül olduğunu " +"varsayar ve yüklemeye çalışır. Onu bulamazsa, bir :exc:`ImportError` " +"istisnası ortaya çıkar." #: tutorial/modules.rst:482 msgid "" @@ -682,9 +687,10 @@ msgid "" msgstr "" "Şimdi, kullanıcı ``from sound.effects import *`` yazdığında ne olur? İdeal " "olarak, bunun bir şekilde dosya sistemine gitmesi, pakette hangi alt " -"modüllerin bulunduğunu bulması ve hepsini içe aktarması umulur. Bu uzun zaman " -"alabilir ve alt modüllerin içe aktarılması, yalnızca alt modül açıkça içe " -"aktarıldığında gerçekleşmesi gereken istenmeyen yan etkilere neden olabilir." +"modüllerin bulunduğunu bulması ve hepsini içe aktarması umulur. Bu uzun " +"zaman alabilir ve alt modüllerin içe aktarılması, yalnızca alt modül açıkça " +"içe aktarıldığında gerçekleşmesi gereken istenmeyen yan etkilere neden " +"olabilir." #: tutorial/modules.rst:501 msgid "" @@ -695,17 +701,18 @@ msgid "" "package import *`` is encountered. It is up to the package author to keep " "this list up-to-date when a new version of the package is released. Package " "authors may also decide not to support it, if they don't see a use for " -"importing \\* from their package. For example, the file :file:`sound/effects/" -"__init__.py` could contain the following code::" +"importing \\* from their package. For example, the file :file:`sound/" +"effects/__init__.py` could contain the following code::" msgstr "" "Tek çözüm, paket yazarının paketin açık bir dizinini sağlamasıdır. :keyword:" "`import` ifadesi aşağıdaki kuralı kullanır: eğer bir paketin :file:`__init__." -"py` kodu ``__all__`` adlı bir liste tanımlarsa, ``from package import *`` ile " -"karşılaşıldığında alınması gereken modül adlarının listesi olarak alınır. " -"Paketin yeni bir sürümü yayınlandığında bu listeyi güncel tutmak paket " -"yazarının sorumluluğundadır. Paket yazarları, paketlerinden \\* içe aktarmak " -"için bir kullanım görmezlerse, onu desteklememeye de karar verebilirler. " -"Örneğin, :file:`sound/effects/__init__.py` dosyası şu kodu içerebilir::" +"py` kodu ``__all__`` adlı bir liste tanımlarsa, ``from package import *`` " +"ile karşılaşıldığında alınması gereken modül adlarının listesi olarak " +"alınır. Paketin yeni bir sürümü yayınlandığında bu listeyi güncel tutmak " +"paket yazarının sorumluluğundadır. Paket yazarları, paketlerinden \\* içe " +"aktarmak için bir kullanım görmezlerse, onu desteklememeye de karar " +"verebilirler. Örneğin, :file:`sound/effects/__init__.py` dosyası şu kodu " +"içerebilir::" #: tutorial/modules.rst:513 msgid "" @@ -735,21 +742,21 @@ msgstr "" 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::" +"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 "" "Eğer ``__all__`` tanımlanmamışsa, ``from sound.effects import *`` ifadesi :" "mod:`!sound.effects` paketindeki tüm alt modülleri geçerli isim alanına " -"import etmez; sadece :mod:`!sound.effects` paketinin import edildiğinden emin " -"olur (muhtemelen :file:`__init__.py` içindeki herhangi bir başlatma kodunu " -"çalıştırır) ve sonra pakette tanımlanan isimleri import eder. Bu, :file:" -"`__init__.py` tarafından tanımlanan (ve alt modülleri açıkça yüklenen) tüm " -"isimleri içerir. Ayrıca, önceki :keyword:`import` deyimleri tarafından " +"import etmez; sadece :mod:`!sound.effects` paketinin import edildiğinden " +"emin olur (muhtemelen :file:`__init__.py` içindeki herhangi bir başlatma " +"kodunu çalıştırır) ve sonra pakette tanımlanan isimleri import eder. Bu, :" +"file:`__init__.py` tarafından tanımlanan (ve alt modülleri açıkça yüklenen) " +"tüm isimleri içerir. Ayrıca, önceki :keyword:`import` deyimleri tarafından " "açıkça yüklenmiş olan paketin tüm alt modüllerini de içerir. Bu kodu göz " "önünde bulundurun::" @@ -761,8 +768,8 @@ msgid "" "also works when ``__all__`` is defined.)" msgstr "" "Bu örnekte, :mod:`!echo` ve :mod:`!surround` modülleri, ``from...import`` " -"deyimi çalıştırıldığında :mod:`!sound.effects` paketinde tanımlandıkları için " -"geçerli ad alanında içe aktarılır. (Bu aynı zamanda ``__all__`` " +"deyimi çalıştırıldığında :mod:`!sound.effects` paketinde tanımlandıkları " +"için geçerli ad alanında içe aktarılır. (Bu aynı zamanda ``__all__`` " "tanımlandığında da çalışır)." #: tutorial/modules.rst:550 @@ -808,14 +815,14 @@ msgstr "" msgid "" "You can also write relative imports, with the ``from module import name`` " "form of import statement. These imports use leading dots to indicate the " -"current and parent packages involved in the relative import. From the :mod:`!" -"surround` module for example, you might use::" +"current and parent packages involved in the relative import. From the :mod:" +"`!surround` module for example, you might use::" msgstr "" "Ayrıca, içe aktarma ifadesinin ``from module import name`` formuyla göreli " -"içe aktarmaları(relative import) da yazabilirsiniz. Bu içe aktarmalar, göreli " -"içe aktarmada(relative import) yer alan mevcut ve ana paketleri belirtmek " -"için baştaki noktaları kullanır. Örneğin :mod:`!surround` modülünden şunları " -"kullanabilirsiniz::" +"içe aktarmaları(relative import) da yazabilirsiniz. Bu içe aktarmalar, " +"göreli içe aktarmada(relative import) yer alan mevcut ve ana paketleri " +"belirtmek için baştaki noktaları kullanır. Örneğin :mod:`!surround` " +"modülünden şunları kullanabilirsiniz::" #: tutorial/modules.rst:580 msgid "" @@ -837,9 +844,9 @@ msgstr "Birden Çok Dizindeki Paketler" msgid "" "Packages support one more special attribute, :attr:`__path__`. This is " "initialized to be a list containing the name of the directory holding the " -"package's :file:`__init__.py` before the code in that file is executed. This " -"variable can be modified; doing so affects future searches for modules and " -"subpackages contained in the package." +"package's :file:`__init__.py` before the code in that file is executed. " +"This variable can be modified; doing so affects future searches for modules " +"and subpackages contained in the package." msgstr "" "Paketler bir özel özelliği daha destekler, :attr:`__path__`. Bu, o dosyadaki " "kod yürütülmeden önce paketin :file:`__init__.py` dosyasını tutan dizinin " @@ -852,8 +859,8 @@ msgid "" "While this feature is not often needed, it can be used to extend the set of " "modules found in a package." msgstr "" -"Bu özelliğe sıklıkla ihtiyaç duyulmasa da, bir pakette bulunan modül dizisini " -"genişletmek için kullanılabilir." +"Bu özelliğe sıklıkla ihtiyaç duyulmasa da, bir pakette bulunan modül " +"dizisini genişletmek için kullanılabilir." #: tutorial/modules.rst:599 msgid "Footnotes" @@ -862,8 +869,8 @@ msgstr "Dipnotlar" #: tutorial/modules.rst:600 msgid "" "In fact function definitions are also 'statements' that are 'executed'; the " -"execution of a module-level function definition adds the function name to the " -"module's global namespace." +"execution of a module-level function definition adds the function name to " +"the module's global namespace." msgstr "" "Aslında işlev tanımları aynı zamanda 'çalıştırılan' 'ifadelerdir'; modül " "düzeyinde bir işlev tanımının çalıştırılması, işlev adını modülün genel ad " diff --git a/whatsnew/2.0.po b/whatsnew/2.0.po index c9cd05780..a30092cfe 100644 --- a/whatsnew/2.0.po +++ b/whatsnew/2.0.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -312,16 +312,16 @@ msgstr "" #: whatsnew/2.0.rst:219 msgid "" "*stream_reader* is a class that supports decoding input from a stream. " -"*stream_reader(file_obj)* returns an object that supports the :meth:`read`, :" -"meth:`readline`, and :meth:`readlines` methods. These methods will all " -"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 "" #: whatsnew/2.0.rst:224 msgid "" "*stream_writer*, similarly, is a class that supports encoding output to a " "stream. *stream_writer(file_obj)* returns an object that supports the :meth:" -"`write` and :meth:`writelines` methods. These methods expect Unicode " +"`!write` and :meth:`!writelines` methods. These methods expect Unicode " "strings, translating them to the given encoding on output." msgstr "" @@ -447,14 +447,14 @@ msgid "" "The full list of supported assignment operators is ``+=``, ``-=``, ``*=``, " "``/=``, ``%=``, ``**=``, ``&=``, ``|=``, ``^=``, ``>>=``, and ``<<=``. " "Python classes can override the augmented assignment operators by defining " -"methods named :meth:`__iadd__`, :meth:`__isub__`, etc. For example, the " -"following :class:`Number` class stores a number and supports using += to " +"methods named :meth:`!__iadd__`, :meth:`!__isub__`, etc. For example, the " +"following :class:`!Number` class stores a number and supports using += to " "create a new instance with an incremented value." msgstr "" #: whatsnew/2.0.rst:377 msgid "" -"The :meth:`__iadd__` special method is called with the value of the " +"The :meth:`!__iadd__` special method is called with the value of the " "increment, and should return a new instance with an appropriately modified " "value; this return value is bound as the new value of the variable on the " "left-hand side." @@ -475,12 +475,12 @@ msgstr "" #: whatsnew/2.0.rst:392 msgid "" "Until now string-manipulation functionality was in the :mod:`string` module, " -"which was usually a front-end for the :mod:`strop` module written in C. The " -"addition of Unicode posed a difficulty for the :mod:`strop` module, because " -"the functions would all need to be rewritten in order to accept either 8-bit " -"or Unicode strings. For functions such as :func:`string.replace`, which " -"takes 3 string arguments, that means eight possible permutations, and " -"correspondingly complicated code." +"which was usually a front-end for the :mod:`!strop` module written in C. " +"The addition of Unicode posed a difficulty for the :mod:`!strop` module, " +"because the functions would all need to be rewritten in order to accept " +"either 8-bit or Unicode strings. For functions such as :func:`!string." +"replace`, which takes 3 string arguments, that means eight possible " +"permutations, and correspondingly complicated code." msgstr "" #: whatsnew/2.0.rst:400 @@ -507,18 +507,18 @@ msgstr "" #: whatsnew/2.0.rst:418 msgid "" "Two methods which have no parallel in pre-2.0 versions, although they did " -"exist in JPython for quite some time, are :meth:`startswith` and :meth:" -"`endswith`. ``s.startswith(t)`` is equivalent to ``s[:len(t)] == t``, while " +"exist in JPython for quite some time, are :meth:`!startswith` and :meth:`!" +"endswith`. ``s.startswith(t)`` is equivalent to ``s[:len(t)] == t``, while " "``s.endswith(t)`` is equivalent to ``s[-len(t):] == t``." msgstr "" #: whatsnew/2.0.rst:423 msgid "" -"One other method which deserves special mention is :meth:`join`. The :meth:" -"`join` method of a string receives one parameter, a sequence of strings, and " -"is equivalent to the :func:`string.join` function from the old :mod:`string` " -"module, with the arguments reversed. In other words, ``s.join(seq)`` is " -"equivalent to the old ``string.join(seq, s)``." +"One other method which deserves special mention is :meth:`!join`. The :meth:" +"`!join` method of a string receives one parameter, a sequence of strings, " +"and is equivalent to the :func:`!string.join` function from the old :mod:" +"`string` module, with the arguments reversed. In other words, ``s." +"join(seq)`` is equivalent to the old ``string.join(seq, s)``." msgstr "" #: whatsnew/2.0.rst:433 @@ -623,9 +623,9 @@ msgstr "" msgid "" "A new syntax makes it more convenient to call a given function with a tuple " "of arguments and/or a dictionary of keyword arguments. In Python 1.5 and " -"earlier, you'd use the :func:`apply` built-in function: ``apply(f, args, " -"kw)`` calls the function :func:`f` with the argument tuple *args* and the " -"keyword arguments in the dictionary *kw*. :func:`apply` is the same in " +"earlier, you'd use the :func:`!apply` built-in function: ``apply(f, args, " +"kw)`` calls the function :func:`!f` with the argument tuple *args* and the " +"keyword arguments in the dictionary *kw*. :func:`!apply` is the same in " "2.0, but thanks to a patch from Greg Ewing, ``f(*args, **kw)`` is a shorter " "and clearer way to achieve the same effect. This syntax is symmetrical with " "the syntax for defining functions::" @@ -636,7 +636,7 @@ msgid "" "The ``print`` statement can now have its output directed to a file-like " "object by following the ``print`` with ``>> file``, similar to the " "redirection operator in Unix shells. Previously you'd either have to use " -"the :meth:`write` method of the file-like object, which lacks the " +"the :meth:`!write` method of the file-like object, which lacks the " "convenience and simplicity of ``print``, or you could assign a new value to " "``sys.stdout`` and then restore the old value. For sending output to " "standard error, it's much easier to write this::" @@ -665,7 +665,7 @@ msgid "" "seq`` returns true if *obj* is present in the sequence *seq*; Python " "computes this by simply trying every index of the sequence until either " "*obj* is found or an :exc:`IndexError` is encountered. Moshe Zadka " -"contributed a patch which adds a :meth:`__contains__` magic method for " +"contributed a patch which adds a :meth:`!__contains__` magic method for " "providing a custom implementation for :keyword:`!in`. Additionally, new " "built-in objects written in C can define what :keyword:`!in` means for them " "via a new slot in the sequence protocol." @@ -689,7 +689,7 @@ msgid "" "to this implementation, and some useful relevant links. Note that " "comparisons can now also raise exceptions. In earlier versions of Python, a " "comparison operation such as ``cmp(a,b)`` would always produce an answer, " -"even if a user-defined :meth:`__cmp__` method encountered an error, since " +"even if a user-defined :meth:`!__cmp__` method encountered an error, since " "the resulting exception would simply be silently swallowed." msgstr "" @@ -746,7 +746,7 @@ msgstr "" #: whatsnew/2.0.rst:610 msgid "" -"The :func:`int` and :func:`long` functions now accept an optional \"base\" " +"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 " @@ -765,9 +765,9 @@ msgstr "" #: whatsnew/2.0.rst:622 msgid "" "Dictionaries have an odd new method, ``setdefault(key, default)``, which " -"behaves similarly to the existing :meth:`get` method. However, if the key " -"is missing, :meth:`setdefault` both returns the value of *default* as :meth:" -"`get` would do, and also inserts it into the dictionary as the value for " +"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::" msgstr "" @@ -806,7 +806,7 @@ msgid "" "The change which will probably break the most code is tightening up the " "arguments accepted by some methods. Some methods would take multiple " "arguments and treat them as a tuple, particularly various list methods such " -"as :meth:`append` and :meth:`insert`. In earlier versions of Python, if " +"as :meth:`!append` and :meth:`!insert`. In earlier versions of Python, if " "``L`` is a list, ``L.append( 1,2 )`` appends the tuple ``(1,2)`` to the " "list. In Python 2.0 this causes a :exc:`TypeError` exception to be raised, " "with the message: 'append requires exactly 1 argument; 2 given'. The fix is " @@ -863,7 +863,7 @@ msgstr "" msgid "" "Some work has been done to make integers and long integers a bit more " "interchangeable. In 1.5.2, large-file support was added for Solaris, to " -"allow reading files larger than 2 GiB; this made the :meth:`tell` method of " +"allow reading files larger than 2 GiB; this made the :meth:`!tell` method of " "file objects return a long integer instead of a regular integer. Some code " "would subtract two file offsets and attempt to use the result to multiply a " "sequence or slice a string, but this raised a :exc:`TypeError`. In 2.0, " @@ -871,8 +871,8 @@ msgid "" "as you'd intuitively expect it to; ``3L * 'abc'`` produces 'abcabcabc', and " "``(0,1,2,3)[2L:4L]`` produces (2,3). Long integers can also be used in " "various contexts where previously only integers were accepted, such as in " -"the :meth:`seek` method of file objects, and in the formats supported by the " -"``%`` operator (``%d``, ``%i``, ``%x``, etc.). For example, ``\"%d\" % " +"the :meth:`!seek` method of file objects, and in the formats supported by " +"the ``%`` operator (``%d``, ``%i``, ``%x``, etc.). For example, ``\"%d\" % " "2L**64`` will produce the string ``18446744073709551616``." msgstr "" @@ -890,8 +890,8 @@ msgstr "" #: whatsnew/2.0.rst:716 msgid "" "Taking the :func:`repr` of a float now uses a different formatting precision " -"than :func:`str`. :func:`repr` uses ``%.17g`` format string for C's :func:" -"`sprintf`, while :func:`str` uses ``%.12g`` as before. The effect is that :" +"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 " @@ -902,9 +902,9 @@ msgstr "" msgid "" "The ``-X`` command-line option, which turned all standard exceptions into " "strings instead of classes, has been removed; the standard exceptions will " -"now always be classes. The :mod:`exceptions` module containing the standard " -"exceptions was translated from Python to a built-in C module, written by " -"Barry Warsaw and Fredrik Lundh." +"now always be classes. The :mod:`!exceptions` module containing the " +"standard exceptions was translated from Python to a built-in C module, " +"written by Barry Warsaw and Fredrik Lundh." msgstr "" #: whatsnew/2.0.rst:740 @@ -1085,11 +1085,11 @@ msgstr "" #: whatsnew/2.0.rst:882 msgid "" -"Python 1.5.2 included a simple XML parser in the form of the :mod:`xmllib` " +"Python 1.5.2 included a simple XML parser in the form of the :mod:`!xmllib` " "module, contributed by Sjoerd Mullender. Since 1.5.2's release, two " "different interfaces for processing XML have become common: SAX2 (version 2 " "of the Simple API for XML) provides an event-driven interface with some " -"similarities to :mod:`xmllib`, and the DOM (Document Object Model) provides " +"similarities to :mod:`!xmllib`, and the DOM (Document Object Model) provides " "a tree-based interface, transforming an XML document into a tree of nodes " "that can be traversed and modified. Python 2.0 includes a SAX2 interface " "and a stripped-down DOM interface as part of the :mod:`xml` package. Here we " @@ -1107,10 +1107,11 @@ 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:`~xml.sax.handler.ContentHandler." +"startElement` and :meth:`~xml.sax.handler.ContentHandler.endElement` methods " +"are called for every starting and end tag encountered by the parser, the :" +"meth:`~xml.sax.handler.ContentHandler.characters` method is called for every " +"chunk of character data, and so forth." msgstr "" #: whatsnew/2.0.rst:906 @@ -1142,13 +1143,13 @@ msgstr "" #: whatsnew/2.0.rst:942 msgid "" "The Document Object Model is a tree-based representation for an XML " -"document. A top-level :class:`Document` instance is the root of the tree, " -"and has a single child which is the top-level :class:`Element` instance. " -"This :class:`Element` has children nodes representing character data and any " -"sub-elements, which may have further children of their own, and so forth. " -"Using the DOM you can traverse the resulting tree any way you like, access " -"element and attribute values, insert and delete nodes, and convert the tree " -"back into XML." +"document. A top-level :class:`!Document` instance is the root of the tree, " +"and has a single child which is the top-level :class:`!Element` instance. " +"This :class:`!Element` has children nodes representing character data and " +"any sub-elements, which may have further children of their own, and so " +"forth. Using the DOM you can traverse the resulting tree any way you like, " +"access element and attribute values, insert and delete nodes, and convert " +"the tree back into XML." msgstr "" #: whatsnew/2.0.rst:950 @@ -1165,20 +1166,20 @@ 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` " +"support for XML namespaces. The :func:`!parse` and :func:`!parseString` " "convenience functions are provided for generating a DOM tree::" msgstr "" #: whatsnew/2.0.rst:964 msgid "" -"``doc`` is a :class:`Document` instance. :class:`Document`, like all the " -"other DOM classes such as :class:`Element` and :class:`Text`, is a subclass " -"of the :class:`Node` base class. All the nodes in a DOM tree therefore " -"support certain common methods, such as :meth:`toxml` which returns a string " -"containing the XML representation of the node and its children. Each class " -"also has special methods of its own; for example, :class:`Element` and :" -"class:`Document` instances have a method to find all child elements with a " -"given tag name. Continuing from the previous 2-line example::" +"``doc`` is a :class:`!Document` instance. :class:`!Document`, like all the " +"other DOM classes such as :class:`!Element` and :class:`Text`, is a subclass " +"of the :class:`!Node` base class. All the nodes in a DOM tree therefore " +"support certain common methods, such as :meth:`!toxml` which returns a " +"string containing the XML representation of the node and its children. Each " +"class also has special methods of its own; for example, :class:`!Element` " +"and :class:`!Document` instances have a method to find all child elements " +"with a given tag name. Continuing from the previous 2-line example::" msgstr "" #: whatsnew/2.0.rst:977 @@ -1195,7 +1196,7 @@ msgstr "" #: whatsnew/2.0.rst:997 msgid "" "Again, I will refer you to the Python documentation for a complete listing " -"of the different :class:`Node` classes and their various methods." +"of the different :class:`!Node` classes and their various methods." msgstr "" #: whatsnew/2.0.rst:1002 @@ -1233,7 +1234,7 @@ msgid "The xmlproc validating parser, written by Lars Marius Garshol." msgstr "" #: whatsnew/2.0.rst:1023 -msgid "The :mod:`sgmlop` parser accelerator module, written by Fredrik Lundh." +msgid "The :mod:`!sgmlop` parser accelerator module, written by Fredrik Lundh." msgstr "" #: whatsnew/2.0.rst:1029 @@ -1245,7 +1246,7 @@ 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:" +"mod:`readline`, :mod:`!xmllib`, :mod:`aifc`, :mod:`chunk` :mod:`wave`, :mod:" "`random`, :mod:`shelve`, and :mod:`nntplib`. Consult the CVS logs for the " "exact patch-by-patch details." msgstr "" @@ -1265,21 +1266,26 @@ msgstr "" #: whatsnew/2.0.rst:1046 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 " -"provided, though using HTTP/1.1 features such as pipelining will require " -"rewriting code to use a different set of interfaces." +"HTTP/1.1." msgstr "" -#: whatsnew/2.0.rst:1051 +#: whatsnew/2.0.rst:1048 msgid "" -"The :mod:`Tkinter` module now supports Tcl/Tk version 8.1, 8.2, or 8.3, and " +"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 "" + +#: whatsnew/2.0.rst:1052 +msgid "" +"The :mod:`!Tkinter` module now supports Tcl/Tk version 8.1, 8.2, or 8.3, and " "support for the older 7.x versions has been dropped. The Tkinter module now " "supports displaying Unicode strings in Tk widgets. Also, Fredrik Lundh " "contributed an optimization which makes operations like ``create_line`` and " "``create_polygon`` much faster, especially when using lots of coordinates." msgstr "" -#: whatsnew/2.0.rst:1057 +#: whatsnew/2.0.rst:1058 msgid "" "The :mod:`curses` module has been greatly extended, starting from Oliver " "Andrich's enhanced version, to provide many additional functions from " @@ -1289,7 +1295,7 @@ msgid "" "currently maintained OSes that fall into this category." msgstr "" -#: whatsnew/2.0.rst:1064 +#: whatsnew/2.0.rst:1065 msgid "" "As mentioned in the earlier discussion of 2.0's Unicode support, the " "underlying implementation of the regular expressions provided by the :mod:" @@ -1298,18 +1304,18 @@ msgid "" "against both 8-bit strings and Unicode strings." msgstr "" -#: whatsnew/2.0.rst:1074 +#: whatsnew/2.0.rst:1075 msgid "New modules" msgstr "" -#: whatsnew/2.0.rst:1076 +#: whatsnew/2.0.rst:1077 msgid "" "A number of new modules were added. We'll simply list them with brief " "descriptions; consult the 2.0 documentation for the details of a particular " "module." msgstr "" -#: whatsnew/2.0.rst:1080 +#: whatsnew/2.0.rst:1081 msgid "" ":mod:`atexit`: For registering functions to be called before the Python " "interpreter exits. Code that currently sets ``sys.exitfunc`` directly should " @@ -1318,20 +1324,20 @@ msgid "" "(Contributed by Skip Montanaro.)" msgstr "" -#: whatsnew/2.0.rst:1086 +#: whatsnew/2.0.rst:1087 msgid "" -":mod:`codecs`, :mod:`encodings`, :mod:`unicodedata`: Added as part of the " +":mod:`codecs`, :mod:`!encodings`, :mod:`unicodedata`: Added as part of the " "new Unicode support." msgstr "" -#: whatsnew/2.0.rst:1089 +#: whatsnew/2.0.rst:1090 msgid "" -":mod:`filecmp`: Supersedes the old :mod:`cmp`, :mod:`cmpcache` and :mod:" -"`dircmp` modules, which have now become deprecated. (Contributed by Gordon " +":mod:`filecmp`: Supersedes the old :mod:`!cmp`, :mod:`!cmpcache` and :mod:`!" +"dircmp` modules, which have now become deprecated. (Contributed by Gordon " "MacMillan and Moshe Zadka.)" msgstr "" -#: whatsnew/2.0.rst:1093 +#: whatsnew/2.0.rst:1094 msgid "" ":mod:`gettext`: This module provides internationalization (I18N) and " "localization (L10N) support for Python programs by providing an interface to " @@ -1340,14 +1346,14 @@ msgid "" "Henstridge.)" msgstr "" -#: whatsnew/2.0.rst:1098 +#: whatsnew/2.0.rst:1099 msgid "" ":mod:`!linuxaudiodev`: Support for the :file:`/dev/audio` device on Linux, a " "twin to the existing :mod:`!sunaudiodev` module. (Contributed by Peter " "Bosch, with fixes by Jeremy Hylton.)" msgstr "" -#: whatsnew/2.0.rst:1102 +#: whatsnew/2.0.rst:1103 msgid "" ":mod:`mmap`: An interface to memory-mapped files on both Windows and Unix. " "A file's contents can be mapped directly into memory, at which point it " @@ -1357,13 +1363,13 @@ msgid "" "M. Kuchling.)" msgstr "" -#: whatsnew/2.0.rst:1108 +#: whatsnew/2.0.rst:1109 msgid "" -":mod:`pyexpat`: An interface to the Expat XML parser. (Contributed by Paul " +":mod:`!pyexpat`: An interface to the Expat XML parser. (Contributed by Paul " "Prescod.)" msgstr "" -#: whatsnew/2.0.rst:1111 +#: whatsnew/2.0.rst:1112 msgid "" ":mod:`robotparser `: Parse a :file:`robots.txt` file, " "which is used for writing web spiders that politely avoid certain areas of a " @@ -1372,19 +1378,19 @@ msgid "" "fetchability of a given URL. (Contributed by Skip Montanaro.)" msgstr "" -#: whatsnew/2.0.rst:1117 +#: whatsnew/2.0.rst:1118 msgid "" ":mod:`tabnanny`: A module/script to check Python source code for ambiguous " "indentation. (Contributed by Tim Peters.)" msgstr "" -#: whatsnew/2.0.rst:1120 +#: whatsnew/2.0.rst:1121 msgid "" -":mod:`UserString`: A base class useful for deriving objects that behave like " -"strings." +":mod:`!UserString`: A base class useful for deriving objects that behave " +"like strings." msgstr "" -#: whatsnew/2.0.rst:1123 +#: whatsnew/2.0.rst:1124 msgid "" ":mod:`webbrowser`: A module that provides a platform independent way to " "launch a web browser on a specific URL. For each platform, various browsers " @@ -1396,7 +1402,7 @@ msgid "" "Fred.)" msgstr "" -#: whatsnew/2.0.rst:1132 +#: whatsnew/2.0.rst:1133 msgid "" ":mod:`_winreg `: An interface to the Windows registry. :mod:`!" "_winreg` is an adaptation of functions that have been part of PythonWin " @@ -1405,7 +1411,7 @@ msgid "" "Hammond." msgstr "" -#: whatsnew/2.0.rst:1137 +#: whatsnew/2.0.rst:1138 msgid "" ":mod:`zipfile`: A module for reading and writing ZIP-format archives. These " "are archives produced by :program:`PKZIP` on DOS/Windows or :program:`zip` " @@ -1413,7 +1419,7 @@ msgid "" "supported by the :mod:`gzip` module) (Contributed by James C. Ahlstrom.)" msgstr "" -#: whatsnew/2.0.rst:1142 +#: whatsnew/2.0.rst:1143 msgid "" ":mod:`!imputil`: A module that provides a simpler way for writing customized " "import hooks, in comparison to the existing :mod:`!ihooks` module. " @@ -1421,92 +1427,93 @@ msgid "" "way.)" msgstr "" -#: whatsnew/2.0.rst:1150 +#: whatsnew/2.0.rst:1151 msgid "IDLE Improvements" msgstr "" -#: whatsnew/2.0.rst:1152 +#: whatsnew/2.0.rst:1153 msgid "" "IDLE is the official Python cross-platform IDE, written using Tkinter. " "Python 2.0 includes IDLE 0.6, which adds a number of new features and " "improvements. A partial list:" msgstr "" -#: whatsnew/2.0.rst:1156 +#: whatsnew/2.0.rst:1157 msgid "" "UI improvements and optimizations, especially in the area of syntax " "highlighting and auto-indentation." msgstr "" -#: whatsnew/2.0.rst:1159 +#: whatsnew/2.0.rst:1160 msgid "" "The class browser now shows more information, such as the top level " "functions in a module." msgstr "" -#: whatsnew/2.0.rst:1162 +#: whatsnew/2.0.rst:1163 msgid "" "Tab width is now a user settable option. When opening an existing Python " "file, IDLE automatically detects the indentation conventions, and adapts." msgstr "" -#: whatsnew/2.0.rst:1165 +#: whatsnew/2.0.rst:1166 msgid "" "There is now support for calling browsers on various platforms, used to open " "the Python documentation in a browser." msgstr "" -#: whatsnew/2.0.rst:1168 +#: whatsnew/2.0.rst:1169 msgid "" "IDLE now has a command line, which is largely similar to the vanilla Python " "interpreter." msgstr "" -#: whatsnew/2.0.rst:1171 +#: whatsnew/2.0.rst:1172 msgid "Call tips were added in many places." msgstr "" -#: whatsnew/2.0.rst:1173 +#: whatsnew/2.0.rst:1174 msgid "IDLE can now be installed as a package." msgstr "" -#: whatsnew/2.0.rst:1175 +#: whatsnew/2.0.rst:1176 msgid "In the editor window, there is now a line/column bar at the bottom." msgstr "" -#: whatsnew/2.0.rst:1177 +#: whatsnew/2.0.rst:1178 msgid "" "Three new keystroke commands: Check module (:kbd:`Alt-F5`), Import module (:" "kbd:`F5`) and Run script (:kbd:`Ctrl-F5`)." msgstr "" -#: whatsnew/2.0.rst:1184 +#: whatsnew/2.0.rst:1185 msgid "Deleted and Deprecated Modules" msgstr "" -#: whatsnew/2.0.rst:1186 +#: whatsnew/2.0.rst:1187 msgid "" "A few modules have been dropped because they're obsolete, or because there " -"are now better ways to do the same thing. The :mod:`stdwin` module is gone; " -"it was for a platform-independent windowing toolkit that's no longer " +"are now better ways to do the same thing. The :mod:`!stdwin` module is " +"gone; it was for a platform-independent windowing toolkit that's no longer " "developed." msgstr "" -#: whatsnew/2.0.rst:1190 +#: whatsnew/2.0.rst:1191 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." +"mod:`!cmp`, :mod:`!cmpcache`, :mod:`!dircmp`, :mod:`!dump`, :mod:`!find`, :" +"mod:`!grep`, :mod:`!packmail`, :mod:`!poly`, :mod:`!util`, :mod:`!" +"whatsound`, :mod:`!zmod`. If you have code which relies on a module that's " +"been moved to :file:`lib-old`, you can simply add that directory to ``sys." +"path`` to get them back, but you're encouraged to update any code that " +"uses these modules." msgstr "" -#: whatsnew/2.0.rst:1199 +#: whatsnew/2.0.rst:1200 msgid "Acknowledgements" msgstr "" -#: whatsnew/2.0.rst:1201 +#: whatsnew/2.0.rst:1202 msgid "" "The authors would like to thank the following people for offering " "suggestions on various drafts of this article: David Bolen, Mark Hammond, " diff --git a/whatsnew/2.1.po b/whatsnew/2.1.po index cbb583b6e..efd863ffe 100644 --- a/whatsnew/2.1.po +++ b/whatsnew/2.1.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-01 00:16+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -73,7 +73,7 @@ msgstr "" #: whatsnew/2.1.rst:51 msgid "" -"The function :func:`g` will always raise a :exc:`NameError` exception, " +"The function :func:`!g` will always raise a :exc:`NameError` exception, " "because the binding of the name ``g`` isn't in either its local namespace or " "in the module-level namespace. This isn't much of a problem in practice " "(how often do you recursively define interior functions like this?), but " @@ -134,7 +134,7 @@ msgstr "" msgid "" "Line 4 containing the ``exec`` statement is a syntax error, since ``exec`` " "would define a new local variable named ``x`` whose value should be accessed " -"by :func:`g`." +"by :func:`!g`." msgstr "" #: whatsnew/2.1.rst:109 @@ -209,7 +209,7 @@ msgstr "" msgid "" "In earlier versions, Python's support for implementing comparisons on user-" "defined classes and extension types was quite simple. Classes could " -"implement a :meth:`__cmp__` method that was given two instances of a class, " +"implement a :meth:`!__cmp__` method that was given two instances of a class, " "and could only return 0 if they were equal or +1 or -1 if they weren't; the " "method couldn't raise an exception or return anything other than a Boolean " "value. Users of Numeric Python often found this model too weak and " @@ -242,7 +242,7 @@ msgid "``<``" msgstr "" #: whatsnew/2.1.rst:181 -msgid ":meth:`__lt__`" +msgid ":meth:`~object.__lt__`" msgstr "" #: whatsnew/2.1.rst:183 @@ -250,7 +250,7 @@ msgid "``<=``" msgstr "" #: whatsnew/2.1.rst:183 -msgid ":meth:`__le__`" +msgid ":meth:`~object.__le__`" msgstr "" #: whatsnew/2.1.rst:185 @@ -258,7 +258,7 @@ msgid "``>``" msgstr "" #: whatsnew/2.1.rst:185 -msgid ":meth:`__gt__`" +msgid ":meth:`~object.__gt__`" msgstr "" #: whatsnew/2.1.rst:187 @@ -266,7 +266,7 @@ msgid "``>=``" msgstr "" #: whatsnew/2.1.rst:187 -msgid ":meth:`__ge__`" +msgid ":meth:`~object.__ge__`" msgstr "" #: whatsnew/2.1.rst:189 @@ -274,7 +274,7 @@ msgid "``==``" msgstr "" #: whatsnew/2.1.rst:189 -msgid ":meth:`__eq__`" +msgid ":meth:`~object.__eq__`" msgstr "" #: whatsnew/2.1.rst:191 @@ -282,7 +282,7 @@ msgid "``!=``" msgstr "" #: whatsnew/2.1.rst:191 -msgid ":meth:`__ne__`" +msgid ":meth:`~object.__ne__`" msgstr "" #: whatsnew/2.1.rst:194 @@ -314,7 +314,7 @@ msgid "" "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 " +"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 "" @@ -366,7 +366,7 @@ msgstr "" #: whatsnew/2.1.rst:248 msgid "" -"For example, in Python 2.1 the :mod:`regex` module is deprecated, so " +"For example, in Python 2.1 the :mod:`!regex` module is deprecated, so " "importing it causes a warning to be printed::" msgstr "" @@ -385,7 +385,7 @@ 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:" +"`!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 "" @@ -393,7 +393,7 @@ 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 " +"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 " @@ -510,8 +510,9 @@ msgid "" "This version works for simple things such as integers, but it has a side " "effect; the ``_cache`` dictionary holds a reference to the return values, so " "they'll never be deallocated until the Python process exits and cleans up. " -"This isn't very noticeable for integers, but if :func:`f` returns an object, " -"or a data structure that takes up a lot of memory, this can be a problem." +"This isn't very noticeable for integers, but if :func:`!f` returns an " +"object, or a data structure that takes up a lot of memory, this can be a " +"problem." msgstr "" #: whatsnew/2.1.rst:374 @@ -528,7 +529,7 @@ msgstr "" #: whatsnew/2.1.rst:382 msgid "" -"This makes it possible to write a :func:`memoize` function whose cache " +"This makes it possible to write a :func:`!memoize` function whose cache " "doesn't keep objects alive, by storing weak references in the cache. ::" msgstr "" @@ -539,7 +540,7 @@ msgid "" "deallocated -- but instead of requiring an explicit call to retrieve the " "object, the proxy transparently forwards all operations to the object as " "long as the object still exists. If the object is deallocated, attempting " -"to use a proxy will cause a :exc:`weakref.ReferenceError` exception to be " +"to use a proxy will cause a :exc:`!weakref.ReferenceError` exception to be " "raised. ::" msgstr "" @@ -581,7 +582,7 @@ msgid "" "`~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` " +"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 "" @@ -737,11 +738,11 @@ msgstr "" #: whatsnew/2.1.rst:587 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 " +"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 " +"`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 "" @@ -764,12 +765,12 @@ msgstr "" #: whatsnew/2.1.rst:620 msgid "" -"The :mod:`difflib` module contains a class, :class:`SequenceMatcher`, which " -"compares two sequences and computes the changes required to transform one " -"sequence into the other. For example, this module can be used to write a " -"tool similar to the Unix :program:`diff` program, and in fact the sample " -"program :file:`Tools/scripts/ndiff.py` demonstrates how to write such a " -"script." +"The :mod:`difflib` module contains a class, :class:`~difflib." +"SequenceMatcher`, which compares two sequences and computes the changes " +"required to transform one sequence into the other. For example, this module " +"can be used to write a tool similar to the Unix :program:`diff` program, and " +"in fact the sample program :file:`Tools/scripts/ndiff.py` demonstrates how " +"to write such a script." msgstr "" #: whatsnew/2.1.rst:626 @@ -787,7 +788,7 @@ msgid "" "Python 2.1 includes an updated version of the :mod:`xml` package. Some of " "the noteworthy changes include support for Expat 1.2 and later versions, the " "ability for Expat parsers to handle files in any encoding supported by " -"Python, and various bugfixes for SAX, DOM, and the :mod:`minidom` module." +"Python, and various bugfixes for SAX, DOM, and the :mod:`!minidom` module." msgstr "" #: whatsnew/2.1.rst:638 @@ -804,14 +805,15 @@ msgstr "" #: whatsnew/2.1.rst:646 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 " -"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 " -"``time.asctime(time.localtime(time.time()))`` that was previously required." +"Various functions in the :mod:`time` module, such as :func:`~time.asctime` " +"and :func:`~time.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 ``time.asctime(time.localtime(time.time()))`` that was previously " +"required." msgstr "" #: whatsnew/2.1.rst:655 @@ -919,11 +921,11 @@ msgstr "" #: whatsnew/2.1.rst:726 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 " +"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::" +"but not reading the entire file into memory as the existing :meth:`!" +"readlines` method does. You'd use it like this::" msgstr "" #: whatsnew/2.1.rst:737 @@ -935,7 +937,7 @@ msgstr "" #: whatsnew/2.1.rst:740 msgid "" -"A new method, :meth:`popitem`, was added to dictionaries to enable " +"A new method, :meth:`~dict.popitem`, was added to dictionaries to enable " "destructively iterating through the contents of a dictionary; this can be " "faster for large dictionaries because there's no need to construct a list " "containing all the keys or values. ``D.popitem()`` removes a random ``(key, " diff --git a/whatsnew/2.7.po b/whatsnew/2.7.po index c174ec72f..6e748f03f 100644 --- a/whatsnew/2.7.po +++ b/whatsnew/2.7.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -1181,8 +1181,8 @@ msgstr "" #: whatsnew/2.7.rst:1132 msgid "" "Finally, the :class:`~collections.abc.Mapping` abstract base class now " -"returns :const:`NotImplemented` if a mapping is compared to another type " -"that isn't a :class:`Mapping`. (Fixed by Daniel Stutzbach; :issue:`8729`.)" +"returns :data:`NotImplemented` if a mapping is compared to another type that " +"isn't a :class:`Mapping`. (Fixed by Daniel Stutzbach; :issue:`8729`.)" msgstr "" #: whatsnew/2.7.rst:1137 diff --git a/whatsnew/3.10.po b/whatsnew/3.10.po index 680a3893c..22af9c93e 100644 --- a/whatsnew/3.10.po +++ b/whatsnew/3.10.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -840,9 +840,9 @@ msgstr "" #: whatsnew/3.10.rst:831 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`.)" +"If :func:`object.__ipow__` returns :data:`NotImplemented`, the operator will " +"correctly fall back to :func:`object.__pow__` and :func:`object.__rpow__` as " +"expected. (Contributed by Alex Shkop in :issue:`38302`.)" msgstr "" #: whatsnew/3.10.rst:835 diff --git a/whatsnew/3.4.po b/whatsnew/3.4.po index 828565be7..ed2fa4317 100644 --- a/whatsnew/3.4.po +++ b/whatsnew/3.4.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-01-04 05:12+0300\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -1157,7 +1157,7 @@ msgstr "" #: whatsnew/3.4.rst:874 msgid "" -":func:`~functools.total_ordering` now supports a return value of :const:" +":func:`~functools.total_ordering` now supports a return value of :data:" "`NotImplemented` from the underlying comparison function. (Contributed by " "Katie Miller in :issue:`10042`.)" msgstr "" diff --git a/whatsnew/3.9.po b/whatsnew/3.9.po index 8dbb3019d..1883a4496 100644 --- a/whatsnew/3.9.po +++ b/whatsnew/3.9.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-24 17:22+0000\n" +"POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: 2023-03-01 11:48+0300\n" "Last-Translator: \n" "Language-Team: TURKISH \n" @@ -2276,12 +2276,13 @@ msgstr "" "etkileyebilir. ( :issue:`37742` içinde Vinay Sajip tarafından katılmıştır.)" #: whatsnew/3.9.rst:1129 +#, fuzzy msgid "" -"Division handling of :class:`~pathlib.PurePath` now returns " -"``NotImplemented`` instead of raising a :exc:`TypeError` when passed " -"something other than an instance of ``str`` or :class:`~pathlib.PurePath`. " -"This allows creating compatible classes that don't inherit from those " -"mentioned types. (Contributed by Roger Aiudi in :issue:`34775`)." +"Division handling of :class:`~pathlib.PurePath` now returns :data:" +"`NotImplemented` instead of raising a :exc:`TypeError` when passed something " +"other than an instance of ``str`` or :class:`~pathlib.PurePath`. This " +"allows creating compatible classes that don't inherit from those mentioned " +"types. (Contributed by Roger Aiudi in :issue:`34775`)." msgstr "" ":class:`~pathlib.PurePath` 'nın bölümleme işlemi, ``str`` veya :class:" "`~pathlib.PurePath` örneğinden başka bir şey iletildiğinde bir :exc:" From a8bd34af9aab56dc942688588fe4123acfed88dd Mon Sep 17 00:00:00 2001 From: Ege Akman Date: Fri, 1 Mar 2024 23:35:36 +0300 Subject: [PATCH 2/2] Add language and language team --- c-api/hash.po | 4 ++-- howto/gdb_helpers.po | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/c-api/hash.po b/c-api/hash.po index 5c70a095a..598b0d497 100644 --- a/c-api/hash.po +++ b/c-api/hash.po @@ -11,8 +11,8 @@ msgstr "" "POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" +"Language-Team: TURKISH \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/howto/gdb_helpers.po b/howto/gdb_helpers.po index 814a0325c..00cb49b09 100644 --- a/howto/gdb_helpers.po +++ b/howto/gdb_helpers.po @@ -11,8 +11,8 @@ msgstr "" "POT-Creation-Date: 2024-03-01 20:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" +"Language-Team: TURKISH \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n"