]> granicus.if.org Git - python/log
python
22 years agoMove Mac/Windows specific expected skips from each platform list
Neal Norwitz [Sat, 29 Mar 2003 22:01:17 +0000 (22:01 +0000)]
Move Mac/Windows specific expected skips from each platform list
to the ExpectedSkips class.  Add test_scriptpackages to Mac only list.
Add test_unicode_file to Windows only list.

22 years agoRename LONG_LONG to PY_LONG_LONG. Fixes #710285.
Martin v. Löwis [Sat, 29 Mar 2003 10:06:18 +0000 (10:06 +0000)]
Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.

22 years agoPatch #707701: Expect '??' in event fields. Fixes #698517.
Martin v. Löwis [Sat, 29 Mar 2003 09:47:21 +0000 (09:47 +0000)]
Patch #707701: Expect '??' in event fields. Fixes #698517.
Will backport to 2.2.

22 years agoRegenerated with the new way to get terminology (through AppleEvents),
Jack Jansen [Sat, 29 Mar 2003 00:13:17 +0000 (00:13 +0000)]
Regenerated with the new way to get terminology (through AppleEvents),
which sometimes seems to result in different terminology. It does
seem to be mostly compatible, though.

22 years ago- Prefer using events (in stead of poking around in resource files) to
Jack Jansen [Sat, 29 Mar 2003 00:11:32 +0000 (00:11 +0000)]
- Prefer using events (in stead of poking around in resource files) to
get terminology resources. Unfortunately there doesn't seem to be any
application I can ask for the basic StdSuites terminology (?).
- Prefer OSX-native versions of applications over OS9 versions.

22 years agoSometimes a class is used as a base class of itself. Obviously there's
Jack Jansen [Sat, 29 Mar 2003 00:08:24 +0000 (00:08 +0000)]
Sometimes a class is used as a base class of itself. Obviously there's
something I don't understand, but for now ignore this.

Output the file name such that it cannot contain non-ascii characters.

22 years agoOn OSX the finder will return from an open() event before the application
Jack Jansen [Fri, 28 Mar 2003 23:42:37 +0000 (23:42 +0000)]
On OSX the finder will return from an open() event before the application
has actually entered its event loop. As a stopgap, allow for a 10 second
grace period.

22 years agoSigh: didn't catch all lists that needed to be sorted. Regenerated again.
Jack Jansen [Fri, 28 Mar 2003 23:38:00 +0000 (23:38 +0000)]
Sigh: didn't catch all lists that needed to be sorted. Regenerated again.

22 years agoSigh: didn't catch all lists that needed to be sorted.
Jack Jansen [Fri, 28 Mar 2003 23:37:05 +0000 (23:37 +0000)]
Sigh: didn't catch all lists that needed to be sorted.

22 years agomake nt altsep forward slash - closes bug 709428
Skip Montanaro [Fri, 28 Mar 2003 22:23:24 +0000 (22:23 +0000)]
make nt altsep forward slash - closes bug 709428
backport candidate

22 years agoRegenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen [Fri, 28 Mar 2003 22:07:22 +0000 (22:07 +0000)]
Regenerated (from resource files) with sorting version of gensuitemodule.
This is a first step towards regenerating the modules with newer, MacOSX,
versions of these programs, and using the programmatic interface to
get at the terminology in stead of poking in resource files.

22 years ago- Sort various lists (list of events, OSA-classes, etc) before generating
Jack Jansen [Fri, 28 Mar 2003 22:04:22 +0000 (22:04 +0000)]
- Sort various lists (list of events, OSA-classes, etc) before generating
code. This makes it a lot easier to compare the generated code for two
different versions of the suite.
- Various tweaks to the code to generate suites without looking at resource
files manually.

22 years agoMinimal test suite of the generated packages in plat-mac/lib-scriptpackages.
Jack Jansen [Fri, 28 Mar 2003 22:01:41 +0000 (22:01 +0000)]
Minimal test suite of the generated packages in plat-mac/lib-scriptpackages.
At the moment does little more than testing that the modules import
correctly and some classes can be instantiated.

