Guido van Rossum [Thu, 19 Jul 2001 15:17:52 +0000 (15:17 +0000)]
Thomas, I don't care about unset either, but setting PYTHONHOME=
doesn't work -- it actually prevents the extensions from being built
properly. So I'm changing the "sharedmods" target to what I presume
it was before:
PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py build
Andrew M. Kuchling [Thu, 19 Jul 2001 14:59:53 +0000 (14:59 +0000)]
Revise the Unicode section after getting comments from MAL, GvR, and others.
Add new low-level API for interpreter introspection
Bump version number.
Martin v. Löwis [Thu, 19 Jul 2001 14:26:10 +0000 (14:26 +0000)]
Patch #442512: put block indices in the right byte order on bigendian systems.
Martin v. Löwis [Thu, 19 Jul 2001 14:21:10 +0000 (14:21 +0000)]
Use -Kpthread when trying to find out the size of pthread_t.
Guido van Rossum [Thu, 19 Jul 2001 12:19:27 +0000 (12:19 +0000)]
Add a low-level API to access interpreters, for David Beazley.
SF patch #436376.
Martin v. Löwis [Thu, 19 Jul 2001 11:00:41 +0000 (11:00 +0000)]
Patch #418659: Fixes for UnixWare and ReliantUnix.
back-out 1.215 of configure.in and 1.34 of Makefile.pre.in
Check for -Kpthread compiler support, and use this as the sole option
for MT if available.
Martin v. Löwis [Thu, 19 Jul 2001 10:06:39 +0000 (10:06 +0000)]
Replace __import__ with import as.
Thomas Wouters [Thu, 19 Jul 2001 09:34:09 +0000 (09:34 +0000)]
Avoid the use of 'unset', which isn't available on all platforms. Fixes SF
bug #442627.
Steven M. Gava [Thu, 19 Jul 2001 04:49:13 +0000 (04:49 +0000)]
minor tidy-ups ready for 0.8.1 alpha tarball release
Fred Drake [Thu, 19 Jul 2001 03:49:33 +0000 (03:49 +0000)]
Remove some false statements.
Fred Drake [Thu, 19 Jul 2001 03:46:26 +0000 (03:46 +0000)]
Remove some false comments.
Reorganize so the initialization sequences does not bite us in the foot.
(There is no good reason to discard classes that clients may want to
subclass.)
Andrew M. Kuchling [Thu, 19 Jul 2001 01:48:08 +0000 (01:48 +0000)]
Fill out the Unicode section, somewhat uncertainly
Andrew M. Kuchling [Thu, 19 Jul 2001 01:19:59 +0000 (01:19 +0000)]
Finish the "Other changes" section
Bump version number
Insert a few blank lines here and there
Andrew M. Kuchling [Thu, 19 Jul 2001 01:17:15 +0000 (01:17 +0000)]
Fix a few typos
Andrew M. Kuchling [Thu, 19 Jul 2001 00:29:48 +0000 (00:29 +0000)]
Remove note about this being a draft document.
Note the actual date of 2.1's release
Fred Drake [Wed, 18 Jul 2001 21:17:29 +0000 (21:17 +0000)]
Look to the future: bump the version number.
Do more to ensure we don't do any more formatting than we need to.
Use separate targets for the distribution packages for paper-based and
non-paper-based formats; this avoids some extra packaging when a complete
distribution is being built with both paper sizes.
Fred Drake [Wed, 18 Jul 2001 21:06:06 +0000 (21:06 +0000)]
2.2a1 is out; look to the future.
Fred Drake [Wed, 18 Jul 2001 21:04:35 +0000 (21:04 +0000)]
Ignore all .tar files in the top directory; we're about to generate
more of them.
Tim Peters [Wed, 18 Jul 2001 20:47:31 +0000 (20:47 +0000)]
SF bug #442520: test_struct fails on SPARC.
The ob_sval member of a string object isn't necessarily aligned to better
than a native long, so the new "q" and "Q" struct codes can't get away w/
casting tricks on platforms where LONG_LONG requires stricter-than-long
alignment. After I thought of a few elaborate workarounds, Guido bashed
me over the head with the obvious memcpy approach, herewith implemented.
Skip Montanaro [Wed, 18 Jul 2001 20:03:32 +0000 (20:03 +0000)]
If the user's environment has set the BROWSER environment variable (as Gnome
seems to do), the user may not be aware of its contents. Attempt to add any
to _browsers.
closes bug #429136
Fred Drake [Wed, 18 Jul 2001 20:01:15 +0000 (20:01 +0000)]
Lots of small updates, some long overdue.
Fred Drake [Wed, 18 Jul 2001 19:21:12 +0000 (19:21 +0000)]
Add a more substantial example startup file for the interactive shell;
sample startup script provided by Itamar Shtull-Trauring.
This closes SF patch #410890.
Add some logical markup where it was missing.
Fred Drake [Wed, 18 Jul 2001 18:39:56 +0000 (18:39 +0000)]
Minor changes for stylistic cleanliness and consistency.
Fred Drake [Wed, 18 Jul 2001 18:32:38 +0000 (18:32 +0000)]
Change the command lines to use a similar "phrasing" to that used in the
other documentation makefiles. This is probably not sufficient to run
the conversion on Windows, but goes at least part way.
Fred Drake [Wed, 18 Jul 2001 17:52:58 +0000 (17:52 +0000)]
"Make small changes, but carry a big diff."
Minor local consistency adjustments.
A couple of small tweaks to the setdlopenflags() description.
For setprofile() and settrace(), convert some references to become
hyperlinks in the HTML version.
Fred Drake [Wed, 18 Jul 2001 17:40:19 +0000 (17:40 +0000)]
Add some symbolic names to support hyperlinked references.
Guido van Rossum [Wed, 18 Jul 2001 16:59:46 +0000 (16:59 +0000)]
Add "help" to the things one is encouraged to type for more
information. (I found this idea in the ActivePython 2.1 diffs.)
Fred Drake [Wed, 18 Jul 2001 16:35:05 +0000 (16:35 +0000)]
Made a few minor style & markup changes to the new {get,set}dlopenflags()
descriptions; added availability notes.
Martin v. Löwis [Wed, 18 Jul 2001 16:24:30 +0000 (16:24 +0000)]
Deactivate definition of ss_family and ss_len. Fixes bug #440486.
Martin v. Löwis [Wed, 18 Jul 2001 16:17:16 +0000 (16:17 +0000)]
Patch #412229: Add functions sys.getdlopenflags and sys.setdlopenflags.
Add dlopenflags to PyInterpreterState, and use it in dlopen calls.
Martin v. Löwis [Wed, 18 Jul 2001 15:30:25 +0000 (15:30 +0000)]
Patch #432117: Record namespaces in the DOM tree using the DOM xmlns prefix.
Fred Drake [Tue, 17 Jul 2001 23:36:31 +0000 (23:36 +0000)]
Ignore the html-*.tar file that can now be generated as an intermediate.
Fred Drake [Tue, 17 Jul 2001 23:35:46 +0000 (23:35 +0000)]
Revise the rules for building the distribution files for the HTML format.
These work again.
Fred Drake [Tue, 17 Jul 2001 23:08:24 +0000 (23:08 +0000)]
Mirror Guido's latest changes to the license file.
Fred Drake [Tue, 17 Jul 2001 23:07:03 +0000 (23:07 +0000)]
Be more specific about some of the dependencies, to avoid re-building when
some of the mostly-general files get changed.
Fred Drake [Tue, 17 Jul 2001 23:05:57 +0000 (23:05 +0000)]
Define new markup for 5-column tables.
Fred Drake [Tue, 17 Jul 2001 21:56:01 +0000 (21:56 +0000)]
Remove a couple of lines from the test that proved not to be portable to
all platforms that offer tempnam().
Tim Peters [Tue, 17 Jul 2001 21:10:44 +0000 (21:10 +0000)]
Kill another merge zombie.
Fred Drake [Tue, 17 Jul 2001 21:05:22 +0000 (21:05 +0000)]
Kill another merge zombie.
Fred Drake [Tue, 17 Jul 2001 21:04:18 +0000 (21:04 +0000)]
Kill a merge zombie.
Fred Drake [Tue, 17 Jul 2001 20:52:51 +0000 (20:52 +0000)]
Start of a test suite for the "os" module -- this only tests the temporary
file management functions that have just been made available on more
platforms.
Jack Jansen [Tue, 17 Jul 2001 20:47:13 +0000 (20:47 +0000)]
Used an adapted MethodGenerator to generate methods too for functions that have the object as the second arg after a first CFAllocatorRef arg (which we pass as NULL always anyway).
Jack Jansen [Tue, 17 Jul 2001 20:44:50 +0000 (20:44 +0000)]
Oops, left in a debug statement. It's gone now.
Fred Drake [Tue, 17 Jul 2001 20:39:18 +0000 (20:39 +0000)]
Update the availability information for os.tempnam(), os.tmpfile(), and
os.tmpnam().
Fred Drake [Tue, 17 Jul 2001 20:37:36 +0000 (20:37 +0000)]
On Windows, tempnam() is spelled with a leading underscore.
Fred Drake [Tue, 17 Jul 2001 20:35:59 +0000 (20:35 +0000)]
Define the constants needed to allow the os.tempnam(), os.tmpfile(), and
os.tmpnam() functions to be made available.
This is part of SF patch #435492.
Guido van Rossum [Tue, 17 Jul 2001 20:14:06 +0000 (20:14 +0000)]
A new attempt at rationalizing the "history of the software" section,
with a table clarifying which releases are GPL-compatible.
Also unified the headings for the various licenses.
Fred Drake [Tue, 17 Jul 2001 19:48:30 +0000 (19:48 +0000)]
Adding what's done of the documentation for the new profiling &
tracing interface. Incomplete, but better to check it in since I've
been including it in my updates.
Fred Drake [Tue, 17 Jul 2001 19:33:25 +0000 (19:33 +0000)]
Use the "st" versions of the "ast" calls in the parser module -- there is
no reason to pretend the syntax trees we're dealing with are abstract.
Fred Drake [Tue, 17 Jul 2001 19:32:05 +0000 (19:32 +0000)]
The syntax trees handled by this module are not "abstract," so take the
"A" out of the internal abbreviations. For published functions with
"ast" in their names, make alternate offerings using just "st".
Tim Peters [Tue, 17 Jul 2001 18:48:00 +0000 (18:48 +0000)]
Typo repair.
Fred Drake [Tue, 17 Jul 2001 18:34:03 +0000 (18:34 +0000)]
Remove code to initialize globals that are never used.
Add some casts to quiet warnings from an unspecified non-GCC compiler.
This closes SF patch #436258.
Andrew M. Kuchling [Tue, 17 Jul 2001 18:25:01 +0000 (18:25 +0000)]
Delete sentence fragment (noted by Fred Bremmer)
Guido van Rossum [Tue, 17 Jul 2001 17:22:32 +0000 (17:22 +0000)]
- Add news about generators.
- Change header to 2.2a1.
- Add separator between 2.2 and 2.1 news.
Fred Drake [Tue, 17 Jul 2001 16:53:19 +0000 (16:53 +0000)]
Bump the release number.
Make the syntax of compound command lines more portable (nmake, CygWin).
These changes are an adaptation of SF patch #429611.
Use the new tools/rewrite.py instead of grep/date/sed to transform
html/index.html.in into html/index.html; this is required for portability.
Guido van Rossum [Tue, 17 Jul 2001 16:53:11 +0000 (16:53 +0000)]
Add a really stupid warning about 'yield' used as an identifier.
This is really stupid because it cannot be suppressed or altered using
the warning framework; that's because the warning framework is built
on Python interpreter internals, and the parser generator doesn't have
access to any of those (you cannot use anything of type PyObject * in
the parser).
But it's better than nothing, and implementing a proper check for this
appears to require modifying compile.c in a dozen places, for which I
don't have the stamina today. I promise we'll do better in 2.2a2.
At least it tells you the filename and line number (unlike the first
hack I considered :-).
Fred Drake [Tue, 17 Jul 2001 16:48:55 +0000 (16:48 +0000)]
Make the syntax for compound command lines more portable (nmake, CygWin).
This is probably not sufficient by itself for the info generation, and is
being done mostly to keep the style consistent with additional patches
that will be applied to Doc/Makefile.
Fred Drake [Tue, 17 Jul 2001 16:46:14 +0000 (16:46 +0000)]
Script to re-write @FOO@-style marks with values, initializing the
replacement for @DATE@ from a TeX file containing a \date{...} mark
(such as texinputs/boilerplate.tex).
This will be used to re-write the html/index.html.in file instead of
a combination of grep, date, and sed -- this is more portable to non-Unix
platforms.
This solves part of the problem reported in SF patch #429611, but does
not use the suggested patch.
Fred Drake [Tue, 17 Jul 2001 16:28:50 +0000 (16:28 +0000)]
Update the release information.
Guido van Rossum [Tue, 17 Jul 2001 15:45:08 +0000 (15:45 +0000)]
Deleting zombies
Fred Drake [Tue, 17 Jul 2001 14:54:07 +0000 (14:54 +0000)]
Now we're picking nits: get my name right! ;-)
Andrew M. Kuchling [Tue, 17 Jul 2001 14:50:31 +0000 (14:50 +0000)]
Add FLD to credit list
Correct grammatical error
Fred Drake [Tue, 17 Jul 2001 14:46:09 +0000 (14:46 +0000)]
Job.__init__(): Only create the builddir directory if it will be used (by
building the HTML or text documentation). There is no need to create
it for other formats.
Job.build_html(): The builddir parameter is always passed in, so it need
not be optional.
Guido van Rossum [Tue, 17 Jul 2001 13:57:17 +0000 (13:57 +0000)]
Deleting merge zombie.
Fred Drake [Tue, 17 Jul 2001 13:55:33 +0000 (13:55 +0000)]
Cleaned up a number of minor nits, use markup a little more consistently.
Andrew M. Kuchling [Tue, 17 Jul 2001 12:48:48 +0000 (12:48 +0000)]
Minor rewrites to iterator and generator sections
Credit both Neil and Tim for generators
Fix indentation of a few paragraphs
Fred Drake [Tue, 17 Jul 2001 05:17:58 +0000 (05:17 +0000)]
Fix a couple of minor markup nits.
Footnotes should be added *after* punctuation, not before.
(Yes, this should be merged with the descr branch. Sorry, Tim!)
Kurt B. Kaiser [Tue, 17 Jul 2001 05:12:42 +0000 (05:12 +0000)]
INSTALLATION: Remove the coexist.patch instructions
****************
setup.py:
Remove the idles script, add some words on IDLE Fork to the
long_description, and clean up some line spacing.
Kurt B. Kaiser [Tue, 17 Jul 2001 05:01:04 +0000 (05:01 +0000)]
Put this in the attic, at least for now...
Kurt B. Kaiser [Tue, 17 Jul 2001 04:59:01 +0000 (04:59 +0000)]
Implement idle command interface as suggested by GvR [idle-dev] 16 July
****************
PyShell: Added functionality:
usage: idle.py [-c command] [-d] [-i] [-r script] [-s] [-t title] [arg] ...
idle file(s) (without options) edit the file(s)
-c cmd run the command in a shell
-d enable the debugger
-i open an interactive shell
-i file(s) open a shell and also an editor window for each file
-r script run a file as a script in a shell
-s run $IDLESTARTUP or $PYTHONSTARTUP before anything else
-t title set title of shell window
Remaining arguments are applied to the command (-c) or script (-r).
******************
idles: Removed the idles script, not needed
******************
idle: Removed the IdleConf references, not required anymore
Tim Peters [Tue, 17 Jul 2001 04:05:43 +0000 (04:05 +0000)]
Prepare Windows installer for 2.2a1.
Fred Drake [Tue, 17 Jul 2001 03:01:29 +0000 (03:01 +0000)]
Added tests for the new yield support in the parser module.
(Should be merged with descr branch.)
Fred Drake [Tue, 17 Jul 2001 02:59:15 +0000 (02:59 +0000)]
Add support for yield statements.
(Should be merged with descr branch.)
Jack Jansen [Mon, 16 Jul 2001 22:04:08 +0000 (22:04 +0000)]
Typo in the classic mlte build line.
Jack Jansen [Mon, 16 Jul 2001 21:58:44 +0000 (21:58 +0000)]
The TNXDraw gworld argument is optional.
Jack Jansen [Mon, 16 Jul 2001 21:57:50 +0000 (21:57 +0000)]
It now works under Carbon. Under Classic the scrollbars don't show
up, for reasons unknown.
Tim Peters [Mon, 16 Jul 2001 20:49:49 +0000 (20:49 +0000)]
This has never worked on Windows. Now it does. If it breaks on Unix now,
great, it's your turn to watch it fail for months <0.9 wink>.
Barry Warsaw [Mon, 16 Jul 2001 20:47:58 +0000 (20:47 +0000)]
Updated the documentation in several respects:
- This module, despite its name, now should conform to RFC 2822, the
update to RFC 822.
- This module doesn't just represent "email headers", but entire email
messages.
- Added documentation for other useful public functions such as
quote(), unquote(), praseaddr(), and dump_address_pair().
Barry Warsaw [Mon, 16 Jul 2001 20:44:16 +0000 (20:44 +0000)]
test_basic(): Add a test for "person@dom.ain (User J. Person)" which
was already correctly parsed (contrary to a comment in Mailman).
test_rfc2822_phrases(): RFC 2822 now requires that we allow `.' in
phrases, which means we must accept dots in unquoted realname parts.
Add a test to check the change in rfc822.py 1.58.
Barry Warsaw [Mon, 16 Jul 2001 20:41:40 +0000 (20:41 +0000)]
Stoopid change, just to mention that the last checkin resolves SF bug
#437395
Barry Warsaw [Mon, 16 Jul 2001 20:40:35 +0000 (20:40 +0000)]
Fix address parsing to be RFC 2822 conformant. Specifically, dots are
now allowed in unquoted RealName areas (technically, they are defined
as "obsolete syntax" we MUST accept in phrases, as part of the
obs-phrase production). Thus, parsing
To: User J. Person <person@dom.ain>
correctly returns "User J. Person" as the RealName.
AddrlistClass.__init__(): Add definition of self.phraseends which is
just self.atomends with `.' removed.
getatom(): Add an optional argument `atomends' which, if None (the
default) means use self.atomends.
getphraselist(): Pass self.phraseends to getatom() and break out of
the loop only when the current character is in phraseends instead of
atomends. This allows dots to continue to serve as atom delimiters in
all contexts except phrases.
Also, loads of docstring updates to document RFC 2822 conformance
(sorry, this should have been two separate patches).
Jack Jansen [Mon, 16 Jul 2001 19:32:52 +0000 (19:32 +0000)]
File handlers don't work on the mac, so don't pretend they do. I guess this is a 2.1.1 candidate, if it isn't too late for that.
Fred Drake [Mon, 16 Jul 2001 18:52:40 +0000 (18:52 +0000)]
Add a unit test for sgmllib (needs work, but has already caught problems).
Based on the test for the HTMLParser module.
Fred Drake [Mon, 16 Jul 2001 18:51:32 +0000 (18:51 +0000)]
Give more useful information about a failing PyUnit-style test.
Fred Drake [Mon, 16 Jul 2001 18:50:29 +0000 (18:50 +0000)]
Remove a duplicate test.
Tim Peters [Mon, 16 Jul 2001 18:39:58 +0000 (18:39 +0000)]
Document doctest's generator-future hack.
Fred Drake [Mon, 16 Jul 2001 18:30:35 +0000 (18:30 +0000)]
In CDATA mode, make sure entity-reference syntax is not interpreted;
entity references are not allowed in that mode.
Do a better job of scanning <!DOCTYPE ...> declarations; based on the
code in HTMLParser.py.
Guido van Rossum [Mon, 16 Jul 2001 16:53:08 +0000 (16:53 +0000)]
jcompile(): inherit the CO_GENERATOR_ALLOWED flag from the 'base'
compiling struct.
Guido van Rossum [Mon, 16 Jul 2001 16:51:33 +0000 (16:51 +0000)]
PyRun_StringFlags(): forgot to pass the flags on to
PyParser_SimpleParseString(). Now calls
PyParser_SimpleParseStringFlags() with the correct flag.
Thomas Wouters [Mon, 16 Jul 2001 15:47:36 +0000 (15:47 +0000)]
Fix SF #441664: Python crash on del of a slice of a mmap
Check for slice/item deletion, which calls slice/item assignment with a NULL
value, and raise a TypeError instead of coredumping. Bugreport and suggested
fix by Alex Martelli.
Fred Drake [Mon, 16 Jul 2001 15:40:57 +0000 (15:40 +0000)]
Revise the description of time.clock() so that it correctly describes the
Windows version of the function as well as the Unix flavor.
This fixes SF bug #441357.
Guido van Rossum [Mon, 16 Jul 2001 14:46:13 +0000 (14:46 +0000)]
Fix a mismatched parenthesis in the last patch.
Andrew M. Kuchling [Mon, 16 Jul 2001 14:35:52 +0000 (14:35 +0000)]
Use \longprogramopt, as suggested by FLD
Andrew M. Kuchling [Mon, 16 Jul 2001 14:19:20 +0000 (14:19 +0000)]
[Bug #441527] Fixes for preprocessor support, contributed by Tarn
Weisner Burton
Andrew M. Kuchling [Mon, 16 Jul 2001 13:45:31 +0000 (13:45 +0000)]
Use \verb for configure switches, because inside \code multiple dashes
are merged to a single hyphen.
Delete forgotten CVS conflict marker
Andrew M. Kuchling [Mon, 16 Jul 2001 13:39:08 +0000 (13:39 +0000)]
Write some entries in the "Other changes" section
Write description of .encode()/.decode for the Unicode section
Bump version number
Kurt B. Kaiser [Mon, 16 Jul 2001 07:08:20 +0000 (07:08 +0000)]
Added installation instructions.
Added a patch which modifies idlefork so that it can co-exist with
"official" IDLE in the site-packages directory. This patch is not
necessary if only idlefork IDLE is installed. See INSTALLATION for further
details.
Kurt B. Kaiser [Mon, 16 Jul 2001 05:50:45 +0000 (05:50 +0000)]
Add a script "idles" which opens a Python Shell window.
The default behaviour of idlefork idle is to open an editor window instead
of a shell. Complex expressions may be run in a fresh environment by
selecting "run". There are times, however, when a shell is desired.
Though one can be started by "idle -t 'foo'", this script is more
convenient. In addition, a shell and an editor window can be started
in parallel by "idles -e foo.py".
Tim Peters [Mon, 16 Jul 2001 05:37:24 +0000 (05:37 +0000)]
Ugly. A pile of new xxxFlags() functions, to communicate to the parser
that 'yield' is a keyword. This doesn't help test_generators at all! I
don't know why not. These things do work now (and didn't before this
patch):
1. "from __future__ import generators" now works in a native shell.
2. Similarly "python -i xxx.py" now has generators enabled in the
shell if xxx.py had them enabled.
3. This program (which was my doctest proxy) works fine:
from __future__ import generators
source = """\
def f():
yield 1
"""
exec compile(source, "", "single") in globals()
print type(f())
Kurt B. Kaiser [Mon, 16 Jul 2001 05:25:12 +0000 (05:25 +0000)]
Call out IDLE Fork in startup message.