]> granicus.if.org Git - python/log
python
18 years agoReally address the issue of where to place the assert for leftblock.
Neal Norwitz [Sun, 13 Aug 2006 18:13:02 +0000 (18:13 +0000)]
Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)

18 years agoHandle failure from PyModule_GetDict() (Klocwork 208).
Neal Norwitz [Sun, 13 Aug 2006 18:12:45 +0000 (18:12 +0000)]
Handle failure from PyModule_GetDict() (Klocwork 208).

Fix a bunch of refleaks in the init of the module.  This would only be found
when running python -v.

18 years agoHandle failures from lookup.
Neal Norwitz [Sun, 13 Aug 2006 18:12:26 +0000 (18:12 +0000)]
Handle failures from lookup.

Klocwork 341-342

18 years agoIt's very unlikely, though possible that source is not a string. Verify
Neal Norwitz [Sun, 13 Aug 2006 18:12:03 +0000 (18:12 +0000)]
It's very unlikely, though possible that source is not a string.  Verify
that PyString_AsString() returns a valid pointer.  (The problem can
arise when zlib.decompress doesn't return a string.)

Klocwork 346

18 years agoHandle malloc and fopen failures more gracefully.
Neal Norwitz [Sun, 13 Aug 2006 18:11:43 +0000 (18:11 +0000)]
Handle malloc and fopen failures more gracefully.

Klocwork 180-181

18 years agoCheck return result of PyModule_GetDict().
Neal Norwitz [Sun, 13 Aug 2006 18:11:27 +0000 (18:11 +0000)]
Check return result of PyModule_GetDict().
Fix a bunch of refleaks in the init of the module.  This would only be found
when running python -v.

18 years agoFix segfault when doing string formatting on subclasses of long if
Neal Norwitz [Sun, 13 Aug 2006 18:11:08 +0000 (18:11 +0000)]
Fix segfault when doing string formatting on subclasses of long if
__oct__, __hex__ don't return a string.

Klocwork 308

18 years agocpathname could be NULL if it was longer than MAXPATHLEN. Don't try
Neal Norwitz [Sun, 13 Aug 2006 18:10:47 +0000 (18:10 +0000)]
cpathname could be NULL if it was longer than MAXPATHLEN.  Don't try
to write the .pyc to NULL.

Check results of PyList_GetItem() and PyModule_GetDict() are not NULL.

Klocwork 282, 283, 285

18 years agoHandle a whole lot of failures from PyString_FromInternedString().
Neal Norwitz [Sun, 13 Aug 2006 18:10:28 +0000 (18:10 +0000)]
Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.

18 years agoMove/copy assert for tstate != NULL before first use.
Neal Norwitz [Sun, 13 Aug 2006 18:10:10 +0000 (18:10 +0000)]
Move/copy assert for tstate != NULL before first use.
Verify that PyEval_Get{Globals,Locals} returned valid pointers.

Klocwork 231-232

18 years agoSF bug #1539336, distutils example code missing
Neal Norwitz [Sun, 13 Aug 2006 00:20:49 +0000 (00:20 +0000)]
SF bug #1539336, distutils example code missing

18 years agoFix a couple of bugs exposed by the new __index__ code. The 64-bit buildbots
Neal Norwitz [Sat, 12 Aug 2006 18:44:06 +0000 (18:44 +0000)]
Fix a couple of bugs exposed by the new __index__ code.  The 64-bit buildbots
were failing due to inappropriate clipping of numbers larger than 2**31
with new-style classes. (typeobject.c)  In reviewing the code for classic
classes, there were 2 problems.  Any negative value return could be returned.
Always return -1 if there was an error.  Also make the checks similar
with the new-style classes.  I believe this is correct for 32 and 64 bit
boxes, including Windows64.

Add a test of classic classes too.

18 years agoPatch #1538606, Patch to fix __index__() clipping.
Neal Norwitz [Sat, 12 Aug 2006 17:03:09 +0000 (17:03 +0000)]
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.

18 years agoRepair logging test spew caused by rev. 51206.
Georg Brandl [Sat, 12 Aug 2006 08:32:02 +0000 (08:32 +0000)]
Repair logging test spew caused by rev. 51206.

18 years agoAh, fudge. One of the prints here actually "shouldn't be"
Tim Peters [Sat, 12 Aug 2006 05:17:41 +0000 (05:17 +0000)]
Ah, fudge.  One of the prints here actually "shouldn't be"
protected by "if verbose:", which caused the test to fail on
all non-Windows boxes.

Note that I deliberately didn't convert this to unittest yet,
because I expect it would be even harder to debug this on Tru64
after conversion.

18 years agotest_signal: Signal handling on the Tru64 buildbot
Tim Peters [Sat, 12 Aug 2006 04:42:47 +0000 (04:42 +0000)]
test_signal:  Signal handling on the Tru64 buildbot
appears to be utterly insane.  Plug some theoretical
insecurities in the test script:

- Verify that the SIGALRM handler was actually installed.

- Don't call alarm() before the handler is installed.

- Move everything that can fail inside the try/finally,
  so the test cleans up after itself more often.

- Try sending all the expected signals in
  force_test_exit(), not just SIGALRM.  Since that was
  fixed to actually send SIGALRM (instead of invisibly
  dying with an AttributeError), we've seen that sending
  SIGALRM alone does not stop this from hanging.

- Move the "kill the child" business into the finally
  clause, so the child doesn't survive test failure
  to send SIGALRM to other tests later (there are also
  baffling SIGALRM-related failures in test_socket).

- Cancel the alarm in the finally clause -- if the
  test dies early, we again don't want SIGALRM showing
  up to confuse a later test.

Alas, this still relies on timing luck wrt the spawned
script that sends the test signals, but it's hard to see
how waiting for seconds can so often be so unlucky.

test_threadedsignals:  curiously, this test never fails
on Tru64, but doesn't normally signal SIGALRM.  Anyway,
fixed an obvious (but probably inconsequential) logic
error.

18 years agoVerify verdat which is returned from malloc is not NULL.
Neal Norwitz [Sat, 12 Aug 2006 03:18:50 +0000 (03:18 +0000)]
Verify verdat which is returned from malloc is not NULL.
Ensure we don't pass NULL to free.

Klocwork #306 (at least the first part, checking malloc)

18 years agoPyModule_GetDict() can fail, produce fatal errors if this happens on startup.
Neal Norwitz [Sat, 12 Aug 2006 03:17:41 +0000 (03:17 +0000)]
PyModule_GetDict() can fail, produce fatal errors if this happens on startup.

Klocwork #298-299.

18 years agoCheck return of PyMem_MALLOC (garbage) is non-NULL.
Neal Norwitz [Sat, 12 Aug 2006 03:16:54 +0000 (03:16 +0000)]
Check return of PyMem_MALLOC (garbage) is non-NULL.
Check seq in both portions of if/else.

Klocwork #289-290.

18 years agoDon't deref v if it's NULL.
Neal Norwitz [Sat, 12 Aug 2006 02:33:36 +0000 (02:33 +0000)]
Don't deref v if it's NULL.

Klocwork #214

18 years agoWhoops, how did that get in there. :-) Revert all the parts of 51227 that were not...
Neal Norwitz [Sat, 12 Aug 2006 02:12:30 +0000 (02:12 +0000)]
Whoops, how did that get in there. :-)  Revert all the parts of 51227 that were not supposed to go it.  Only Modules/_ctypes/cfields.c was supposed to be changed

