]> granicus.if.org Git - python/log
python
23 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.

23 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.

23 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]

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

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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 ;-)

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

23 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.

23 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).

23 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.

23 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.

23 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.

23 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.

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

23 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.

23 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.

23 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.

23 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.

23 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={...}).

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.  ;-)

23 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.

23 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.

23 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.)

23 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.

23 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.

23 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.

23 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).

23 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.

23 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

23 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.

23 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).

23 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.

23 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.

23 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).

23 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.

23 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

23 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.

23 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.

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

23 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.

23 years agoRemove direct manipulation of the module dict.
Fred Drake [Wed, 3 Apr 2002 21:39:26 +0000 (21:39 +0000)]
Remove direct manipulation of the module dict.

23 years agoGot the example program to work in MachoPython.
Jack Jansen [Wed, 3 Apr 2002 21:28:02 +0000 (21:28 +0000)]
Got the example program to work in MachoPython.

23 years agoUpdated PEP link to point to the now-canonical site.
Fred Drake [Wed, 3 Apr 2002 02:52:50 +0000 (02:52 +0000)]
Updated PEP link to point to the now-canonical site.

23 years agoUpdate the PEP URL format to point to python.org.
Fred Drake [Wed, 3 Apr 2002 02:47:14 +0000 (02:47 +0000)]
Update the PEP URL format to point to python.org.

23 years agoFold some long lines. Delete blank initial line.
Guido van Rossum [Wed, 3 Apr 2002 02:13:37 +0000 (02:13 +0000)]
Fold some long lines.  Delete blank initial line.

23 years agoFix bugs:
Mark Hammond [Wed, 3 Apr 2002 01:47:00 +0000 (01:47 +0000)]
Fix bugs:
 457466: popenx() argument mangling hangs python
 226766: popen('python -c"...."') tends to hang

Fixes argument quoting in w9xpopen.exe for Windows 9x.  w9xpopen.exe
also never attempts to display a MessageBox when not executed
interactively.

Added test_popen() test.  This test currently just executes
"python -c ..." as a child process, and checks that the expected
arguments were all recieved correctly by the child process.  This
test succeeds for me on Win9x, win2k and Linux, and I hope it does
for other popen supported platforms too :)

23 years agoConvert more METH_OLDARGS & PyArg_Parse()
Neal Norwitz [Tue, 2 Apr 2002 18:26:33 +0000 (18:26 +0000)]
Convert more METH_OLDARGS & PyArg_Parse()

Please review.

23 years agoGet rid of more PyArg_Parse & METH_OLDARGS.
Neal Norwitz [Tue, 2 Apr 2002 18:17:57 +0000 (18:17 +0000)]
Get rid of more PyArg_Parse & METH_OLDARGS.
  PyArg_Parse( "s" )  -> PyString_AsString
  PyArg_Parse( "t#" ) -> PyString_AsStringAndSize

23 years agoSF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()
Guido van Rossum [Tue, 2 Apr 2002 17:53:47 +0000 (17:53 +0000)]
SF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()
broken w/ classmethods.

Bugfix candidate.

23 years agoAdd a note warning against semicolons following PyObject_HEAD.
Fred Drake [Tue, 2 Apr 2002 15:42:46 +0000 (15:42 +0000)]
Add a note warning against semicolons following PyObject_HEAD.
Minor cleanups.

23 years agoFix for a bug in the fix for SF bug 503031. This time the OP verified
Guido van Rossum [Tue, 2 Apr 2002 14:38:16 +0000 (14:38 +0000)]
Fix for a bug in the fix for SF bug 503031.  This time the OP verified
that it works.

Bugfix candidate (this and the previous checkin, obviously).

23 years agoAdd an item
Andrew M. Kuchling [Tue, 2 Apr 2002 14:25:25 +0000 (14:25 +0000)]
Add an item

23 years agoAdd an experimental mechanism to support extending the pprint formatting.
Fred Drake [Tue, 2 Apr 2002 05:08:35 +0000 (05:08 +0000)]
Add an experimental mechanism to support extending the pprint formatting.
Partly responds to SF bug #505152.

23 years agoMake test_commands work on more systems. This removes much of the dependency
Fred Drake [Mon, 1 Apr 2002 23:56:03 +0000 (23:56 +0000)]
Make test_commands work on more systems.  This removes much of the dependency
on how a system is configured.
This closes SF bug #497160 (which has the patch) and #460613.

Bugfix candidate.

