]> granicus.if.org Git - python/log
python
22 years agoBump the Windows build # for 2.3a1.
Tim Peters [Tue, 31 Dec 2002 02:09:08 +0000 (02:09 +0000)]
Bump the Windows build # for 2.3a1.

22 years agoVarious updates to the version number, on the eve of the 2.3a1 release.
Guido van Rossum [Tue, 31 Dec 2002 01:50:07 +0000 (01:50 +0000)]
Various updates to the version number, on the eve of the 2.3a1 release.

22 years agoAdd lots of items.
Andrew M. Kuchling [Tue, 31 Dec 2002 01:20:30 +0000 (01:20 +0000)]
Add lots of items.
The only thing missing now is the new date/time stuff.

22 years agoFix name error, found by pychecker.
Guido van Rossum [Tue, 31 Dec 2002 01:08:35 +0000 (01:08 +0000)]
Fix name error, found by pychecker.

22 years agoFix SF #639945, 64-bit bug on AIX
Neal Norwitz [Tue, 31 Dec 2002 00:06:24 +0000 (00:06 +0000)]
Fix SF #639945, 64-bit bug on AIX

I can't test this on the snake farm (no aix box is working).
This change works for the submitter seems correct.
Can anybody test this on 32- and 64- bit AIX?

22 years agoTix update from Mike Clarkson (maintainer)
Neal Norwitz [Mon, 30 Dec 2002 23:52:01 +0000 (23:52 +0000)]
Tix update from Mike Clarkson (maintainer)

22 years ago- added InterpolationSyntaxError to __all__
Fred Drake [Mon, 30 Dec 2002 23:51:45 +0000 (23:51 +0000)]
- added InterpolationSyntaxError to __all__
- added docstring to exceptions

22 years ago- re-mark ESR's warning about extended registry syntax
Fred Drake [Mon, 30 Dec 2002 23:50:19 +0000 (23:50 +0000)]
- re-mark ESR's warning about extended registry syntax
- document InterpolationSyntaxError

22 years agoAdd missing InterpolationSyntaxError.
Neal Norwitz [Mon, 30 Dec 2002 23:38:47 +0000 (23:38 +0000)]
Add missing InterpolationSyntaxError.
XXX Not sure this is correct.

22 years agosys was already imported, remove second import
Neal Norwitz [Mon, 30 Dec 2002 23:36:02 +0000 (23:36 +0000)]
sys was already imported, remove second import

22 years ago- prefer "import ... as" to "import / (assignments) / del" for most things
Fred Drake [Mon, 30 Dec 2002 23:32:50 +0000 (23:32 +0000)]
- prefer "import ... as" to "import / (assignments) / del" for most things
- when the thread module isn't available, subsequent attempts to import
  threading should not suceed

22 years agoRename more mixer methods: getrecsrc() -> get_recsrc(),
Greg Ward [Mon, 30 Dec 2002 23:19:32 +0000 (23:19 +0000)]
Rename more mixer methods: getrecsrc() -> get_recsrc(),
setrecsrc() -> set_recsrc().

22 years agoAdded zipimport and _random module.
Jack Jansen [Mon, 30 Dec 2002 23:11:30 +0000 (23:11 +0000)]
Added zipimport and _random module.

22 years agoChanged sys.path initializer because of addition of Lib/plat-mac and a few minor
Jack Jansen [Mon, 30 Dec 2002 23:07:44 +0000 (23:07 +0000)]
Changed sys.path initializer because of addition of Lib/plat-mac and a few minor
things.

22 years agoAdded casts to forestall warnings with MetroWerks.
Jack Jansen [Mon, 30 Dec 2002 23:06:14 +0000 (23:06 +0000)]
Added casts to forestall warnings with MetroWerks.

22 years agoUpdated the expected skips for MacOSX.
Jack Jansen [Mon, 30 Dec 2002 23:03:13 +0000 (23:03 +0000)]
Updated the expected skips for MacOSX.

