2016-10-30 09:46:26 +00:00
|
|
|
# SOME DESCRIPTIVE TITLE.
|
|
|
|
# Copyright (C) 2001-2016, Python Software Foundation
|
|
|
|
# This file is distributed under the same license as the Python package.
|
|
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
|
|
#
|
|
|
|
#, fuzzy
|
|
|
|
msgid ""
|
|
|
|
msgstr ""
|
|
|
|
"Project-Id-Version: Python 3.6\n"
|
|
|
|
"Report-Msgid-Bugs-To: \n"
|
2017-04-02 20:14:06 +00:00
|
|
|
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
2017-05-23 22:40:56 +00:00
|
|
|
"Language: fr\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
"MIME-Version: 1.0\n"
|
|
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:4
|
|
|
|
msgid "Old Buffer Protocol"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:8
|
|
|
|
msgid ""
|
|
|
|
"These functions were part of the \"old buffer protocol\" API in Python 2. In "
|
|
|
|
"Python 3, this protocol doesn't exist anymore but the functions are still "
|
|
|
|
"exposed to ease porting 2.x code. They act as a compatibility wrapper "
|
|
|
|
"around the :ref:`new buffer protocol <bufferobjects>`, but they don't give "
|
|
|
|
"you control over the lifetime of the resources acquired when a buffer is "
|
|
|
|
"exported."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:15
|
|
|
|
msgid ""
|
|
|
|
"Therefore, it is recommended that you call :c:func:`PyObject_GetBuffer` (or "
|
|
|
|
"the ``y*`` or ``w*`` :ref:`format codes <arg-parsing>` with the :c:func:"
|
|
|
|
"`PyArg_ParseTuple` family of functions) to get a buffer view over an object, "
|
|
|
|
"and :c:func:`PyBuffer_Release` when the buffer view can be released."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:23
|
|
|
|
msgid ""
|
|
|
|
"Returns a pointer to a read-only memory location usable as character-based "
|
|
|
|
"input. The *obj* argument must support the single-segment character buffer "
|
|
|
|
"interface. On success, returns ``0``, sets *buffer* to the memory location "
|
|
|
|
"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:"
|
|
|
|
"`TypeError` on error."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:32
|
|
|
|
msgid ""
|
|
|
|
"Returns a pointer to a read-only memory location containing arbitrary data. "
|
|
|
|
"The *obj* argument must support the single-segment readable buffer "
|
|
|
|
"interface. On success, returns ``0``, sets *buffer* to the memory location "
|
|
|
|
"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:"
|
|
|
|
"`TypeError` on error."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:41
|
|
|
|
msgid ""
|
|
|
|
"Returns ``1`` if *o* supports the single-segment readable buffer interface. "
|
|
|
|
"Otherwise returns ``0``."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/c-api/objbuffer.rst:47
|
|
|
|
msgid ""
|
|
|
|
"Returns a pointer to a writable memory location. The *obj* argument must "
|
|
|
|
"support the single-segment, character buffer interface. On success, returns "
|
|
|
|
"``0``, sets *buffer* to the memory location and *buffer_len* to the buffer "
|
|
|
|
"length. Returns ``-1`` and sets a :exc:`TypeError` on error."
|
|
|
|
msgstr ""
|