Guido van Rossum [Fri, 12 Apr 2002 15:12:47 +0000 (15:12 +0000)]
Add Raymond Hettinger, CPA.
Guido van Rossum [Fri, 12 Apr 2002 15:11:59 +0000 (15:11 +0000)]
Add Raymond Hettinger's d.pop(). See SF patch 539949.
Jack Jansen [Fri, 12 Apr 2002 13:21:49 +0000 (13:21 +0000)]
- Added support for inherent pointer types (typedefs of arrays)
- Added a debug class variable to enable parser debugging.
Jack Jansen [Fri, 12 Apr 2002 13:14:54 +0000 (13:14 +0000)]
Give type name when complaining about using input-only type for output
or v.v.
Martin v. Löwis [Fri, 12 Apr 2002 09:58:45 +0000 (09:58 +0000)]
Remove acconfig.h.
Martin v. Löwis [Fri, 12 Apr 2002 09:55:28 +0000 (09:55 +0000)]
Remove unused macros.
Martin v. Löwis [Fri, 12 Apr 2002 09:54:03 +0000 (09:54 +0000)]
Update to autoconf 2.5x.
Tim Peters [Fri, 12 Apr 2002 08:52:50 +0000 (08:52 +0000)]
_PyObject_DebugRealloc(): rewritten to let the underlying realloc do
most of the work. In particular, if the underlying realloc is able to
grow the memory block in place, great (this routine used to do a fresh
malloc + memcpy every time a block grew). BTW, I'm not so keen here on
avoiding possible quadratic-time realloc patterns as I am on making
the debug pymalloc more invisible (the more it uses memory "just like"
the underlying allocator, the better the chance that a suspected memory
corruption bug won't vanish when the debug malloc is turned on).
Tim Peters [Fri, 12 Apr 2002 07:43:07 +0000 (07:43 +0000)]
_PyObject_DebugDumpAddress(): clarify an output message.
Tim Peters [Fri, 12 Apr 2002 07:38:53 +0000 (07:38 +0000)]
PYMALLOC_{CLEAN, DEAD, FORBIDDEN}BYTE symbols: remove the PYMALLOC_
prefix. These symbols are private to the file, and the PYMALLOC_ gets
in the way (overly long code lines, comments, and error messages).
Tim Peters [Fri, 12 Apr 2002 07:22:56 +0000 (07:22 +0000)]
First stab at rationalizing the PyMem_ API. Mixing PyObject_xyz with
PyMem_{Del, DEL} doesn't work yet (compilation problems).
pyport.h: _PyMem_EXTRA is gone.
pmem.h: Repaired comments. PyMem_{Malloc, MALLOC} and
PyMem_{Realloc, REALLOC} now make the same x-platform guarantees when
asking for 0 bytes, and when passing a NULL pointer to the latter.
object.c: PyMem_{Malloc, Realloc} just call their macro versions
now, since the latter take care of the x-platform 0 and NULL stuff
by themselves now.
pypcre.c, grow_stack(): So sue me. On two lines, this called
PyMem_RESIZE to grow a "const" area. It's not legit to realloc a
const area, so the compiler warned given the new expansion of
PyMem_RESIZE. It would have gotten the same warning before if it
had used PyMem_Resize() instead; the older macro version, but not the
function version, silently cast away the constness. IMO that was a wrong
thing to do, and the docs say the macro versions of PyMem_xyz are
deprecated anyway. If somebody else is resizing const areas with the
macro spelling, they'll get a warning when they recompile now too.
Tim Peters [Fri, 12 Apr 2002 05:21:34 +0000 (05:21 +0000)]
First cut at repairing out-of-date comments; make alignment of macro defs
all the same within the #ifdef WITH_PYMALLOC block.
Neil Schemenauer [Fri, 12 Apr 2002 03:10:20 +0000 (03:10 +0000)]
Move PyObject_Malloc and PyObject_Free here from object.c. Remove
PyMalloc_ prefix and use PyObject_ instead. I'm not sure about the
debugging functions. Perhaps they should stay as PyMalloc_.
Neil Schemenauer [Fri, 12 Apr 2002 03:08:42 +0000 (03:08 +0000)]
Move PyObject_Malloc and PyObject_Free to obmalloc.c.
Neil Schemenauer [Fri, 12 Apr 2002 03:07:20 +0000 (03:07 +0000)]
Remove PyMalloc_*.
Neil Schemenauer [Fri, 12 Apr 2002 03:06:53 +0000 (03:06 +0000)]
Change signature of _PyObject_GC_Malloc to match PyObject_MALLOC.
PyObject_Del and PyObject_GC_Del can now be used as a function
designators.
Neil Schemenauer [Fri, 12 Apr 2002 03:05:52 +0000 (03:05 +0000)]
PyObject_GC_Del can now be used as a function designator.
Neil Schemenauer [Fri, 12 Apr 2002 03:05:37 +0000 (03:05 +0000)]
Remove PyMalloc_New and PyMalloc_Del.
Neil Schemenauer [Fri, 12 Apr 2002 03:05:19 +0000 (03:05 +0000)]
Remove PyMalloc_New, _PyMalloc_MALLOC, and PyMalloc_Del.
Neil Schemenauer [Fri, 12 Apr 2002 02:44:55 +0000 (02:44 +0000)]
Remove PyMalloc_New and PyMalloc_Del.
Neil Schemenauer [Fri, 12 Apr 2002 02:44:22 +0000 (02:44 +0000)]
PyObject_GC_Del can now be used as a function designator.
Neil Schemenauer [Fri, 12 Apr 2002 02:44:10 +0000 (02:44 +0000)]
PyObject_Del can now be used as a function designator.
Neil Schemenauer [Fri, 12 Apr 2002 02:43:00 +0000 (02:43 +0000)]
PyObject_GC_Del and PyObject_Del can now be used as a function
designators.
Remove PyMalloc_New.
Neil Schemenauer [Fri, 12 Apr 2002 02:41:03 +0000 (02:41 +0000)]
Allow PyObject_Del to be used as a function designator. Provide binary
compatibility function.
Make PyObject_GC_Track and PyObject_GC_UnTrack functions instead of
trivial macros wrapping functions. Provide binary compatibility
functions.
Neil Schemenauer [Fri, 12 Apr 2002 02:39:18 +0000 (02:39 +0000)]
Remove PyMalloc_* symbols. PyObject_Malloc now uses pymalloc if
it's enabled.
Neil Schemenauer [Fri, 12 Apr 2002 02:38:45 +0000 (02:38 +0000)]
Remove PyMalloc_* symbols. PyObject_Malloc now uses pymalloc if
it's enabled.
Allow PyObject_Del, PyObject_Free, and PyObject_GC_Del to be used as
function designators. Provide source compatibility macros.
Make PyObject_GC_Track and PyObject_GC_UnTrack functions instead of
trivial macros wrapping functions.
Neil Schemenauer [Fri, 12 Apr 2002 01:57:06 +0000 (01:57 +0000)]
Change the type of the tp_free from 'destructor' to 'freefunc'.
Tim Peters [Fri, 12 Apr 2002 01:20:10 +0000 (01:20 +0000)]
Removed more hair in support of future-generator stmts.
Jack Jansen [Thu, 11 Apr 2002 21:03:37 +0000 (21:03 +0000)]
Get rid of backward compatibility modules. Do this fairly early in the 2.3 cycle so we don't shoot ourselves in the foot later.
Fred Drake [Thu, 11 Apr 2002 20:58:54 +0000 (20:58 +0000)]
Clean up the "all" support for -u.
Fred Drake [Thu, 11 Apr 2002 20:57:30 +0000 (20:57 +0000)]
Guido sez to remove the deprecation warning for a year.
The deprecation is now listed in PEP 4.
Jack Jansen [Thu, 11 Apr 2002 20:56:15 +0000 (20:56 +0000)]
Got rid of obsolete defines.
Jack Jansen [Thu, 11 Apr 2002 20:56:13 +0000 (20:56 +0000)]
Got rid of obsolete appearance flag.
Jack Jansen [Thu, 11 Apr 2002 20:54:58 +0000 (20:54 +0000)]
Added boolobject.c
Guido van Rossum [Thu, 11 Apr 2002 20:54:35 +0000 (20:54 +0000)]
At CNRI's request, I'm changing the status of 1.6.1 from
not-GPL-compatible to GPL-compatible, with a footnote explaining that
RMS disagrees. I'm not going to discuss this further -- both sides
(CNRI and RMS) will argue their POV till they're blue in the face.
Jack Jansen [Thu, 11 Apr 2002 20:53:03 +0000 (20:53 +0000)]
Got rid of ifdefs for long-obsolete GUSI versions and other lurkers.
Jack Jansen [Thu, 11 Apr 2002 20:50:39 +0000 (20:50 +0000)]
These are long obsolete. Get rid of them.
Jack Jansen [Thu, 11 Apr 2002 20:48:25 +0000 (20:48 +0000)]
Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is now standard (appearance, interned strings)
Jack Jansen [Thu, 11 Apr 2002 20:46:23 +0000 (20:46 +0000)]
Got rid of ifdefs for long-obsolete GUSI versions.
Jack Jansen [Thu, 11 Apr 2002 20:41:18 +0000 (20:41 +0000)]
Get rid of USE_CACHE_ALIGNED. It has no function anymore.
Tim Peters [Thu, 11 Apr 2002 20:18:40 +0000 (20:18 +0000)]
Since xmllib is deprecated now, suppress the DeprecationWarning its test
module necessarily raises.
Tim Peters [Thu, 11 Apr 2002 20:04:12 +0000 (20:04 +0000)]
Ignore more deprecation warnings.
Tim Peters [Thu, 11 Apr 2002 19:54:11 +0000 (19:54 +0000)]
Stop sucking up xmllib -- it's deprecated.
Tim Peters [Thu, 11 Apr 2002 19:52:58 +0000 (19:52 +0000)]
I don't expect test_email_codecs to run on Windows.
Fred Drake [Thu, 11 Apr 2002 16:39:16 +0000 (16:39 +0000)]
Added the resource name "all" to enable all of the optional resource uses.
This is nice for use with "make TESTOPTS='-u all' test".
Martin v. Löwis [Thu, 11 Apr 2002 12:39:35 +0000 (12:39 +0000)]
Document __unicode__. Fixes #541245.
Martin v. Löwis [Thu, 11 Apr 2002 12:24:12 +0000 (12:24 +0000)]
Explain octal escapes. Fixes #542226.
Tim Peters [Thu, 11 Apr 2002 06:36:45 +0000 (06:36 +0000)]
SF bug 542181: Realloc behavior
The bug report pointed out a bogosity in the comment block explaining
thread safety for arena management. Repaired that comment, repaired a
couple others while I was at it, and added an assert.
_PyMalloc_DebugRealloc: If this needed to get more memory, but couldn't,
it erroneously freed the original memory. Repaired that.
This is for 2.3 only (unless we decide to backport the new pymalloc).
Mark Hammond [Thu, 11 Apr 2002 05:40:34 +0000 (05:40 +0000)]
Different .pyc icon - use "paler" colors to better differentiate it from the main .py icon. As discussed with Tim (prompted by cl.lpy posting)
Fred Drake [Thu, 11 Apr 2002 03:59:42 +0000 (03:59 +0000)]
Improve coverage of Objects/weakrefobject.c.
Andrew M. Kuchling [Wed, 10 Apr 2002 21:53:22 +0000 (21:53 +0000)]
Add a name
Andrew M. Kuchling [Wed, 10 Apr 2002 21:36:11 +0000 (21:36 +0000)]
Add deprecation warning to '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?)
Andrew M. Kuchling [Wed, 10 Apr 2002 21:15:40 +0000 (21:15 +0000)]
Remove support for importing 'pre' module
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 ;).
Marc-André Lemburg [Wed, 10 Apr 2002 20:36:13 +0000 (20:36 +0000)]
Bug fix for UTF-8 encoding bug (buffer overrun) #541828.
Fred Drake [Wed, 10 Apr 2002 17:52:52 +0000 (17:52 +0000)]
Document PyType_CheckExact(), PyType_IS_GC().
Update description of PyType_Check().
Marc-André Lemburg [Wed, 10 Apr 2002 17:18:02 +0000 (17:18 +0000)]
Added test case for UTF-8 encoding bug #541828.
Andrew M. Kuchling [Wed, 10 Apr 2002 14:54:39 +0000 (14:54 +0000)]
Use random 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
Skip Montanaro [Wed, 10 Apr 2002 04:37:09 +0000 (04:37 +0000)]
document all the valid encoding values
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.
Fred Drake [Wed, 10 Apr 2002 04:19:12 +0000 (04:19 +0000)]
Added support for \csimplemacro and csimplemacrodesc.
Neal Norwitz [Wed, 10 Apr 2002 02:04:00 +0000 (02:04 +0000)]
Add deprecation warnings for modules as documented
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.)
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.
Tim Peters [Tue, 9 Apr 2002 21:18:37 +0000 (21:18 +0000)]
Repair 2.2.1 release date.
Fred Drake [Tue, 9 Apr 2002 21:09:42 +0000 (21:09 +0000)]
Update to use the new \csimplemacro macro
Fred Drake [Tue, 9 Apr 2002 20:17:42 +0000 (20:17 +0000)]
Document the \csimplemacro macro and 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.
Neal Norwitz [Tue, 9 Apr 2002 18:15:00 +0000 (18:15 +0000)]
Update docs for bool changes by Guido around April 6
Neal Norwitz [Tue, 9 Apr 2002 18:12:58 +0000 (18:12 +0000)]
Update docstring to reflect code change to bool
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]
Fred Drake [Tue, 9 Apr 2002 14:54:26 +0000 (14:54 +0000)]
Ignore an output directory for intermediates here as well.
Fred Drake [Tue, 9 Apr 2002 14:39:10 +0000 (14:39 +0000)]
Fix typo: coverted --> converted. Reported by Francois Pinard.
Thomas Heller [Tue, 9 Apr 2002 14:16:07 +0000 (14:16 +0000)]
Remove unconditional debugging prints.
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.
Thomas Heller [Tue, 9 Apr 2002 12:50:13 +0000 (12:50 +0000)]
Fix an obvious bug.
Fred Drake [Mon, 8 Apr 2002 21:57:31 +0000 (21:57 +0000)]
Update the table of releases.
Tim Peters [Mon, 8 Apr 2002 21:36:47 +0000 (21:36 +0000)]
Update table of releases.
Martin v. Löwis [Mon, 8 Apr 2002 21:28:20 +0000 (21:28 +0000)]
Patch #512005: getrusage() returns struct-like object.
Tim Peters [Mon, 8 Apr 2002 18:47:34 +0000 (18:47 +0000)]
Change 2.1.3 release date.
Tim Peters [Mon, 8 Apr 2002 18:00:26 +0000 (18:00 +0000)]
Update 2.1.3 Windows buildno.
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.
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.
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.
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.
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.
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.
Guido van Rossum [Sun, 7 Apr 2002 06:36:23 +0000 (06:36 +0000)]
Partial introduction of bools where appropriate.
Guido van Rossum [Sun, 7 Apr 2002 06:34:38 +0000 (06:34 +0000)]
Return bools from functions named is_<whatever>().
Guido van Rossum [Sun, 7 Apr 2002 06:32:21 +0000 (06:32 +0000)]
Lock methods acquire() and locked() now return bools.
Guido van Rossum [Sun, 7 Apr 2002 06:28:00 +0000 (06:28 +0000)]
isatty() should return a bool.
Martin v. Löwis [Sat, 6 Apr 2002 10:10:49 +0000 (10:10 +0000)]
Move autoheader declarations into configure.in.
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.
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.
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.
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]
Guido van Rossum [Sat, 6 Apr 2002 00:23:25 +0000 (00:23 +0000)]
Some more news.
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.