22 years agoSkip this test on MacOSX: the locale support is too minimal to make
Jack Jansen [Mon, 30 Dec 2002 23:02:55 +0000 (23:02 +0000)]
Skip this test on MacOSX: the locale support is too minimal to make
it pass.

22 years agoAdd entries for the dummy_thread and dummy_threading modules.
Fred Drake [Mon, 30 Dec 2002 23:01:14 +0000 (23:01 +0000)]
Add entries for the dummy_thread and dummy_threading modules.

22 years ago- fix use of \refmodule markup
Fred Drake [Mon, 30 Dec 2002 23:00:36 +0000 (23:00 +0000)]
- fix use of \refmodule markup
- correct some module names, add hyperlinks
- wrap some long lines

22 years agoNews about zipimport.
Guido van Rossum [Mon, 30 Dec 2002 22:59:32 +0000 (22:59 +0000)]
News about zipimport.

22 years agoSquashed compiler wng from MSVC6.
Tim Peters [Mon, 30 Dec 2002 22:44:03 +0000 (22:44 +0000)]
Squashed compiler wng from MSVC6.

22 years agoWouldn't compile on Windows; fixed.
Tim Peters [Mon, 30 Dec 2002 22:42:57 +0000 (22:42 +0000)]
Wouldn't compile on Windows; fixed.

22 years agoAdded a note about the move of Mac/Lib to Lib/plat-mac.
Jack Jansen [Mon, 30 Dec 2002 22:42:43 +0000 (22:42 +0000)]
Added a note about the move of Mac/Lib to Lib/plat-mac.

22 years agoUse the dummy_thread module in Queue.py and tempfile.py.
Guido van Rossum [Mon, 30 Dec 2002 22:36:09 +0000 (22:36 +0000)]
Use the dummy_thread module in Queue.py and tempfile.py.
tempfile.py already contained code to let it run without threads present;
for Queue.py this is considered a useful feature too.

22 years agoAdd dummy_thread[ing] sections and reference these from libthread[ing].
Guido van Rossum [Mon, 30 Dec 2002 22:34:10 +0000 (22:34 +0000)]
Add dummy_thread[ing] sections and reference these from libthread[ing].

22 years agoBrett Cannon's dummy_thread and dummy_threading modules (SF patch
Guido van Rossum [Mon, 30 Dec 2002 22:30:22 +0000 (22:30 +0000)]
Brett Cannon's dummy_thread and dummy_threading modules (SF patch
622537), with some nitpicking editorial changes.

22 years agoSF #561244, Micro optimizations
Neal Norwitz [Mon, 30 Dec 2002 22:29:22 +0000 (22:29 +0000)]
SF #561244, Micro optimizations

Initialize the small integers and __builtins__ in startup.
This removes some if conditions.
Change XDECREF to DECREF for values which shouldn't be NULL.

22 years agoAdapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen [Mon, 30 Dec 2002 22:23:40 +0000 (22:23 +0000)]
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
knows about plat-mac subdirectories, and configure adds a variable
EXTRAPLATDIR. These together take care of copying Lib/plat-mac to
the destination on darwin.

Adding plat-mac is still done with a .pth file which is only created when
you do a framework build. I'm not 100% happy with this, but fixing it
really needs a functional pythonw in non-framework builds, and I don't
think I can do that before 2.3a1 (but I'll try:-).

22 years agoFix SF #658820, regex fixes for _strptime (Brett Cannon)
Neal Norwitz [Mon, 30 Dec 2002 22:23:12 +0000 (22:23 +0000)]
Fix SF #658820, regex fixes for _strptime (Brett Cannon)

Disallow zero for days and months

22 years agoThese were somehow never added to CVS.
Jack Jansen [Mon, 30 Dec 2002 22:14:35 +0000 (22:14 +0000)]
These were somehow never added to CVS.

22 years agoPEP 302 + zipimport:
Just van Rossum [Mon, 30 Dec 2002 22:08:05 +0000 (22:08 +0000)]
PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files

I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...

Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.

22 years agoMoved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen [Mon, 30 Dec 2002 22:04:23 +0000 (22:04 +0000)]
Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).

