Commit Graph

14398 Commits

Author SHA1 Message Date
Skip Montanaro b89f41efbc Fixes bug in --with-libdb. If --with-libdb was not specified (default is to
enable it), but db.h was not found, the WITH_LIBDB macros was still being
defined, resulting in compilation errors.  Also added a short explain when
bsddb support wasn't enabled (because db.h wasn't found) when the user
explicitly used --with-libdb on the configure command line.
2000-09-04 04:06:05 +00:00
Andrew M. Kuchling 2cb176f327 Correct docstring about return value when group didn't participate in match
(pointed out by /F)
2000-09-04 03:19:48 +00:00
Guido van Rossum f4d189f70b All right. More uniformity, and extra blank lines. 2000-09-04 01:27:04 +00:00
Guido van Rossum 7ca7b5ac93 Use periods, not semicolons between Copyright and All Rights Reserved. 2000-09-04 01:22:12 +00:00
Guido van Rossum 2e0d3311f7 Changes in license names by BobW. 2000-09-04 00:58:48 +00:00
Vladimir Marangozov 547936c86f Fix the char* vs. const char* mismatch for the argument of aix_loaderror() 2000-09-04 00:54:56 +00:00
Vladimir Marangozov 58e64a82ee Move down the INT_MAX logic, because HAVE_LIMITS_H was always undefined
and this breaks the AIX build with an INT_MAX redefinition error.
"config.h" is included in pgenheaders.h, so moving this down fixes the
problem.
2000-09-03 23:47:08 +00:00
Guido van Rossum 1d62f492b0 Hack the Windows code to use os.popen().
The returned file is assigned to an instance variable;
otherwise the implied close hangs for a long time.
2000-09-03 17:12:50 +00:00
Guido van Rossum ac1c818f13 Properly name and number the BEOPEN OPEN SOURCE PYTHON LICENSE
AGREEMENT VERSION 1.

trade name -> trade names.

Note: depending on community feedback, we may end up taking the dual
licensing clause out for 2.0b1, and put it back into 2.0final, if
there's no other solution for assuring GPL compatibility by then.

See my message to python-dev and license-py20.
2000-09-03 13:21:38 +00:00
Fredrik Lundh df84675f93 changed \x to consume exactly two hex digits, also for unicode
strings.  closes PEP-223.

also added \U escape (eight hex digits).
2000-09-03 11:29:49 +00:00
Fredrik Lundh 03dd010b4f updated SRE test suite (fixes PEP223 problem, shows syntax errors) 2000-09-03 10:43:16 +00:00
Tim Peters acee48628d Repair failing test_sre.py.
This was a funny one!  The test very subtly relied on 1.5.2's
behavior of treating "\x%" as "\x%", i.e. ignoring that was an
\x escape that didn't make sense.  But /F implemented PEP 223,
which causes 2.0 to raise an exception on the bad escape.
Fixed by merely making the 3 such strings of this kind into
raw strings.
2000-09-03 08:15:19 +00:00
Guido van Rossum 6ebd299cee Remove a comma from CWI's copyright notice. 2000-09-03 04:47:47 +00:00
Guido van Rossum 76ad68ae6e Change the copyright notice according to CNRI's wishes, with
BeOpen.com added to the front.

(Even if maybe we won't print this long banner at startup, the string
must still be defined for sys.copyright.)
2000-09-03 03:35:50 +00:00
Guido van Rossum 028d06938d Various edits. Most importantly, added dual licensing. Also some
changes suggested by BobW.
2000-09-03 03:13:44 +00:00
Fredrik Lundh 1fa0b895ec changed \x to consume exactly two hex digits. implements PEP-223
for 8-bit strings.
2000-09-02 20:11:27 +00:00
Fredrik Lundh 510c97ba2f return -1 for undefined groups (as implemented in 1.5.2) instead of
None (as documented) from start/end/span.  closes bug #113254
2000-09-02 16:36:57 +00:00
Guido van Rossum ff07f8c7ea Patch by Martin von Löwis to give him his umlaut, to remove Christian
Tismer's clone, and to list Hajime Saitou's real name.

Added a note that the file uses Latin-1 (as distributed).
2000-09-02 15:01:50 +00:00
Fredrik Lundh 143328ba63 -- tightened up parsing of octal numbers
-- improved the SRE test harness: don't use asserts, test a few more
   things (including more boundary conditions)
2000-09-02 11:03:34 +00:00
Tim Peters 412f246024 PyInterpreterState_New is not thread-safe, and the recent fix to _PyPclose
can cause it to get called by multiple threads simultaneously.

Ditto for PyInterpreterState_Delete.

Of the former, the docs say "The interpreter lock need not be held, but may
be held if it is necessary to serialize calls to this function".  This
kinda implies it both is and isn't thread-safe.

Of the latter, the docs merely say "The interpreter lock need not be
held.", and the clause about serializing is absent.

I expect it was *believed* these are both thread-safe, and the bit about
serializing via the global lock was meant as a permission rather than a
caution.

I also expect we've never seen a problem here because the Python core
(prior to the _PyPclose fix) only calls these functions once per run.
The Py_NewInterpreter subsystem exposed by the C API (but not used by
Python itself) also calls them, but that subsystem appears to be very
rarely used.

