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.

Author vstinner
Recipients serhiy.storchaka, twouters, vstinner, xdegaye, yan12125
Date 2017-02-10.10:54:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
curses_temporaryfile.patch: Call tempfile.TemporaryFile in getwin() and putwin() to create the temporary file in a more portable and safer manner.

The curses library requires a FILE* object, but TemporaryFile.close() must be called to remove the temporary file. So I chose to duplicate the file descriptor, so we can close fclose() and tmpfile.close().

I chose to modify the C rather rather than trying to implement a window class in Python, because the C window class is part of a "PyCurses_API", and many C functions instanciate the C class.
History
Date User Action Args
2017-02-10 10:54:17vstinnersetrecipients: + vstinner, twouters, xdegaye, serhiy.storchaka, yan12125
2017-02-10 10:54:17vstinnersetmessageid: <[email protected]>
2017-02-10 10:54:17vstinnerlinkissue29176 messages
2017-02-10 10:54:16vstinnercreate