18 years agoCheck returned pointer is valid.
Neal Norwitz [Sat, 12 Aug 2006 02:06:34 +0000 (02:06 +0000)]
Check returned pointer is valid.
Klocwork #233

18 years agoI'm not sure why this code allocates this string for the error message.
Neal Norwitz [Sat, 12 Aug 2006 01:57:47 +0000 (01:57 +0000)]
I'm not sure why this code allocates this string for the error message.
I think it would be better to always use snprintf and have the format
limit the size of the name appropriately (like %.200s).

Klocwork #340

18 years agoTry to handle a malloc failure. I'm not entirely sure this is correct.
Neal Norwitz [Sat, 12 Aug 2006 01:53:28 +0000 (01:53 +0000)]
Try to handle a malloc failure.  I'm not entirely sure this is correct.
There might be something else we need to do to handle the exception.

Klocwork # 212-213

18 years agoMove the assert which checks for a NULL pointer first.
Neal Norwitz [Sat, 12 Aug 2006 01:51:12 +0000 (01:51 +0000)]
Move the assert which checks for a NULL pointer first.
Klocwork #274.

18 years agoIf _stat_float_times is false, we will try to INCREF ival which could be NULL.
Neal Norwitz [Sat, 12 Aug 2006 01:50:38 +0000 (01:50 +0000)]
If _stat_float_times is false, we will try to INCREF ival which could be NULL.
Return early in that case.  The caller checks for PyErr_Occurred so this
should be ok.

