| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 72773d1 commit c5b972e
45 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ msgid "" | |||
| 7 | 7 | msgstr "" | |
| 8 | 8 | "Project-Id-Version: Python 3.15\n" | |
| 9 | 9 | "Report-Msgid-Bugs-To: \n" | |
| 10 | - "POT-Creation-Date: 2026-09-23 06:17+0000\n" | ||
| 10 | + "POT-Creation-Date: 2026-10-12 03:18+0000\n" | ||
| 11 | 11 | "PO-Revision-Date: 2026-09-22 21:21+0200\n" | |
| 12 | 12 | "Last-Translator: Automatically generated\n" | |
| 13 | 13 | "Language-Team: none\n" | |
@@ -566,20 +566,15 @@ msgid "" | |||
| 566 | 566 | msgstr "" | |
| 567 | 567 | ||
| 568 | 568 | #: ../../builtins/threadsafety.rst:410 | |
| 569 | - msgid ":meth:`set.update` and :meth:`set.union` lock both objects only when" | ||
| 570 | - msgstr "" | ||
| 571 | - | ||
| 572 | - #: ../../builtins/threadsafety.rst:411 | ||
| 573 | 569 | msgid "" | |
| 574 | - "the other operand is a :class:`set`, :class:`frozenset`, or :class:`dict`." | ||
| 570 | + ":meth:`set.update` and :meth:`set.union` lock both objects only when the " | ||
| 571 | + "other operand is a :class:`set`, :class:`frozenset`, or :class:`dict`." | ||
| 575 | 572 | msgstr "" | |
| 576 | 573 | ||
| 577 | 574 | #: ../../builtins/threadsafety.rst:412 | |
| 578 | - msgid ":meth:`set.intersection` and :meth:`set.difference` always try to lock" | ||
| 579 | - msgstr "" | ||
| 580 | - | ||
| 581 | - #: ../../builtins/threadsafety.rst:413 | ||
| 582 | - msgid "all objects." | ||
| 575 | + msgid "" | ||
| 576 | + ":meth:`set.intersection` and :meth:`set.difference` always try to lock all " | ||
| 577 | + "objects." | ||
| 583 | 578 | msgstr "" | |
| 584 | 579 | ||
| 585 | 580 | #: ../../builtins/threadsafety.rst:415 | |
@@ -593,20 +588,15 @@ msgid "" | |||
| 593 | 588 | msgstr "" | |
| 594 | 589 | ||
| 595 | 590 | #: ../../builtins/threadsafety.rst:420 | |
| 596 | - msgid ":meth:`set.difference_update` and :meth:`set.intersection_update` try" | ||
| 597 | - msgstr "" | ||
| 598 | - | ||
| 599 | - #: ../../builtins/threadsafety.rst:421 | ||
| 600 | - msgid "to lock all objects one-by-one." | ||
| 591 | + msgid "" | ||
| 592 | + ":meth:`set.difference_update` and :meth:`set.intersection_update` try to " | ||
| 593 | + "lock all objects one-by-one." | ||
| 601 | 594 | msgstr "" | |
| 602 | 595 | ||
| 603 | 596 | #: ../../builtins/threadsafety.rst:422 | |
| 604 | 597 | msgid "" | |
| 605 | - ":meth:`set.symmetric_difference_update` only locks the arguments if it is" | ||
| 606 | - msgstr "" | ||
| 607 | - | ||
| 608 | - #: ../../builtins/threadsafety.rst:423 | ||
| 609 | - msgid "of type :class:`set`, :class:`frozenset`, or :class:`dict`." | ||
| 598 | + ":meth:`set.symmetric_difference_update` only locks the arguments if it is of " | ||
| 599 | + "type :class:`set`, :class:`frozenset`, or :class:`dict`." | ||
| 610 | 600 | msgstr "" | |
| 611 | 601 | ||
| 612 | 602 | #: ../../builtins/threadsafety.rst:425 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -996,9 +996,9 @@ msgid "" | |||
| 996 | 996 | "``0`` is returned on success, ``-1`` on error." | |
| 997 | 997 | msgstr "" | |
| 998 | 998 | "Kopiert *len* zusammenhängende Bytes von *buf* nach *view*. *order* kann " | |
| 999 | - "``'C'``, ``'F'`` oder ``'A'`` sein (für eine Anordnung im C-Stil, im " | ||
| 1000 | - "Fortran-Stil oder für eine von beiden). Bei Erfolg wird ``0`` zurückgegeben, " | ||
| 1001 | - "bei einem Fehler ``-1``." | ||
| 999 | + "``'C'``, ``'F'`` oder ``'A'`` sein (für eine Anordnung im C-Stil, im Fortran-" | ||
| 1000 | + "Stil oder für eine von beiden). Bei Erfolg wird ``0`` zurückgegeben, bei " | ||
| 1001 | + "einem Fehler ``-1``." | ||
| 1002 | 1002 | ||
| 1003 | 1003 | #: ../../c-api/buffer.rst:515 | |
| 1004 | 1004 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ msgid "" | |||
| 8 | 8 | msgstr "" | |
| 9 | 9 | "Project-Id-Version: Python 3.15\n" | |
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | - "POT-Creation-Date: 2026-09-23 06:17+0000\n" | ||
| 11 | + "POT-Creation-Date: 2026-10-12 03:18+0000\n" | ||
| 12 | 12 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 13 | 13 | "Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n" | |
| 14 | 14 | "Language: de\n" | |
@@ -652,6 +652,144 @@ msgid "" | |||
| 652 | 652 | "return (char*)PyBytesWriter_GetData(writer) + pos;" | |
| 653 | 653 | msgstr "" | |
| 654 | 654 | ||
| 655 | + #: ../../c-api/bytes.rst:464 | ||
| 656 | + msgid "Example creating the string ``b'abc'``" | ||
| 657 | + msgstr "" | ||
| 658 | + | ||
| 659 | + #: ../../c-api/bytes.rst:466 | ||
| 660 | + msgid "" | ||
| 661 | + "Example creating the bytes string ``b\"abc\"``, with a fixed size of 3 " | ||
| 662 | + "bytes::" | ||
| 663 | + msgstr "" | ||
| 664 | + | ||
| 665 | + #: ../../c-api/bytes.rst:468 | ||
| 666 | + msgid "" | ||
| 667 | + "PyObject* create_abc(void)\n" | ||
| 668 | + "{\n" | ||
| 669 | + " PyBytesWriter *writer = PyBytesWriter_Create(3);\n" | ||
| 670 | + " if (writer == NULL) {\n" | ||
| 671 | + " return NULL;\n" | ||
| 672 | + " }\n" | ||
| 673 | + "\n" | ||
| 674 | + " char *str = PyBytesWriter_GetData(writer);\n" | ||
| 675 | + " memcpy(str, \"abc\", 3);\n" | ||
| 676 | + " return PyBytesWriter_Finish(writer);\n" | ||
| 677 | + "}" | ||
| 678 | + msgstr "" | ||
| 679 | + | ||
| 680 | + #: ../../c-api/bytes.rst:480 | ||
| 681 | + msgid "Variant using a pointer to compute the final size::" | ||
| 682 | + msgstr "" | ||
| 683 | + | ||
| 684 | + #: ../../c-api/bytes.rst:482 | ||
| 685 | + msgid "" | ||
| 686 | + "PyObject* create_abc_ptr(void)\n" | ||
| 687 | + "{\n" | ||
| 688 | + " PyBytesWriter *writer = PyBytesWriter_Create(3);\n" | ||
| 689 | + " if (writer == NULL) {\n" | ||
| 690 | + " return NULL;\n" | ||
| 691 | + " }\n" | ||
| 692 | + "\n" | ||
| 693 | + " char *str = PyBytesWriter_GetData(writer);\n" | ||
| 694 | + " memcpy(str, \"abc\", 3);\n" | ||
| 695 | + " str += 1;\n" | ||
| 696 | + " return PyBytesWriter_FinishWithPointer(writer, str);\n" | ||
| 697 | + "}" | ||
| 698 | + msgstr "" | ||
| 699 | + | ||
| 700 | + #: ../../c-api/bytes.rst:497 | ||
| 701 | + msgid "Update ``PyBytes_FromStringAndSize()`` code" | ||
| 702 | + msgstr "" | ||
| 703 | + | ||
| 704 | + #: ../../c-api/bytes.rst:499 | ||
| 705 | + msgid "" | ||
| 706 | + "Example of code using the soft deprecated ``PyBytes_FromStringAndSize(NULL, " | ||
| 707 | + "size)`` API::" | ||
| 708 | + msgstr "" | ||
| 709 | + | ||
| 710 | + #: ../../c-api/bytes.rst:502 | ||
| 711 | + msgid "" | ||
| 712 | + "int copy_bytes(char *dest, const char *src, Py_ssize_t num_bytes)\n" | ||
| 713 | + "{\n" | ||
| 714 | + " ...\n" | ||
| 715 | + "}\n" | ||
| 716 | + "\n" | ||
| 717 | + "PyObject* create_string(const char *start, Py_ssize_t num_bytes)\n" | ||
| 718 | + "{\n" | ||
| 719 | + " PyObject *result = PyBytes_FromStringAndSize(NULL, num_bytes);\n" | ||
| 720 | + " if (result == NULL) {\n" | ||
| 721 | + " return NULL;\n" | ||
| 722 | + " }\n" | ||
| 723 | + " if (copy_bytes(PyBytes_AS_STRING(result), start, num_bytes) < 0) {\n" | ||
| 724 | + " Py_CLEAR(result);\n" | ||
| 725 | + " }\n" | ||
| 726 | + " return result;\n" | ||
| 727 | + "}" | ||
| 728 | + msgstr "" | ||
| 729 | + | ||
| 730 | + #: ../../c-api/bytes.rst:519 ../../c-api/bytes.rst:556 | ||
| 731 | + msgid "It can now be updated to::" | ||
| 732 | + msgstr "" | ||
| 733 | + | ||
| 734 | + #: ../../c-api/bytes.rst:521 | ||
| 735 | + msgid "" | ||
| 736 | + "PyObject* create_string(const char *start, Py_ssize_t num_bytes)\n" | ||
| 737 | + "{\n" | ||
| 738 | + " PyBytesWriter *writer = PyBytesWriter_Create(num_bytes);\n" | ||
| 739 | + " if (writer == NULL) {\n" | ||
| 740 | + " return NULL;\n" | ||
| 741 | + " }\n" | ||
| 742 | + " if (copy_bytes(PyBytesWriter_GetData(writer), start, num_bytes) < 0) {\n" | ||
| 743 | + " PyBytesWriter_Discard(writer);\n" | ||
| 744 | + " return NULL;\n" | ||
| 745 | + " }\n" | ||
| 746 | + " return PyBytesWriter_Finish(writer);\n" | ||
| 747 | + "}" | ||
| 748 | + msgstr "" | ||
| 749 | + | ||
| 750 | + #: ../../c-api/bytes.rst:536 | ||
| 751 | + msgid "Update ``_PyBytes_Resize()`` code" | ||
| 752 | + msgstr "" | ||
| 753 | + | ||
| 754 | + #: ../../c-api/bytes.rst:538 | ||
| 755 | + msgid "Example of code using the soft deprecated ``_PyBytes_Resize()`` API::" | ||
| 756 | + msgstr "" | ||
| 757 | + | ||
| 758 | + #: ../../c-api/bytes.rst:540 | ||
| 759 | + msgid "" | ||
| 760 | + "void create_string(Py_ssize_t size)\n" | ||
| 761 | + "{\n" | ||
| 762 | + " PyObject *bytes = PyBytes_FromStringAndSize(NULL, size);\n" | ||
| 763 | + " if (bytes == NULL) {\n" | ||
| 764 | + " return NULL;\n" | ||
| 765 | + " }\n" | ||
| 766 | + " char *str = PyBytes_AS_STRING(bytes);\n" | ||
| 767 | + "\n" | ||
| 768 | + " // ... write data into str ...\n" | ||
| 769 | + "\n" | ||
| 770 | + " if (_PyBytes_Resize(&bytes, (str - PyBytes_AS_STRING(bytes)))) {\n" | ||
| 771 | + " return NULL;\n" | ||
| 772 | + " }\n" | ||
| 773 | + " return bytes;\n" | ||
| 774 | + "}" | ||
| 775 | + msgstr "" | ||
| 776 | + | ||
| 777 | + #: ../../c-api/bytes.rst:558 | ||
| 778 | + msgid "" | ||
| 779 | + "void create_string(Py_ssize_t size)\n" | ||
| 780 | + "{\n" | ||
| 781 | + " PyBytesWriter *writer = PyBytesWriter_Create(size);\n" | ||
| 782 | + " if (writer == NULL) {\n" | ||
| 783 | + " return NULL;\n" | ||
| 784 | + " }\n" | ||
| 785 | + " char *str = PyBytesWriter_GetData(writer);\n" | ||
| 786 | + "\n" | ||
| 787 | + " // ... write data into str ...\n" | ||
| 788 | + "\n" | ||
| 789 | + " return PyBytesWriter_FinishWithPointer(writer, str);\n" | ||
| 790 | + "}" | ||
| 791 | + msgstr "" | ||
| 792 | + | ||
| 655 | 793 | #: ../../c-api/bytes.rst:18 | |
| 656 | 794 | msgid "object" | |
| 657 | 795 | msgstr "" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments