python
23 years agoThomas, I don't care about unset either, but setting PYTHONHOME=
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

23 years agoRevise the Unicode section after getting comments from MAL, GvR, and others.
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.

23 years agoPatch #442512: put block indices in the right byte order on bigendian systems.
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.

23 years agoUse -Kpthread when trying to find out the size of pthread_t.
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.

23 years agoAdd a low-level API to access interpreters, for David Beazley.
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.

23 years agoPatch #418659: Fixes for UnixWare and ReliantUnix.
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.

23 years agoReplace __import__ with import as.
Martin v. Löwis [Thu, 19 Jul 2001 10:06:39 +0000 (10:06 +0000)]
Replace __import__ with import as.

23 years agoAvoid the use of 'unset', which isn't available on all platforms. Fixes SF
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.

23 years agominor tidy-ups ready for 0.8.1 alpha tarball release
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

23 years agoRemove some false statements.
Fred Drake [Thu, 19 Jul 2001 03:49:33 +0000 (03:49 +0000)]
Remove some false statements.

23 years agoRemove some false comments.
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.)

23 years agoFill out the Unicode section, somewhat uncertainly
Andrew M. Kuchling [Thu, 19 Jul 2001 01:48:08 +0000 (01:48 +0000)]
Fill out the Unicode section, somewhat uncertainly

23 years agoFinish the "Other changes" section
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

23 years agoFix a few typos
Andrew M. Kuchling [Thu, 19 Jul 2001 01:17:15 +0000 (01:17 +0000)]
Fix a few typos

23 years agoRemove note about this being a draft document.
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

23 years agoLook to the future: bump the version number.
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.

23 years ago2.2a1 is out; look to the future.
Fred Drake [Wed, 18 Jul 2001 21:06:06 +0000 (21:06 +0000)]
2.2a1 is out; look to the future.

23 years agoIgnore all .tar files in the top directory; we're about to generate
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.

23 years agoSF bug #442520: test_struct fails on SPARC.
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.

23 years agoIf the user's environment has set the BROWSER environment variable (as Gnome
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

23 years agoLots of small updates, some long overdue.
Fred Drake [Wed, 18 Jul 2001 20:01:15 +0000 (20:01 +0000)]
Lots of small updates, some long overdue.

23 years agoAdd a more substantial example startup file for the interactive shell;
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.

23 years agoMinor changes for stylistic cleanliness and consistency.
Fred Drake [Wed, 18 Jul 2001 18:39:56 +0000 (18:39 +0000)]
Minor changes for stylistic cleanliness and consistency.

23 years agoChange the command lines to use a similar "phrasing" to that used in the
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.

23 years ago"Make small changes, but carry a big diff."
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.

23 years agoAdd some symbolic names to support hyperlinked references.
Fred Drake [Wed, 18 Jul 2001 17:40:19 +0000 (17:40 +0000)]
Add some symbolic names to support hyperlinked references.

23 years agoAdd "help" to the things one is encouraged to type for more
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.)

23 years agoMade a few minor style & markup changes to the new {get,set}dlopenflags()
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.

23 years agoDeactivate definition of ss_family and ss_len. Fixes bug #440486.
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.

23 years agoPatch #412229: Add functions sys.getdlopenflags and sys.setdlopenflags.
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.

23 years agoPatch #432117: Record namespaces in the DOM tree using the DOM xmlns prefix.
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.

23 years agoIgnore the html-*.tar file that can now be generated as an intermediate.
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.

23 years agoRevise the rules for building the distribution files for the HTML format.
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.

23 years agoMirror Guido's latest changes to the license file.
Fred Drake [Tue, 17 Jul 2001 23:08:24 +0000 (23:08 +0000)]
Mirror Guido's latest changes to the license file.

23 years agoBe more specific about some of the dependencies, to avoid re-building when
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.

23 years agoDefine new markup for 5-column tables.
Fred Drake [Tue, 17 Jul 2001 23:05:57 +0000 (23:05 +0000)]
Define new markup for 5-column tables.

