Thomas Wouters [Thu, 24 Aug 2000 20:08:19 +0000 (20:08 +0000)]
Support for the in-place operations introduced by augmented assignment. Only
the list object supports this currently, but other candidates are
gladly accepted (like arraymodule and such.)
Guido van Rossum [Thu, 24 Aug 2000 16:20:32 +0000 (16:20 +0000)]
Addresses the other half of Bug #112634 -- the documentation suggested
that you can set self.version *after* calling the base class __init__.
In fact it must be done *before*.
(Fred, maybe the version class variable should be documented now?)
Guido van Rossum [Thu, 24 Aug 2000 16:18:04 +0000 (16:18 +0000)]
Promote the server version from a local variable to a class variable,
so that a subclass can override it.
This partly addresses Bug #112634 -- but the documentation is still
wrong, since it suggests that you can set self.version *after* calling
the base class __init__. In fact it must be done *before*.
Fred Drake [Thu, 24 Aug 2000 01:06:40 +0000 (01:06 +0000)]
Moshe Zadka <moshez@math.huji.ac.il>:
Documentation updates for urlretrieve() and URLopener.retrieve(), to
reflect Randall Hopper's patch for those functions.
Fred Drake [Thu, 24 Aug 2000 00:50:27 +0000 (00:50 +0000)]
Make sure Thomas Wouters has enough to do. ;-)
(Some of this is in-progress; this also serves as a reminded to me to
check this out once it is written.)
Fred Drake [Thu, 24 Aug 2000 00:32:09 +0000 (00:32 +0000)]
Charles G. Waldman <cgw@fnal.gov>:
Add the EXTENDED_ARG opcode to the virtual machine, allowing 32-bit
arguments to opcodes instead of being forced to stick to the 16-bit
limit. This is especially useful for machine-generated code, which
can be too long for the SET_LINENO parameter to fit into 16 bits.
This closes the implementation portion of SourceForge patch #100893.
Thomas Wouters [Wed, 23 Aug 2000 23:16:10 +0000 (23:16 +0000)]
Add extra check on whether 'tp_as_number' is still non-NULL after coercion,
in the PyNumber_* functions. Also, remove unnecessary tests from
PyNumber_Multiply: after BINOP(), neither argument can be an instance.
Trent Mick [Wed, 23 Aug 2000 21:33:05 +0000 (21:33 +0000)]
This patch partly (some stuff went in already) ports Python to Monterey.
- Fix bug in thread_pthread.h::PyThread_get_thread_ident() where
sizeof(pthread) < sizeof(long).
- Add 'configure' for:
- SIZEOF_PTHREAD is pthread_t can be included via <pthread.h>
- setting Monterey system name
- appropriate CC,LINKCC,LDSHARED,OPT, and CCSHARED for Monterey
- Add section in README for Monterey build
Guido van Rossum [Wed, 23 Aug 2000 19:01:43 +0000 (19:01 +0000)]
Updated some URLs; removed mention of copyright (we'll have to add
something in later after that discussion is over); remove explanation
of 2.0 version number.
Skip Montanaro [Wed, 23 Aug 2000 16:58:32 +0000 (16:58 +0000)]
update commonprefix doc to make sure user is aware it works
character-by-character and that that behavior may result in it returning
prefixes that are not valid paths
Jack Jansen [Tue, 22 Aug 2000 21:52:51 +0000 (21:52 +0000)]
Added PyOS_CheckStack call to PyObject_Compare
Lowered the recursion limit on compares to 60 (one recursion depth can
take a whopping 2K of stack space when running test_b1!)
Guido van Rossum [Tue, 22 Aug 2000 02:04:46 +0000 (02:04 +0000)]
Patch by Toby Dickenson: don't die when an error occurs during string
conversion in an exception, but instead display <unprintable %s
object> where %s is the type name.
Fred Drake [Mon, 21 Aug 2000 21:42:42 +0000 (21:42 +0000)]
Patch from Paul Schreiber <paul@commerceflow.com>:
Patch description
-----------------
This addresses four issues:
(1) usernames and passwords in urls with special characters are now
decoded properly. i.e. http://foo%2C:bar@www.whatever.com/
(2) Basic Auth support has been added to HTTPS, like it was in HTTP.
(3) Version 1.92 sent the POSTed data, but did not deal with errors
(HTTP responses other than 200) properly. HTTPS now behaves the
same way HTTP does.
(4) made URL-checking beahve the same way with HTTPS as it does with
HTTP (changed == to !=).
Barry Warsaw [Mon, 21 Aug 2000 17:07:20 +0000 (17:07 +0000)]
com_print_stmt(): Guido rightly points out that the stream expression
in extended prints should only be evaluated once. This patch plays
stack games (documented!) to fix this.
Tim Peters [Mon, 21 Aug 2000 02:27:22 +0000 (02:27 +0000)]
Remove the winreg module from the project. I don't believe any
docs changes are needed (only reference to winreg I could find
was in libwinreg.tex, which is documenting _winreg, and merely
mentions that a higher-level winreg module *may* appear someday;
that's still true).
Jack Jansen [Sun, 20 Aug 2000 21:57:38 +0000 (21:57 +0000)]
Updated the applescript documentation for te new framework, and replaced the Eudora example with one that uses Disk Copy (which everyone running MacOS 8 or
higher should have).
Jack Jansen [Sun, 20 Aug 2000 19:56:13 +0000 (19:56 +0000)]
Updated for the new applescript interface (which actually makes it so ridiculously simple that its main reason for existence is backward compatability).
Jack Jansen [Sun, 20 Aug 2000 19:42:52 +0000 (19:42 +0000)]
Enums we cannot find are set to None, and enumsubst understands this (no substitution done). This is need for what I think are bugs in the Finder aete resources (some events use unknown enums).
Jack Jansen [Sun, 20 Aug 2000 19:30:56 +0000 (19:30 +0000)]
Fixed event inheritance code (which didn't work at all).
Do two passes over the suites so we can figure out dependencies for enums and such. The manual method was getting too cumbersome for Finder suites.
Thomas Wouters [Sun, 20 Aug 2000 14:01:53 +0000 (14:01 +0000)]
Fix the bug Sjoerd Mullender discovered, where find_from_args() wasn't
trying hard enough to find out what the arguments to an import were. There
is no test-case for this bug, yet, but this is what it looked like:
from encodings import cp1006, cp1026
ImportError: cannot import name cp1026
'__import__' was called with only the first name in the 'arguments' list.
Tim Peters [Sun, 20 Aug 2000 05:57:36 +0000 (05:57 +0000)]
Changed the popen2.py _test function to use the "more" cmd when
os.name == "nt". This makes test_popen2 pass under Win98SE.
HOWEVER, the Win98 "more" invents a leading newline out
of thin air, and I'm not sure that the other Windows flavors
of "more" also do that.
So, somebody please try under other Windows flavors!
Tim Peters [Sun, 20 Aug 2000 04:18:40 +0000 (04:18 +0000)]
David Goodger's new getopt test module (thanks, David!).
https://sourceforge.net/patch/?func=detailpatch&patch_id=101110&group_id=5470
Accepted as-is, except for purging an "import *".
Thomas Wouters [Sat, 19 Aug 2000 20:55:02 +0000 (20:55 +0000)]
Disallow "import mod.submod as m", because the result is ambiguous. Does it
load mod.submod as m, or mod as m ? Both can be achieved differently, and
unambiguously. Also attempt to document this restriction (editor
appreciated!)
Note that this is an artificial check during compile, because incorporating
this in the grammar is hard, and then adjusting the compiler to do the right
thing with the right nodes is harder.
Added Tim O'Malley's Cookie.py module (master version at
http://www.timo-tasi.org/python/Cookie.py)
This is revision 2.26 according to Tim's RCS history.