]> granicus.if.org Git - python/log
python
20 years agohandle_weakrefs(): Simplification -- there's no need to make a second
Tim Peters [Sun, 31 Oct 2004 22:12:43 +0000 (22:12 +0000)]
handle_weakrefs():  Simplification -- there's no need to make a second
pass over the unreachable weakrefs-with-callbacks to unreachable objects.

20 years agoBug #1057535: add link in time module to calendar.timegm().
Johannes Gijsbers [Sun, 31 Oct 2004 12:19:34 +0000 (12:19 +0000)]
Bug #1057535: add link in time module to calendar.timegm().

20 years agoBug #1048941: shutil.rmtree error handling was always broken
Johannes Gijsbers [Sun, 31 Oct 2004 12:05:31 +0000 (12:05 +0000)]
Bug #1048941: shutil.rmtree error handling was always broken

Rewrite rmtree again, this time without os.walk(). Error handling had been
broken since Python 2.3, and the os.walk() version inherited this.

20 years agoSF patch #1056231: typo in comment (unicodeobject.h)
Raymond Hettinger [Sun, 31 Oct 2004 05:46:59 +0000 (05:46 +0000)]
SF patch #1056231: typo in comment (unicodeobject.h)

20 years agoSF 1055820: weakref callback vs gc vs threads
Tim Peters [Sat, 30 Oct 2004 23:09:22 +0000 (23:09 +0000)]
SF 1055820: weakref callback vs gc vs threads

In cyclic gc, clear weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.

This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced.  I'll backport to 2.3.

20 years agoFixed a comment and added another one.
Armin Rigo [Sat, 30 Oct 2004 21:08:59 +0000 (21:08 +0000)]
Fixed a comment and added another one.

20 years agoAdopt some peepholer suggestions from Armin Rigo:
Raymond Hettinger [Sat, 30 Oct 2004 08:55:08 +0000 (08:55 +0000)]
Adopt some peepholer suggestions from Armin Rigo:

* Use simpler, faster two pass algorithm for markblocks().
* Free the blocks variable if not NULL and exiting without change.
* Verify that the rest of the compiler has not set an exception.
* Make the test for tuple of constants less restrictive.
* Embellish the comment for chained conditional jumps.

20 years agoadd xml:id attributes wherever we generate the IDs (old patch saved up)
Fred Drake [Fri, 29 Oct 2004 19:47:52 +0000 (19:47 +0000)]
add xml:id attributes wherever we generate the IDs (old patch saved up)

20 years agostyle consistency:
Fred Drake [Fri, 29 Oct 2004 14:35:42 +0000 (14:35 +0000)]
style consistency:
- always include a space after the "#" that starts a comment
- easier to read imports

20 years agoAdded network logging example
Vinay Sajip [Fri, 29 Oct 2004 12:30:28 +0000 (12:30 +0000)]
Added network logging example

20 years agoWrote down the invariants of some common objects whose structure is
Armin Rigo [Thu, 28 Oct 2004 16:32:00 +0000 (16:32 +0000)]
Wrote down the invariants of some common objects whose structure is
exposed in header files.  Fixed a few comments in these headers.

As we might have expected, writing down invariants systematically exposed a
(minor) bug.  In this case, function objects have a writeable func_code
attribute, which could be set to code objects with the wrong number of
free variables.  Calling the resulting function segfaulted the interpreter.
Added a corresponding test.

20 years agoTrigger a few error cases in Modules/_codecsmodule.c.
Walter Dörwald [Thu, 28 Oct 2004 13:04:26 +0000 (13:04 +0000)]
Trigger a few error cases in Modules/_codecsmodule.c.

20 years agoFix bug of implementation of algorithm for calculating the date from year, week
Brett Cannon [Thu, 28 Oct 2004 04:49:21 +0000 (04:49 +0000)]
Fix bug of implementation of algorithm for calculating the date from year, week
of the year, and day of the week.  Was not taking into consideration properly
the issue of when %U is used for the week of the year but the year starts on
Monday.

Closes bug #1045381 again.

20 years agoFix [1055540 ] bdist_wininst broken for pure Python distributions
Mark Hammond [Wed, 27 Oct 2004 21:54:33 +0000 (21:54 +0000)]
Fix [1055540 ] bdist_wininst broken for pure Python distributions

