]> granicus.if.org Git - python/log
python
22 years agoUpdated Windows buildno for 2.2.3 final.
Tim Peters [Fri, 30 May 2003 15:23:21 +0000 (15:23 +0000)]
Updated Windows buildno for 2.2.3 final.

22 years agoUpdate for release
Kurt B. Kaiser [Fri, 30 May 2003 02:42:02 +0000 (02:42 +0000)]
Update for release
Modified Files:
  CREDITS.txt INSTALL.txt LICENSE.txt aboutDialog.py setup.py

22 years agoComment fix.
Greg Ward [Thu, 29 May 2003 23:44:44 +0000 (23:44 +0000)]
Comment fix.

22 years ago- Get the database from a different place.
Jack Jansen [Thu, 29 May 2003 22:07:27 +0000 (22:07 +0000)]
- Get the database from a different place.
- Added support for multi-line descriptions. Doesn't look nice
yet in Package Manager.

22 years agoChange _ssize() so it doesn't rely on sizeof(char) or sizeof(short):
Greg Ward [Thu, 29 May 2003 21:55:41 +0000 (21:55 +0000)]
Change _ssize() so it doesn't rely on sizeof(char) or sizeof(short):
8 bits is 1 byte, and that isn't about to change any time soon.  (I hope!)

22 years agoCompletely change the interface to setparameters():
Greg Ward [Thu, 29 May 2003 21:53:06 +0000 (21:53 +0000)]
Completely change the interface to setparameters():
  * it no longer takes ssize, which served no purpose apart from
    scolding you if you got it wrong
  * changed the order of the three remaining required arguments
    to (format, channels, rate) to match the order in which they
    must be set
  * replaced the optional argument 'emulate' with 'strict': if strict
    true, and the audio device does not accept the requested sampling
    parameters, raise OSSAudioError
  * return a tuple (format, channels, rate) reflecting the sampling
    parameters that were actually set

Change the canonical name of ossaudiodev.error to
ossaudiodev.OSSAudioError (keep an alias for backwards compatibility).

Remove 'audio_types' list and 'n_audio_types' (no longer needed now that
setparameters() no longer has an 'ssize' argument to police).

22 years agoInclude both </tr> tags in the thead, not just the first.
Fred Drake [Thu, 29 May 2003 19:46:29 +0000 (19:46 +0000)]
Include both </tr> tags in the thead, not just the first.

22 years ago_make_boundary(): Fix for SF bug #745478, broken boundary calculation
Barry Warsaw [Thu, 29 May 2003 19:39:33 +0000 (19:39 +0000)]
_make_boundary(): Fix for SF bug #745478, broken boundary calculation
in some locales.  This code simplifies the boundary algorithm to use
randint() which is what we wanted anyway.

Bump package version to 2.5.3.

Backport candidate for Python 2.2.3

22 years agoI saw errors from _fileobject.__del__ about missing self._sock. This
Guido van Rossum [Thu, 29 May 2003 14:36:57 +0000 (14:36 +0000)]
I saw errors from _fileobject.__del__ about missing self._sock.  This
can happen if __init__ doesn't complete.  Fix it by adding a
try/except to __del__.

22 years agoRemove debug code from weakref_segfault().
Guido van Rossum [Thu, 29 May 2003 14:30:49 +0000 (14:30 +0000)]
Remove debug code from weakref_segfault().

22 years agoFix for SF 742911. We now clear the weakrefs *before* calling __del__
Guido van Rossum [Thu, 29 May 2003 14:29:23 +0000 (14:29 +0000)]
Fix for SF 742911.  We now clear the weakrefs *before* calling __del__
or emptying __dict__, just as we do for classic classes.

22 years agoAdd testcase for SF 742911.
Guido van Rossum [Thu, 29 May 2003 14:26:57 +0000 (14:26 +0000)]
Add testcase for SF 742911.

22 years agoFix typo so that the test actually calls the tested function.
Raymond Hettinger [Thu, 29 May 2003 07:20:29 +0000 (07:20 +0000)]
Fix typo so that the test actually calls the tested function.

22 years agoTest ability to handle various type of iterators.
Raymond Hettinger [Thu, 29 May 2003 07:18:57 +0000 (07:18 +0000)]
Test ability to handle various type of iterators.

