History log of /external/python/cpython3/Parser/myreadline.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6c2b9d3479fbd425e0136abaadec4577b7918dbb 25-Oct-2016 Steve Dower <steve.dower@microsoft.com> Issue #28333: Fixes off-by-one error that was adding an extra space.
/external/python/cpython3/Parser/myreadline.c
59bd34fa8a58ca787152ca1bfd589dde3656ea91 08-Oct-2016 Steve Dower <steve.dower@microsoft.com> Issue #28333: Remove unnecessary increment.
/external/python/cpython3/Parser/myreadline.c
3cd187b9f51f37e351d5ea4c8448b4769f8a3d9f 08-Oct-2016 Steve Dower <steve.dower@microsoft.com> Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun)
/external/python/cpython3/Parser/myreadline.c
e2e792d98feef833eaff28d8fe1249953c9da6ca 20-Sep-2016 Benjamin Peterson <benjamin@python.org> merge 3.5 (#28184)
3929499914d47365ae744df312e16da8955c90ac 31-Aug-2016 Steve Dower <steve.dower@microsoft.com> Issue #1602: Windows console doesn't input or print Unicode (PEP 528)
Closes #17602: Adds a readline implementation for the Windows console
/external/python/cpython3/Parser/myreadline.c
940f33a50f3877cbde7adb59ba6e1a0a0acd3d11 08-Sep-2016 Steve Dower <steve.dower@microsoft.com> Issue #23524: Finish removing _PyVerify_fd from sources
/external/python/cpython3/Parser/myreadline.c
af01f668173d4061893148b54a0f01b91c7716c2 21-Dec-2013 Christian Heimes <christian@cheimes.de> Issue #16136: Remove VMS support and VMS-related code
/external/python/cpython3/Parser/myreadline.c
c679227e31245b0e8dec74a1f7cc77710541d985 19-Oct-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #1772673: The type of `char*` arguments now changed to `const char*`.
/external/python/cpython3/Parser/myreadline.c
c548660af5b06f4bfd9da27150cfbd4f7330f732 19-Oct-2013 Victor Stinner <victor.stinner@gmail.com> Issue #16742: My fix on PyOS_StdioReadline() was incomplete, PyMem_FREE() was
not patched
/external/python/cpython3/Parser/myreadline.c
2fe9bac4dca34e86d44b7e169f3795fde4c841a1 10-Oct-2013 Victor Stinner <victor.stinner@gmail.com> 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.
/external/python/cpython3/Parser/myreadline.c
73207e03adba704d783997f6261b810ccc4231e4 06-Aug-2013 Christian Heimes <christian@cheimes.de> Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails.
9ae513caa74a05970458dee17fb995ea49965bb5 06-Aug-2013 Christian Heimes <christian@cheimes.de> Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails.
/external/python/cpython3/Parser/myreadline.c
b26a9b10ea5f095da0c699e41b29a724021cd09a 25-Jan-2013 Martin v. Löwis <martin@v.loewis.de> Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
/external/python/cpython3/Parser/myreadline.c
9175c3d804ad708c1065ce85575506992fe10543 29-Jun-2012 Tim Golden <mail@timgolden.me.uk> Issue #1677: Handle better a race condition between the interactive interpreter and
the Ctrl-C signal handler on Windows
/external/python/cpython3/Parser/myreadline.c
e654c11f565d1be32062931dc0a1817004b7387b 30-Apr-2012 Martin v. Löwis <martin@v.loewis.de> Issue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.
/external/python/cpython3/Parser/myreadline.c
c345ce1a69b3c4a46d87ef56d859bc70abfc74b4 16-Dec-2011 Antoine Pitrou <solipsis@pitrou.net> Issue #10350: Read and save errno before calling a function which might overwrite it.
Original patch by Hallvard B Furuseth.
/external/python/cpython3/Parser/myreadline.c
4f71101eeda6fb0b55805ebcb12d11124ab3b567 30-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #12016: my_fgets() now always clears errors before calling fgets(). Fix
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
/external/python/cpython3/Parser/myreadline.c
db932786afdd569bbf2d6b84cfd5cdcb16cb4f27 10-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear
the end-of-file indicator after CTRL+d.
4755ab010f18863e305bbd17bbc16b7f39aed360 10-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.
/external/python/cpython3/Parser/myreadline.c
a870e35a7dff135a9c1075ab2ea068c9f7b2f379 09-Apr-2011 Victor Stinner <victor.stinner@haypocalc.com> (Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.
52c950f229199fa14bd75e1709183d0b08e90182 09-Apr-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #11650: PyOS_StdioReadline() retries fgets() if it was interrupted
(EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch
written by Charles-Francois Natali.
/external/python/cpython3/Parser/myreadline.c
7f14f0d8a0228c50d5b5de2acbfe9a64ebc6749a 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines

Recorded merge of revisions 81029 via svnmerge from
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.
........
................
/external/python/cpython3/Parser/myreadline.c
f95a1b3c53bdd678b64aa608d4375660033460c3 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Recorded merge of revisions 81029 via svnmerge from
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.
........
/external/python/cpython3/Parser/myreadline.c
21896a330ab2531b33e5a885cf3d5b3b252fffee 21-Mar-2010 Benjamin Peterson <benjamin@python.org> Merged revisions 77952,78030,78102,78104,78107,78206,78216,78296-78297,78328,78331-78332,78336,78339,78343,78378-78379,78415,78559,78717,78791 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r77952 | mark.dickinson | 2010-02-03 10:50:14 -0600 (Wed, 03 Feb 2010) | 1 line

Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942).
........
r78030 | benjamin.peterson | 2010-02-06 14:14:10 -0600 (Sat, 06 Feb 2010) | 1 line

check type_getattro for correctness in a descriptor corner case
........
r78102 | andrew.kuchling | 2010-02-07 19:35:35 -0600 (Sun, 07 Feb 2010) | 1 line

Move distutils into its own subsection; add various items
........
r78104 | andrew.kuchling | 2010-02-08 07:22:24 -0600 (Mon, 08 Feb 2010) | 1 line

Add two items; move a subsection
........
r78107 | antoine.pitrou | 2010-02-08 14:25:47 -0600 (Mon, 08 Feb 2010) | 3 lines

Clarify and correct description for ccbench and iobench.
........
r78206 | r.david.murray | 2010-02-16 11:55:26 -0600 (Tue, 16 Feb 2010) | 3 lines

Make the references to Popen in the description of Call
and check_call into links.
........
r78216 | andrew.kuchling | 2010-02-18 08:16:48 -0600 (Thu, 18 Feb 2010) | 1 line

Add various items
........
r78296 | andrew.kuchling | 2010-02-21 20:08:45 -0600 (Sun, 21 Feb 2010) | 1 line

Re-word
........
r78297 | andrew.kuchling | 2010-02-21 20:29:10 -0600 (Sun, 21 Feb 2010) | 1 line

#7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki.
........
r78328 | jack.diederich | 2010-02-22 12:17:16 -0600 (Mon, 22 Feb 2010) | 1 line

fixes issue #7530, serve_forever()
........
r78331 | andrew.kuchling | 2010-02-22 12:38:23 -0600 (Mon, 22 Feb 2010) | 1 line

Fix comment typo
........
r78332 | andrew.kuchling | 2010-02-22 12:42:07 -0600 (Mon, 22 Feb 2010) | 2 lines

#7627: MH.remove() would fail if the MH mailbox was locked;
it would call _unlock_file() and pass it a closed file object. Noted by Rob Austein.
........
r78336 | jack.diederich | 2010-02-22 13:55:22 -0600 (Mon, 22 Feb 2010) | 1 line

fixes issue #1522237, bad init check in _threading_local
........
r78339 | jack.diederich | 2010-02-22 15:27:38 -0600 (Mon, 22 Feb 2010) | 1 line

* fix issue#7476
........
r78343 | andrew.kuchling | 2010-02-22 16:48:41 -0600 (Mon, 22 Feb 2010) | 10 lines

#2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c.
Noted by Joseph Armbruster; patch by Jessica McKellar.

The original code was 'for (;;) {...}', where ... ended
with a 'return -2' statement and did not contain a 'break' or 'continue'
statement. Therefore, the body of the loop is always executed once.

Once upon a time there was a 'continue' in the loop, but it was removed in
rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.
........
r78378 | jack.diederich | 2010-02-23 11:23:30 -0600 (Tue, 23 Feb 2010) | 1 line

fixup markup error
........
r78379 | jack.diederich | 2010-02-23 13:34:06 -0600 (Tue, 23 Feb 2010) | 1 line

issue#6442 use in operator instead of has_key
........
r78415 | dirkjan.ochtman | 2010-02-23 22:00:52 -0600 (Tue, 23 Feb 2010) | 1 line

Issue #7733: add explicit reference in asyncore docs.
........
r78559 | andrew.kuchling | 2010-03-01 13:45:21 -0600 (Mon, 01 Mar 2010) | 1 line

#7637: update discussion of minidom.unlink() and garbage collection
........
r78717 | benjamin.peterson | 2010-03-05 21:13:33 -0600 (Fri, 05 Mar 2010) | 1 line

settscdump is definitely an implementation detail
........
r78791 | andrew.kuchling | 2010-03-08 06:00:39 -0600 (Mon, 08 Mar 2010) | 1 line

Add various items
........
/external/python/cpython3/Parser/myreadline.c
7a98be2efbdc44a6271e3bf6117a1e6c77828414 16-Aug-2007 Skip Montanaro <skip@pobox.com> Remove RISCOS support
/external/python/cpython3/Parser/myreadline.c
49fd7fa4431da299196d74087df4a04f99f9c46f 21-Apr-2006 Thomas Wouters <thomas@python.org> Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
number of tests, all because of the codecs/_multibytecodecs issue described
here (it's not a Py3K issue, just something Py3K discovers):
http://mail.python.org/pipermail/python-dev/2006-April/064051.html

Hye-Shik Chang promised to look for a fix, so no need to fix it here. The
tests that are expected to break are:

test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecs
test_multibytecodec

This merge fixes an actual test failure (test_weakref) in this branch,
though, so I believe merging is the right thing to do anyway.
/external/python/cpython3/Parser/myreadline.c
e3afc598bc62c6ad46c56feec3f18cf8131c91c6 07-Apr-2005 Michael W. Hudson <mwh@python.net> In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python. Argh!

Backport candidate.
/external/python/cpython3/Parser/myreadline.c
238499060351da61665c1e623c5f59c6d0ef3354 08-Jul-2004 Michael W. Hudson <mwh@python.net> PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes

[ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt
/external/python/cpython3/Parser/myreadline.c
b7e898a0e2a8d4077cbabeada039200fde5ada60 07-Jul-2004 Tim Peters <tim.peters@gmail.com> "#if WITH_THREAD" is incorrect; must be #ifdef instead; WITH_THREAD
isn't always set to an integer value when it's defined.
/external/python/cpython3/Parser/myreadline.c
30ea2f223f5c0a85a13bd893063555a9f587cd6d 07-Jul-2004 Michael W. Hudson <mwh@python.net> This closes patch:

[ 960406 ] unblock signals in threads

although the changes do not correspond exactly to any patch attached to
that report.

Non-main threads no longer have all signals masked.

A different interface to readline is used.

The handling of signals inside calls to PyOS_Readline is now rather
different.

These changes are all a bit scary! Review and cross-platform testing
much appreciated.
/external/python/cpython3/Parser/myreadline.c
fb2765666f23434061e5def1aa8392797edf1f43 19-Nov-2003 Jack Jansen <jack.jansen@cwi.nl> Getting rid of support for the ancient Apple MPW compiler.
/external/python/cpython3/Parser/myreadline.c
c16f3bd8a391a68427a95e15a3c1894198ff0377 03-May-2003 Martin v. Löwis <martin@v.loewis.de> Patch #708495: Port more stuff to OpenVMS.
/external/python/cpython3/Parser/myreadline.c
566f6afe9a9de23132302020dcb4c612d5180f23 26-Oct-2002 Martin v. Löwis <martin@v.loewis.de> Patch #512981: Update readline input stream on sys.stdin/out change.
/external/python/cpython3/Parser/myreadline.c
2f10cb8fa5e67e262c009c9b1a2c99a788fd0ad7 15-Jul-2002 Mark Hammond <mhammond@skippinet.com.au> Fix bug 439992 - [win32] KeyboardInterrupt Not Caught.

This gets us closer to consistent Ctrl+C behaviour on NT and Win9x. NT now reliably generates KeyboardInterrupt exceptions for NT when a file IO operation was aborted. Bugfix candidate
/external/python/cpython3/Parser/myreadline.c
48a680c097f0e53a4cdcd61fbed35e1b6c1de388 02-Mar-2001 Guido van Rossum <guido@python.org> RISCOS changes by dschwertberger.
/external/python/cpython3/Parser/myreadline.c
d5fadf75e4d18df61db41205ace0cda28d98eeaa 26-Sep-2000 Fred Drake <fdrake@acm.org> Rationalize use of limits.h, moving the inclusion to Python.h.
Add definitions of INT_MAX and LONG_MAX to pyport.h.
Remove includes of limits.h and conditional definitions of INT_MAX
and LONG_MAX elsewhere.

This closes SourceForge patch #101659 and bug #115323.
/external/python/cpython3/Parser/myreadline.c
8586991099e4ace18ee94163a96b8ea1bed77ebe 02-Sep-2000 Guido van Rossum <guido@python.org> REMOVED all CWI, CNRI and BeOpen copyright markings.
This should match the situation in the 1.6b1 tree.
/external/python/cpython3/Parser/myreadline.c
23c9e0024af99379ae517b016b874d57127e9a97 22-Jul-2000 Thomas Wouters <thomas@python.org> Mass ANSIfication.

Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to
'Py_AddPendingCall' by providing a (static) wrapper function that has the
right number of arguments.
/external/python/cpython3/Parser/myreadline.c
dbd9ba6a6c19c3d06f5684b3384a934f740038db 09-Jul-2000 Tim Peters <tim.peters@gmail.com> Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
/external/python/cpython3/Parser/myreadline.c
41aa8e523d1f81dc4b4d529dd01c59aef350eada 03-Jul-2000 Jack Jansen <jack.jansen@cwi.nl> Include limits.h if we have it.
/external/python/cpython3/Parser/myreadline.c
ffcc3813d82e6b96db79f518f4e67b940a13ce64 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice - 2nd try.
/external/python/cpython3/Parser/myreadline.c
fd71b9e9d496caa510dec56a9b69966558d6ba5d 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice.
/external/python/cpython3/Parser/myreadline.c
6da3434e037a281c771ad0fe37896920bfedd140 29-Jun-2000 Guido van Rossum <guido@python.org> Trent Mick: familiar simple Win64 patches
/external/python/cpython3/Parser/myreadline.c
b18618dab7b6b85bb05b084693706e59211fa180 04-May-2000 Guido van Rossum <guido@python.org> Vladimir Marangozov's long-awaited malloc restructuring.
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.

(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode. I'm also holding back on his
change to main.c, which seems unnecessary to me.)
/external/python/cpython3/Parser/myreadline.c
80c7bcf667b49c9c62dffeb9e433613f2c94e87f 29-Aug-1998 Guido van Rossum <guido@python.org> The previous fix was still broken; the Py_END_ALLOW_THREADS macro was
never executed because of a return statement. Sigh.
/external/python/cpython3/Parser/myreadline.c
8efa47b63e80a2b1a7b5ff23fe00c90ee3254a4d 27-Aug-1998 Guido van Rossum <guido@python.org> We now assume that PyOS_Readline() is called with the interpreter lock
held. It releases the lock around the call to the function pointed to by
PyOS_ReadlineFunctionPointer (default PyOS_StdioReadline()).
/external/python/cpython3/Parser/myreadline.c
44620646fd7666dffa362137c9b69a3c9e18c715 11-Aug-1997 Guido van Rossum <guido@python.org> Renamed Py_input_hook to PyOS_InputHook.
Also cleaned out some CR's left by the VC++ editor.
/external/python/cpython3/Parser/myreadline.c
717c6f95bebcd4693781e25bae3f7f9900cece07 05-Aug-1997 Guido van Rossum <guido@python.org> Move GNU readline interface to ../Modules/readline.c.
Add Py_input_hook (used by _tkinter and perhaps Gist).
/external/python/cpython3/Parser/myreadline.c
fa658ce03d82dc0f9223cde427b12d1eeb48dce7 09-Apr-1997 Guido van Rossum <guido@python.org> Remove two unised variables.
/external/python/cpython3/Parser/myreadline.c
fbd64c8790e2cec2d6bc44d3d13f39b9a5940e12 18-Feb-1997 Guido van Rossum <guido@python.org> Restructured quite a bit, hopefully Lee Busby will find this useful.
Also grandly renamed.

Here's the new interface:

When WITH_READLINE is defined, two functions are defined:

- PyOS_GnuReadline (what used to be my_readline() with WITH_READLINE)
- PyOS_ReadlineInit (for Dave Ascher)

Always, these functions are defined:

- PyOS_StdioReadline (what used to be my_readline() without WITH_READLINE)
- PyOS_Readline (the interface used by tokenizer.c and [raw_]input().

There's a global function pointer PyOS_ReadlineFunctionPointer,
initialized to NULL. When PyOS_Readline finds this to be NULL, it
sets it to either PyOS_GnuReadline or PyOS_StdioReadline depending on
which one makes more sense (i.e. it uses GNU only if it is defined
*and* stdin is indeed a tty device).

An embedding program that has its own wishes can set the function
pointer to a function of its own design. It should take a char*
prompt argument (which may be NULL) and return a string *ending in a
\n character* -- or "" for EOF or NULL for a user interrupt.

--Guido van Rossum (home page: http://www.python.org/~guido/)
/external/python/cpython3/Parser/myreadline.c
fd8a393086fbf43597965d5e55bec158a094a466 02-Dec-1996 Guido van Rossum <guido@python.org> Make gcc -Wall happy
/external/python/cpython3/Parser/myreadline.c
d266eb460e20ded087d01a29da0a230e235afc40 25-Oct-1996 Guido van Rossum <guido@python.org> New permission notice, includes CNRI.
/external/python/cpython3/Parser/myreadline.c
0bc253dba7e0fcb3efcd96b0f5b3d9e6502bffb4 13-Sep-1996 Guido van Rossum <guido@python.org> Explicitly call rl_initialize().
Set rl_readline_name to python.
Move extern decls to more logical point.
/external/python/cpython3/Parser/myreadline.c
7cf1fcf347853a9efe9e0c21191ad66a650f3da7 20-Aug-1996 Guido van Rossum <guido@python.org> Always include config.h
/external/python/cpython3/Parser/myreadline.c
9ea917ebaa3135eb798617302c71093f179ab61b 24-May-1996 Guido van Rossum <guido@python.org> Only define PyOS_ReadlineInit if WITH_READLINE defined.
/external/python/cpython3/Parser/myreadline.c
adf876938a242dc7b476d82565b968471c2919b3 09-Apr-1996 Guido van Rossum <guido@python.org> Separate readline initialization into new function PyOS_ReadlineInit().
For Dave Ascher's readline extensions.
/external/python/cpython3/Parser/myreadline.c
c7fea2feedd240127f7c8d7da6e5dde02688e56c 12-Jan-1996 Guido van Rossum <guido@python.org> add sigrelse() call for SunOS 4.1; add some fflush() calls
/external/python/cpython3/Parser/myreadline.c
b9f8d6e54d72d108648a411174e57779c212871a 04-Jan-1995 Guido van Rossum <guido@python.org> Added 1995 to copyright message.
/external/python/cpython3/Parser/myreadline.c
b6775db241f5fe5e3dc2ca09fc6c9e6164d4b2af 01-Aug-1994 Guido van Rossum <guido@python.org> Merge alpha100 branch back to main trunk
/external/python/cpython3/Parser/myreadline.c
6fa6343f0e0837314ee86515804b3f3cd5945cbb 24-Dec-1993 Guido van Rossum <guido@python.org> None
/external/python/cpython3/Parser/myreadline.c