23 years agoRemove a couple of lines from the test that proved not to be portable to
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().

23 years agoKill another merge zombie.
Tim Peters [Tue, 17 Jul 2001 21:10:44 +0000 (21:10 +0000)]
Kill another merge zombie.

23 years agoKill another merge zombie.
Fred Drake [Tue, 17 Jul 2001 21:05:22 +0000 (21:05 +0000)]
Kill another merge zombie.

23 years agoKill a merge zombie.
Fred Drake [Tue, 17 Jul 2001 21:04:18 +0000 (21:04 +0000)]
Kill a merge zombie.

23 years agoStart of a test suite for the "os" module -- this only tests the temporary
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.

23 years agoUsed an adapted MethodGenerator to generate methods too for functions that have the...
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).

23 years agoOops, left in a debug statement. It's gone now.
Jack Jansen [Tue, 17 Jul 2001 20:44:50 +0000 (20:44 +0000)]
Oops, left in a debug statement. It's gone now.

23 years agoUpdate the availability information for os.tempnam(), os.tmpfile(), and
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().

23 years agoOn Windows, tempnam() is spelled with a leading underscore.
Fred Drake [Tue, 17 Jul 2001 20:37:36 +0000 (20:37 +0000)]
On Windows, tempnam() is spelled with a leading underscore.

23 years agoDefine the constants needed to allow the os.tempnam(), os.tmpfile(), and
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.

23 years agoA new attempt at rationalizing the "history of the software" section,
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.

23 years agoAdding what's done of the documentation for the new profiling &
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.

23 years agoUse the "st" versions of the "ast" calls in the parser module -- there is
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.

23 years agoThe syntax trees handled by this module are not "abstract," so take the
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".

23 years agoTypo repair.
Tim Peters [Tue, 17 Jul 2001 18:48:00 +0000 (18:48 +0000)]
Typo repair.

23 years agoRemove code to initialize globals that are never used.
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.

23 years agoDelete sentence fragment (noted by Fred Bremmer)
Andrew M. Kuchling [Tue, 17 Jul 2001 18:25:01 +0000 (18:25 +0000)]
Delete sentence fragment (noted by Fred Bremmer)

23 years ago- Add news about generators.
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.

23 years agoBump the release number.
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.

23 years agoAdd a really stupid warning about 'yield' used as an identifier.
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 :-).

23 years agoMake the syntax for compound command lines more portable (nmake, CygWin).
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.

23 years agoScript to re-write @FOO@-style marks with values, initializing the
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.

23 years agoUpdate the release information.
Fred Drake [Tue, 17 Jul 2001 16:28:50 +0000 (16:28 +0000)]
Update the release information.

23 years agoDeleting zombies
Guido van Rossum [Tue, 17 Jul 2001 15:45:08 +0000 (15:45 +0000)]
Deleting zombies

23 years agoNow we're picking nits: get my name right! ;-)
Fred Drake [Tue, 17 Jul 2001 14:54:07 +0000 (14:54 +0000)]
Now we're picking nits:  get my name right!  ;-)

23 years agoAdd FLD to credit list
Andrew M. Kuchling [Tue, 17 Jul 2001 14:50:31 +0000 (14:50 +0000)]
Add FLD to credit list
Correct grammatical error

23 years agoJob.__init__(): Only create the builddir directory if it will be used (by
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.

23 years agoDeleting merge zombie.
Guido van Rossum [Tue, 17 Jul 2001 13:57:17 +0000 (13:57 +0000)]
Deleting merge zombie.

23 years agoCleaned up a number of minor nits, use markup a little more consistently.
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.

23 years agoMinor rewrites to iterator and generator sections
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

23 years agoFix a couple of minor markup nits.
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!)

23 years agoINSTALLATION: Remove the coexist.patch instructions
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.

