Author perey
Recipients docs@python, perey
Date 2014-03-25.09:36:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The docs are contradictory on whether or not contextlib.redirect_stdout is reentrant, or reusable-but-not-reentrant. This would seem to be an oversight from issue19403, which probably should have changed "reusable but not reentrant" to "reentrant".

Present in both current and upcoming docs:

  This context manager is reusable but not reentrant. Reentrant context managers
  threading.RLock is an example of a reentrant context manager, as are suppress() and redirect_stdout().
  Note also that being reentrant is not the same thing as being thread safe. redirect_stdout(), for example...
Date User Action Args
2014-03-25 09:36:06pereysetrecipients: + perey, docs@python
2014-03-25 09:36:06pereysetmessageid: <>
2014-03-25 09:36:05pereylinkissue21061 messages
2014-03-25 09:36:05pereycreate