23 years agoExplain that os.spawn*() return the process handle on Windows.
Fred Drake [Mon, 1 Apr 2002 23:30:47 +0000 (23:30 +0000)]
Explain that os.spawn*() return the process handle on Windows.
Clarify that os.waitpid() on Windows takes a process handle, not a process ID.
This closes SF bug #537582.

23 years agoThere is no PyArg_ConvertTuple(); call it by the right name.
Fred Drake [Mon, 1 Apr 2002 23:12:25 +0000 (23:12 +0000)]
There is no PyArg_ConvertTuple(); call it by the right name.
This closes SF bug #537511.

23 years agoFix up the documentation of the type codes to give both the C and Python
Fred Drake [Mon, 1 Apr 2002 23:05:10 +0000 (23:05 +0000)]
Fix up the documentation of the type codes to give both the C and Python
types for each code, and give the actual C types.

Clarified the support for slice operations and note when some TypeError
exceptions are raised.

This closes SF bugs 518767 and 536469.

23 years agoChange reference to execframes to naming.
Jeremy Hylton [Mon, 1 Apr 2002 21:34:28 +0000 (21:34 +0000)]
Change reference to execframes to naming.

23 years agoRestore a minimal definition of execution frame, since other parts of
Jeremy Hylton [Mon, 1 Apr 2002 21:33:55 +0000 (21:33 +0000)]
Restore a minimal definition of execution frame, since other parts of
the manual refer to it.

XXX Not sure that it belongs in this section, or that the concept is
particularly important for writing documentation.  Perhaps references
to the frame should be removed entirely.

23 years agoUpdate programmer's note on nested functions.
Jeremy Hylton [Mon, 1 Apr 2002 21:30:15 +0000 (21:30 +0000)]
Update programmer's note on nested functions.

23 years agoReword explanation of global statement since an undeclared global is a
Jeremy Hylton [Mon, 1 Apr 2002 21:25:32 +0000 (21:25 +0000)]
Reword explanation of global statement since an undeclared global is a
free variable and is subject to those rules.

23 years agoNote the sole case in which the ban on "from ... import *" within a
Jeremy Hylton [Mon, 1 Apr 2002 21:19:44 +0000 (21:19 +0000)]
Note the sole case in which the ban on "from ... import *" within a
function is enforced.

23 years agoRemove the following restriction:
Jeremy Hylton [Mon, 1 Apr 2002 21:18:02 +0000 (21:18 +0000)]
Remove the following restriction:

    Names bound by import statements may not occur in global
    statements in the same scope.

Why not?

23 years agoNote that it is illegal to delete a cell variable.
Jeremy Hylton [Mon, 1 Apr 2002 21:15:14 +0000 (21:15 +0000)]
Note that it is illegal to delete a cell variable.

Note that deleteing an unbound local will raise a NameError.

23 years agoGiven lambda its own section, instead of burying it in boolean operators.
Jeremy Hylton [Mon, 1 Apr 2002 21:05:21 +0000 (21:05 +0000)]
Given lambda its own section, instead of burying it in boolean operators.

23 years agoUpdate / simplify Identifiers section for nested scopes.
Jeremy Hylton [Mon, 1 Apr 2002 20:52:24 +0000 (20:52 +0000)]
Update / simplify Identifiers section for nested scopes.

How do I create a cross reference to section 4.1?

23 years agoUpdate docs for nested scopes.
Jeremy Hylton [Mon, 1 Apr 2002 20:38:01 +0000 (20:38 +0000)]
Update docs for nested scopes.

Replace section 4.1 with section A.3.

The new section 4.1 is titled "Naming and binding."  It includes the
text of section A.3 augmented with some of the detailed text from the
old section 4.1.

The \dfn, \index stuff is probably wrong, but I tried.

Also update other parts of appendix A to mention that nested scopes
and generators are standard features.

23 years agoUpdate to push the docs to python.org instead of python.sf.net.
Fred Drake [Mon, 1 Apr 2002 20:15:05 +0000 (20:15 +0000)]
Update to push the docs to python.org instead of python.sf.net.

23 years agoFixed errors in two comments.
Tim Peters [Mon, 1 Apr 2002 20:12:59 +0000 (20:12 +0000)]
Fixed errors in two comments.

23 years agoCopy section on generators from the 2.2 document with a bit of rewriting
Andrew M. Kuchling [Mon, 1 Apr 2002 19:28:09 +0000 (19:28 +0000)]
Copy section on generators from the 2.2 document with a bit of rewriting
Add an item

23 years agoRestructured my pool-management overview in terms of the three
Tim Peters [Mon, 1 Apr 2002 19:23:44 +0000 (19:23 +0000)]
Restructured my pool-management overview in terms of the three
possible pool states.  I think it's much clearer now.

Added a new long overdue block-management overview comment block.

I believe the comments are in good shape now.

Added two comments about possible small optimizations (one getting rid
of runtime multiplications at the cost of a new pool_header member; the
other getting rid of runtime divisions and the pool_header capacity
member, at the cost of a static const vector of 32 uints).

23 years agoMention 2.2.1 in intro and in bug/patch counts
Andrew M. Kuchling [Mon, 1 Apr 2002 19:22:34 +0000 (19:22 +0000)]
Mention 2.2.1 in intro and in bug/patch counts
Fix two typos spotted by Joonas Paalasmaa

23 years agoFormat strings (tuples,) appropriately
Neal Norwitz [Mon, 1 Apr 2002 19:01:39 +0000 (19:01 +0000)]
Format strings (tuples,) appropriately

23 years agoUse attributes appropriately
Neal Norwitz [Mon, 1 Apr 2002 19:00:50 +0000 (19:00 +0000)]
Use attributes appropriately

23 years agoThere is no TestError, use TestFailed appropriately
Neal Norwitz [Mon, 1 Apr 2002 18:59:20 +0000 (18:59 +0000)]
There is no TestError, use TestFailed appropriately

23 years agoUpdate documentation of code objects.
Jeremy Hylton [Mon, 1 Apr 2002 18:53:36 +0000 (18:53 +0000)]
Update documentation of code objects.

Split the description of co_flags into two paragraphs.  The first
describes the flags that are used for non-future purposes, where
CO_GENERATOR was added.  The second describes __future__'s use of
co_flags and mentions the only one currently meaningful,
CO_FUTURE_DIVISION.

23 years agoMinor adjustments.
Fred Drake [Mon, 1 Apr 2002 18:49:45 +0000 (18:49 +0000)]
Minor adjustments.

23 years agoSmall fixes for description of function attributes.
Jeremy Hylton [Mon, 1 Apr 2002 17:58:39 +0000 (17:58 +0000)]
Small fixes for description of function attributes.

func_closure is a readonly attribute.
Add \ttindex{} for func_closure.
Remove discussion of func_closure specific to 2.1.

23 years agoReindent. Break long lines. Move comments before the statements.
Martin v. Löwis [Mon, 1 Apr 2002 17:40:08 +0000 (17:40 +0000)]
Reindent. Break long lines. Move comments before the statements.

23 years agoUse the PyModule_Add*() APIs instead of manipulating the module dict
Fred Drake [Mon, 1 Apr 2002 14:53:37 +0000 (14:53 +0000)]
Use the PyModule_Add*() APIs instead of manipulating the module dict
directly.

23 years agoRemove all but one use of the module dict.
Fred Drake [Mon, 1 Apr 2002 14:49:59 +0000 (14:49 +0000)]
Remove all but one use of the module dict.

23 years agoRemove unused variable and call to PyModule_GetDict().
Fred Drake [Mon, 1 Apr 2002 14:30:50 +0000 (14:30 +0000)]
Remove unused variable and call to PyModule_GetDict().

23 years agoSwitch to using METH_NOARGS where possible.
Fred Drake [Mon, 1 Apr 2002 14:28:58 +0000 (14:28 +0000)]
Switch to using METH_NOARGS where possible.
Convert to use PyModule_*() instead of manipulating the module dict directly.

23 years agoRemove UNLESS.
Martin v. Löwis [Mon, 1 Apr 2002 12:34:33 +0000 (12:34 +0000)]
Remove UNLESS.

23 years agoNew PYMALLOC_DEBUG function void _PyMalloc_DebugDumpStats(void).
Tim Peters [Mon, 1 Apr 2002 06:04:21 +0000 (06:04 +0000)]
New PYMALLOC_DEBUG function void _PyMalloc_DebugDumpStats(void).
This displays stats about the # of arenas, pools, blocks and bytes, to
stderr, both used and reserved but unused.

CAUTION:  Because PYMALLOC_DEBUG is on, the debug malloc routine adds
16 bytes to each request.  This makes each block appear two size classes
higher than it would be if PYMALLOC_DEBUG weren't on.

So far, playing with this confirms the obvious:  there's a lot of activity
in the "small dict" size class, but nothing in the core makes any use of
the 8-byte or 16-byte classes.