23 years agoPut this in the attic, at least for now...
Kurt B. Kaiser [Tue, 17 Jul 2001 05:01:04 +0000 (05:01 +0000)]
Put this in the attic, at least for now...

23 years agoImplement idle command interface as suggested by GvR [idle-dev] 16 July
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

23 years agoPrepare Windows installer for 2.2a1.
Tim Peters [Tue, 17 Jul 2001 04:05:43 +0000 (04:05 +0000)]
Prepare Windows installer for 2.2a1.

23 years agoAdded tests for the new yield support in the parser module.
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.)

23 years agoAdd support for yield statements.
Fred Drake [Tue, 17 Jul 2001 02:59:15 +0000 (02:59 +0000)]
Add support for yield statements.
(Should be merged with descr branch.)

23 years agoTypo in the classic mlte build line.
Jack Jansen [Mon, 16 Jul 2001 22:04:08 +0000 (22:04 +0000)]
Typo in the classic mlte build line.

23 years agoThe TNXDraw gworld argument is optional.
Jack Jansen [Mon, 16 Jul 2001 21:58:44 +0000 (21:58 +0000)]
The TNXDraw gworld argument is optional.

23 years agoIt now works under Carbon. Under Classic the scrollbars don't show
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.

23 years agoThis has never worked on Windows. Now it does. If it breaks on Unix now,
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>.

23 years agoUpdated the documentation in several respects:
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().

23 years agotest_basic(): Add a test for "person@dom.ain (User J. Person)" which
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.

23 years agoStoopid change, just to mention that the last checkin resolves SF bug
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

23 years agoFix address parsing to be RFC 2822 conformant. Specifically, dots are
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).

23 years agoFile handlers don't work on the mac, so don't pretend they do. I guess this is a...
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.

23 years agoAdd a unit test for sgmllib (needs work, but has already caught problems).
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.

23 years agoGive more useful information about a failing PyUnit-style test.
Fred Drake [Mon, 16 Jul 2001 18:51:32 +0000 (18:51 +0000)]
Give more useful information about a failing PyUnit-style test.

23 years agoRemove a duplicate test.
Fred Drake [Mon, 16 Jul 2001 18:50:29 +0000 (18:50 +0000)]
Remove a duplicate test.

23 years agoDocument doctest's generator-future hack.
Tim Peters [Mon, 16 Jul 2001 18:39:58 +0000 (18:39 +0000)]
Document doctest's generator-future hack.

23 years agoIn CDATA mode, make sure entity-reference syntax is not interpreted;
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.

23 years agojcompile(): inherit the CO_GENERATOR_ALLOWED flag from the 'base'
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.

23 years agoPyRun_StringFlags(): forgot to pass the flags on to
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.

23 years agoFix SF #441664: Python crash on del of a slice of a mmap
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.

23 years agoRevise the description of time.clock() so that it correctly describes the
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.

23 years agoFix a mismatched parenthesis in the last patch.
Guido van Rossum [Mon, 16 Jul 2001 14:46:13 +0000 (14:46 +0000)]
Fix a mismatched parenthesis in the last patch.

23 years agoUse \longprogramopt, as suggested by FLD
Andrew M. Kuchling [Mon, 16 Jul 2001 14:35:52 +0000 (14:35 +0000)]
Use \longprogramopt, as suggested by FLD

23 years ago[Bug #441527] Fixes for preprocessor support, contributed by Tarn
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

23 years agoUse \verb for configure switches, because inside \code multiple dashes
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

23 years agoWrite some entries in the "Other changes" section
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

23 years agoAdded installation instructions.
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.

23 years agoAdd a script "idles" which opens a Python Shell window.
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".

23 years agoUgly. A pile of new xxxFlags() functions, to communicate to the parser
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())

23 years agoCall out IDLE Fork in startup message.
Kurt B. Kaiser [Mon, 16 Jul 2001 05:25:12 +0000 (05:25 +0000)]
Call out IDLE Fork in startup message.