]> granicus.if.org Git - python/log
python
21 years agoImprove argument checking speed.
Raymond Hettinger [Sat, 13 Dec 2003 15:21:55 +0000 (15:21 +0000)]
Improve argument checking speed.

21 years agoUse dictionary specific looping idiom where possible.
Raymond Hettinger [Sat, 13 Dec 2003 14:46:46 +0000 (14:46 +0000)]
Use dictionary specific looping idiom where possible.
Simplifies and speeds-up the code.

21 years agoSimplify previous checkin -- a new function was not needed.
Raymond Hettinger [Sat, 13 Dec 2003 13:31:55 +0000 (13:31 +0000)]
Simplify previous checkin -- a new function was not needed.

21 years agoUse PyDict_Contains() instead of PySequence_Contains().
Raymond Hettinger [Sat, 13 Dec 2003 11:58:56 +0000 (11:58 +0000)]
Use PyDict_Contains() instead of PySequence_Contains().

21 years ago* Added a new method flag, METH_COEXIST.
Raymond Hettinger [Sat, 13 Dec 2003 11:26:12 +0000 (11:26 +0000)]
* Added a new method flag, METH_COEXIST.

* Used the flag to optimize set.__contains__(), dict.__contains__(),
  dict.__getitem__(), and list.__getitem__().

21 years agoExpand the groupby() example to:
Raymond Hettinger [Fri, 12 Dec 2003 13:13:47 +0000 (13:13 +0000)]
Expand the groupby() example to:
* show that it is typically used with sorted data,
* highlight commonalities with SQL's groupby and Unix's uniq,
* demonstrate valid uses for the default identity function,
* add some excitement by suggesting the range of possibilities.

21 years agofix typo and join two paragraphs
Fred Drake [Thu, 11 Dec 2003 19:45:53 +0000 (19:45 +0000)]
fix typo and join two paragraphs

21 years agoAdd tests to test_weakref.py to bring code coverage in _weakref.c up to 100%.
Walter Dörwald [Thu, 11 Dec 2003 12:34:05 +0000 (12:34 +0000)]
Add tests to test_weakref.py to bring code coverage in _weakref.c up to 100%.

Port test_md5.py to PyUnit.

(Written by Neal Norwitz; from SF patch 736962)

(Backport candidate)

