Andrew M. Kuchling [Fri, 29 Mar 2002 16:00:13 +0000 (16:00 +0000)]
Add two tests for string.zfill
Jack Jansen [Fri, 29 Mar 2002 14:43:50 +0000 (14:43 +0000)]
Allow .pyc files as applets as well as .py files. .py files have
priority, for safety reasons.
Jack Jansen [Fri, 29 Mar 2002 14:29:35 +0000 (14:29 +0000)]
If the file has no resource fork first check to see whether it's a
datafork-based resource file before trying to decode it as AppleSingle.
Jack Jansen [Fri, 29 Mar 2002 14:28:09 +0000 (14:28 +0000)]
Removed debug.
Jack Jansen [Fri, 29 Mar 2002 14:27:06 +0000 (14:27 +0000)]
In MachoPython print "Pythonw" in banner to distinguish from command-line
python.
Removed debug output.
Jack Jansen [Fri, 29 Mar 2002 14:18:18 +0000 (14:18 +0000)]
Added target "installunixprograms" which installs python and pythonw in
/usr/local/bin (referring to the framework-based interpreter and Python.app).
Added target symlinkmacsubtree to aid in debugging.
Jack Jansen [Fri, 29 Mar 2002 14:15:22 +0000 (14:15 +0000)]
Shell script that invokes Python.app from the command line. Called pythonw
because of similarity to the same program on Windows.
Tim Peters [Fri, 29 Mar 2002 03:29:08 +0000 (03:29 +0000)]
Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.
Neil Schemenauer [Fri, 29 Mar 2002 03:07:29 +0000 (03:07 +0000)]
Call PyObject_GC_UnTrack before putting an object on the list of trash.
Neil Schemenauer [Fri, 29 Mar 2002 03:05:54 +0000 (03:05 +0000)]
If the GC is enabled then don't use the ob_type pointer to create a list
of trash objects. Use the gc_prev pointer instead.
Neil Schemenauer [Fri, 29 Mar 2002 03:04:25 +0000 (03:04 +0000)]
Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.
Guido van Rossum [Fri, 29 Mar 2002 01:07:24 +0000 (01:07 +0000)]
News for SF #535905.
Fred Drake [Thu, 28 Mar 2002 23:46:41 +0000 (23:46 +0000)]
Mark a couple of types that had not been marked.
Fred Drake [Thu, 28 Mar 2002 23:45:22 +0000 (23:45 +0000)]
Added comments for more entries of the type structure in the example
type implementation.
Fred Drake [Thu, 28 Mar 2002 23:32:53 +0000 (23:32 +0000)]
The new files included by \verbatiminput in newtypes.tex.
Fred Drake [Thu, 28 Mar 2002 23:12:09 +0000 (23:12 +0000)]
Move some of the longer example code to external fragments, and
include them using \verbatiminput. This has the advantage that pages
can still break at reasonable places, and examples that go longer than
a page won't get cut off.
Make a few small markup adjustments for consistency.
Explain that PyObject_New() is not a C function but a polymorphic
beast that returns a pointer to the type that's passed as the first
arg.
Explain why type objects use the PyObject_VAR_HEAD.
Jeremy Hylton [Thu, 28 Mar 2002 23:01:56 +0000 (23:01 +0000)]
Fix getcomments() so that it doesn't fail with TypeErrors.
It appears that getcomments() can get called for classes defined in
C. Since these don't have source code, it can't do anything useful.
A function buried many levels deep was raising a TypeError that was
not caught.
Who knows why this broke...
Fred Drake [Thu, 28 Mar 2002 22:36:56 +0000 (22:36 +0000)]
Added index entries.
Fred Drake [Thu, 28 Mar 2002 22:28:43 +0000 (22:28 +0000)]
Extend \verbatiminput so that the typeset version provides the same appearance
as a verbatim environment. (The HTML version is already fine.)
Skip Montanaro [Thu, 28 Mar 2002 22:01:40 +0000 (22:01 +0000)]
new script - helps track down symbols exported by modules but not
mentioned in the library reference manual
Tim Peters [Thu, 28 Mar 2002 21:22:25 +0000 (21:22 +0000)]
test_trashcan: reword obscure code.
Bugfix candidate.
Tim Peters [Thu, 28 Mar 2002 21:08:30 +0000 (21:08 +0000)]
New test_traschcan() test in test_gc, which reliably provokes segfaults
under 2.0, 2.1 and 2.2.
Bugfix candidate.
Fred Drake [Thu, 28 Mar 2002 21:06:17 +0000 (21:06 +0000)]
Minor wording change.
Neil Schemenauer [Thu, 28 Mar 2002 21:06:16 +0000 (21:06 +0000)]
Add _Py_AS_GC macro. It will be used by the trashcan code on object.c.
Neil Schemenauer [Thu, 28 Mar 2002 21:05:38 +0000 (21:05 +0000)]
Add missing "void" to function.
Neil Schemenauer [Thu, 28 Mar 2002 21:04:14 +0000 (21:04 +0000)]
Add type cast.
Skip Montanaro [Thu, 28 Mar 2002 20:57:51 +0000 (20:57 +0000)]
add comment reminding people about class hierarchy in Doc/lib/libexcs.tex
Skip Montanaro [Thu, 28 Mar 2002 20:53:22 +0000 (20:53 +0000)]
add exception class hierarchy. This should probably be done differently,
but at least the content is there.
Guido van Rossum [Thu, 28 Mar 2002 20:34:59 +0000 (20:34 +0000)]
This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).
The fix makes it possible to call PyObject_GC_UnTrack() more than once
on the same object, and then move the PyObject_GC_UnTrack() call to
*before* the trashcan code is invoked.
BUGFIX CANDIDATE!
Fred Drake [Thu, 28 Mar 2002 20:19:23 +0000 (20:19 +0000)]
Allow a page break in a code longish example.
Guido van Rossum [Thu, 28 Mar 2002 20:17:52 +0000 (20:17 +0000)]
Fix an issue that was reported in but unrelated to the main problem of
SF bug 535905 (Evil Trashcan and GC interaction).
The SETLOCAL() macro should not DECREF the local variable in-place and
then store the new value; it should copy the old value to a temporary
value, then store the new value, and then DECREF the temporary value.
This is because it is possible that during the DECREF the frame is
accessed by other code (e.g. a __del__ method or gc.collect()) and the
variable would be pointing to already-freed memory.
BUGFIX CANDIDATE!
Fred Drake [Thu, 28 Mar 2002 19:34:53 +0000 (19:34 +0000)]
Add documentation on the hasfree data object.
Martin v. Löwis [Thu, 28 Mar 2002 16:26:40 +0000 (16:26 +0000)]
Reindent.
Fred Drake [Thu, 28 Mar 2002 15:49:54 +0000 (15:49 +0000)]
Add a simple test of the METH_CLASS and METH_STATIC flags for type methods.
Martin v. Löwis [Thu, 28 Mar 2002 15:45:57 +0000 (15:45 +0000)]
Patch #536117: Typo in turtle.py.
2.2.2 candidate.
Fred Drake [Thu, 28 Mar 2002 12:40:45 +0000 (12:40 +0000)]
Minor consistency adjustments.
Tim Peters [Thu, 28 Mar 2002 07:32:11 +0000 (07:32 +0000)]
PYMALLOC_DEBUG routines: The "check API family" gimmick was going nowhere
fast, and just cluttered the code. Get rid of it for now. If a compelling
case can be made for it, easy to restore it later.
Fred Drake [Thu, 28 Mar 2002 05:33:33 +0000 (05:33 +0000)]
Introduce two new flag bits that can be set in a PyMethodDef method
descriptor, as used for the tp_methods slot of a type. These new flag
bits are both optional, and mutually exclusive. Most methods will not
use either. These flags are used to create special method types which
exist in the same namespace as normal methods without having to use
tedious construction code to insert the new special method objects in
the type's tp_dict after PyType_Ready() has been called.
If METH_CLASS is specified, the method will represent a class method
like that returned by the classmethod() built-in.
If METH_STATIC is specified, the method will represent a static method
like that returned by the staticmethod() built-in.
These flags may not be used in the PyMethodDef table for modules since
these special method types are not meaningful in that case; a
ValueError will be raised if these flags are found in that context.
Fred Drake [Wed, 27 Mar 2002 20:37:04 +0000 (20:37 +0000)]
Ignore new output directory.
Martin v. Löwis [Wed, 27 Mar 2002 18:49:02 +0000 (18:49 +0000)]
Expose C library's gettext. Fixes #516412.
Martin v. Löwis [Wed, 27 Mar 2002 17:59:17 +0000 (17:59 +0000)]
Destroy and unlink deleted NoteBook panes. Fixes #516703.
2.2.2 candidate.
Skip Montanaro [Wed, 27 Mar 2002 17:29:50 +0000 (17:29 +0000)]
add seealso referring to site module doc where people can learn how to
extend sys.path using .pth files.
Martin v. Löwis [Wed, 27 Mar 2002 17:15:57 +0000 (17:15 +0000)]
Ignore widgets with unknown names in winfo_children. Fixes #518283.
2.2.2 candidate.
Neil Schemenauer [Wed, 27 Mar 2002 15:18:21 +0000 (15:18 +0000)]
Remove weakref free list. This has the side effect of fixing a memory
management bug. Also, move some duplicated code into the new_weakref
fucntion.
Skip Montanaro [Wed, 27 Mar 2002 13:42:50 +0000 (13:42 +0000)]
fix a typo in PyErr_Format table and add row for 'p' format char
closes bug 534495
Neal Norwitz [Wed, 27 Mar 2002 13:03:09 +0000 (13:03 +0000)]
Change sys_exit to use METH_VARARGS.
sys.exit() now requires 0-1 arguments. Previously 2+ arguments were allowed.
Martin v. Löwis [Wed, 27 Mar 2002 12:15:57 +0000 (12:15 +0000)]
Don't imply XPG4 constants from CODESET presence. Fixes #534153.
2.2.2 candiate.
Steven M. Gava [Wed, 27 Mar 2002 08:40:46 +0000 (08:40 +0000)]
further work on new config system;
recent files menu
Andrew M. Kuchling [Wed, 27 Mar 2002 02:29:48 +0000 (02:29 +0000)]
Fill in this document a bit, adding reminders of items that should be included
Steven M. Gava [Wed, 27 Mar 2002 02:25:44 +0000 (02:25 +0000)]
further work on new config system;
user defined help items
Steven M. Gava [Wed, 27 Mar 2002 00:51:53 +0000 (00:51 +0000)]
_finally_ tracked down and eliminated a major problem
in PyShell.py that was causing extreme headaches in
working on EditorWindow.py
Fred Drake [Tue, 26 Mar 2002 20:29:11 +0000 (20:29 +0000)]
Add the "What's New" document to the index of HTML documents.
Neil Schemenauer [Tue, 26 Mar 2002 20:28:40 +0000 (20:28 +0000)]
Implement iterator protocol.
Barry Warsaw [Tue, 26 Mar 2002 20:27:35 +0000 (20:27 +0000)]
__init__(): We'll try to be more RFC 2821 compliant by providing for a
better local_hostname default. According to RFC 2821, it is
recommended that the fqdn hostname be provided in the EHLO/HELO verb
and if that can't be calculated, to use a domain literal.
The rationale for this change is documented in SF patch #497736 which
also had privacy concerns about leaking the fqdn in the EHLO/HELO. We
decided this wasn't a big concern because no user data is leaked, and
the IP will always be leaked. The local_hostname argument is provided
for those clients that are super paranoid.
Using localhost.localdomain may break some strict smtp servers so we
decided against using it as the default.
Fred Drake [Tue, 26 Mar 2002 19:57:52 +0000 (19:57 +0000)]
The <link> to the stylesheet should include the type attribute.
Fred Drake [Tue, 26 Mar 2002 19:53:56 +0000 (19:53 +0000)]
Wire up the makefile to more fully support the "What's New" documents.
Fred Drake [Tue, 26 Mar 2002 19:18:18 +0000 (19:18 +0000)]
Wire in the "What's New" document.
Fred Drake [Tue, 26 Mar 2002 19:17:43 +0000 (19:17 +0000)]
Add a starter for the next "What's New" document.
Fred Drake [Tue, 26 Mar 2002 19:14:41 +0000 (19:14 +0000)]
Make \url to force horizontal mode.
Neal Norwitz [Tue, 26 Mar 2002 16:25:01 +0000 (16:25 +0000)]
time and socket were already imported in the module, no need to re-import
Neal Norwitz [Tue, 26 Mar 2002 16:23:28 +0000 (16:23 +0000)]
re was already imported in the module, no need to re-import
Neal Norwitz [Tue, 26 Mar 2002 16:21:52 +0000 (16:21 +0000)]
os was already imported in the module, no need to re-import
Neal Norwitz [Tue, 26 Mar 2002 16:20:26 +0000 (16:20 +0000)]
Cleanup x so it is not left in module
Neal Norwitz [Tue, 26 Mar 2002 14:52:00 +0000 (14:52 +0000)]
Missed change METH_OLDARGS to METH_NOARGS for two aliased functions
Just van Rossum [Tue, 26 Mar 2002 12:06:11 +0000 (12:06 +0000)]
Make object browser work in OSX (by rewriting the old browser
LDEF in Python). If at all possible, this should go into 2.2.1.
Skip Montanaro [Tue, 26 Mar 2002 11:39:26 +0000 (11:39 +0000)]
operate as a filter when no files or directories appear on the command line
Guido van Rossum [Tue, 26 Mar 2002 00:51:56 +0000 (00:51 +0000)]
Fix for SF 502085.
Don't die when issubclass(t, TypeType) fails.
Bugfix candidate (but I think it's too late for 2.2.1).
Neal Norwitz [Mon, 25 Mar 2002 22:23:53 +0000 (22:23 +0000)]
Remove last occurrance of PyArg_GetInt. It is deprecated,
Neal Norwitz [Mon, 25 Mar 2002 22:21:58 +0000 (22:21 +0000)]
Add a comment that PyArg_GetInt is deprecated and should not be used
Skip Montanaro [Mon, 25 Mar 2002 22:04:23 +0000 (22:04 +0000)]
make default banner match what the real interpreter displays
Skip Montanaro [Mon, 25 Mar 2002 21:44:07 +0000 (21:44 +0000)]
remove unqualified excepts - catch ImportError when trying to import
readline and get rid of string exception fallback when showing syntax
errors.
see bug 411881
Skip Montanaro [Mon, 25 Mar 2002 21:40:36 +0000 (21:40 +0000)]
eliminate unqualified except when checking for presence of LC_MESSAGES
see bug 411881
Skip Montanaro [Mon, 25 Mar 2002 21:37:54 +0000 (21:37 +0000)]
tighten up unqualified except in currentframe()
see bug 411881
Neal Norwitz [Mon, 25 Mar 2002 21:05:50 +0000 (21:05 +0000)]
Missed change METH_OLDARGS to METH_NOARGS for two aliased functions
Neal Norwitz [Mon, 25 Mar 2002 20:46:46 +0000 (20:46 +0000)]
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.
Fred Drake [Mon, 25 Mar 2002 20:22:59 +0000 (20:22 +0000)]
Document the finditer() function and method.
This closes SF bug #520904.
Explain that many of the escapes supported by string literals are also
supported by the RE compiler, and list which ones.
This closes SF bug #529923.
Tim Peters [Mon, 25 Mar 2002 19:35:58 +0000 (19:35 +0000)]
Update master Windows build-number list for 2.2.1c2.
Walter Dörwald [Mon, 25 Mar 2002 18:36:32 +0000 (18:36 +0000)]
Add tests for the iterkeys, itervalues and iteritems
methods in dict-proxy objects.
Walter Dörwald [Mon, 25 Mar 2002 17:43:22 +0000 (17:43 +0000)]
Add missing methods iterkeys, itervalues and iteritems to
dict-proxy objects.
Add real docstrings to all methods.
Fred Drake [Mon, 25 Mar 2002 16:37:56 +0000 (16:37 +0000)]
Added description of binhex.Error.
Jack Jansen [Mon, 25 Mar 2002 15:43:37 +0000 (15:43 +0000)]
Include obmalloc.c in the build.
Jack Jansen [Mon, 25 Mar 2002 15:32:01 +0000 (15:32 +0000)]
Due to interaction between the MSL C library and the GUSI I/O library I can get reads from sockets to work consistently either for unbuffered binary files or for buffered binary files, but not for both:-(
The workaround is to force socket.makefile() to disable buffering for binary files.
Fixes bug 534625. 2.2.1 candidate.
Neal Norwitz [Mon, 25 Mar 2002 14:20:09 +0000 (14:20 +0000)]
Fix SF # 532618 517704, install problems when building modules fail.
Fix whitespace on a line also.
Walter Dörwald [Mon, 25 Mar 2002 11:16:18 +0000 (11:16 +0000)]
Fix whitespace.
Tim Peters [Mon, 25 Mar 2002 06:55:57 +0000 (06:55 +0000)]
Remove bug.py. This is something I sent to Guido via email in or before
'94, demonstrating a thread bug that was later repaired via Python growing
an internal import lock. It's of no current interest, and the now-std
test_threaded_import.py is pretty much the same test.
Tim Peters [Mon, 25 Mar 2002 06:49:10 +0000 (06:49 +0000)]
I've been waiting 8 years for KSR to re-emerge from bankruptcy. If they
ever do, they can damn well #define _POSIX_THREADS their own damn selves.
Barry Warsaw [Mon, 25 Mar 2002 04:00:38 +0000 (04:00 +0000)]
SMTP.__init__(): Fixed minor typo in docstring.
Jack Jansen [Mon, 25 Mar 2002 00:32:17 +0000 (00:32 +0000)]
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.
Neil Schemenauer [Sun, 24 Mar 2002 23:11:21 +0000 (23:11 +0000)]
Quote href properly.
Jack Jansen [Sun, 24 Mar 2002 23:04:18 +0000 (23:04 +0000)]
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.
Also blacklisted some constants with definitions that were not Python-compatible.
Neil Schemenauer [Sun, 24 Mar 2002 23:02:07 +0000 (23:02 +0000)]
Remove unnecessary \b. It was causing the RE to miss the tailing
slash on strings like "http://www.python.org/ is good".
Jack Jansen [Sun, 24 Mar 2002 22:59:16 +0000 (22:59 +0000)]
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.
Neil Schemenauer [Sun, 24 Mar 2002 22:27:39 +0000 (22:27 +0000)]
Expose RLIM_INFINITY constant. Closes SF patch 489066.
Neil Schemenauer [Sun, 24 Mar 2002 22:21:48 +0000 (22:21 +0000)]
If possible, set FD_CLOEXEC flag on file descriptors opened using
TemporaryFile. This flag causes the fd to be closed on exec().
Skip Montanaro [Sun, 24 Mar 2002 20:48:26 +0000 (20:48 +0000)]
tighten up except - os.close only raises OSError
see bug 411881
Tim Peters [Sun, 24 Mar 2002 19:25:00 +0000 (19:25 +0000)]
SF bug 480215: softspace confused in nested print
This fixes the symptom, but PRINT_ITEM has no way to know what (if
anything) PyFile_WriteObject() writes unless the object being printed
is a string. When the object isn't a string, this fix retains the
guess that softspace should be set after PyFile_WriteObject().
We might want to say that it's the job of filelike-object write methods
to leave the file's softspace in the correct state. That would probably
be better -- but everyone relies on PRINT_ITEM to guess for them now.
Skip Montanaro [Sun, 24 Mar 2002 16:56:45 +0000 (16:56 +0000)]
oops - export InvalidURL in __all__
Skip Montanaro [Sun, 24 Mar 2002 16:55:57 +0000 (16:55 +0000)]
document InvalidURL exception
Skip Montanaro [Sun, 24 Mar 2002 16:54:38 +0000 (16:54 +0000)]
add test for InvalidURL
Skip Montanaro [Sun, 24 Mar 2002 16:54:16 +0000 (16:54 +0000)]
add test of InvalidURL