]>
granicus.if.org Git - python/log
Guido van Rossum [Mon, 18 Dec 2000 22:23:44 +0000 (22:23 +0000)]
Adapted from a patch by Barry Scott, SF patch #102875 and SF bug
#125981: closing sockets was not thread-safe.
Neil Schemenauer [Mon, 18 Dec 2000 17:28:05 +0000 (17:28 +0000)]
gdbm.open() no longer accepts garbage in the flags string. Fix the tests.
Fred Drake [Mon, 18 Dec 2000 13:50:24 +0000 (13:50 +0000)]
Do not talk about "real" numbers; talk about "floats" or "floating point
numbers" instead; we have not described "reals" anywhere else in the
documentation, and this is not the place to change the story!
Reported by Keith Briggs <keith.briggs@bt.com>.
Neil Schemenauer [Sun, 17 Dec 2000 07:14:13 +0000 (07:14 +0000)]
Add support for gdbm2 open flags ('s' and 'u'). Add module constant
open_flags which contains the flags supported by gdbm. Closes patch
#102802.
Fred Drake [Sat, 16 Dec 2000 01:48:29 +0000 (01:48 +0000)]
Add returns_unicode to the __members__ list.
Fix a small style consistency nit.
Fred Drake [Sat, 16 Dec 2000 01:45:11 +0000 (01:45 +0000)]
Do not assume that types.UnicodeType exists; we might be running in an old
version of Python. ;-(
Fred Drake [Sat, 16 Dec 2000 01:43:40 +0000 (01:43 +0000)]
Use the string module instead of string methods; this should still work
with Python 1.5.2 for now.
Fred Drake [Fri, 15 Dec 2000 23:57:51 +0000 (23:57 +0000)]
urlretrieve() description included explanation of "data" parameter, but
did not include it in the signature.
Fixed some markup nits.
Fred Drake [Fri, 15 Dec 2000 23:56:43 +0000 (23:56 +0000)]
Typo caught by /F -- thanks!
Guido van Rossum [Fri, 15 Dec 2000 22:02:05 +0000 (22:02 +0000)]
Add definitions for PySys_ResetWarnOptions() and
PySys_AddWarnOption().
Guido van Rossum [Fri, 15 Dec 2000 22:01:39 +0000 (22:01 +0000)]
Add declarations for PySys_ResetWarnOptions() and
PySys_AddWarnOption().
Guido van Rossum [Fri, 15 Dec 2000 22:00:54 +0000 (22:00 +0000)]
Add the -W option.
Guido van Rossum [Fri, 15 Dec 2000 21:59:53 +0000 (21:59 +0000)]
Python part of the warnings subsystem.
Guido van Rossum [Fri, 15 Dec 2000 21:58:52 +0000 (21:58 +0000)]
Add PyErr_Warn().
Guido van Rossum [Fri, 15 Dec 2000 21:58:29 +0000 (21:58 +0000)]
Add definitions for standard warning category classes (PyExc_Warning
etc.).
Guido van Rossum [Fri, 15 Dec 2000 21:57:34 +0000 (21:57 +0000)]
Add declarations for standard warning category classes (PyExc_Warning
etc.) and the PyErr_Warn() function.
Fred Drake [Fri, 15 Dec 2000 21:31:59 +0000 (21:31 +0000)]
Before calling traceback.print_exc(), call sys.stdout.flush(). This makes
it much easier to see where things went wrong.
Fred Drake [Fri, 15 Dec 2000 21:07:59 +0000 (21:07 +0000)]
DOMException.__init__(): Remember to pass self to Exception.__init__().
Guido van Rossum [Fri, 15 Dec 2000 20:08:39 +0000 (20:08 +0000)]
Comment out a debugging print statement that triggered a complaint in
c.l.py.
Fred Drake [Fri, 15 Dec 2000 19:07:17 +0000 (19:07 +0000)]
Added documentation for random.shuffle().
Guido van Rossum [Fri, 15 Dec 2000 15:49:08 +0000 (15:49 +0000)]
Get rid of string functions.
Guido van Rossum [Fri, 15 Dec 2000 15:37:48 +0000 (15:37 +0000)]
Get rid of string functions. References to string.whitespace,
string.digits are left.
Guido van Rossum [Fri, 15 Dec 2000 15:09:42 +0000 (15:09 +0000)]
Get rid of string functions.
There should really be a little tool to help with this -- it's rather
tedious and there are lots of special cases!
Guido van Rossum [Fri, 15 Dec 2000 15:01:37 +0000 (15:01 +0000)]
Get rid of string functions, except maketrans() (which is *not*
obsolete!).
Fix a bug in ftpwrapper.retrfile() where somehow ftplib.error_perm was
assumed to be a string. (The fix applies str().)
Also break some long lines and change the output from test() slightly.
Andrew M. Kuchling [Fri, 15 Dec 2000 13:09:06 +0000 (13:09 +0000)]
Add test case for error message raised by bad % format character
(Oh, look, it adds another little utility function for testing)
Andrew M. Kuchling [Fri, 15 Dec 2000 13:07:46 +0000 (13:07 +0000)]
[ Patch #102852 ] Make % error a bit more informative by indicates the
index at which an unknown %-escape was found
Fred Drake [Fri, 15 Dec 2000 05:41:49 +0000 (05:41 +0000)]
Grant Griffin <grant.griffin@honeywell.com>:
Clarify that invert() is a *bitwise* operation.
Andrew M. Kuchling [Fri, 15 Dec 2000 01:16:43 +0000 (01:16 +0000)]
Fix typo
Andrew M. Kuchling [Fri, 15 Dec 2000 01:03:23 +0000 (01:03 +0000)]
Document napms()
Add reference to demo directory
Andrew M. Kuchling [Fri, 15 Dec 2000 00:59:32 +0000 (00:59 +0000)]
[Patch #102827] Fix for PR#119558, avoiding core dumps by checking for
malloc() returning NULL
Andrew M. Kuchling [Fri, 15 Dec 2000 00:44:02 +0000 (00:44 +0000)]
Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>
Andrew M. Kuchling [Fri, 15 Dec 2000 00:41:48 +0000 (00:41 +0000)]
Curses demos contributed by Thomas Gellekum <tg@FreeBSD.org>.
ncurses.py requires panel support, and therefore doesn't work yet.
Jack Jansen [Thu, 14 Dec 2000 23:35:01 +0000 (23:35 +0000)]
Various tweaks. It now returns the exact same files as Matthias' tool 95% of the time.
Jack Jansen [Thu, 14 Dec 2000 23:34:15 +0000 (23:34 +0000)]
Oops, interaction() returned a single value in stead of a tuple (I thought that bug was loooong fixed??!?).
Jack Jansen [Thu, 14 Dec 2000 22:29:58 +0000 (22:29 +0000)]
First stab at a script that mimicks Matthias Neerachers tool used to build GUSI.
Jack Jansen [Thu, 14 Dec 2000 22:29:00 +0000 (22:29 +0000)]
Set autodispose only if RefCon isn't set yet on the window. This way we don't accidentally dispose of windows that are actually dialogs-in-disguise.
Guido van Rossum [Thu, 14 Dec 2000 22:12:33 +0000 (22:12 +0000)]
Fix bit rot: use sock.connect((host, port)) and allow 2nd cmd line
arg.
Fred Drake [Thu, 14 Dec 2000 18:36:12 +0000 (18:36 +0000)]
For the title page, insert the package version number before the date.
This makes the title area more like the title are of the top-level
index, and puts the information more people are interested in first.
Fred Drake [Thu, 14 Dec 2000 18:20:22 +0000 (18:20 +0000)]
Update the test suite to cover more ground.
This closes patch #102477.
Fred Drake [Thu, 14 Dec 2000 18:16:11 +0000 (18:16 +0000)]
Lots of small bug fixes and DOM API conformance improvements:
Make Node inherit from xml.dom.Node to pick up the NodeType values
defined by the W3C recommendation.
When raising AttributeError, be sure to provide the name of the attribute
that does not exist.
Node.normalize(): Make sure we do not allow an empty text node to survive
as the first child; update the sibling links properly.
_getElementsByTagNameNSHelper(): Make recursive calls using the right
number of parameters.
Attr.__setattr__(): Be sure to update name and nodeName at the same time
since they are synonyms for this node type.
AttributeList: Renamed to NamedNodeMap (AttributeList maintained as an
alias). Compute the length attribute dynamically to allow
the underlying structures to mutate.
AttributeList.item(): Call .keys() on the dictionary rather than using
self.keys() for performance.
AttributeList.setNamedItem(), .setNamedItemNS():
Added methods.
Text.splitText():
Added method.
DocumentType:
Added implementation class.
DOMImplementation:
Added implementation class.
Document.appendChild(): Do not allow a second document element to be added.
Document.documentElement: Find this dynamically, so that one can be
removed and another added.
Document.unlink(): Clear the doctype attribute.
_get_StringIO(): Only use the StringIO module; cStringIO does not support
Unicode.
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.