22 years agoSF bug #719367, string exceptions are deprecated
Neal Norwitz [Thu, 29 May 2003 02:17:23 +0000 (02:17 +0000)]
SF bug #719367, string exceptions are deprecated

Remove references to string based exceptions in the doc.

22 years agoisdatadescriptor() was added recently.
Neal Norwitz [Thu, 29 May 2003 02:10:31 +0000 (02:10 +0000)]
isdatadescriptor() was added recently.

22 years agoTypo fix.
Greg Ward [Thu, 29 May 2003 01:41:51 +0000 (01:41 +0000)]
Typo fix.

22 years agoRewrite the description of setparameters() so it actually reflects the
Greg Ward [Thu, 29 May 2003 01:39:32 +0000 (01:39 +0000)]
Rewrite the description of setparameters() so it actually reflects the
code (which has also been recently overhauled, so that it can be
documented without embarassment).

'error' has been renamed to 'OSSAudioError'.

Minor wordsmithing.

22 years agoTest script changed.
Greg Ward [Thu, 29 May 2003 01:29:28 +0000 (01:29 +0000)]
Test script changed.

22 years agoRenamed test_errors() to test_setparameters() and completely rewrote it
Greg Ward [Thu, 29 May 2003 01:27:39 +0000 (01:27 +0000)]
Renamed test_errors() to test_setparameters() and completely rewrote it
to test the new setparameters() interface.

Modified play_sound_file() to print the elapsed time taken to play the
test sample (to the nearest 0.1 sec).

22 years agoOrder and number of arguments to setparameters() has changed.
Greg Ward [Thu, 29 May 2003 00:23:17 +0000 (00:23 +0000)]
Order and number of arguments to setparameters() has changed.
Rename 'a' (the audio device) to 'dsp' everywhere.

22 years agoFix SF #745055, Memory leak in _tkinter.c/Tkapp_SplitList()
Neal Norwitz [Thu, 29 May 2003 00:17:03 +0000 (00:17 +0000)]
Fix SF #745055, Memory leak in _tkinter.c/Tkapp_SplitList()

Also fix a memory leak in Tkapp_Split.

This needs to be backported.  I'll leave it up to Barry whether this
is for 2.2.3 or 2.2.4.

22 years agoExample database for Package Manager.
Jack Jansen [Wed, 28 May 2003 18:57:52 +0000 (18:57 +0000)]
Example database for Package Manager.

22 years ago- Added a scheme whereby pimp can update itself, by importing a module
Jack Jansen [Wed, 28 May 2003 18:56:30 +0000 (18:56 +0000)]
- Added a scheme whereby pimp can update itself, by importing a module
  pimp_update if it exists. Upped the version number to indicate this.
  Fixes #731626.
- Added -V (print version) and -u (specify database URL) options when run
  as a command line tool.

22 years agoRemove the note about the BerkeleyDB license. Barry indicates that
Gregory P. Smith [Wed, 28 May 2003 16:20:03 +0000 (16:20 +0000)]
Remove the note about the BerkeleyDB license.  Barry indicates that
sleepycat has told him that since python is OSS and berkeleydb is
being distributed with python for the bsddb library all is fine.

22 years agoAdd notes on use cases with paired accesses to the same key.
Raymond Hettinger [Wed, 28 May 2003 14:10:46 +0000 (14:10 +0000)]
Add notes on use cases with paired accesses to the same key.

22 years ago* Beefed-up tests
Raymond Hettinger [Wed, 28 May 2003 14:05:34 +0000 (14:05 +0000)]
* Beefed-up tests
* Allow tuple re-use
* Call tp_iternext directly

22 years agoOops. License is still an appendix.
Jeremy Hylton [Wed, 28 May 2003 12:12:55 +0000 (12:12 +0000)]
Oops.  License is still an appendix.

22 years agoUpdate dependencies.
Jeremy Hylton [Wed, 28 May 2003 12:10:14 +0000 (12:10 +0000)]
Update dependencies.

22 years agoAppendix was removed.
Jeremy Hylton [Wed, 28 May 2003 12:04:38 +0000 (12:04 +0000)]
Appendix was removed.

