Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Only include update_lines_cols() function when it's actually going to be used | Andrew M. Kuchling | 2008-06-19 | 1 | -0/+2 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -18/+18 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -18/+18 |
| | |||||
* | #1940: make it possible to use curses.filter() before curses.initscr() | Georg Brandl | 2008-01-26 | 1 | -1/+10 |
| | | | | as the documentation says. | ||||
* | Related to patch #1114: fix another place where attr_t is assumed to be a long | Andrew M. Kuchling | 2008-01-09 | 1 | -4/+9 |
| | |||||
* | Patch 1114: fix compilation of curses module on 64-bit AIX, and any other ↵ | Andrew M. Kuchling | 2008-01-08 | 1 | -25/+79 |
| | | | | LP64 platforms where attr_t isn't a C long | ||||
* | Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵ | Christian Heimes | 2008-01-03 | 1 | -1/+1 |
| | | | | | | imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports | ||||
* | #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵ | Christian Heimes | 2007-12-19 | 1 | -1/+1 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -3/+2 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | Stop using METH_OLDARGS implicitly | Neal Norwitz | 2007-05-22 | 1 | -2/+2 |
| | |||||
* | Point readers at the patch submission instructions | Andrew M. Kuchling | 2007-04-11 | 1 | -3/+6 |
| | |||||
* | Add window.chgat() method, submitted via e-mail by Fabian Kreutz | Andrew M. Kuchling | 2007-04-11 | 1 | -4/+55 |
| | |||||
* | Patch for bug #1633621: if curses.resizeterm() or | Walter Dörwald | 2007-03-06 | 1 | -2/+62 |
| | | | | | curses.resize_term() is called, update _curses.LINES, _curses.COLS, curses.LINES and curses.COLS. | ||||
* | Bug #1548092: fix curses.tparm seg fault on invalid input. Needs backport ↵ | Neal Norwitz | 2006-09-02 | 1 | -0/+4 |
| | | | | to 2.5.1 and earlier. | ||||
* | Handle failure from PyModule_GetDict() (Klocwork 208). | Neal Norwitz | 2006-08-13 | 1 | -9/+15 |
| | | | | | Fix a bunch of refleaks in the init of the module. This would only be found when running python -v. | ||||
* | Correct error message | Andrew M. Kuchling | 2006-07-26 | 1 | -1/+1 |
| | |||||
* | [Bug #1471938] Fix build problem on Solaris 8 by conditionalizing the use of ↵ | Andrew M. Kuchling | 2006-07-26 | 1 | -2/+5 |
| | | | | mvwgetnstr(); it was conditionalized a few lines below. Fix from Paul Eggert. I also tried out the STRICT_SYSV_CURSES case and am therefore removing the 'untested' comment. | ||||
* | Patch #1506645: add Python wrappers for the curses functions | Walter Dörwald | 2006-06-19 | 1 | -1/+66 |
| | | | | | is_term_resized, resize_term and resizeterm. This uses three separate configure checks (one for each function). | ||||
* | Revert backwards-incompatible const changes. | Martin v. Löwis | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | SF bug #1400822, Extended version of _curses over{lay,write} does not work | Neal Norwitz | 2006-01-10 | 1 | -3/+3 |
| | | | | | | Fix signatures to conform to doc (also fixed ungetmouse()). Will backport. | ||||
* | Add const to several API functions that take char *. | Jeremy Hylton | 2005-12-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *. | ||||
* | Fix check for error condition | Andrew M. Kuchling | 2005-06-15 | 1 | -1/+1 |
| | |||||
* | [Bug #1200134] Fix buffer overflow by constraining size of .getstr(), ↵ | Andrew M. Kuchling | 2005-06-09 | 1 | -9/+13 |
| | | | | .instr() to size of allocated buffer | ||||
* | Fix a leak of a reference on None. | Michael W. Hudson | 2004-08-04 | 1 | -3/+1 |
| | |||||
* | [Patch #739124] Add use_default_colors() to curses module | Andrew M. Kuchling | 2003-08-13 | 1 | -1/+24 |
| | |||||
* | Always call tparm with 10 arguments. It seems it's not varargs i | Michael W. Hudson | 2002-11-21 | 1 | -43/+3 |
| | | | | | | | | more often than it is. In response to bug: [ 641808 ] Portability of Modules/_cursesmodule.c submitted by Nick Mclaren. | ||||
* | [Patch #633635 from David M. Cooke] | Andrew M. Kuchling | 2002-11-06 | 1 | -6/+14 |
| | | | | | | Make keyname raise ValueError if passed -1, avoiding a segfault Make getkey() match the docs and raise an exception in nodelay mode The return type of getch() is int, not chtype | ||||
* | Use personal e-mail address | Andrew M. Kuchling | 2002-10-30 | 1 | -2/+1 |
| | |||||
* | Remove duplicate definitions of _XOPEN_SOURCE_EXTENDED. | Martin v. Löwis | 2002-10-26 | 1 | -2/+0 |
| | |||||
* | Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2. | Martin v. Löwis | 2002-09-30 | 1 | -1/+1 |
| | |||||
* | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | I think this fixes | Michael W. Hudson | 2002-01-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | [ #510644 ] test_curses segfaults If we use the *object* *allocator*, we should use the *object* *deallocator*, not the *raw memory* deallocator (confused yet?). I think this was what caused segfaults when pymalloc was enabled. Even if it wasn't the cause, it's still wrong. 2.2.1 candidate. | ||||
* | Patch #477752: Drop old-style getargs from curses. | Martin v. Löwis | 2002-01-17 | 1 | -331/+286 |
| | |||||
* | Change some spaces to tabs. I don't *think* that was me, but it | Michael W. Hudson | 2002-01-16 | 1 | -2/+2 |
| | | | | might have been... | ||||
* | Fix for | Michael W. Hudson | 2002-01-16 | 1 | -8/+8 |
| | | | | | | | [ #504284 ] Last build problems on AIX I'm ignoring the suggestion that this should be an autoconf test in the interests of having a fix today. Feel free to quibble. | ||||
* | Patch supplied by Burton Radons for his own SF bug #487390: Modifying | Guido van Rossum | 2001-12-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment. | ||||
* | Limit string size on one-character-strings. Fixes #480384. | Martin v. Löwis | 2001-11-11 | 1 | -2/+2 |
| | |||||
* | Patch in bug report #477700: Fix memory leaks in gdbm & curses. | Martin v. Löwis | 2001-11-11 | 1 | -0/+1 |
| | |||||
* | Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and | Martin v. Löwis | 2001-10-24 | 1 | -7/+40 |
| | | | | | | STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize access to _flags on systems where WINDOW is opaque. Fixes bugs #432497, #422265, and the curses parts of #467145 and #473150. | ||||
* | Add two forgotten 'break' statements | Andrew M. Kuchling | 2001-10-20 | 1 | -15/+40 |
| | | | | | | | | Allow passing strings to the .border() method Correct some error messages ("1 or 4" -> "1 to 4") Bump version number Tweak code formatting Update my e-mail address | ||||
* | Test for __sun instead of __sun__, since SUNWspro only defines the latter; | Martin v. Löwis | 2001-10-13 | 1 | -1/+1 |
| | | | | gcc defines both. | ||||
* | [Bug #457654] bkgd() used a hard-coded A_NORMAL attribute, when it should | Andrew M. Kuchling | 2001-09-04 | 1 | -1/+1 |
| | | | | have used the attribute argument provided as a parameter | ||||
* | Remove warnings from the SGI compiler. | Fred Drake | 2001-07-19 | 1 | -6/+3 |
| | | | | This is part of SF patch #434992. | ||||
* | Fix bug #417212: "curses.newwin can return pads" by changing the Python | Andrew M. Kuchling | 2001-07-14 | 1 | -3/+2 |
| | | | | | newwin() wrapper to always return a window, and never a pad. This makes the code match the documentation. | ||||
* | Properly use &&. Closes bug #434988. | Martin v. Löwis | 2001-06-23 | 1 | -2/+2 |
| | |||||
* | Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED. | Guido van Rossum | 2001-04-10 | 1 | -2/+3 |
| | | | | | | Michael Hudson suggested this fox for the Tru64 problem (SF bug 232597). It looks reasonable, it works on Tru64, and it doesn't beak anything on Linux, so I say go for it. | ||||
* | Patch #103485 from Donn Cave: patches to make the module compile on AIX and | Andrew M. Kuchling | 2001-01-29 | 1 | -0/+36 |
| | | | | NetBSD | ||||
* | Rename 'lines' variable to 'nlines' to avoid conflict with a macro defined | Andrew M. Kuchling | 2001-01-29 | 1 | -7/+7 |
| | | | | in term.h | ||||
* | Bug #130117: add a prototype required to compile cleanly on IRIX | Andrew M. Kuchling | 2001-01-28 | 1 | -0/+1 |
| | | | | (contributed by Paul Jackson) |