20 years agoSF patch #1053375.
Raymond Hettinger [Wed, 27 Oct 2004 06:21:46 +0000 (06:21 +0000)]
SF patch #1053375.
(Contributed by Facundo Batista.)

Code simplification by eliminating the unnecessary and error-prone
convolutions for the previously weird sign convention in _WorkRep().
Makes the code more understandable, more reliable, and a bit faster.

20 years agoAdd a comment explains why we should modify mtime here.
Hye-Shik Chang [Wed, 27 Oct 2004 03:12:05 +0000 (03:12 +0000)]
Add a comment explains why we should modify mtime here.

20 years agoRemoved newly redundant embedded import.
Tim Peters [Wed, 27 Oct 2004 02:44:10 +0000 (02:44 +0000)]
Removed newly redundant embedded import.

20 years agoWhitespace normalization.
Tim Peters [Wed, 27 Oct 2004 02:43:25 +0000 (02:43 +0000)]
Whitespace normalization.

20 years agoPaper over bug 1054615 by passing sane values to os.utime().
Tim Peters [Wed, 27 Oct 2004 02:33:15 +0000 (02:33 +0000)]
Paper over bug 1054615 by passing sane values to os.utime().

The underlying bug still exists, but also existed in 2.3.4:
import.c's load_source_module() returns NULL if
PyOS_GetLastModificationTime() returns -1, but
PyOS_GetLastModificationTime() doesn't set any exception when it returns
-1, and neither does load_source_module() when it gets back -1.  This
leads to "SystemError: NULL result without error in PyObject_Call"
on an import that fails in this way.

20 years agoUpdate optparse module and test suite to Optik 1.5a2.
Greg Ward [Wed, 27 Oct 2004 02:20:04 +0000 (02:20 +0000)]
Update optparse module and test suite to Optik 1.5a2.

20 years agoVery few little improvements.
Facundo Batista [Tue, 26 Oct 2004 23:38:46 +0000 (23:38 +0000)]
Very few little improvements.

20 years agoIn paragraph 1, changed
Tim Peters [Tue, 26 Oct 2004 14:38:48 +0000 (14:38 +0000)]
In paragraph 1, changed
    Python software
to
    this software ("Python")

20 years ago- Added tests for the string load/dump function.
Just van Rossum [Tue, 26 Oct 2004 11:02:08 +0000 (11:02 +0000)]
- Added tests for the string load/dump function.
- Added a chunk of plist data as generated by Cocoa's NSDictionary and
  verify we output the same (including formatting)
- Changed the "literal" plist code to match the raw test data

20 years agoMade <data> output match Apple's exactly. To do that I had to add a custom
Just van Rossum [Tue, 26 Oct 2004 10:30:55 +0000 (10:30 +0000)]
Made <data> output match Apple's exactly. To do that I had to add a custom
version of base64.encodestring() so I could control the line length of the
base64 output.

20 years agoalso escape '>', to closer match Apple's plist output
Just van Rossum [Tue, 26 Oct 2004 10:11:00 +0000 (10:11 +0000)]
also escape '>', to closer match Apple's plist output

20 years agoPatch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang [Tue, 26 Oct 2004 09:53:46 +0000 (09:53 +0000)]
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
(Submitted by James William Pye, Patch revised by Jiwon Seo)

20 years agoSF #737473: Show up-to-date source code in tracebacks always.
Hye-Shik Chang [Tue, 26 Oct 2004 09:16:42 +0000 (09:16 +0000)]
SF #737473: Show up-to-date source code in tracebacks always.
And add an optional argument 'filename' to linecache.checkcache()
to enable checking caches per-file.

20 years agoSF bug #1053819: Segfault in tuple_of_constants
Raymond Hettinger [Tue, 26 Oct 2004 08:59:14 +0000 (08:59 +0000)]
SF bug #1053819:  Segfault in tuple_of_constants

Peepholer could be fooled into misidentifying a tuple_of_constants.
Added code to count consecutive occurrences of LOAD_CONST.
Use the count to weed out the misidentified cases.
Added a unittest.

20 years agoDeprecating Dict class; going through a few hoops to get the warnings right.
Just van Rossum [Tue, 26 Oct 2004 07:38:16 +0000 (07:38 +0000)]
Deprecating Dict class; going through a few hoops to get the warnings right.

