Compare commits
5 Commits
aef482f7cf
...
ed4614386f
Author | SHA1 | Date |
---|---|---|
Miss Islington (bot) | ed4614386f | |
Benjamin Peterson | 0955f6863d | |
Miss Islington (bot) | d33f3347de | |
Miss Islington (bot) | ae48dd4db5 | |
Miss Islington (bot) | 4a44f53aa8 |
|
@ -132,7 +132,7 @@ jobs:
|
|||
run: sudo ./.github/workflows/posix-deps-apt.sh
|
||||
- name: 'Restore OpenSSL build'
|
||||
id: cache-openssl
|
||||
uses: actions/cache@v2.1.2
|
||||
uses: actions/cache@v2.1.3
|
||||
with:
|
||||
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
||||
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
||||
|
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: sudo ./.github/workflows/posix-deps-apt.sh
|
||||
- name: 'Restore OpenSSL build'
|
||||
id: cache-openssl
|
||||
uses: actions/cache@v2.1.2
|
||||
uses: actions/cache@v2.1.3
|
||||
with:
|
||||
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
|
||||
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
|
||||
|
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
- name: 'Build documentation'
|
||||
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest suspicious html
|
||||
- name: 'Upload'
|
||||
uses: actions/upload-artifact@v2.2.0
|
||||
uses: actions/upload-artifact@v2.2.1
|
||||
with:
|
||||
name: doc-html
|
||||
path: Doc/build/html
|
||||
|
|
|
@ -329,11 +329,16 @@ equivalent :keyword:`try`\ -\ :keyword:`finally` blocks::
|
|||
|
||||
If you're not using the :keyword:`with` keyword, then you should call
|
||||
``f.close()`` to close the file and immediately free up any system
|
||||
resources used by it. If you don't explicitly close a file, Python's
|
||||
garbage collector will eventually destroy the object and close the
|
||||
open file for you, but the file may stay open for a while. Another
|
||||
risk is that different Python implementations will do this clean-up at
|
||||
different times.
|
||||
resources used by it.
|
||||
|
||||
.. warning::
|
||||
Calling ``f.write()`` without using the :keyword:`!with` keyword or calling
|
||||
``f.close()`` **might** result in the arguments
|
||||
of ``f.write()`` not being completely written to the disk, even if the
|
||||
program exits successfully.
|
||||
|
||||
..
|
||||
See also https://bugs.python.org/issue17852
|
||||
|
||||
After a file object is closed, either by a :keyword:`with` statement
|
||||
or by calling ``f.close()``, attempts to use the file object will
|
||||
|
|
|
@ -2113,9 +2113,6 @@ Changes in the C API
|
|||
|
||||
(Contributed by Antoine Pitrou in :issue:`32388`.)
|
||||
|
||||
* The :c:func:`PyCode_New` has a new parameter in the second position (*posonlyargcount*)
|
||||
to support :pep:`570`, indicating the number of positional-only arguments.
|
||||
|
||||
* The functions :c:func:`PyNode_AddChild` and :c:func:`PyParser_AddToken` now accept
|
||||
two additional ``int`` arguments *end_lineno* and *end_col_offset*.
|
||||
|
||||
|
|
|
@ -426,15 +426,22 @@ CThunkObject *_ctypes_alloc_callback(PyObject *callable,
|
|||
PyErr_Format(PyExc_NotImplementedError, "ffi_prep_closure_loc() is missing");
|
||||
goto error;
|
||||
#else
|
||||
#ifdef MACOSX
|
||||
#if defined(__clang__) || defined(MACOSX)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
result = ffi_prep_closure(p->pcl_write, &p->cif, closure_fcn, p);
|
||||
|
||||
#ifdef MACOSX
|
||||
#if defined(__clang__) || defined(MACOSX)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue