]> granicus.if.org Git - python/log
python
21 years agoDoctest now examines all docstrings by default. Previously, it would
Raymond Hettinger [Wed, 16 Jul 2003 19:25:22 +0000 (19:25 +0000)]
Doctest now examines all docstrings by default.  Previously, it would
skip over functions with private names (as indicated by the underscore
naming convention).  The old default created too much of a risk that
user tests were being skipped inadvertently.  Note, this change could
break code in the unlikely case that someone had intentionally put
failing tests in the docstrings of private functions.  The breakage
is easily fixable by specifying the old behavior when calling testmod()
or Tester().  The more likely case is that the silent failure was
unintended and that the user needed to be informed so the test could be
fixed.

21 years agoLots of markup cleanups to avoid warnings from the GNU info generation;
Fred Drake [Wed, 16 Jul 2003 17:58:38 +0000 (17:58 +0000)]
Lots of markup cleanups to avoid warnings from the GNU info generation;
these make sense even without that processing chain.

21 years agoRemove \versionchanged; the text was too complex for the GNU info
Fred Drake [Wed, 16 Jul 2003 16:19:08 +0000 (16:19 +0000)]
Remove \versionchanged; the text was too complex for the GNU info
conversion to support.  Keep the content as normal content, with a
note that this applies starting in Python 2.3.

21 years agoRemove stray comments.
Jeremy Hylton [Wed, 16 Jul 2003 16:17:57 +0000 (16:17 +0000)]
Remove stray comments.

21 years agoRemove unnecessary check in tests for slots allowed.
Jeremy Hylton [Wed, 16 Jul 2003 16:08:23 +0000 (16:08 +0000)]
Remove unnecessary check in tests for slots allowed.

The !PyType_Check(base) check snuck in as part of rev 2.215, but was
unrelated to the SF patch that is mentioned in the checkin comment.
The test is currently unnecessary because base is set to the return
value of best_bases(), which returns a type or NULL.

21 years agoMinor text changes; update bug/patch count (quite a jump!)
Andrew M. Kuchling [Wed, 16 Jul 2003 14:44:12 +0000 (14:44 +0000)]
Minor text changes; update bug/patch count (quite a jump!)

21 years agoMake it easier to figure out the where a menuselection starts and ends
Fred Drake [Wed, 16 Jul 2003 14:01:56 +0000 (14:01 +0000)]
Make it easier to figure out the where a menuselection starts and ends
by controling the font.

21 years agoCygwin instructions:
Fred Drake [Wed, 16 Jul 2003 13:50:28 +0000 (13:50 +0000)]
Cygwin instructions:
- added missing period
- added markup so it's easier to tell which names are special

21 years agoMore pre-2.3 build tweaks for the OS/2 EMX port:
Andrew MacIntyre [Wed, 16 Jul 2003 13:31:11 +0000 (13:31 +0000)]
More pre-2.3 build tweaks for the OS/2 EMX port:

- more clean up of the generated import library definiton (.DEF file)
  following checking of patch 770521, and tightening of the sed regexps.

- use -O3 even with gcc 2.8.1 - worth nearly 10% with 2.3; worth
  nothing with 2.2.x.

- clean up a couple of whitespace issues introduced by a cut'n'paste.

21 years agoA variety of markup-level adjustments.
Fred Drake [Wed, 16 Jul 2003 05:17:23 +0000 (05:17 +0000)]
A variety of markup-level adjustments.

21 years agoDiscussion of signatures for unicode.translate() and str.translate()
Raymond Hettinger [Wed, 16 Jul 2003 05:11:27 +0000 (05:11 +0000)]
Discussion of signatures for unicode.translate() and str.translate()
were in the wrong file.  Moved out of libstring.tex and into
libstdtypes.tex.

21 years agoExercise Jim Fulton's new doctest extension for running doctests in a
Raymond Hettinger [Wed, 16 Jul 2003 04:34:56 +0000 (04:34 +0000)]
Exercise Jim Fulton's new doctest extension for running doctests in a
unittest environment.  Since his extension finds docstrings in private
functions, it exposed a bug in the difflib doctests.