22 years agoRename lib__future__.tex to libfuture.tex and add link in lib.tex.
Jeremy Hylton [Wed, 28 May 2003 11:57:52 +0000 (11:57 +0000)]
Rename lib__future__.tex to libfuture.tex and add link in lib.tex.

22 years ago*** empty log message ***
Jeremy Hylton [Wed, 28 May 2003 11:51:11 +0000 (11:51 +0000)]
*** empty log message ***

22 years agoWrap the cursor functions with dbutils.DeadlockWrap to deal with the
Gregory P. Smith [Wed, 28 May 2003 08:26:43 +0000 (08:26 +0000)]
Wrap the cursor functions with dbutils.DeadlockWrap to deal with the
expected DBLockDeadLockErrors.

22 years agoInclude a link to the pybsddb web documentation for the modern object
Gregory P. Smith [Wed, 28 May 2003 07:56:45 +0000 (07:56 +0000)]
Include a link to the pybsddb web documentation for the modern object
oriented DbEnv & Db object BerkeleyDB interface.

Include a note about Sleepycat's BerkeleyDB license with regards to
distributing it within non-opensource applications and include a link
to their website for license details.

Document that 'r' is the default flag for the legacy bsddb btopen(),
hashopen(), and rnopen() functions.  This is apparently different than the
dbm libraries in other languages according to Bug #732951.  Changing
the default from 'r' to 'c' would break backwards compatibility with
legacy bsddb applications; documenting the default should suffice.

22 years agoAdded a config-main General option to delete sys.exitfunc. The default
Kurt B. Kaiser [Wed, 28 May 2003 01:47:46 +0000 (01:47 +0000)]
Added a config-main General option to delete sys.exitfunc.  The default
is not to do that.  VPython and student environment support.

M PyShell.py
M config-main.def
M run.py

22 years agoAlternate fix for #728744: use OSA and Apple Help Indexing Tool's idleStatus
Jack Jansen [Tue, 27 May 2003 22:47:55 +0000 (22:47 +0000)]
Alternate fix for #728744: use OSA and Apple Help Indexing Tool's idleStatus
indicator to wait for the help indexing to finish.

22 years agoAdded functions CFObj_New and CFObj_Convert, general functions to convert
Jack Jansen [Tue, 27 May 2003 21:39:58 +0000 (21:39 +0000)]
Added functions CFObj_New and CFObj_Convert, general functions to convert
between CF objects and their Python representation. Fixes 734695.

22 years agoAdd more tests from RFC 2202.
Jeremy Hylton [Tue, 27 May 2003 16:16:41 +0000 (16:16 +0000)]
Add more tests from RFC 2202.

22 years agoAdded Help menu. Fixes #731635
Jack Jansen [Tue, 27 May 2003 14:10:37 +0000 (14:10 +0000)]
Added Help menu. Fixes #731635

22 years agoFixup bare try/except.
Raymond Hettinger [Tue, 27 May 2003 06:30:52 +0000 (06:30 +0000)]
Fixup bare try/except.

22 years agoOops, move the GIL release/reacquire from oss_sync() to _do_ioctl_0():
Greg Ward [Tue, 27 May 2003 01:57:21 +0000 (01:57 +0000)]
Oops, move the GIL release/reacquire from oss_sync() to _do_ioctl_0():
that way it applies to *only* the ioctl() call, and also happens for the
other blocking ioctls (POST, RESET).

22 years agomodulefinder.py is not a freeze private module anymore.
Gustavo Niemeyer [Mon, 26 May 2003 23:52:30 +0000 (23:52 +0000)]
modulefinder.py is not a freeze private module anymore.

22 years agoRelease the GIL in two more methods:
Greg Ward [Mon, 26 May 2003 22:47:30 +0000 (22:47 +0000)]
Release the GIL in two more methods:
  * sync(), because it waits for hardware buffers to flush, which
    can take several seconds depending on cirumstances (according
    to the OSS docs)
  * close(), because it does an implicit sync()

22 years agoWhitespace Normalization
Kurt B. Kaiser [Mon, 26 May 2003 22:20:34 +0000 (22:20 +0000)]
Whitespace Normalization
Modified Files: PyShell.py ScriptBinding.py buildapp.py

