Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix CID-1414686: PyInit_readline() handles errors (#4647) | Victor Stinner | 2017-11-30 | 1 | -4/+18 |
| | | | | | | | | | | | | Handle PyModule_AddIntConstant() and PyModule_AddStringConstant() failures. Add also constants before calling setup_readline(), since setup_readline() registers callbacks which uses a reference to the module, whereas the module is destroyed if adding constants fails. Fix Coverity warning: CID 1414686: Unchecked return value (CHECKED_RETURN) 2. check_return: Calling PyModule_AddStringConstant without checking return value (as is done elsewhere 45 out of 55 times). | ||||
* | bpo-28180: Fix the implementation of PEP 538 on Android (GH-4334) | xdegaye | 2017-11-12 | 1 | -1/+1 |
| | |||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -24/+0 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | bpo-30946: Remove obsolete fallback code in readline module (#2738) | Antoine Pitrou | 2017-07-18 | 1 | -46/+1 |
| | | | | | | | | | | * Remove obsolete fallback code in readline module * Add NEWS * Remove obsolete include * Fix macro on Windows | ||||
* | bpo-29854: test_readline logs versions (#2619) | Victor Stinner | 2017-07-07 | 1 | -0/+1 |
| | | | | | * test_readline logs the versions of libreadline when run in verbose mode * Add also readline._READLINE_LIBRARY_VERSION | ||||
* | bpo-29854: Fix segfault in call_readline() (GH-728) | Nir Soffer | 2017-07-07 | 1 | -4/+6 |
| | | | | | | | | | | | | | If history-length is set in .inputrc, and the history file is double the history size (or more), history_get(N) returns NULL, and python segfaults. Fix that by checking for NULL return value. It seems that the root cause is incorrect handling of bigger history in readline, but Python should not segfault even if readline returns unexpected value. This issue affects only GNU readline. When using libedit emulation system history size option does not work. | ||||
* | bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051) | Serhiy Storchaka | 2017-04-16 | 1 | -4/+4 |
| | |||||
* | Replace PyObject_CallFunction() with fastcall | Victor Stinner | 2016-12-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | Replace PyObject_CallFunction(func, "O", arg) and PyObject_CallFunction(func, "O", arg, NULL) with _PyObject_CallArg1(func, arg) Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func) _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. | ||||
* | merge 3.5 | Benjamin Peterson | 2016-09-06 | 1 | -1/+1 |
|\ | |||||
| * | explicitly cast away constness to silence compiler warning | Benjamin Peterson | 2016-09-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #19884: Merge Readline updates from 3.5 | Martin Panter | 2016-08-27 | 1 | -12/+15 |
|\ \ | |/ | |||||
| * | Issue #19884: Avoid spurious output on OS X with Gnu Readline | Martin Panter | 2016-08-27 | 1 | -12/+15 |
| | | | | | | | | | | Also adjust the test condition, because enable-meta-key was only added in 6.1, not 6.0. | ||||
* | | Issue #16182: Merge readline locale fix from 3.5 | Martin Panter | 2016-06-14 | 1 | -38/+94 |
|\ \ | |/ | |||||
| * | Issue #16182: Fix readline begidx, endidx, and use locale encoding | Martin Panter | 2016-06-14 | 1 | -38/+94 |
| | | | | | | | | Based on patch by Serhiy Storchaka. | ||||
* | | Issue #27171: Merge typo fixes from 3.5 | Martin Panter | 2016-06-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | | |||||
* | | Issue #26870: Add readline.set_auto_history(), originally by Tyler Crompton | Martin Panter | 2016-05-15 | 1 | -1/+20 |
| | | |||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
* | | Issue #6953: Merge readline doc from 3.5 | Martin Panter | 2016-04-05 | 1 | -16/+16 |
|\ \ | |/ | |||||
| * | Issue #6953: Rearrange and expand Readline module documentation | Martin Panter | 2016-04-05 | 1 | -16/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Group functions into six new subsections * Document the underlying Readline function or variable accessed * get_history_length() returns the history file limit * clear_history() is conditionally compiled in * Clarify zero and one bases for history item indexes * parse_and_bind() uses its argument directly as an init line * Change "command line" to "line buffer" for consistency * read_init_file() also executes the file * read_history_file() replaces the previous history * write_history_file() overwrites any existing file * Differentiate history file lines from history list items, which could be multi-line * Add more information about completion, also addressing Issue #10796 * libedit (Editline) may be used on any platform; detection is OS X specific | ||||
* | | Issue #23735: Merge sighandler_t fix from 3.5 | Martin Panter | 2016-04-03 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #23735: Avoid sighandler_t Gnu-ism | Martin Panter | 2016-04-03 | 1 | -1/+1 |
| | | |||||
* | | Issue #23735: Merge Readline resize handling from 3.5 | Martin Panter | 2016-04-03 | 1 | -0/+31 |
|\ \ | |/ | |||||
| * | Issue #23735: Add SIGWINCH handler for Readline 6.3+ support, by Eric Price | Martin Panter | 2016-04-03 | 1 | -0/+31 |
| | | |||||
* | | Issue #24266: Merge readline Ctrl+C handling from 3.5 | Martin Panter | 2016-03-22 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Issue #24266: Cancel history search mode with Ctrl+C in Readline 7 | Martin Panter | 2016-03-22 | 1 | -0/+3 |
| | | |||||
* | | Issue #15699: Merge readline fixup from 3.5 | Martin Panter | 2016-03-22 | 1 | -16/+3 |
|\ \ | |/ | |||||
| * | Issue #15699: Reunite comment with variable | Martin Panter | 2016-03-22 | 1 | -16/+3 |
| | | |||||
* | | Issue #20440: Cleaning up the code by using Py_SETREF. | Serhiy Storchaka | 2016-01-05 | 1 | -3/+1 |
| | | |||||
* | | Issue #25523: Merge a-to-an corrections from 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| |\ | |||||
| | * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar. | ||||
* | | | Issue #25203: Failed readline.set_completer_delims() no longer left the | Serhiy Storchaka | 2015-09-27 | 1 | -4/+5 |
|\ \ \ | |/ / | | | | | | | module in inconsistent state. | ||||
| * | | Issue #25203: Failed readline.set_completer_delims() no longer left the | Serhiy Storchaka | 2015-09-27 | 1 | -4/+5 |
| |\ \ | | |/ | | | | | | | module in inconsistent state. | ||||
| | * | Issue #25203: Failed readline.set_completer_delims() no longer left the | Serhiy Storchaka | 2015-09-27 | 1 | -4/+5 |
| | | | | | | | | | | | | module in inconsistent state. | ||||
* | | | Issue #15989: Fixed some scarcely probable integer overflows. | Serhiy Storchaka | 2015-09-06 | 1 | -1/+1 |
|/ / | | | | | | | It is very unlikely that they can occur in real code for now. | ||||
* | | merge 3.4 (#24058) | Benjamin Peterson | 2015-04-26 | 1 | -2/+0 |
|\ \ | |/ | |||||
| * | remove extern definition, since it's in a header file (closes #24058) | Benjamin Peterson | 2015-04-26 | 1 | -2/+0 |
| | | |||||
* | | Issue 22940: fixes to editline support | Ned Deily | 2014-11-26 | 1 | -1/+1 |
| | | |||||
* | | only support append_history if readline has it | Benjamin Peterson | 2014-11-26 | 1 | -0/+4 |
| | | |||||
* | | add readline.append_history_file (closes #22940) | Benjamin Peterson | 2014-11-26 | 1 | -0/+37 |
|/ | | | | patch by "bru" | ||||
* | Issue #22773: fix failing test with old readline versions due to issue #19884. | Antoine Pitrou | 2014-11-04 | 1 | -0/+4 |
| | |||||
* | Issue #19884, readline: calling rl_variable_bind ("enable-meta-key", "off") | Victor Stinner | 2014-07-24 | 1 | -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 a | Victor Stinner | 2014-07-24 | 1 | -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 Storchaka | 2014-02-09 | 1 | -3/+2 |
|\ | |||||
| * | Issue #20437: Fixed 21 potential bugs when deleting objects references. | Serhiy Storchaka | 2014-02-09 | 1 | -3/+2 |
| | | |||||
* | | Issue #20374: merge | Ned Deily | 2014-02-06 | 1 | -1/+0 |
|\ \ | |/ | |||||
| * | Issue #20374: delete spurious empty line | Ned Deily | 2014-02-06 | 1 | -1/+0 |
| | | |||||
* | | Issue #20374: merge | Ned Deily | 2014-02-06 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Issue #20374: Avoid compiler warnings when compiling readline with libedit. | Ned Deily | 2014-02-06 | 1 | -0/+9 |
| | |