20 years ago- Removed Date class. We don't really need it for b/w compatibility since
Just van Rossum [Tue, 26 Oct 2004 07:20:26 +0000 (07:20 +0000)]
- Removed Date class. We don't really need it for b/w compatibility since
  a) the functionality depended on PyXML before and b) hardly worked to
  begin with.
- Instead, output and require upon input datetime.datetime objects.

20 years ago- added two more convenience functions: readPlistFromString() and
Just van Rossum [Tue, 26 Oct 2004 06:50:50 +0000 (06:50 +0000)]
- added two more convenience functions: readPlistFromString() and
  writePlistToString()
- use these two in the resource functions.
- Tweaked module doc string.

20 years agoSF 1053956: help() not in tutorial index
Raymond Hettinger [Tue, 26 Oct 2004 03:53:35 +0000 (03:53 +0000)]
SF 1053956:  help() not in tutorial index

20 years agoSF bug #1054139: serious string hashing error in 2.4b1
Raymond Hettinger [Tue, 26 Oct 2004 01:52:37 +0000 (01:52 +0000)]
SF bug #1054139:  serious string hashing error in 2.4b1

_PyString_Resize() readied strings for mutation but did not invalidate
the cached hash value.

20 years agoadd missing line break
Fred Drake [Mon, 25 Oct 2004 21:35:17 +0000 (21:35 +0000)]
add missing line break

20 years agoUpdated doc strings.
Just van Rossum [Mon, 25 Oct 2004 16:10:53 +0000 (16:10 +0000)]
Updated doc strings.

20 years agoDeprecate Plist class
Just van Rossum [Mon, 25 Oct 2004 16:09:10 +0000 (16:09 +0000)]
Deprecate Plist class

20 years agoRemoved superfluous **kwargs constructor cruft: this class predates
Just van Rossum [Mon, 25 Oct 2004 16:04:20 +0000 (16:04 +0000)]
Removed superfluous **kwargs constructor cruft: this class predates
the dict(**kwargs) feature.

20 years ago- improve the explanation of the -*- coding: ... -*- marker
Fred Drake [Mon, 25 Oct 2004 16:03:49 +0000 (16:03 +0000)]
- improve the explanation of the -*- coding: ... -*- marker
- fix a minor formatting nit that affected the typeset version

20 years agoPatch from Bob Ippolito, slighly edited:
Just van Rossum [Mon, 25 Oct 2004 15:10:42 +0000 (15:10 +0000)]
Patch from Bob Ippolito, slighly edited:
1052399 ] plistlib: add plst resource functionality, fix bugs

20 years agoWhitespace normalization.
Tim Peters [Mon, 25 Oct 2004 03:19:41 +0000 (03:19 +0000)]
Whitespace normalization.

20 years agoformat_paragraph_event(): Patch 961387 introduced a bug here, causing
Tim Peters [Sun, 24 Oct 2004 23:45:42 +0000 (23:45 +0000)]
format_paragraph_event():  Patch 961387 introduced a bug here, causing
the indentation of a comment block to be ignored when reformatting the
block, leading to overly long reformatted lines (too wide by an amount
equal to the indentation width).  Looks like a typo in the original
patch, a 1-character repair.

20 years agoSF bug #1052503: pdb runcall should accept keyword arguments
Raymond Hettinger [Sun, 24 Oct 2004 00:32:24 +0000 (00:32 +0000)]
SF bug #1052503:  pdb runcall should accept keyword arguments

20 years agoSF bug #1048870: call arg of lambda not updating
Raymond Hettinger [Sun, 24 Oct 2004 00:10:06 +0000 (00:10 +0000)]
SF bug #1048870:  call arg of lambda not updating

20 years agoConverted some stinking hard tabs. Left the fragrant hard tabs alone.
Tim Peters [Sat, 23 Oct 2004 03:48:57 +0000 (03:48 +0000)]
Converted some stinking hard tabs.  Left the fragrant hard tabs alone.

20 years agoMove to version 2 of the PSF license, approved by the Board earlier today.
Tim Peters [Sat, 23 Oct 2004 03:43:54 +0000 (03:43 +0000)]
Move to version 2 of the PSF license, approved by the Board earlier today.

20 years agoAdded example of multiple destinations
Vinay Sajip [Fri, 22 Oct 2004 21:43:15 +0000 (21:43 +0000)]
Added example of multiple destinations