22 years agoFixed minor typo in Setup.dist.
Gustavo Niemeyer [Mon, 26 May 2003 21:19:47 +0000 (21:19 +0000)]
Fixed minor typo in Setup.dist.

22 years ago1. SF Bug 661676
Kurt B. Kaiser [Mon, 26 May 2003 20:35:53 +0000 (20:35 +0000)]
1. SF Bug 661676
   The default font is not highlighted in the Options dialog when
   IDLEfork is first installed.

2. Reduce default font to 10 pt and increase default window height to give
   a better initial impression on Windows.

M config-main.def
M configDialog.py

22 years agoSF patch #719359, fix test_long failure on OSF/1 with vendor cc
Neal Norwitz [Mon, 26 May 2003 14:11:55 +0000 (14:11 +0000)]
SF patch #719359, fix test_long failure on OSF/1 with vendor cc

This also fixes several other bugs and patches by providing
the proper arguments to cc:  738066 and 741806 need -ieee,
693094 needs -std

22 years agoFix SF bug #735694, Pydoc.py fixes links
Neal Norwitz [Mon, 26 May 2003 13:49:54 +0000 (13:49 +0000)]
Fix SF bug #735694, Pydoc.py fixes links

Modified the patch some.  Fixed invalid link in UNICODE (to STRING).
Also updates some references.

22 years agoBruce Sherwood RFE/Patch
Kurt B. Kaiser [Mon, 26 May 2003 06:23:10 +0000 (06:23 +0000)]
Bruce Sherwood RFE/Patch
SF 661318

Adds autosave capability to IDLE and IDLE configuration dialog.

User can Run/F5 without explicit save dialog.

The default is to require the user to confirm the save.

M ScriptBinding.py
M config-main.def
M configDialog.py

22 years agoPatch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis [Mon, 26 May 2003 05:37:51 +0000 (05:37 +0000)]
Patch #742741: Check for true in different paths, support -pthread.

22 years agoRemove -U from argument list.
Martin v. Löwis [Mon, 26 May 2003 05:15:35 +0000 (05:15 +0000)]
Remove -U from argument list.

22 years agoMore wordsmithing and cleanup.
Greg Ward [Mon, 26 May 2003 01:51:33 +0000 (01:51 +0000)]
More wordsmithing and cleanup.

22 years agoFixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen [Sun, 25 May 2003 22:01:32 +0000 (22:01 +0000)]
Fixed the DESTDIR modifications to also allow MacOSX framework builds
to be installed to a different location. This should make the OSX binary
installer building a lot simpler.

22 years agoAdded a --python option, which sets the python to be used in the #! line
Jack Jansen [Sun, 25 May 2003 22:00:17 +0000 (22:00 +0000)]
Added a --python option, which sets the python to be used in the #! line
in the bootstrap script of the applet.

22 years agofixed some DeprecationWarnings
Just van Rossum [Sun, 25 May 2003 20:44:37 +0000 (20:44 +0000)]
fixed some DeprecationWarnings

22 years agoFix ref counts in initialization code.
Raymond Hettinger [Sun, 25 May 2003 17:59:38 +0000 (17:59 +0000)]
Fix ref counts in initialization code.

22 years agoFleshed out WeakKeyDictionary.__delitem__ NEWS to cover issues raised on
Tim Peters [Sun, 25 May 2003 17:44:31 +0000 (17:44 +0000)]
Fleshed out WeakKeyDictionary.__delitem__ NEWS to cover issues raised on
Python-Dev.  Fixed typos in test comments.  Added some trivial new test
guts to show the parallelism (now) among __delitem__, __setitem__ and
__getitem__ wrt error conditions.

Still a bugfix candidate for 2.2.3 final, but waiting for Fred to get a
chance to chime in.

22 years agoSF 742860: WeakKeyDictionary __delitem__ uses iterkeys
Tim Peters [Sun, 25 May 2003 01:45:11 +0000 (01:45 +0000)]
SF 742860: WeakKeyDictionary __delitem__ uses iterkeys

