]>
granicus.if.org Git - python/log
Fred Drake [Thu, 14 Dec 2000 18:00:18 +0000 (18:00 +0000)]
Adjust PullDOM to use a DOMImplementation instance to create new Document
objects; uses minidom if one is not provided to the constructor.
parse(): Pick up the default_bufsize default value dynamically so that
the value in the module may be (meaningfully) changed at runtime.
This (partially) closes patch #102477.
Guido van Rossum [Thu, 14 Dec 2000 15:09:46 +0000 (15:09 +0000)]
Test for NULL returned from PyObject_NEW().
Guido van Rossum [Thu, 14 Dec 2000 14:59:53 +0000 (14:59 +0000)]
Test for NULL returned from PyObject_NEW().
Fred Drake [Thu, 14 Dec 2000 03:11:24 +0000 (03:11 +0000)]
Update information on the locking() function, added the needed constants.
(Thanks for the info, Tim!)
Tim Peters [Wed, 13 Dec 2000 23:18:45 +0000 (23:18 +0000)]
Add long-overdue docstrings to dict methods.
Fred Drake [Wed, 13 Dec 2000 22:36:02 +0000 (22:36 +0000)]
Finish a sentence that was left half-written!
Tim Peters [Wed, 13 Dec 2000 22:35:46 +0000 (22:35 +0000)]
Use METH_VARARGS instead of "1" in list method table.
Fred Drake [Wed, 13 Dec 2000 20:48:29 +0000 (20:48 +0000)]
When raising KeyError, provide the key value that failed.
Moshe Zadka [Wed, 13 Dec 2000 20:39:22 +0000 (20:39 +0000)]
Changing allow_reuse_address's default value, and documenting it.
Fred Drake [Wed, 13 Dec 2000 20:23:11 +0000 (20:23 +0000)]
Untabify! (Barry, this is gonna cost you a bottle of wine! ;)
Tim Peters [Wed, 13 Dec 2000 19:58:25 +0000 (19:58 +0000)]
Typo repair in comments. Fell for GregS's .popitem() poke.
Fred Drake [Wed, 13 Dec 2000 19:34:38 +0000 (19:34 +0000)]
Added "stub" documentation for xml.dom.pulldom for Paul to fill out with
useful explanations.
Guido van Rossum [Wed, 13 Dec 2000 18:11:56 +0000 (18:11 +0000)]
Get rid of string module and string exceptions.
Fred Drake [Wed, 13 Dec 2000 17:38:02 +0000 (17:38 +0000)]
Added descriptions of the defined exceptions and their mapping to the
DOM recommendation.
Martin v. Löwis [Wed, 13 Dec 2000 17:37:02 +0000 (17:37 +0000)]
Set CXX even when --with-cxx is not specified. Closes bug 14782.
Martin v. Löwis [Wed, 13 Dec 2000 17:37:02 +0000 (17:37 +0000)]
Set CXX even when --with-cxx is not specified. Closes bug #124782
Fred Drake [Wed, 13 Dec 2000 16:35:53 +0000 (16:35 +0000)]
Add code to DOMException to ensure it cannot be instantiated directly,
since the API documentation will state specifically that the specializations
must be used by the DOM implementations.
Martin v. Löwis [Wed, 13 Dec 2000 14:21:07 +0000 (14:21 +0000)]
Add standard DOM exception hierarchy.
Martin v. Löwis [Wed, 13 Dec 2000 14:14:32 +0000 (14:14 +0000)]
Document --with-cxx.
Andrew M. Kuchling [Wed, 13 Dec 2000 03:50:20 +0000 (03:50 +0000)]
Check in README file and one demo program
Tim Peters [Wed, 13 Dec 2000 01:02:46 +0000 (01:02 +0000)]
Bring comments up to date (e.g., they still said the table had to be
a prime size, which is in fact never true anymore ...).
Fred Drake [Tue, 12 Dec 2000 23:20:45 +0000 (23:20 +0000)]
Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
Barry Warsaw [Tue, 12 Dec 2000 23:16:51 +0000 (23:16 +0000)]
Change the file's indentation from tabs to 4 spaces per level.
Barry Warsaw [Tue, 12 Dec 2000 23:12:23 +0000 (23:12 +0000)]
Accept Finn Bock's patch #102208 to hardcode EINVAL to 22 when errno
can't be imported. This makes StringIO.py work with Jython.
Also, get rid of the string module by converting to string methods.
Shorten some lines by using augmented assignment where appropriate.
Fred Drake [Tue, 12 Dec 2000 23:11:42 +0000 (23:11 +0000)]
Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
Jack Jansen [Tue, 12 Dec 2000 22:42:30 +0000 (22:42 +0000)]
The Mac C library (MSL from CodeWarrior 6) and I/O library (GUSI
2.1.3) finally agree on when the epoch is, so the code to convert
epochs has been disabled.
Jack Jansen [Tue, 12 Dec 2000 22:39:04 +0000 (22:39 +0000)]
The ".pth" code knew about the layout of Python trees on unix and
windows, but not on the mac. Fixed.
Jack Jansen [Tue, 12 Dec 2000 22:36:57 +0000 (22:36 +0000)]
Use c2pstr() in stead of Pstring() to convert C-strings to
Pascal-strings. Safer, because Pstring converts in-place and the
pathname may be reused later for error messages.
Jack Jansen [Tue, 12 Dec 2000 22:24:35 +0000 (22:24 +0000)]
Optionally weed out duplicate prototypes for the same function (which
happens because the scanner ignores preprocessor #ifs).
Jack Jansen [Tue, 12 Dec 2000 22:22:59 +0000 (22:22 +0000)]
Adapted to new standard for initmodule() routine: don't call
Py_FatalError on errors.
Jack Jansen [Tue, 12 Dec 2000 22:21:39 +0000 (22:21 +0000)]
Various new standard types.
Jack Jansen [Tue, 12 Dec 2000 22:21:11 +0000 (22:21 +0000)]
Added support for generating a single module from multiple .h files.
Allow /* */ comments within function prototypes.
Jack Jansen [Tue, 12 Dec 2000 22:14:14 +0000 (22:14 +0000)]
Refer to the sourceforge site for gusi downloads.
Jack Jansen [Tue, 12 Dec 2000 22:13:36 +0000 (22:13 +0000)]
Put all AE constants into AppleEvents.py
Jack Jansen [Tue, 12 Dec 2000 22:13:03 +0000 (22:13 +0000)]
Qdoffs now exports the GWorldObj_{New,Convert} functions.
Jack Jansen [Tue, 12 Dec 2000 22:12:14 +0000 (22:12 +0000)]
Added a c2pstrcpy() function.
Guido van Rossum [Tue, 12 Dec 2000 22:10:31 +0000 (22:10 +0000)]
Describe {}.popitem().
Jack Jansen [Tue, 12 Dec 2000 22:10:21 +0000 (22:10 +0000)]
More toolbox modules adapted to Universal Headers 3.3.2.
Jack Jansen [Tue, 12 Dec 2000 22:09:11 +0000 (22:09 +0000)]
Use new multi-input-file feature of bgen in stead of @-file hack to parse multiple header files. A side effect is that the ObjectSupportLib routines are now also available in Python.
Jack Jansen [Tue, 12 Dec 2000 22:08:00 +0000 (22:08 +0000)]
Regenerated from Universal Headers 3.3.2
Jack Jansen [Tue, 12 Dec 2000 22:06:53 +0000 (22:06 +0000)]
Put all AE constants into AppleEvents.py
Guido van Rossum [Tue, 12 Dec 2000 22:06:00 +0000 (22:06 +0000)]
Add popitem().
Guido van Rossum [Tue, 12 Dec 2000 22:03:47 +0000 (22:03 +0000)]
"Documentation" for {}.popitem().
Guido van Rossum [Tue, 12 Dec 2000 22:02:59 +0000 (22:02 +0000)]
Added test for {}.popitem().
Guido van Rossum [Tue, 12 Dec 2000 22:02:18 +0000 (22:02 +0000)]
Add popitem() -- SF patch #102733.
Jack Jansen [Tue, 12 Dec 2000 21:53:48 +0000 (21:53 +0000)]
Qdoffs now exports GWorld new/convert, and Qt uses them.
Drag moved to core toolbox modules (Win uses it).
Jack Jansen [Tue, 12 Dec 2000 21:53:14 +0000 (21:53 +0000)]
Drag moved to core toolbox modules (Win uses it).
Jack Jansen [Tue, 12 Dec 2000 21:50:53 +0000 (21:50 +0000)]
Qdoffs now exports GWorld new/convert, and Qt uses them.
Guido van Rossum [Tue, 12 Dec 2000 21:07:08 +0000 (21:07 +0000)]
Add URL with info for PIL.
Guido van Rossum [Tue, 12 Dec 2000 15:24:57 +0000 (15:24 +0000)]
Typo detected by "the miraculous Debian package lint tool "lintian"
(http://package.debian.org/lintian), which includes a spellchecker for
common typos in control files of packages... You see, we're so
paranoid that we even have automatic tools that keep monitoring
license files ;-)" (Gregor Hoffleit)
Marc-André Lemburg [Tue, 12 Dec 2000 14:45:35 +0000 (14:45 +0000)]
Changed .getaliases() support to register the new aliases in the
encodings package aliases mapping dictionary rather than in the
internal cache used by the search function.
This enables aliases to take advantage of the full normalization
process applied to encoding names which was previously not available.
The patch restricts alias registration to new aliases. Existing
aliases cannot be overridden anymore.
Tim Peters [Tue, 12 Dec 2000 01:58:56 +0000 (01:58 +0000)]
Partial fix for SF bug 122780 (msvcrt.locking constants aren't defined).
Still needs docs; see bug report (which was reassigned to Fred) for MS's docs.
Tim Peters [Tue, 12 Dec 2000 01:18:41 +0000 (01:18 +0000)]
SF bug 110843: Low FD_SETSIZE limit on Win32 (PR#41). Boosted to 512.
Guido van Rossum [Tue, 12 Dec 2000 00:37:58 +0000 (00:37 +0000)]
Trivial typo fix, submitted by Charles Waldman (SF patch #102794).
Thomas Wouters [Mon, 11 Dec 2000 23:11:51 +0000 (23:11 +0000)]
Additional docs for __iadd__ and family, closing SF bug #117178 and SF patch
#102169.
Fred Drake [Mon, 11 Dec 2000 22:39:24 +0000 (22:39 +0000)]
Adjust explanation of operator precedence summary -- exponentiation groups
from right to left!
Closes bug #125391.
Fred Drake [Mon, 11 Dec 2000 22:29:23 +0000 (22:29 +0000)]
Update the docstring.
Add a Node class that defines the NodeType constants, based on discussion
in the XML-SIG.
Fred Drake [Mon, 11 Dec 2000 22:12:09 +0000 (22:12 +0000)]
Added tests to avoid regression on bug #125375.
roundtrip(): Show the offending syntax tree when things break; this makes
it a little easier to debug the module by adding test cases.
(Still need better tests for this module, but there's not enough time
today.)
Fred Drake [Mon, 11 Dec 2000 22:08:27 +0000 (22:08 +0000)]
validate_varargslist(): Fix two bugs in this function, one that affected
it when *args and/or **kw are used, and one when
they are not.
This closes bug #125375: "parser.tuple2ast() failure on valid parse tree".
Fred Drake [Mon, 11 Dec 2000 20:57:13 +0000 (20:57 +0000)]
Added link to HTML version of the NumPy documentation.
This closes bug #124943.
Guido van Rossum [Mon, 11 Dec 2000 20:33:52 +0000 (20:33 +0000)]
Apply rstrip() to the lines read from _dirfile in _update(), so that a
dumbdbm archive created on Windows can be read on Unix.
Guido van Rossum [Mon, 11 Dec 2000 20:32:20 +0000 (20:32 +0000)]
Hoepeful fix for SF bug #123924: Windows - using OpenSSL, problem with
socket in httplib.py.
The bug reports that on Windows, you must pass sock._sock to the
socket.ssl() call. But on Unix, you must pass sock itself. (sock is
a wrapper on Windows but not on Unix; the ssl() call wants the real
socket object, not the wrapper.)
So we see if sock has an _sock attribute and if so, extract it.
Unfortunately, the submitter of the bug didn't confirm that this patch
works, so I'll just have to believe it (can't test it myself since I
don't have OpenSSL on Windows set up, and that's a nontrivial thing I
believe).
Barry Warsaw [Mon, 11 Dec 2000 20:01:55 +0000 (20:01 +0000)]
vgetargskeywords(): Patch for memory leak identified in bug #119862.
Fred Drake [Mon, 11 Dec 2000 18:13:19 +0000 (18:13 +0000)]
Make ConfigParser.Error inherit from Exception.
Fred Drake [Mon, 11 Dec 2000 15:50:07 +0000 (15:50 +0000)]
select.select(): Add note that though this function accepts empty lists,
using *only* empty lists may not be acceptable on all
platforms, with the specific caveat that it does not
work on Windows. Also clarified list of acceptable
objects that may be in the lists, to let the user know
that file objects are not usable here on Windows.
Jack Jansen [Sun, 10 Dec 2000 23:43:49 +0000 (23:43 +0000)]
Adapted to Universal Headers 3.3.2. More to follow.
Andrew M. Kuchling [Sun, 10 Dec 2000 15:12:14 +0000 (15:12 +0000)]
(Patch #102698) Fix for a bug reported by Wade Leftwich:
StreamReader ignores the 'errors' parameter passed to its constructor
Tim Peters [Sat, 9 Dec 2000 05:03:22 +0000 (05:03 +0000)]
SF bug 124051: ndiff "?" lines can be confusing. Well, they still can, but
after implementing it I liked Gregor's two-"?" line idea a lot.
Fred Drake [Fri, 8 Dec 2000 06:54:51 +0000 (06:54 +0000)]
Lots of small improvements and bits of added information on the DOM API.
Fred Drake [Thu, 7 Dec 2000 04:54:02 +0000 (04:54 +0000)]
Fix error noted by Gerrit Holl (old; had been buried in my INBOX):
sequence repitition works just fine with long integers now, so we
should not say that only plain integers are allowed.
Fred Drake [Thu, 7 Dec 2000 04:49:34 +0000 (04:49 +0000)]
Added a note that objects which emulate built-in types should only
implement as many of the relevant methods as make sense for the particular
information being modelled.
Fred Drake [Thu, 7 Dec 2000 04:47:51 +0000 (04:47 +0000)]
Lots of additional information. Not done, but much better.
Fred Drake [Thu, 7 Dec 2000 00:06:46 +0000 (00:06 +0000)]
Another name!
Fred Drake [Thu, 7 Dec 2000 00:03:24 +0000 (00:03 +0000)]
Typo caught by Jim Tittsler <jwt@onjapan.net>: They --> The
Fred Drake [Thu, 7 Dec 2000 00:00:21 +0000 (00:00 +0000)]
Note that, as of Python 1.6, the .returns_unicode attribute on parser
objects can be modified at any point with the expected results.
Guido van Rossum [Wed, 6 Dec 2000 23:46:29 +0000 (23:46 +0000)]
The C+ compiler is called $(CXX) these days, not CCC.
This fixes SF Bug #124478.
Barry Warsaw [Wed, 6 Dec 2000 22:20:07 +0000 (22:20 +0000)]
Fix `credits' to credit the Jython developers when running under that
interpreter. Update and reword the credits for CPython. Closes SF
patch #102665.
Barry Warsaw [Wed, 6 Dec 2000 21:47:46 +0000 (21:47 +0000)]
_getframe(): New sys module function for getting at the stack frame.
Implements and closes SF patch #102106, with Guido's suggested
documentation changes.
Fred Drake [Wed, 6 Dec 2000 21:45:33 +0000 (21:45 +0000)]
posix_getlogin(): Be more cautious about interpreting a NULL from
getlogin() -- it is not clear that a NULL is always
an error.
Fred Drake [Wed, 6 Dec 2000 21:24:28 +0000 (21:24 +0000)]
posix_getlogin(): Handle the possibility that getlogin() can return
NULL without setting errno; observed on Linux
Mandrake 7.2 by an anonymous user.
This closes bug #124758.
Fred Drake [Wed, 6 Dec 2000 14:27:49 +0000 (14:27 +0000)]
Jeffrey D. Collins <tokeneater@users.sourceforge.net>:
Fix type of the self parameter to some string object methods.
This closes patch #102670.
Sjoerd Mullender [Wed, 6 Dec 2000 10:37:57 +0000 (10:37 +0000)]
Two changes:
- Use new Error class (subclass of RuntimeError so is backward
compatible) which is raised when RuntimeError used to be raised.
- Report original attribute name in error messages instead of name
mangled with namespace URL.
Fred Drake [Mon, 4 Dec 2000 22:29:17 +0000 (22:29 +0000)]
Two typos caught by /F; thanks!
Fred Drake [Mon, 4 Dec 2000 22:04:15 +0000 (22:04 +0000)]
Added a comment for ContentHandler.characters() explaining how to migrate
SAX1 code to SAX2, based on bug #123695.
Fred Drake [Mon, 4 Dec 2000 16:30:40 +0000 (16:30 +0000)]
Add test cases for ConfigParser.remove_option() behavior. This includes
coverage to ensure bug #124324 does not re-surface.
Fred Drake [Mon, 4 Dec 2000 16:29:13 +0000 (16:29 +0000)]
remove_option(): Use the right variable name for the option name!
This closes bug #124324.
Neil Schemenauer [Mon, 4 Dec 2000 15:42:11 +0000 (15:42 +0000)]
Make isinstance() more permissive in what types of arguments it
accepts. Clarify exception messages for isinstance() and
issubclass(). Closes bug #124106.
Jack Jansen [Sun, 3 Dec 2000 22:43:45 +0000 (22:43 +0000)]
Updated for the current state of the main Python source tree.
Jack Jansen [Sun, 3 Dec 2000 22:43:05 +0000 (22:43 +0000)]
These have been replaced by the new generated projects.
Jack Jansen [Sun, 3 Dec 2000 22:41:57 +0000 (22:41 +0000)]
The new generated plugin projects. Checked in in XML form, so cvs diffs should work.
Jack Jansen [Sun, 3 Dec 2000 22:39:09 +0000 (22:39 +0000)]
Added an extraexportsymbols option, to allow (you guessed it:-) extra export symbols to be specified.
Jack Jansen [Sun, 3 Dec 2000 22:38:34 +0000 (22:38 +0000)]
Allow recursive searh entries by ending the pathname in ":*".
Jack Jansen [Sun, 3 Dec 2000 22:37:32 +0000 (22:37 +0000)]
Don't generate SYM files by default.
Jack Jansen [Sun, 3 Dec 2000 22:36:42 +0000 (22:36 +0000)]
Updated for the new project names.
Jack Jansen [Sun, 3 Dec 2000 22:31:50 +0000 (22:31 +0000)]
Got it working for all important plugins, and moved it from Build to scripts.
Moshe Zadka [Sun, 3 Dec 2000 20:48:07 +0000 (20:48 +0000)]
Call of _cmp had wrong number of paramereters.
Fixed definition of _cmp.
Martin v. Löwis [Sun, 3 Dec 2000 18:30:10 +0000 (18:30 +0000)]
Convert Unicode strings to byte strings before passing them into specific
protocols. Closes bug #119822.
Fred Drake [Fri, 1 Dec 2000 15:25:23 +0000 (15:25 +0000)]
Update Moshe Zadka's email address to one works and might last a while.
Guido van Rossum [Fri, 1 Dec 2000 13:13:11 +0000 (13:13 +0000)]
Patch by Michael Hudson to clarify the error message from
getsockaddrarg when the address is not a tuple.
Guido van Rossum [Fri, 1 Dec 2000 12:59:05 +0000 (12:59 +0000)]
Clarified some of the error messages, esp. "read-only character
buffer" replaced by "string or read-only character buffer".