Yes. It uses the underlying close()
function which does that for you (source).
More Related Contents:
- How can I flush the output of the print function (unbuffer python output)?
- How often does python flush to a file?
- How can I flush the output of the print function?
- How to prevent BrokenPipeError when doing a flush in Python?
- Does python logging flush every log?
- Combine two columns of text in pandas dataframe
- How to read specific lines from a file (by line number)?
- Python Ctypes – loading dll throws OSError: [WinError 193] %1 is not a valid Win32 application
- Creating a list of dictionaries results in a list of copies of the same dictionary
- Why do some functions have underscores “__” before and after the function name?
- How do I remove leading whitespace in Python?
- custom matplotlib plot : chess board like table with colored cells
- nltk doesn’t add $NLTK_DATA to search path?
- Get the title of a window of another program using the process name
- How do you plot a vertical line on a time series plot in Pandas?
- why does pandas rolling use single dimension ndarray
- Import python package from local directory into interpreter
- How to fake/proxy a class in Python
- Triple inheritance causes metaclass conflict… Sometimes
- Python: Getting a traceback from a multiprocessing.Process
- Run custom task when call `pip install`
- Are list comprehensions syntactic sugar for `list(generator expression)` in Python 3?
- Python and ctypes: how to correctly pass “pointer-to-pointer” into DLL?
- How to annotate grouped bar plot with percent by hue/legend group
- Python functools.wraps equivalent for classes
- Same name for classmethod and instancemethod
- UnicodeDecodeError when reading CSV file in Pandas
- First and last row cut in half of heatmap plot
- Run manage.py from AWS EB Linux instance
- How to perform filtering with a Django JSONField?