Larry Hastings
44e2eaab54
Issue #19674 : inspect.signature() now produces a correct signature
for some builtins.
12 years ago
Larry Hastings
abc716b058
Issue #19474 : Argument Clinic now always specifies a default value for
variables in option groups, to prevent "uninitialized value" warnings.
12 years ago
Larry Hastings
ed4a1c5703
Argument Clinic: rename "self" to "module" for module-level functions.
12 years ago
Victor Stinner
bd303c165b
Issue #19512 , #19515 : remove shared identifiers, move identifiers where they
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
12 years ago
Victor Stinner
090543736f
Issue #19512 : add some common identifiers to only create common strings once,
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
12 years ago
Serhiy Storchaka
a412f763b3
Fix compilation of the curses module (broken by issue #16612 ).
12 years ago
Larry Hastings
3182680210
Issue #16612 : Add "Argument Clinic", a compile-time preprocessor
for C files to generate argument parsing code. (See PEP 436.)
12 years ago
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.
14 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.
14 years ago
Martin v. Löwis
1c67dd9b15
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
14 years ago
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
14 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