@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.7\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2019-01-01 10:14+0900 \n "
17+ "POT-Creation-Date : 2019-07-18 02:57+0000 \n "
1818"PO-Revision-Date : 2017-02-16 17:33+0000\n "
1919"Last-Translator : felipe caridade <caridade500@gmail.com>, 2019\n "
2020"Language-Team : Portuguese (Brazil) (https://www.transifex.com/python-doc/ "
@@ -686,24 +686,18 @@ msgid ""
686686"dimensional array as follows:"
687687msgstr ""
688688
689- #: ../../c-api/buffer.rst:358
690- msgid ""
691- "``ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
692- "strides[n-1]`` ``item = *((typeof(item) *)ptr);``"
693- msgstr ""
694-
695- #: ../../c-api/buffer.rst:362
689+ #: ../../c-api/buffer.rst:364
696690msgid ""
697691"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
698692"the actual memory block. An exporter can check the validity of a buffer with "
699693"this function:"
700694msgstr ""
701695
702- #: ../../c-api/buffer.rst:396
696+ #: ../../c-api/buffer.rst:398
703697msgid "PIL-style: shape, strides and suboffsets"
704698msgstr ""
705699
706- #: ../../c-api/buffer.rst:398
700+ #: ../../c-api/buffer.rst:400
707701msgid ""
708702"In addition to the regular items, PIL-style arrays can contain pointers that "
709703"must be followed in order to get to the next element in a dimension. For "
@@ -714,33 +708,33 @@ msgid ""
714708"x[2][3]`` arrays that can be located anywhere in memory."
715709msgstr ""
716710
717- #: ../../c-api/buffer.rst:407
711+ #: ../../c-api/buffer.rst:409
718712msgid ""
719713"Here is a function that returns a pointer to the element in an N-D array "
720714"pointed to by an N-dimensional index when there are both non-NULL strides "
721715"and suboffsets::"
722716msgstr ""
723717
724- #: ../../c-api/buffer.rst:426
718+ #: ../../c-api/buffer.rst:428
725719msgid "Buffer-related functions"
726720msgstr ""
727721
728- #: ../../c-api/buffer.rst:430
722+ #: ../../c-api/buffer.rst:432
729723msgid ""
730724"Return ``1`` if *obj* supports the buffer interface otherwise ``0``. When "
731725"``1`` is returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` "
732726"will succeed. This function always succeeds."
733727msgstr ""
734728
735- #: ../../c-api/buffer.rst:437
729+ #: ../../c-api/buffer.rst:439
736730msgid ""
737731"Send a request to *exporter* to fill in *view* as specified by *flags*. If "
738732"the exporter cannot provide a buffer of the exact type, it MUST raise :c:"
739733"data:`PyExc_BufferError`, set :c:member:`view->obj` to *NULL* and return "
740734"``-1``."
741735msgstr ""
742736
743- #: ../../c-api/buffer.rst:442
737+ #: ../../c-api/buffer.rst:444
744738msgid ""
745739"On success, fill in *view*, set :c:member:`view->obj` to a new reference to "
746740"*exporter* and return 0. In the case of chained buffer providers that "
@@ -749,81 +743,81 @@ msgid ""
749743"<buffer-structs>`)."
750744msgstr ""
751745
752- #: ../../c-api/buffer.rst:447
746+ #: ../../c-api/buffer.rst:449
753747msgid ""
754748"Successful calls to :c:func:`PyObject_GetBuffer` must be paired with calls "
755749"to :c:func:`PyBuffer_Release`, similar to :c:func:`malloc` and :c:func:"
756750"`free`. Thus, after the consumer is done with the buffer, :c:func:"
757751"`PyBuffer_Release` must be called exactly once."
758752msgstr ""
759753
760- #: ../../c-api/buffer.rst:455
754+ #: ../../c-api/buffer.rst:457
761755msgid ""
762756"Release the buffer *view* and decrement the reference count for :c:member:"
763757"`view->obj`. This function MUST be called when the buffer is no longer being "
764758"used, otherwise reference leaks may occur."
765759msgstr ""
766760
767- #: ../../c-api/buffer.rst:459
761+ #: ../../c-api/buffer.rst:461
768762msgid ""
769763"It is an error to call this function on a buffer that was not obtained via :"
770764"c:func:`PyObject_GetBuffer`."
771765msgstr ""
772766
773- #: ../../c-api/buffer.rst:465
767+ #: ../../c-api/buffer.rst:467
774768msgid ""
775769"Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer."
776770"format`. This function is not yet implemented."
777771msgstr ""
778772
779- #: ../../c-api/buffer.rst:471
773+ #: ../../c-api/buffer.rst:473
780774msgid ""
781775"Return ``1`` if the memory defined by the *view* is C-style (*order* is "
782776"``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either "
783777"one (*order* is ``'A'``). Return ``0`` otherwise. This function always "
784778"succeeds."
785779msgstr ""
786780
787- #: ../../c-api/buffer.rst:478
781+ #: ../../c-api/buffer.rst:480
788782msgid ""
789783"Copy *len* bytes from *src* to its contiguous representation in *buf*. "
790784"*order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering). "
791785"``0`` is returned on success, ``-1`` on error."
792786msgstr ""
793787
794- #: ../../c-api/buffer.rst:482
788+ #: ../../c-api/buffer.rst:484
795789msgid "This function fails if *len* != *src->len*."
796790msgstr ""
797791
798- #: ../../c-api/buffer.rst:487
792+ #: ../../c-api/buffer.rst:489
799793msgid ""
800794"Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style "
801795"if *order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the "
802796"given shape with the given number of bytes per element."
803797msgstr ""
804798
805- #: ../../c-api/buffer.rst:494
799+ #: ../../c-api/buffer.rst:496
806800msgid ""
807801"Handle buffer requests for an exporter that wants to expose *buf* of size "
808802"*len* with writability set according to *readonly*. *buf* is interpreted as "
809803"a sequence of unsigned bytes."
810804msgstr ""
811805
812- #: ../../c-api/buffer.rst:498
806+ #: ../../c-api/buffer.rst:500
813807msgid ""
814808"The *flags* argument indicates the request type. This function always fills "
815809"in *view* as specified by flags, unless *buf* has been designated as read-"
816810"only and :c:macro:`PyBUF_WRITABLE` is set in *flags*."
817811msgstr ""
818812
819- #: ../../c-api/buffer.rst:502
813+ #: ../../c-api/buffer.rst:504
820814msgid ""
821815"On success, set :c:member:`view->obj` to a new reference to *exporter* and "
822816"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set :c:member:`view-"
823817">obj` to *NULL* and return ``-1``;"
824818msgstr ""
825819
826- #: ../../c-api/buffer.rst:506
820+ #: ../../c-api/buffer.rst:508
827821msgid ""
828822"If this function is used as part of a :ref:`getbufferproc <buffer-structs>`, "
829823"*exporter* MUST be set to the exporting object and *flags* must be passed "
0 commit comments