]> granicus.if.org Git - python/log
python
22 years agoAdd a name
Andrew M. Kuchling [Wed, 10 Apr 2002 21:53:22 +0000 (21:53 +0000)]
Add a name

22 years agoAdd deprecation warning to 'pre' module
Andrew M. Kuchling [Wed, 10 Apr 2002 21:36:11 +0000 (21:36 +0000)]
Add deprecation warning to 'pre' module

22 years agoRemove mention of 'pre' module
Andrew M. Kuchling [Wed, 10 Apr 2002 21:28:31 +0000 (21:28 +0000)]
Remove mention of 'pre' module

(2.2 bugfix candidate?)

22 years agoRemove support for importing 'pre' module
Andrew M. Kuchling [Wed, 10 Apr 2002 21:15:40 +0000 (21:15 +0000)]
Remove support for importing 'pre' module

22 years agoSync'ing with standalone email package 2.0.1. This adds support for
Barry Warsaw [Wed, 10 Apr 2002 21:01:31 +0000 (21:01 +0000)]
Sync'ing with standalone email package 2.0.1.  This adds support for
non-us-ascii character sets in headers and bodies.  Some API changes
(with DeprecationWarnings for the old APIs).  Better RFC-compliant
implementations of base64 and quoted-printable.

Updated test cases.  Documentation updates to follow (after I finish
writing them ;).

22 years agoBug fix for UTF-8 encoding bug (buffer overrun) #541828.
Marc-André Lemburg [Wed, 10 Apr 2002 20:36:13 +0000 (20:36 +0000)]
Bug fix for UTF-8 encoding bug (buffer overrun) #541828.

22 years agoDocument PyType_CheckExact(), PyType_IS_GC().
Fred Drake [Wed, 10 Apr 2002 17:52:52 +0000 (17:52 +0000)]
Document PyType_CheckExact(), PyType_IS_GC().
Update description of PyType_Check().

22 years agoAdded test case for UTF-8 encoding bug #541828.
Marc-André Lemburg [Wed, 10 Apr 2002 17:18:02 +0000 (17:18 +0000)]
Added test case for UTF-8 encoding bug #541828.

22 years agoUse random instead of whrandom
Andrew M. Kuchling [Wed, 10 Apr 2002 14:54:39 +0000 (14:54 +0000)]
Use random instead of whrandom

22 years agoUse random module instead of whrandom
Andrew M. Kuchling [Wed, 10 Apr 2002 14:50:16 +0000 (14:50 +0000)]
Use random module instead of whrandom
Move imports to top

22 years agodocument all the valid encoding values
Skip Montanaro [Wed, 10 Apr 2002 04:37:09 +0000 (04:37 +0000)]
document all the valid encoding values

22 years agoWhen adding a name to the table of macros and environments, make sure it
Fred Drake [Wed, 10 Apr 2002 04:20:33 +0000 (04:20 +0000)]
When adding a name to the table of macros and environments, make sure it
is not already present.  If it is, raise an exception, since that should not
happen in a well-defined conversion.

22 years agoAdded support for \csimplemacro and csimplemacrodesc.
Fred Drake [Wed, 10 Apr 2002 04:19:12 +0000 (04:19 +0000)]
Added support for \csimplemacro and csimplemacrodesc.

22 years agoAdd deprecation warnings for modules as documented
Neal Norwitz [Wed, 10 Apr 2002 02:04:00 +0000 (02:04 +0000)]
Add deprecation warnings for modules as documented

22 years agoAdd a deprecation warning to reflect the documented deprecation of the
Fred Drake [Wed, 10 Apr 2002 01:45:11 +0000 (01:45 +0000)]
Add a deprecation warning to reflect the documented deprecation of the
whrandom module.  (The deprecation was effective in Python 2.1.)

22 years agoStarted filling in the information about some of the basic types and macros
Fred Drake [Tue, 9 Apr 2002 21:22:07 +0000 (21:22 +0000)]
Started filling in the information about some of the basic types and macros
used to define Python objects.

22 years agoRepair 2.2.1 release date.
Tim Peters [Tue, 9 Apr 2002 21:18:37 +0000 (21:18 +0000)]
Repair 2.2.1 release date.

22 years agoUpdate to use the new \csimplemacro macro
Fred Drake [Tue, 9 Apr 2002 21:09:42 +0000 (21:09 +0000)]
Update to use the new \csimplemacro macro

22 years agoDocument the \csimplemacro macro and the csimplemacrodesc environment.
Fred Drake [Tue, 9 Apr 2002 20:17:42 +0000 (20:17 +0000)]
Document the \csimplemacro macro and the csimplemacrodesc environment.

22 years agoAdd \csimplemacro to parallel the csimplemacrodesc environment.
Fred Drake [Tue, 9 Apr 2002 20:16:47 +0000 (20:16 +0000)]
Add \csimplemacro to parallel the csimplemacrodesc environment.
Fix a typo in the comments for csimplemacrodesc.

22 years agoUpdate docs for bool changes by Guido around April 6
Neal Norwitz [Tue, 9 Apr 2002 18:15:00 +0000 (18:15 +0000)]
Update docs for bool changes by Guido around April 6

22 years agoUpdate docstring to reflect code change to bool
Neal Norwitz [Tue, 9 Apr 2002 18:12:58 +0000 (18:12 +0000)]
Update docstring to reflect code change to bool

