Guido van Rossum
af16065918
announce(): use the level argument to control the log level.
2003-02-20 02:10:08 +00:00
Guido van Rossum
a85dbeb61f
set_verbosity(): do something reasonable for out-of-range verbosity
...
levels. (Previously, -vvv would be the same as -q!)
2003-02-20 02:09:30 +00:00
Guido van Rossum
351a7dd64a
Prepped for 2.3b1.
...
Added an extra blank line before "What's New in Python 2.2 final?".
2003-02-20 01:56:17 +00:00
Guido van Rossum
16c8517988
Match parentheses.
2003-02-20 01:52:48 +00:00
Guido van Rossum
a003290da5
Merge in changes made to the 2.3a2 release.
2003-02-20 01:38:31 +00:00
David Goodger
dd83cce8ea
fixed markup
2003-02-19 23:31:51 +00:00
Guido van Rossum
22e2f73d91
Update versions/dates for release of 2.3a2. Added some last-minute news.
2003-02-19 18:18:47 +00:00
Guido van Rossum
b76bdf8ef7
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).
2003-02-19 17:50:16 +00:00
Walter Dörwald
2ffec02b48
Add a note about the recent PEP 293 changes.
2003-02-19 16:34:11 +00:00
Fred Drake
cade71387e
Added a note about the new itertools module. (Omission noted by
...
Gerrit Holl in email to python-docs.)
2003-02-19 16:08:08 +00:00
Guido van Rossum
6297a7a9fb
- PyEval_GetFrame() is now declared to return a PyFrameObject *
...
instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
2003-02-19 15:53:17 +00:00
Guido van Rossum
162e38c6a3
- 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.)
2003-02-19 15:25:10 +00:00
Andrew M. Kuchling
80be59b275
Include download_url in the data POSTed to the catalog server
2003-02-19 14:27:21 +00:00
Andrew M. Kuchling
188d85f475
[Patch #683939 ] Add download_url field to metadata
2003-02-19 14:16:01 +00:00
Andrew M. Kuchling
23c98c5f47
[Patch #684398 ] Rename verbose argument to show-response; don't conditionalize the get_classifiers() call
2003-02-19 13:49:35 +00:00
Andrew M. Kuchling
3749507296
logging.warn() renamed to warning()
2003-02-19 13:46:18 +00:00
Andrew MacIntyre
7970d20792
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.
2003-02-19 12:51:34 +00:00
Andrew MacIntyre
4f28c4da36
OS/2 EMX build updates for recent CVS changes
2003-02-19 12:42:36 +00:00
Jack Jansen
cef2f7cd18
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.
2003-02-19 10:37:08 +00:00
Mark Hammond
05107b6af7
os.mkdir() would crash with a Unicode filename and mode param.
2003-02-19 04:08:27 +00:00
Guido van Rossum
90195e2616
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.
2003-02-19 03:19:29 +00:00
Tim Peters
3b5de4db92
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>.)
2003-02-19 02:44:12 +00:00
Tim Peters
8266af4f06
Removed debugging print in test_tarfile.
...
In the Windows installer, continued the endless battle to copy over files
with new one-shot extensions.
2003-02-19 02:41:44 +00:00
Tim Peters
f2715e0764
Whitespace normalization.
2003-02-19 02:35:07 +00:00
Guido van Rossum
f805cd2c1f
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.
2003-02-19 01:58:53 +00:00
Guido van Rossum
b289b87a37
Use __reduce_ex__.
2003-02-19 01:45:13 +00:00
Guido van Rossum
9c9cf41a01
Remove now unused _better_reduce.
2003-02-19 01:20:40 +00:00
Guido van Rossum
e690883ccf
Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.
2003-02-19 01:19:28 +00:00
Mark Hammond
a43fd0c899
Fix bug 683658 - PyErr_Warn may cause import deadlock.
2003-02-19 00:33:33 +00:00
Jack Jansen
4ccf3e14f0
Undid half of the previous checkin: continue using BuildApplet for most
...
applets. PackageManager is still built with bundlebuilder itself.
2003-02-18 23:33:39 +00:00
Jack Jansen
5d44b347c9
Added a note that MacOSX applets can no longer be run from a terminal window.
2003-02-18 23:32:47 +00:00
Jack Jansen
9f59d528c5
Enable argv emulation if required.
...
Fixed a bug for applets with their own plist files.
2003-02-18 23:30:27 +00:00
Jack Jansen
a03adde31b
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).
2003-02-18 23:29:46 +00:00
Jack Jansen
b135548d0d
Argvemulator still used the old Alias API. Fixed.
2003-02-18 23:28:05 +00:00
Guido van Rossum
443ada47c3
Remove unused _better_reduce (which will disappear soon) and
...
_reconstructor (whose import here is a mystery to me).
2003-02-18 22:49:10 +00:00
Guido van Rossum
2a30b21f64
Three test cases for __reduce_ex__. This fails for cPickle, until Tim
...
checks in his changes to support this in cPickle.c.
2003-02-18 22:41:24 +00:00
Tim Peters
d6cfccf4cf
I entered the wrong year for 2.3a2.
2003-02-18 22:17:40 +00:00
Fred Drake
7f90c7fcb3
Bump version number.
2003-02-18 22:11:58 +00:00
Guido van Rossum
c53f009f94
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.
2003-02-18 22:05:12 +00:00
Tim Peters
2b0643a95d
Bump Windows build number for 2.3a2.
2003-02-18 22:00:05 +00:00
Tim Peters
1441cf9dfc
Bump version # to 2.3a2.
2003-02-18 21:58:53 +00:00
Andrew M. Kuchling
e12dcd7ff4
Use python.org as the repository
2003-02-18 21:28:20 +00:00
Tim Peters
b9ce7cd8b8
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.
2003-02-18 20:50:45 +00:00
Tim Peters
97e5ff555e
Removed unreferenced label.
2003-02-18 19:32:50 +00:00
Guido van Rossum
8e80a72be4
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.
2003-02-18 19:22:22 +00:00
Guido van Rossum
6b29c0147b
Make __module__ writable except in restricted mode (like for classic classes).
2003-02-18 17:18:35 +00:00
Jeremy Hylton
ff71c98449
Make __module__ settable on functions and methods.
2003-02-18 17:02:15 +00:00
Tim Peters
e2052ab82a
One doctest displaying a dict didn't sort it first. *Maybe* this fixes
...
the AIX problem with this test.
2003-02-18 16:54:41 +00:00
Guido van Rossum
fb50d3ffa1
default_3way_compare(): use PyNumber_Check(), rather than testing for
...
tp_as_number directly.
2003-02-18 16:40:09 +00:00
Guido van Rossum
6921eca227
Make PyNumber_Check() a bit more careful, since all sorts of things
...
now have tp_as_number. Check for nb_int or nb_float.
2003-02-18 16:36:28 +00:00