]>
granicus.if.org Git - python/log
Just van Rossum [Wed, 2 Jul 2003 20:03:04 +0000 (20:03 +0000)]
Fix and test for bug #764548:
Use isinstance() instead of comparing types directly, to enable
subclasses of str and unicode to be used as patterns.
Blessed by /F.
Skip Montanaro [Wed, 2 Jul 2003 15:32:48 +0000 (15:32 +0000)]
Note that csv files (when they are actual files) must be opened in 'b'inary
mode. Note that the only restriction on the csvfile passed to writer
objects is that it have a write method.
Raymond Hettinger [Wed, 2 Jul 2003 15:31:54 +0000 (15:31 +0000)]
SF bug #764616: execfile(filename,...) not execfile(file,...)
Clarify parameter name.
Raymond Hettinger [Wed, 2 Jul 2003 15:10:38 +0000 (15:10 +0000)]
Grammar nit. SF bug #757822
Fred Drake [Wed, 2 Jul 2003 14:44:55 +0000 (14:44 +0000)]
Revert the previous change; this is now dealt with in a better way.
Fred Drake [Wed, 2 Jul 2003 14:44:08 +0000 (14:44 +0000)]
There's a better way to deal with the "comment" environment; I found
this in SF patch #732174.
Just van Rossum [Wed, 2 Jul 2003 14:36:59 +0000 (14:36 +0000)]
fixed typo in comment
Fred Drake [Wed, 2 Jul 2003 14:33:11 +0000 (14:33 +0000)]
Make the "install schema" tables follow the same table style we use
elsewhere (lines between columns).
Fred Drake [Wed, 2 Jul 2003 14:25:04 +0000 (14:25 +0000)]
The Macintosh Modules Reference now formats to GNU info without errors
(which is not to say it's right), so re-enable it.
Documenting Python and Installing Python Modules still have problems
when converting to GNU info, so we'll continue to leave them out for
now.
Fred Drake [Wed, 2 Jul 2003 14:22:48 +0000 (14:22 +0000)]
Fill out the set of macros and environments supported somewhat.
Some of this is still pretty iffy.
Andrew MacIntyre [Wed, 2 Jul 2003 14:05:08 +0000 (14:05 +0000)]
On those systems lacking the AFMT_S16_NE symbol, the test was failing
because it was still looking in the ossaudiodev module namespace for
this symbol.
As the symbol has already been rebound as a global, use that instead.
Andrew MacIntyre [Wed, 2 Jul 2003 13:53:25 +0000 (13:53 +0000)]
FreeBSD 5.x has moved some library routines and typedefs outside the
scope of the _XOPEN_SOURCE and _POSIX_C_SOURCE symbols, including:
- getloadavg()
- typedefs for u_int, u_long, u_char, u_short, ushort & uint
These are now all defined under the control of a __BSD_VISIBLE symbol.
The lack of the typedefs causes several extension modules to build
incorrectly or not at all, and is the cause of failures reported for
test_socket and test_tempfile on this platform
(see python-dev: 29/6/03, pieterb@gewis.nl, "Running tests on freebsd5")
This change does not appear to be needed in the 2.2 branch.
Fred Drake [Wed, 2 Jul 2003 13:42:51 +0000 (13:42 +0000)]
The datetime C API really isn't usable outside the datetime module
implementation, so remove this decoy (it break formatting of the GNU
info version of the docs).
Fred Drake [Wed, 2 Jul 2003 12:27:43 +0000 (12:27 +0000)]
Fix a variety of small markup nits.
Jack Jansen [Wed, 2 Jul 2003 09:20:09 +0000 (09:20 +0000)]
Moved the IDE tutorial to a directory with a shorter name. The long
name was giving problems with some tar implementations.
Neal Norwitz [Wed, 2 Jul 2003 02:49:33 +0000 (02:49 +0000)]
SF #764121, docstring for spawnlp incorrect
Neal Norwitz [Tue, 1 Jul 2003 21:12:47 +0000 (21:12 +0000)]
Fix SF bug #763637, 2.3b2 unpack tuple of wrong size in after_cancel
Tk 8.4 may return different values than 8.3. This fix should handle
either version.
Just van Rossum [Tue, 1 Jul 2003 20:22:30 +0000 (20:22 +0000)]
- added (c)StringIO tests; cStringIO usage failed in the previous
version of plistlib.py (r1.2)
Just van Rossum [Tue, 1 Jul 2003 20:15:38 +0000 (20:15 +0000)]
- replaced a couple of asserts with proper exceptions
- use isinstance instead of flaky file-detection code
Neal Norwitz [Tue, 1 Jul 2003 20:15:21 +0000 (20:15 +0000)]
Use appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macros
Tim Peters [Tue, 1 Jul 2003 20:01:55 +0000 (20:01 +0000)]
Make the classes exposed by threading.py new-style classes. This is
mostly for convenience and to aid debugging.
Tim Peters [Tue, 1 Jul 2003 19:28:44 +0000 (19:28 +0000)]
Resolved minor XXX question in the obvious way.
Fred Drake [Tue, 1 Jul 2003 16:31:26 +0000 (16:31 +0000)]
- note that super() only applies to new-style classes;
closes SF bug #764003
- fix markup for consistency
Fred Drake [Tue, 1 Jul 2003 16:17:50 +0000 (16:17 +0000)]
normalize markup for consistency
Neal Norwitz [Tue, 1 Jul 2003 15:03:49 +0000 (15:03 +0000)]
Remove carriage returns
Neal Norwitz [Tue, 1 Jul 2003 14:59:46 +0000 (14:59 +0000)]
Fix SF bug #763023, difflib.py: ratio() zero division not caught
Backport candidate
Tim Peters [Tue, 1 Jul 2003 14:49:32 +0000 (14:49 +0000)]
connector(): You can't use an empty string as an argument to connect()
on Windows.
Tim Peters [Tue, 1 Jul 2003 14:37:59 +0000 (14:37 +0000)]
showwarning() calls formatwarning(), not showwarning().
Bugfix candidate.
Neal Norwitz [Tue, 1 Jul 2003 13:44:28 +0000 (13:44 +0000)]
Fix SF bug #763770, test_socket_ssl crash
Don't run any tests if there is no ssl support.
Raymond Hettinger [Tue, 1 Jul 2003 07:19:17 +0000 (07:19 +0000)]
Improve the wording a bit
Raymond Hettinger [Tue, 1 Jul 2003 06:29:18 +0000 (06:29 +0000)]
Fix spelling, grammar, usage, and markup.
Raymond Hettinger [Tue, 1 Jul 2003 06:19:34 +0000 (06:19 +0000)]
SF #751062: Tutorial: remove string exceptions, add parnassus, #posts
(Contributed by Gerritt Holl)
* Remove the last mentions of string exceptions
* Reference a third-party repository of programs
* Minor clarification of comp.lang.py posting volumes
Raymond Hettinger [Tue, 1 Jul 2003 05:49:02 +0000 (05:49 +0000)]
Test Brett's addition of __all__ to Queue.
Brett Cannon [Tue, 1 Jul 2003 05:34:27 +0000 (05:34 +0000)]
Add __all__ .
Brett Cannon [Tue, 1 Jul 2003 05:16:08 +0000 (05:16 +0000)]
Make temporary change of using _strptime for time.strptime permanent.
Flesh out docs to better explain time.strptime (closes bug #697990).
Neal Norwitz [Tue, 1 Jul 2003 04:14:28 +0000 (04:14 +0000)]
SF bug 753592, websucker bug
Pass the proper variable when the user supplies a directory.
Will backport.
Neal Norwitz [Tue, 1 Jul 2003 03:33:31 +0000 (03:33 +0000)]
Fix SF #763362, test_posixpath failed
Don't check expanduser('~') if the home directory == the root directory
(ie, we are running as root).
Mark Hammond [Tue, 1 Jul 2003 00:13:27 +0000 (00:13 +0000)]
Support 'mbcs' as a 'built-in' encoding, so the C API can use it without
defering to the encodings package.
As described in [ 763111 ] mbcs encoding should skip encodings package
Neal Norwitz [Mon, 30 Jun 2003 21:47:47 +0000 (21:47 +0000)]
Add versionadded info for the 2 new threading module functions
Thomas Heller [Mon, 30 Jun 2003 19:33:29 +0000 (19:33 +0000)]
Document the DISTUTILS_DEBUG variable.
Closes sf #761401.
Backport candidate.
Neal Norwitz [Mon, 30 Jun 2003 19:22:12 +0000 (19:22 +0000)]
Fix typo in error message
Fred Drake [Mon, 30 Jun 2003 13:38:38 +0000 (13:38 +0000)]
We are now post-beta 2.
Fred Drake [Mon, 30 Jun 2003 12:18:52 +0000 (12:18 +0000)]
Added missing name (textwrap.dedent() docs).
Walter Dörwald [Mon, 30 Jun 2003 11:57:52 +0000 (11:57 +0000)]
Don't require that a RuntimeError is raised when playing a second
sound while the first one is still running, as the first one
one might already have finished.
Fixes part of SF bug #763052.
Raymond Hettinger [Mon, 30 Jun 2003 04:27:31 +0000 (04:27 +0000)]
SF bug #762990: Awful Grammar in Python Tutorial
Fixed a nit.
Raymond Hettinger [Mon, 30 Jun 2003 04:18:48 +0000 (04:18 +0000)]
Fix SF 762891: "del p[key]" on proxy object raises SystemError()
Raymond Hettinger [Mon, 30 Jun 2003 03:35:06 +0000 (03:35 +0000)]
Merge branch updates back into the main trunk
Neal Norwitz [Mon, 30 Jun 2003 03:25:20 +0000 (03:25 +0000)]
Fix SF #754870, SSL crash interpreter when remote side closes during connect
Also fix a memory leak.
Tim Peters [Mon, 30 Jun 2003 02:14:28 +0000 (02:14 +0000)]
Bump version string to "2.3b2+".
Neal Norwitz [Mon, 30 Jun 2003 01:54:04 +0000 (01:54 +0000)]
Fix typo, refer to proper argument name
Just van Rossum [Sun, 29 Jun 2003 22:20:26 +0000 (22:20 +0000)]
restore 2.2 compatibility:
- don't use "abc" in aString
- don't reorganize extension modules when not using zipimport
Just van Rossum [Sun, 29 Jun 2003 21:54:12 +0000 (21:54 +0000)]
- added --semi-standalone option that builds apps that depend on an
installed Python, yet include any modules not in the std lib
- reworked extension module inclusion code: put all .so files in
a subdirectory of Contents/Resources/, but more importantly,
correctly support extensions that are submodules.
Raymond Hettinger [Sun, 29 Jun 2003 20:36:23 +0000 (20:36 +0000)]
More tests
* Test with infinite inputs (using take() on the output)
* Test whether GC can find and eliminate cycles.
Fred Drake [Sun, 29 Jun 2003 18:12:23 +0000 (18:12 +0000)]
Fix broken markup, & tweak a couple of things for consistency.
Jeremy Hylton [Sun, 29 Jun 2003 17:55:05 +0000 (17:55 +0000)]
Fix sf bug 666219: assertion error in httplib.
The obvious way for this assertion to fail is if the LineAndFileWrapper constructor is called when an empty line. Raise a BadStatusError before the call.
Jeremy Hylton [Sun, 29 Jun 2003 17:25:39 +0000 (17:25 +0000)]
Add several news items for changes I made since b1.
Tim Peters [Sun, 29 Jun 2003 17:24:17 +0000 (17:24 +0000)]
Whitespace normalization.
Tim Peters [Sun, 29 Jun 2003 17:12:30 +0000 (17:12 +0000)]
Removed XXX comments about missing threading.py functions.
Barry Warsaw [Sun, 29 Jun 2003 17:10:11 +0000 (17:10 +0000)]
Added news about os.environ['PYTHONINSPECT'] = 'yes'
Jeremy Hylton [Sun, 29 Jun 2003 17:07:46 +0000 (17:07 +0000)]
Remove stub settrace() and setprofile() calls.
Barry Warsaw [Sun, 29 Jun 2003 17:07:06 +0000 (17:07 +0000)]
Py_Main(): Add a check for the PYTHONINSPECT environment variable
after running the script so that a program could do something like:
os.environ['PYTHONINSPECT'] = 1
to programmatically enter a prompt at the end.
(After a patch by Skip Montanaro w/ proposal by Troy Melhase
Jeremy Hylton [Sun, 29 Jun 2003 16:59:59 +0000 (16:59 +0000)]
Fix grammar in comment.
Jeremy Hylton [Sun, 29 Jun 2003 16:59:43 +0000 (16:59 +0000)]
Whitespace normalization.
Jeremy Hylton [Sun, 29 Jun 2003 16:58:41 +0000 (16:58 +0000)]
Add settrace() and setprofile() functions to the threading library.
Tim Peters [Sun, 29 Jun 2003 16:56:38 +0000 (16:56 +0000)]
Typo repair.
Fred Drake [Sun, 29 Jun 2003 16:55:47 +0000 (16:55 +0000)]
Update copyright years.
Tim Peters [Sun, 29 Jun 2003 16:50:06 +0000 (16:50 +0000)]
Provide dummy (do-nothing) settrace() and setprofile() functions until
Jeremy can check in the real things.
Tim Peters [Sun, 29 Jun 2003 16:18:08 +0000 (16:18 +0000)]
Filled in release date; repaired grammar in a news item.
Skip Montanaro [Sun, 29 Jun 2003 16:01:51 +0000 (16:01 +0000)]
minor wordsmithing
Raymond Hettinger [Sun, 29 Jun 2003 15:57:50 +0000 (15:57 +0000)]
Removed invalid test.
Analysis by Bob Halley:
The test seems to expect that if time.daylight is true, then the
is_dst field of the tm structure will be 1 too. But this isn't
the case, since daylight is true if the timezone does DST, *not*
if DST is in effect.
Andrew MacIntyre [Sun, 29 Jun 2003 15:46:21 +0000 (15:46 +0000)]
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
Raymond Hettinger [Sun, 29 Jun 2003 15:44:07 +0000 (15:44 +0000)]
SF bug #762455: Python segfaults when sys.stdout is changed in getattr
* Added unittest that fails before, but not after Neil's fix to ceval.c.
Neal Norwitz [Sun, 29 Jun 2003 14:48:32 +0000 (14:48 +0000)]
Fix SF #762455, segfault when sys.stdout is changed in getattr
Will backport.
Tim Peters [Sun, 29 Jun 2003 05:46:54 +0000 (05:46 +0000)]
Whitespace normalization.
Tim Peters [Sun, 29 Jun 2003 05:30:48 +0000 (05:30 +0000)]
Some nifty doctest extensions from Jim Fulton, currently used in Zope3.
I won't have time to write real docs, but spent a lot of time adding
comments to his code and fleshing out the exported functions' docstrings.
There's probably opportunity to consolidate how docstrings get extracted
too, and the new code for that is probably better than the old code for
that (which strained mightily to recover from 2.2's new class/type
gimmicks).
Raymond Hettinger [Sun, 29 Jun 2003 05:06:56 +0000 (05:06 +0000)]
SF bug #430160: CGIHTTPServer.py POST bug using IE
Minor improvement to previous bugfix.
Eating the remaining characters would lead to an endless loop
without a termination test.
Raymond Hettinger [Sun, 29 Jun 2003 04:55:59 +0000 (04:55 +0000)]
SF patch #760257: add socket.timeout exception
(Contributed by Bob Halley)
Add documentation for the new socket.timeout exception.
Raymond Hettinger [Sun, 29 Jun 2003 04:53:23 +0000 (04:53 +0000)]
Minor fixes to punctuation and grammar.
Neal Norwitz [Sun, 29 Jun 2003 04:50:34 +0000 (04:50 +0000)]
Add missing self. before curNode. This may need to be committed
to PyXML, I'm not sure of the procedure.
Raymond Hettinger [Sun, 29 Jun 2003 04:40:22 +0000 (04:40 +0000)]
SF patch #760257: add socket.timeout exception
(Contributed by Bob Halley)
Add unittests for the new socket.timeout exception.
Neal Norwitz [Sun, 29 Jun 2003 04:23:35 +0000 (04:23 +0000)]
Fix arguments for instantiating InterpolationSyntaxError
Neal Norwitz [Sun, 29 Jun 2003 04:21:43 +0000 (04:21 +0000)]
Comment out cap, it was unused.
Should all the commented out code be removed?
Neal Norwitz [Sun, 29 Jun 2003 04:19:37 +0000 (04:19 +0000)]
whitespace normalization
Neal Norwitz [Sun, 29 Jun 2003 04:18:15 +0000 (04:18 +0000)]
remove unused import math
Neal Norwitz [Sun, 29 Jun 2003 04:17:45 +0000 (04:17 +0000)]
remove extra parameter from _java_getprop, remove duplicate imports
Neal Norwitz [Sun, 29 Jun 2003 04:16:49 +0000 (04:16 +0000)]
use == like all the other conditionals
Neal Norwitz [Sun, 29 Jun 2003 04:16:28 +0000 (04:16 +0000)]
fix problems found by pychecker
Raymond Hettinger [Sun, 29 Jun 2003 03:29:42 +0000 (03:29 +0000)]
SF patch #760257: add socket.timeout exception
Raymond Hettinger [Sun, 29 Jun 2003 03:27:45 +0000 (03:27 +0000)]
Added Bob Halley for work on socket.timeout
Tim Peters [Sun, 29 Jun 2003 03:11:20 +0000 (03:11 +0000)]
Missed a spot where the new optional optionflags argument needed to get
passed on.
Raymond Hettinger [Sun, 29 Jun 2003 03:08:05 +0000 (03:08 +0000)]
SF patch #760257: add socket.timeout exception
(Contributed by Bob Halley)
Added a new exception, socket.timeout so that timeouts can be differentiated
from other socket exceptions.
Docs, more tests, and newsitem to follow.
Fred Drake [Sun, 29 Jun 2003 02:17:28 +0000 (02:17 +0000)]
Bump version information for Python 2.3 beta 2.
Fred Drake [Sun, 29 Jun 2003 02:14:31 +0000 (02:14 +0000)]
Document PyThreadState_SetAsyncExc().
Tim Peters [Sun, 29 Jun 2003 00:57:17 +0000 (00:57 +0000)]
Bump release level to 2.3b2.
Jack Jansen [Sun, 29 Jun 2003 00:24:12 +0000 (00:24 +0000)]
Slight clarification on running the examples from the Finder.
Jack Jansen [Sun, 29 Jun 2003 00:17:23 +0000 (00:17 +0000)]
Suggest people visit www.python.org/packman if the default database
cannot be found.
Jack Jansen [Sun, 29 Jun 2003 00:09:18 +0000 (00:09 +0000)]
Use http://www.python.org/packman as the base URL. Also upped the version
number because of this.
Jack Jansen [Sat, 28 Jun 2003 23:38:04 +0000 (23:38 +0000)]
By default build docs, don't download them.
Guido van Rossum [Sat, 28 Jun 2003 21:53:52 +0000 (21:53 +0000)]
Add PyThreadState_SetAsyncExc(long, PyObject *).
A new API (only accessible from C) to interrupt a thread by sending it
an exception. This is not always effective, but might help some people.
Requested by Just van Rossum and Alex Martelli. It is intentional
that you have to write your own C extension to call it from Python.
Docs will have to wait.
Raymond Hettinger [Sat, 28 Jun 2003 20:10:26 +0000 (20:10 +0000)]
Added Steven Taschuk for efforts fixing zipfile.py