Commit Graph

1263 Commits

Author SHA1 Message Date
Georg Brandl
ad4b263ba7 Fix #1752132: wrong comment in opcode description.
(backport from rev. 56280)
2007-07-11 19:41:53 +00:00
Martin v. Löwis
7d18356db7 Provide PY_LLONG_MAX on all systems having long long. 2007-06-13 03:42:55 +00:00
Martin v. Löwis
390240d0b1 Backport r55845: Provide LLONG_MAX for S390. 2007-06-09 12:57:46 +00:00
Martin v. Löwis
2276885acd Patch #1733960: Allow T_LONGLONG to accept ints. 2007-06-09 08:01:33 +00:00
Kristján Valur Jónsson
a1392d5ace Merge change 54982 from the trunk. This fixes the test_subprocess test in the testsuite for VisualStudio2005 builds, by "sanitizing" the "mode" that is used in the posixmodule's fdopen(). In particular the non-standard "U" mode character is removed. 2007-05-07 19:25:38 +00:00
Anthony Baxter
ef57abdb60 2.5.1 final 2007-04-18 03:35:45 +00:00
Anthony Baxter
9515c96cb0 preparing for 2.5.1c1 2007-04-05 04:52:06 +00:00
Raymond Hettinger
f94e89c578 Extend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability. 2007-03-20 21:45:04 +00:00
Collin Winter
e19d7a3c0a Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.
Backported from r54291.
2007-03-12 16:49:23 +00:00
Raymond Hettinger
1bff796983 Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash(). 2007-02-19 03:04:45 +00:00
Martin v. Löwis
9d179ce4f9 Prefix AST symbols with _Py_. Fixes #1637022. 2007-01-19 06:42:33 +00:00
Martin v. Löwis
e67b3497c9 Patch #1580872: Remove duplicate declaration of PyCallable_Check. 2006-10-22 10:47:28 +00:00
Martin v. Löwis
33bb6102ec Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h.
2006-10-02 15:24:01 +00:00
Georg Brandl
934c90de0d Backport rev. 51971:
Fix %zd string formatting on Mac OS X so it prints negative numbers.

In addition to testing positive numbers, verify negative numbers work in configure.
In order to avoid compiler warnings on OS X 10.4, also change the order of the check
for the format character to use (PY_FORMAT_SIZE_T) in the sprintf format
for Py_ssize_t.  This patch changes PY_FORMAT_SIZE_T from "" to "l" if it wasn't
defined at configure time.  Need to verify the buildbot results.
2006-09-25 06:58:00 +00:00
Anthony Baxter
2d8697f32c Preparing for 2.5 final.
(damn, it's nice to see the line
  #define PY_VERSION              "2.5"
in patchlevel.h)
2006-09-18 06:51:50 +00:00
Anthony Baxter
2d4183c5f6 preparing for 2.5c2 2006-09-11 15:30:13 +00:00
Neal Norwitz
d6f8629b20 SF #1542693: Remove semi-colon at end of PyImport_ImportModuleEx macro 2006-08-19 04:19:43 +00:00
Anthony Baxter
798ed8f076 preparing for 2.5c1 - no, really this time 2006-08-16 03:58:37 +00:00
Anthony Baxter
b409666e8c preparing for 2.5c1 2006-08-16 03:42:26 +00:00
Marc-André Lemburg
040f76b79c Slightly revised version of patch #1538956:
Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.

All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
2006-08-14 10:55:19 +00:00
Neal Norwitz
8a87f5d37e Patch #1538606, Patch to fix __index__() clipping.
I modified this patch some by fixing style, some error checking, and adding
XXX comments.  This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward.  I don't want this to hold up release if possible.
2006-08-12 17:03:09 +00:00
Anthony Baxter
5d32a9f188 pre-release machinations 2006-08-02 07:43:09 +00:00
Neal Norwitz
c5e060dee6 _PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long. 2006-08-02 06:14:22 +00:00
Neal Norwitz
07aadb14f3 Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn().
This provides the proper warning for struct.pack().
PyErr_Warn() is now deprecated in favor of PyErr_WarnEx().
As mentioned by Tim Peters on python-dev.
2006-07-30 06:55:48 +00:00
Tim Peters
32a8361f2d After approval from Anthony, merge the tim-current_frames
branch into the trunk.  This adds a new sys._current_frames()
function, which returns a dict mapping thread id to topmost
thread stack frame.
2006-07-10 21:08:24 +00:00