21 years agoFix faulty doctests. There is no results attribute.
Raymond Hettinger [Wed, 16 Jul 2003 04:32:32 +0000 (04:32 +0000)]
Fix faulty doctests.  There is no results attribute.
Note, these tests were not getting exercised because
doctest skips over private functions.

21 years agoExtend last change to cover TestSuites as well as TestCases.
Raymond Hettinger [Wed, 16 Jul 2003 04:29:42 +0000 (04:29 +0000)]
Extend last change to cover TestSuites as well as TestCases.

21 years ago- update some comments
Fred Drake [Wed, 16 Jul 2003 04:02:58 +0000 (04:02 +0000)]
- update some comments
- add support for the "What's New" document
- add short aliases for individual documents; nice for debugging
  conversions

21 years agoPass along the selected "What's New" document to the make file for the
Fred Drake [Wed, 16 Jul 2003 04:01:04 +0000 (04:01 +0000)]
Pass along the selected "What's New" document to the make file for the
GNU info conversion.

21 years agoAdjust description of the internationalized domain name encoding to
Fred Drake [Wed, 16 Jul 2003 04:00:14 +0000 (04:00 +0000)]
Adjust description of the internationalized domain name encoding to
better accomodate the GNU info conversion.

21 years agoPrevent failure on the mac, where "mbcs" is not the file system
Mark Hammond [Wed, 16 Jul 2003 03:46:38 +0000 (03:46 +0000)]
Prevent failure on the mac, where "mbcs" is not the file system
encoding.  Use sys.getfilesystemencoding().

21 years agoMap \envvar to the TeXinfo equivalent, @env.
Fred Drake [Wed, 16 Jul 2003 03:44:48 +0000 (03:44 +0000)]
Map \envvar to the TeXinfo equivalent, @env.

21 years agoSimple support for the alltt environment.
Fred Drake [Wed, 16 Jul 2003 03:35:41 +0000 (03:35 +0000)]
Simple support for the alltt environment.

21 years agoIn the description of enumerate(), the indexing operators should not
Fred Drake [Wed, 16 Jul 2003 03:26:31 +0000 (03:26 +0000)]
In the description of enumerate(), the indexing operators should not
be included in the \var.  This produced weird results in general, but
broke the GNU info conversion.