22 years agoDisable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.
Martin v. Löwis [Fri, 28 Mar 2003 18:43:31 +0000 (18:43 +0000)]
Disable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.

22 years agoAdd test for setpgrp. Fixes #690317.
Martin v. Löwis [Fri, 28 Mar 2003 18:37:01 +0000 (18:37 +0000)]
Add test for setpgrp. Fixes #690317.

22 years agoPyWeakref_GetObject returns None (not NULL) when the referent is gone.
Ka-Ping Yee [Fri, 28 Mar 2003 18:07:16 +0000 (18:07 +0000)]
PyWeakref_GetObject returns None (not NULL) when the referent is gone.

22 years agoHide private names beginning with _ (but don't hide __special__ names).
Ka-Ping Yee [Fri, 28 Mar 2003 16:35:51 +0000 (16:35 +0000)]
Hide private names beginning with _ (but don't hide __special__ names).
Clean up section headings; make the bars on the left less fat.
Adjust the display of properties slightly.
Don't show stuff inherited from the base 'object' type.

22 years agoMake module lookup a little more robust (certain kinds of fiddling to
Ka-Ping Yee [Fri, 28 Mar 2003 16:29:50 +0000 (16:29 +0000)]
Make module lookup a little more robust (certain kinds of fiddling to
    sys.modules previously produced an exception).

22 years agoMove testing code into "if __name__ == '__main__'" so it's not run on import.
Ka-Ping Yee [Fri, 28 Mar 2003 16:28:48 +0000 (16:28 +0000)]
Move testing code into "if __name__ == '__main__'" so it's not run on import.

22 years agoFactored out test for absolute jumps.
Raymond Hettinger [Fri, 28 Mar 2003 12:05:00 +0000 (12:05 +0000)]
Factored out test for absolute jumps.

22 years ago4.1.5
Gregory P. Smith [Thu, 27 Mar 2003 17:25:10 +0000 (17:25 +0000)]
4.1.5

22 years agoAdds support for the DBEnv->set_timeout() method.
Gregory P. Smith [Thu, 27 Mar 2003 17:23:29 +0000 (17:23 +0000)]
Adds support for the DBEnv->set_timeout() method.

22 years agoReplace criterium with criterion. Fixes #705120.
Martin v. Löwis [Thu, 27 Mar 2003 16:59:38 +0000 (16:59 +0000)]
Replace criterium with criterion. Fixes #705120.

22 years agoIf GetAppTerminology fails (which seems to be the usual case on OSX?)
Jack Jansen [Wed, 26 Mar 2003 23:14:44 +0000 (23:14 +0000)]
If GetAppTerminology fails (which seems to be the usual case on OSX?)
we try to manually launch the application and send it an ascr/gdte
event to get its terminology.

22 years agoTemporary bump of the version number.
Barry Warsaw [Wed, 26 Mar 2003 17:58:11 +0000 (17:58 +0000)]
Temporary bump of the version number.

22 years agotyped_subpart_iterator(): Fix these to use non-deprecated APIs,
Barry Warsaw [Wed, 26 Mar 2003 17:57:25 +0000 (17:57 +0000)]
typed_subpart_iterator(): Fix these to use non-deprecated APIs,
i.e. get_content_maintype() and get_content_subtype().

Also, add True, False for Python 2.2.x where x < 2 compatibility.

22 years agotyped_subpart_iterator(): Fix these to use non-deprecated APIs,
Barry Warsaw [Wed, 26 Mar 2003 17:56:21 +0000 (17:56 +0000)]
typed_subpart_iterator(): Fix these to use non-deprecated APIs,
i.e. get_content_maintype() and get_content_subtype().

22 years agoFix typo.
Walter Dörwald [Wed, 26 Mar 2003 16:03:16 +0000 (16:03 +0000)]
Fix typo.

22 years agoModified to accept a command line argument too.
Jack Jansen [Wed, 26 Mar 2003 14:36:25 +0000 (14:36 +0000)]
Modified to accept a command line argument too.

22 years agoAdd two tests for simple error cases.
Walter Dörwald [Wed, 26 Mar 2003 14:31:25 +0000 (14:31 +0000)]
Add two tests for simple error cases.

22 years agoSF patch #707257: Improve code generation
Raymond Hettinger [Wed, 26 Mar 2003 01:07:54 +0000 (01:07 +0000)]
SF patch #707257: Improve code generation

Adds a single function to improve generated bytecode.  Has a single line
attachment point, so it is completely de-coupled from both the compiler
and ceval.c.

Makes three simple transforms that do not require a basic block analysis
or re-ordering of code.  Gives improved timings on pystone, pybench,
and any code using either "while 1" or "x,y=y,x".

22 years agoCommandTests.testgetoutput():
Thomas Wouters [Tue, 25 Mar 2003 18:50:19 +0000 (18:50 +0000)]
CommandTests.testgetoutput():
    Make sure we aren't masking any errors raised in tempfile.mkdtemp() by
    referencing the (then) unbound local 'dir'.

22 years agoFrank Vercruesse gave an okay on removing the copyright notice:
Jack Jansen [Tue, 25 Mar 2003 10:20:55 +0000 (10:20 +0000)]
Frank Vercruesse gave an okay on removing the copyright notice:
"Hereby I make the script in question available under the terms and
conditions of the latest Python License."

22 years agoRefactoring: rename update_these_slots() into update_subclasses() and
Guido van Rossum [Mon, 24 Mar 2003 23:49:49 +0000 (23:49 +0000)]
Refactoring: rename update_these_slots() into update_subclasses() and
generalize to take a callback function and a void * data argument.
This might come in handy later... :-)

22 years agosymtable_cellvar_offsets(): This leaked references to little integers
Tim Peters [Mon, 24 Mar 2003 17:22:24 +0000 (17:22 +0000)]
symtable_cellvar_offsets():  This leaked references to little integers
in normal cases, and also in error cases.

Bugfix candidate.

22 years agoAdded a Mac note that EasyDialogs dialogs now bring the application to
Jack Jansen [Mon, 24 Mar 2003 12:13:54 +0000 (12:13 +0000)]
Added a Mac note that EasyDialogs dialogs now bring the application to
the foreground.

22 years agoAllow floating point values in ProgressBar.
Jack Jansen [Mon, 24 Mar 2003 12:12:24 +0000 (12:12 +0000)]
Allow floating point values in ProgressBar.

22 years agoRegenerated with Donovan Prestons patch #702620.
Jack Jansen [Sun, 23 Mar 2003 22:07:28 +0000 (22:07 +0000)]
Regenerated with Donovan Prestons patch #702620.

22 years agoNot all objects have an _propdict and _privpropdict, so cater for that.
Jack Jansen [Sun, 23 Mar 2003 22:05:53 +0000 (22:05 +0000)]
Not all objects have an _propdict and _privpropdict, so cater for that.

22 years agoTypo in comment.
Tim Peters [Sun, 23 Mar 2003 18:06:08 +0000 (18:06 +0000)]
Typo in comment.

22 years agoImproved new Py_TRACE_REFS gimmicks.
Tim Peters [Sun, 23 Mar 2003 17:52:28 +0000 (17:52 +0000)]
Improved new Py_TRACE_REFS gimmicks.
Arranged that all the objects exposed by __builtin__ appear in the list
of all objects.  I basically peed away two days tracking down a mystery
leak in sys.gettotalrefcount() in a ZODB app (== tons of code), because
the object leaking the references didn't appear in the sys.getobjects(0)
list.  The object happened to be False.  Now False is in the list, along
with other popular & previously missing leak candidates (like None).
Alas, we still don't have a choke point covering *all* Python objects,
so the list of all objects may still be incomplete.

22 years agoadd comment about 2.2 compatibility
Skip Montanaro [Sun, 23 Mar 2003 14:32:54 +0000 (14:32 +0000)]
add comment about 2.2 compatibility
dump empty TODO comment

22 years agoSF patch #708201, unchecked return value in import.c by Jason Harper
Neal Norwitz [Sun, 23 Mar 2003 14:31:01 +0000 (14:31 +0000)]
SF patch #708201, unchecked return value in import.c by Jason Harper

Will backport.

22 years agoMake private function and data static.
Neal Norwitz [Sun, 23 Mar 2003 13:21:03 +0000 (13:21 +0000)]
Make private function and data static.

22 years agoslot_sq_contains(): This leaked a reference to the result of calling
Tim Peters [Sun, 23 Mar 2003 05:35:36 +0000 (05:35 +0000)]
slot_sq_contains():  This leaked a reference to the result of calling
__contains__().

Bugfix candidate.

22 years agoRefactored some of the Py_TRACE_REFS code. New private API function
Tim Peters [Sun, 23 Mar 2003 03:33:13 +0000 (03:33 +0000)]
Refactored some of the Py_TRACE_REFS code.  New private API function
_Py_AddToAllObjects() that simply inserts an object at the front of
the doubly-linked list of all objects.  Changed PyType_Ready() (the
 closest thing we've got to a choke point for type objects) to call
that.

22 years agoOops! Used a wrong preprocessor symbol.
Tim Peters [Sun, 23 Mar 2003 03:04:32 +0000 (03:04 +0000)]
Oops!  Used a wrong preprocessor symbol.

22 years agoWhen Py_TRACE_REFS is defined, a list of all live objects is maintained in
Tim Peters [Sun, 23 Mar 2003 02:51:01 +0000 (02:51 +0000)]
When Py_TRACE_REFS is defined, a list of all live objects is maintained in
a doubly-linked list, exposed by sys.getobjects().  Unfortunately, it's not
really all live objects, and it seems my fate to bump into programs where
sys.gettotalrefcount() keeps going up but where the reference leaks aren't
accounted for by anything in the list of all objects.

This patch helps a little:  if COUNT_ALLOCS is also defined, from now on
type objects will also appear in this list, provided at least one object
of a type has been allocated.

22 years agoCorrect error in last checkin noticed by Neal Norwitz. And some more.
Kurt B. Kaiser [Sat, 22 Mar 2003 20:11:14 +0000 (20:11 +0000)]
Correct error in last checkin noticed by Neal Norwitz.  And some more.

22 years agoM PyShell.py
Kurt B. Kaiser [Sat, 22 Mar 2003 19:40:19 +0000 (19:40 +0000)]
M PyShell.py
M run.py

1. Move subprocess socket handling to a subthread - "SockThread".
2. In the subprocess, implement a queue and global completion and exit
flags.  Execute code after it is passed through the queue.  (Currently,
user code is executed in SockThread.  The next phase of development will
move the tail of the queue to MainThread.)
3. Implement an RPC message used to shut down the execution server.
4. Improve normal and exception subprocess exits.

(At this checkin a "pass loop" interrupt doesn't work on any platform.  It
will be restored for all platforms once user code execution is moved to
MainThread.)

22 years agoImprove error message handling.
Kurt B. Kaiser [Sat, 22 Mar 2003 19:15:58 +0000 (19:15 +0000)]
Improve error message handling.

22 years agoInclude Python.h first which defines _XOPEN_SOURCE
Neal Norwitz [Sat, 22 Mar 2003 16:35:37 +0000 (16:35 +0000)]
Include Python.h first which defines _XOPEN_SOURCE
which allows the file to compile and removes a warning about _XOPEN_SOURCE
being redefined (works on AIX 4.3 and 5.1 at least).

22 years agoBack out previous change as discussed on python-checkins
Neal Norwitz [Sat, 22 Mar 2003 16:19:52 +0000 (16:19 +0000)]
Back out previous change as discussed on python-checkins

22 years agoStop creating empty CVS directories in the csv subtree.
Tim Peters [Sat, 22 Mar 2003 01:16:05 +0000 (01:16 +0000)]
Stop creating empty CVS directories in the csv subtree.

22 years agoAdd lib/mimelib.tex to dependencies
Neal Norwitz [Sat, 22 Mar 2003 00:23:04 +0000 (00:23 +0000)]
Add lib/mimelib.tex to dependencies

22 years agoLots of tweaks to make this work in the new setting. Not fully tested yet.
Jack Jansen [Sat, 22 Mar 2003 00:02:23 +0000 (00:02 +0000)]
Lots of tweaks to make this work in the new setting. Not fully tested yet.

22 years agoTools to build a disk image with a binary installer for MacPython-OSX,
Jack Jansen [Fri, 21 Mar 2003 23:52:36 +0000 (23:52 +0000)]
Tools to build a disk image with a binary installer for MacPython-OSX,
donated by Robin Dunn and the rest of the wxPythonMac crew.

These are the versions from cvs.wxwindows.org as of 22-Mar-03, checked
in for reference.

22 years agouse os.path.realpath() instead of os.readlink()
Just van Rossum [Fri, 21 Mar 2003 22:22:19 +0000 (22:22 +0000)]
use os.path.realpath() instead of os.readlink()

22 years agoemail is at version 2.5 now
Barry Warsaw [Fri, 21 Mar 2003 21:14:48 +0000 (21:14 +0000)]
email is at version 2.5 now

22 years agoEmail version 2.5 -- I will now backport this to Python 2.2.3.
Barry Warsaw [Fri, 21 Mar 2003 18:57:59 +0000 (18:57 +0000)]
Email version 2.5 -- I will now backport this to Python 2.2.3.

22 years agoAdd PEP 307 section
Andrew M. Kuchling [Fri, 21 Mar 2003 18:32:43 +0000 (18:32 +0000)]
Add PEP 307 section

22 years agoAdd PEP305 section
Andrew M. Kuchling [Fri, 21 Mar 2003 18:10:12 +0000 (18:10 +0000)]
Add PEP305 section

22 years agoUpdate datetime section a bit
Andrew M. Kuchling [Fri, 21 Mar 2003 17:23:07 +0000 (17:23 +0000)]
Update datetime section a bit

22 years ago_PyFloat_Pack4(): Removed needless call of floor().
Tim Peters [Fri, 21 Mar 2003 17:10:03 +0000 (17:10 +0000)]
_PyFloat_Pack4():  Removed needless call of floor().

22 years agoGive a better error message when a string of the wrong size is
Jack Jansen [Fri, 21 Mar 2003 16:42:36 +0000 (16:42 +0000)]
Give a better error message when a string of the wrong size is
passed to RawBitMap.

22 years agoGenerate all the standard OSA suite packages. Has absolute pathname
Jack Jansen [Fri, 21 Mar 2003 16:30:53 +0000 (16:30 +0000)]
Generate all the standard OSA suite packages. Has absolute pathname
dependencies all over the place, but this is better than nothing, for now.

22 years agoGot rid of the "enum not found" interaction, and added code to allow
Jack Jansen [Fri, 21 Mar 2003 16:28:09 +0000 (16:28 +0000)]
Got rid of the "enum not found" interaction, and added code to allow
overriding the creator signature.

22 years agoAllow gensuitemodule to be run non-interactively, from the OSX command
Jack Jansen [Fri, 21 Mar 2003 16:07:39 +0000 (16:07 +0000)]
Allow gensuitemodule to be run non-interactively, from the OSX command
line. 90% of the work is done, missing enums still cause a dialog to appear.

22 years agoRename variables _seq to _it and seq to it, to emphasize that this is
Guido van Rossum [Fri, 21 Mar 2003 14:54:19 +0000 (14:54 +0000)]
Rename variables _seq to _it and seq to it, to emphasize that this is
an iterator (which can only be used once!).

22 years agoAdded _csv module, and getting rid of macfs.
Jack Jansen [Fri, 21 Mar 2003 12:56:27 +0000 (12:56 +0000)]
Added _csv module, and getting rid of macfs.

22 years agoGetting rid of macfs.
Jack Jansen [Fri, 21 Mar 2003 12:55:38 +0000 (12:55 +0000)]
Getting rid of macfs.

22 years agoAdding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by disablin...
Jack Jansen [Fri, 21 Mar 2003 12:54:24 +0000 (12:54 +0000)]
Adding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by disabling unicode filenames on OS9.

22 years agoPatch 702620 by Donovan Preston: Fix AE inheritance.
Jack Jansen [Fri, 21 Mar 2003 12:04:19 +0000 (12:04 +0000)]
Patch 702620 by Donovan Preston: Fix AE inheritance.

22 years agoonly set $PYTHONHOME when building a standalone app.
Just van Rossum [Fri, 21 Mar 2003 11:32:37 +0000 (11:32 +0000)]
only set $PYTHONHOME when building a standalone app.

22 years agoPatch #681927 from Robin Dunn: add option to add shared libraries or
Just van Rossum [Fri, 21 Mar 2003 09:26:59 +0000 (09:26 +0000)]
Patch #681927 from Robin Dunn: add option to add shared libraries or
frameworks to the bundle.

22 years agoGet locale module to build on aix4
Neal Norwitz [Fri, 21 Mar 2003 03:08:59 +0000 (03:08 +0000)]
Get locale module to build on aix4

22 years agoGet rid of warning on IRIX
Neal Norwitz [Fri, 21 Mar 2003 03:08:31 +0000 (03:08 +0000)]
Get rid of warning on IRIX

22 years agoChanged the DLL base-address assignment for _csv so it no longer
Tim Peters [Fri, 21 Mar 2003 02:02:02 +0000 (02:02 +0000)]
Changed the DLL base-address assignment for _csv so it no longer
obviously overlaps w/ datetime (but may -- no time for more here now).

22 years agoTeach the Windows build & installer about the new csv module + DLL.
Tim Peters [Fri, 21 Mar 2003 01:55:41 +0000 (01:55 +0000)]
Teach the Windows build & installer about the new csv module + DLL.

22 years agoAdd support for os.openpty() on AIX which uses /dev/ptc instead of /dev/ptmx.
Neal Norwitz [Fri, 21 Mar 2003 01:43:31 +0000 (01:43 +0000)]
Add support for os.openpty() on AIX which uses /dev/ptc instead of /dev/ptmx.

22 years ago/dev/ptmx doesn't exist on AIX, they had to be different and use /dev/ptc.
Neal Norwitz [Fri, 21 Mar 2003 01:42:58 +0000 (01:42 +0000)]
/dev/ptmx doesn't exist on AIX, they had to be different and use /dev/ptc.
Otherwise, the 2 devices seem to work the same for allocating a pseudo-tty.

22 years agoPrevent the pty test from hanging by setting an alarm.
Neal Norwitz [Fri, 21 Mar 2003 01:39:14 +0000 (01:39 +0000)]
Prevent the pty test from hanging by setting an alarm.
Currently, test_pty hangs on AIX & HPUX if run after test_openpty.

22 years agoSquash compiler wng about signed-vs-unsigned mismatch.
Tim Peters [Fri, 21 Mar 2003 01:35:28 +0000 (01:35 +0000)]
Squash compiler wng about signed-vs-unsigned mismatch.

22 years agoThe message "*** skipping leakage tests ***" was causing the test to
Guido van Rossum [Fri, 21 Mar 2003 01:15:58 +0000 (01:15 +0000)]
The message "*** skipping leakage tests ***" was causing the test to
fail in a non-debug build.  Only print this in verbose test mode.

22 years agoAdd new CSV module to doc dependancies
Neal Norwitz [Fri, 21 Mar 2003 00:28:30 +0000 (00:28 +0000)]
Add new CSV module to doc dependancies

22 years agoadd several people involved with PEP 305 and the csv package
Skip Montanaro [Thu, 20 Mar 2003 23:41:03 +0000 (23:41 +0000)]
add several people involved with PEP 305 and the csv package

22 years agoadd _csv build line
Skip Montanaro [Thu, 20 Mar 2003 23:37:24 +0000 (23:37 +0000)]
add _csv build line

22 years agoannounce csv package
Skip Montanaro [Thu, 20 Mar 2003 23:36:55 +0000 (23:36 +0000)]
announce csv package

22 years agoinclude the csv package during installation
Skip Montanaro [Thu, 20 Mar 2003 23:35:38 +0000 (23:35 +0000)]
include the csv package during installation

22 years agoinclude csv doc section - Fred, you may want to change the location
Skip Montanaro [Thu, 20 Mar 2003 23:35:00 +0000 (23:35 +0000)]
include csv doc section - Fred, you may want to change the location

22 years agobuild _csv extension module
Skip Montanaro [Thu, 20 Mar 2003 23:34:22 +0000 (23:34 +0000)]
build _csv extension module

22 years agoforgot Cliff's sniffer
Skip Montanaro [Thu, 20 Mar 2003 23:31:24 +0000 (23:31 +0000)]
forgot Cliff's sniffer

22 years agonew CSV file processing module - see PEP 305
Skip Montanaro [Thu, 20 Mar 2003 23:29:12 +0000 (23:29 +0000)]
new CSV file processing module - see PEP 305

22 years ago- added example of using a comparison function with list.sort(), and
Fred Drake [Thu, 20 Mar 2003 22:17:59 +0000 (22:17 +0000)]
- added example of using a comparison function with list.sort(), and
  explained the construction of a [(key, value), ...] list as an
  alternative
- note that support for cmpfunc=None was added in 2.3

22 years agoset $PYTHONHOME in the bootstrap script, for no good reason really,
Just van Rossum [Thu, 20 Mar 2003 21:37:05 +0000 (21:37 +0000)]
set $PYTHONHOME in the bootstrap script, for no good reason really,
except to avoid getpath.c giving unsollicited advice on stderr.

22 years agoNew private API functions _PyFloat_{Pack,Unpack}(4,8}. This is a
Tim Peters [Thu, 20 Mar 2003 20:53:32 +0000 (20:53 +0000)]
New private API functions _PyFloat_{Pack,Unpack}(4,8}.  This is a
refactoring to get all the duplicates of this delicate code out of the
cPickle and struct modules.

22 years agoSF bug 705836: struct.pack of floats in non-native endian order
Tim Peters [Thu, 20 Mar 2003 18:32:13 +0000 (18:32 +0000)]
SF bug 705836: struct.pack of floats in non-native endian order

pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.

Bugfix candidate, but I already backported this to 2.2.

In 2.3, this code remains in severe need of refactoring.

22 years ago- apply SF patch #700798: fixes and cleanups for descriptor info
Fred Drake [Thu, 20 Mar 2003 18:17:16 +0000 (18:17 +0000)]
- apply SF patch #700798: fixes and cleanups for descriptor info
- use a TeX "tie" to prevent word-wrapping in "section x.y"-like text

22 years agoadd descriptions of {get,set}defaulttimeout.
Skip Montanaro [Thu, 20 Mar 2003 17:58:12 +0000 (17:58 +0000)]
add descriptions of {get,set}defaulttimeout.

22 years ago- explain what a UNC path is in the makedirs() description, since
Fred Drake [Thu, 20 Mar 2003 17:39:38 +0000 (17:39 +0000)]
- explain what a UNC path is in the makedirs() description, since
  they're actually mentioned there
- remove some extraneous paragraph separations
- \versionadded --> \versionchanged in one place