| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(backport from rev. 52053)
|
| |
|
|
|
|
|
| |
Since this paragraph is about exception's message attribute(2.5 feature),
I will not backport to 2.4 branch.
|
| |
|
|
|
|
|
|
|
| |
Bug #1557232: fix seg fault with def f((((x)))) and def f(((x),)).
These tests should be improved. Hopefully this fixes variations when
flipping back and forth between fpdef and fplist.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
being raised when print_exc() was called without an exception set.
In version 2.4, this printed "None", restored that behavior.
(backport from rev. 51995)
|
|
|
|
|
|
| |
not being recognized as a keyword after, e.g., this statement:
from __future__ import division, with_statement
(backport from rev. 51993)
|
|
|
|
| |
(backport from rev. 51991)
|
| |
|
| |
|
|
|
|
|
|
| |
* regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t
which breaks negative counts
* added test for negative numbers
|
| |
|
| |
|
|
|
|
|
|
| |
(damn, it's nice to see the line
#define PY_VERSION "2.5"
in patchlevel.h)
|
| |
|
|
|
|
| |
adding -fwrapv helps.
|
| |
|
|
|
|
|
|
|
|
| |
There is an issue with custom icons on directories in the 2.5c2 installer,
don't set a custom icon on "/Applications/MacPython 2.5" for now.
Also make sure that the installer doesn't crap out when the Makefile in the
system's python installation has other customizations than we expect.
|
|
|
|
| |
and to include the default value
|
|
|
|
| |
- minor markup cleanup
|
| |
|
|
|
|
| |
(backport)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_PyGILState_NoteThreadState was declared as static inconsistently.
Make it static as it's not necessary outside of this module.
Some tests failed because errno was reset to 0. (I think the tests
that failed were at least: test_fcntl and test_mailbox).
Ensure that errno doesn't change after a call to Py_END_ALLOW_THREADS.
This only affected debug builds.
This needs to be ported to HEAD. I'll try to remember to do that tomorrow.
(Anyone, feel free to port it.)
|
|
|
|
| |
Klocwork #364. Will port to head.
|
|
|
|
|
|
|
|
| |
an infinite loop in rev 47154.
This patch also adds a test to prevent the regression.
Will backport to 2.4 and head later.
|
| |
|
|
|
|
|
|
| |
The cast function did not accept c_char_p or c_wchar_p instances
as first argument, and failed with a 'bad argument to internal function'
error message.
|
|
|
|
|
|
| |
Anonymous structure fields that have a bit-width specified did not work,
and they gave a strange error message from PyArg_ParseTuple:
function takes exactly 2 arguments (3 given).
|
|
|
|
| |
Fixes bug #1551432.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
fix setobject.c refcounts and error checks.
|
|
|
|
|
|
|
|
|
| |
Fixed a few bugs on cjkcodecs:
- gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
- iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
codepoints to conform the standard.
- iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2
codepoints now.
|
| |
|
|
|
|
|
| |
place of sys.stdout while running tests. Removing one more test
to make buildbot happy.
|
|
|
|
|
|
|
|
|
| |
Let's try that once more. Buildbots were broken last time, but probably
because tests were sending data to stderr for testing it (sending to a
file doesn't touch the problem).
The fix is still the same, but tests were reduced (removing tests to
be able to fix something is weird, but oh well).
|
| |
|
|
|
|
| |
(backport from rev. 51785)
|
|
|
|
|
|
|
|
|
| |
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'm not 1000% sure about the non-NULL, raise
a RuntimeError for safety.
This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
|
|
|
|
|
|
| |
Also make sure that every exception class has __module__ set to
'exceptions'.
(backport)
|
|
|
|
|
| |
imports (if not in package and if beyond toplevel package).
(backport from rev. 51765)
|