Martin v. Löwis
10525ad313
Fix integer negation and absolute value to not rely
...
on undefined behaviour of the C compiler anymore.
2006-10-04 05:47:47 +00:00
Barry Warsaw
a027bac30a
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
...
test for parts > 3 when we use .split(..., 2).
2006-10-04 01:28:43 +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
Martin v. Löwis
da70fd1599
Fix test for uintptr_t. Fixes #1568842 .
2006-10-02 14:56:15 +00:00
Georg Brandl
0988904df8
Bug #1546052 : clarify that PyString_FromString(AndSize) copies the
...
string pointed to by its parameter.
(backport from rev. 52078)
2006-09-30 12:03:02 +00:00
Georg Brandl
1206a933cc
Bug #1446043 : correctly raise a LookupError if an encoding name given
...
to encodings.search_function() contains a dot.
(backport from rev. 52075)
2006-09-30 11:22:35 +00:00
Georg Brandl
6d7c36332f
Bug #1556784 : allow format strings longer than 127 characters in
...
datetime's strftime function.
(backport from rev. 52072)
2006-09-30 11:17:43 +00:00
Georg Brandl
7037745be7
Bug #1560617 : in pyclbr, return full module name not only for classes,
...
but also for functions.
(backport from rev. 52069)
2006-09-30 11:06:55 +00:00
Georg Brandl
9c9a9ab634
Bug #1566602 : correct failure of posixpath unittest when $HOME ends
...
with a slash.
(backport from rev. 52065)
2006-09-30 09:13:29 +00:00
Georg Brandl
ad4e11e16d
Bug #1566663 : remove obsolete example from datetime docs.
...
(backport from rev. 52063)
2006-09-30 09:06:49 +00:00
Georg Brandl
506cc189a9
Bug #1566800 : make sure that EnvironmentError can be called with any
...
number of arguments, as was the case in Python 2.4.
(backport from rev. 52061)
2006-09-30 09:03:45 +00:00
Georg Brandl
af4337a017
Patch #1567691 : super() and new.instancemethod() now don't accept
...
keyword arguments any more (previously they accepted them, but didn't
use them).
(backport from rev. 52058)
2006-09-30 08:43:50 +00:00
Georg Brandl
bbcb2814f2
Bug #1565661 : in webbrowser, split() the command for the default
...
GNOME browser in case it is a command with args.
(backport from rev. 52056)
2006-09-30 07:32:00 +00:00
Georg Brandl
2b48f9490f
Bug #1567375 : a minor logical glitch in example description.
...
(backport from rev. 52053)
2006-09-30 07:24:56 +00:00
Gregory P. Smith
6fed7937c6
fix: DB.stat flags and txn keyword arguments were backwards.
2006-09-30 06:05:07 +00:00
George Yoshida
bd42596179
SF bug #1567976 : fix typo(backport from r52048)
...
Since this paragraph is about exception's message attribute(2.5 feature),
I will not backport to 2.4 branch.
2006-09-30 05:22:23 +00:00
Andrew M. Kuchling
a4103a3248
Make examples do error checking on Py_InitModule
2006-09-27 19:24:27 +00:00
Georg Brandl
c57221e158
Backport rev. 51972:
...
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.
2006-09-25 07:04:10 +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
Georg Brandl
b14b59fcf9
Backport rev. 51987: superfluous semicola.
2006-09-25 06:53:42 +00:00
Georg Brandl
edd81b2402
Fix a bug in traceback.format_exception_only() that led to an error
...
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)
2006-09-24 12:50:28 +00:00
Georg Brandl
a6b9ce185e
Fix a bug in the parser's future statement handling that led to "with"
...
not being recognized as a keyword after, e.g., this statement:
from __future__ import division, with_statement
(backport from rev. 51993)
2006-09-24 12:35:40 +00:00
Georg Brandl
1f21578965
Fix webbrowser.BackgroundBrowser on Windows.
...
(backport from rev. 51991)
2006-09-24 10:36:08 +00:00
Neal Norwitz
af4e3ee365
SF Bug #1563963 , add missing word and cleanup first sentance
2006-09-23 18:10:12 +00:00
Jack Diederich
6cc16bec17
added itertools.count(-n) fix
2006-09-21 20:38:39 +00:00
Jack Diederich
187e64806f
backport of r51950
...
* 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
2006-09-21 18:32:11 +00:00
Brett Cannon
c70e003f75
Backport of fix to allow exception instances to be sliced once again.
2006-09-21 18:12:15 +00:00
Anthony Baxter
7dcdeaf1f7
Tagging for release of Python 2.5
2006-09-19 01:05:18 +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
347f3cc40f
better wording
2006-09-18 06:45:59 +00:00
Martin v. Löwis
cf783eb1db
Mention that GCC 4.1 is also affected, and that
...
adding -fwrapv helps.
2006-09-18 06:23:06 +00:00
Martin v. Löwis
885d8e7737
Discourage using GCC 4.2 for Python.
2006-09-18 06:00:52 +00:00
Ronald Oussoren
736fc567b2
Workaround for bug #1558983
...
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.
2006-09-17 18:40:15 +00:00
Fred Drake
137c789e83
revise explanation of returns_unicode to reflect bool values
...
and to include the default value
2006-09-15 16:10:25 +00:00
Fred Drake
2e63dbe9ac
- fix module name in links in formatted documentation
...
- minor markup cleanup
2006-09-15 14:14:55 +00:00
Georg Brandl
77aad9a09b
Backport uuid doc cleanup from rev. 51883.
2006-09-15 05:26:17 +00:00
Georg Brandl
fe20482a46
Correct elementtree module index entry.
...
(backport)
2006-09-15 05:20:57 +00:00
Georg Brandl
44850ea12a
Backport rev 51866-51868 from trunk (sqlite3 documentation fixes).
2006-09-14 05:05:42 +00:00
Martin v. Löwis
af22c52fd4
Add sgml_input.html.
2006-09-12 09:16:28 +00:00
Anthony Baxter
29be05444f
Tagging for release of Python 2.5c2
2006-09-12 01:00:45 +00:00
Anthony Baxter
72345f2a0b
remove 2.5 final section from NEWS.txt until after rc2 (reduced confusion)
2006-09-11 15:32:50 +00:00
Anthony Baxter
2d4183c5f6
preparing for 2.5c2
2006-09-11 15:30:13 +00:00
Neal Norwitz
0bcafac29e
Building with HP's cc on HP-UX turned up a couple of problems.
...
_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.)
2006-09-11 08:51:17 +00:00
Neal Norwitz
ece448efa0
Properly handle a NULL returned from PyArena_New().
...
Klocwork #364 . Will port to head.
2006-09-11 04:06:23 +00:00
Neal Norwitz
48829ba61d
As mentioned on python-dev, reverting patch #1504333 because it introduced
...
an infinite loop in rev 47154.
This patch also adds a test to prevent the regression.
Will backport to 2.4 and head later.
2006-09-11 04:05:18 +00:00
Neal Norwitz
2e488fdebf
Add NEWS entries for ctypes backports.
2006-09-11 04:03:07 +00:00
Neal Norwitz
5728c27c74
Backport rev 51820 from Thomas Heller
...
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.
2006-09-11 04:02:43 +00:00
Neal Norwitz
71e2aa0cc5
Backport rev 51819 from Thomas Heller
...
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).
2006-09-11 04:01:57 +00:00
Brett Cannon
19d76c5aa8
Remove __unicode__ method so that ``unicode(BaseException)`` succeeds.
...
Fixes bug #1551432 .
2006-09-09 07:18:44 +00:00
Andrew M. Kuchling
b3304c129f
Fix typo in example
2006-09-08 14:06:42 +00:00