Someone review this, please!  Final releases are getting close, Fred
(the weakref guy) won't be around until Tuesday, and the pre-patch
code can indeed raise spurious RuntimeErrors in the presence of
threads or mutating comparison functions.

See the bug report for my confusions:  I can't see any reason for why
__delitem__ iterated over the keys.  The new one-liner implementation
is much faster, can't raise RuntimeError, and should be better-behaved
in all respects wrt threads.

New tests test_weak_keyed_bad_delitem and
test_weak_keyed_cascading_deletes fail before this patch.

Bugfix candidate for 2.2.3 too, if someone else agrees with this patch.

22 years agoImproved the RESTART annotation in the shell window when the user
Kurt B. Kaiser [Sat, 24 May 2003 21:12:46 +0000 (21:12 +0000)]
Improved the RESTART annotation in the shell window when the user
restarts the shell while it is generating output.  Also improved
annotation when user repeatedly hammers the Ctrl-F6 restart.

22 years agoFix a bug in Rev 1.10 - Windows can't handle a leading ':' if the
Kurt B. Kaiser [Sat, 24 May 2003 21:01:39 +0000 (21:01 +0000)]
Fix a bug in Rev 1.10 - Windows can't handle a leading ':' if the
user's PYTHONPATH is empty (though Linux can).
Modified Files:
idle idle.py idle.pyw

22 years ago1. Stake Freddy.
Kurt B. Kaiser [Sat, 24 May 2003 20:59:15 +0000 (20:59 +0000)]
1. Stake Freddy.
   e.g. further improve subprocess interrupt, exceptions, and termination.
2. Remove the workarounds in PyShell.py and ScriptBinding.py involving
   interrupting the subprocess prior to killing it, not necessary anymore.
3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu
   every time the shell window was recreated.

M PyShell.py
M ScriptBinding.py
M rpc.py
M run.py

22 years agoSomehow ColorPicker has never been included or tested under darwin, but it works...
Just van Rossum [Sat, 24 May 2003 20:21:50 +0000 (20:21 +0000)]
Somehow ColorPicker has never been included or tested under darwin, but it works just fine.

22 years agoSF bug 705231: Assertion failed, python aborts.
Tim Peters [Sat, 24 May 2003 20:18:24 +0000 (20:18 +0000)]
SF bug 705231:  Assertion failed, python aborts.
float_pow():  Don't let the platform pow() raise -1.0 to an integer power
anymore; at least glibc gets it wrong in some cases.  Note that
math.pow() will continue to deliver wrong (but platform-native) results
in such cases.

22 years agomodernized ColorPicker somewhat
Just van Rossum [Sat, 24 May 2003 20:14:24 +0000 (20:14 +0000)]
modernized ColorPicker somewhat

22 years ago'sum' is no longer a good variable name. Use 'total' instead.
Raymond Hettinger [Sat, 24 May 2003 17:26:02 +0000 (17:26 +0000)]
'sum' is no longer a good variable name.  Use 'total' instead.

22 years agoModified patch #742126: Don't define _XOPEN_SOURCE for OpenBSD 3.3.
Martin v. Löwis [Sat, 24 May 2003 12:35:47 +0000 (12:35 +0000)]
Modified patch #742126: Don't define _XOPEN_SOURCE for OpenBSD 3.3.

22 years agoConvert tcl_version to str before comparing. Fixes #729317.
Martin v. Löwis [Sat, 24 May 2003 11:37:15 +0000 (11:37 +0000)]
Convert tcl_version to str before comparing. Fixes #729317.

22 years agoGet test_ioctl to pass on HPUX 11.
Neal Norwitz [Fri, 23 May 2003 14:35:24 +0000 (14:35 +0000)]
Get test_ioctl to pass on HPUX 11.

TIOCGPGRP and many other definitions come from bsdtty.h, so it needs
to be included at least on HPUX.

22 years agoAfter Raymond's remark, I changed the Stackless bits to
Christian Tismer [Fri, 23 May 2003 12:47:36 +0000 (12:47 +0000)]
After Raymond's remark, I changed the Stackless bits to
two fixed bits, position 15 and 16. It is right, why should these
be elsewhere.

