]> granicus.if.org Git - python/log
python
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

18 years agoAdd missing svn:eol-style property to text files. v2.5b3
Tim Peters [Wed, 2 Aug 2006 18:19:35 +0000 (18:19 +0000)]
Add missing svn:eol-style property to text files.

18 years agoCorrection of patch #1455898: In the mbcs decoder, set final=False
Martin v. Löwis [Wed, 2 Aug 2006 13:53:55 +0000 (13:53 +0000)]
Correction of patch #1455898: In the mbcs decoder, set final=False
for stream decoder, but final=True for the decode function.

18 years agoFix a mistake.
Thomas Heller [Wed, 2 Aug 2006 12:00:13 +0000 (12:00 +0000)]
Fix a mistake.

18 years agoA few nore words about what ctypes does.
Thomas Heller [Wed, 2 Aug 2006 11:35:31 +0000 (11:35 +0000)]
A few nore words about what ctypes does.
Document that using the wrong calling convention can also raise
'ValueError: Procedure called with the wrong number of arguments'.

18 years agopre-release machinations
Anthony Baxter [Wed, 2 Aug 2006 07:43:09 +0000 (07:43 +0000)]
pre-release machinations

18 years agoAdd some explanation about Klocwork and Coverity static analysis
Neal Norwitz [Wed, 2 Aug 2006 07:09:32 +0000 (07:09 +0000)]
Add some explanation about Klocwork and Coverity static analysis

18 years agoPatch #1519025 and bug #926423: If a KeyboardInterrupt occurs during
Neal Norwitz [Wed, 2 Aug 2006 06:46:21 +0000 (06:46 +0000)]
Patch #1519025 and bug #926423: If a KeyboardInterrupt occurs during
a socket operation on a socket with a timeout, the exception will be
caught correctly.  Previously, the exception was not caught.

18 years agoLet us know when there was a problem and the child had to kill the parent
Neal Norwitz [Wed, 2 Aug 2006 06:19:19 +0000 (06:19 +0000)]
Let us know when there was a problem and the child had to kill the parent

18 years agov is already checked for NULL, so just DECREF it
Neal Norwitz [Wed, 2 Aug 2006 06:15:10 +0000 (06:15 +0000)]
v is already checked for NULL, so just DECREF it

18 years ago_PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long.
Neal Norwitz [Wed, 2 Aug 2006 06:14:22 +0000 (06:14 +0000)]
_PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long.

18 years agoUpdated documentation for the script that builds the OSX installer.
Ronald Oussoren [Wed, 2 Aug 2006 06:10:10 +0000 (06:10 +0000)]
Updated documentation for the script that builds the OSX installer.

18 years ago_Stream.close(): Try to kill struct.pack() warnings when
Tim Peters [Wed, 2 Aug 2006 05:20:08 +0000 (05:20 +0000)]
_Stream.close():  Try to kill struct.pack() warnings when
writing the crc to file on the "PPC64 Debian trunk" buildbot
when running test_tarfile.

This is again a case where the native zlib crc is an unsigned
32-bit int, but the Python wrapper implicitly casts it to
signed C long, so that "the sign bit looks different" on
different platforms.

18 years agoPrevent memory leak on error.
Neal Norwitz [Wed, 2 Aug 2006 04:27:11 +0000 (04:27 +0000)]
Prevent memory leak on error.

Reported by Klocwork #36

18 years agoTry to squash struct.pack warnings on the "amd64 gentoo trunk"
Tim Peters [Wed, 2 Aug 2006 04:12:36 +0000 (04:12 +0000)]
Try to squash struct.pack warnings on the "amd64 gentoo trunk"
buildbot (& possibly other 64-bit boxes) during test_gzip.

The native zlib crc32 function returns an unsigned 32-bit integer,
which the Python wrapper implicitly casts to C long.  Therefore the
same crc can "look negative" on a 32-bit box but "look positive" on
a 64-bit box.  This patch papers over that platform difference when
writing the crc to file.

It may be better to change the Python wrapper, either to make
the result "look positive" on all platforms (which means it may
have to return a Python long at times on a 32-bit box), or to
keep the sign the same across boxes.  But that would be a visible
change in what users see, while the current hack changes no
visible behavior (well, apart from stopping the struct deprecation
warning).

Note that the module-level write32() function is no longer used.

18 years agoWhitespace normalization.
Tim Peters [Wed, 2 Aug 2006 03:27:46 +0000 (03:27 +0000)]
Whitespace normalization.

18 years agoThis fixes bug #1527397: PythonLauncher runs scripts with the wrong working
Ronald Oussoren [Tue, 1 Aug 2006 21:00:57 +0000 (21:00 +0000)]
This fixes bug #1527397: PythonLauncher runs scripts with the wrong working
directory. It also fixes a bug where PythonLauncher failed to launch scripts
when the scriptname (or the path to the script) contains quotes.

18 years agoMake sure the postinstall action that optionally updates the user's profile
Ronald Oussoren [Tue, 1 Aug 2006 20:30:31 +0000 (20:30 +0000)]
Make sure the postinstall action that optionally updates the user's profile
on MacOS X actually works correctly in all cases.

18 years agoSpeed up PyType_stgdict and PyObject_stgdict.
Thomas Heller [Tue, 1 Aug 2006 19:14:15 +0000 (19:14 +0000)]
Speed up PyType_stgdict and PyObject_stgdict.

18 years agoos.urandom no longer masks unrelated exceptions like SystemExit or
Georg Brandl [Tue, 1 Aug 2006 18:49:24 +0000 (18:49 +0000)]
os.urandom no longer masks unrelated exceptions like SystemExit or
KeyboardInterrupt.

18 years ago[Patch #1520905] Attempt to suppress core file created by test_subprocess.py.
Andrew M. Kuchling [Tue, 1 Aug 2006 18:16:15 +0000 (18:16 +0000)]
[Patch #1520905] Attempt to suppress core file created by test_subprocess.py.
Patch by Douglas Greiman.

The test_run_abort() testcase produces a core file on Unix systems,
even though the test is successful. This can be confusing or alarming
to someone who runs 'make test' and then finds that the Python
interpreter apparently crashed.

18 years agoMinimal useful docstring for CopyComPointer.
Thomas Heller [Tue, 1 Aug 2006 17:46:10 +0000 (17:46 +0000)]
Minimal useful docstring for CopyComPointer.

18 years agoFix a potential segfault and various potentail refcount leaks
Thomas Heller [Tue, 1 Aug 2006 16:54:43 +0000 (16:54 +0000)]
Fix a potential segfault and various potentail refcount leaks
in the cast() function.

18 years agotypo fix
Andrew M. Kuchling [Tue, 1 Aug 2006 16:24:30 +0000 (16:24 +0000)]
typo fix

18 years agoUpdate list of files; fix a typo
Andrew M. Kuchling [Mon, 31 Jul 2006 16:27:57 +0000 (16:27 +0000)]
Update list of files; fix a typo