22 years agoAdd __all__. (Brett Cannon.)
Guido van Rossum [Mon, 30 Dec 2002 21:59:55 +0000 (21:59 +0000)]
Add __all__.  (Brett Cannon.)

22 years agoBite the bullet on all the indirect timetz and datetimetz tzinfo methods:
Tim Peters [Mon, 30 Dec 2002 21:28:52 +0000 (21:28 +0000)]
Bite the bullet on all the indirect timetz and datetimetz tzinfo methods:
make the callers figure out the right tzinfo arguments to pass, instead of
making the callees guess.  The code is uglier this way, but it's less
brittle (when the callee guesses, the caller can get surprised).

22 years agoWe're using strictly American spellings, so there's no diaresis over
Fred Drake [Mon, 30 Dec 2002 21:26:42 +0000 (21:26 +0000)]
We're using strictly American spellings, so there's no diaresis over
the i in naive.

More markup fixups.

22 years agoSF patch 659809, by Daniel Brotsky: fix Makefile.pre to use config
Guido van Rossum [Mon, 30 Dec 2002 21:04:23 +0000 (21:04 +0000)]
SF patch 659809, by Daniel Brotsky: fix Makefile.pre to use config
env.

This adds @CFLAGS@  and @CPPFLAGS@ to the end of the respective
variable definitions.  It also adds $(LDFLAGS) to the $(CC) invocation
to build $(PGEN).

22 years agoA short note about the versions of BerkeleyDB we now support
Barry Warsaw [Mon, 30 Dec 2002 21:03:26 +0000 (21:03 +0000)]
A short note about the versions of BerkeleyDB we now support

22 years agoPort BerkeleyDB 4.1 support from the pybsddb project. bsddb is now at
Barry Warsaw [Mon, 30 Dec 2002 20:53:52 +0000 (20:53 +0000)]
Port BerkeleyDB 4.1 support from the pybsddb project.  bsddb is now at
version 4.1.1 and works with up to BerkeleyDB 4.1.25.

22 years agoAdd some missing tests. Should now test everything that pybsddb's
Barry Warsaw [Mon, 30 Dec 2002 20:53:18 +0000 (20:53 +0000)]
Add some missing tests.  Should now test everything that pybsddb's
test suite tests.

22 years agoA step on the way to making tzinfo classes writable by mortals: get rid
Tim Peters [Mon, 30 Dec 2002 20:52:32 +0000 (20:52 +0000)]
A step on the way to making tzinfo classes writable by mortals:  get rid
of the timetz case.  A tzinfo method will always see a datetimetz arg,
or None, now.  In the former case, it's still possible that it will get
a datetimetz argument belonging to a different timezone.  That will get
fixed next.

22 years agoStart something that might make table notes easier to deal with,
Fred Drake [Mon, 30 Dec 2002 20:51:27 +0000 (20:51 +0000)]
Start something that might make table notes easier to deal with,
eventually.

22 years agoSearch for and use BerkeleyDB 4.1 if it's available. Python's
Barry Warsaw [Mon, 30 Dec 2002 20:51:12 +0000 (20:51 +0000)]
Search for and use BerkeleyDB 4.1 if it's available.  Python's
extension module now supports it.

22 years agoTemplate for future tests.
Barry Warsaw [Mon, 30 Dec 2002 20:44:16 +0000 (20:44 +0000)]
Template for future tests.

22 years agoClean up a table so it passes formatting.
Fred Drake [Mon, 30 Dec 2002 20:35:32 +0000 (20:35 +0000)]
Clean up a table so it passes formatting.

22 years agoAdd news about fix for bug #624807.
Neil Schemenauer [Mon, 30 Dec 2002 20:22:23 +0000 (20:22 +0000)]
Add news about fix for bug #624807.

22 years agoAdded the \var{} markup so the tables will look good.
Raymond Hettinger [Mon, 30 Dec 2002 20:21:21 +0000 (20:21 +0000)]
Added the \var{} markup so the tables will look good.