Klocwork #297

18 years agoHandle NULL nodes while parsing. I'm not entirely sure this is correct.
Neal Norwitz [Sat, 12 Aug 2006 01:49:12 +0000 (01:49 +0000)]
Handle NULL nodes while parsing.  I'm not entirely sure this is correct.
There might be something else that needs to be done to setup the error.

Klocwork #295.

18 years agoThis code is actually not used unless WITHOUT_COMPLEX is defined.
Neal Norwitz [Sat, 12 Aug 2006 01:47:59 +0000 (01:47 +0000)]
This code is actually not used unless WITHOUT_COMPLEX is defined.
However, there was no error checking that PyFloat_FromDouble returned
a valid pointer.  I believe this change is correct as it seemed
to follow other code in the area.

Klocwork # 292.

18 years agoIt's highly unlikely, though possible for PyEval_Get*() to return NULLs.
Neal Norwitz [Sat, 12 Aug 2006 01:46:42 +0000 (01:46 +0000)]
It's highly unlikely, though possible for PyEval_Get*() to return NULLs.
So be safe and do an XINCREF.

Klocwork # 221-222.

18 years agoEven though _Py_Mangle() isn't truly public anyone can call it and
Neal Norwitz [Sat, 12 Aug 2006 01:45:47 +0000 (01:45 +0000)]
Even though _Py_Mangle() isn't truly public anyone can call it and
there was no verification that privateobj was a PyString.  If it wasn't
a string, this could have allowed a NULL pointer to creep in below and crash.

I wonder if this should be PyString_CheckExact?  Must identifiers be strings
or can they be subclasses?

Klocwork #275

18 years agoKlocwork made another run and found a bunch more problems.
Neal Norwitz [Sat, 12 Aug 2006 01:43:40 +0000 (01:43 +0000)]
Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.

This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).

18 years agoWhen a ctypes C callback function is called, zero out the result
Thomas Heller [Fri, 11 Aug 2006 19:55:35 +0000 (19:55 +0000)]
When a ctypes C callback function is called, zero out the result
storage before converting the result to C data.  See the comment in
the code for details.

Provide a better context for errors when the conversion of a callback
function's result cannot be converted.

18 years agoAdd ignore of *.pyc and *.pyo to Lib/xml/etree/.
Thomas Wouters [Fri, 11 Aug 2006 15:02:39 +0000 (15:02 +0000)]
Add ignore of *.pyc and *.pyo to Lib/xml/etree/.

18 years agologging's atexit hook now runs even if the rest of the module has
Georg Brandl [Fri, 11 Aug 2006 07:26:10 +0000 (07:26 +0000)]
logging's atexit hook now runs even if the rest of the module has
already been cleaned up.

18 years agoAdd Chris McDonough (latest cgi.py patch)
Georg Brandl [Fri, 11 Aug 2006 07:15:38 +0000 (07:15 +0000)]
Add Chris McDonough (latest cgi.py patch)

18 years agoFix the failures on cygwin (2006-08-10 fixed the actual locking issue).
Neal Norwitz [Fri, 11 Aug 2006 06:09:41 +0000 (06:09 +0000)]
Fix the failures on cygwin (2006-08-10 fixed the actual locking issue).

The first hunk changes the colon to an ! like other Windows variants.
We need to always wait on the child so the lock gets released and
no other tests fail.  This is the try/finally in the second hunk.

