Thomas Wouters [Fri, 25 Aug 2000 10:47:46 +0000 (10:47 +0000)]
Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
Tim Peters [Fri, 25 Aug 2000 06:52:44 +0000 (06:52 +0000)]
In readme.txt, make what's needed to build the "optional" subprojects
much more explicit. Also document that we're moving to Tcl/Tk 8.3.2.
Simplify .dsp files by getting rid of useless include paths.
.wse file changed to reflect that my setup is different than Guido's:
if you *build* a Python distro using python20.wse, beware!
Thomas Wouters [Fri, 25 Aug 2000 05:41:11 +0000 (05:41 +0000)]
Fix allowable node-types for assignment, need to add 'listmaker'.
(This fix is a bit broken, just as the test already was: the test for
testlist and listmaker are done always, whereas the test for exprlist and
the actual abort() are only done if Py_DEBUG is defined. Suggestions
welcome, I guess ;)
Fred Drake [Fri, 25 Aug 2000 05:13:42 +0000 (05:13 +0000)]
Revised documentation relevant to SourceForge patch #100837
(simplify making HTTP POST requests).
Added documentation of URLopener.version and how it can be overridden.
Andrew M. Kuchling [Fri, 25 Aug 2000 01:21:28 +0000 (01:21 +0000)]
Documentation for poll() interface (SF patch #100852)
Andrew M. Kuchling [Fri, 25 Aug 2000 01:18:45 +0000 (01:18 +0000)]
Test suite for poll() interface (SF patch #100852)
Andrew M. Kuchling [Fri, 25 Aug 2000 01:15:33 +0000 (01:15 +0000)]
Add interface to poll() system call (SF patch #100852)
Andrew M. Kuchling [Fri, 25 Aug 2000 01:14:08 +0000 (01:14 +0000)]
Add configure tests for poll() (SF patch #100852)
Thomas Wouters [Thu, 24 Aug 2000 22:54:53 +0000 (22:54 +0000)]
Adjust the name for the socket module in the SSL line.
Thomas Wouters [Thu, 24 Aug 2000 22:44:53 +0000 (22:44 +0000)]
Add missing opcodes. Thanx to jeremy for reminding me ;)
Fred Drake [Thu, 24 Aug 2000 22:38:39 +0000 (22:38 +0000)]
Improve the exceptions raised by PyErr_BadInternalCall(); adding the
filename and line number of the call site to allow esier debugging.
This closes SourceForge patch #101214.
Fred Drake [Thu, 24 Aug 2000 22:27:02 +0000 (22:27 +0000)]
Fix the evil booboos. ;( Causes discussed with Jeremy offline.
Fred Drake [Thu, 24 Aug 2000 21:57:43 +0000 (21:57 +0000)]
Remove the Py_FatalError() from initpyexpat(); the Guido has decreed
that this is not appropriate.
Made somewhat more robust in the face of reload() (exception is not
rebuilt, etc.).
Made the exception a class exception.
Peter Schneider-Kamp [Thu, 24 Aug 2000 21:47:34 +0000 (21:47 +0000)]
simple typo that makes regression test test_userstring fail
Thomas Wouters [Thu, 24 Aug 2000 21:44:52 +0000 (21:44 +0000)]
Update for augmented assignment, tested & approved by Guido.
Thomas Wouters [Thu, 24 Aug 2000 21:08:39 +0000 (21:08 +0000)]
Update for augmented assignment.
Thomas Wouters [Thu, 24 Aug 2000 20:14:10 +0000 (20:14 +0000)]
Support for augmented assignment in the UserList, UserDict, UserString and
rfc822 (Addresslist) modules. Also a preliminary testcase for augmented
assignment, which should actually be merged with the test_class testcase I
added last week.
Thomas Wouters [Thu, 24 Aug 2000 20:11:32 +0000 (20:11 +0000)]
Support for three-token characters (**=, >>=, <<=) which was written by
Michael Hudson, and support in general for the augmented assignment syntax.
The graminit.c patch is large!
Thomas Wouters [Thu, 24 Aug 2000 20:09:45 +0000 (20:09 +0000)]
The real suport for augmented assignment: new opcodes, new PyNumber and
PySequence methods and functions, new tokens.
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.)
Thomas Wouters [Thu, 24 Aug 2000 20:06:04 +0000 (20:06 +0000)]
Rough and incomplete documentation on augmented assignment, which follows
shortly. Markup also needs checking.
Fred Drake [Thu, 24 Aug 2000 18:11:21 +0000 (18:11 +0000)]
Rene Liebscher <rliebscher@users.sourceforge.net>:
Install the scripts in the BeOS directory, allowing use from the distutils
on BeOS systems.
The target location has been adjusted to match that used for the AIX
helper scripts.
This closes SourceForge patch #101207.
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*.
I'll fix that too.
Fred Drake [Thu, 24 Aug 2000 14:40:35 +0000 (14:40 +0000)]
Whitespace cleanup; now passes the regression test (the last checkin made
it fail on a TabError (inconsistent tab/space usage)).
Removed a comment about including a test since there is a regression test
for this module.
Andrew M. Kuchling [Thu, 24 Aug 2000 11:56:19 +0000 (11:56 +0000)]
Updated test suite: test repr() and str() of cookies, and test metadata
fields with quoted values (as in Path="/acme")
Andrew M. Kuchling [Thu, 24 Aug 2000 11:52:33 +0000 (11:52 +0000)]
Updated version of Cookie.py (rev. 2.29) from timo
Fred Drake [Thu, 24 Aug 2000 04:58:25 +0000 (04:58 +0000)]
Move references to RFCs to a "See also" section for consistency with
other sections of the library reference.
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.
This closes SourceForge patch #100837.
Fred Drake [Thu, 24 Aug 2000 01:01:26 +0000 (01:01 +0000)]
Randall Hopper <aa8vb@yahoo.com>>:
Make it easier to use HTTP POST with urlretrieve().
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:37:50 +0000 (00:37 +0000)]
Charles G. Waldman <cgw@fnal.gov>:
Update the dis module documentation to reflect the EXTENDED_ARG opcode.
Fred Drake [Thu, 24 Aug 2000 00:35:38 +0000 (00:35 +0000)]
Charles G. Waldman <cgq@fnal.gov>:
Update the test suite for the changes introduced by the EXTENDED_ARG
opcode.
This closes the regression test changes of SourceForge patch #100893.
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:31:34 +0000 (23:31 +0000)]
Addendum to previous change: now that 'f' is not unconditionally
initialized in the 'if (..)', do so manually.
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
Fred Drake [Wed, 23 Aug 2000 21:16:10 +0000 (21:16 +0000)]
Remove the dependency information for version.o; this is not part of
the sources/build process any more.
Jeremy Hylton [Wed, 23 Aug 2000 21:11:05 +0000 (21:11 +0000)]
style nits
Fred Drake [Wed, 23 Aug 2000 20:34:40 +0000 (20:34 +0000)]
When skipping a test, do not include a spurious space between the exception
name and the ":" that separates it from the value. (Minor cleanup.)
Jeremy Hylton [Wed, 23 Aug 2000 20:34:17 +0000 (20:34 +0000)]
add docstring explaining makefile limitation
fix support for passing http version to connect in HTTP
Fred Drake [Wed, 23 Aug 2000 20:21:31 +0000 (20:21 +0000)]
Sort the list of files processed before running the test on each.
Skip Montanaro [Wed, 23 Aug 2000 20:07:21 +0000 (20:07 +0000)]
test case output for dospath regr test
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.
Fred Drake [Wed, 23 Aug 2000 18:17:42 +0000 (18:17 +0000)]
Simplified inclusions and avoid prototypes copied in from elsewhere.
This also avoids a warning in anal mode.
Skip Montanaro [Wed, 23 Aug 2000 17:03:34 +0000 (17:03 +0000)]
fix list comprehension discussion to use \keyword macro instead of simply
quoting keywords.
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
Skip Montanaro [Wed, 23 Aug 2000 16:55:00 +0000 (16:55 +0000)]
new test - like test_ntpath but without splitunc test cases
Skip Montanaro [Wed, 23 Aug 2000 16:54:27 +0000 (16:54 +0000)]
added commonprefix test cases
Skip Montanaro [Wed, 23 Aug 2000 16:51:56 +0000 (16:51 +0000)]
updated to correct failing test cases
Fred Drake [Wed, 23 Aug 2000 15:45:28 +0000 (15:45 +0000)]
Added note stating that the parser module will need updating for most
changes to this file.
Fred Drake [Wed, 23 Aug 2000 15:35:26 +0000 (15:35 +0000)]
validate_listmaker(): Revise to match Skip's latest changes to the
Grammar file. This makes the test suite pass once again.
Jack Jansen [Wed, 23 Aug 2000 09:13:40 +0000 (09:13 +0000)]
Restored commonprefix() semantics.
Tim Peters [Wed, 23 Aug 2000 05:28:45 +0000 (05:28 +0000)]
Rehabilitate autotest.py.
In README: Write up (Guido's) rules for intra-test imports; warn against
asserts; document test_support.use_large_resources.
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!)
Jack Jansen [Tue, 22 Aug 2000 21:51:22 +0000 (21:51 +0000)]
Added include for limits.h
Jack Jansen [Tue, 22 Aug 2000 20:35:17 +0000 (20:35 +0000)]
Regenerated to take advantage of support for multiple names for a single property.
Jack Jansen [Tue, 22 Aug 2000 20:34:35 +0000 (20:34 +0000)]
Only output the code to alias properties if the names aren't the same.
Guido van Rossum [Tue, 22 Aug 2000 14:04:24 +0000 (14:04 +0000)]
At Mark Hammond's request, removing registry key
Software\Python\PythonCore\2.0\Dll\Python20.dll -- it's no longer
needed according to him.
Note: not yet tested!
Skip Montanaro [Tue, 22 Aug 2000 13:01:53 +0000 (13:01 +0000)]
revert semantics of commonprefix to work character-by-character
Guido van Rossum [Tue, 22 Aug 2000 12:10:02 +0000 (12:10 +0000)]
Thomas Heller noticed that the wrong registry entry was written for
the DLL. Replace
%_SYSDEST_%\Python20.dll
with
%_DLLDEST_%\Python20.dll.
Mark Hammond [Tue, 22 Aug 2000 11:20:21 +0000 (11:20 +0000)]
Registered modules could only exist in HKEY_LOCAL_MACHINE - now HKEY_CURRENT_USER can override.
Skip Montanaro [Tue, 22 Aug 2000 03:00:52 +0000 (03:00 +0000)]
* added doc strings to urlopen and unquote_plus
* fixed type in doc string for quote
Skip Montanaro [Tue, 22 Aug 2000 02:43:07 +0000 (02:43 +0000)]
require list comprehensions to start with a for clause
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.
Greg Ward [Tue, 22 Aug 2000 01:49:41 +0000 (01:49 +0000)]
Don't bother to 'mkpath()' the 'dist_dir' -- that's now taken care of
in archive_util.py.
Greg Ward [Tue, 22 Aug 2000 01:48:54 +0000 (01:48 +0000)]
Ensure destination directory exists before trying to create a tarball
or ZIP file.
Tim Peters [Tue, 22 Aug 2000 01:44:16 +0000 (01:44 +0000)]
Nuked unused variable.
Guido van Rossum [Mon, 21 Aug 2000 22:59:29 +0000 (22:59 +0000)]
Don't reference a module named test.test_support. Always use plain
test_support. Also fixed the expected output.
Fred Drake [Mon, 21 Aug 2000 22:30:53 +0000 (22:30 +0000)]
Add a minimal test suite for the parser module.
Fred Drake [Mon, 21 Aug 2000 22:24:43 +0000 (22:24 +0000)]
Update to reflect recent grammar changes (list comprehensions, extended
print statement), and fix up the extended call syntax support.
Minor stylistic cleanups.
Fred Drake [Mon, 21 Aug 2000 21:47:20 +0000 (21:47 +0000)]
Denis S. Otkidach <den@analyt.chem.msu.ru>:
Let UserString.translate() method work with unicode data.
This closes SourceForge patch #101246.
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:19:00 +0000 (17:19 +0000)]
Describe the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
Barry Warsaw [Mon, 21 Aug 2000 17:18:40 +0000 (17:18 +0000)]
Add the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
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.
Fred Drake [Mon, 21 Aug 2000 16:55:57 +0000 (16:55 +0000)]
Add TestSkipped as another interesting item defined by test_support.
Barry Warsaw [Mon, 21 Aug 2000 16:35:06 +0000 (16:35 +0000)]
Thomas reminds me to bump the MAGIC number for the extended print
opcode additions.
Barry Warsaw [Mon, 21 Aug 2000 15:46:50 +0000 (15:46 +0000)]
PEP 214, Extended print Statement, has been accepted by the BDFL.
Additional test cases for the extended print form.
Barry Warsaw [Mon, 21 Aug 2000 15:45:16 +0000 (15:45 +0000)]
PEP 214, Extended print Statement, has been accepted by the BDFL.
Document the extended print form. Fred, please double check the
markup!
Barry Warsaw [Mon, 21 Aug 2000 15:44:01 +0000 (15:44 +0000)]
PEP 214, Extended print Statement, has been accepted by the BDFL.
eval_code2(): Implement new bytecodes PRINT_ITEM_TO and
PRINT_NEWLINE_TO, as per accepted SF patch #100970.
Also update graminit.c based on related Grammar/Grammar changes.
Barry Warsaw [Mon, 21 Aug 2000 15:38:56 +0000 (15:38 +0000)]
PEP 214, Extended print Statement, has been accepted by the BDFL.
com_print_stmt(): Implement recognition of, and byte compilation for,
extended print using new byte codes PRINT_ITEM_TO and
PRINT_NEWLINE_TO.
Barry Warsaw [Mon, 21 Aug 2000 15:36:27 +0000 (15:36 +0000)]
PEP 214, Extended print Statement, has been accepted by the BDFL.
This adds the two new opcodes to support this feature: PRINT_ITEM_TO,
PRINT_NEWLINE_TO.
Barry Warsaw [Mon, 21 Aug 2000 15:34:33 +0000 (15:34 +0000)]
PEP 214, Extended print Statement, has been accepted by the BDFL.
This change modifies Python's grammar to include the extended print
form.
Thomas Wouters [Mon, 21 Aug 2000 12:25:17 +0000 (12:25 +0000)]
Ignore Grammar/Makefile now that it's a made Makefile.
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).
Andrew M. Kuchling [Sun, 20 Aug 2000 23:37:02 +0000 (23:37 +0000)]
Add alias for old function name -- removing it broke Alexei Gilchrist's cfm
Andrew M. Kuchling [Sun, 20 Aug 2000 23:33:50 +0000 (23:33 +0000)]
Strengthen the warning against using SerialCookie and SmartCookie.
(If they're security holes, should they be documented at all?)
Minor rewrites.
Jack Jansen [Sun, 20 Aug 2000 21:59:03 +0000 (21:59 +0000)]
- identify() enum names.
- don't identify() enum values.
- make aetools.Error available in the package module.
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 20:23:58 +0000 (20:23 +0000)]
Added a package for the other browser too.
Jack Jansen [Sun, 20 Aug 2000 20:21:38 +0000 (20:21 +0000)]
Moved to unsupported: it never lived up to its expectancies, and for the Mac all the functionality is available in the IDE.
Jack Jansen [Sun, 20 Aug 2000 20:10:39 +0000 (20:10 +0000)]
Moved to unsupported: it doesn't work anymore and it has outlived its usefulness so I don't want to fix it.
Jack Jansen [Sun, 20 Aug 2000 20:06:51 +0000 (20:06 +0000)]
Updated for new AppleScript structure and moved to Lib (it's far too useful to lurk in the source folder).
Jack Jansen [Sun, 20 Aug 2000 20:02:39 +0000 (20:02 +0000)]
Fixed again to work with the old scripting interface (so we can test the new one actually still works).
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.
Jack Jansen [Sun, 20 Aug 2000 19:29:03 +0000 (19:29 +0000)]
Finder suite.
Jack Jansen [Sun, 20 Aug 2000 19:28:27 +0000 (19:28 +0000)]
Regenerated with fixes to gensuitemodule.