Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/c-api/marshal.rst

    r2 r391  
    2121
    2222
    23 .. cfunction:: void PyMarshal_WriteLongToFile(long value, FILE *file, int version)
     23.. c:function:: void PyMarshal_WriteLongToFile(long value, FILE *file, int version)
    2424
    25    Marshal a :ctype:`long` integer, *value*, to *file*.  This will only write
     25   Marshal a :c:type:`long` integer, *value*, to *file*.  This will only write
    2626   the least-significant 32 bits of *value*; regardless of the size of the
    27    native :ctype:`long` type.
     27   native :c:type:`long` type.
    2828
    2929   .. versionchanged:: 2.4
     
    3131
    3232
    33 .. cfunction:: void PyMarshal_WriteObjectToFile(PyObject *value, FILE *file, int version)
     33.. c:function:: void PyMarshal_WriteObjectToFile(PyObject *value, FILE *file, int version)
    3434
    3535   Marshal a Python object, *value*, to *file*.
     
    3939
    4040
    41 .. cfunction:: PyObject* PyMarshal_WriteObjectToString(PyObject *value, int version)
     41.. c:function:: PyObject* PyMarshal_WriteObjectToString(PyObject *value, int version)
    4242
    4343   Return a string object containing the marshalled representation of *value*.
     
    5656
    5757
    58 .. cfunction:: long PyMarshal_ReadLongFromFile(FILE *file)
     58.. c:function:: long PyMarshal_ReadLongFromFile(FILE *file)
    5959
    60    Return a C :ctype:`long` from the data stream in a :ctype:`FILE\*` opened
     60   Return a C :c:type:`long` from the data stream in a :c:type:`FILE\*` opened
    6161   for reading.  Only a 32-bit value can be read in using this function,
    62    regardless of the native size of :ctype:`long`.
     62   regardless of the native size of :c:type:`long`.
    6363
    6464
    65 .. cfunction:: int PyMarshal_ReadShortFromFile(FILE *file)
     65.. c:function:: int PyMarshal_ReadShortFromFile(FILE *file)
    6666
    67    Return a C :ctype:`short` from the data stream in a :ctype:`FILE\*` opened
     67   Return a C :c:type:`short` from the data stream in a :c:type:`FILE\*` opened
    6868   for reading.  Only a 16-bit value can be read in using this function,
    69    regardless of the native size of :ctype:`short`.
     69   regardless of the native size of :c:type:`short`.
    7070
    7171
    72 .. cfunction:: PyObject* PyMarshal_ReadObjectFromFile(FILE *file)
     72.. c:function:: PyObject* PyMarshal_ReadObjectFromFile(FILE *file)
    7373
    74    Return a Python object from the data stream in a :ctype:`FILE\*` opened for
     74   Return a Python object from the data stream in a :c:type:`FILE\*` opened for
    7575   reading.  On error, sets the appropriate exception (:exc:`EOFError` or
    7676   :exc:`TypeError`) and returns *NULL*.
    7777
    7878
    79 .. cfunction:: PyObject* PyMarshal_ReadLastObjectFromFile(FILE *file)
     79.. c:function:: PyObject* PyMarshal_ReadLastObjectFromFile(FILE *file)
    8080
    81    Return a Python object from the data stream in a :ctype:`FILE\*` opened for
    82    reading.  Unlike :cfunc:`PyMarshal_ReadObjectFromFile`, this function
     81   Return a Python object from the data stream in a :c:type:`FILE\*` opened for
     82   reading.  Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function
    8383   assumes that no further objects will be read from the file, allowing it to
    8484   aggressively load file data into memory so that the de-serialization can
     
    8989
    9090
    91 .. cfunction:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len)
     91.. c:function:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len)
    9292
    9393   Return a Python object from the data stream in a character buffer
     
    9797
    9898   .. versionchanged:: 2.5
    99       This function used an :ctype:`int` type for *len*. This might require
     99      This function used an :c:type:`int` type for *len*. This might require
    100100      changes in your code for properly supporting 64-bit systems.
Note: See TracChangeset for help on using the changeset viewer.