Tim Peters
72b93ec1c3
Nuked unused variable.
2000-08-22 01:44:16 +00:00
Guido van Rossum
ff18b800a4
Don't reference a module named test.test_support. Always use plain
...
test_support. Also fixed the expected output.
2000-08-21 22:59:29 +00:00
Fred Drake
79ca79d1a9
Add a minimal test suite for the parser module.
2000-08-21 22:30:53 +00:00
Fred Drake
cff283c7b3
Update to reflect recent grammar changes (list comprehensions, extended
...
print statement), and fix up the extended call syntax support.
Minor stylistic cleanups.
2000-08-21 22:24:43 +00:00
Fred Drake
a893957c8e
Denis S. Otkidach <den@analyt.chem.msu.ru>:
...
Let UserString.translate() method work with unicode data.
This closes SourceForge patch #101246 .
2000-08-21 21:47:20 +00:00
Fred Drake
567ca8e732
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 !=).
2000-08-21 21:42:42 +00:00
Barry Warsaw
9087688581
Describe the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
2000-08-21 17:19:00 +00:00
Barry Warsaw
203da6dfe4
Add the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
2000-08-21 17:18:40 +00:00
Barry Warsaw
24703a02e7
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.
2000-08-21 17:07:20 +00:00
Fred Drake
62c53ddabe
Add TestSkipped as another interesting item defined by test_support.
2000-08-21 16:55:57 +00:00
Barry Warsaw
45ab2b65f6
Thomas reminds me to bump the MAGIC number for the extended print
...
opcode additions.
2000-08-21 16:35:06 +00:00
Barry Warsaw
efc92eec33
PEP 214, Extended print Statement, has been accepted by the BDFL.
...
Additional test cases for the extended print form.
2000-08-21 15:46:50 +00:00
Barry Warsaw
8c0a242289
PEP 214, Extended print Statement, has been accepted by the BDFL.
...
Document the extended print form. Fred, please double check the
markup!
2000-08-21 15:45:16 +00:00
Barry Warsaw
23c9ec87cf
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.
2000-08-21 15:44:01 +00:00
Barry Warsaw
29c574e30c
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.
2000-08-21 15:38:56 +00:00
Barry Warsaw
35fd665981
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.
2000-08-21 15:36:27 +00:00
Barry Warsaw
0360663e8e
PEP 214, Extended print Statement, has been accepted by the BDFL.
...
This change modifies Python's grammar to include the extended print
form.
2000-08-21 15:34:33 +00:00
Thomas Wouters
9b18adcd16
Ignore Grammar/Makefile now that it's a made Makefile.
2000-08-21 12:25:17 +00:00
Tim Peters
e82e7ccdbd
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).
2000-08-21 02:27:22 +00:00
Andrew M. Kuchling
a98e92bc13
Add alias for old function name -- removing it broke Alexei Gilchrist's cfm
2000-08-20 23:37:02 +00:00
Andrew M. Kuchling
120beb6b67
Strengthen the warning against using SerialCookie and SmartCookie.
...
(If they're security holes, should they be documented at all?)
Minor rewrites.
2000-08-20 23:33:50 +00:00
Jack Jansen
6aa92c5093
- identify() enum names.
...
- don't identify() enum values.
- make aetools.Error available in the package module.
2000-08-20 21:59:03 +00:00
Jack Jansen
c15ab036df
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).
2000-08-20 21:57:38 +00:00
Jack Jansen
e743c6e27e
Added a package for the other browser too.
2000-08-20 20:23:58 +00:00
Jack Jansen
9ebf2d2ca4
Moved to unsupported: it never lived up to its expectancies, and for the Mac all the functionality is available in the IDE.
2000-08-20 20:21:38 +00:00
Jack Jansen
51f357049b
Moved to unsupported: it doesn't work anymore and it has outlived its usefulness so I don't want to fix it.
2000-08-20 20:10:39 +00:00
Jack Jansen
742ca0385a
Updated for new AppleScript structure and moved to Lib (it's far too useful to lurk in the source folder).
2000-08-20 20:06:51 +00:00
Jack Jansen
18b47a07b7
Fixed again to work with the old scripting interface (so we can test the new one actually still works).
2000-08-20 20:02:39 +00:00
Jack Jansen
8bcd471606
Updated for the new applescript interface (which actually makes it so ridiculously simple that its main reason for existence is backward compatability).
2000-08-20 19:56:13 +00:00
Jack Jansen
2eda24475c
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).
2000-08-20 19:42:52 +00:00
Jack Jansen
12b2b76608
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.
2000-08-20 19:30:56 +00:00
Jack Jansen
f58bbbe139
Finder suite.
2000-08-20 19:29:03 +00:00
Jack Jansen
4ef58af9a7
Regenerated with fixes to gensuitemodule.
2000-08-20 19:28:27 +00:00
Thomas Wouters
0400515ff0
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.
2000-08-20 14:01:53 +00:00
Tim Peters
84f28db66a
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!
2000-08-20 05:57:36 +00:00
Tim Peters
571bb8fc72
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 *".
2000-08-20 04:18:40 +00:00
Thomas Wouters
8bad612881
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.
2000-08-19 20:55:02 +00:00
Fred Drake
15446d344d
Add entry for Cookie module.
2000-08-19 16:55:31 +00:00
Fred Drake
e5c7352201
Make it format.
...
Adjust markup for hyperlinking to the relevant RFCs.
Give it a little organization.
Minor nits.
2000-08-19 16:54:57 +00:00
Moshe Zadka
514a1028a2
Adding tests of the "attrs" optional argument, and of the js_output
...
functionality.
2000-08-19 15:57:33 +00:00
Andrew M. Kuchling
f580d27aa3
Use METH_VARARGS constant in example module.
...
Fix comment typo
2000-08-19 15:36:41 +00:00
Andrew M. Kuchling
cdec8c746b
Test case for Cookie.py
2000-08-19 15:21:12 +00:00
Moshe Zadka
1b07f2bcf6
Initial revision. Markup unchecked.
2000-08-19 14:11:41 +00:00
Andrew M. Kuchling
52ea872777
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.
2000-08-19 13:01:19 +00:00
Barry Warsaw
73f77b4495
com_error(): Quiet gcc -Wall warning.
2000-08-18 19:59:20 +00:00
Fred Drake
04e654a63c
Remove a couple of warnings turned up by "gcc -Wall".
2000-08-18 19:53:25 +00:00
Barry Warsaw
ce4dc41b1a
PyUnicode_AsUTF8String(): /F picks up what I missed: the local var
...
`str' is no longer necessary. Gotta turn on -Wall!
2000-08-18 19:30:40 +00:00
Vladimir Marangozov
0888ff17bd
Do not set a MemoryError exception over another MemoryError exception,
...
thus preserving the first one that has been raised.
2000-08-18 18:01:06 +00:00
Fred Drake
8ae9ce5e5b
Better conformance to the Python Style Guide: use spaces around operators.
2000-08-18 16:09:56 +00:00
Fred Drake
fe5c22a85e
When a KeyboardInterrupt is caught, just use the "raise" syntax to
...
re-raise it instead of re-raising it "manually" the ugly way.
2000-08-18 16:04:05 +00:00