21 years agoFix broken link (closes bug #852236). Thanks to Fedor Baart for bug file and
Brett Cannon [Thu, 11 Dec 2003 04:37:24 +0000 (04:37 +0000)]
Fix broken link (closes bug #852236).  Thanks to Fedor Baart for bug file and
finding proper link.

21 years agoRevert previous change which didn't make sense the next day :-)
Raymond Hettinger [Wed, 10 Dec 2003 15:22:23 +0000 (15:22 +0000)]
Revert previous change which didn't make sense the next day :-)

21 years ago- Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not
Jack Jansen [Wed, 10 Dec 2003 15:18:18 +0000 (15:18 +0000)]
- Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not
a real subtype of Cm.ComponentInstance right now, it turns out that is
too difficult.
- OSA.OSAComponentInstance initializer does accept a Cm.ComponentInstance
instance, though, so at least things are becoming useable.

21 years agoFix memory error treatment correctly. Going to dsu_fail causes
Hye-Shik Chang [Wed, 10 Dec 2003 07:31:08 +0000 (07:31 +0000)]
Fix memory error treatment correctly. Going to dsu_fail causes
deallocating garbage pointers; saved_ob_item and empty_ob_item.
(Reviewed by Raymond Hettinger)

21 years agoUpdate to use python ints and int/long unification.
Raymond Hettinger [Wed, 10 Dec 2003 01:58:52 +0000 (01:58 +0000)]
Update to use python ints and int/long unification.

21 years agoWrapper modules for _Launch and _OSA weren't added yet. Fixed.
Jack Jansen [Tue, 9 Dec 2003 15:07:01 +0000 (15:07 +0000)]
Wrapper modules for _Launch and _OSA weren't added yet. Fixed.

21 years agoMake this module Python 2.3 compatible, and add a setup script that allows
Jack Jansen [Tue, 9 Dec 2003 15:06:18 +0000 (15:06 +0000)]
Make this module Python 2.3 compatible, and add a setup script that allows
it to be built for that python.

21 years agoMade this module compatible with Python2.3, and added a temporary setup
Jack Jansen [Tue, 9 Dec 2003 14:51:21 +0000 (14:51 +0000)]
Made this module compatible with Python2.3, and added a temporary setup
script that allows it to be built for that Python.

21 years agoMove list and tuple tests from test_types.py to their own scripts:
Walter Dörwald [Mon, 8 Dec 2003 11:38:45 +0000 (11:38 +0000)]
Move list and tuple tests from test_types.py to their own scripts:
test_tuple.py and test_list.py. Common tests for tuple, list and UserList
are shared (in seq_tests.py and list_tests.py). Port tests to PyUnit.
(From SF patch #736962)

21 years agoSigh. dsp files must be marked as binary files for cvs, otherwise
Thomas Heller [Mon, 8 Dec 2003 09:31:52 +0000 (09:31 +0000)]
Sigh.  dsp files must be marked as binary files for cvs, otherwise
MSVC isn't able to read them.  Thanks to David Rushby.

21 years agoRevamped framework search path handling for MacOSX. This should allow
Jack Jansen [Mon, 8 Dec 2003 01:10:12 +0000 (01:10 +0000)]
Revamped framework search path handling for MacOSX. This should allow
two framework builds (in /Library and /System/Library) to coexist
with distutils linking against the right one.

Should be backported to 2.3, but getting Apple-supplied Python to pick
up these fixes is going to be non-trivial.

21 years agoforward port of 1.136.6.2:
Jack Jansen [Sun, 7 Dec 2003 21:52:07 +0000 (21:52 +0000)]
forward port of  1.136.6.2:
$(prefix) wasn't communicated to Mac/OSX/Makefile for all targets. Fixed.

21 years agofixed long standing typo
Just van Rossum [Sun, 7 Dec 2003 18:11:51 +0000 (18:11 +0000)]
fixed long standing typo

21 years agoSF patch #855195: fix typos
Raymond Hettinger [Sun, 7 Dec 2003 13:00:25 +0000 (13:00 +0000)]
SF patch #855195:  fix typos
(Contributed by George Yoshida.)

21 years agoFix missing paren.
Raymond Hettinger [Sun, 7 Dec 2003 12:49:48 +0000 (12:49 +0000)]
Fix missing paren.

21 years agoFix double hyphen markup.
Raymond Hettinger [Sun, 7 Dec 2003 12:46:16 +0000 (12:46 +0000)]
Fix double hyphen markup.

21 years agoSF patch #838938: Typos in the docs (Extending/Embedding + Python/C API)
Raymond Hettinger [Sun, 7 Dec 2003 11:40:17 +0000 (11:40 +0000)]
SF patch #838938:  Typos in the docs (Extending/Embedding + Python/C API)
(Contributed by Florent Rougon.)

21 years agoPut str() in alphabetical order.
Raymond Hettinger [Sun, 7 Dec 2003 11:24:03 +0000 (11:24 +0000)]
Put str() in alphabetical order.

21 years agoSF bug #855317: unittest: 5.3.9 Getting Extended Error Information
Raymond Hettinger [Sun, 7 Dec 2003 10:48:03 +0000 (10:48 +0000)]
SF bug #855317:  unittest: 5.3.9 Getting Extended Error Information

The example code did not work and could not easily be made to work.
Since the docs were already complex and the feature was not used
(it took two years for the errors to surface), we decided to dedocument
it entirely, leaving unittest cleaner than before.

21 years agoAdd groupby()
Andrew M. Kuchling [Sat, 6 Dec 2003 23:19:23 +0000 (23:19 +0000)]
Add groupby()

21 years agoEdit description a bit
Andrew M. Kuchling [Sat, 6 Dec 2003 22:29:43 +0000 (22:29 +0000)]
Edit description a bit

21 years agoIncorporate suggestions from Aahz.
Raymond Hettinger [Sat, 6 Dec 2003 20:12:00 +0000 (20:12 +0000)]
Incorporate suggestions from Aahz.

21 years agoImplement itertools.groupby()
Raymond Hettinger [Sat, 6 Dec 2003 16:23:06 +0000 (16:23 +0000)]
Implement itertools.groupby()

Original idea by Guido van Rossum.
Idea for skipable inner iterators by Raymond Hettinger.
Idea for argument order and identity function default by Alex Martelli.
Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger).

21 years agoVariation of Thomas Heller's patch (722638) for improving readability
Steve Purcell [Sat, 6 Dec 2003 13:03:13 +0000 (13:03 +0000)]
Variation of Thomas Heller's patch (722638) for improving readability
of test failure output.

Irrelevant traceback levels are pruned from formatted traceback strings.

21 years agoSF bug #844123: "up" instead of "down" in turtle module documentation
Raymond Hettinger [Sat, 6 Dec 2003 01:35:56 +0000 (01:35 +0000)]
SF bug #844123: "up" instead of "down" in turtle module documentation

21 years agoFinished update to UH 3.4.2.
Jack Jansen [Sat, 6 Dec 2003 00:00:17 +0000 (00:00 +0000)]
Finished update to UH 3.4.2.

21 years agoFinished update to universal header 3.4.2.
Jack Jansen [Fri, 5 Dec 2003 23:59:37 +0000 (23:59 +0000)]
Finished update to universal header 3.4.2.

21 years agoReverting to previous version, which works. And I don't really care about
Jack Jansen [Fri, 5 Dec 2003 23:51:54 +0000 (23:51 +0000)]
Reverting to previous version, which works. And I don't really care about
the new waste functionality because it's probably going to be dropped
anyway.

21 years agodistutils compilers now compile source files in the same order as they
Thomas Heller [Fri, 5 Dec 2003 20:28:07 +0000 (20:28 +0000)]
distutils compilers now compile source files in the same order as they
are passed to the compiler.

21 years agoCompile the files in the same order they are passed to the compiler.
Thomas Heller [Fri, 5 Dec 2003 20:12:23 +0000 (20:12 +0000)]
Compile the files in the same order they are passed to the compiler.

Use case: Sometimes 'compiling' source files (with SWIG, for example)
creates additionl files which included by later sources.  The win32all
setup script requires this.

There is no SF item for this, but it was discussed on distutils-sig:
http://mail.python.org/pipermail/distutils-sig/2003-November/003514.html

21 years ago- fix markup in the bool() description
Fred Drake [Fri, 5 Dec 2003 18:57:00 +0000 (18:57 +0000)]
- fix markup in the bool() description
- note the behavior of bool() with no arg in the main body of the
  description

21 years agoAdd news about removal of the PendingDeprecationWarning from apply().
Fred Drake [Fri, 5 Dec 2003 17:43:47 +0000 (17:43 +0000)]
Add news about removal of the PendingDeprecationWarning from apply().

21 years agoRemove the PendingDeprecationWarning from apply(). apply() will
Fred Drake [Fri, 5 Dec 2003 17:34:27 +0000 (17:34 +0000)]
Remove the PendingDeprecationWarning from apply().  apply() will
remain deprecated in the documentation.

21 years agoFix links and typos.
Raymond Hettinger [Fri, 5 Dec 2003 07:53:50 +0000 (07:53 +0000)]
Fix links and typos.

21 years agoFix typo
Raymond Hettinger [Fri, 5 Dec 2003 06:39:54 +0000 (06:39 +0000)]
Fix typo

21 years agoFix typos.
Raymond Hettinger [Thu, 4 Dec 2003 22:17:49 +0000 (22:17 +0000)]
Fix typos.

21 years agoThe Windows build number for 2.3.3c1 is 50.
Thomas Heller [Thu, 4 Dec 2003 20:36:53 +0000 (20:36 +0000)]
The Windows build number for 2.3.3c1 is 50.

21 years agoSF bug #849662. Dramatically, improve comparison speed for "if shl == None".
Raymond Hettinger [Thu, 4 Dec 2003 20:04:09 +0000 (20:04 +0000)]
SF bug #849662.  Dramatically, improve comparison speed for "if shl == None".

21 years agoFix error in exception message.
Brett Cannon [Thu, 4 Dec 2003 19:28:06 +0000 (19:28 +0000)]
Fix error in exception message.

21 years agoRemove extra copy of test_key_with_exception that somehow appeared
Michael W. Hudson [Thu, 4 Dec 2003 11:41:24 +0000 (11:41 +0000)]
Remove extra copy of test_key_with_exception that somehow appeared
during a CVS merge.

21 years agoFixes and tests for various "holding pointers when arbitrary Python code
Michael W. Hudson [Thu, 4 Dec 2003 11:25:46 +0000 (11:25 +0000)]
Fixes and tests for various "holding pointers when arbitrary Python code
can run" bugs as discussed in

[ 848856 ] couple of new list.sort bugs

21 years agoTypo repair; added some comments and horizontal whitespace.
Tim Peters [Thu, 4 Dec 2003 05:39:43 +0000 (05:39 +0000)]
Typo repair; added some comments and horizontal whitespace.

21 years agoPorted to Universal Headers 3.4.2. Qd and Qt remain to be done.
Jack Jansen [Wed, 3 Dec 2003 23:20:13 +0000 (23:20 +0000)]
Ported to Universal Headers 3.4.2. Qd and Qt remain to be done.

Completely untested.

21 years agoAdding an interface to the high-level Open Scripting Architecture,
Jack Jansen [Wed, 3 Dec 2003 22:34:19 +0000 (22:34 +0000)]
Adding an interface to the high-level Open Scripting Architecture,
by request of Donovan Preston. In return, he promised to use this
to create a Python OSA component, which would turn Python
into a first-class OSA scripting language (like AppleScript itself).

21 years agoFix link
Raymond Hettinger [Wed, 3 Dec 2003 22:33:13 +0000 (22:33 +0000)]
Fix link

21 years agoAdd a standard library tour
Raymond Hettinger [Wed, 3 Dec 2003 22:23:46 +0000 (22:23 +0000)]
Add a standard library tour

21 years agoFix test_unicode_file errors on platforms without Unicode file support,
Mark Hammond [Wed, 3 Dec 2003 22:16:47 +0000 (22:16 +0000)]
Fix test_unicode_file errors on platforms without Unicode file support,
by setting TESTFN_UNICODE_UNENCODEABLE on these platforms.
test_unicode_file only attempts to use the name for testing if not None.

21 years agoBlacklisting LSInit and LSTerm, which are deprecated. Partial fix for 853558.
Jack Jansen [Wed, 3 Dec 2003 20:52:07 +0000 (20:52 +0000)]
Blacklisting LSInit and LSTerm, which are deprecated. Partial fix for 853558.

21 years agoAdd parameters indent, width and depth to pprint.pprint() and pprint.pformat()
Walter Dörwald [Wed, 3 Dec 2003 20:26:05 +0000 (20:26 +0000)]
Add parameters indent, width and depth to pprint.pprint() and pprint.pformat()
and pass them along to the PrettyPrinter constructor.

21 years agoPatch #750542: pprint now will pretty print subclasses of list, tuple
Walter Dörwald [Wed, 3 Dec 2003 20:15:28 +0000 (20:15 +0000)]
Patch #750542: pprint now will pretty print subclasses of list, tuple
and dict too, as long as they don't overwrite __repr__().

21 years agoReduce the size of Big String and Big Binary tests to 2**14 (minus one
Guido van Rossum [Wed, 3 Dec 2003 15:24:02 +0000 (15:24 +0000)]
Reduce the size of Big String and Big Binary tests to 2**14 (minus one
for Big String).  This should make the tests pass on Win98SE.  Note
that the docs only promise lengths up to 2048.  Unfortunately this no
longer tests for the segfault I was seeing earlier, but I'm confident
I've nailed that one. :-)  Fixes SF 852281.  Will backport to 2.3.

21 years agoFix typo. (From SF bug #853064)
Walter Dörwald [Wed, 3 Dec 2003 10:34:57 +0000 (10:34 +0000)]
Fix typo. (From SF bug #853064)

21 years agoAdd test for bug "[ 846133 ] os.chmod/os.utime/shutil do not work with
Mark Hammond [Wed, 3 Dec 2003 01:29:56 +0000 (01:29 +0000)]
Add test for bug "[ 846133 ] os.chmod/os.utime/shutil do not work with
unicode filenames"
Reorganize tests into functions so more combinations of
unicode/encoded/ascii can be tested, and while I was at it, upgrade to
unittest based test.

21 years agoAdd TESTFN_UNICODE_UNENCODEABLE, a unicode filename that can not be
Mark Hammond [Wed, 3 Dec 2003 01:27:23 +0000 (01:27 +0000)]
Add TESTFN_UNICODE_UNENCODEABLE, a unicode filename that can not be
encoded using the default file system encoding.

21 years agoFix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenames
Mark Hammond [Wed, 3 Dec 2003 01:22:38 +0000 (01:22 +0000)]
Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenames

21 years agoAn interface to the LaunchServices API.
Jack Jansen [Tue, 2 Dec 2003 23:01:43 +0000 (23:01 +0000)]
An interface to the LaunchServices API.

21 years agodoc nit
Skip Montanaro [Tue, 2 Dec 2003 18:57:47 +0000 (18:57 +0000)]
doc nit

21 years agoOS/2+EMX: make the link() emulation available as os.link()
Andrew MacIntyre [Tue, 2 Dec 2003 12:33:01 +0000 (12:33 +0000)]
OS/2+EMX: make the link() emulation available as os.link()

21 years agoEMX lacks an implementation of link(). As Mailman wants os.link() to
Andrew MacIntyre [Tue, 2 Dec 2003 12:31:09 +0000 (12:31 +0000)]
EMX lacks an implementation of link().  As Mailman wants os.link() to
implement its locking scheme, this module implements a crude link() by
way of copying the source to the destination provided the destination
doesn't already exist.

21 years agoTo find the curses extension as a DLL (on OS/2), we need to adjust the
Andrew MacIntyre [Tue, 2 Dec 2003 12:27:25 +0000 (12:27 +0000)]
To find the curses extension as a DLL (on OS/2), we need to adjust the
library search path to include the extension directory.  Without this,
the curses_panel extension can't find the curses extension/DLL, which
exports some curses symbols to it.

21 years ago- add notes about os.link() emulation;
Andrew MacIntyre [Tue, 2 Dec 2003 12:23:07 +0000 (12:23 +0000)]
- add notes about os.link() emulation;
- various minor cleanups and updates.

21 years ago- add build support for curses extension to be a normal DLL as well as
Andrew MacIntyre [Tue, 2 Dec 2003 12:21:20 +0000 (12:21 +0000)]
- add build support for curses extension to be a normal DLL as well as
  a Python extension, so that the curses_panel extension works.
- minor compiler switch tweak.

21 years agouse same compiler switches as core for extensions
Andrew MacIntyre [Tue, 2 Dec 2003 12:17:59 +0000 (12:17 +0000)]
use same compiler switches as core for extensions

21 years agoSF patch #852140: keyword.py - use __contains__ and bool
Raymond Hettinger [Tue, 2 Dec 2003 07:48:15 +0000 (07:48 +0000)]
SF patch #852140:  keyword.py - use __contains__ and bool

Use a set instead of dict with values equal to one.

21 years agoConvert a 0/1 to False/True.
Raymond Hettinger [Tue, 2 Dec 2003 07:38:30 +0000 (07:38 +0000)]
Convert a 0/1 to False/True.

21 years agoPy_Finalize(): disabled the second call of cyclic gc, and added extensive
Tim Peters [Mon, 1 Dec 2003 21:35:27 +0000 (21:35 +0000)]
Py_Finalize():  disabled the second call of cyclic gc, and added extensive
comments about why both calls to cyclic gc here can cause problems.

I'll backport to 2.3 maint.  Since the calls were introduced in 2.3,
that will be the end of it.

21 years agoConvert path objects to strings in askdirectory. Fixes #852314.
Martin v. Löwis [Mon, 1 Dec 2003 21:04:22 +0000 (21:04 +0000)]
Convert path objects to strings in askdirectory. Fixes #852314.
Backported to 2.3.

21 years agoApply extract functions instead of lambda.
Raymond Hettinger [Mon, 1 Dec 2003 20:12:15 +0000 (20:12 +0000)]
Apply extract functions instead of lambda.

21 years agoRevert previous change. MAL preferred the old version.
Raymond Hettinger [Mon, 1 Dec 2003 13:26:46 +0000 (13:26 +0000)]
Revert previous change.  MAL preferred the old version.

21 years agoAs discussed on python-dev, added two extractor functions to the
Raymond Hettinger [Mon, 1 Dec 2003 13:18:39 +0000 (13:18 +0000)]
As discussed on python-dev, added two extractor functions to the
operator module.

21 years agoSimplifed the code.
Raymond Hettinger [Mon, 1 Dec 2003 10:41:02 +0000 (10:41 +0000)]
Simplifed the code.

21 years agoAdd testcases for _winreg segfault (SF 851056).
Guido van Rossum [Sun, 30 Nov 2003 22:46:18 +0000 (22:46 +0000)]
Add testcases for _winreg segfault (SF 851056).

21 years agoAdd news item for _winreg fix (SF bug 851056).
Guido van Rossum [Sun, 30 Nov 2003 22:10:15 +0000 (22:10 +0000)]
Add news item for _winreg fix (SF bug 851056).

21 years agoRemove all uses of alloca() from this module. The alloca() return value
Guido van Rossum [Sun, 30 Nov 2003 22:01:43 +0000 (22:01 +0000)]
Remove all uses of alloca() from this module.  The alloca() return value
isn't checked, and it *is* possible that a very large alloca() call is
made, e.g. when a large registry value is being read.  I don't know if
alloca() in that case returns NULL or returns a pointer pointing outside
the stack, and I don't want to know -- I've simply replaced all calls to
alloca() with either PyMem_Malloc() or PyString_FromStringAndSize(NULL,)
as appropriate, followed by a size check.  This addresses SF buf 851056.
Will backport to 2.3 next.

21 years agoFix a bug discovered by Kalle Svensson: comparing sys.maxint to
Guido van Rossum [Sat, 29 Nov 2003 23:55:09 +0000 (23:55 +0000)]
Fix a bug discovered by Kalle Svensson: comparing sys.maxint to
2**32-1 makes no sense.  Use 2**31-1 instead.

21 years ago- Removed FutureWarnings related to hex/oct literals and conversions
Guido van Rossum [Sat, 29 Nov 2003 23:52:13 +0000 (23:52 +0000)]
- Removed FutureWarnings related to hex/oct literals and conversions
  and left shifts.  (Thanks to Kalle Svensson for SF patch 849227.)
  This addresses most of the remaining semantic changes promised by
  PEP 237, except for repr() of a long, which still shows the trailing
  'L'.  The PEP appears to promise warnings for operations that
  changed semantics compared to Python 2.3, but this is not
  implemented; we've suffered through enough warnings related to
  hex/oct literals and I think it's best to be silent now.

21 years agoMake sure the list.sort's decorate step unwinds itself before returning
Raymond Hettinger [Fri, 28 Nov 2003 21:43:02 +0000 (21:43 +0000)]
Make sure the list.sort's decorate step unwinds itself before returning
an exception raised by the key function.
(Suggested by Michael Hudson.)

21 years agoSee SF #848614: distutils' msvccompiler now tries to detect that MSVC6
Thomas Heller [Fri, 28 Nov 2003 19:42:56 +0000 (19:42 +0000)]
See SF #848614: distutils' msvccompiler now tries to detect that MSVC6
is installed but the registry settings are incomplete because the gui
has never been run.

Already backported to release23-maint.

21 years agoFix (workaround, actually) for bug #844676: deselecting "show hidden" can
Jack Jansen [Thu, 27 Nov 2003 23:19:33 +0000 (23:19 +0000)]
Fix (workaround, actually) for bug #844676: deselecting "show hidden" can
cause an index error. We now select the first package if this threatens
to happen. Will backport.

21 years agoPackage Mnager error dialogs could refer to hidden packages, which was
Jack Jansen [Thu, 27 Nov 2003 23:12:17 +0000 (23:12 +0000)]
Package Mnager error dialogs could refer to hidden packages, which was
confusing. To be on the safe side we always show hidden packages before
showing error dialogs. Will backport.

21 years ago2.4a0 Package Manager shouldn't attempt to use the 2.3 database.
Jack Jansen [Thu, 27 Nov 2003 22:55:39 +0000 (22:55 +0000)]
2.4a0 Package Manager shouldn't attempt to use the 2.3 database.
Things will definitely change before 2.4, but for now use a slightly
different URL.

21 years agothe "idle" script has moved from Lib/idlelib to Tools/scripts.
Jack Jansen [Thu, 27 Nov 2003 22:54:28 +0000 (22:54 +0000)]
the "idle" script has moved from Lib/idlelib to Tools/scripts.

21 years agoPatch #849350: Update to document bool return values. Backported to 2.3.
Martin v. Löwis [Thu, 27 Nov 2003 19:48:03 +0000 (19:48 +0000)]
Patch #849350: Update to document bool return values. Backported to 2.3.

21 years agoPatch #849595: Add socket.shutdown() constants.
Martin v. Löwis [Thu, 27 Nov 2003 19:40:22 +0000 (19:40 +0000)]
Patch #849595: Add socket.shutdown() constants.

21 years ago- clean up generated HTML
Fred Drake [Wed, 26 Nov 2003 20:55:49 +0000 (20:55 +0000)]
- clean up generated HTML
- make the output more XHTML friendly

21 years agoFix typo and mark-up; shorten text
Andrew M. Kuchling [Wed, 26 Nov 2003 18:05:26 +0000 (18:05 +0000)]
Fix typo and mark-up; shorten text

21 years agoFix typos
Andrew M. Kuchling [Wed, 26 Nov 2003 18:03:48 +0000 (18:03 +0000)]
Fix typos

21 years agoNits from a review of the documentation update.
Raymond Hettinger [Wed, 26 Nov 2003 17:52:45 +0000 (17:52 +0000)]
Nits from a review of the documentation update.

21 years agoAdd version changed doc for addition of fillchar to ljust/rjust/center
Neal Norwitz [Wed, 26 Nov 2003 14:54:56 +0000 (14:54 +0000)]
Add version changed doc for addition of fillchar to ljust/rjust/center

21 years agoAdd optional fillchar argument to ljust(), rjust(), and center() string methods.
Raymond Hettinger [Wed, 26 Nov 2003 08:21:35 +0000 (08:21 +0000)]
Add optional fillchar argument to ljust(), rjust(), and center() string methods.

21 years agoAs discussed on python-dev, banish apply(), buffer(), coerce(), and
Raymond Hettinger [Tue, 25 Nov 2003 21:48:21 +0000 (21:48 +0000)]
As discussed on python-dev, banish apply(), buffer(), coerce(), and
intern() to a separate region in the docs.

21 years agoExpose dict_contains() and PyDict_Contains() with is about 10% faster
Raymond Hettinger [Tue, 25 Nov 2003 21:12:14 +0000 (21:12 +0000)]
Expose dict_contains() and PyDict_Contains() with is about 10% faster
than PySequence_Contains() and more clearly applicable to dicts.

Apply the new function in setobject.c where __contains__ checking is
ubiquitous.