Marc-André Lemburg [Tue, 4 Jul 2000 14:17:33 +0000 (14:17 +0000)]
Fixed symbol search for defining NSIG. It now also checks _NSIG
which some C libs define (e.g. glibc).
Added a fallback default value for NSIG which hopefully provides
enough room for signal slots.
Marc-André Lemburg [Tue, 4 Jul 2000 09:51:07 +0000 (09:51 +0000)]
Bill Tutt:
Make unicode_compare a true UTF-16 compare function (includes
support for surrogates).
Fred Drake [Tue, 4 Jul 2000 04:15:53 +0000 (04:15 +0000)]
libinstall: For the first bytecode compilation pass, use -tt instead of
-t. This ensures that each installation from source is
checked for compliance. This is needed to make sure .py
files in the various Lib/plat-foo/ directories are tested
even if the core developers do not have access to the
corresponding platforms.
Paul Prescod [Tue, 4 Jul 2000 03:39:33 +0000 (03:39 +0000)]
Used original SAX handling form.
Paul Prescod [Tue, 4 Jul 2000 03:38:10 +0000 (03:38 +0000)]
Removed some tabs.
Jack Jansen [Mon, 3 Jul 2000 23:53:40 +0000 (23:53 +0000)]
PyMac_FindModuleExtension now uses a size_t as its size parameter for compatibility.
Tim Peters [Mon, 3 Jul 2000 23:51:17 +0000 (23:51 +0000)]
Squash signed-vs-unsigned warning. Also edits to bring into line
with Python coding stds (max line length, C-style comments).
Tim Peters [Mon, 3 Jul 2000 22:41:34 +0000 (22:41 +0000)]
Typo repair in docstring -- my fault.
Jack Jansen [Mon, 3 Jul 2000 21:39:47 +0000 (21:39 +0000)]
Include limits.h if we have it.
Jack Jansen [Mon, 3 Jul 2000 21:37:27 +0000 (21:37 +0000)]
Mac only: two epoch problem workarounds are no longer needed for GUSI
>= 2.0.5. One still is:-(
Fredrik Lundh [Mon, 3 Jul 2000 21:31:48 +0000 (21:31 +0000)]
- fixed grouping error bug
- changed "group" operator to "groupref"
Fredrik Lundh [Mon, 3 Jul 2000 18:44:21 +0000 (18:44 +0000)]
- added lookbehind support (?<=pattern), (?<!pattern).
the pattern must have a fixed width.
- got rid of array-module dependencies; the match pro-
gram is now stored inside the pattern object, rather
than in an extra string buffer.
- cleaned up a various of potential leaks, api abuses,
and other minors in the engine module.
- use mal's new isalnum macro, rather than my own work-
around.
- untabified test_sre.py. seems like I removed a couple
of trailing spaces in the process...
Fred Drake [Mon, 3 Jul 2000 18:11:56 +0000 (18:11 +0000)]
ANSI-fication, remove Py_PROTO, etc.
Revise math_1(), math_2(), stub-generating macros, and function tables to
use PyArg_ParseTuple() and properly provide the function name for error
message generation.
Fix pow() docstring for MPW 3.1; had said "power" instead of "pow".
Fred Drake [Mon, 3 Jul 2000 18:07:43 +0000 (18:07 +0000)]
Andrew Kuchling <akuchlin@mems-exchange.org>:
Typo in string literal: execpt --> except
Fred Drake [Mon, 3 Jul 2000 16:37:42 +0000 (16:37 +0000)]
Compute the name of the test file so that it can be found both when this
test is run as a script and when imported via the regression test
framework.
Problem reported by Phillip Porch <root@theporch.com>.
Fred Drake [Mon, 3 Jul 2000 14:32:04 +0000 (14:32 +0000)]
get_starttag_text(): Document this method.
Fred Drake [Mon, 3 Jul 2000 13:44:25 +0000 (13:44 +0000)]
Fix bug #379, reported by Phillip Porch <root@theproch.com>:
openpty(): Fallback code when os.openpty() does not exist attempted to
call _slave_open(), which should have been slave_open().
This bug only showed on platforms which do not provide a working openpty()
in the C library.
Fred Drake [Mon, 3 Jul 2000 13:38:10 +0000 (13:38 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Update the API docs for the new macros Py_UNICODE_ISALPHA() and
Py_UNICODE_ISALNUM().
Marc-André Lemburg [Mon, 3 Jul 2000 10:52:13 +0000 (10:52 +0000)]
Added new Py_UNICODE_ISALPHA() and Py_UNICODE_ISALNUM() macros
which are true for alphabetic and alphanumeric characters resp.
The macros are currently implemented using the existing is* tables
but will have to be updated to meet the Unicode standard definitions
(add tables for non-cased letters and letter modifiers).
Marc-André Lemburg [Mon, 3 Jul 2000 09:57:53 +0000 (09:57 +0000)]
If auto-conversion fails, the Unicode codecs will return NULL.
This is now checked and the error passed on to the caller.
Fred Drake [Mon, 3 Jul 2000 09:56:23 +0000 (09:56 +0000)]
Eric S. Raymond <esr@thyrsus.com>:
This patch implements relative-path semantics for the "source" facility resembling
those of cpp(1), documents the change, and improves the shlex test main to
make it easier to test this feature. Along the way, it fixes a name error
in the existing docs.
[Additional documentation markup changes for consistency by FLD.]
Fred Drake [Mon, 3 Jul 2000 08:24:49 +0000 (08:24 +0000)]
Moshe Zadka <moshez@math.huji.ac.il>:
Substantial updates to reflect Moshe's Gordon's enhancements to the
module.
Additional changes from Fred to reflect his changes to the module as well.
Fred Drake [Mon, 3 Jul 2000 08:18:47 +0000 (08:18 +0000)]
cmpfiles(): Added shallow and use_statcache parameters, with same meanings
and defaults as for filecmp.cmp(). Updated docstring
accordingly, and formatted it more like others in the standard
library.
Fred Drake [Mon, 3 Jul 2000 07:23:13 +0000 (07:23 +0000)]
Martin von Löwis <martin@loewis.home.cs.tu-berlin.de>:
This patch delegates more string functions to string object methods,
uses the varargs delegation syntax, and stops using stringold.
Closes SourceForge patch #100712.
Fred Drake [Mon, 3 Jul 2000 06:38:17 +0000 (06:38 +0000)]
Tim-blessed documentation for math.frexp().
Tim Peters [Sun, 2 Jul 2000 23:21:49 +0000 (23:21 +0000)]
Checked in a wrong version.
Tim Peters [Sun, 2 Jul 2000 23:18:43 +0000 (23:18 +0000)]
The example_nt directory was old enough to vote. Frank Stajano
pointed out some of the problems he had following the instructions,
and I stumbled into the others: MSVC has changed in several
respects, Python has changed the directories into which it builds
its own Windows outputs, and we grew the unusual scheme of
appending "_d" to the names of debug-mode output files.
This should all work with VC6 + CVS Python now. Some other Windows
geek please confirm! And the less you know, the better <0.5 wink>.
Explanations and examples for versions of MSVC before 6, and
versions of Python before 2.0b1, have been removed, because
they're too different and so confuse life. This last step I OK'ed
with Guido first (indeed, 'twas his idea!).
Fredrik Lundh [Sun, 2 Jul 2000 22:59:57 +0000 (22:59 +0000)]
- changed sre.Scanner to use lastindex instead of index.
Fredrik Lundh [Sun, 2 Jul 2000 22:25:39 +0000 (22:25 +0000)]
- experimental: added two new attributes to the match object:
"lastgroup" is the name of the last matched capturing group,
"lastindex" is the index of the same group. if no group was
matched, both attributes are set to None.
the (?P#) feature will be removed in the next relase.
Tim Peters [Sun, 2 Jul 2000 20:17:08 +0000 (20:17 +0000)]
Repair docs for math.frexp (they were wrong).
Reported on c.l.py by Kirill Simonov.
Fredrik Lundh [Sun, 2 Jul 2000 17:33:27 +0000 (17:33 +0000)]
- actually enabled charset anchors in the engine (still not
used by the code generator)
- changed max repeat value in engine (to match earlier array fix)
- added experimental "which part matched?" mechanism to sre; see
http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
or python-dev for details.
Fred Drake [Sun, 2 Jul 2000 13:52:21 +0000 (13:52 +0000)]
Typo (mine): Garsholm --> Garshol
Noted by Rob Hooft <rob@hooft.net>.
Fredrik Lundh [Sun, 2 Jul 2000 12:00:07 +0000 (12:00 +0000)]
-- use charset bitmaps where appropriate. this gives a 5-10%
speedup for some tests, including the python tokenizer.
-- added support for an optional charset anchor to the engine
(currently unused by the code generator).
-- removed workaround for array module bug.
Fredrik Lundh [Sat, 1 Jul 2000 23:49:14 +0000 (23:49 +0000)]
- fixed "{ in any other context" bug
- minor comment touchups in the C module
Fred Drake [Sat, 1 Jul 2000 20:57:03 +0000 (20:57 +0000)]
test(): Removed; regression test is in test.test_winreg2, not testreg.
Tim Peters [Sat, 1 Jul 2000 20:38:27 +0000 (20:38 +0000)]
Typo repair.
Paul Prescod [Sat, 1 Jul 2000 19:21:47 +0000 (19:21 +0000)]
Misc fixes and improvements.
Paul Prescod [Sat, 1 Jul 2000 19:19:32 +0000 (19:19 +0000)]
Removed unncessary dependency.
Paul Prescod [Sat, 1 Jul 2000 19:17:43 +0000 (19:17 +0000)]
Fixed test output
Fredrik Lundh [Sat, 1 Jul 2000 17:50:59 +0000 (17:50 +0000)]
today's SRE update:
-- changed 1.6 to 2.0 in the file headers
-- fixed ISALNUM macro for the unicode locale. this
solution isn't perfect, but the best I can do with
Python's current unicode database.
Fred Drake [Sat, 1 Jul 2000 17:47:38 +0000 (17:47 +0000)]
others --> other's (possessive)
Usage error noted by Grant Griffin <grant.griffin@iowegian.com>.
Fred Drake [Sat, 1 Jul 2000 17:43:19 +0000 (17:43 +0000)]
Send a "ARTICLE" --> Send an "ARTICLE"
Usage error noted by Grant Griffin <grant.griffin@iowegian.com>.
Andrew M. Kuchling [Sat, 1 Jul 2000 15:04:18 +0000 (15:04 +0000)]
Added more changes from /F
Paul Prescod [Sat, 1 Jul 2000 14:54:16 +0000 (14:54 +0000)]
Added minidom tests.
Just van Rossum [Sat, 1 Jul 2000 14:31:24 +0000 (14:31 +0000)]
a minimal test app to show how to build a standalone app with W
Fredrik Lundh [Sat, 1 Jul 2000 14:31:09 +0000 (14:31 +0000)]
changed repr and str to always convert unicode strings
to 8-bit strings, using the default encoding.
Just van Rossum [Sat, 1 Jul 2000 14:30:30 +0000 (14:30 +0000)]
added clearkey = '\033'
Just van Rossum [Sat, 1 Jul 2000 14:30:08 +0000 (14:30 +0000)]
fixed bug in comment matching
Paul Prescod [Sat, 1 Jul 2000 13:44:04 +0000 (13:44 +0000)]
Tightened xml.sax.__init__.py
Andrew M. Kuchling [Sat, 1 Jul 2000 12:33:43 +0000 (12:33 +0000)]
Changes from Moshe:
- distutils: Windows installers are already working
- string methods: .join() seems to be the concensus, so it should probably
be docommented
- filecmp.py supersedes cmp, cmpcache and dircmp
- winreg is completely new: _winreg is an adaptation of what used to be in
win32api, and winreg is a Python implementation which adds OO syntax.
Perhaps you know that, but the text is misleading.
Guido van Rossum [Sat, 1 Jul 2000 10:52:49 +0000 (10:52 +0000)]
getatime() returned the mtime instead of the atime.
Similar to an old bug in ntpath.py.
Fred Drake [Sat, 1 Jul 2000 07:03:30 +0000 (07:03 +0000)]
Fix bug #314, reported by Craig Allen <cba@mediaone.net>:
splittype(): Always lower-case the URL scheme; these are supposed to be
normalized according to RFC 1738 anyway.
Fred Drake [Sat, 1 Jul 2000 06:36:51 +0000 (06:36 +0000)]
Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>:
getatime() returned the mtime instead of the atime.
Similar to an old bug in posixpath.py.
Fred Drake [Sat, 1 Jul 2000 06:26:44 +0000 (06:26 +0000)]
Martin von Loewis <loewis@informatik.hu-berlin.de>:
Correct typo that caused a well-formedness failure.
Paul Prescod [Sat, 1 Jul 2000 04:58:47 +0000 (04:58 +0000)]
Reference cycle fixes
Barry Warsaw [Sat, 1 Jul 2000 04:45:52 +0000 (04:45 +0000)]
init_exceptions(): Decref `doc' so it doesn't leak.
Guido van Rossum [Sat, 1 Jul 2000 04:23:47 +0000 (04:23 +0000)]
the usual
Guido van Rossum [Sat, 1 Jul 2000 04:03:32 +0000 (04:03 +0000)]
A bunch of project files were checked in as text files.
They should all be binary (cvs admin -kv has now been applied).
Guido van Rossum [Sat, 1 Jul 2000 03:46:38 +0000 (03:46 +0000)]
Add ucnhash (new subproject).
Mark Hammond [Sat, 1 Jul 2000 03:43:33 +0000 (03:43 +0000)]
The Python include paths were not specified.
Fred Drake [Sat, 1 Jul 2000 03:40:12 +0000 (03:40 +0000)]
Restore strict checking of socket address values; addresses passed to
the bind(), connect(), and connect_ex() methods must be a single
parameter.
Originally part of 1.98, reverted in 1.100.
Guido van Rossum [Sat, 1 Jul 2000 03:34:14 +0000 (03:34 +0000)]
output for openpty test
Guido van Rossum [Sat, 1 Jul 2000 03:27:22 +0000 (03:27 +0000)]
Define a magical symbol and magic include path so it will compile without
changes to the bsddb source.
Mark Hammond [Sat, 1 Jul 2000 03:15:37 +0000 (03:15 +0000)]
Add ucnhash to the workspace, as a dependency of python20.
Mark Hammond [Sat, 1 Jul 2000 03:14:51 +0000 (03:14 +0000)]
ucnhash now correctly builds for Windows.
Mark Hammond [Sat, 1 Jul 2000 03:12:59 +0000 (03:12 +0000)]
Update all projects so Debug builds use "/Zi" instead of "/ZI", which means everything should still build under MSVC5
NOTE: All these projects had messed-up line endings (but MSVC didnt mind). Executing a diff with "--ignore-all-space" will show the specific changes, but I made a complete checkin with correct line endiings as it is the correct thing to do!
Tim Peters [Sat, 1 Jul 2000 02:51:23 +0000 (02:51 +0000)]
Repaired two URLs.
Fred Drake [Sat, 1 Jul 2000 02:37:37 +0000 (02:37 +0000)]
Do not build the "longhtml" version for pre-release versions.
Fred Drake [Sat, 1 Jul 2000 01:41:55 +0000 (01:41 +0000)]
The new copyright / license.
Guido van Rossum [Sat, 1 Jul 2000 01:13:31 +0000 (01:13 +0000)]
Thomas Wouters: Test script for openpty()
Guido van Rossum [Sat, 1 Jul 2000 01:09:43 +0000 (01:09 +0000)]
Jack Jansen, Mac patch:
Include limits.h if we have it.
Guido van Rossum [Sat, 1 Jul 2000 01:08:11 +0000 (01:08 +0000)]
Jack Jansen, Mac patch:
If we have stat.h include it if we don't have sys/stat.h
Guido van Rossum [Sat, 1 Jul 2000 01:06:56 +0000 (01:06 +0000)]
Jack Jansen, Mac patch:
Include stat.h if needed; different Mac filename compare
Guido van Rossum [Sat, 1 Jul 2000 01:00:38 +0000 (01:00 +0000)]
Neil Schemenauer: small fixes for GC
Guido van Rossum [Sat, 1 Jul 2000 00:51:51 +0000 (00:51 +0000)]
clean up warnings in Win32 build of mmapmodule.c
Guido van Rossum [Sat, 1 Jul 2000 00:38:19 +0000 (00:38 +0000)]
In b_setitem(), instead of the platform dependent CHAR_MIN and
CHAR_MAX, use hardcoded -128 and 127. This may seem strange, unless
you realize that we're talking about signed bytes here! Bytes are
always 8 bits and 2's complement. CHAR_MIN and CHAR_MAX are
properties of the char data type, which is guaranteed to hold at least
8 bits anyway.
Otherwise you'd get failing tests on platforms where unsigned char is
the default (e.g. AIX).
Thanks, Vladimir Marangozov, for finding this nit!
Guido van Rossum [Sat, 1 Jul 2000 00:34:39 +0000 (00:34 +0000)]
Update a bunch of URLs. No longer suggests to join PSA or Consortium.
Andrew M. Kuchling [Sat, 1 Jul 2000 00:23:02 +0000 (00:23 +0000)]
Refer to "Authors", plural
Guido van Rossum [Sat, 1 Jul 2000 00:16:13 +0000 (00:16 +0000)]
Change copyright notice.
Andrew M. Kuchling [Sat, 1 Jul 2000 00:14:43 +0000 (00:14 +0000)]
Update the version number in an example
Andrew M. Kuchling [Sat, 1 Jul 2000 00:13:30 +0000 (00:13 +0000)]
Updated the URL for Python 2.0
Tim Peters [Sat, 1 Jul 2000 00:03:43 +0000 (00:03 +0000)]
Update for 2.0b1. Also add more text, to be more explicit about
what the dozen+ subprojects are for, which are and aren't
expected to build out of the box, and what else is needed to get
them all to build. Also explained that Alpha configurations
don't refer to pre-beta, but to the Alpha processor! That's
baffled me for years <0.7 wink>.
Guido van Rossum [Fri, 30 Jun 2000 23:58:06 +0000 (23:58 +0000)]
Change copyright notice - 2nd try.
Guido van Rossum [Fri, 30 Jun 2000 23:50:40 +0000 (23:50 +0000)]
Change copyright notice.
Fred Drake [Fri, 30 Jun 2000 23:22:35 +0000 (23:22 +0000)]
Thomas Wouters <thomas@xs4all.net>:
Test case for the pty module.
Guido van Rossum [Fri, 30 Jun 2000 23:04:18 +0000 (23:04 +0000)]
Fix another error on AIX by using a proper cast.
Guido van Rossum [Fri, 30 Jun 2000 22:46:04 +0000 (22:46 +0000)]
Fix an error on AIX by using a proper cast.
Guido van Rossum [Fri, 30 Jun 2000 22:45:12 +0000 (22:45 +0000)]
Crude way to fix a problem on AIX: #undef STAT before defining it.
Fredrik Lundh [Fri, 30 Jun 2000 22:37:31 +0000 (22:37 +0000)]
- fixed code generation error in multiline mode
- fixed parser flag propagation (of all stupid bugs...)
Guido van Rossum [Fri, 30 Jun 2000 22:17:53 +0000 (22:17 +0000)]
Only include <basetsd.h> for VC 6.0 and higher.
Fredrik Lundh [Fri, 30 Jun 2000 22:01:36 +0000 (22:01 +0000)]
replaced <some suitable mail address> with something slightly
more suitable.
Fredrik Lundh [Fri, 30 Jun 2000 21:40:20 +0000 (21:40 +0000)]
-- changed $ to match before a trailing newline, even
if the multiline flag isn't given.
Guido van Rossum [Fri, 30 Jun 2000 20:31:50 +0000 (20:31 +0000)]
As Neil Schemenauer points out, WITH_CYCLE_GC should be uncommented if
we want to have GC enabled in the beta.
Fred Drake [Fri, 30 Jun 2000 20:31:39 +0000 (20:31 +0000)]
Ooops! I didn't finish all the renaming needed here, so this was
attempting a recursive import and causing a fatal error.
Guido van Rossum [Fri, 30 Jun 2000 20:30:03 +0000 (20:30 +0000)]
Add back a missing CRLF line ending.
Guido van Rossum [Fri, 30 Jun 2000 20:22:36 +0000 (20:22 +0000)]
s/REGENTS/COPYRIGHT HOLDERS/ followed by paragraph reflow.
Fred Drake [Fri, 30 Jun 2000 19:38:16 +0000 (19:38 +0000)]
Output for test_winreg2.
Someone who knows what they are doing needs to replace this with something
that makes sense -- I'm not running Windows right now.
Greg Ward [Fri, 30 Jun 2000 19:37:59 +0000 (19:37 +0000)]
Simplify the registry-module-finding code: _winreg or win32api/win32con.
This'll work fine with 2.0 or 1.5.2, but is less than ideal for
1.6a1/a2. But the code to accomodate 1.6a1/a2 was released with
Distutils 0.9, so it can go away now.
Fred Drake [Fri, 30 Jun 2000 19:36:23 +0000 (19:36 +0000)]
Paul Prescod <paul@prescod.net>:
Regression test for the new winreg.py module.
[Could a Windows person someone please review this?]
Fred Drake [Fri, 30 Jun 2000 19:33:35 +0000 (19:33 +0000)]
Line-wrap and properly indent a couple of docstrings.