Martin v. Löwis
c45929ecb6
Move autoheader declarations into configure.in.
2002-04-06 10:10:49 +00:00
Tim Peters
87bbdd3085
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.
2002-04-06 09:14:33 +00:00
Mark Hammond
303d05d317
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
2002-04-06 03:58:41 +00:00
Tim Peters
49f26817eb
Minor improvements to the stats output dump, including adding commas to
...
the big numbers.
2002-04-06 01:45:35 +00:00
Guido van Rossum
8ace1ab53a
- 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 ]
2002-04-06 01:05:01 +00:00
Guido van Rossum
181e41ad40
Some more news.
2002-04-06 00:23:25 +00:00
Fred Drake
68304ccce3
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 .
2002-04-05 23:01:14 +00:00
Guido van Rossum
6b8ab74c8a
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.
2002-04-05 22:04:18 +00:00
Guido van Rossum
d1bfe5e5fd
Add tests for binary pickles.
2002-04-05 20:57:02 +00:00
Fred Drake
9651198db4
Remove weird spacing in typeset version of the chapter head.
2002-04-05 19:54:19 +00:00
Guido van Rossum
e276339cea
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.
2002-04-05 19:30:08 +00:00
Fred Drake
d15a0a05d3
Fix bug in command line handling, noted by Fredrik Lundh.
2002-04-05 18:09:22 +00:00
Fred Drake
e03e1fe5cc
Add support for the "Aesop Meta Tag". Not widely used, but not a bad idea,
...
either.
2002-04-05 17:34:50 +00:00
Guido van Rossum
cc8fe0407a
Inherit tp_new and tp_is_gc.
...
Bugfix candidate.
2002-04-05 17:10:16 +00:00
Martin v. Löwis
2d7e264762
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
2002-04-05 16:50:53 +00:00
Marc-André Lemburg
4179a01bb7
Comment about UTF-16 changes.
2002-04-05 12:15:05 +00:00
Marc-André Lemburg
3ccb09cba3
Fix for bug #222395 : UTF-16 et al. don't handle .readline().
...
They now raise an NotImplementedError to hint to the truth ;-)
2002-04-05 12:12:00 +00:00
Tim Peters
ffdd22f1af
Repair an incomprehensible comment.
2002-04-05 06:24:54 +00:00
Tim Peters
16bcb6b1af
_PyMalloc_DebugDumpStats(): vastly improved the output, and it now
...
accounts for every byte.
2002-04-05 05:45:31 +00:00
Tim Peters
e70ddf3a99
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).
2002-04-05 04:32:29 +00:00
Neal Norwitz
d3dab2b192
Update doc to reflect Tim's changes to bool.
2002-04-05 02:21:09 +00:00
Guido van Rossum
c334df5727
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.
2002-04-04 23:44:47 +00:00
Tim Peters
a863270f04
Revert 0/1 -> False/True change; I didn't intend to muck w/ distutils.
2002-04-04 23:17:31 +00:00
Guido van Rossum
72118e5bc7
Fix a typo in Tim's fix.
2002-04-04 23:03:47 +00:00
Fred Drake
a8e5d432a5
Minor style change.
2002-04-04 22:56:57 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Tim Peters
2f486b7fa6
Record Windows build number for 2.2.1 final.
2002-04-04 21:49:08 +00:00
Fred Drake
9b3e2ca74d
Add support for \textgreater, \textless.
...
Updated productionlist environment.
2002-04-04 21:39:42 +00:00
Jeremy Hylton
f32e459125
Replace use of apply() with extended call syntax.
2002-04-04 21:02:24 +00:00
Fred Drake
a2c2595024
Add a version annotation regarding the urlopen(proxies={...}).
2002-04-04 20:58:02 +00:00
Fred Drake
df6eca7eb7
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 .
2002-04-04 20:41:34 +00:00
Fred Drake
5ca3a08cc0
The rest of the documentation for manual proxy configuration for a basic
...
urlopen().
This is part of SF patch #523415 .
2002-04-04 20:34:36 +00:00
Fred Drake
d21670328c
Documentation for manual proxy configuration, by Andy Gimblett.
...
This closes SF patch #523415 .
2002-04-04 20:09:50 +00:00
Tim Peters
3318792e5f
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.
2002-04-04 20:02:04 +00:00
Fred Drake
fed7e85791
Add note about changes in xml.sax.expatreader.
2002-04-04 19:36:15 +00:00
Fred Drake
da204daeaa
Not sure why the regression test missed this, but the PyXML tests caught it.
...
We should get attributes from the right object.
2002-04-04 19:12:31 +00:00
Fred Drake
e13602ee49
Mark the notice about the new development version of the docs as not needing
...
to be archived. Most of these are pretty bland. ;-)
2002-04-04 18:06:06 +00:00
Fred Drake
012c81fc97
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 .
2002-04-04 17:57:08 +00:00
Guido van Rossum
2e1c09c1fd
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.
2002-04-04 17:52:50 +00:00
Guido van Rossum
bfc2e5ee8e
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.)
2002-04-04 17:50:54 +00:00
Guido van Rossum
065fa4142a
Add test case for SF bug 534347.
2002-04-04 16:27:04 +00:00
Guido van Rossum
55474766f0
Fix by Greg Chapman from SF bug 534347: Potential AV in vgetargskeywords.
...
Bugfix candidate.
2002-04-04 16:22:30 +00:00
Marc-André Lemburg
4626009493
Added note about updated freeze.py Tool.
2002-04-04 16:17:11 +00:00
Marc-André Lemburg
64b4f2770e
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).
2002-04-04 16:15:41 +00:00
Guido van Rossum
47834463d0
Add a note about bool.
2002-04-04 15:21:33 +00:00
Neal Norwitz
ce5df49957
SF 539024, Fix broken link to numpy
2002-04-04 14:02:45 +00:00
Tim Peters
b7265dbe3e
_PyMalloc_Realloc(): removed a now-pointless cast.
2002-04-04 05:08:31 +00:00
Tim Peters
84c1b97467
_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).
2002-04-04 04:44:32 +00:00
Fred Drake
243ea71669
Correct the descriptions of the PyObject_As*Buffer() return values.
...
This closes SF bug #539081 .
2002-04-04 04:10:36 +00:00
Guido van Rossum
645a22e007
As Neal pointed out, bool_print was an order of magnitude too complex.
2002-04-04 01:00:42 +00:00