Alexandre Vassalotti
6d78736177
Initialize variables in PyCurses_getsyx() to avoid compiler warnings.
2009-07-17 07:54:23 +00:00
Georg Brandl
d77faaf48f
#5910 : fix kqueue for calls with more than one event.
2009-07-16 07:18:07 +00:00
Alexandre Vassalotti
999ecc0eaf
Issue #2389 : Pickle array objects using a list representation for portability
...
across different machine architectures and compatibility with Python 3.x.
2009-07-15 18:19:47 +00:00
Amaury Forgeot d'Arc
ce32eb7406
#6416 : Fix compilation of the select module on Windows, as well as test_subprocess:
...
PIPE_BUF is not defined on Windows, and probably has no meaning there.
Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
2009-07-09 22:37:22 +00:00
Mark Dickinson
5fd3af24a2
Issue #1523 : Remove deprecated overflow masking in struct module, and
...
make sure that out-of-range values consistently raise struct.error.
2009-07-07 15:08:28 +00:00
Mark Dickinson
24766ba6af
Typo in error message
2009-07-07 10:18:22 +00:00
Amaury Forgeot d'Arc
e93eee7d22
#6420 : Fix a compilation warning in the nis module, for OpenBSD and FreeBSD.
2009-07-07 06:49:41 +00:00
Mark Dickinson
463dc4bf26
Issues #1530559 , #1741130 : Fix various inconsistencies in struct.pack
...
integer packing, and reenable some previously broken tests.
2009-07-05 10:01:24 +00:00
Alexandre Vassalotti
0fe799151f
Issue 2370: Add Python 3 warnings for the removal of operator.isCallable and
...
operator.sequenceIncludes.
Patch contributed by Jeff Balogh (and updated slightly by me).
2009-07-05 04:22:40 +00:00
Gregory P. Smith
9d36fd2acb
Adds the select.PIPE_BUF attribute to expose the system constant.
2009-07-03 20:48:31 +00:00
Jesus Cea
869321484d
multiprocessing doesn't compile in Solaris because a typo
2009-07-02 14:30:18 +00:00
Hirokazu Yamamoto
8839fd7372
Issue #6344 : Fixed a crash of mmap.read() when passed a negative argument.
...
Reviewed by Amaury Forgeot d'Arc.
2009-06-29 13:25:16 +00:00
Hirokazu Yamamoto
bcff47a6ec
Issue #4856 : Py_GetFileAttributesEx[AW] are not needed because GetFileAttributesEx[AW]
...
won't fail with ERROR_CALL_NOT_IMPLEMENTED on win NT.
Reviewed by Amaury Forgeot d'Arc.
2009-06-29 11:27:03 +00:00
Hirokazu Yamamoto
a3c5609079
Issue #4856 : Remove checks for win NT.
2009-06-28 10:23:00 +00:00
Amaury Forgeot d'Arc
ca69bb90cb
Fix a compilation warning on Windows
2009-06-25 21:29:32 +00:00
Raymond Hettinger
0115e098da
Issue 6305: Clarify error message for large arguments to itertools.islice().
2009-06-23 21:32:28 +00:00
Benjamin Peterson
94819cf47c
remove some unused symtable constants
2009-06-23 03:01:56 +00:00
Benjamin Peterson
9f7baec574
backport r73430
2009-06-14 22:36:48 +00:00
Hirokazu Yamamoto
983a46543c
Issue #6271 : mmap tried to close invalid file handle (-1) when annonymous.
...
(On Unix) Patch by STINNER Victor.
2009-06-14 03:53:55 +00:00
Antoine Pitrou
1969059327
Issue #6215 : backport the 3.1 io lib
2009-06-12 20:14:08 +00:00
Raymond Hettinger
1672dc60ec
Fix signed/unsigned compiler warning.
2009-06-10 16:15:40 +00:00
Benjamin Peterson
e021c9cb27
backport r73268
2009-06-07 16:24:48 +00:00
Martin v. Löwis
4f16d3b4ac
Issue #4873 : Fix resource leaks in error cases of pwd and grp.
2009-05-29 15:58:08 +00:00
Jeffrey Yasskin
7937d939b1
Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
...
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.
2009-05-29 03:44:31 +00:00
Collin Winter
57bef68bc0
Issue 5794: fix cPickle's unpickling of recursive tuples.
2009-05-26 04:12:39 +00:00
Georg Brandl
944f684ce6
Allow multiple context managers in one with statement, as proposed
...
in http://codereview.appspot.com/53094 and accepted by Guido.
The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Benjamin Peterson
7285a2666e
fix error handling
2009-05-25 20:13:36 +00:00
Collin Winter
179bf213ea
Issue 5670: special-case pickling of dicts. This nearly doubles the performance of dict pickling in cPickle.
2009-05-25 04:34:39 +00:00
Benjamin Peterson
a7724e59e0
stop using Py_FindMethod
2009-05-24 23:13:32 +00:00
Antoine Pitrou
d49e375eed
Issue #1309352 : fcntl now converts its third arguments to a C `long` rather
...
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).
2009-05-24 15:40:09 +00:00
Antoine Pitrou
4fe3858991
Fix build under Windows
2009-05-24 12:15:04 +00:00
Benjamin Peterson
e5afa3b24b
support building with subversion 1.7 #6094
2009-05-23 19:24:37 +00:00
Antoine Pitrou
76dd2d1459
Some pid_t-expecting or producing functions were forgotten in r72852.
2009-05-23 16:06:49 +00:00
Antoine Pitrou
5e858fe52b
Issue #1983 : Fix functions taking or returning a process identifier to use
...
the dedicated C type `pid_t` instead of a C `int`. Some platforms have
a process identifier type wider than the standard C integer type.
2009-05-23 15:37:45 +00:00
Mark Dickinson
cf4ad76a0a
typos in ctypes Module
2009-05-20 17:55:31 +00:00
Hirokazu Yamamoto
b24bb27d22
Issue #3527 : Removed Py_WIN_WIDE_FILENAMES which is not used any more.
2009-05-17 02:52:09 +00:00
Antoine Pitrou
42b5bcf048
Issue #5918 : Fix a crash in the parser module.
...
Patch by Amaury.
2009-05-14 21:48:09 +00:00
Jeffrey Yasskin
1aa4700234
PyCode_NewEmpty:
...
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Mark Dickinson
083d1f9f9a
Issue #5933 : Fix gcc -Wextra compiler warnings (and remove some
...
trailing whitespace).
2009-05-08 20:58:08 +00:00
Thomas Heller
fd1ee7a8a0
Add a file that contains diffs between offical libffi files and the
...
files in this repository. Should make it easier to merge new libffi
versions.
2009-05-08 20:09:40 +00:00
Walter Dörwald
a7fb408a02
Issue 3739: The unicode-internal encoder now reports the number of *characters*
...
consumed like any other encoder (instead of the number of bytes).
2009-05-06 14:28:24 +00:00
Benjamin Peterson
c6c1f96420
tabify :(
2009-05-05 23:00:48 +00:00
Benjamin Peterson
a98c8e1d2d
fix running test_capi with -R ::
...
Also, fix a refleak in the test that was preventing running. :)
2009-05-05 21:09:21 +00:00
Mark Dickinson
929ab93489
Issue #5933 : Fix some gcc -Wextra warnings. Thanks Victor Stinner for
...
the patch.
2009-05-05 17:41:47 +00:00
Georg Brandl
f71ba95e91
#5932 : fix error return in _convertPyInt_AsSsize_t() conversion function.
2009-05-05 07:48:12 +00:00
Hirokazu Yamamoto
406d7aaee7
Issue #5913 : os.listdir() should fail for empty path on windows.
2009-05-04 05:28:39 +00:00
Gregory P. Smith
eeb51a99c5
cleanup applied patch to match style that is already in py3k branch.
2009-05-04 00:48:41 +00:00
Gregory P. Smith
d02eedacab
Issue #4751 : For hashlib algorithms provided by OpenSSL, the Python
...
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Antoine Pitrou
7430989cda
Isue #5084 : unpickling now interns the attribute names of pickled objects,
...
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
2009-05-02 21:13:23 +00:00
Antoine Pitrou
3fd4ea9dab
Issue #5726 : Make Modules/ld_so_aix return the actual exit code of the linker, rather than always exit successfully.
...
Patch by Floris Bruynooghe.
2009-05-01 21:16:14 +00:00
Thomas Heller
90c61a2e09
Issue #4305 : ctypes fails to build on mipsel-linux-gnu (detects mips
...
instead of mipsel)
2009-04-28 19:23:41 +00:00
Antoine Pitrou
e988e286b2
Issue #1734234 : Massively speedup `unicodedata.normalize()` when the
...
string is already in normalized form, by performing a quick check beforehand.
Original patch by Rauli Ruohonen.
2009-04-27 21:53:26 +00:00
Eric Smith
068f06568b
Issue #5835 , deprecate PyOS_ascii_formatd.
...
If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great.
Will port to py3k with a different strategy.
2009-04-25 21:40:15 +00:00
Thomas Heller
e09f161618
Issue #5078 : Avoid redundant call to FormatError()
2009-04-25 16:37:18 +00:00
Thomas Heller
5c6af808f7
Issue #3102 : All global symbols that the _ctypes extension defines are
...
now prefixed with 'Py' or '_ctypes'.
2009-04-24 20:31:47 +00:00
Thomas Heller
ec21ccde12
Issue 5041: ctypes unwilling to allow pickling wide character.
2009-04-24 20:00:41 +00:00
Thomas Heller
2d69358802
Remove duplicated function declaration.
...
Make _pagesize static.
2009-04-16 06:42:02 +00:00
Thomas Heller
4954ffd98d
Remove unneeded code.
2009-04-16 06:26:33 +00:00
Georg Brandl
3c4a5463b2
#5704 : let python -3 imply -t as well.
2009-04-12 12:08:12 +00:00
Gregory P. Smith
6d30793cf2
Fixes issue5705: os.setuid() and friends did not accept the same range of
...
values that pwd.getpwnam() returns.
2009-04-05 23:43:58 +00:00
Matthias Klose
91a3b9e4f0
Issue #1113244 : Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
...
to avoid compiler warnings.
2009-04-05 21:19:13 +00:00
Georg Brandl
d3eaa745a9
#5615 : make it possible to configure --without-threads again.
2009-04-05 11:07:14 +00:00
Guilherme Polo
5d64c330dd
Include tkinter.h only after including tk.h (or the equivalent for another platform).
2009-04-05 02:11:19 +00:00
Jesse Noller
5053fbbb38
Issue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES
2009-04-02 04:22:09 +00:00
Jesse Noller
b502bc7a1a
Issue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin Loewis
2009-04-02 02:32:55 +00:00
Jesse Noller
355b1264b8
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
2009-04-02 00:03:28 +00:00
Jack Diederich
2ecd3c36b5
bounds check arguments to mmap.move(). All of them. Really.
...
fixes crasher on OS X 10.5
2009-04-01 20:26:13 +00:00
Kristján Valur Jónsson
feab33418d
http://bugs.python.org/issue5623
...
Dynamically discoverd the size of the ioinfo struct used by the crt for its file descriptors. This should work across all flavors of the CRT. Thanks to Amaury Forgeot d'Arc
Needs porting to 3.1
2009-04-01 16:08:34 +00:00
Hirokazu Yamamoto
c53306c217
Fixed compile error on windows.
2009-04-01 15:13:52 +00:00
Jack Diederich
d60c29ed8b
#5228 : add pickle support to functools.partial
2009-03-31 23:46:48 +00:00
Jesse Noller
42f9b4e5b4
Issue 5619: Pass MS CRT debug flags into subprocesses
2009-03-31 22:20:35 +00:00
Hirokazu Yamamoto
1d7d5325be
Issue #5387 : Fixed mmap.move crash by integer overflow. (take2)
2009-03-31 20:14:04 +00:00
Jesse Noller
40a6164afa
Apply patch for netbsd multiprocessing support
2009-03-31 18:12:35 +00:00
Hirokazu Yamamoto
9d2ee5ded2
Issue #5387 : Fixed mmap.move crash by integer overflow.
2009-03-31 13:13:05 +00:00
Jesse Noller
82eb5902ce
merge in patch from tim golden to fix contextmanager support for mp.Lock()
2009-03-30 23:29:31 +00:00
Bob Ippolito
76a982a027
Issue 5381: fix regression in pure python code path, Issue 5584: fix a decoder bug for unicode float literals outside of a container
2009-03-29 22:33:58 +00:00
Guilherme Polo
41eb08616c
Typo fix
2009-03-28 19:17:16 +00:00
Guilherme Polo
1972d16230
Adjusted _tkinter to compile without warnings when WITH_THREAD is not
...
defined (part of issue #5035 )
2009-03-27 21:43:08 +00:00
Antoine Pitrou
f8387af262
Issue #4688 : Add a heuristic so that tuples and dicts containing only
...
untrackable objects are not tracked by the garbage collector. This can
reduce the size of collections and therefore the garbage collection overhead
on long-running programs, depending on their particular use of datatypes.
(trivia: this makes the "binary_trees" benchmark from the Computer Language
Shootout 40% faster)
2009-03-23 18:41:45 +00:00
Raymond Hettinger
a0b8d9ad2d
Silence a compiler warning.
2009-03-19 19:24:43 +00:00
Raymond Hettinger
91852ca673
Issue 5381: Add object_pairs_hook to the json module.
2009-03-19 19:19:03 +00:00
Mark Dickinson
6b265f1bf8
Issue 4474: On platforms with sizeof(wchar_t) == 4 and
...
sizeof(Py_UNICODE) == 2, PyUnicode_FromWideChar now converts
each character outside the BMP to the appropriate surrogate pair.
Thanks Victor Stinner for the patch.
(backport of r70452 from py3k to trunk)
2009-03-18 16:07:26 +00:00
Bob Ippolito
d914e3f861
merge json library with simplejson 2.0.9 (issue 4136)
2009-03-17 23:19:00 +00:00
Georg Brandl
4c95e091d6
#5496 : fix docstring of lookup().
2009-03-15 21:32:06 +00:00
Raymond Hettinger
56411aac79
For collections.deque() objects, expose the maxlen parameter as a read-only attribute.
2009-03-10 12:50:59 +00:00
Raymond Hettinger
bac769bb5e
Small optimization for corner case where maxlen==0.
2009-03-10 09:31:48 +00:00
Guilherme Polo
3768b2f4ce
Fixed issue #4792 : Prevent a segfault in _tkinter by using the
...
guaranteed to be safe interp argument given to the PythonCmd in place
of the Tcl interpreter taken from a PythonCmd_ClientData.
2009-03-07 01:47:49 +00:00
Hirokazu Yamamoto
264fc12fbf
Issue #5385 : Fixed mmap crash after resize failure on windows.
...
Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle
because CreateFileMapping returns NULL when error occurs.
2009-03-05 14:21:12 +00:00
Hirokazu Yamamoto
8355155f22
Fixed memory leak.
2009-03-03 22:05:57 +00:00
Kristján Valur Jónsson
7705d0aaaf
Fix SHA_new and MD5_new, that would crash if not given initial data
2009-03-03 03:20:42 +00:00
Mark Dickinson
de28d6841e
Issue #5393 : typo in cmath.cos and cmath.cosh docstring
2009-02-28 15:50:40 +00:00
Hirokazu Yamamoto
b0e10c760c
Issue #1733986 : Fixed mmap crash in accessing elements of second map object
...
with same tagname but larger size than first map. (Windows)
2009-02-28 12:13:07 +00:00
Hirokazu Yamamoto
f2dc885780
Issue #5386 : mmap.write_byte didn't check map size, so it could cause buffer
...
overrun.
2009-02-28 10:31:54 +00:00
Benjamin Peterson
873389dbd8
fix compiler warnings
2009-02-21 23:09:33 +00:00
Mark Dickinson
3e4caeb3bf
Issue #5341 : Fix a variety of spelling errors.
2009-02-21 20:27:01 +00:00
Raymond Hettinger
aa681c7b99
Fix keyword arguments for itertools.count().
...
Step arg without a start arg was ignored.
2009-02-21 07:17:22 +00:00
Raymond Hettinger
182edaefb5
Add keyword arg support to itertools.repeat().
2009-02-19 02:38:25 +00:00
Raymond Hettinger
2e2909f584
Add keyword arg support to itertools.compress().
2009-02-19 02:15:14 +00:00
Raymond Hettinger
08259e8f25
Py3k warnings now automatically include -Qwarn for division.
2009-02-18 23:10:19 +00:00
Hirokazu Yamamoto
17a837e4db
Issue #5282 : Fixed mmap resize on 32bit windows and unix. When offset > 0,
...
The file was resized to wrong size.
2009-02-17 13:17:26 +00:00