]> granicus.if.org Git - python/log
python
21 years agoRemove self from the arguments for the function add_type().
Walter Dörwald [Fri, 19 Dec 2003 18:15:10 +0000 (18:15 +0000)]
Remove self from the arguments for the function add_type().

Backport candidate.

21 years agoSF #859573: Reduce compiler warnings on gcc 3.2 and above.
Hye-Shik Chang [Fri, 19 Dec 2003 01:59:56 +0000 (01:59 +0000)]
SF #859573: Reduce compiler warnings on gcc 3.2 and above.

21 years agoEnable some unittests on FreeBSD.
Hye-Shik Chang [Fri, 19 Dec 2003 01:16:03 +0000 (01:16 +0000)]
Enable some unittests on FreeBSD.

test__locale: add typical POSIX-style full locale names.
test_locale: use en_US.US-ASCII on FreeBSD.

21 years agoSync with python-mode project. Adds two changes:
Skip Montanaro [Thu, 18 Dec 2003 21:53:33 +0000 (21:53 +0000)]
Sync with python-mode project.  Adds two changes:

* in py-checker-run, fall back to read-string if read-shell-command
  (XEmacs-specific) is not available.

* highlight variables would mask builtins as if they were keywords.

21 years agominor markup adjustment
Fred Drake [Thu, 18 Dec 2003 20:58:34 +0000 (20:58 +0000)]
minor markup adjustment

21 years agoFix typo
Andrew M. Kuchling [Thu, 18 Dec 2003 13:28:35 +0000 (13:28 +0000)]
Fix typo

21 years agoAdd various items
Andrew M. Kuchling [Thu, 18 Dec 2003 13:28:13 +0000 (13:28 +0000)]
Add various items

21 years agofix loss of a space after indexing markup
Fred Drake [Thu, 18 Dec 2003 06:26:56 +0000 (06:26 +0000)]
fix loss of a space after indexing markup

21 years ago- use correct markup
Fred Drake [Thu, 18 Dec 2003 06:23:33 +0000 (06:23 +0000)]
- use correct markup
- re-wrap resulting long lines

21 years agofix weird sh-bang line
Fred Drake [Thu, 18 Dec 2003 05:29:33 +0000 (05:29 +0000)]
fix weird sh-bang line

21 years agoavoid bash-isms
Fred Drake [Thu, 18 Dec 2003 05:28:30 +0000 (05:28 +0000)]
avoid bash-isms

21 years agoGuido grants a Christmas wish:
Raymond Hettinger [Wed, 17 Dec 2003 21:38:26 +0000 (21:38 +0000)]
Guido grants a Christmas wish:
  sorted() becomes a regular function instead of a classmethod.

21 years agoGuido grants a Christmas wish:
Raymond Hettinger [Wed, 17 Dec 2003 20:50:46 +0000 (20:50 +0000)]
Guido grants a Christmas wish:
  sorted() becomes a regular function instead of a classmethod.

21 years agoRemove methods that are no longer called by urllib2.
Jeremy Hylton [Wed, 17 Dec 2003 20:47:28 +0000 (20:47 +0000)]
Remove methods that are no longer called by urllib2.

21 years agoGuido grants a Christmas wish:
Raymond Hettinger [Wed, 17 Dec 2003 20:43:33 +0000 (20:43 +0000)]
Guido grants a Christmas wish:
  sorted() becomes a regular function instead of a classmethod.

21 years agoAdd methods to MockHTTPClass for modern httplib interface.
Jeremy Hylton [Wed, 17 Dec 2003 20:42:38 +0000 (20:42 +0000)]
Add methods to MockHTTPClass for modern httplib interface.
Replace lots of assert_(x == y) with assertEqual(x, y).

21 years agoRewrite AbstractHTTPHandler to use modern httplib interface.
Jeremy Hylton [Wed, 17 Dec 2003 18:52:16 +0000 (18:52 +0000)]
Rewrite AbstractHTTPHandler to use modern httplib interface.

The chief benefit of this change is that requests will now use
HTTP/1.1 instead of HTTP/1.0.  Bump the module version number as part
of the change.

There are two possible incompatibilities that we'll need to watch out
for when we get to an alpha release.  We may get a different class of
exceptions out of httplib, and the do_open() method changed its
signature.  The latter is only important if anyone actually subclasses
AbstractHTTPHandler.

21 years agoFix erroneus argument parsing of socket.htons() on 64bit big endian
Hye-Shik Chang [Wed, 17 Dec 2003 09:40:23 +0000 (09:40 +0000)]
Fix erroneus argument parsing of socket.htons() on 64bit big endian
machines.

21 years agoUpdate documentations for str.rsplit() with Alex Martelli's rewrite.
Hye-Shik Chang [Wed, 17 Dec 2003 02:49:03 +0000 (02:49 +0000)]
Update documentations for str.rsplit() with Alex Martelli's rewrite.

21 years agoMake example more readable
Andrew M. Kuchling [Tue, 16 Dec 2003 20:59:37 +0000 (20:59 +0000)]
Make example more readable

21 years agoSpeedup set.update by using the override mode for PyDict_Merge().
Raymond Hettinger [Mon, 15 Dec 2003 21:16:06 +0000 (21:16 +0000)]
Speedup set.update by using the override mode for PyDict_Merge().

21 years agoAdd rsplit method for UserString, too.
Hye-Shik Chang [Mon, 15 Dec 2003 19:46:09 +0000 (19:46 +0000)]
Add rsplit method for UserString, too.
(Spotted by Raymond Hettinger)