22 years agoMatch new sequence behavior. User defined types now behave better as and
Neil Schemenauer [Mon, 30 Dec 2002 20:21:15 +0000 (20:21 +0000)]
Match new sequence behavior.  User defined types now behave better as and
with sequences.

22 years agoThis file hasn't been committed for a long time, because it erronuously ended
Jack Jansen [Mon, 30 Dec 2002 20:20:58 +0000 (20:20 +0000)]
This file hasn't been committed for a long time, because it erronuously ended
up in the Carbon package.

22 years agoConsolidate the int and long sequence repeat code. Before the change,
Neil Schemenauer [Mon, 30 Dec 2002 20:19:02 +0000 (20:19 +0000)]
Consolidate the int and long sequence repeat code.  Before the change,
integers checked for integer overflow but longs did not.

22 years agoLong-obsolete, replaced by Carbon.Sound.
Jack Jansen [Mon, 30 Dec 2002 20:18:57 +0000 (20:18 +0000)]
Long-obsolete, replaced by Carbon.Sound.

22 years agoAlways try nb_* slots before trying sq_concat, sq_inplace_concat, sq_repeat,
Neil Schemenauer [Mon, 30 Dec 2002 20:18:15 +0000 (20:18 +0000)]
Always try nb_* slots before trying sq_concat, sq_inplace_concat, sq_repeat,
andsq_inplace_repeat.  This fixes a number of corner case bugs (see #624807).

Consolidate the int and long sequence repeat code.  Before the change, integers
checked for integer overflow but longs did not.

22 years agoAdded markup upto line 233.
Raymond Hettinger [Mon, 30 Dec 2002 20:01:24 +0000 (20:01 +0000)]
Added markup upto line 233.

22 years agoUpdate the email package news.
Barry Warsaw [Mon, 30 Dec 2002 19:27:08 +0000 (19:27 +0000)]
Update the email package news.

22 years agoDescribe the new `errors' argument to Header.__init__() and
Barry Warsaw [Mon, 30 Dec 2002 19:17:37 +0000 (19:17 +0000)]
Describe the new `errors' argument to Header.__init__() and
Header.append()

22 years agotest_bad_8bit_header(): Tests for optional argument `errors'. See SF
Barry Warsaw [Mon, 30 Dec 2002 19:14:38 +0000 (19:14 +0000)]
test_bad_8bit_header(): Tests for optional argument `errors'.  See SF
bug #648119.

22 years agoHeader.__init__(), .append(): Add an optional argument `errors' which
Barry Warsaw [Mon, 30 Dec 2002 19:13:00 +0000 (19:13 +0000)]
Header.__init__(), .append(): Add an optional argument `errors' which
is passed straight through to the unicode() and ustr.encode() calls.
I think it's the best we can do to address the UnicodeErrors in badly
encoded headers such as is described in SF bug #648119.

22 years agoActually, make this 2.5a1 since it will include API changes that may
Barry Warsaw [Mon, 30 Dec 2002 19:08:38 +0000 (19:08 +0000)]
Actually, make this 2.5a1 since it will include API changes that may
need more vetting, and it will be included in Python 2.3a1.

22 years agoSilence cast warnings for Tcl 8.3.
Martin v. Löwis [Mon, 30 Dec 2002 18:14:15 +0000 (18:14 +0000)]
Silence cast warnings for Tcl 8.3.

22 years agoBump to 2.5
Barry Warsaw [Mon, 30 Dec 2002 17:45:41 +0000 (17:45 +0000)]
Bump to 2.5

22 years agoTestMIMEAudio.setUp(): Use the email package's copy of the audio test
Barry Warsaw [Mon, 30 Dec 2002 17:45:02 +0000 (17:45 +0000)]
TestMIMEAudio.setUp(): Use the email package's copy of the audio test
file, needed because some binary distros (read RPMs) don't include the
test module in their standard Python package.  This eliminates an
external dependency and closes SF bug # 650441.

22 years agoA copy of the audio test file from Lib/test, needed because some
Barry Warsaw [Mon, 30 Dec 2002 17:44:27 +0000 (17:44 +0000)]
A copy of the audio test file from Lib/test, needed because some
binary distros (read RPMs) don't include the test module in their
standard Python package.  This eliminates an external dependency and
closes SF bug # 650441.

22 years agoAdded tests that conversion to our own timezone is always an identity,
Tim Peters [Mon, 30 Dec 2002 17:37:30 +0000 (17:37 +0000)]
Added tests that conversion to our own timezone is always an identity,
and that conversion to "timezone" None is the same as stripping the
tzinfo member.

22 years agoparsedate_tz(): Fix SF bug #552345, optional FWS between the comma and
Barry Warsaw [Mon, 30 Dec 2002 17:21:36 +0000 (17:21 +0000)]
parsedate_tz(): Fix SF bug #552345, optional FWS between the comma and
the day in an RFC 2822 date.

22 years agotest_parsedate_compact(): A test for optional FWS between the comma
Barry Warsaw [Mon, 30 Dec 2002 17:20:53 +0000 (17:20 +0000)]
test_parsedate_compact(): A test for optional FWS between the comma
and the day number in an RFC 2822 date specification.  See bug
#552345.

22 years agoBeefed up the timezone conversion test by adding a phony UTC zone that's
Tim Peters [Mon, 30 Dec 2002 17:09:40 +0000 (17:09 +0000)]
Beefed up the timezone conversion test by adding a phony UTC zone that's
west of the US zones getting converted, and also by using Eastern "as if"
it were UTC (wrt Pacific), and vice versa.

22 years agoA code cleansing pass
Barry Warsaw [Mon, 30 Dec 2002 16:43:42 +0000 (16:43 +0000)]
A code cleansing pass

22 years agoPatch 659834 by Magnus Lie Hetland:
Guido van Rossum [Mon, 30 Dec 2002 16:25:41 +0000 (16:25 +0000)]
Patch 659834 by Magnus Lie Hetland:

Check for readline 2.2 features.  This should make it possible to
compile readline.c again with GNU readline versions 2.0 or 2.1; this
ability was removed in readline.c rev. 2.49.  Apparently the older
versions are still in widespread deployment on older Solaris
installations.  With an older readline, completion behavior is subtly
different (a space is always added).

22 years agoPort rfc822.py changes that didn't make it into this copy,
Barry Warsaw [Mon, 30 Dec 2002 16:21:07 +0000 (16:21 +0000)]
Port rfc822.py changes that didn't make it into this copy,
specifically that dots are allowed in obs-phrase.  This fixes parsing
of dots in realnames.

22 years agotest_name_with_dots(): A new test to ensure that we're implementing
Barry Warsaw [Mon, 30 Dec 2002 16:19:52 +0000 (16:19 +0000)]
test_name_with_dots(): A new test to ensure that we're implementing
RFC 2822's rules w.r.t. dots in the realname part of address fields.

22 years agoMore markup additions
Andrew M. Kuchling [Mon, 30 Dec 2002 14:20:16 +0000 (14:20 +0000)]
More markup additions

22 years agoString tests should test 8-bit strings :-)
Marc-André Lemburg [Mon, 30 Dec 2002 10:50:32 +0000 (10:50 +0000)]
String tests should test 8-bit strings :-)

