Serhiy Storchaka
ec39756960
Issue #22570 : Renamed Py_SETREF to Py_XSETREF.
2016-04-06 09:50:03 +03:00
Martin Panter
b15c304984
Issue #6953 : Merge readline doc from 3.5
2016-04-05 10:17:38 +00:00
Martin Panter
0f7673943a
Issue #6953 : Rearrange and expand Readline module documentation
...
* 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
2016-04-05 07:37:22 +00:00
Martin Panter
9ad764601b
Issue #23735 : Merge sighandler_t fix from 3.5
2016-04-03 08:04:35 +00:00
Martin Panter
28f35b24b6
Issue #23735 : Avoid sighandler_t Gnu-ism
2016-04-03 08:00:49 +00:00
Martin Panter
a3506005b3
Issue #23735 : Merge Readline resize handling from 3.5
2016-04-03 03:19:27 +00:00
Martin Panter
5dbbf1abba
Issue #23735 : Add SIGWINCH handler for Readline 6.3+ support, by Eric Price
2016-04-03 02:54:58 +00:00
Martin Panter
0b2d71bc70
Issue #24266 : Merge readline Ctrl+C handling from 3.5
2016-03-22 09:28:58 +00:00
Martin Panter
d6990d221b
Issue #24266 : Cancel history search mode with Ctrl+C in Readline 7
2016-03-22 07:24:05 +00:00
Martin Panter
12eb2ab490
Issue #15699 : Merge readline fixup from 3.5
2016-03-22 02:26:18 +00:00
Martin Panter
f6e9f47aa7
Issue #15699 : Reunite comment with variable
2016-03-22 02:19:29 +00:00
Serhiy Storchaka
576f132b98
Issue #20440 : Cleaning up the code by using Py_SETREF.
2016-01-05 21:27:54 +02:00
Martin Panter
e56a919100
Issue #25523 : Merge a-to-an corrections from 3.5
2015-11-02 04:27:17 +00:00
Martin Panter
2eb819f7a8
Issue #25523 : Merge "a" to "an" fixes from 3.4 into 3.5
2015-11-02 04:04:57 +00:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
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.
2015-11-02 03:37:02 +00:00
Serhiy Storchaka
a6c5d53eec
Issue #25203 : Failed readline.set_completer_delims() no longer left the
...
module in inconsistent state.
2015-09-27 22:38:33 +03:00
Serhiy Storchaka
36aff2db4a
Issue #25203 : Failed readline.set_completer_delims() no longer left the
...
module in inconsistent state.
2015-09-27 22:38:01 +03:00
Serhiy Storchaka
1138439376
Issue #25203 : Failed readline.set_completer_delims() no longer left the
...
module in inconsistent state.
2015-09-27 22:34:59 +03:00
Serhiy Storchaka
56f6e76c68
Issue #15989 : Fixed some scarcely probable integer overflows.
...
It is very unlikely that they can occur in real code for now.
2015-09-06 21:25:30 +03:00
Benjamin Peterson
fc9d6f600e
merge 3.4 ( #24058 )
2015-04-26 15:56:23 -04:00
Benjamin Peterson
0c6a5d1deb
remove extern definition, since it's in a header file ( closes #24058 )
2015-04-26 15:55:06 -04:00
Ned Deily
8007cbc4d5
Issue 22940: fixes to editline support
2014-11-26 13:02:33 -08:00
Benjamin Peterson
d1e22ba7db
only support append_history if readline has it
2014-11-26 14:35:12 -06:00
Benjamin Peterson
33f8f15bdd
add readline.append_history_file ( closes #22940 )
...
patch by "bru"
2014-11-26 13:58:16 -06:00
Antoine Pitrou
7e8b8678f1
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:52:10 +01:00
Victor Stinner
92639cce35
Issue #19884 , readline: calling rl_variable_bind ("enable-meta-key", "off")
...
does crash on Mac OS X which uses libedit instead of readline.
2014-07-24 22:11:38 +02:00
Victor Stinner
a3c80ce8b7
Issue #19884 : readline: Disable the meta modifier key if stdout is not a
...
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.
2014-07-24 12:23:56 +02:00
Serhiy Storchaka
dfe98a102e
Issue #20437 : Fixed 22 potential bugs when deleting objects references.
2014-02-09 13:46:20 +02:00
Serhiy Storchaka
505ff755d7
Issue #20437 : Fixed 21 potential bugs when deleting objects references.
2014-02-09 13:33:53 +02:00
Ned Deily
93db29b5c1
Issue #20374 : merge
2014-02-05 17:03:42 -08:00
Ned Deily
22d415cf19
Issue #20374 : delete spurious empty line
2014-02-05 17:02:29 -08:00
Ned Deily
4b104abdc9
Issue #20374 : merge
2014-02-05 16:55:20 -08:00
Ned Deily
7b9ddea80b
Issue #20374 : Avoid compiler warnings when compiling readline with libedit.
2014-02-05 16:53:10 -08:00
Benjamin Peterson
c3bf14d1eb
merge 3.3 ( #20374 )
2014-01-24 11:44:40 -05:00
Benjamin Peterson
f0b463ad84
new plan: just remove typecasts ( closes #20374 )
2014-01-24 11:44:16 -05:00
Benjamin Peterson
8f81c3cf3f
merge 3.3 ( #20374 )
2014-01-24 00:33:25 -05:00
Benjamin Peterson
5f6bf55965
use new readline function types ( closes #20374 )
2014-01-24 00:32:12 -05:00
Christian Heimes
a3da7c5f8a
make char* const
...
readline() takes a const char* and the other readline_until_enter_or_signal() implementation
already has const char*.
2013-12-04 09:31:47 +01:00
Serhiy Storchaka
c679227e31
Issue #1772673 : The type of `char*` arguments now changed to `const char*`.
2013-10-19 21:03:34 +03:00
Ned Deily
9809ca9d9e
Issue #18458 : merge comments from 3.3
2013-10-12 15:57:04 -07:00
Ned Deily
5d4121a631
Issue #18458 : Prevent crashes with newer versions of libedit. Its readline
...
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-10-12 15:47:58 -07:00
Victor Stinner
2fe9bac4dc
Close #16742 : Fix misuse of memory allocations in PyOS_Readline()
...
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.
2013-10-10 16:18:20 +02:00
Ned Deily
f70f4a63b6
Issue #18458 : Prevent crashes with newer versions of libedit. Its readline
...
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-09-06 15:16:19 -07:00
Antoine Pitrou
5c30a75722
Issue #15699 : The readline module now uses PEP 3121-style module initialization, so as to reclaim allocated resources (Python callbacks) at shutdown.
...
Original patch by Robin Schreiber.
2013-07-31 21:52:53 +02:00
Victor Stinner
b64049183c
Issue #18203 : Replace malloc() with PyMem_Malloc() in Python modules
...
Replace malloc() with PyMem_Malloc() when the GIL is held, or with
PyMem_RawMalloc() otherwise.
2013-07-07 16:21:41 +02:00
Antoine Pitrou
9b5d4d8cef
Issue #17289 : The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
...
Initial patch by Bradley Froehle.
2013-05-06 21:54:07 +02:00
Antoine Pitrou
a7f7deb6ed
Issue #17289 : The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
...
Initial patch by Bradley Froehle.
2013-05-06 21:51:03 +02:00
Nadeem Vawda
56265564ff
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:29:39 +01:00
Nadeem Vawda
c27bcbf863
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:25:19 +01:00
Nadeem Vawda
6375257188
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:05:11 +01:00