22 years agoAll calls to getarrayitem() (which is static) are done either in loops
Walter Dörwald [Fri, 23 May 2003 10:01:07 +0000 (10:01 +0000)]
All calls to getarrayitem() (which is static) are done either in loops
over the size of the array, or the callers check the index bounds themselves,
so the index check never failed => Replace it with an assert().

22 years agoiteritems() should not have been used for self.timeout which changes during the loop.
Raymond Hettinger [Fri, 23 May 2003 08:51:51 +0000 (08:51 +0000)]
iteritems() should not have been used for self.timeout which changes during the loop.

22 years agoPyType_GenericAlloc is inherited from object.
Raymond Hettinger [Fri, 23 May 2003 03:55:42 +0000 (03:55 +0000)]
PyType_GenericAlloc is inherited from object.

22 years agoGeneralized my type flags structure extension without being specific about
Christian Tismer [Fri, 23 May 2003 03:33:35 +0000 (03:33 +0000)]
Generalized my type flags structure extension without being specific about
the purpose. Increased my claim to two bits, hoping that nobody
will complain about it. I'm taking the highest two bits, whatever
the integer word size may be.

22 years agoLots of wordsmithing and typographical improvement.
Greg Ward [Fri, 23 May 2003 02:44:46 +0000 (02:44 +0000)]
Lots of wordsmithing and typographical improvement.

22 years agoRelease the GIL around read(), write(), and select() calls.
Greg Ward [Fri, 23 May 2003 01:50:37 +0000 (01:50 +0000)]
Release the GIL around read(), write(), and select() calls.
Bug spotted by Joerg Lehmann <joerg@luga.de>.

22 years agoSF bug #644345, Poor error message for augmented assign
Neal Norwitz [Thu, 22 May 2003 22:00:04 +0000 (22:00 +0000)]
SF bug #644345, Poor error message for augmented assign

Update error message.  Hopefully this is clearer to some people.

22 years agoPort test_mimetools.py to PyUnit and add various tests.
Walter Dörwald [Thu, 22 May 2003 17:32:40 +0000 (17:32 +0000)]
Port test_mimetools.py to PyUnit and add various tests.

From SF patch #736962.

22 years agosound_playsound() doesn't have to be visible externally,
Walter Dörwald [Thu, 22 May 2003 17:22:54 +0000 (17:22 +0000)]
sound_playsound() doesn't have to be visible externally,
so make it static.

22 years agoFixed dotted name assertion.
Raymond Hettinger [Thu, 22 May 2003 16:32:58 +0000 (16:32 +0000)]
Fixed dotted name assertion.

22 years agoUse macro to get length of list.
Jeremy Hylton [Thu, 22 May 2003 16:22:33 +0000 (16:22 +0000)]
Use macro to get length of list.
Remove comment about how code used to work.

22 years agoRemove comment with very long lines that explained what the code used
Jeremy Hylton [Thu, 22 May 2003 15:47:02 +0000 (15:47 +0000)]
Remove comment with very long lines that explained what the code used
to do.

XXX Please be careful when checking in patches to avoid checking in
junk that explains what the patched code used to do.

22 years agoRecord 2.2.3c1 Windows build number.
Tim Peters [Thu, 22 May 2003 15:30:36 +0000 (15:30 +0000)]
Record 2.2.3c1 Windows build number.

22 years agoCorrect dependency information -- the Python docs load the "About this
Fred Drake [Thu, 22 May 2003 15:28:55 +0000 (15:28 +0000)]
Correct dependency information -- the Python docs load the "About this
document" text from html/stdabout.dat, not html/about.dat.

22 years agoAdd historical note for Python 2.2.3
Barry Warsaw [Thu, 22 May 2003 15:17:40 +0000 (15:17 +0000)]
Add historical note for Python 2.2.3

22 years agoMinor elaboration in the information about reporting errors.
Fred Drake [Thu, 22 May 2003 15:09:27 +0000 (15:09 +0000)]
Minor elaboration in the information about reporting errors.

22 years agoupdate version history
Fred Drake [Thu, 22 May 2003 14:58:02 +0000 (14:58 +0000)]
update version history