22 years agois_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
Guido van Rossum [Tue, 9 Apr 2002 18:00:58 +0000 (18:00 +0000)]
is_builtin() is not a Boolean -- it can return -1, 0, 1.  [SF #541652]

22 years agoIgnore an output directory for intermediates here as well.
Fred Drake [Tue, 9 Apr 2002 14:54:26 +0000 (14:54 +0000)]
Ignore an output directory for intermediates here as well.

22 years agoFix typo: coverted --> converted. Reported by Francois Pinard.
Fred Drake [Tue, 9 Apr 2002 14:39:10 +0000 (14:39 +0000)]
Fix typo: coverted --> converted.  Reported by Francois Pinard.

22 years agoRemove unconditional debugging prints.
Thomas Heller [Tue, 9 Apr 2002 14:16:07 +0000 (14:16 +0000)]
Remove unconditional debugging prints.

22 years agoSet the warn_dir option to 0 before running the install command.
Thomas Heller [Tue, 9 Apr 2002 14:14:38 +0000 (14:14 +0000)]
Set the warn_dir option to 0 before running the install command.
This suppresses bogus warnings about modules installed into a directory
not in sys.path.

Bugfix candidate.

22 years agoFix an obvious bug.
Thomas Heller [Tue, 9 Apr 2002 12:50:13 +0000 (12:50 +0000)]
Fix an obvious bug.

22 years agoUpdate the table of releases.
Fred Drake [Mon, 8 Apr 2002 21:57:31 +0000 (21:57 +0000)]
Update the table of releases.

22 years agoUpdate table of releases.
Tim Peters [Mon, 8 Apr 2002 21:36:47 +0000 (21:36 +0000)]
Update table of releases.

22 years agoPatch #512005: getrusage() returns struct-like object.
Martin v. Löwis [Mon, 8 Apr 2002 21:28:20 +0000 (21:28 +0000)]
Patch #512005: getrusage() returns struct-like object.

22 years agoChange 2.1.3 release date.
Tim Peters [Mon, 8 Apr 2002 18:47:34 +0000 (18:47 +0000)]
Change 2.1.3 release date.

22 years agoUpdate 2.1.3 Windows buildno.
Tim Peters [Mon, 8 Apr 2002 18:00:26 +0000 (18:00 +0000)]
Update 2.1.3 Windows buildno.

22 years agoPatch #539392: Invoke setlocale, try opening the file in demo mode.
Martin v. Löwis [Mon, 8 Apr 2002 14:51:31 +0000 (14:51 +0000)]
Patch #539392: Invoke setlocale, try opening the file in demo mode.

22 years agoMove Unicode finalization further down in the chain.
Marc-André Lemburg [Mon, 8 Apr 2002 08:19:36 +0000 (08:19 +0000)]
Move Unicode finalization further down in the chain.
Fixes bug #525620.

22 years agoDo not call "knee" a standard module, and point to the new location.
Fred Drake [Mon, 8 Apr 2002 05:22:30 +0000 (05:22 +0000)]
Do not call "knee" a standard module, and point to the new location.
This addresses the issue in SF bug #515745.

22 years agoSF bug 538827: Python open w/ MSVC6: bad error msgs.
Tim Peters [Mon, 8 Apr 2002 04:13:12 +0000 (04:13 +0000)]
SF bug 538827:  Python open w/ MSVC6: bad error msgs.
open_the_file:  Some (not all) flavors of Windows set errno to EINVAL
when passed a syntactically invalid filename.  Python turned that into an
incomprehensible complaint about the mode string.  Fixed by special-casing
MSVC.

22 years ago- A type can now inherit its metatype from its base type. Previously,
Guido van Rossum [Mon, 8 Apr 2002 01:38:42 +0000 (01:38 +0000)]
- A type can now inherit its metatype from its base type.  Previously,
  when PyType_Ready() was called, if ob_type was found to be NULL, it
  was always set to &PyType_Type; now it is set to base->ob_type,
  where base is tp_base, defaulting to &PyObject_Type.

- PyType_Ready() accidentally did not inherit tp_is_gc; now it does.

Bugfix candidate.

22 years agoMove knee.py from Lib/ to Demo/imputil/. Fixes #515745.
Martin v. Löwis [Sun, 7 Apr 2002 16:29:36 +0000 (16:29 +0000)]
Move knee.py from Lib/ to Demo/imputil/. Fixes #515745.

22 years agoPartial introduction of bools where appropriate.
Guido van Rossum [Sun, 7 Apr 2002 06:36:23 +0000 (06:36 +0000)]
Partial introduction of bools where appropriate.

22 years agoReturn bools from functions named is_<whatever>().
Guido van Rossum [Sun, 7 Apr 2002 06:34:38 +0000 (06:34 +0000)]
Return bools from functions named is_<whatever>().

22 years agoLock methods acquire() and locked() now return bools.
Guido van Rossum [Sun, 7 Apr 2002 06:32:21 +0000 (06:32 +0000)]
Lock methods acquire() and locked() now return bools.

22 years agoisatty() should return a bool.
Guido van Rossum [Sun, 7 Apr 2002 06:28:00 +0000 (06:28 +0000)]
isatty() should return a bool.

22 years agoMove autoheader declarations into configure.in.
Martin v. Löwis [Sat, 6 Apr 2002 10:10:49 +0000 (10:10 +0000)]
Move autoheader declarations into configure.in.

22 years agoMinor clarification about what's actually promised for PyMem_Malloc(0).
Tim Peters [Sat, 6 Apr 2002 09:14:33 +0000 (09:14 +0000)]
Minor clarification about what's actually promised for PyMem_Malloc(0).
I probably didn't do a correct thing for the LaTeX spelling of the
integer 1.

22 years agoAdd standard header preamble and footer, a-la intobject.h. Main purpose is extern...
Mark Hammond [Sat, 6 Apr 2002 03:58:41 +0000 (03:58 +0000)]
Add standard header preamble and footer, a-la intobject.h.  Main purpose is extern "C" for C++ programs.

22 years agoMinor improvements to the stats output dump, including adding commas to
Tim Peters [Sat, 6 Apr 2002 01:45:35 +0000 (01:45 +0000)]
Minor improvements to the stats output dump, including adding commas to
the big numbers.

22 years ago- Changed new-style class instantiation so that when C's __new__
Guido van Rossum [Sat, 6 Apr 2002 01:05:01 +0000 (01:05 +0000)]
- Changed new-style class instantiation so that when C's __new__
  method returns something that's not a C instance, its __init__ is
  not called.  [SF bug #537450]

22 years agoSome more news.
Guido van Rossum [Sat, 6 Apr 2002 00:23:25 +0000 (00:23 +0000)]
Some more news.

22 years agoMove reference material on PyArg_Parse*() out of the Extending & Embedding
Fred Drake [Fri, 5 Apr 2002 23:01:14 +0000 (23:01 +0000)]
Move reference material on PyArg_Parse*() out of the Extending & Embedding
document to the C API reference.  Move some instructional text from the API
reference to the Extending & Embedding manual.

Fix the descriptions of the es and es# formats for PyArg_Parse*().
This closes SF bug #536516.

22 years agoDon't inherit tp_new! This is a retraction of half of the previous
Guido van Rossum [Fri, 5 Apr 2002 22:04:18 +0000 (22:04 +0000)]
Don't inherit tp_new!  This is a retraction of half of the previous
checkin.  And since that one was, this one is also a:

Bugfix candidate.

22 years agoAdd tests for binary pickles.
Guido van Rossum [Fri, 5 Apr 2002 20:57:02 +0000 (20:57 +0000)]
Add tests for binary pickles.

22 years agoRemove weird spacing in typeset version of the chapter head.
Fred Drake [Fri, 5 Apr 2002 19:54:19 +0000 (19:54 +0000)]
Remove weird spacing in typeset version of the chapter head.

22 years agoImplement an idea by Paul Rubin:
Guido van Rossum [Fri, 5 Apr 2002 19:30:08 +0000 (19:30 +0000)]
Implement an idea by Paul Rubin:

Change pickling format for bools to use a backwards compatible
encoding.  This means you can pickle True or False on Python 2.3
and Python 2.2 or before will read it back as 1 or 0.  The code
used for pickling bools before would create pickles that could
not be read in previous Python versions.

22 years agoFix bug in command line handling, noted by Fredrik Lundh.
Fred Drake [Fri, 5 Apr 2002 18:09:22 +0000 (18:09 +0000)]
Fix bug in command line handling, noted by Fredrik Lundh.

22 years agoAdd support for the "Aesop Meta Tag". Not widely used, but not a bad idea,
Fred Drake [Fri, 5 Apr 2002 17:34:50 +0000 (17:34 +0000)]
Add support for the "Aesop Meta Tag".  Not widely used, but not a bad idea,
either.

22 years agoInherit tp_new and tp_is_gc.
Guido van Rossum [Fri, 5 Apr 2002 17:10:16 +0000 (17:10 +0000)]
Inherit tp_new and tp_is_gc.

Bugfix candidate.

22 years agoEliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis [Fri, 5 Apr 2002 16:50:53 +0000 (16:50 +0000)]
Eliminate use of LIBOBJS which is an error in autoconf 2.53.

22 years agoComment about UTF-16 changes.
Marc-André Lemburg [Fri, 5 Apr 2002 12:15:05 +0000 (12:15 +0000)]
Comment about UTF-16 changes.

22 years agoFix for bug #222395: UTF-16 et al. don't handle .readline().
Marc-André Lemburg [Fri, 5 Apr 2002 12:12:00 +0000 (12:12 +0000)]
Fix for bug #222395: UTF-16 et al. don't handle .readline().
They now raise an NotImplementedError to hint to the truth ;-)

22 years agoRepair an incomprehensible comment.
Tim Peters [Fri, 5 Apr 2002 06:24:54 +0000 (06:24 +0000)]
Repair an incomprehensible comment.

22 years ago_PyMalloc_DebugDumpStats(): vastly improved the output, and it now
Tim Peters [Fri, 5 Apr 2002 05:45:31 +0000 (05:45 +0000)]
_PyMalloc_DebugDumpStats():  vastly improved the output, and it now
accounts for every byte.

22 years agoWidespread, but mostly in _PyMalloc_Malloc: optimize away all expensive
Tim Peters [Fri, 5 Apr 2002 04:32:29 +0000 (04:32 +0000)]
Widespread, but mostly in _PyMalloc_Malloc:  optimize away all expensive
runtime multiplications and divisions, via the scheme developed with
Vladimir Marangozov on Python-Dev.  The pool_header struct loses its
capacity member, but gains nextoffset and maxnextoffset members; this
still leaves it at 32 bytes on a 32-bit box (it has to be padded to a
multiple of 8 bytes).

22 years agoUpdate doc to reflect Tim's changes to bool.
Neal Norwitz [Fri, 5 Apr 2002 02:21:09 +0000 (02:21 +0000)]
Update doc to reflect Tim's changes to bool.

22 years agoA much revised version of SF patch 514662, by Naofumi Honda. This
Guido van Rossum [Thu, 4 Apr 2002 23:44:47 +0000 (23:44 +0000)]
A much revised version of SF patch 514662, by Naofumi Honda.  This
speeds up __getitem__ and __setitem__ in subclasses of built-in
sequences.

It's much revised because I took the opportunity to refactor the code
somewhat (moving a large section of duplicated code to a helper
function) and added comments to a series of functions.

22 years agoRevert 0/1 -> False/True change; I didn't intend to muck w/ distutils.
Tim Peters [Thu, 4 Apr 2002 23:17:31 +0000 (23:17 +0000)]
Revert 0/1 -> False/True change; I didn't intend to muck w/ distutils.

22 years agoFix a typo in Tim's fix.
Guido van Rossum [Thu, 4 Apr 2002 23:03:47 +0000 (23:03 +0000)]
Fix a typo in Tim's fix.

22 years agoMinor style change.
Fred Drake [Thu, 4 Apr 2002 22:56:57 +0000 (22:56 +0000)]
Minor style change.

22 years agoConvert a pile of obvious "yes/no" functions to return bool.
Tim Peters [Thu, 4 Apr 2002 22:55:58 +0000 (22:55 +0000)]
Convert a pile of obvious "yes/no" functions to return bool.

22 years agoRecord Windows build number for 2.2.1 final.
Tim Peters [Thu, 4 Apr 2002 21:49:08 +0000 (21:49 +0000)]
Record Windows build number for 2.2.1 final.

22 years agoAdd support for \textgreater, \textless.
Fred Drake [Thu, 4 Apr 2002 21:39:42 +0000 (21:39 +0000)]
Add support for \textgreater, \textless.
Updated productionlist environment.

22 years agoReplace use of apply() with extended call syntax.
Jeremy Hylton [Thu, 4 Apr 2002 21:02:24 +0000 (21:02 +0000)]
Replace use of apply() with extended call syntax.

22 years agoAdd a version annotation regarding the urlopen(proxies={...}).
Fred Drake [Thu, 4 Apr 2002 20:58:02 +0000 (20:58 +0000)]
Add a version annotation regarding the urlopen(proxies={...}).

22 years agoSupport manual proxy configuration for simple urlopen() operations.
Fred Drake [Thu, 4 Apr 2002 20:41:34 +0000 (20:41 +0000)]
Support manual proxy configuration for simple urlopen() operations.
This change is similar to the supplied patch, but does not save the opener
when a proxy configuration is specified.
This closes SF patch #523415.

22 years agoThe rest of the documentation for manual proxy configuration for a basic
Fred Drake [Thu, 4 Apr 2002 20:34:36 +0000 (20:34 +0000)]
The rest of the documentation for manual proxy configuration for a basic
urlopen().
This is part of SF patch #523415.

22 years agoDocumentation for manual proxy configuration, by Andy Gimblett.
Fred Drake [Thu, 4 Apr 2002 20:09:50 +0000 (20:09 +0000)]
Documentation for manual proxy configuration, by Andy Gimblett.
This closes SF patch #523415.

22 years agoSF bug 497854: Short-cuts missing for All Users
Tim Peters [Thu, 4 Apr 2002 20:02:04 +0000 (20:02 +0000)]
SF bug 497854: Short-cuts missing for All Users
Fix Windows-specific install glitch.  Tested on Win2K, but I can't test
on XP.
Already checked in to the release22-maint branch.

22 years agoAdd note about changes in xml.sax.expatreader.
Fred Drake [Thu, 4 Apr 2002 19:36:15 +0000 (19:36 +0000)]
Add note about changes in xml.sax.expatreader.

22 years agoNot sure why the regression test missed this, but the PyXML tests caught it.
Fred Drake [Thu, 4 Apr 2002 19:12:31 +0000 (19:12 +0000)]
Not sure why the regression test missed this, but the PyXML tests caught it.
We should get attributes from the right object.

22 years agoMark the notice about the new development version of the docs as not needing
Fred Drake [Thu, 4 Apr 2002 18:06:06 +0000 (18:06 +0000)]
Mark the notice about the new development version of the docs as not needing
to be archived.  Most of these are pretty bland.  ;-)

