Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • pygolang pygolang
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Boxiang Sun
  • pygolangpygolang
  • Repository
You need to sign in or sign up before continuing.
  • pygolang
  • gpython
  • __init__.py
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    gpython: Fix interactive mode to use stdout or stderr depending on what is a tty · 95c7cce9
    Kirill Smelkov authored Apr 06, 2021
    To match python behaviour:
    
        $ python >/dev/null
        Python 2.7.18 (default, Apr 20 2020, 20:30:41)
        [GCC 9.3.0] on linux2
        Type "help", "copyright", "credits" or "license" for more information.
        >>> 1+1			# NOTE the prompt (printed to stderr)
    
        $ python 2>/dev/null
        >>> 1+1			# NOTE the prompt (printed to stdout)
    
    Tests pending.
    
    /reviewed-by @jerome
    /reviewed-on !15
    95c7cce9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7