18 years agoforce_test_exit(): This has been completely ineffective
Tim Peters [Fri, 11 Aug 2006 03:49:10 +0000 (03:49 +0000)]
force_test_exit():  This has been completely ineffective
at stopping test_signal from hanging forever on the Tru64
buildbot.  That could be because there's no such thing as
signal.SIGALARM.  Changed to the idiotic (but standard)
signal.SIGALRM instead, and added some more debug output.

18 years agotest_PyThreadState_SetAsyncExc(): This is failing on some
Tim Peters [Fri, 11 Aug 2006 00:49:01 +0000 (00:49 +0000)]
test_PyThreadState_SetAsyncExc():  This is failing on some
64-bit boxes.  I have no idea what the ctypes docs mean
by "integers", and blind-guessing here that it intended to
mean the signed C "int" type, in which case perhaps I can
repair this by feeding the thread id argument to type
ctypes.c_long().

Also made the worker thread daemonic, so it doesn't hang
Python shutdown if the test continues to fail.

18 years agoWhitespace normalization broke test_cgi, because a line
Tim Peters [Thu, 10 Aug 2006 23:22:13 +0000 (23:22 +0000)]
Whitespace normalization broke test_cgi, because a line
of quoted test data relied on preserving a single trailing
blank.  Changed the string from raw to regular, and forced
in the trailing blank via an explicit \x20 escape.

18 years agoWhitespace normalization.
Tim Peters [Thu, 10 Aug 2006 22:48:45 +0000 (22:48 +0000)]
Whitespace normalization.

18 years agoFollowup to bug #1069160.
Tim Peters [Thu, 10 Aug 2006 22:45:34 +0000 (22:45 +0000)]
Followup to bug #1069160.

PyThreadState_SetAsyncExc():  internal correctness changes wrt
refcount safety and deadlock avoidance.  Also added a basic test
case (relying on ctypes) and repaired the docs.

18 years agoUpdate dangling references to the 3.2 database to
Martin v. Löwis [Thu, 10 Aug 2006 19:04:00 +0000 (19:04 +0000)]
Update dangling references to the 3.2 database to
mention that this is UCD 4.1 now.

18 years agoFix title -- it's rc1, not beta3.
Guido van Rossum [Thu, 10 Aug 2006 18:09:25 +0000 (18:09 +0000)]
Fix title -- it's rc1, not beta3.

18 years agoNews item for SF bug 1112549.
Guido van Rossum [Thu, 10 Aug 2006 17:42:50 +0000 (17:42 +0000)]
News item for SF bug 1112549.

18 years agoChris McDonough's patch to defend against certain DoS attacks on FieldStorage.
Guido van Rossum [Thu, 10 Aug 2006 17:41:07 +0000 (17:41 +0000)]
Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.
SF bug #1112549.

18 years agoRetrieval of previous shell command was not always preserving indentation
Kurt B. Kaiser [Thu, 10 Aug 2006 17:11:09 +0000 (17:11 +0000)]
Retrieval of previous shell command was not always preserving indentation
since 1.2a1) Patch 1528468 Tal Einat.

18 years agotest_copytree_simple(): This was leaving behind two new temp
Tim Peters [Thu, 10 Aug 2006 03:01:26 +0000 (03:01 +0000)]
test_copytree_simple():  This was leaving behind two new temp
directories each time it ran, at least on Windows.

Several changes:  explicitly closed all files; wrapped long
lines; stopped suppressing errors when removing a file or
directory fails (removing /shouldn't/ fail!); and changed
what appeared to be incorrect usage of os.removedirs() (that
doesn't remove empty directories at and /under/ the given
path, instead it must be given an empty leaf directory and
then deletes empty directories moving /up/ the path -- could
be that the conceptually simpler shutil.rmtree() was really
actually intended here).

18 years agoChanging tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)
Kurt B. Kaiser [Thu, 10 Aug 2006 01:41:17 +0000 (01:41 +0000)]
Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)

18 years agoAdd missing svn:eol-style property to text files.
Tim Peters [Thu, 10 Aug 2006 00:58:49 +0000 (00:58 +0000)]
Add missing svn:eol-style property to text files.

18 years agoAdd some commentary on -mimpure-text.
Martin v. Löwis [Wed, 9 Aug 2006 23:42:18 +0000 (23:42 +0000)]
Add some commentary on -mimpure-text.