22 years agoAvoid creating circular references between the ExpatParser and the
Fred Drake [Thu, 4 Apr 2002 17:57:08 +0000 (17:57 +0000)]
Avoid creating circular references between the ExpatParser and the
ContentHandler.  While GC will eventually clean up, it can take longer than
normal for applications that create a lot of strings (or other immutables)
rather without creating many containers.
This closes SF bug #535474.

22 years agoRemoved old Digital Creations copyright/license notices (with
Guido van Rossum [Thu, 4 Apr 2002 17:52:50 +0000 (17:52 +0000)]
Removed old Digital Creations copyright/license notices (with
permission from Paul Everitt).  Also removed a few other references to
Digital Creations and changed the remaining ones to Zope Corporation.

22 years agoClarifying code rearrangement and comments by David Abrahams. I've
Guido van Rossum [Thu, 4 Apr 2002 17:50:54 +0000 (17:50 +0000)]
Clarifying code rearrangement and comments by David Abrahams.  I've
got to admit that I haven't reviewed this carefully, but it looks okay
from 30,000 views, and doesn't break anything.  (SF patch 536407.)

22 years agoAdd test case for SF bug 534347.
Guido van Rossum [Thu, 4 Apr 2002 16:27:04 +0000 (16:27 +0000)]
Add test case for  SF bug 534347.

22 years agoFix by Greg Chapman from SF bug 534347: Potential AV in vgetargskeywords.
Guido van Rossum [Thu, 4 Apr 2002 16:22:30 +0000 (16:22 +0000)]
Fix by Greg Chapman from SF bug 534347: Potential AV in vgetargskeywords.

Bugfix candidate.

22 years agoAdded note about updated freeze.py Tool.
Marc-André Lemburg [Thu, 4 Apr 2002 16:17:11 +0000 (16:17 +0000)]
Added note about updated freeze.py Tool.

22 years agoUpdated freeze.py to the new Makefile symbol layout.
Marc-André Lemburg [Thu, 4 Apr 2002 16:15:41 +0000 (16:15 +0000)]
Updated freeze.py to the new Makefile symbol layout.
Fixed a few compiler warnings.

freeze.py now produces binaries which can import shared
modules (unlike before).

22 years agoAdd a note about bool.
Guido van Rossum [Thu, 4 Apr 2002 15:21:33 +0000 (15:21 +0000)]
Add a note about bool.

22 years agoSF 539024, Fix broken link to numpy
Neal Norwitz [Thu, 4 Apr 2002 14:02:45 +0000 (14:02 +0000)]
SF 539024, Fix broken link to numpy

22 years ago_PyMalloc_Realloc(): removed a now-pointless cast.
Tim Peters [Thu, 4 Apr 2002 05:08:31 +0000 (05:08 +0000)]
_PyMalloc_Realloc():  removed a now-pointless cast.

22 years ago_PyMalloc_{Malloc, Realloc}: Strive to meet the doc's promises about
Tim Peters [Thu, 4 Apr 2002 04:44:32 +0000 (04:44 +0000)]
_PyMalloc_{Malloc, Realloc}:  Strive to meet the doc's promises about
what these do given a 0 size argument.  This is so that when pymalloc
is enabled, we don't need to wrap pymalloc calls in goofy little
routines special-casing 0.  Note that it's virtually impossible to meet
the doc's promise that malloc(0) will never return NULL; this makes a
best effort, but not an insane effort.  The code does promise that
realloc(not-NULL, 0) will never return NULL (malloc(0) is much harder).

_PyMalloc_Realloc:  Changed to take over all requests for 0 bytes, and
rearranged to be a little quicker in expected cases.

All over the place:  when resorting to the platform allocator, call
free/malloc/realloc directly, without indirecting thru macros.  This
should avoid needing a nightmarish pile of #ifdef-ery if PYMALLOC_DEBUG
is changed so that pymalloc takes over all Py(Mem, Object} memory
operations (which would add useful debugging info to PyMem_xyz
allocations too).

22 years agoCorrect the descriptions of the PyObject_As*Buffer() return values.
Fred Drake [Thu, 4 Apr 2002 04:10:36 +0000 (04:10 +0000)]
Correct the descriptions of the PyObject_As*Buffer() return values.
This closes SF bug #539081.

22 years agoAs Neal pointed out, bool_print was an order of magnitude too complex.
Guido van Rossum [Thu, 4 Apr 2002 01:00:42 +0000 (01:00 +0000)]
As Neal pointed out, bool_print was an order of magnitude too complex.

22 years agoRepair the Windows build (needs to compile in the new boolobject code).
Tim Peters [Thu, 4 Apr 2002 00:02:02 +0000 (00:02 +0000)]
Repair the Windows build (needs to compile in the new boolobject code).

22 years agoOops. Here are the new files. My apologies.
Guido van Rossum [Wed, 3 Apr 2002 23:01:45 +0000 (23:01 +0000)]
Oops.  Here are the new files.  My apologies.

22 years agoAdd empty section for bool
Andrew M. Kuchling [Wed, 3 Apr 2002 22:44:47 +0000 (22:44 +0000)]
Add empty section for bool

22 years agoAdd the 'bool' type and its values 'False' and 'True', as described in
Guido van Rossum [Wed, 3 Apr 2002 22:41:51 +0000 (22:41 +0000)]
Add the 'bool' type and its values 'False' and 'True', as described in
PEP 285.  Everything described in the PEP is here, and there is even
some documentation.  I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison.  I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.

Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.

22 years agoe macresource.need() to open the W resource file in the application init
Jack Jansen [Wed, 3 Apr 2002 21:52:10 +0000 (21:52 +0000)]
e macresource.need() to open the W resource file in the application init
code (if it isn't open already).

PythonIDE still opens the resource file "manually" because it also uses
presence of the CURS resource to determine whether it needs to adjust
sys.path.

22 years agoSlight modernization.
Fred Drake [Wed, 3 Apr 2002 21:47:47 +0000 (21:47 +0000)]
Slight modernization.

22 years agoFix the names of the classmethod and staticmethod constructors as passed to
Fred Drake [Wed, 3 Apr 2002 21:42:45 +0000 (21:42 +0000)]
Fix the names of the classmethod and staticmethod constructors as passed to
PyArg_ParseTuple() as part of the format string.