21 years agoTeach this script about \AA and \aa (the Scandanavian A-ring
Fred Drake [Wed, 16 Jul 2003 03:16:34 +0000 (03:16 +0000)]
Teach this script about \AA and \aa (the Scandanavian A-ring
characters); \AA is used in whatsnew23.tex.

21 years agoUpdate to reflect the current status of the configuration system.
Kurt B. Kaiser [Wed, 16 Jul 2003 03:10:43 +0000 (03:10 +0000)]
Update to reflect the current status of the configuration system.
Extensions must still be configured manually and there is currently one
set of extension key bindings for all platforms.

Bring NEWS.txt up to date.

Update CREDITS.txt and idlever.py for release.

M NEWS.txt
M config-extensions.def
M extend.txt
M help.txt
M idlever.py

21 years agorun_unittest() to support TestCase instances as well as classes. Helps with doctests.
Raymond Hettinger [Wed, 16 Jul 2003 02:59:32 +0000 (02:59 +0000)]
run_unittest() to support TestCase instances as well as classes.  Helps with doctests.

21 years agoCorrect previous patch looking for warnings module: sys.modules, not
Mark Hammond [Wed, 16 Jul 2003 01:54:38 +0000 (01:54 +0000)]
Correct previous patch looking for warnings module: sys.modules, not
sys.__modules__.

21 years agoNits.
Raymond Hettinger [Tue, 15 Jul 2003 23:16:01 +0000 (23:16 +0000)]
Nits.

21 years agoFix [ 771097 ] frozen programs fail due to implicit import of "warnings".
Mark Hammond [Tue, 15 Jul 2003 23:03:55 +0000 (23:03 +0000)]
Fix [ 771097 ] frozen programs fail due to implicit import of "warnings".

If the initial import of warnings fails, clear the error.  When the module
is actually needed, if the original import failed, see if it has managed
to find its way to sys.modules yet and if so, remember it.

21 years agoIndexing is a mess; try to get the link targets closer to the relevant
Fred Drake [Tue, 15 Jul 2003 22:03:00 +0000 (22:03 +0000)]
Indexing is a mess; try to get the link targets closer to the relevant
text.  There needs to be a better way.

21 years agoprocess_commands_wrap_deferred:
Fred Drake [Tue, 15 Jul 2003 22:00:36 +0000 (22:00 +0000)]
process_commands_wrap_deferred:
  - fix comment describing what this is for
  - add lots of indexing macros to this call
Closes SF bug #518989.

21 years agoTry to clean up some indexing relevant to the import statement.
Fred Drake [Tue, 15 Jul 2003 21:37:58 +0000 (21:37 +0000)]
Try to clean up some indexing relevant to the import statement.
Pertains to SF bug #518989.

21 years agoFixed test and converted to unittest format.
Raymond Hettinger [Tue, 15 Jul 2003 21:03:13 +0000 (21:03 +0000)]
Fixed test and converted to unittest format.

Checking // would call floor division but did not test that
true division had become the default with 'from __future__ import division'.

21 years agoFixed test and converted to unittest format.
Raymond Hettinger [Tue, 15 Jul 2003 20:57:35 +0000 (20:57 +0000)]
Fixed test and converted to unittest format.

Checking // would call floor division but did not test that
true division had become the default with 'from __future__ import division'.

21 years agoDiscuss calling new-style types.
Fred Drake [Tue, 15 Jul 2003 20:45:16 +0000 (20:45 +0000)]
Discuss calling new-style types.
Closes SF bug #453683.

21 years agoSF patch 763201: handling of SyntaxErrors in symbol table build
Jeremy Hylton [Tue, 15 Jul 2003 20:24:27 +0000 (20:24 +0000)]
SF patch 763201: handling of SyntaxErrors in symbol table build

Bug fix candidate.

21 years agoSF patch 763201: handling of SyntaxErrors in symbol table build
Jeremy Hylton [Tue, 15 Jul 2003 20:23:26 +0000 (20:23 +0000)]
SF patch 763201: handling of SyntaxErrors in symbol table build

Fixes for three related bugs, including errors that caused a script to
be ignored without printing an error message.  The key problem was a bad
interaction between syntax warnings and syntax errors.  If an
exception was already set when a warning was issued, the warning could
clobber the exception.

The PyErr_Occurred() check in issue_warning() isn't entirely
satisfying (the caller should know whether there was already an
error), but a better solution isn't immediately obvious.

Bug fix candidate.

21 years agoheck environment closed status before closing a cursors. Fixes #763928.
Martin v. Löwis [Tue, 15 Jul 2003 19:12:54 +0000 (19:12 +0000)]
heck environment closed status before closing a cursors. Fixes #763928.

21 years agoAdd various test cases from SF patch 543867.
Walter Dörwald [Tue, 15 Jul 2003 18:47:27 +0000 (18:47 +0000)]
Add various test cases from SF patch 543867.

21 years ago[Patch #708374] Only apply the check for file size if the file is a regular file...
Andrew M. Kuchling [Tue, 15 Jul 2003 12:37:46 +0000 (12:37 +0000)]
[Patch #708374] Only apply the check for file size if the file is a regular file, not a character or block device.

21 years agoMake the prefix 7 spaces long, so the lines are properly aligned.
Walter Dörwald [Tue, 15 Jul 2003 10:34:02 +0000 (10:34 +0000)]
Make the prefix 7 spaces long, so the lines are properly aligned.

21 years agoRemove proxy_print(), since that caused an inconsistency between
Fred Drake [Mon, 14 Jul 2003 21:46:23 +0000 (21:46 +0000)]
Remove proxy_print(), since that caused an inconsistency between
"print repr(proxy(a))" and "proxy(a)" at an interactive prompt.
Closes SF bug #722763.

21 years agostylistic nits:
Fred Drake [Mon, 14 Jul 2003 21:37:17 +0000 (21:37 +0000)]
stylistic nits:
- wrap some long lines
- shorten others
- fix indentation

21 years agoMarkup consistency nits.
Fred Drake [Mon, 14 Jul 2003 21:07:05 +0000 (21:07 +0000)]
Markup consistency nits.

21 years agoAdded missing markup.
Fred Drake [Mon, 14 Jul 2003 20:53:57 +0000 (20:53 +0000)]
Added missing markup.

21 years agoFix unbalanced parenthesis in text.
Raymond Hettinger [Mon, 14 Jul 2003 18:36:47 +0000 (18:36 +0000)]
Fix unbalanced parenthesis in text.

21 years agoFix missing parenthesis
Raymond Hettinger [Mon, 14 Jul 2003 18:24:26 +0000 (18:24 +0000)]
Fix missing parenthesis

21 years agoupdate norobots link
Skip Montanaro [Mon, 14 Jul 2003 17:04:50 +0000 (17:04 +0000)]
update norobots link

21 years agoGive dumbdbm a sync() method which Shelve can call. Should solve some
Skip Montanaro [Mon, 14 Jul 2003 12:15:15 +0000 (12:15 +0000)]
Give dumbdbm a sync() method which Shelve can call.  Should solve some
database corruption problems with Spambayes.

21 years ago+ libdumdbm
Skip Montanaro [Mon, 14 Jul 2003 12:13:27 +0000 (12:13 +0000)]
+ libdumdbm

21 years ago+ libdumbdbm
Skip Montanaro [Mon, 14 Jul 2003 12:12:56 +0000 (12:12 +0000)]
+ libdumbdbm

21 years agominimal dumdbm module doc
Skip Montanaro [Mon, 14 Jul 2003 12:12:37 +0000 (12:12 +0000)]
minimal dumdbm module doc

21 years agoSF bug #738090: Section 13.3: htmllib.HTMLParser constructor definition
Raymond Hettinger [Mon, 14 Jul 2003 08:15:47 +0000 (08:15 +0000)]
SF bug #738090: Section 13.3: htmllib.HTMLParser constructor definition
                amendment

Add a clarifying cross-reference to the formatter module.

21 years agoSF patch #770521: make itertools type declarations static
Raymond Hettinger [Mon, 14 Jul 2003 07:07:12 +0000 (07:07 +0000)]
SF patch #770521:  make itertools type declarations static
(Contributed by Andrew I MacIntyre.)

21 years agoSF bug #770601: CGIHTTPServer and environment variables (bug + solution)
Raymond Hettinger [Mon, 14 Jul 2003 06:56:32 +0000 (06:56 +0000)]
SF bug #770601:  CGIHTTPServer and environment variables (bug + solution)
(contributed by Vincent Delft.)

The script updated os.environ but failed to pass the whole environment
to the child process (the CGI script).

21 years agoMake close() identical to __del__() for a dumbdbm database. Make
Tim Peters [Sun, 13 Jul 2003 17:21:10 +0000 (17:21 +0000)]
Make close() identical to __del__() for a dumbdbm database.  Make
closing idempotent (it used to raise a nuisance exception on the 2nd
close attempt).

Bugfix candidate?  Probably, but arguable.

21 years agoSF patch #765238: fix fnmatch.__all__
Raymond Hettinger [Sun, 13 Jul 2003 16:06:26 +0000 (16:06 +0000)]
SF patch #765238:  fix fnmatch.__all__
(Contributed by George Yoshida.)

21 years agodelete unused local variable (pychecker caught)
Skip Montanaro [Sun, 13 Jul 2003 15:18:12 +0000 (15:18 +0000)]
delete unused local variable (pychecker caught)

21 years agoMore pre-2.3 build tweaks for the OS/2 EMX port:
Andrew MacIntyre [Sun, 13 Jul 2003 13:41:59 +0000 (13:41 +0000)]
More pre-2.3 build tweaks for the OS/2 EMX port:

- separate the building of the core from the wrapper executables and the
  external modules (.PYDs), based on the Py_BUILD_CORE define;

- clean up the generated import library definiton (.DEF file) to remove
  references to a number of non-static symbols that aren't part of the
  Python API and which shouldn't be exported by the core DLL;

- compile the release build with -fomit-frame-pointer, for a small
  performance gain;

- make "make clean" remove byte compiled Python library files.

21 years agoInitialize thread_id to 0 in unthreaded build. Fixes #770247.
Martin v. Löwis [Sun, 13 Jul 2003 10:41:53 +0000 (10:41 +0000)]
Initialize thread_id to 0 in unthreaded build. Fixes #770247.

21 years agoSF bug #769142: CallTip trimming may loop forever.
Raymond Hettinger [Sun, 13 Jul 2003 10:25:14 +0000 (10:25 +0000)]
SF bug #769142:  CallTip trimming may loop forever.

Needs to be backported to both IDLE and IDLEFORK.

21 years agoPatch #770245: Pass LDFLAGS to pgen creation.
Martin v. Löwis [Sun, 13 Jul 2003 10:10:42 +0000 (10:10 +0000)]
Patch #770245: Pass LDFLAGS to pgen creation.

21 years agoTreat irix64 like irix. Fixes #764560. Will backport to 2.2.
Martin v. Löwis [Sun, 13 Jul 2003 09:46:13 +0000 (09:46 +0000)]
Treat irix64 like irix. Fixes #764560. Will backport to 2.2.

21 years agoReworked test_warnings.py:
Raymond Hettinger [Sun, 13 Jul 2003 08:37:40 +0000 (08:37 +0000)]
Reworked test_warnings.py:

* It ran fine under "python regrtest.py test_warnings" but failed under
  "python regrtest.py" presumably because other tests would add to
  filtered warnings and not reset them at the end of the test.

* Converted to a unittest format for better control.  Renamed
  monkey() and unmonkey() to setUp() and tearDown().

* Increased coverage by testing all warnings in __builtin__.

* Increased coverage by testing regex matching of specific messages.

21 years agoThis test failed on WindowsME because the full file path did not get
Raymond Hettinger [Sun, 13 Jul 2003 06:15:11 +0000 (06:15 +0000)]
This test failed on WindowsME because the full file path did not get
reported consistently with the *nix world.  'Lib/test/test_warnings.py'
came out as 'lib\test\test_warnings.py'.  The basename is all we care
about so I used that.

21 years agoRepaired typos in comments.
Tim Peters [Sun, 13 Jul 2003 02:37:05 +0000 (02:37 +0000)]
Repaired typos in comments.

21 years agoFixed critical shutdown race in _Database._commit.
Tim Peters [Sun, 13 Jul 2003 02:22:03 +0000 (02:22 +0000)]
Fixed critical shutdown race in _Database._commit.
Related to SF patch 723231 (which pointed out the problem, but didn't
fix it, just shut up the warning msg -- which was pointing out a dead-
serious bug!).

Bugfix candidate.

21 years agoSF bug #706546: u''.translate not documented
Raymond Hettinger [Sun, 13 Jul 2003 02:06:47 +0000 (02:06 +0000)]
SF bug #706546: u''.translate not documented

Clarified the difference between translate methods for string objects and
Unicode objects.

21 years agoMore comments about why not closing a dumddbm properly can be a disaster.
Tim Peters [Sun, 13 Jul 2003 02:05:47 +0000 (02:05 +0000)]
More comments about why not closing a dumddbm properly can be a disaster.

21 years agoSF 748201: time.strptime() should display format and date on error
Raymond Hettinger [Sun, 13 Jul 2003 01:31:38 +0000 (01:31 +0000)]
SF 748201:  time.strptime() should display format and date on error

Usability fix.  Makes the error message more helpful.

21 years agoSF bug #770107: Typo in documentation of resource module
Raymond Hettinger [Sun, 13 Jul 2003 00:46:40 +0000 (00:46 +0000)]
SF bug #770107: Typo in documentation of resource module

21 years agoUpdate for new module and new builtin.
Raymond Hettinger [Sat, 12 Jul 2003 23:55:57 +0000 (23:55 +0000)]
Update for new module and new builtin.

21 years ago_commit(): Modernization.
Tim Peters [Sat, 12 Jul 2003 20:23:09 +0000 (20:23 +0000)]
_commit():  Modernization.

21 years agoThere's a persistent rumor on the spambayes mailing list that dumbdbm
Tim Peters [Sat, 12 Jul 2003 20:11:25 +0000 (20:11 +0000)]
There's a persistent rumor on the spambayes mailing list that dumbdbm
databases are associated with corruption problems, so I studied this code
carefully and ran some brutal stress tests.  I didn't find any bugs,
although it's unclear whether this code *intends* that __setitem__ can
leave the directory file out of synch with the data file (so
if a dumbdbm isn't properly closed, and the value of an existing key
was ever replaced, corruption is almost certain, where "corruption"
means the directory file is out of synch with the data file).

Added many comments and generally modernized the code.  Examples of the
latter:  we have better ways of reading a whole file line-by-line now;
eval() now tolerates a trailing newline; the %r format code can be used
to avoid explicit repr/backtick calls; and the code often broke tuples
into their components when it was clearer and faster to just leave them
as tuples.

21 years agoPatch #764470: Fix marshalling of faults. Will backport to 2.2.
Martin v. Löwis [Sat, 12 Jul 2003 07:53:04 +0000 (07:53 +0000)]
Patch #764470: Fix marshalling of faults. Will backport to 2.2.

21 years agoPatch 549151, rev4: redirect posts for 301 also. Will backport to 2.2.
Martin v. Löwis [Sat, 12 Jul 2003 07:33:32 +0000 (07:33 +0000)]
Patch 549151, rev4: redirect posts for 301 also. Will backport to 2.2.

21 years agoFix missing parenthesis
Raymond Hettinger [Sat, 12 Jul 2003 04:42:30 +0000 (04:42 +0000)]
Fix missing parenthesis

21 years agoSF patch #726751: Clarify docs for except target assignment
Raymond Hettinger [Sat, 12 Jul 2003 01:05:37 +0000 (01:05 +0000)]
SF patch #726751:  Clarify docs for except target assignment

Brett found that the tutorial didn't really explain what was happening
with exception targets.  Hopefully, this sheds some light on the subject.

22 years agoExpose the 'master' instance mentioned in the docs.
Raymond Hettinger [Fri, 11 Jul 2003 22:36:52 +0000 (22:36 +0000)]
Expose the 'master' instance mentioned in the docs.

22 years agoDocument Jim Fulton's docttest extensions.
Raymond Hettinger [Fri, 11 Jul 2003 22:32:18 +0000 (22:32 +0000)]
Document Jim Fulton's docttest extensions.

22 years agoDon't include slash in search string; it's OS-specific.
Jeremy Hylton [Fri, 11 Jul 2003 20:22:55 +0000 (20:22 +0000)]
Don't include slash in search string; it's OS-specific.

22 years agoThe Unpickler forget about its find_class attribute.
Jeremy Hylton [Fri, 11 Jul 2003 19:42:49 +0000 (19:42 +0000)]
The Unpickler forget about its find_class attribute.

22 years agoMinor fixups and added sections for iterators and generators.
Raymond Hettinger [Fri, 11 Jul 2003 18:58:11 +0000 (18:58 +0000)]
Minor fixups and added sections for iterators and generators.

22 years agoAdd whitespace.
Jeremy Hylton [Fri, 11 Jul 2003 17:02:39 +0000 (17:02 +0000)]
Add whitespace.

22 years agoChange warnings to avoid importing re module during startup.
Jeremy Hylton [Fri, 11 Jul 2003 15:37:59 +0000 (15:37 +0000)]
Change warnings to avoid importing re module during startup.

Add API function simplefilter() that does not create or install
regular expressions to match message or module.  Extend the filters
data structure to store None as an alternative to re.compile("").

Move the _test() function to test_warnings and add some code to try
and avoid disturbing the global state of the warnings module.

22 years ago- fix typo
Fred Drake [Fri, 11 Jul 2003 15:01:02 +0000 (15:01 +0000)]
- fix typo
- there's a weird variable name here (zimpimport), but I'll leave that
  for someone that's familiar with the ZIP import support

22 years agopatch #766650 - whichdb not identifying dbm DBs when dbm linked with gdbm
Andrew MacIntyre [Fri, 11 Jul 2003 12:16:48 +0000 (12:16 +0000)]
patch #766650 - whichdb not identifying dbm DBs when dbm linked with gdbm

At this point, the problem appears particular to the OS/2 EMX port of
gdbm (which is at v1.7.3) - this combination produces a .pag file but
no .dir file.

A more sophisticated patch which checks magic numbers when dbm.library
indicates that dbm is linked to gdbm, and there is no .dir file, is
still attached to the above patch entry for reconsideration after 2.3
is released.

This checkin applies a workaround specific to the known failure case.

22 years ago[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX
Just van Rossum [Fri, 11 Jul 2003 07:36:49 +0000 (07:36 +0000)]
[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX

22 years ago__setitem__: Use integer division for computing # of blocks.
Tim Peters [Fri, 11 Jul 2003 04:09:55 +0000 (04:09 +0000)]
__setitem__:  Use integer division for computing # of blocks.

22 years agoAdded a new randomized test.
Tim Peters [Fri, 11 Jul 2003 04:09:09 +0000 (04:09 +0000)]
Added a new randomized test.

22 years agonormalize whitespace
Fred Drake [Fri, 11 Jul 2003 03:36:15 +0000 (03:36 +0000)]
normalize whitespace

22 years agoupdate the reference to the Apple Publications Style Guide
Fred Drake [Fri, 11 Jul 2003 03:34:17 +0000 (03:34 +0000)]
update the reference to the Apple Publications Style Guide

22 years agoSF #767592: unittest docs don't suggest "unittest.main()"
Raymond Hettinger [Thu, 10 Jul 2003 22:14:41 +0000 (22:14 +0000)]
SF #767592: unittest docs don't suggest "unittest.main()"

Expanded docs to have a quick start example showing how
to create and run tests.

22 years agoavoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro [Thu, 10 Jul 2003 20:44:10 +0000 (20:44 +0000)]
avoid testing for -Kthread or -pthread if the default build environment
supports pthreads

22 years agofix stupid typo
Fred Drake [Thu, 10 Jul 2003 17:04:45 +0000 (17:04 +0000)]
fix stupid typo

22 years agoSF Patch 763681
Kurt B. Kaiser [Thu, 10 Jul 2003 16:20:58 +0000 (16:20 +0000)]
SF Patch 763681
"Support IDLE Edit of .py/.pyw from idlelib"

22 years agoMissing markup.
Raymond Hettinger [Thu, 10 Jul 2003 15:48:33 +0000 (15:48 +0000)]
Missing markup.

22 years agoFixed a bug that's been there from the beginning but wasn't noticed
Just van Rossum [Thu, 10 Jul 2003 14:53:27 +0000 (14:53 +0000)]
Fixed a bug that's been there from the beginning but wasn't noticed
until now: the inheritance of default values was the wrong way around.
This caused app bundles to get a type of "BNDL" instead of "APPL".
Apparently this is not a problem until you try to drag your app to
the dock.
----------------------------------------------------------------------

22 years agodon't optimize empty strings
Just van Rossum [Thu, 10 Jul 2003 14:26:06 +0000 (14:26 +0000)]
don't optimize empty strings

22 years agoFix wrong header name. The framework looks for auth_header.
Jeremy Hylton [Thu, 10 Jul 2003 13:30:12 +0000 (13:30 +0000)]
Fix wrong header name.  The framework looks for auth_header.

22 years agoupdate OS/2 EMX port notes
Andrew MacIntyre [Thu, 10 Jul 2003 12:55:30 +0000 (12:55 +0000)]
update OS/2 EMX port notes

22 years agoExtend the pwd & grp emulations to support accessing the pwd/grp
Andrew MacIntyre [Thu, 10 Jul 2003 12:52:54 +0000 (12:52 +0000)]
Extend the pwd & grp emulations to support accessing the pwd/grp
record tuple by name as well as index, to match the behaviour of
the pwd/grp extension modules for Unix.  These emulation modules
now pass test_pwd & test_grp.