18 years agoToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
Kurt B. Kaiser [Wed, 9 Aug 2006 20:34:46 +0000 (20:34 +0000)]
ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).

18 years agoTypo fix
Andrew M. Kuchling [Wed, 9 Aug 2006 18:23:14 +0000 (18:23 +0000)]
Typo fix

18 years agoAs a slight enhancement to the previous checkin, improve the
Kurt B. Kaiser [Wed, 9 Aug 2006 17:47:15 +0000 (17:47 +0000)]
As a slight enhancement to the previous checkin, improve the
internal error reporting by moving message to IDLE console.

18 years ago1. When used w/o subprocess, all exceptions were preceeded by an error
Kurt B. Kaiser [Wed, 9 Aug 2006 16:46:15 +0000 (16:46 +0000)]
1.  When used w/o subprocess, all exceptions were preceeded by an error
    message claiming they were IDLE internal errors (since 1.2a1).
2.  Add Ronald Oussoren to CREDITS

M    NEWS.txt
M    PyShell.py
M    CREDITS.txt

18 years agoConcatenation on a long string breaks (SF #1526585).
Armin Rigo [Wed, 9 Aug 2006 15:37:26 +0000 (15:37 +0000)]
Concatenation on a long string breaks (SF #1526585).

18 years agoIt's unlikely that future versions will require _POSIX_C_SOURCE
Ronald Oussoren [Wed, 9 Aug 2006 14:56:33 +0000 (14:56 +0000)]
It's unlikely that future versions will require _POSIX_C_SOURCE

18 years agoFix and test for an infinite C recursion.
Armin Rigo [Wed, 9 Aug 2006 14:55:26 +0000 (14:55 +0000)]
Fix and test for an infinite C recursion.

18 years agoReindent code
Andrew M. Kuchling [Wed, 9 Aug 2006 14:06:19 +0000 (14:06 +0000)]
Reindent code

18 years agoAdd missing 'self' parameters
Andrew M. Kuchling [Wed, 9 Aug 2006 14:05:35 +0000 (14:05 +0000)]
Add missing 'self' parameters

18 years ago[Patch #1534027] Add notes on locale module changes
Andrew M. Kuchling [Wed, 9 Aug 2006 13:57:05 +0000 (13:57 +0000)]
[Patch #1534027] Add notes on locale module changes

18 years ago[Bug #1536021] Mention __hash__ change
Andrew M. Kuchling [Wed, 9 Aug 2006 13:03:41 +0000 (13:03 +0000)]
[Bug #1536021] Mention __hash__ change

18 years ago__hash__ may now return long int; the final hash
Martin v. Löwis [Wed, 9 Aug 2006 07:57:39 +0000 (07:57 +0000)]
__hash__ may now return long int; the final hash
  value is obtained by invoking hash on the long int.
Fixes #1536021.

18 years agoIntroduce an upper bound on tuple nesting depth in
Georg Brandl [Wed, 9 Aug 2006 07:03:22 +0000 (07:03 +0000)]
Introduce an upper bound on tuple nesting depth in
C argument format strings; fixes rest of #1523610.

18 years agoWhitespace normalization.
Tim Peters [Wed, 9 Aug 2006 00:52:26 +0000 (00:52 +0000)]
Whitespace normalization.

18 years ago``str`` is now the same object as ``types.StringType``.
Georg Brandl [Tue, 8 Aug 2006 20:48:10 +0000 (20:48 +0000)]
``str`` is now the same object as ``types.StringType``.

18 years agoBug #1536660: separate two words.
Georg Brandl [Tue, 8 Aug 2006 20:13:13 +0000 (20:13 +0000)]
Bug #1536660: separate two words.

18 years agoBug #1536828: typo: TypeType should have been StringType.
Georg Brandl [Tue, 8 Aug 2006 20:11:22 +0000 (20:11 +0000)]
Bug #1536828: typo: TypeType should have been StringType.

18 years agoBump version number
Andrew M. Kuchling [Tue, 8 Aug 2006 19:00:34 +0000 (19:00 +0000)]
Bump version number

18 years ago'Other changes' section now has only one item; move the item elsewhere and remove...
Andrew M. Kuchling [Tue, 8 Aug 2006 19:00:14 +0000 (19:00 +0000)]
'Other changes' section now has only one item; move the item elsewhere and remove the section

18 years agoMove obmalloc item into C API section
Andrew M. Kuchling [Tue, 8 Aug 2006 18:56:08 +0000 (18:56 +0000)]
Move obmalloc item into C API section

18 years agoReword paragraph to clarify
Andrew M. Kuchling [Tue, 8 Aug 2006 18:50:14 +0000 (18:50 +0000)]
Reword paragraph to clarify

18 years agoRemove accidently committed, duplicated test.
Thomas Heller [Tue, 8 Aug 2006 17:39:20 +0000 (17:39 +0000)]
Remove accidently committed, duplicated test.

18 years agomemcmp() can return values other than -1, 0, and +1 but tp_compare
Thomas Heller [Tue, 8 Aug 2006 17:37:00 +0000 (17:37 +0000)]
memcmp() can return values other than -1, 0, and +1 but tp_compare
must not.

18 years agoRemove "non-mapping" and "non-sequence" from TypeErrors raised by
Georg Brandl [Tue, 8 Aug 2006 11:56:21 +0000 (11:56 +0000)]
Remove "non-mapping" and "non-sequence" from TypeErrors raised by
PyMapping_Size and PySequence_Size.

Because len() tries first sequence, then mapping size, it will always
raise a "non-mapping object has no len" error which is confusing.

18 years agowebbrowser: Silence stderr output if no gconftool or gnome browser found
Georg Brandl [Tue, 8 Aug 2006 11:52:34 +0000 (11:52 +0000)]
webbrowser: Silence stderr output if no gconftool or gnome browser found

18 years ago[Patch #1464056] Ensure that we use the panelw library when linking with ncursesw.
Andrew M. Kuchling [Sun, 6 Aug 2006 22:07:04 +0000 (22:07 +0000)]
[Patch #1464056] Ensure that we use the panelw library when linking with ncursesw.
Once I see how the buildbots react, I'll backport this to 2.4.

18 years agotest_threading now skips testing alternate thread stack sizes on
Andrew MacIntyre [Sun, 6 Aug 2006 12:37:03 +0000 (12:37 +0000)]
test_threading now skips testing alternate thread stack sizes on
platforms that don't support changing thread stack size.

18 years agoDon't produce output in test_builtin.
Georg Brandl [Sun, 6 Aug 2006 09:17:16 +0000 (09:17 +0000)]
Don't produce output in test_builtin.

18 years agoBug #1535165: fixed a segfault in input() and raw_input() when
Georg Brandl [Sun, 6 Aug 2006 08:23:54 +0000 (08:23 +0000)]
Bug #1535165: fixed a segfault in input() and raw_input() when
sys.stdin is closed.

18 years agoBug #1535081: A leading underscore has been added to the names of
Georg Brandl [Sun, 6 Aug 2006 07:26:21 +0000 (07:26 +0000)]
Bug #1535081: A leading underscore has been added to the names of
the md5 and sha modules, so add it in Modules/Setup.dist too.

18 years agoBug #1535182: really test the xreadlines() method of bz2 objects.
Georg Brandl [Sun, 6 Aug 2006 07:06:33 +0000 (07:06 +0000)]
Bug #1535182: really test the xreadlines() method of bz2 objects.

18 years agoPatch #1534922: correct and enhance unittest docs.
Georg Brandl [Sat, 5 Aug 2006 06:10:54 +0000 (06:10 +0000)]
Patch #1534922: correct and enhance unittest docs.

18 years agoFix #1530559, struct.pack raises TypeError where it used to convert.
Bob Ippolito [Fri, 4 Aug 2006 23:59:21 +0000 (23:59 +0000)]
Fix #1530559, struct.pack raises TypeError where it used to convert.
Passing float arguments to struct.pack when integers are expected
now triggers a DeprecationWarning.

18 years agoWhitespace normalization.
Tim Peters [Fri, 4 Aug 2006 22:00:35 +0000 (22:00 +0000)]
Whitespace normalization.

18 years agoFix mangled sentence
Andrew M. Kuchling [Fri, 4 Aug 2006 21:10:03 +0000 (21:10 +0000)]
Fix mangled sentence

18 years agoTypo fixes
Andrew M. Kuchling [Fri, 4 Aug 2006 20:37:43 +0000 (20:37 +0000)]
Typo fixes

18 years agoFix #1534738: win32 debug version of _msi must be _msi_d.pyd, not _msi.pyd.
Thomas Heller [Fri, 4 Aug 2006 19:49:31 +0000 (19:49 +0000)]
Fix #1534738: win32 debug version of _msi must be _msi_d.pyd, not _msi.pyd.
Fix the name of the pdb file as well.

18 years agoFix #1530448 - fix ctypes build failure on solaris 10.
Thomas Heller [Fri, 4 Aug 2006 18:57:34 +0000 (18:57 +0000)]
Fix #1530448 - fix ctypes build failure on solaris 10.

The '-mimpure-text' linker flag is required when linking _ctypes.so.

18 years agoOn Windows, make PyErr_Warn an exported function again.
Thomas Heller [Fri, 4 Aug 2006 18:17:40 +0000 (18:17 +0000)]
On Windows, make PyErr_Warn an exported function again.

18 years agoBetter fix for bug #1531405, not executing str(value) twice.
Georg Brandl [Fri, 4 Aug 2006 18:07:34 +0000 (18:07 +0000)]
Better fix for bug #1531405, not executing str(value) twice.

18 years agoChange fix for segfaulting property(), add a NEWS entry and a test.
Georg Brandl [Fri, 4 Aug 2006 18:03:37 +0000 (18:03 +0000)]
Change fix for segfaulting property(), add a NEWS entry and a test.

18 years agoFix the 'compiler' package to generate correct code for MAKE_CLOSURE.
Neil Schemenauer [Fri, 4 Aug 2006 16:20:30 +0000 (16:20 +0000)]
Fix the 'compiler' package to generate correct code for MAKE_CLOSURE.
In the 2.5 development cycle, MAKE_CLOSURE as changed to take free
variables as a tuple rather than as individual items on the stack.
Closes patch #1534084.

18 years agoFix bug caused by first decrefing, then increfing.
Georg Brandl [Fri, 4 Aug 2006 06:03:53 +0000 (06:03 +0000)]
Fix bug caused by first decrefing, then increfing.

18 years agofix typos
Gregory P. Smith [Fri, 4 Aug 2006 05:17:47 +0000 (05:17 +0000)]
fix typos

18 years agoSF patch #1534048 (bug #1531003): fix typo in error message
Fred Drake [Fri, 4 Aug 2006 05:17:21 +0000 (05:17 +0000)]
SF patch #1534048 (bug #1531003): fix typo in error message

18 years agoThere were really two issues
Neal Norwitz [Fri, 4 Aug 2006 05:12:19 +0000 (05:12 +0000)]
There were really two issues

18 years agoBug #1333982: string/number constants were inappropriately stored
Neal Norwitz [Fri, 4 Aug 2006 05:09:28 +0000 (05:09 +0000)]
Bug #1333982: string/number constants were inappropriately stored
in the byte code and co_consts even if they were not used, ie
immediately popped off the stack.

18 years agoBug #1191458: tracing over for loops now produces a line event
Neal Norwitz [Fri, 4 Aug 2006 04:58:47 +0000 (04:58 +0000)]
Bug #1191458: tracing over for loops now produces a line event
on each iteration.  I'm not positive this is the best way to handle
this.  I'm also not sure that there aren't other cases where
the lnotab is generated incorrectly.  It would be great if people
that use pdb or tracing could test heavily.

Also:
 * Remove dead/duplicated code that wasn't used/necessary
   because we already handled the docstring prior to entering the loop.
 * add some debugging code into the compiler (#if 0'd out).

18 years agoBug #1531405, format_exception no longer raises an exception if
Neal Norwitz [Fri, 4 Aug 2006 04:50:21 +0000 (04:50 +0000)]
Bug #1531405, format_exception no longer raises an exception if
str(exception) raised an exception.

18 years agoTagging for release of Python 2.5b3
Anthony Baxter [Thu, 3 Aug 2006 00:21:45 +0000 (00:21 +0000)]
Tagging for release of Python 2.5b3