Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
13 years ago
Christian Heimes
a956e645c1
Fix possible NULL pointer dereference in PyCurses_Start_Color()
CID 1058276
13 years ago
Victor Stinner
49fc8ece81
Issue #18203 : Add _PyMem_RawStrdup() and _PyMem_Strdup()
Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the
GIL is held or not.
13 years ago
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.
13 years ago
Victor Stinner
640c35ce13
Reuse Py_MIN and Py_MAX macros: remove duplicate MIN/MAX macros
multiprocessing.h: remove unused MIN and MAX macros
13 years ago
Benjamin Peterson
18b7191653
C89 declaration compliance
13 years ago
Victor Stinner
bd2d30cf31
Issue #17209 : curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c)
13 years ago
R David Murray
a39c47aab0
#8862 : Fix curses cleanup with getchar is interrupted by a signal.
I have no idea how one would write a test for this.
Patch by July Tikhonov.
13 years ago
R David Murray
f5d7cc239e
#8862 : Fix curses cleanup with getchar is interrupted by a signal.
I have no idea how one would write a test for this.
Patch by July Tikhonov.
13 years ago
Ross Lagerwall
2dabaf63cf
Issue #15876 : Fix a refleak in the curses module
The refleak occurred when assigning to window.encoding.
14 years ago
Victor Stinner
9f16e44a47
Close #14223 : Fix window.addch(curses.ACS_HLINE)
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
14 years ago
Victor Stinner
eaaf9e9249
Close #14223 : Fix window.addch(curses.ACS_HLINE)
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
14 years ago
Victor Stinner
1d39cde50c
Issue #15785 : Modify window.get_wch() API of the curses module: return a
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
14 years ago
Victor Stinner
ca2b64682e
Issue #15785 : Modify window.get_wch() API of the curses module: return a
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
14 years ago
Benjamin Peterson
5e5451940c
fix compiler warnings
14 years ago
Victor Stinner
8f40860944
Close #14223 : curses.addch() is no more limited to the range 0-255 when the
Python curses is not linked to libncursesw. It was a regression introduced in
Python 3.3a1.
14 years ago
Ronald Oussoren
2a7fe03528
Add missing sentinel to PyCursesWindow_getsets
The PyCursesWindow_getsets array was introduced without sentinel in c3581ca21a57.
14 years ago
Victor Stinner
0fdfceb782
Issue #12567 : The curses module uses Unicode functions for Unicode arguments
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
14 years ago
Victor Stinner
b3bc7e764d
Issue #10570 : curses.putp() is now expecting a byte string, instead of a
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
15 years ago
Victor Stinner
2662133a05
Issue #10570 : curses.tigetstr() is now expecting a byte string, instead of a
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
15 years ago
Martin v. Löwis
1c67dd9b15
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
15 years ago
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
15 years ago
Victor Stinner
c4f281eba3
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
15 years ago
Martin v. Löwis
afe55bba33
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
15 years ago
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
15 years ago
Victor Stinner
71e44cb97f
Issue #12567 : Add curses.unget_wch() function
Push a character so the next get_wch() will return it.
15 years ago
Nadeem Vawda
9e2e99097c
Fix build error in _curses module when not using libncursesw.
Code extracted from Victor Stinner's patch for issue #12567 .
15 years ago
Victor Stinner
a7878b77dc
Close #6755 : Add get_wch() method to curses.window class
Patch by Iñigo Serna.
15 years ago
Jesus Cea
736e7fc0f6
Issue #11495 : OSF support is eliminated. It was deprecated in Python 3.2
15 years ago
Matthias Klose
9b83dbe905
Merged revisions 83306 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
........
r83306 | matthias.klose | 2010-07-30 23:27:18 +0200 (Fr, 30 Jul 2010) | 2 lines
- Issue #7567 : Don't call `setupterm' twice.
........
16 years ago
Matthias Klose
635edd1990
- Issue #7567 : PyCurses_setupterm: Don't call `setupterm' twice.
16 years ago
Matthias Klose
6e86bf72ac
- Issue #7567 : Don't call `setupterm' twice.
16 years ago
Victor Stinner
c22fd671f8
Recorded merge of revisions 81215 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81215 | victor.stinner | 2010-05-16 00:23:53 +0200 (dim., 16 mai 2010) | 12 lines
Recorded merge of revisions 81213 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81213 | victor.stinner | 2010-05-16 00:19:27 +0200 (dim., 16 mai 2010) | 5 lines
reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
........
................
16 years ago
Victor Stinner
ec2347614f
Recorded merge of revisions 81213 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81213 | victor.stinner | 2010-05-16 00:19:27 +0200 (dim., 16 mai 2010) | 5 lines
reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
........
16 years ago
Victor Stinner
26486ea29f
Recorded merge of revisions 81213 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81213 | victor.stinner | 2010-05-16 00:19:27 +0200 (dim., 16 mai 2010) | 5 lines
reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
........
16 years ago
Victor Stinner
fd2103e68d
reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
16 years ago
Mark Dickinson
e047cfa72e
Issue #8677 : Make curses module PY_SSIZE_T_CLEAN.
16 years ago
Andrew M. Kuchling
2b14676f0f
Merged revisions 81073 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81073 | andrew.kuchling | 2010-05-10 19:27:01 -0400 (Mon, 10 May 2010) | 1 line
Use ';' after initialization macros to avoid confusing re-indenters
........
16 years ago
Andrew M. Kuchling
d6d058feae
Merged revisions 81072 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81072 | andrew.kuchling | 2010-05-10 19:24:09 -0400 (Mon, 10 May 2010) | 1 line
Break long line in macros
........
16 years ago
Andrew M. Kuchling
035fbba859
Use ';' after initialization macros to avoid confusing re-indenters
16 years ago
Andrew M. Kuchling
3eee7af1f2
Break long line in macros
16 years ago
Andrew M. Kuchling
abc79cd6bb
Merged revisions 81049 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81049 | andrew.kuchling | 2010-05-10 13:18:25 -0400 (Mon, 10 May 2010) | 1 line
Move { out of #if...#else block; this confuses Emacs' C-mode
........
16 years ago
Andrew M. Kuchling
40f09c07a2
Move { out of #if...#else block; this confuses Emacs' C-mode
16 years ago
Victor Stinner
f149edadbd
Merged revisions 79398 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r79398 | victor.stinner | 2010-03-25 01:55:12 +0100 (jeu., 25 mars 2010) | 12 lines
Merged revisions 79395 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79395 | victor.stinner | 2010-03-25 01:51:58 +0100 (jeu., 25 mars 2010) | 5 lines
Fix _curses.tiget*() functions: deny None to avoid a crash.
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
........
................
16 years ago
Victor Stinner
41ff399486
Merged revisions 79395 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79395 | victor.stinner | 2010-03-25 01:51:58 +0100 (jeu., 25 mars 2010) | 5 lines
Fix _curses.tiget*() functions: deny None to avoid a crash.
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
........
16 years ago
Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
16 years ago
Victor Stinner
2472726b82
Merged revisions 79395 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79395 | victor.stinner | 2010-03-25 01:51:58 +0100 (jeu., 25 mars 2010) | 5 lines
Fix _curses.tiget*() functions: deny None to avoid a crash.
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
........
16 years ago
Victor Stinner
53ff86ea5f
Fix _curses.tiget*() functions: deny None to avoid a crash.
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
16 years ago
Ezio Melotti
6de9bec392
Merged revisions 78901 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r78901 | ezio.melotti | 2010-03-13 06:42:07 +0200 (Sat, 13 Mar 2010) | 9 lines
Merged revisions 78900 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78900 | ezio.melotti | 2010-03-13 06:39:51 +0200 (Sat, 13 Mar 2010) | 1 line
Silence compiler warnings.
........
................
16 years ago
Ezio Melotti
c0fd6ffd4f
Merged revisions 73824,78887,78895,78900,79024 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73824 | ezio.melotti | 2009-07-04 04:18:08 +0300 (Sat, 04 Jul 2009) | 1 line
#6398 typo: versio. -> version.
........
r78887 | ezio.melotti | 2010-03-13 02:15:36 +0200 (Sat, 13 Mar 2010) | 1 line
fix broken links
........
r78895 | ezio.melotti | 2010-03-13 03:21:34 +0200 (Sat, 13 Mar 2010) | 1 line
#8011 : use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names.
........
r78900 | ezio.melotti | 2010-03-13 06:39:51 +0200 (Sat, 13 Mar 2010) | 1 line
Silence compiler warnings.
........
r79024 | ezio.melotti | 2010-03-17 16:22:34 +0200 (Wed, 17 Mar 2010) | 1 line
Use "x in y" instead of y.find(x) != -1.
........
16 years ago