Whatever, they're both thread-safe now.
2000-09-02 09:16:15 +00:00
Thomas Wouters f2b332dc7e Cosmetic cleanup by Vladimir. 2000-09-02 08:34:40 +00:00
Tim Peters 17289426e2 SourceForge patch 101396, by an anonymous friend.
"sre_parse.py missing '7' in DIGITS"
2000-09-02 07:44:32 +00:00
Guido van Rossum 8586991099 REMOVED all CWI, CNRI and BeOpen copyright markings.
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Guido van Rossum bb8be93a50 Rewritten some pieces of PyNumber_InPlaceAdd() for clarity. 2000-09-01 23:27:32 +00:00
Guido van Rossum 46981de633 Updated to include all files here. 2000-09-01 23:22:12 +00:00
Guido van Rossum 752435773b Delete too. 2000-09-01 23:21:04 +00:00
Guido van Rossum 73eec6360b Deleted. Long obsolete. 2000-09-01 23:18:22 +00:00
Guido van Rossum 0fdd3dcc45 Deleted. We no longer require disclaimers on contributions. 2000-09-01 23:16:41 +00:00
Guido van Rossum 2d721e2506 Deleted; this is ancient info. 2000-09-01 23:15:38 +00:00
Guido van Rossum c13b39c798 Deleted. This is obsoleted by Tools/scripts/fixnotice.py. 2000-09-01 23:12:13 +00:00
Guido van Rossum c07d5fadac Ready to go. 2000-09-01 22:50:02 +00:00
Guido van Rossum 8ed602b6e2 Remove the 1.5.2 news. 2.0 news is still to be done. 2000-09-01 22:34:33 +00:00
Guido van Rossum 2001da4e0c Moved NEWS from 1.5.2 here. 2000-09-01 22:26:44 +00:00
Guido van Rossum 44f6e6859b Deleted. This information is now in ../LICENSE. 2000-09-01 22:17:32 +00:00
Guido van Rossum 38d45b7da9 The second argument to start_new_thread() is not a tuple, as pointed
out by Curtis Jensen on c.l.py and forwarded by Fredrik Lundh.
2000-09-01 20:47:58 +00:00
Jeremy Hylton 92f3972090 patch by Neil Schemenauer to improve (fix?) line number generation 2000-09-01 20:47:37 +00:00
Tim Peters 3620857d60 The "more" cmd varies across Windows flavors, sometimes adding stray
newlines at the start or end.  Fiddle test_popen2 and popen2._test() to
tolerate this.  Also change all "assert"s in these tests to raise
explicit exceptions, so that python -O doesn't render them useless.
Also, in case of error, make the msg display the reprs of what we
wrote and what we read, so we can tell exactly why it's failing.
2000-09-01 20:38:55 +00:00
Guido van Rossum f4a090d579 Clean up a bit. Drop -X option, update date, remove documentation
URLs, add various useful URLs.  Update address and email.  Drop PSA
and copyright.  Add license info.
2000-09-01 20:36:34 +00:00
Jeremy Hylton 2051608616 Update magic number.
Fix import support to work with import as variant of Python 2.0.  The
grammar for import changed, requiring changes in transformer and code
generator, even to handle compilation of imports with as.
2000-09-01 20:33:26 +00:00
Tim Peters 7527e00058 Install LICENSE.txt and README.txt.
In the Welcome dialog:
    Reworded reference to non-existent "Exit Setup" button.
    Removed useless "Back" button.
    Changed "push" to "click".
2000-09-01 19:59:11 +00:00
Guido van Rossum ea70b49080 Tentative license. Could still change for the 2.0b1 release and will
definitely change for the 2.0 final release.
2000-09-01 19:51:14 +00:00
Tim Peters 9a83b92c75 Guido pointed out that the "non-admin install" blurb got displayed
very late in the process when running on Windows 2000 without admim
privs.  Rearranged so that the admin check is done at the start
instead.  Added words to the end of the blurb to make it very clear
how to abort the install (wasn't obvious to me that "Cancel" was
the right thing to click).
2000-09-01 19:30:26 +00:00
Guido van Rossum 6f8f92f535 Adding new files, removing some. 2000-09-01 19:27:34 +00:00
Tim Peters 9acdd3aed8 Repaired damaged comments, and extra spaces in fatal error msgs we'd better
not ever see!
2000-09-01 19:26:36 +00:00
Guido van Rossum 8d691c8422 The usual 2000-09-01 19:25:51 +00:00
Guido van Rossum 29201d4905 Correct configure.in version. 2000-09-01 19:22:55 +00:00
Guido van Rossum 7c55404207 Move the Py_DECREF(x) after the error: label so that we don't leak x
when PyDict_SetItemString() fails.
2000-09-01 15:35:12 +00:00
Guido van Rossum 1688f378cb Rob Hooft, Moshe Zadka: converted to 4 space indents and re instead of regex. 2000-09-01 13:41:37 +00:00
Tim Peters f6f6fa237f Back off to HKCU (instead of HKLM) if user doesn't have "NT adminstrator
privileges".  Untested except on Win98SE (where Wise writes to HKLM).
2000-09-01 11:45:02 +00:00
Vladimir Marangozov 7bd25be508 Cosmetics on Py_Get/SetRecursionLimit (for the style guide) 2000-09-01 11:07:19 +00:00