5
5
msgstr ""
6
6
"Project-Id-Version : Python 3.6\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
- "POT-Creation-Date : 2018-12-21 09:48+0100 \n "
8
+ "POT-Creation-Date : 2019-09-04 11:33+0200 \n "
9
9
"PO-Revision-Date : 2018-10-04 12:18+0200\n "
10
10
"Last-Translator : \n "
11
11
"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
@@ -576,24 +576,18 @@ msgid ""
576
576
"dimensional array as follows:"
577
577
msgstr ""
578
578
579
- #: ../Doc/c-api/buffer.rst:358
580
- msgid ""
581
- "``ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
582
- "strides[n-1]`` ``item = *((typeof(item) *)ptr);``"
583
- msgstr ""
584
-
585
- #: ../Doc/c-api/buffer.rst:362
579
+ #: ../Doc/c-api/buffer.rst:364
586
580
msgid ""
587
581
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
588
582
"the actual memory block. An exporter can check the validity of a buffer with "
589
583
"this function:"
590
584
msgstr ""
591
585
592
- #: ../Doc/c-api/buffer.rst:396
586
+ #: ../Doc/c-api/buffer.rst:398
593
587
msgid "PIL-style: shape, strides and suboffsets"
594
588
msgstr ""
595
589
596
- #: ../Doc/c-api/buffer.rst:398
590
+ #: ../Doc/c-api/buffer.rst:400
597
591
msgid ""
598
592
"In addition to the regular items, PIL-style arrays can contain pointers that "
599
593
"must be followed in order to get to the next element in a dimension. For "
@@ -604,33 +598,33 @@ msgid ""
604
598
"x[2][3]`` arrays that can be located anywhere in memory."
605
599
msgstr ""
606
600
607
- #: ../Doc/c-api/buffer.rst:407
601
+ #: ../Doc/c-api/buffer.rst:409
608
602
msgid ""
609
603
"Here is a function that returns a pointer to the element in an N-D array "
610
604
"pointed to by an N-dimensional index when there are both non-NULL strides "
611
605
"and suboffsets::"
612
606
msgstr ""
613
607
614
- #: ../Doc/c-api/buffer.rst:426
608
+ #: ../Doc/c-api/buffer.rst:428
615
609
msgid "Buffer-related functions"
616
610
msgstr "Fonctions relatives aux tampons"
617
611
618
- #: ../Doc/c-api/buffer.rst:430
612
+ #: ../Doc/c-api/buffer.rst:432
619
613
msgid ""
620
614
"Return ``1`` if *obj* supports the buffer interface otherwise ``0``. When "
621
615
"``1`` is returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` "
622
616
"will succeed. This function always succeeds."
623
617
msgstr ""
624
618
625
- #: ../Doc/c-api/buffer.rst:437
619
+ #: ../Doc/c-api/buffer.rst:439
626
620
msgid ""
627
621
"Send a request to *exporter* to fill in *view* as specified by *flags*. If "
628
622
"the exporter cannot provide a buffer of the exact type, it MUST raise :c:"
629
623
"data:`PyExc_BufferError`, set :c:member:`view->obj` to *NULL* and return "
630
624
"``-1``."
631
625
msgstr ""
632
626
633
- #: ../Doc/c-api/buffer.rst:442
627
+ #: ../Doc/c-api/buffer.rst:444
634
628
msgid ""
635
629
"On success, fill in *view*, set :c:member:`view->obj` to a new reference to "
636
630
"*exporter* and return 0. In the case of chained buffer providers that "
@@ -639,81 +633,87 @@ msgid ""
639
633
"<buffer-structs>`)."
640
634
msgstr ""
641
635
642
- #: ../Doc/c-api/buffer.rst:447
636
+ #: ../Doc/c-api/buffer.rst:449
643
637
msgid ""
644
638
"Successful calls to :c:func:`PyObject_GetBuffer` must be paired with calls "
645
639
"to :c:func:`PyBuffer_Release`, similar to :c:func:`malloc` and :c:func:"
646
640
"`free`. Thus, after the consumer is done with the buffer, :c:func:"
647
641
"`PyBuffer_Release` must be called exactly once."
648
642
msgstr ""
649
643
650
- #: ../Doc/c-api/buffer.rst:455
644
+ #: ../Doc/c-api/buffer.rst:457
651
645
msgid ""
652
646
"Release the buffer *view* and decrement the reference count for :c:member:"
653
647
"`view->obj`. This function MUST be called when the buffer is no longer being "
654
648
"used, otherwise reference leaks may occur."
655
649
msgstr ""
656
650
657
- #: ../Doc/c-api/buffer.rst:459
651
+ #: ../Doc/c-api/buffer.rst:461
658
652
msgid ""
659
653
"It is an error to call this function on a buffer that was not obtained via :"
660
654
"c:func:`PyObject_GetBuffer`."
661
655
msgstr ""
662
656
663
- #: ../Doc/c-api/buffer.rst:465
657
+ #: ../Doc/c-api/buffer.rst:467
664
658
msgid ""
665
659
"Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer."
666
660
"format`. This function is not yet implemented."
667
661
msgstr ""
668
662
669
- #: ../Doc/c-api/buffer.rst:471
663
+ #: ../Doc/c-api/buffer.rst:473
670
664
msgid ""
671
665
"Return ``1`` if the memory defined by the *view* is C-style (*order* is "
672
666
"``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either "
673
667
"one (*order* is ``'A'``). Return ``0`` otherwise. This function always "
674
668
"succeeds."
675
669
msgstr ""
676
670
677
- #: ../Doc/c-api/buffer.rst:478
671
+ #: ../Doc/c-api/buffer.rst:480
672
+ msgid ""
673
+ "Get the memory area pointed to by the *indices* inside the given *view*. "
674
+ "*indices* must point to an array of ``view->ndim`` indices."
675
+ msgstr ""
676
+
677
+ #: ../Doc/c-api/buffer.rst:486
678
678
msgid ""
679
679
"Copy *len* bytes from *src* to its contiguous representation in *buf*. "
680
680
"*order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering). "
681
681
"``0`` is returned on success, ``-1`` on error."
682
682
msgstr ""
683
683
684
- #: ../Doc/c-api/buffer.rst:482
684
+ #: ../Doc/c-api/buffer.rst:490
685
685
msgid "This function fails if *len* != *src->len*."
686
686
msgstr ""
687
687
688
- #: ../Doc/c-api/buffer.rst:487
688
+ #: ../Doc/c-api/buffer.rst:495
689
689
msgid ""
690
690
"Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style "
691
691
"if *order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the "
692
692
"given shape with the given number of bytes per element."
693
693
msgstr ""
694
694
695
- #: ../Doc/c-api/buffer.rst:494
695
+ #: ../Doc/c-api/buffer.rst:502
696
696
msgid ""
697
697
"Handle buffer requests for an exporter that wants to expose *buf* of size "
698
698
"*len* with writability set according to *readonly*. *buf* is interpreted as "
699
699
"a sequence of unsigned bytes."
700
700
msgstr ""
701
701
702
- #: ../Doc/c-api/buffer.rst:498
702
+ #: ../Doc/c-api/buffer.rst:506
703
703
msgid ""
704
704
"The *flags* argument indicates the request type. This function always fills "
705
705
"in *view* as specified by flags, unless *buf* has been designated as read-"
706
706
"only and :c:macro:`PyBUF_WRITABLE` is set in *flags*."
707
707
msgstr ""
708
708
709
- #: ../Doc/c-api/buffer.rst:502
709
+ #: ../Doc/c-api/buffer.rst:510
710
710
msgid ""
711
711
"On success, set :c:member:`view->obj` to a new reference to *exporter* and "
712
712
"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set :c:member:`view-"
713
713
">obj` to *NULL* and return ``-1``;"
714
714
msgstr ""
715
715
716
- #: ../Doc/c-api/buffer.rst:506
716
+ #: ../Doc/c-api/buffer.rst:514
717
717
msgid ""
718
718
"If this function is used as part of a :ref:`getbufferproc <buffer-structs>`, "
719
719
"*exporter* MUST be set to the exporting object and *flags* must be passed "
0 commit comments