22 years agoLast checkin was missing the tuple comma.
Raymond Hettinger [Mon, 30 Dec 2002 07:21:32 +0000 (07:21 +0000)]
Last checkin was missing the tuple comma.
The new "substr in str" feature masked the error.

22 years agoRestore the test of the random module after including "Random" in the
Raymond Hettinger [Mon, 30 Dec 2002 07:04:47 +0000 (07:04 +0000)]
Restore the test of the random module after including "Random" in the
ignore tuple.

The line, "from _random import Random as CoreGenerator", fools the test
code which expects CoreGenerator.__name__ to be "CoreGenerator" instead
of "Random".

22 years agoMinor grammar fix, and clarification
Andrew M. Kuchling [Mon, 30 Dec 2002 03:08:27 +0000 (03:08 +0000)]
Minor grammar fix, and clarification

22 years agoMark up more text
Andrew M. Kuchling [Mon, 30 Dec 2002 03:06:45 +0000 (03:06 +0000)]
Mark up more text

22 years agoUntabify.
Greg Ward [Mon, 30 Dec 2002 03:02:22 +0000 (03:02 +0000)]
Untabify.

22 years agoWhitespace fixes to conform to coding standards.
Greg Ward [Mon, 30 Dec 2002 03:01:48 +0000 (03:01 +0000)]
Whitespace fixes to conform to coding standards.

