Guido van Rossum [Wed, 24 Jan 2001 21:44:21 +0000 (21:44 +0000)]
The array type was missing the Py_TPFLAGS_DEFAULT initializer for the
tp_flags. This will become important when I introduce
Py_TPFLAGS_HAVE_RICHCOMPARE (as I should have!).
New asynchat.py from Sam Rushing: this foregoes using the regex module
to find the prefix of strings, thus removing a warning, and simply
uses straightforward string slicing.
Neil Schemenauer [Wed, 24 Jan 2001 17:24:33 +0000 (17:24 +0000)]
- build now happens in toplevel directory, add subdir paths to filenames
- change EXE to EXTEXT, there is an autoconf macro for it
- use PROG_INSTALL macro rather than always using install-sh
- add option to disable signal module (simplifies the makefile)
- create subdirs for object files (when building out of src dir)
- don't generate subdir makefiles
- generate "boot" makefile
Neil Schemenauer [Wed, 24 Jan 2001 17:16:22 +0000 (17:16 +0000)]
Changes for flat makefile. Building of modules happens from toplevel
directory. Modify meaning of -s option to specify the Modules directory.
Add -l option to specify library source directory when building extension
modules. Perhaps these names should be switched to avoid breaking old
code. Add -c compiler option to when emitting rules to build object files.
Part of patch #102409: special cases for Cygwin:
Lib/distutils/command/build_ext.py(build_ext.finalize_options): Add
Cygwin specific code to append Python's library directory to the
extension's list of library directories.
(build_ext.get_libraries): Add Cygwin specific code to append Python's
(import) library to the extension's list of libraries.
Tim Peters [Wed, 24 Jan 2001 10:13:46 +0000 (10:13 +0000)]
test___all__ was failing on WIndows because locale.py doesn't really
know which names it exports. Didn't fix its ignorance, but patched
over the consequence.
Fredrik Lundh [Wed, 24 Jan 2001 07:59:11 +0000 (07:59 +0000)]
Move uchhash functionality into unicodedata (after the recent
crop of changes, the files are small enough to do this). Also
adds "name" and "lookup" functions to unicodedata.
Barry Warsaw [Wed, 24 Jan 2001 04:16:09 +0000 (04:16 +0000)]
__all__: removed "error", "abort", "readonly", as these are not
exportable module attributes (they're attributes on the IMAP class).
Fixed the case typo on Time2Internaldate.
Modified version of part of patch #102409 for Cygwin:
Get platform-specific modules right on Cygwin
Getting a string value for the platform has been factored out into
get_platform()
Jack Jansen [Tue, 23 Jan 2001 22:38:23 +0000 (22:38 +0000)]
Added an attribute runtimemodel, which is either "ppc" or "carbon" and is the runtime model of the current interpreter. Will have to ad another value later for real MacOSX MachO, I guess.
Jack Jansen [Tue, 23 Jan 2001 21:03:52 +0000 (21:03 +0000)]
Added a note about the memory size.
Added Matthias Neeracher and Alexandre Parenteau to the "thank you" list. This should have been done _ages_ ago for Matthias! Shame shame!!
Jack Jansen [Tue, 23 Jan 2001 20:57:52 +0000 (20:57 +0000)]
Upped the default memory size to a whopping 24Mb, which is needed to make the autotests run. Sigh. User with low-memory systems will have to adapt the setting.
Barry Warsaw [Tue, 23 Jan 2001 16:24:35 +0000 (16:24 +0000)]
A few miscellaneous helpers.
PyObject_Dump(): New function that is useful when debugging Python's C
runtime. In something like gdb it can be a pain to get some useful
information out of PyObject*'s. This function prints the str() of the
object to stderr, along with the object's refcount and hex address.
PyGC_Dump(): Similar to PyObject_Dump() but knows how to cast from the
garbage collector prefix back to the PyObject* structure.
[See Misc/gdbinit for some useful gdb hooks]
none_dealloc(): Rather than SEGV if we accidentally decref None out of
existance, we assign None's and NotImplemented's destructor slot to
this function, which just calls abort().
Barry Warsaw [Tue, 23 Jan 2001 16:08:34 +0000 (16:08 +0000)]
Leak pluggin', bug fixin' and better documentin'. Specifically,
module__doc__: Document the Warning subclass heirarchy.
make_class(): Added a "goto finally" so that if populate_methods()
fails, the return status will be -1 (failure) instead of 0 (success).
fini_exceptions(): When decref'ing the static pointers to the
exception classes, clear out their dictionaries too. This breaks a
cycle from class->dict->method->class and allows the classes with
unbound methods to be reclaimed. This plugs a large memory leak in a
common Py_Initialize()/dosomething/Py_Finalize() loop.
Eric S. Raymond [Tue, 23 Jan 2001 13:16:32 +0000 (13:16 +0000)]
Rewrite webbrowser.py to fix various bugs following Ka-Ping Yee's
complaints. The new version moves most of its initialization to
package load time; it's simpler, faster, smaller, and adds support for
Mozilla and Links. Interpretation of the BROWSER variable now works
and is documented. The open_new entry point and methods are marked
"deprecated; may be removed in 2.1".
Add introductory note about this article's draft status
Grammatical and typographic fixes from David Goodger
Expanded notes about PEP 229
Removed user-visible XXXes; they're in comments now
Guido van Rossum [Tue, 23 Jan 2001 01:52:26 +0000 (01:52 +0000)]
Fix some make errors during "make clobber" or "make distclean", caused
by weird and (hopefully) unnecessary SET_CXX and SET_DLLLIBRARY macros
that occurr at the start of Makefile.in files.
- Also removed the already-commented-out SET_CCC macro cruft.
Jeremy Hylton [Tue, 23 Jan 2001 01:51:40 +0000 (01:51 +0000)]
Add simple test of list comprehension that uses a name that isn't
otherwise used in the same code block. (Not sure this is the right
place, but there is no test_list_comprehensions.py.)
Guido van Rossum [Tue, 23 Jan 2001 01:46:06 +0000 (01:46 +0000)]
Add a new API, PyThreadState_DeleteCurrent() that combines
PyThreadState_Delete() and PyEval_ReleaseLock(). It is only defined
if WITH_THREAD is defined.