22 years ago[Bug #741171] pdb crashes when enabling a non-existing breakpoint
Andrew M. Kuchling [Thu, 22 May 2003 14:46:12 +0000 (14:46 +0000)]
[Bug #741171] pdb crashes when enabling a non-existing breakpoint

Check the supplied breakpoint number more carefully.
(Incompatibility: before this patch, "enable -1" would enable
the last breakpoint on the list; now -1 is not a legal ID.  Not sure
anyone would ever use negative indices...)

2.2 bugfix candidate, assuming making -1 illegal isn't considered a problem.

22 years agoWalter's last checkin also needs to work on doubles.
Neal Norwitz [Thu, 22 May 2003 13:29:15 +0000 (13:29 +0000)]
Walter's last checkin also needs to work on doubles.
 * Move new test_byteswap into FPTest.
 * Remove extra lines at end of file.

22 years agotest_byteswap() fails on alphas, because treating the byte swapped bit
Walter Dörwald [Thu, 22 May 2003 13:15:31 +0000 (13:15 +0000)]
test_byteswap() fails on alphas, because treating the byte swapped bit
patterns as floats/doubles results in floating point exceptions.

Fix this by implementing a separate test_byteswap() for the floating
point tests. This new test compares the tostring() values of both arrays
instead of the arrays themselves.

Discovered by Neal Norwitz.

22 years agoAdd documentation for __future__
Jeremy Hylton [Wed, 21 May 2003 21:45:01 +0000 (21:45 +0000)]
Add documentation for __future__

22 years agoMove future statement here from appendix a.
Jeremy Hylton [Wed, 21 May 2003 21:43:00 +0000 (21:43 +0000)]
Move future statement here from appendix a.

22 years agoPyType_Ready(): Complain if the type is a base type, and gc'able, and
Tim Peters [Wed, 21 May 2003 21:29:48 +0000 (21:29 +0000)]
PyType_Ready():  Complain if the type is a base type, and gc'able, and
tp_free is NULL or PyObject_Del at the end.  Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.

inherit_slots():  Don't inherit tp_free unless the type and its base
agree about whether they're gc'able.  If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).

cPickle.c:  The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that.  Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.

22 years agoFix for SF [ 734869 ] Lambda functions in list comprehensions
Jeremy Hylton [Wed, 21 May 2003 17:34:50 +0000 (17:34 +0000)]
Fix for SF [ 734869 ] Lambda functions in list comprehensions

The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module.  Repair by move tmpname into the symtable entry.

Bugfix candidate.

22 years agoSF bug #604716: faster [None]*n or []*n
Raymond Hettinger [Wed, 21 May 2003 05:58:46 +0000 (05:58 +0000)]
SF bug #604716: faster [None]*n or []*n

Fulfilled request to special case repetitions of lists of length 0 or 1.

22 years agoDon't mention __slots__ as a technique for error avoidance
Andrew M. Kuchling [Tue, 20 May 2003 18:12:21 +0000 (18:12 +0000)]
Don't mention __slots__ as a technique for error avoidance

22 years agoAdded a test for the fix of SF bug #658233, where continuation lines
Barry Warsaw [Tue, 20 May 2003 17:28:54 +0000 (17:28 +0000)]
Added a test for the fix of SF bug #658233, where continuation lines
in .po metadata caused a crash.

Also, removed some unnecessary code.

Backport candidate.

22 years agoGNUTranslations._parse(): Fix SF bug #658233, where continuation lines
Barry Warsaw [Tue, 20 May 2003 17:26:48 +0000 (17:26 +0000)]
GNUTranslations._parse(): Fix SF bug #658233, where continuation lines
in .po metadata caused a crash.

Backport candidate.

22 years agoFix markup nits.
Fred Drake [Tue, 20 May 2003 16:21:51 +0000 (16:21 +0000)]
Fix markup nits.

22 years agoStraighten out the docs for os.system(); the Unix and Windows behaviors
Tim Peters [Tue, 20 May 2003 16:15:58 +0000 (16:15 +0000)]
Straighten out the docs for os.system(); the Unix and Windows behaviors
really can't be smushed together.

Bugfix candidate.

22 years agoMarkup nits.
Fred Drake [Tue, 20 May 2003 15:28:58 +0000 (15:28 +0000)]
Markup nits.