[docs] Clarity for curses.wrapper

Tj Barclay barclata at gmail.com
Fri Oct 20 02:20:27 EDT 2017

MAJOR DISCLAIMER: I'm 7.4ish beers deep

In the documentation for the curses library of Python 3.6 it mentions that
curses.wrapper(*function*) will do some common curses initializations
before running *function*. Then it will run *function* waiting for a thrown
exception or the end before doing some cleanup. It does not however
explicitly state that the return value of curses.initscr() is passed into
that function. It is only implicitly shown through the code example.

For the sake of future drunk programmers, please make that more clear.

I super understand this is stupid and minor and I could be mistaken (SEE


TJ Barclay
Electrcial Engineering &Computer Science, University of Kansas
tjbarclay at ku.edu
+1 316 259 2250
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20171020/bf58a089/attachment.html>

More information about the docs mailing list