22 years agoTemporarily comment out a test that crashes upon the introduction of
Raymond Hettinger [Mon, 30 Dec 2002 03:01:25 +0000 (03:01 +0000)]
Temporarily comment out a test that crashes upon the introduction of
the _random subclass for Random.

22 years agoComment fix.
Greg Ward [Mon, 30 Dec 2002 02:58:04 +0000 (02:58 +0000)]
Comment fix.

22 years agoRename some mixer methods:
Greg Ward [Mon, 30 Dec 2002 02:43:36 +0000 (02:43 +0000)]
Rename some mixer methods:
  * channels() -> devices()
  * stereochannels() -> stereodevices()
  * recchannels() -> recdevices()
  * getvol() -> get()
  * setvol() -> set()
This is for (slightly) more consistency with the OSS ioctl names
(READ_DEVMASK, READ_RECMASK, READ_STEREODEVS).

Also make sure the C function names correspond more closely to the
Python method names for mixer methods.

22 years agoRemove 'x_' prefix from oss_t and oss_mixer_t struct members.
Greg Ward [Mon, 30 Dec 2002 02:29:28 +0000 (02:29 +0000)]
Remove 'x_' prefix from oss_t and oss_mixer_t struct members.
(It added nothing, and served no obvious purpose.)

Export SOUND_MIXER_NRDEVICES constant.

22 years agoThis test depends on the exact ordering produced by the WichmannHill
Raymond Hettinger [Mon, 30 Dec 2002 00:46:09 +0000 (00:46 +0000)]
This test depends on the exact ordering produced by the WichmannHill
random number generator.  Altered it a bit to use the old generator
and restore the test.

22 years agoRevert the last change. Tim was faster and chose a different route.
Raymond Hettinger [Mon, 30 Dec 2002 00:40:40 +0000 (00:40 +0000)]
Revert the last change.  Tim was faster and chose a different route.

22 years agoDocument the _randommodule project for the Windows build.
Raymond Hettinger [Mon, 30 Dec 2002 00:03:27 +0000 (00:03 +0000)]
Document the _randommodule project for the Windows build.

22 years agoTaught the Windows build about _randommodule.c. This is compiled
Tim Peters [Sun, 29 Dec 2002 23:46:40 +0000 (23:46 +0000)]
Taught the Windows build about _randommodule.c.  This is compiled
into the core DLL, since it's not much code and lots of stuff uses
it (e.g., try getting a tempfile name without it).

22 years agoA start at non-trivial (== DST-aware) tests of timezone conversion.
Tim Peters [Sun, 29 Dec 2002 23:44:49 +0000 (23:44 +0000)]
A start at non-trivial (== DST-aware) tests of timezone conversion.
Guido has in mind an easier way for users to code this stuff, but the
only tests we have now are for fixed-offset tzinfo classes, and this
stuff is extremely delicate in the endcases (read the new test code
for why:  there are holes in time <wink>).

22 years agoSF patch 658251: Install a C implementation of the Mersenne Twister as the
Raymond Hettinger [Sun, 29 Dec 2002 23:03:38 +0000 (23:03 +0000)]
SF patch 658251: Install a C implementation of the Mersenne Twister as the
core generator for random.py.

22 years agoRemove some old debugging print statements.
Kurt B. Kaiser [Sun, 29 Dec 2002 22:48:52 +0000 (22:48 +0000)]
Remove some old debugging print statements.

