Mark Dickinson
20d7f6e8f4
Remove the redundant #define: PY_STRUCT_FLOAT_COERCE
2010-03-05 14:50:22 +00:00
Mark Dickinson
1c0c78c61f
Fix incorrect stacklevel for DeprecationWarnings originating from the struct module.
...
Also clean up related tests in test_struct.
The stacklevel fix should be backported to 2.6 once that branch is unfrozen.
2010-03-05 14:36:20 +00:00
Gerhard Häring
3bbb67273a
Merged code from pysqlite 2.6.0.
2010-03-05 09:12:37 +00:00
Victor Stinner
7c924ec925
Issue #1054943 : Fix unicodedata.normalize('NFC', text) for the Public Review
...
Issue #29 .
PR #29 was released in february 2004!
2010-03-04 12:09:33 +00:00
Victor Stinner
56a5153e21
Issue #7494 : fix a crash in _lsprof (cProfile) after clearing the profiler,
...
reset also the pointer to the current pointer context.
2010-03-04 00:10:12 +00:00
Victor Stinner
71fb87e64c
Issue #7544 : Preallocate thread memory before creating the thread to avoid a
...
fatal error in low memory condition.
2010-03-03 23:20:25 +00:00
Victor Stinner
2379bb664a
Issue #3299 : fix curses.panel.new_panel() error handler, replace PyObject_DEL()
...
by Py_DECREF() to avoid a crash in pydebug mode.
Use po->wo==NULL to detect than the panel is in the lop list or not.
2010-03-03 21:53:41 +00:00
Victor Stinner
c951d56f9a
Issue #3299 : fix thread.allocate_lock() error handler, replace PyObject_Del()
...
by Py_DECREF() to fix a crash in pydebug mode.
2010-03-03 00:43:44 +00:00
Victor Stinner
3f75cc5cb5
Issue #2973 : Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
...
method->d2i(): OpenSSL API changed in OpenSSL 0.9.6m. Patch written by Daniel
Black.
2010-03-02 22:44:42 +00:00
Benjamin Peterson
41162ebdad
remove CVS id
2010-03-01 23:25:13 +00:00
Florent Xicluna
e7901c5ebb
#7808 : Fix reference leaks in _bsddb and related tests.
2010-03-01 20:45:01 +00:00
Gregory P. Smith
6a65f85e79
Fixes issue #7999 : os.setreuid() and os.setregid() would refuse to accept
...
a -1 parameter on some platforms such as OS X.
2010-03-01 05:43:43 +00:00
Gregory P. Smith
4b862365c8
Fix for r78527. It left out updating forkpty.
2010-03-01 02:31:33 +00:00
Gregory P. Smith
9e5d1327f8
Issue #7242 : On Solaris 9 and earlier calling os.fork() from within a
...
thread could raise an incorrect RuntimeError about not holding the import
lock. The import lock is now reinitialized after fork.
2010-03-01 01:22:39 +00:00
Amaury Forgeot d'Arc
adfc80bd81
#4852 : Remove dead code in every thread implementation, unused for many years.
2010-02-23 23:19:39 +00:00
Georg Brandl
ea370a9edd
#6544 : fix refleak in kqueue, occurring in certain error conditions.
2010-02-23 21:48:57 +00:00
Thomas Heller
92bd059c67
ctypes CThunkObject was not registered correctly with the cycle
...
garbage collector, leading to possible leaks when using callback
functions.
2010-02-23 20:11:44 +00:00
Andrew M. Kuchling
4b81bc7fe6
#7706 : add include guards where they're missing; required for Windows CE
2010-02-22 23:12:00 +00:00
Andrew M. Kuchling
72aae73d47
Fix comment typo
2010-02-22 18:38:23 +00:00
Andrew M. Kuchling
38c123651c
#7597 : curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen
2010-02-22 16:26:47 +00:00
Mark Dickinson
d5fdc069fa
Silence more 'comparison between signed and unsigned' warnings.
2010-02-14 13:40:30 +00:00
Ronald Oussoren
333fca9b3e
Add guard around the prototype for completion_matches to enable
...
compilition with libedit on OSX 10.5
2010-02-11 13:13:08 +00:00
Antoine Pitrou
d840e5174d
Issue #4772 : Raise a ValueError when an unknown Bluetooth protocol is
...
specified, rather than fall through to AF_PACKET (in the `socket` module).
Also, raise ValueError rather than TypeError when an unknown TIPC address
type is specified. Patch by Brian Curtin.
2010-02-04 20:20:18 +00:00
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