21 years agoFix typo and improve wording a bit.
Raymond Hettinger [Mon, 15 Dec 2003 19:24:34 +0000 (19:24 +0000)]
Fix typo and improve wording a bit.

21 years agoAdd an entry for addition of {str,unicode}.rsplit.
Hye-Shik Chang [Mon, 15 Dec 2003 18:51:19 +0000 (18:51 +0000)]
Add an entry for addition of {str,unicode}.rsplit.

21 years agoAdd rsplit method for str and unicode builtin types.
Hye-Shik Chang [Mon, 15 Dec 2003 18:49:53 +0000 (18:49 +0000)]
Add rsplit method for str and unicode builtin types.

SF feature request #801847.
Original patch is written by Sean Reifschneider.

21 years agoRemove __del__ methods to avoid creating uncollectable cyclic trash.
Jeremy Hylton [Mon, 15 Dec 2003 16:08:48 +0000 (16:08 +0000)]
Remove __del__ methods to avoid creating uncollectable cyclic trash.
Keep close() methods for backwards compatibility.

Does any call close() explicitly?

21 years agomissing word (should backport - is release23-maint still locked?)
Skip Montanaro [Mon, 15 Dec 2003 14:38:57 +0000 (14:38 +0000)]
missing word (should backport - is release23-maint still locked?)

21 years agoImprove algorithm for set.difference when the input is not a set.
Raymond Hettinger [Mon, 15 Dec 2003 13:23:55 +0000 (13:23 +0000)]
Improve algorithm for set.difference when the input is not a set.

21 years agoMake the module docstring a raw string, so that the backslash in
Walter Dörwald [Mon, 15 Dec 2003 10:16:09 +0000 (10:16 +0000)]
Make the module docstring a raw string, so that the backslash in
"read until end of line ('\n') or EOF" will be treated literally.
Fixes SF bug #860155.

21 years agoRemove a "temporary" piece of code that was probably unneeded since
Guido van Rossum [Mon, 15 Dec 2003 06:06:24 +0000 (06:06 +0000)]
Remove a "temporary" piece of code that was probably unneeded since
mid 1990.  Remove an untrue XXX comment.

21 years agoSF #859811, typo in docs
Neal Norwitz [Sun, 14 Dec 2003 15:02:54 +0000 (15:02 +0000)]
SF #859811, typo in docs

21 years agoSF #859810, typo in doc
Neal Norwitz [Sun, 14 Dec 2003 15:01:35 +0000 (15:01 +0000)]
SF #859810, typo in doc

21 years agoAdd news item about processor support in urllib2.
Jeremy Hylton [Sun, 14 Dec 2003 05:29:45 +0000 (05:29 +0000)]
Add news item about processor support in urllib2.

21 years agoSF patch 852995: add processors feature to urllib2
Jeremy Hylton [Sun, 14 Dec 2003 05:27:34 +0000 (05:27 +0000)]
SF patch 852995: add processors feature to urllib2

John J. Lee writes: "the patch makes it possible to implement
functionality like HTTP cookie handling, Refresh handling,
etc. etc. using handler objects. At the moment urllib2's handler
objects aren't quite up to the job, which results in a lot of
cut-n-paste and subclassing. I believe the changes are
backwards-compatible, with the exception of people who've
reimplemented build_opener()'s functionality -- those people would
need to call opener.add_handler(HTTPErrorProcessor).

The main change is allowing handlers to implement
methods like:

http_request(request)
http_response(request, response)

In addition to the usual

http_open(request)
http_error{_*}(...)
"

Note that the change isn't well documented at least in part because
handlers aren't well documented at all.  Need to fix this.

Add a bunch of new tests.  It appears that none of these tests
actually use the network, so they don't need to be guarded by a
resource flag.

21 years agoSF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Neal Norwitz [Sat, 13 Dec 2003 22:43:34 +0000 (22:43 +0000)]
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald

21 years agoAdd a versionadded tag for traceback.format_exc()
Neal Norwitz [Sat, 13 Dec 2003 22:34:09 +0000 (22:34 +0000)]
Add a versionadded tag for traceback.format_exc()

21 years agoMake private/local functions static
Neal Norwitz [Sat, 13 Dec 2003 22:31:53 +0000 (22:31 +0000)]
Make private/local functions static

21 years agoAfter hearing from someone who gave up on timeout sockets due to a
Guido van Rossum [Sat, 13 Dec 2003 22:12:53 +0000 (22:12 +0000)]
After hearing from someone who gave up on timeout sockets due to a
mistake in his code, I'm adding a note explaining that you should call
settimeout() before connect().

21 years agoCleaning up recursive pieces left in the reorganization.
Gustavo Niemeyer [Sat, 13 Dec 2003 20:32:08 +0000 (20:32 +0000)]
Cleaning up recursive pieces left in the reorganization.

21 years agoNote that \var{ppos} values are not consecutive and should not be altered.
Raymond Hettinger [Sat, 13 Dec 2003 19:48:41 +0000 (19:48 +0000)]
Note that \var{ppos} values are not consecutive and should not be altered.

21 years ago* Refactor set.__contains__()
Raymond Hettinger [Sat, 13 Dec 2003 19:38:47 +0000 (19:38 +0000)]
* Refactor set.__contains__()
* Use Py_RETURN_NONE everywhere.
* Fix-up the firstpass check for the tp_print slot.

21 years agoRefactor set.discard() and set.remove().
Raymond Hettinger [Sat, 13 Dec 2003 18:53:18 +0000 (18:53 +0000)]
Refactor set.discard() and set.remove().

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__().