Michael W. Hudson [Thu, 20 Feb 2003 17:59:17 +0000 (17:59 +0000)]
As far as I can tell PyEval_GetOwner was removed in 1997 (when it was
called something else!). I can't imagine removing the prototype is
going to hurt, but put it back if *you* can.
Guido van Rossum [Thu, 20 Feb 2003 02:52:04 +0000 (02:52 +0000)]
Add PEP 301 metadata.
Guido van Rossum [Thu, 20 Feb 2003 02:11:43 +0000 (02:11 +0000)]
Don't use self.announce() in a function that's not a method.
Use level=3 (i.e. log.WARN) for the warnings about failed imports.
(Hmm... Why is that code in an "if 1: ..."? What's the else branch
for?)
Guido van Rossum [Thu, 20 Feb 2003 02:10:08 +0000 (02:10 +0000)]
announce(): use the level argument to control the log level.
Guido van Rossum [Thu, 20 Feb 2003 02:09:30 +0000 (02:09 +0000)]
set_verbosity(): do something reasonable for out-of-range verbosity
levels. (Previously, -vvv would be the same as -q!)
Guido van Rossum [Thu, 20 Feb 2003 01:56:17 +0000 (01:56 +0000)]
Prepped for 2.3b1.
Added an extra blank line before "What's New in Python 2.2 final?".
Guido van Rossum [Thu, 20 Feb 2003 01:52:48 +0000 (01:52 +0000)]
Match parentheses.
Guido van Rossum [Thu, 20 Feb 2003 01:38:31 +0000 (01:38 +0000)]
Merge in changes made to the 2.3a2 release.
David Goodger [Wed, 19 Feb 2003 23:31:51 +0000 (23:31 +0000)]
fixed markup
Guido van Rossum [Wed, 19 Feb 2003 18:18:47 +0000 (18:18 +0000)]
Update versions/dates for release of 2.3a2. Added some last-minute news.
Guido van Rossum [Wed, 19 Feb 2003 17:50:16 +0000 (17:50 +0000)]
The connect timeout code wasn't working on Windows.
Rather than trying to second-guess the various error returns
of a second connect(), use select() to determine whether the
socket becomes writable (which means connected).
Walter Dörwald [Wed, 19 Feb 2003 16:34:11 +0000 (16:34 +0000)]
Add a note about the recent PEP 293 changes.
Fred Drake [Wed, 19 Feb 2003 16:08:08 +0000 (16:08 +0000)]
Added a note about the new itertools module. (Omission noted by
Gerrit Holl in email to python-docs.)
Guido van Rossum [Wed, 19 Feb 2003 15:53:17 +0000 (15:53 +0000)]
- PyEval_GetFrame() is now declared to return a PyFrameObject *
instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
Guido van Rossum [Wed, 19 Feb 2003 15:25:10 +0000 (15:25 +0000)]
- sys.path[0] (the directory from which the script is loaded) is now
turned into an absolute pathname, unless it is the empty string.
(SF patch #664376, by Skip Montanaro.)
Andrew M. Kuchling [Wed, 19 Feb 2003 14:27:21 +0000 (14:27 +0000)]
Include download_url in the data POSTed to the catalog server
Andrew M. Kuchling [Wed, 19 Feb 2003 14:16:01 +0000 (14:16 +0000)]
[Patch #683939] Add download_url field to metadata
Andrew M. Kuchling [Wed, 19 Feb 2003 13:49:35 +0000 (13:49 +0000)]
[Patch #684398] Rename verbose argument to show-response; don't conditionalize the get_classifiers() call
Andrew M. Kuchling [Wed, 19 Feb 2003 13:46:18 +0000 (13:46 +0000)]
logging.warn() renamed to warning()
Andrew MacIntyre [Wed, 19 Feb 2003 12:51:34 +0000 (12:51 +0000)]
OS/2 has no concept of file ownership, like DOS & MS Windows version
prior to NT. EMX has a number of Posix emulation routines, including
geteuid() but lacks chown(), so silently skip trying to actually set
a file ownership when extracting a file from a tar archive.
Andrew MacIntyre [Wed, 19 Feb 2003 12:42:36 +0000 (12:42 +0000)]
OS/2 EMX build updates for recent CVS changes
Jack Jansen [Wed, 19 Feb 2003 10:37:08 +0000 (10:37 +0000)]
Use pythonw as the default interpreter also for .py scripts (overridable
by the user), as this will cause the least surprises with scripts
brought over from other unixen. Suggested by Kevin Altis.
Mark Hammond [Wed, 19 Feb 2003 04:08:27 +0000 (04:08 +0000)]
os.mkdir() would crash with a Unicode filename and mode param.
Guido van Rossum [Wed, 19 Feb 2003 03:19:29 +0000 (03:19 +0000)]
PyObject_Generic{Get,Set}Attr:
Don't access tp_descr_{get,set} of a descriptor without checking the
flag bits of the descriptor's type. While we know that the main type
(the type of the object whose attribute is being accessed) has all the
right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be
called), we don't know that for its class attributes!
Will backport to 2.2.
Tim Peters [Wed, 19 Feb 2003 02:44:12 +0000 (02:44 +0000)]
Reverted whitespace normalization on this file. I should really change
this thing so it doesn't rely on being unnormalized. (That's the
editorial "I", if anyone's listening <wink>.)
Tim Peters [Wed, 19 Feb 2003 02:41:44 +0000 (02:41 +0000)]
Removed debugging print in test_tarfile.
In the Windows installer, continued the endless battle to copy over files
with new one-shot extensions.
Tim Peters [Wed, 19 Feb 2003 02:35:07 +0000 (02:35 +0000)]
Whitespace normalization.
Guido van Rossum [Wed, 19 Feb 2003 01:58:53 +0000 (01:58 +0000)]
Rename _better_reduce to _reduce_2, to make sure that any code that
was still referencing it will fail. Also removed some debug cruft
from _reduce_ex.
Guido van Rossum [Wed, 19 Feb 2003 01:45:13 +0000 (01:45 +0000)]
Use __reduce_ex__.
Guido van Rossum [Wed, 19 Feb 2003 01:20:40 +0000 (01:20 +0000)]
Remove now unused _better_reduce.
Guido van Rossum [Wed, 19 Feb 2003 01:19:28 +0000 (01:19 +0000)]
Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.
Mark Hammond [Wed, 19 Feb 2003 00:33:33 +0000 (00:33 +0000)]
Fix bug 683658 - PyErr_Warn may cause import deadlock.
Jack Jansen [Tue, 18 Feb 2003 23:33:39 +0000 (23:33 +0000)]
Undid half of the previous checkin: continue using BuildApplet for most
applets. PackageManager is still built with bundlebuilder itself.
Jack Jansen [Tue, 18 Feb 2003 23:32:47 +0000 (23:32 +0000)]
Added a note that MacOSX applets can no longer be run from a terminal window.
Jack Jansen [Tue, 18 Feb 2003 23:30:27 +0000 (23:30 +0000)]
Enable argv emulation if required.
Fixed a bug for applets with their own plist files.
Jack Jansen [Tue, 18 Feb 2003 23:29:46 +0000 (23:29 +0000)]
Added an argv_emulation option (command line option: --argv or -a) which
creates the sys.argv emulation wrapper for droplets. Also updates
the plist, if needed, and the includedModules (but this last is untested).
Jack Jansen [Tue, 18 Feb 2003 23:28:05 +0000 (23:28 +0000)]
Argvemulator still used the old Alias API. Fixed.
Guido van Rossum [Tue, 18 Feb 2003 22:49:10 +0000 (22:49 +0000)]
Remove unused _better_reduce (which will disappear soon) and
_reconstructor (whose import here is a mystery to me).
Guido van Rossum [Tue, 18 Feb 2003 22:41:24 +0000 (22:41 +0000)]
Three test cases for __reduce_ex__. This fails for cPickle, until Tim
checks in his changes to support this in cPickle.c.
Tim Peters [Tue, 18 Feb 2003 22:17:40 +0000 (22:17 +0000)]
I entered the wrong year for 2.3a2.
Fred Drake [Tue, 18 Feb 2003 22:11:58 +0000 (22:11 +0000)]
Bump version number.
Guido van Rossum [Tue, 18 Feb 2003 22:05:12 +0000 (22:05 +0000)]
Introducing __reduce_ex__, which is called with a protocol number argument
if it exists in preference over __reduce__. Now Tim can go implement this
in cPickle.c.
Tim Peters [Tue, 18 Feb 2003 22:00:05 +0000 (22:00 +0000)]
Bump Windows build number for 2.3a2.
Tim Peters [Tue, 18 Feb 2003 21:58:53 +0000 (21:58 +0000)]
Bump version # to 2.3a2.
Andrew M. Kuchling [Tue, 18 Feb 2003 21:28:20 +0000 (21:28 +0000)]
Use python.org as the repository
Tim Peters [Tue, 18 Feb 2003 20:50:45 +0000 (20:50 +0000)]
save_global(): Trying to resolve module.name can fail for two
reasons: importing module can fail, or the attribute lookup
module.name can fail. We were giving the same error msg for
both cases, making it needlessly hard to guess what went wrong.
These cases give different error msgs now.
Tim Peters [Tue, 18 Feb 2003 19:32:50 +0000 (19:32 +0000)]
Removed unreferenced label.
Guido van Rossum [Tue, 18 Feb 2003 19:22:22 +0000 (19:22 +0000)]
The recent changes to super(), in particular supercheck(), broke when
using super() for an instance in a metaclass situation. Because the
class was a metaclass, the instance was a class, and hence the
PyType_Check() branch was taken. But this branch didn't apply. Make
it so that if this branch doesn't apply, the other branch is still
tried. All tests pass.
Guido van Rossum [Tue, 18 Feb 2003 17:18:35 +0000 (17:18 +0000)]
Make __module__ writable except in restricted mode (like for classic classes).
Jeremy Hylton [Tue, 18 Feb 2003 17:02:15 +0000 (17:02 +0000)]
Make __module__ settable on functions and methods.
Tim Peters [Tue, 18 Feb 2003 16:54:41 +0000 (16:54 +0000)]
One doctest displaying a dict didn't sort it first. *Maybe* this fixes
the AIX problem with this test.
Guido van Rossum [Tue, 18 Feb 2003 16:40:09 +0000 (16:40 +0000)]
default_3way_compare(): use PyNumber_Check(), rather than testing for
tp_as_number directly.
Guido van Rossum [Tue, 18 Feb 2003 16:36:28 +0000 (16:36 +0000)]
Make PyNumber_Check() a bit more careful, since all sorts of things
now have tp_as_number. Check for nb_int or nb_float.
Guido van Rossum [Tue, 18 Feb 2003 16:11:11 +0000 (16:11 +0000)]
Fold some long lines.
Change fatal errors during module initialization into RuntimeErrors.
Neal Norwitz [Tue, 18 Feb 2003 15:45:44 +0000 (15:45 +0000)]
Fix SF bug #688424, 64-bit test problems
Neal Norwitz [Tue, 18 Feb 2003 15:22:10 +0000 (15:22 +0000)]
Fix SF bug #688424, 64-bit test problems
Jeremy Hylton [Tue, 18 Feb 2003 15:06:17 +0000 (15:06 +0000)]
Copy the trace module here from Tools/scripts.
There are some problems with this module, but the tool works for
simple tasks and no one else has volunteered a better code coverage
tool. Should cleanup and document before the beta release.
Neal Norwitz [Tue, 18 Feb 2003 14:20:07 +0000 (14:20 +0000)]
SF patch #687683, Patches to logging (updates from Vinay)
Mostly rename WARN -> WARNING
Other misc tweaks
Update tests (not in original patch)
Jack Jansen [Tue, 18 Feb 2003 11:24:31 +0000 (11:24 +0000)]
Use "$@" to pass arguments to Python in stead of "${1}". This passes all
arguments, and also does the right thing for the no argument case.
Jack Jansen [Tue, 18 Feb 2003 10:24:34 +0000 (10:24 +0000)]
Don't try to build dl on darwin. It doesn't build out of the box, and it
wouldn't serve a useful purpose anyway.
Neal Norwitz [Tue, 18 Feb 2003 03:37:49 +0000 (03:37 +0000)]
Fix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs.
Use "l" as that *probably* makes more sense (at least to me it does :-)
And the test passes on the alpha.
Andrew M. Kuchling [Tue, 18 Feb 2003 01:28:51 +0000 (01:28 +0000)]
[Patch #681504] Call customize_compiler in config command
Andrew M. Kuchling [Tue, 18 Feb 2003 00:56:56 +0000 (00:56 +0000)]
Add two acks; bump version number
Andrew M. Kuchling [Tue, 18 Feb 2003 00:48:23 +0000 (00:48 +0000)]
[Bug #688261] Fix optparse example and output
Andrew M. Kuchling [Tue, 18 Feb 2003 00:43:24 +0000 (00:43 +0000)]
[Bug #683416] Make PEP263 coverage a bit more explicit, and add it to the
porting section
Neal Norwitz [Mon, 17 Feb 2003 22:40:31 +0000 (22:40 +0000)]
Make changes suggested by Walter to use self.assert*() methods.
Neal Norwitz [Mon, 17 Feb 2003 22:38:56 +0000 (22:38 +0000)]
Import test_support properly
Tim Peters [Mon, 17 Feb 2003 21:48:48 +0000 (21:48 +0000)]
test_posix is an expected skip on Win32. Also fixed test_posix to
import from test.test_support instead of directly from test_support.
Kurt B. Kaiser [Mon, 17 Feb 2003 18:57:16 +0000 (18:57 +0000)]
M NEWS.txt
M PyShell.py
M ScriptBinding.py
M rpc.py
M run.py
Clean up the way IDLEfork handles termination of the subprocess, restore
ability to interrupt user code in Windows (so long as it's doing terminal
I/O).
1. Handle subprocess interrupts in Windows with an RPC message.
2. Run/F5 will restart the subprocess even if user code is running.
3. Restart the subprocess if the link is dropped.
4. Exit IDLE cleanly even during I/O.
4. In rpc.py, remove explicit calls to statelock, let the condition
variable handle acquire() and release().
Neal Norwitz [Mon, 17 Feb 2003 18:57:06 +0000 (18:57 +0000)]
Fix SF bug #687655, String formatting conversions misleading
Marc-André Lemburg [Mon, 17 Feb 2003 18:31:57 +0000 (18:31 +0000)]
Add URL for PEP to the source code encoding warning.
Remove the usage of PyErr_WarnExplicit() since this could cause
sensitive information from the source files to appear in e.g.
log files.
Neal Norwitz [Mon, 17 Feb 2003 18:18:00 +0000 (18:18 +0000)]
Remove PyArg_ParseTuple() for methods which take no args,
use METH_NOARGS instead
Neal Norwitz [Mon, 17 Feb 2003 18:17:05 +0000 (18:17 +0000)]
Added test_posix (hopefully it works on Windows).
Remove PyArg_ParseTuple() for methods which take no args,
use METH_NOARGS instead
Neal Norwitz [Mon, 17 Feb 2003 18:05:20 +0000 (18:05 +0000)]
Use correct function name to PyArg_ParseTuple("is_package").
Fix off-by-1 error in normalize_line_endings():
when *p == '\0' the NUL was copied into q and q was auto-incremented,
the loop was broken out of,
then a newline was appended followed by a NUL.
So the function, in effect, was strcpy() but added two extra chars
which was caught by obmalloc in debug mode, since there was only
room for 1 additional newline.
Get test working under regrtest (added test_main).
Jack Jansen [Mon, 17 Feb 2003 16:47:12 +0000 (16:47 +0000)]
When installing resource files whose name ends in .rsrc use the
"copy anything to a data fork based resource file" trick of macresource.
Fixes #688007.
Jack Jansen [Mon, 17 Feb 2003 15:40:00 +0000 (15:40 +0000)]
Optionally honour #! paths in scripts. Fixes #676358.
Neal Norwitz [Mon, 17 Feb 2003 14:51:41 +0000 (14:51 +0000)]
Actually run these tests from regrtest.py.
There was no test_main() and the main body was protected
by if __name__ == '__main__' so the test didn't happen
on import either.
Michael W. Hudson [Mon, 17 Feb 2003 12:26:23 +0000 (12:26 +0000)]
Reword section about moving variables to os.path to match intent (or
at least, what I thought the intent was).
Jack Jansen [Mon, 17 Feb 2003 12:21:05 +0000 (12:21 +0000)]
- Added support for zip archives
- Better messages in case of a crash of the install-test script
Andrew MacIntyre [Mon, 17 Feb 2003 09:20:23 +0000 (09:20 +0000)]
Patch 686397:
move definition of platform dependent path related variables from os.py
to platform dependent path modules (ntpath, etc).
Andrew MacIntyre [Mon, 17 Feb 2003 09:17:50 +0000 (09:17 +0000)]
Tweak to Skip's checkin of patch 686397:
- 'os2' references in ntpath.py relate to the VACPP port, not the EMX port;
- the VACPP port uses the same defpath as all other ntpath.py supported
platforms except 'ce'.
Jack Jansen [Sun, 16 Feb 2003 23:03:04 +0000 (23:03 +0000)]
Better error messages and warnings.
Jack Jansen [Sun, 16 Feb 2003 23:00:53 +0000 (23:00 +0000)]
Added notes about pimp and bundlebuilder to the Mac section.
Jack Jansen [Sun, 16 Feb 2003 21:28:51 +0000 (21:28 +0000)]
When building an applet clear out the tempfile and dir afterwards.
Guido van Rossum [Sun, 16 Feb 2003 01:12:32 +0000 (01:12 +0000)]
Fix for SF 686380, from SF patch 686771 by Ping. (errors trying to
get help on os attributes)
Neal Norwitz [Sat, 15 Feb 2003 15:07:17 +0000 (15:07 +0000)]
Make 2 module variables static. Assuming this is correct.
Neal Norwitz [Sat, 15 Feb 2003 14:45:12 +0000 (14:45 +0000)]
Add closing ) in comment
Tim Peters [Sat, 15 Feb 2003 03:01:11 +0000 (03:01 +0000)]
cPickle.c, load_build(): Taught cPickle how to pick apart
the optional proto 2 slot state.
pickle.py, load_build(): CAUTION: Noted that cPickle's
load_build and pickle's load_build really don't do the same
things with the state, and didn't before this patch either.
cPickle never tries to do .update(), and has no backoff if
instance.__dict__ can't be retrieved. There are no tests
that can tell the difference, and part of what cPickle's
load_build() did looked accidental to me, so I don't know
what the true intent is here.
pickletester.py, test_pickle.py: Got rid of the hack for
exempting cPickle from running some of the proto 2 tests.
dictobject.c, PyDict_Next(): documented intended use.
Jack Jansen [Fri, 14 Feb 2003 23:46:22 +0000 (23:46 +0000)]
Moved setupDocs.py to Doc/setup.py and did some cleanup. It now at least
allows bdist, but it's still one big hack:-(
Tim Peters [Fri, 14 Feb 2003 23:05:28 +0000 (23:05 +0000)]
cPickle produces NEWOBJ appropriately now. It still doesn't know
how to unpickle the new slot-full state tuples.
Marc-André Lemburg [Fri, 14 Feb 2003 20:25:56 +0000 (20:25 +0000)]
Patch for bug reported in patch #686627: import race condition in
codecs registry startup.
Skip Montanaro [Fri, 14 Feb 2003 19:35:31 +0000 (19:35 +0000)]
Migrate definitions of several platform-dependent path-related variables
into the relevant path modules. See patch #686397.
Guido van Rossum [Fri, 14 Feb 2003 19:29:22 +0000 (19:29 +0000)]
- The audio driver tests (test_ossaudiodev.py and
test_linuxaudiodev.py) are no longer run by default. This is
because they don't always work, depending on your hardware and
software. To run these tests, you must use an invocation like
./python Lib/test/regrtest.py -u audio test_ossaudiodev
Jack Jansen [Fri, 14 Feb 2003 14:13:25 +0000 (14:13 +0000)]
Allow opening of alternate databases.
Jack Jansen [Fri, 14 Feb 2003 14:11:59 +0000 (14:11 +0000)]
Factored out classes for handling source and binary distributions. Source
now means "distutils-based source", binary "bdist format archive". Also
fixed various lurking bugs.
Jack Jansen [Fri, 14 Feb 2003 12:47:14 +0000 (12:47 +0000)]
Got building documentation from source to work.
Walter Dörwald [Fri, 14 Feb 2003 11:21:53 +0000 (11:21 +0000)]
Port test_charmapcodec to PyUnit. From SF patch #662807
Fred Drake [Fri, 14 Feb 2003 06:39:37 +0000 (06:39 +0000)]
extsep description:
- avoid "e.g." in text
- record version information
(should be backported)
Skip Montanaro [Fri, 14 Feb 2003 05:45:31 +0000 (05:45 +0000)]
add missing description of os.extsep
Raymond Hettinger [Fri, 14 Feb 2003 03:42:11 +0000 (03:42 +0000)]
SF bug #663701: sets module review
Renamed hook methods to use the double underscore convention.