➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 martin.panter
收信人 abarry, martin.panter, python-dev, serhiy.storchaka, vstinner
日期 2016-04-24.06:22:13
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1461478933.6.0.447080142935.issue26801@psf.upfronthosting.co.za>
In-reply-to
内容
How about:

try:
    size = os.get_terminal_size(sys.__stdout__.fileno())
except (AttributeError, ValueError, OSError):
    # stdout is None, closed, detached, or not a terminal, or
    # os.get_terminal_size() is unsupported
    size = os.terminal_size(fallback)
历史
日期 用户 动作 参数
2016-04-24 06:22:13martin.panter修改recipients: + martin.panter, vstinner, python-dev, serhiy.storchaka, abarry
2016-04-24 06:22:13martin.panter修改messageid: <1461478933.6.0.447080142935.issue26801@psf.upfronthosting.co.za>
2016-04-24 06:22:13martin.panter链接issue26801 messages
2016-04-24 06:22:13martin.panter创建