22 years agoM EditorWindow.py
Kurt B. Kaiser [Sun, 29 Dec 2002 22:03:38 +0000 (22:03 +0000)]
M EditorWindow.py
M PyShell.py

1. PyShell Rev 1.39, EditorWindow Rev 1.37 fix was not handling a
   multiline prompt.
2. The same fix introduced a bug where hitting <enter> at a previous
   prompt-only line would copy the prompt to the iomark.
3. Move the setting of sys.ps1 earlier, into PyShell.main(), to allow
   this code to work before a shell is started up.
4. If cursor is on the input line in the prompt, and you hit <enter>,
   process the line instead of complaining.
5. If line has no stdin range (this includes the last line before shell
   restart) strip any prompt before recalling.

22 years agoAdd newsitem for the two new unittest methods.
Raymond Hettinger [Sun, 29 Dec 2002 20:14:11 +0000 (20:14 +0000)]
Add newsitem for the two new unittest methods.
Also, made some whitespace cleanup.

22 years agoPatch for bug #659709: bogus computation of float length
Marc-André Lemburg [Sun, 29 Dec 2002 19:44:06 +0000 (19:44 +0000)]
Patch for bug #659709: bogus computation of float length

Python 2.2.x backport candidate. (This bug has been around since
Python 1.6.)

22 years agoMake error message more specific for min() and max().
Raymond Hettinger [Sun, 29 Dec 2002 18:31:19 +0000 (18:31 +0000)]
Make error message more specific for min() and max().
Suggested by MvL.

22 years agoIncorporate Skip's suggestion to use SciPy's validation test near
Raymond Hettinger [Sun, 29 Dec 2002 17:59:24 +0000 (17:59 +0000)]
Incorporate Skip's suggestion to use SciPy's validation test near
equality.  Note, there is another flavor that compares to a given
number of significant digits rather than decimal places.  If there
is a demand, that could be added at a later date.

22 years agoDemonstrate use of PyType_Ready() in the example.
Raymond Hettinger [Sun, 29 Dec 2002 17:16:49 +0000 (17:16 +0000)]
Demonstrate use of PyType_Ready() in the example.

22 years agoBug #599248: strip directories when building Python. Out-of-tree builds should work...
Andrew M. Kuchling [Sun, 29 Dec 2002 17:00:57 +0000 (17:00 +0000)]
Bug #599248: strip directories when building Python.  Out-of-tree builds should work again.

22 years agoSuppress unsafe *Cookie class warnings
Andrew M. Kuchling [Sun, 29 Dec 2002 16:45:06 +0000 (16:45 +0000)]
Suppress unsafe *Cookie class warnings

22 years agoPatch #655760: add warnings when the unsafe *Cookie classes are instantiated
Andrew M. Kuchling [Sun, 29 Dec 2002 16:44:31 +0000 (16:44 +0000)]
Patch #655760: add warnings when the unsafe *Cookie classes are instantiated

22 years agoSF patch #659536: Use PyArg_UnpackTuple where possible.
Raymond Hettinger [Sun, 29 Dec 2002 16:33:45 +0000 (16:33 +0000)]
SF patch #659536: Use PyArg_UnpackTuple where possible.

Obtain cleaner coding and a system wide
performance boost by using the fast, pre-parsed
PyArg_Unpack function instead of PyArg_ParseTuple
function which is driven by a format string.

22 years agoSF Bug 645777: list.extend() works with any iterable and is no longer
Raymond Hettinger [Sun, 29 Dec 2002 05:49:09 +0000 (05:49 +0000)]
SF Bug 645777:  list.extend() works with any iterable and is no longer
experimental.

22 years agoApparently FreeBSD enables some HW floating-point exceptions by default.
Tim Peters [Sat, 28 Dec 2002 21:56:08 +0000 (21:56 +0000)]
Apparently FreeBSD enables some HW floating-point exceptions by default.
This can cause core dumps when Python runs.  Python relies on the 754-
(and C99-) mandated default "non-stop" mode for FP exceptions.  This
patch from Ben Laurie disables at least one FP exception on FreeBSD at
Python startup time.