20 years agoFix minor reST error in Misc/NEWS.
Brett Cannon [Fri, 22 Oct 2004 06:22:54 +0000 (06:22 +0000)]
Fix minor reST error in Misc/NEWS.

Applies patch #1051866.  Thanks Felix Wiemann.

20 years agoLatest version for beta 1.
Sean Reifschneider [Thu, 21 Oct 2004 23:35:45 +0000 (23:35 +0000)]
Latest version for beta 1.

20 years agoFixed bug in handling of args in LogRecord.__init__.
Vinay Sajip [Thu, 21 Oct 2004 21:24:27 +0000 (21:24 +0000)]
Fixed bug in handling of args in LogRecord.__init__.

20 years agoRemoved test_close_fds, because it's too unreliable. We simply cannot
Peter Astrand [Thu, 21 Oct 2004 19:28:34 +0000 (19:28 +0000)]
Removed test_close_fds, because it's too unreliable. We simply cannot
know that the newly-started Python process only has 3 filedescriptors
open. Fixes bug 1048808.

20 years agoAdd item
Andrew M. Kuchling [Wed, 20 Oct 2004 11:56:15 +0000 (11:56 +0000)]
Add item

20 years ago[Patch #1043972, for bug #1017553] filemode() returns an incorrect value for the...
Andrew M. Kuchling [Wed, 20 Oct 2004 11:48:42 +0000 (11:48 +0000)]
[Patch #1043972, for bug #1017553] filemode() returns an incorrect value for the mode 07111

20 years agoAdd test case for bug #1017553
Andrew M. Kuchling [Wed, 20 Oct 2004 11:47:01 +0000 (11:47 +0000)]
Add test case for bug #1017553

20 years agowhen only using half of the return value of os.path.split(), use
Fred Drake [Wed, 20 Oct 2004 11:08:35 +0000 (11:08 +0000)]
when only using half of the return value of os.path.split(), use
os.path.dirname() or os.path.basename() instead

20 years agoChanged handling of args in LogRecord.__init__.
Vinay Sajip [Wed, 20 Oct 2004 08:39:40 +0000 (08:39 +0000)]
Changed handling of args in LogRecord.__init__.

20 years agoSF bug #902037: relative on-disk SYSTEM id handling is incorrect
Raymond Hettinger [Wed, 20 Oct 2004 08:21:57 +0000 (08:21 +0000)]
SF bug #902037: relative on-disk SYSTEM id handling is incorrect

20 years agoSF bug #902037: relative on-disk SYSTEM id handling is incorrect
Raymond Hettinger [Wed, 20 Oct 2004 08:21:19 +0000 (08:21 +0000)]
SF bug #902037: relative on-disk SYSTEM id handling is incorrect
(Contributed by Bob Ippolito.)

backport candidate.

20 years agoSF patch #1038388: __main__ for whichdb.py
Raymond Hettinger [Wed, 20 Oct 2004 07:17:16 +0000 (07:17 +0000)]
SF patch #1038388:  __main__ for whichdb.py
(Contributed by Oleg Broytmann.)

20 years agoSF bug #1048728: Bug fixes and cleanup for decimal.py
Raymond Hettinger [Wed, 20 Oct 2004 06:58:28 +0000 (06:58 +0000)]
SF bug #1048728:  Bug fixes and cleanup for decimal.py
(Contributed by Neal Norwitz.  Reviewed by Facundo Bastista.)

20 years agoDelete empty sections in beta1 news
Andrew M. Kuchling [Tue, 19 Oct 2004 19:56:55 +0000 (19:56 +0000)]
Delete empty sections in beta1 news

20 years agoAdd item
Andrew M. Kuchling [Tue, 19 Oct 2004 19:54:41 +0000 (19:54 +0000)]
Add item

20 years agoRemove the current version of zlib (we'll just have to keep updating it); rewrite...
Andrew M. Kuchling [Tue, 19 Oct 2004 19:50:23 +0000 (19:50 +0000)]
Remove the current version of zlib (we'll just have to keep updating it); rewrite following sentence to make sense without the previous one

20 years agoTypo fixes, and a minor edit to clarify a sentence
Andrew M. Kuchling [Tue, 19 Oct 2004 19:39:02 +0000 (19:39 +0000)]
Typo fixes, and a minor edit to clarify a sentence

20 years agoDisplay helpful message; print repr() of return value so the whitespace is clearer
Andrew M. Kuchling [Tue, 19 Oct 2004 19:36:09 +0000 (19:36 +0000)]
Display helpful message; print repr() of return value so the whitespace is clearer

20 years ago[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan...
Andrew M. Kuchling [Tue, 19 Oct 2004 19:29:40 +0000 (19:29 +0000)]
[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann

20 years agoMake magic coordinates more readable
Andrew M. Kuchling [Tue, 19 Oct 2004 19:21:20 +0000 (19:21 +0000)]
Make magic coordinates more readable

20 years ago[Bug #1049826] Update version of zlib referenced in text
Andrew M. Kuchling [Tue, 19 Oct 2004 18:52:49 +0000 (18:52 +0000)]
[Bug #1049826] Update version of zlib referenced in text

20 years agoRely on the style sheet more for the distutils markup.
Fred Drake [Tue, 19 Oct 2004 15:40:38 +0000 (15:40 +0000)]
Rely on the style sheet more for the distutils markup.

20 years agomade it clear that this isn't a complete reference to
Fred Drake [Mon, 18 Oct 2004 21:30:40 +0000 (21:30 +0000)]
made it clear that this isn't a complete reference to
LaTeX-as-used-in-Python-documentation, and added some notes about
what's missing

20 years agoBump version
Andrew M. Kuchling [Mon, 18 Oct 2004 16:16:53 +0000 (16:16 +0000)]
Bump version

20 years agoClarify note about using %U and %W with strptime().
Brett Cannon [Mon, 18 Oct 2004 01:53:15 +0000 (01:53 +0000)]
Clarify note about using %U and %W with strptime().

20 years agoFix comments.
Brett Cannon [Mon, 18 Oct 2004 01:47:46 +0000 (01:47 +0000)]
Fix comments.

20 years agoAdd support for %U and %W to contribute to calculating the date when the year
Brett Cannon [Mon, 18 Oct 2004 01:37:57 +0000 (01:37 +0000)]
Add support for %U and %W to contribute to calculating the date when the year
and day of the week are specified.

Closes bug #1045381.

20 years agoAdd sections for 2.4b2
Brett Cannon [Mon, 18 Oct 2004 01:32:09 +0000 (01:32 +0000)]
Add sections for 2.4b2

20 years agoSF #1048865: Fix a trivial typo that breaks StreamReader.readlines()
Hye-Shik Chang [Sun, 17 Oct 2004 23:51:21 +0000 (23:51 +0000)]
SF #1048865: Fix a trivial typo that breaks StreamReader.readlines()

20 years agoSF bug #1048756, Doc typo for pdb
Neal Norwitz [Sun, 17 Oct 2004 19:55:47 +0000 (19:55 +0000)]
SF bug #1048756, Doc typo for pdb

20 years agosome platforms still need offsetof() from structmember.h
Fred Drake [Sun, 17 Oct 2004 19:36:57 +0000 (19:36 +0000)]
some platforms still need offsetof() from structmember.h

20 years agoFix and test weak referencing of itertools.tee objects.
Raymond Hettinger [Sun, 17 Oct 2004 16:40:14 +0000 (16:40 +0000)]
Fix and test weak referencing of itertools.tee objects.

20 years agoFix docstring formatting of escape sequences.
Raymond Hettinger [Sun, 17 Oct 2004 16:36:53 +0000 (16:36 +0000)]
Fix docstring formatting of escape sequences.

20 years agoSF patch #1047577, typo in liblocale.tex
Neal Norwitz [Sun, 17 Oct 2004 16:36:05 +0000 (16:36 +0000)]
SF patch #1047577, typo in liblocale.tex

20 years agoSF Patch #1048341: subprocess documentation, based on PEP/docstring by
Fredrik Lundh [Sun, 17 Oct 2004 16:29:48 +0000 (16:29 +0000)]
SF Patch #1048341: subprocess documentation, based on PEP/docstring by
Peter Astrand, with markup by Fredrik Lundh and Raymond Hettinger.

20 years agoInvalid patterns to substitute and safe_substitute would crash since pattern
Neal Norwitz [Sun, 17 Oct 2004 16:27:18 +0000 (16:27 +0000)]
Invalid patterns to substitute and safe_substitute would crash since pattern
is not a local variable.  Add a test case.

20 years agoUse proper value for False
Neal Norwitz [Sun, 17 Oct 2004 16:24:25 +0000 (16:24 +0000)]
Use proper value for False

20 years agoRemove unnecessary imports
Neal Norwitz [Sun, 17 Oct 2004 16:23:52 +0000 (16:23 +0000)]
Remove unnecessary imports

20 years agoreturn codes are available on all platforms, not just on Unix
Fredrik Lundh [Sun, 17 Oct 2004 14:47:05 +0000 (14:47 +0000)]
return codes are available on all platforms, not just on Unix

20 years agoSF Bug #1046800: Importing Tkinter correctly (thanks Vishnu).
Facundo Batista [Sat, 16 Oct 2004 21:40:35 +0000 (21:40 +0000)]
SF Bug #1046800: Importing Tkinter correctly (thanks Vishnu).

20 years agoThis commit was manufactured by cvs2svn to create tag 'r24b1'. v2.4b1
cvs2svn [Fri, 15 Oct 2004 08:07:21 +0000 (08:07 +0000)]
This commit was manufactured by cvs2svn to create tag 'r24b1'.

20 years agorelease shenanigans
Anthony Baxter [Fri, 15 Oct 2004 08:07:21 +0000 (08:07 +0000)]
release shenanigans

20 years agoApplied patch for [ 1047269 ] Buffer overwrite in PyUnicode_AsWideChar.
Marc-André Lemburg [Fri, 15 Oct 2004 07:45:05 +0000 (07:45 +0000)]
Applied patch for [ 1047269 ] Buffer overwrite in PyUnicode_AsWideChar.

Python 2.3.x candidate.

20 years agomake sure to check for this limit even if we're running with -O
Fredrik Lundh [Fri, 15 Oct 2004 06:15:08 +0000 (06:15 +0000)]
make sure to check for this limit even if we're running with -O

20 years agoBump buildno for 2.4b1
Martin v. Löwis [Fri, 15 Oct 2004 05:44:39 +0000 (05:44 +0000)]
Bump buildno for 2.4b1

20 years agoAdd _subprocess.c
Martin v. Löwis [Fri, 15 Oct 2004 04:27:51 +0000 (04:27 +0000)]
Add _subprocess.c

20 years agoPatch #1020042: Only define HAVE_UINTPTR_T for VC 7.x.
Martin v. Löwis [Fri, 15 Oct 2004 04:26:18 +0000 (04:26 +0000)]
Patch #1020042: Only define HAVE_UINTPTR_T for VC 7.x.

20 years agoSF bug #1046855: httplib index out of range
Raymond Hettinger [Thu, 14 Oct 2004 15:23:38 +0000 (15:23 +0000)]
SF bug #1046855:  httplib index out of range

20 years agoJust remove the #include of signal.h. That it was C++-commented out
Michael W. Hudson [Thu, 14 Oct 2004 13:27:14 +0000 (13:27 +0000)]
Just remove the #include of signal.h.  That it was C++-commented out
was a mistake of mine in updating patch #975056 (I think).

20 years agoPatch 1046644 - improved distutils support for SWIG.
Anthony Baxter [Thu, 14 Oct 2004 10:02:08 +0000 (10:02 +0000)]
Patch 1046644 - improved distutils support for SWIG.

20 years agobump the version number prior to release
Fred Drake [Thu, 14 Oct 2004 05:07:17 +0000 (05:07 +0000)]
bump the version number prior to release

20 years agoremove_stderr_debug_decorations(): Always try the substitution. Else
Tim Peters [Thu, 14 Oct 2004 04:16:54 +0000 (04:16 +0000)]
remove_stderr_debug_decorations():  Always try the substitution.  Else
this test failed under the combination of passing -O to a debug-build
Python.  Now all 4 of those pass ({debug, release} x {-O, no -O}).

20 years agoUse C89 style comment for old compilers
Neal Norwitz [Thu, 14 Oct 2004 03:48:30 +0000 (03:48 +0000)]
Use C89 style comment for old compilers

20 years agoGet test to pass on amd64 (opteron). This is pretty hacky, but
Neal Norwitz [Thu, 14 Oct 2004 03:46:18 +0000 (03:46 +0000)]
Get test to pass on amd64 (opteron).  This is pretty hacky, but
rangeobject.c has an #ifdef that is reached only when LONG_MAX != INT_MAX