Georg Brandl
6a57c08dc8
#1326 : document and test zipimporter.archive and zipimporter.prefix.
2008-05-11 15:05:13 +00:00
Alexandre Vassalotti
9510e4a9f8
Added module stub for copy_reg renaming in 3.0.
...
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
2008-05-11 08:25:28 +00:00
Brett Cannon
7595c1a36b
Flesh out the 3.0 deprecation to suggest using the ctypes module.
2008-05-11 01:09:32 +00:00
Brett Cannon
df0a717037
The linuxaudidev module has been deprecated for removal in Python 3.0.
2008-05-11 00:50:51 +00:00
Brett Cannon
7f874fce63
Deprecate the dl module for removal in 3.0.
2008-05-10 21:20:19 +00:00
Brett Cannon
768d44f54d
Deprecate the bsddb185 module for removal in 3.0.
2008-05-10 02:47:54 +00:00
Brett Cannon
9ac3974de8
Deprecate the pure module for 3.0.
2008-05-09 22:51:58 +00:00
Alexandre Vassalotti
1aed624f7c
Backport fast alternate io.BytesIO implementation.
...
Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844,
r62846, r62952, r62956.
2008-05-09 21:49:43 +00:00
Mark Dickinson
f8476c1573
Issue #2487 . math.ldexp(x, n) raised OverflowError when n was large and
...
negative; fix to return an (appropriately signed) zero instead.
2008-05-09 17:54:23 +00:00
Christian Heimes
af748c3ab8
Implemented PEP 370
2008-05-06 22:41:46 +00:00
Christian Heimes
c8a0d2f368
Intern static string
...
Use float constructors instead of magic code for float constants
2008-05-06 16:18:41 +00:00
Brett Cannon
4b964f9c90
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
...
Ippolito.
Closes issue #2750 .
2008-05-05 20:21:38 +00:00
Gerhard Häring
e11c9b3dfd
Implemented feature request 2157: Converter names are cut off at '('
...
characters. This avoids the common case of something like 'NUMBER(10)' not
being parsed as 'NUMBER', like expected. Also corrected the docs about
converter names being case-sensitive. They aren't any longer.
2008-05-04 13:42:44 +00:00
Gerhard Häring
5a366c3b8b
Applied sqliterow-richcmp.diff patch from Thomas Heller in Issue2152. The
...
sqlite3.Row type is now correctly hashable.
2008-05-04 13:15:12 +00:00
Gerhard Häring
ffa3357d52
SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
...
#ifdefing was useless.
2008-05-04 12:59:57 +00:00
Brett Cannon
8dc4303297
Rename the test_traceback_print() function to traceback_print() to prevent
...
test_capi from automatically calling the function.
2008-04-28 04:50:06 +00:00
Brett Cannon
141534e56f
Fix a bug introduced by the warnings rewrite where tracebacks were being
...
improperly indented.
Closes issue #2699 .
2008-04-28 03:23:50 +00:00
Benjamin Peterson
f19a7b90bd
A little reformating of Py3k warnings
2008-04-27 18:40:21 +00:00
Benjamin Peterson
9f4f48114f
Use PyErr_WarnPy3k throughout
2008-04-27 03:01:45 +00:00
Georg Brandl
a6b79f3b11
Add missing return type to dealloc.
2008-04-26 18:32:17 +00:00
Thomas Heller
6ad5fbb7ea
Add from_buffer and from_buffer_copy class methods to ctypes types.
2008-04-25 15:44:16 +00:00
Thomas Heller
bf027c48c8
Remove cyclic reference in CFuncPtr instances; see issue #2682 .
...
Backport candidate for the release25-maint branch.
2008-04-24 18:14:19 +00:00
Martin v. Löwis
83c9201465
Fix typo.
2008-04-24 13:17:24 +00:00
Mark Dickinson
0da94c8a34
Silence 'r may be used uninitialized' compiler warning.
2008-04-21 01:55:50 +00:00
Mark Dickinson
92483cd8da
math.atan2 is misbehaving on Windows; this patch
...
should fix the problem in the same way that
the cmath.phase problems were fixed.
2008-04-20 21:39:04 +00:00
Mark Dickinson
c632301bd4
Even more fixes for alpha Tru64, this time for
...
the phase and polar methods.
2008-04-20 18:30:05 +00:00
Mark Dickinson
98c317a34d
Issue 2662: Initialize special value tables dynamically (i.e. when
...
cmath module is loaded) instead of statically. This fixes compile-time
problems on platforms where HUGE_VAL is an extern variable rather than
a constant.
Thanks Hirokazu Yamamoto for the patch.
2008-04-20 16:13:17 +00:00
Mark Dickinson
cec3f138d8
Yet more explicit special case handling to make
...
math.pow behave on alpha Tru64. All IEEE 754
special values are now handled directly; only
the finite**finite case is handled by libm.
2008-04-20 04:13:13 +00:00
Mark Dickinson
b2f7090239
FreeBSD doesn't follow C99 for modf(inf); so add explicit
...
special-value handling to math.modf code.
2008-04-20 01:39:24 +00:00
Mark Dickinson
a1293eb65f
Additional special-case handling for math.pow.
...
Windows/VS2008 doesn't like (-1)**(+-inf).
2008-04-19 19:41:52 +00:00
Mark Dickinson
e941d97d12
Additional tests for math.pow, and extra special-case
...
handling code in math.pow, in the hope of making all
tests pass on the alpha Tru64 buildbot.
2008-04-19 18:51:48 +00:00
Christian Heimes
6f34109384
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
...
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
2008-04-18 23:13:07 +00:00
Thomas Heller
046e6a43ff
Issue #2616 : Implement ctypes.pointer() and ctypes.POINTER() in C for
...
better performance.
2008-04-14 16:10:07 +00:00
Georg Brandl
41a0a37c08
Improve -X error message.
2008-04-13 20:50:29 +00:00
Brett Cannon
e974689038
Re-implement the 'warnings' module in C. This allows for usage of the
...
'warnings' code in places where it was previously not possible (e.g., the
parser). It could also potentially lead to a speed-up in interpreter start-up
if the C version of the code (_warnings) is imported over the use of the
Python version in key places.
Closes issue #1631171 .
2008-04-12 23:44:07 +00:00
Gregory P. Smith
73bee444ab
fix compiler warnings
2008-04-12 20:37:48 +00:00
Christian Heimes
7a98d2730c
Applied patch #2617 from Frank Wierzbicki wit some extras from me
...
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
2008-04-12 13:03:03 +00:00
Thomas Heller
d3ed492164
Performance improvements.
2008-04-11 14:20:26 +00:00
Thomas Heller
12c4e6478a
Move backwards compatibility macro to the correct place;
...
PyIndex_Check() was introduced in Python 2.5.
2008-04-11 13:05:38 +00:00
Gregory P. Smith
79e42a0e08
Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
...
It tried to allocate negative or zero memory. That fails.
2008-04-09 00:25:17 +00:00
Amaury Forgeot d'Arc
7adc776ea6
Issue 2408: remove the _types module
...
It was only used as a helper in types.py to access types (GetSetDescriptorType and MemberDescriptorType),
when they can easily be obtained with python code.
These expressions even work with Jython.
I don't know what the future of the types module is; (cf. discussion in http://bugs.python.org/issue1605 )
at least this change makes it simpler.
2008-04-08 22:07:05 +00:00
Gregory P. Smith
c20adf8ef2
Use the new PyFile_IncUseCount & PyFile_DecUseCount calls appropriatly
...
within the standard library. These modules use PyFile_AsFile and later
release the GIL while operating on the previously returned FILE*.
2008-04-07 06:33:21 +00:00
Skip Montanaro
28112d0cb6
type
2008-04-06 17:05:57 +00:00
Skip Montanaro
9e0fa7a13e
Declare inittimezone static.
2008-04-05 19:47:47 +00:00
Thomas Heller
c4ef47611f
More files from libffi 3.0.5.
...
Removed libffi.pc.in because it is not needed for ctypes.
2008-04-04 19:14:42 +00:00
Thomas Heller
e1929d5133
Sync with files from the just released libffi 3.0.5 version.
2008-04-04 16:01:54 +00:00
Thomas Heller
8e8ba151dd
Issue #2543 : Make ctypes compatible (again) with Python 2.3, 2.4, and 2.5.
2008-04-04 08:35:44 +00:00
Guido van Rossum
b1ba750226
Remove the advertising clause from the BSD license in timing.h.
...
I have the email trail to prove that George Neville-Neil approved this.
2008-04-01 23:57:36 +00:00
Georg Brandl
91e0cdaedc
Backport #1442 : report exception when startup file cannot be run.
2008-03-29 01:50:06 +00:00
Amaury Forgeot d'Arc
94eba715ad
Repair compilation for Visual Studio 2005.
...
I applied the same changes manually to VS7.1 and VC6 files; completely untested.
(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
2008-03-28 21:55:29 +00:00