Message287511
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. |
|
| Date |
User |
Action |
Args |
| 2017-02-10 10:54:17 | vstinner | set | recipients:
+ vstinner, twouters, xdegaye, serhiy.storchaka, yan12125 |
| 2017-02-10 10:54:17 | vstinner | set | messageid: <[email protected]> |
| 2017-02-10 10:54:17 | vstinner | link | issue29176 messages |
| 2017-02-10 10:54:16 | vstinner | create | |
|