Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

modthread.c

Blame
    • David Lechner's avatar
      62849b70
      py: Add config option to print warnings/errors to stderr. · 62849b70
      David Lechner authored
      This adds a new configuration option to print runtime warnings and errors to
      stderr. On Unix, CPython prints warnings and unhandled exceptions to stderr,
      so the unix port here is configured to use this option.
      
      The unix port already printed unhandled exceptions on the main thread to
      stderr. This patch fixes unhandled exceptions on other threads and warnings
      (issue #2838) not printing on stderr.
      
      Additionally, a couple tests needed to be fixed to handle this new behavior.
      This is done by also capturing stderr when running tests.
      62849b70
      History
      py: Add config option to print warnings/errors to stderr.
      David Lechner authored
      This adds a new configuration option to print runtime warnings and errors to
      stderr. On Unix, CPython prints warnings and unhandled exceptions to stderr,
      so the unix port here is configured to use this option.
      
      The unix port already printed unhandled exceptions on the main thread to
      stderr. This patch fixes unhandled exceptions on other threads and warnings
      (issue #2838) not printing on stderr.
      
      Additionally, a couple tests needed to be fixed to handle this new behavior.
      This is done by also capturing stderr when running tests.