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.
Added dictionary.popitem() and the improved XML modules.
Reorder the smaller items, roughly in decreasing order of visibility to
the Python coder
Finished an incomplete sentence.
Moved the unwritten sections down to the bottom.
Bumped version number and added acknowledgements
Fred Drake [Mon, 22 Jan 2001 19:06:20 +0000 (19:06 +0000)]
Change some wording to make this work with PDF generation -- using a PDF
hyperlink at the start of the paragraph confused pdflatex; it saw the
link start while still in vertical mode, which is not allowed. Including
text before the link forces horizontal mode.
Add reference to PEP 232.
Use correct flag name Py_TPFLAGS_CHECKTYPES
Mention that numeric methods can return Py_NotImplemented (NAS)
Mention optional arguments in time modules (TW)
Various minor rewrites and additional attributions
Fred Drake [Mon, 22 Jan 2001 17:50:42 +0000 (17:50 +0000)]
Remove the dollar sign from the formatting of environment variables --
too Unix-specific, and not really needed. (Already fixed the HTML
formatting, but forgot to mention it in the checkin for python.perl 1.94.)
Fred Drake [Mon, 22 Jan 2001 17:33:24 +0000 (17:33 +0000)]
Fix \seepep handling -- correct URL to the online PEP repository on SF is
now generated. (SF bug #129692.)
Patch from Anthon van der Neut <anthon@mnt.org>:
Work around the removal of content-less paired tags used for name
anchors in some places. (SF bug #116008.)
Move some class attributes from an artificial SPAN element to otherwise
"useful" elements that are being generated anyway. Added the class
"versionnote", used for \deprecated, \versionadded, \versionchanged.
Fill out various transcripts and XXX bits, thanks to the WMATA.
The only missing section is the Nested Scopes section, which has to wait
to see if a patch is actually committed. (Plus any other notable changes
that get made or backed out between now and 2.1final, of course...)
Thomas Wouters [Sun, 21 Jan 2001 23:34:12 +0000 (23:34 +0000)]
Move declaration of 'clnt_create()' NIS function to pyport.h, as it's
supposed to be declared in system include files (with a proper prototype.)
Should be moved to a platform-specific block if anyone finds out which
broken platforms need it :-)
Martin v. Löwis [Sun, 21 Jan 2001 10:18:10 +0000 (10:18 +0000)]
Merge with 1.25 of PyXML:
Participate in garbage collection if available.
Potentially decref handlers in clear_handlers.
Partially reindent.
Put synthetic frame object on the stack to support better error output.
Expose Python codecs to pyexpat.
Add new Expat 1.2 handlers and API.
Fix memory leak: release self->handlers.
Do not expect PyModule_AddObject and PyModule_AddStringConstant in 2.0b1.
Raise exception in ParseFile.
Tim Peters [Sun, 21 Jan 2001 03:40:37 +0000 (03:40 +0000)]
Bug #128475: mimetools.encode (sometimes) fails when called from a thread.
pythonrun.c: In Py_Finalize, don't reset the initialized flag until after
the exit funcs have run.
atexit.py: in _run_exitfuncs, mutate the list of pending calls in a
threadsafe way. This wasn't a contributor to bug 128475, it just burned
my eyeballs when looking at that bug.
Skip Montanaro [Sat, 20 Jan 2001 19:54:20 +0000 (19:54 +0000)]
added __all__ lists to a number of Python modules
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
Fredrik Lundh [Sat, 20 Jan 2001 11:15:25 +0000 (11:15 +0000)]
Better error message if ucnhash cannot be found (obscure attribute
errors aren't that helpful), or doesn't contain what's expected from
it. Also tweaked the test script so it compiles even if ucnhash is
missing.
Barry Warsaw [Sat, 20 Jan 2001 06:24:55 +0000 (06:24 +0000)]
Tim chastens:
Barry, that comment belongs in the code, not in the checkin msg.
The code *used* to do this correctly (as you well know, since you
& I went thru considerable pain to fix this the first time).
However, because the *reason* for the convolution wasn't recorded
in the code as a comment, somebody threw it all away the first
time it got reworked.
c-code-isn't-often-self-explanatory-ly y'rs - tim
default_3way_compare(): Stick the checkin message from 2.110 in a
comment.
Barry Warsaw [Sat, 20 Jan 2001 06:08:10 +0000 (06:08 +0000)]
default_3way_compare(): When comparing the pointers, they must be cast
to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t).
ANSI specifies that pointer compares other than == and != to
non-related structures are undefined. This quiets an Insure
portability warning.
Tim Peters [Sat, 20 Jan 2001 01:53:43 +0000 (01:53 +0000)]
When running the tests twice, stuck a "Press any key to continue ..." pause
between passes: Win9x DOS boxes are limited to 50 lines max, and the result
of the first pass scrolls off irretrievably otherwise. Also simplified
the goto-laden logic a bit.
Thomas Wouters [Fri, 19 Jan 2001 23:16:56 +0000 (23:16 +0000)]
Make the 'time' argument to the timemodule functions strftime, asctime,
ctime, gmtime and localtime optional, defaulting to 'the current time' in
all cases. Adjust docs, add news item. Also convert all argument-handling to
METH_VARARGS. Closes SF patch #103265.
Guido van Rossum [Fri, 19 Jan 2001 21:54:59 +0000 (21:54 +0000)]
A hack to augment sys.path with the build/lib.<platform> directory
created by Andrew's setup.py script, *if* we're actually running from
the build directory. (The test for that: whether the sys.path[-1]
ends in "/Modules".)
This has one disadvantage: it imports a fair amount of code from the
distutils package, just in order to be able to calculate the correct
pathname. See if I care. :-)