summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22773: fix failing test with old readline versions due to issue #19884.Antoine Pitrou2014-11-041-0/+4
|
* Issue #19884, readline: calling rl_variable_bind ("enable-meta-key", "off")Victor Stinner2014-07-241-1/+5
| | | | does crash on Mac OS X which uses libedit instead of readline.
* Issue #19884: readline: Disable the meta modifier key if stdout is not aVictor Stinner2014-07-241-0/+11
| | | | | | terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit characters.
* Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-3/+2
|\
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-3/+2
| |
* | Issue #20374: mergeNed Deily2014-02-061-1/+0
|\ \ | |/
| * Issue #20374: delete spurious empty lineNed Deily2014-02-061-1/+0
| |
* | Issue #20374: mergeNed Deily2014-02-061-0/+9
|\ \ | |/
| * Issue #20374: Avoid compiler warnings when compiling readline with libedit.Ned Deily2014-02-061-0/+9
| |
* | merge 3.3 (#20374)Benjamin Peterson2014-01-241-4/+4
|\ \ | |/
| * new plan: just remove typecasts (closes #20374)Benjamin Peterson2014-01-241-4/+4
| |
* | merge 3.3 (#20374)Benjamin Peterson2014-01-241-3/+3
|\ \ | |/
| * use new readline function types (closes #20374)Benjamin Peterson2014-01-241-3/+3
| |
* | make char* constChristian Heimes2013-12-041-1/+1
| | | | | | | | | | readline() takes a const char* and the other readline_until_enter_or_signal() implementation already has const char*.
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-2/+2
| |
* | Issue #18458: merge comments from 3.3Ned Deily2013-10-121-3/+3
|\ \ | |/
| * Issue #18458: Prevent crashes with newer versions of libedit. Its readlineNed Deily2013-10-121-15/+25
| | | | | | | | | | emulation has changed from 0-based indexing to 1-based like gnu readline. Original patch by Ronald Oussoren.
* | Close #16742: Fix misuse of memory allocations in PyOS_Readline()Victor Stinner2013-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GIL must be held to call PyMem_Malloc(), whereas PyOS_Readline() releases the GIL to read input. The result of the C callback PyOS_ReadlineFunctionPointer must now be a string allocated by PyMem_RawMalloc() or PyMem_RawRealloc() (or NULL if an error occurred), instead of a string allocated by PyMem_Malloc() or PyMem_Realloc(). Fixing this issue was required to setup a hook on PyMem_Malloc(), for example using the tracemalloc module. PyOS_Readline() copies the result of PyOS_ReadlineFunctionPointer() into a new buffer allocated by PyMem_Malloc(). So the public API of PyOS_Readline() does not change.
* | Issue #18458: Prevent crashes with newer versions of libedit. Its readlineNed Deily2013-09-061-12/+22
| | | | | | | | | | emulation has changed from 0-based indexing to 1-based like gnu readline. Original patch by Ronald Oussoren.
* | Issue #15699: The readline module now uses PEP 3121-style module ↵Antoine Pitrou2013-07-311-42/+110
| | | | | | | | | | | | initialization, so as to reclaim allocated resources (Python callbacks) at shutdown. Original patch by Robin Schreiber.
* | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-2/+2
| | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* | Issue #17289: The readline module now plays nicer with external modules or ↵Antoine Pitrou2013-05-061-7/+18
|\ \ | |/ | | | | | | | | applications changing the rl_completer_word_break_characters global variable. Initial patch by Bradley Froehle.
| * Issue #17289: The readline module now plays nicer with external modules or ↵Antoine Pitrou2013-05-061-7/+18
| | | | | | | | | | | | applications changing the rl_completer_word_break_characters global variable. Initial patch by Bradley Froehle.
* | Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-1/+1
|\ \ | |/ | | | | readline use.
| * Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-1/+1
| |\ | | | | | | | | | readline use.
| | * Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-1/+1
| | | | | | | | | | | | readline use.
* | | Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.Nadeem Vawda2013-01-271-1/+1
|\ \ \ | |/ / | | | | | | | | | Also fix sporadic failures in test_builtin due to dependence on whether the readline module has previously been imported.
| * | Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.Nadeem Vawda2013-01-271-1/+1
| |\ \ | | |/ | | | | | | | | | Also fix sporadic failures in test_builtin due to dependence on whether the readline module has previously been imported.
| | * Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.Nadeem Vawda2013-01-271-1/+1
| | | | | | | | | | | | | | | Also fix sporadic failures in test_builtin due to dependence on whether the readline module has previously been imported.
* | | #16135: Removal of OS/2 support (Modules/*)Jesus Cea2012-10-051-4/+0
|/ /
* | Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-5/+8
|\ \ | |/ | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
| * Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-5/+8
| | | | | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
* | Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead ofVictor Stinner2011-03-211-7/+6
|/ | | | | PyOS_snprintf() to avoid temporary buffer allocated on the stack and a conversion from bytes to Unicode.
* #9907: call rl_initialize early when using editline on OSXR. David Murray2010-12-181-2/+15
| | | | | | | | | | editline rl_initialize apparently discards any mappings done before it is called, which makes tab revert to file completion instead of inserting a tab. So now on OSX we call rl_initialize first if we are using readline, and then re-read the users .editrc (if any) afterward so they can still override our defaults. Patch by Ned Deily, modified by Ronald Oussoren.
* Fix Issue 10307 - compile error in readline.cSenthil Kumaran2010-11-041-1/+1
|
* Fix compiler warning about unused static function.Georg Brandl2010-10-181-1/+4
|
* Under OS X, history_get from readline returns a const char *, but the localBrett Cannon2010-08-221-3/+3
| | | | | | | variable the return value is assigned to is char *. Since the assigned-to variable is never changed, simply make that a const char * and cast all calls to get_history to const char * to silence the compiler warning (found with LLVM).
* Issue #8065: Fix another memory leak in readline module, from failure to freeMark Dickinson2010-08-031-19/+26
| | | | the result of a call to history_get_history_state.
* Issue #9450: Fix memory leaks in readline.remove/replace_history_entry.Mark Dickinson2010-08-031-12/+34
|
* readline: use PyUnicode_FSConverter() to parse filenamesVictor Stinner2010-06-111-10/+32
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-520/+520
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 78148 via svnmerge fromRonald Oussoren2010-02-111-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78148 | ronald.oussoren | 2010-02-11 14:13:08 +0100 (Thu, 11 Feb 2010) | 3 lines Add guard around the prototype for completion_matches to enable compilition with libedit on OSX 10.5 ........
* Merged revisions 75725 via svnmerge fromAntoine Pitrou2009-10-261-0/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75725 | antoine.pitrou | 2009-10-26 20:16:46 +0100 (lun., 26 oct. 2009) | 4 lines Some platforms have rl_completion_append_character but not rl_completion_suppress_append. Reported by Mark D. ........
* Merged revisions 75531-75532 via svnmerge fromAntoine Pitrou2009-10-191-3/+4
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75531 | antoine.pitrou | 2009-10-19 20:17:18 +0200 (lun., 19 oct. 2009) | 4 lines Issue #5833: Fix extra space character in readline completion with the GNU readline library version 6.0. ........ r75532 | antoine.pitrou | 2009-10-19 20:20:21 +0200 (lun., 19 oct. 2009) | 3 lines NEWS entry for r75531. ........
* Merged revisions 74970 via svnmerge fromRonald Oussoren2009-09-201-0/+69
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74970 | ronald.oussoren | 2009-09-20 16:18:15 +0200 (Sun, 20 Sep 2009) | 7 lines Issue 6877: this patch makes it possible to link the readline extension to the libedit emulation of the readline API on OSX 10.5 or later. This also adds a minimal testsuite for readline to check that the history manipuation functions have the same interface with both C libraries. ........
* Merged revisions 71229,71271 via svnmerge fromMatthias Klose2009-04-071-2/+2
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71229 | matthias.klose | 2009-04-05 14:43:08 +0200 (So, 05 Apr 2009) | 3 lines - Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings. (avoiding brown paper typo this time) ........ r71271 | matthias.klose | 2009-04-05 23:19:13 +0200 (So, 05 Apr 2009) | 3 lines Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)' to avoid compiler warnings. ........
* Merged revisions 67098 via svnmerge fromMartin v. Löwis2008-11-041-0/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r67098 | martin.v.loewis | 2008-11-04 21:40:09 +0100 (Di, 04 Nov 2008) | 2 lines Issue #4204: Fixed module build errors on FreeBSD 4. ........
* Rename PyUnicode_AsString -> _PyUnicode_AsString andMarc-André Lemburg2008-08-071-1/+1
| | | | | | | | | PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-4/+17
|
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-9/+9
| | | | in intobject.h