Antoine Pitrou
526e421b12
Issue #7385 : Fix a crash in `MemoryView_FromObject` when
...
`PyObject_GetBuffer` fails. Patch by Florent Xicluna.
2010-02-02 22:36:17 +00:00
Antoine Pitrou
f3fa074703
- Issue #6939 : Fix file I/O objects in the `io` module to keep the original
...
file position when calling `truncate()`. It would previously change the
file position to the given argument, which goes against the tradition of
ftruncate() and other truncation APIs. Patch by Pascal Chambon.
2010-01-31 22:26:04 +00:00
Benjamin Peterson
46bff79d1f
be robust against test being run over and over (such as -R)
2010-01-30 23:28:38 +00:00
Benjamin Peterson
a04ae012ce
move test outside WITH_THREAD section
2010-01-30 23:26:05 +00:00
Mark Dickinson
a36507c64c
Issue #7767 : Add new C-API function PyLong_AsLongLongAndOverflow, a
...
long long variant of PyLong_AsLongAndOverflow. Patch by Case Van
Horsen.
2010-01-30 10:08:33 +00:00
Mark Dickinson
36ecd676ea
Issue #7788 : Fix a crash produced by deleting a list slice with huge
...
step value. Patch by Marcin Bachry.
2010-01-29 17:11:39 +00:00
Matthias Klose
0d948ac90c
- Expat: Fix DoS via XML document with malformed UTF-8 sequences
...
(CVE_2009_3560).
2010-01-22 00:39:04 +00:00
Gregory P. Smith
6b3573009a
Do not compile stubs for the sha2 series hashes in the openssl hashlib
...
module when the openssl version is too old to support them. That
leads both compiled code bloat and to unittests attempting to test
implementations that don't exist for comparison purposes on such
platforms.
2010-01-19 08:19:03 +00:00
Ronald Oussoren
a55af9a9db
- Issue #7658 : Ensure that the new pythonw executable works on OSX 10.4
...
- Issue #7714 : Use ``gcc -dumpversion`` to detect the version of GCC on
MacOSX.
- Make configure look for util.h as well as libutil.h. The former
is the header file that on OSX contains the defition of openpty.
(Needed to compile for OSX 10.4 on OSX 10.6)
- Use the correct definition of CC to compile the pythonw executable
2010-01-17 16:25:57 +00:00
Antoine Pitrou
db983a7c38
Followup to #7703 : a2b_hqx() didn't follow the new buffer API (neither in trunk
...
nor in py3k). Patch by Florent Xicluna as well as additional tests.
2010-01-16 17:45:56 +00:00
Antoine Pitrou
c391ad007b
Issue #7701 : Fix crash in binascii.b2a_uu() in debug mode when given a
...
1-byte argument. Patch by Victor Stinner.
2010-01-15 00:18:00 +00:00
Antoine Pitrou
efdddd3370
Issue #3299 : Fix possible crash in the _sre module when given bad
...
argument values in debug mode. Patch by Victor Stinner.
2010-01-14 17:25:24 +00:00
Antoine Pitrou
fd3a60d5ef
Issue #7703 : Add support for the new buffer API to functions of the
...
binascii module. Backported from py3k by Florent Xicluna, with some
additional tests.
2010-01-14 16:27:09 +00:00
Antoine Pitrou
8c510e704e
Issue #7661 : Allow ctypes to be built from a non-ASCII directory path.
...
Patch by Florent Xicluna.
2010-01-13 11:47:49 +00:00
Alexandre Vassalotti
b646547bb4
Issue #2333 : Backport set and dict comprehensions syntax.
2010-01-11 22:36:12 +00:00
Alexandre Vassalotti
ee936a2130
Issue #2335 : Backport set literals syntax from Python 3.x.
2010-01-09 23:35:54 +00:00
Antoine Pitrou
8015725d4f
Issue #7092 : Remove py3k warning when importing cPickle. 2to3 handles
...
renaming of `cPickle` to `pickle`. The warning was annoying since there's
no alternative to cPickle if you care about performance. Patch by Florent
Xicluna.
2010-01-08 19:20:17 +00:00
Antoine Pitrou
0d423b870b
Issue #7455 : Fix possible crash in cPickle on invalid input. Patch by
...
Florent Xicluna.
2010-01-07 17:46:49 +00:00
Gregory P. Smith
3b18ff7e8b
remove an obsolete file that should've gone with r77252
2010-01-03 14:56:28 +00:00
Mark Dickinson
f132c16199
Make use of PyLong_AsLongAndOverflow in math_ldexp.
2010-01-03 12:03:03 +00:00
Gregory P. Smith
443ec6875f
Issue #3745 : Undo the requirement for new buffer API only objects to be passed
...
to hashlib functions in python 2.x. The module now uses the 's*' for argument
parsing which auto encodes unicode objects to the system default encoding for
us.
2010-01-02 22:28:48 +00:00
Mark Dickinson
d3e323215c
Refactor some longobject internals: PyLong_AsDouble and _PyLong_AsScaledDouble
...
(the latter renamed to _PyLong_Frexp) now use the same core code. The
exponent produced by _PyLong_Frexp now has type Py_ssize_t instead of the
previously used int, and no longer needs scaling by PyLong_SHIFT. This
frees the math module from having to know anything about the PyLong
implementation. This closes issue #5576 .
2010-01-02 14:45:40 +00:00
Georg Brandl
8cdc9bc901
More yearly updates.
2010-01-01 13:07:05 +00:00
Ezio Melotti
aac4df68d8
#7613 : missing ) in flmodule.c
2009-12-31 13:47:24 +00:00
Amaury Forgeot d'Arc
8645a5c81f
#7413 : Passing '\0' as the separator to datetime.datetime.isoformat()
...
used to drop the time part of the result.
2009-12-29 22:03:38 +00:00
Georg Brandl
fa1ffb69c4
#7595 : fix typo in argument default constant.
2009-12-29 21:09:17 +00:00
Georg Brandl
740cdc3a9f
#7033 : add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring.
2009-12-28 08:34:58 +00:00
Amaury Forgeot d'Arc
2401c03746
Fix a typo in comment
2009-12-27 20:06:44 +00:00
Gregory P. Smith
9f12d468f4
Fix possible integer overflow in lchown and fchown functions. For issue1747858.
2009-12-23 09:31:11 +00:00
Mark Dickinson
1730fdc130
Inverse hyperbolic trigonometric functions should call m_log1p, not log1p.
2009-12-21 15:40:33 +00:00
Mark Dickinson
12748b003c
Issue #7518 : Move substitute definitions of C99 math functions from
...
pymath.c to Modules/_math.c.
2009-12-21 15:22:00 +00:00
Mark Dickinson
bd335bfce7
Additional edge-case tests for test_long_and_overflow.
2009-12-21 12:15:48 +00:00
Mark Dickinson
ed02b3f342
Fix reference counts for test_long_and_overflow.
2009-12-21 11:31:54 +00:00
Mark Dickinson
e31d300664
Issue #7528 : Backport PyLong_AsLongAndOverflow from py3k to trunk.
...
Thanks Case Van Horsen for the patch.
2009-12-21 11:21:25 +00:00
Mark Dickinson
b5e348b305
Add missing tests for PyArg_Parse* with format 'h'
2009-12-20 15:57:56 +00:00
Mark Dickinson
5698977186
math.factorial depends on PyLong_AsLong correctly converting floats; rewrite
...
it to do the conversion explicitly instead. See issue #7550 .
2009-12-20 13:58:18 +00:00
Antoine Pitrou
e812d29b52
Issue #7545 : improve documentation of the `buffering` argument in io.open().
2009-12-19 21:01:10 +00:00
Mark Dickinson
5ff37ae14b
Issue #3366 : Add error function and complementary error function to
...
math module.
2009-12-19 11:07:23 +00:00
Mark Dickinson
9cae178f21
Issue #3366 : Add expm1 function to math module. Thanks Eric Smith for
...
testing on Windows.
2009-12-16 20:13:40 +00:00
Benjamin Peterson
001e4a6c07
add a test of loading the datetime capi
2009-12-13 21:27:53 +00:00
Benjamin Peterson
aef189939e
remove unused variable
2009-12-13 19:27:02 +00:00
Benjamin Peterson
ddd392cbb9
accept None as the same as having passed no argument in file types #7349
...
This is for consistency with imitation file objects like StringIO and BytesIO.
This commit also adds a few tests, where they were lacking for concerned
methods.
2009-12-13 19:19:07 +00:00
Mark Dickinson
9be87bc992
Issue #3366 : Add lgamma function to math module.
2009-12-11 17:29:33 +00:00
Raymond Hettinger
a5fd24e97d
Add a reverse() method to collections.deque().
2009-12-10 06:42:54 +00:00
Raymond Hettinger
0b3263b073
Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d)
2009-12-10 06:00:33 +00:00
Antoine Pitrou
187177fc55
Issue #6986 : Fix crash in the JSON C accelerator when called with the
...
wrong parameter types. Patch by Victor Stinner.
2009-12-08 15:40:51 +00:00
Antoine Pitrou
30b3b35cba
Issue #7333 : The `posix` module gains an `initgroups()` function providing
...
access to the initgroups(3) C library call on Unix systems which implement
it. Patch by Jean-Paul Calderone.
2009-12-02 20:37:54 +00:00
Amaury Forgeot d'Arc
d728871ee1
#7419 : Fix a crash on Windows in locale.setlocale() when the category
...
is outside the allowed range.
2009-12-01 21:51:04 +00:00
Raymond Hettinger
9b4197ba53
Handle step values other than one.
2009-11-30 21:13:52 +00:00
Raymond Hettinger
e09f45a2e3
Issue 7410: deepcopy of itertools.count resets the count
2009-11-30 19:44:40 +00:00