", line 1, in

[3.8] bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) by miss-islington · Pull Request #22226 · python/cpython (original) (raw)

import tempfile tempfile.TemporaryFile(buffering=None) Traceback (most recent call last): File "", line 1, in File "/home/sergey/tmp/cpython-dev/Lib/tempfile.py", line 607, in TemporaryFile return _io.open(fd, mode, buffering=buffering, TypeError: 'NoneType' object cannot be interpreted as an integer