mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916)
This commit is contained in:
parent
c5b750dc0b
commit
1735710873
6 changed files with 29 additions and 23 deletions
|
@ -21,10 +21,12 @@ Operating System Utilities
|
|||
|
||||
Return true (nonzero) if the standard I/O file *fp* with name *filename* is
|
||||
deemed interactive. This is the case for files for which ``isatty(fileno(fp))``
|
||||
is true. If the global flag :c:data:`Py_InteractiveFlag` is true, this function
|
||||
is true. If the :c:member:`PyConfig.interactive` is non-zero, this function
|
||||
also returns true if the *filename* pointer is ``NULL`` or if the name is equal to
|
||||
one of the strings ``'<stdin>'`` or ``'???'``.
|
||||
|
||||
This function must not be called before Python is initialized.
|
||||
|
||||
|
||||
.. c:function:: void PyOS_BeforeFork()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue