Tim Peters
a9bc168f95
Got rid of the internal datetimetz type.
2003-01-11 03:39:11 +00:00
Neal Norwitz
e931ed59d3
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto
...
Add the optional gain parameter and pass it to Tk.
2003-01-10 23:24:32 +00:00
Kurt B. Kaiser
a7b804f28a
Update documentation.
2003-01-10 21:27:23 +00:00
Kurt B. Kaiser
69e8afcc9f
SF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)
...
When a module doesn't have a __path__ attribute, trigger a dialog box
rather than dumping a traceback to the console.
Synch to Python IDLE.
2003-01-10 21:25:20 +00:00
Neal Norwitz
e604c02a80
SF #665913 , Fix mmap module core dump with unix
...
Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
Will backport.
2003-01-10 20:52:16 +00:00
Kurt B. Kaiser
e7a161e60c
M configDialog.py
...
M configHelpSourceEdit.py
1. Attach configHelpSourceEdit error dialogs to parent to avoid Tk root
pop-ups.
2. Make configHelpSourceEdit OK button the default and bind <Return>.
3. Reformat configHelpSourceEdit.
4. ConfigDialog.SaveAllChangedConfig() had a bug which caused additional
help sources to be deleted when other config items were changed.
4. Uniform capitalization in configDialog.
5. Update configDialog doc string.
2003-01-10 20:13:57 +00:00
Barry Warsaw
9149aeb842
Python 2.1's string module doesn't have ascii_letters, so let's just
...
hard code it. We want this module to work with Python 2.1 for now.
2003-01-10 19:28:15 +00:00
Barry Warsaw
a21bdeae51
Cleanups, and conversion of assert to assertEqual()
2003-01-10 19:03:29 +00:00
Kurt B. Kaiser
114713d194
1. Make finding Python help docs more robust, including the installed
...
configuation.
2. Make sure that os.startfile() is used to open both Python help docs
and Extra Help docs on the Windows platforms.
2003-01-10 05:07:24 +00:00
Tim Peters
37f398282b
Got rid of the timetz type entirely. This was a bit trickier than I
...
hoped it would be, but not too bad. A test had to change:
time.__setstate__() can no longer add a non-None tzinfo member to a time
object that didn't already have one, since storage for a tzinfo member
doesn't exist in that case.
2003-01-10 03:49:02 +00:00
Kurt B. Kaiser
a5e8bb94e5
Default the OK key in the Save Before Run dialog.
2003-01-10 03:06:30 +00:00
Just van Rossum
f07518ac22
support unicode in menu items
2003-01-09 23:18:39 +00:00
Just van Rossum
6706c4d5fd
cleaned up Jack's Mac OS9 changes
2003-01-09 22:27:10 +00:00
Walter Dörwald
0cb27dd023
Make the test scripts work again with narrow Python builds.
2003-01-09 11:38:50 +00:00
Just van Rossum
4e051d459d
add newline to source before compilation
2003-01-09 10:47:20 +00:00
Walter Dörwald
30537a46ac
Add a few test cases to increase code coverage:
...
From:
69.73% of 294 source lines executed in file ./Modules/_codecsmodule.c
79.47% of 487 source lines executed in file Python/codecs.c
78.45% of 3643 source lines executed in file Objects/unicodeobject.c
To:
70.41% of 294 source lines executed in file ./Modules/_codecsmodule.c
82.75% of 487 source lines executed in file Python/codecs.c
80.76% of 3638 source lines executed in file Objects/unicodeobject.c
This actually unearthed a bug in the handling of None
values in PyUnicode_EncodeCharmap.
2003-01-08 23:22:13 +00:00
Walter Dörwald
395bb49555
Add a test that exercises the error handling part of
...
PyUnicode_EncodeDecimal().
2003-01-08 23:02:34 +00:00
Tim Peters
6757c1e856
SF patch 661583: Remove old code from lib\os.py
...
A patch from Andrew Wilkinson to change some bizarre old exec statements
specific to NT and CE.
2003-01-08 21:20:57 +00:00
Tim Peters
0bf60bd67f
Utterly minimal changes to collapse datetimetz into datetime, and timetz
...
into time. This is little more than *exporting* the datetimetz object
under the name "datetime", and similarly for timetz. A good implementation
of this change requires more work, but this is fully functional if you
don't stare too hard at the internals (e.g., right now a type named
"datetime" shows up as a base class of the type named "datetime"). The
docs also need extensive revision, not part of this checkin.
2003-01-08 20:40:01 +00:00
Steve Holden
8a978f7cde
Fix bug 427345 [related to IE's additional input on POST request].
2003-01-08 18:53:18 +00:00
Jack Jansen
472e7db5c0
Various tweaks to make the test work on the Mac.
2003-01-08 16:37:03 +00:00
Jack Jansen
b11ce9b96c
Always define getenv(), as suggested by Guido. This means that os.getenv() is also defined for MacPython-OS9 (even though it doesn't actually do anything useful), and it shouldn't hurt on other platforms.
2003-01-08 16:33:40 +00:00
Jack Jansen
52941a8348
Test that chmod() actually exists before calling it (it doesn't on MacOS9).
2003-01-08 16:33:16 +00:00
Jack Jansen
27d19c40bc
Removed the SetDates warning. The warning is in the readme, and the print statement was too obtrusive (it appeared during the installation process, and the user needed to close the resulting window manually).
2003-01-08 16:32:29 +00:00
Jack Jansen
746096576b
quashed another case of the 32-bit warning.
2003-01-08 16:32:09 +00:00
Jack Jansen
6797514557
Updated the list of expected skips for MacPython-OS9.
2003-01-08 16:31:11 +00:00
Jack Jansen
2918ae8fe6
n the Mac the frozen import that should fail actually succeeds, and we know it, so skip the test in stead of confusing the end user.
2003-01-08 16:30:54 +00:00
Jack Jansen
ce92147cc8
Added the Mac to platforms that don't have user/group/other modes.
...
Set the limit for the number of open files to 32 if platform==mac.
2003-01-08 16:30:34 +00:00
Fred Drake
7511bd957d
- be explicit: audio data files should be opened in binary mode
...
- ossaudiodev.open() raises IOError, not ossaudiodev.error, for cases
which get mapped to TestSkipped
2003-01-08 07:09:43 +00:00
Guido van Rossum
dca3f2f54a
Enable building and testing of ossaudiodev for Linux.
2003-01-08 01:23:01 +00:00
Guido van Rossum
373c7412f2
Fix for SF bug #642358 : only provide a new with a __dict__ or
...
__weaklist__ descriptor if we added __dict__ or __weaklist__,
respectively. With unit test.
2003-01-07 13:41:37 +00:00
Raymond Hettinger
145a4a0f10
Much clearer when super() is used.
2003-01-07 10:25:55 +00:00
Raymond Hettinger
ef30dc872b
Revert change 1.37.
...
The nanoseconds saved by using dict.fromkeys aren't
worth the loss in clarity. Linear searches live on.
2003-01-07 02:09:16 +00:00
Raymond Hettinger
625812f618
SF patch #662433 : Fill arraymodule's tp_iter and sq_contains slots
2003-01-07 01:58:52 +00:00
Barry Warsaw
4e68a1ec6c
CHARSETS, ALIASES, CODEC_MAP: SF feature request 633543, Korean
...
support and other charset defaults. See also:
http://article.gmane.org/gmane.comp.python.mime.devel/250
(this just commits the last bit of the article that wasn't part of
email 2.4.3.)
2003-01-07 00:29:07 +00:00
Guido van Rossum
613f24fd73
Add a test for a feature added in rev. 2.82 of typeobject.c:
...
- SLOT1BINFULL() macro: changed this to check for __rop__ overriding
__op__, like binary_op1() in abstract.c -- the latter only calls the
slot function once if both types use the same slot function, so the
slot function must make both calls -- which it already did for the
__op__, __rop__ order, but not yet for the __rop__, __op__ order
when B.__class__ is a subclass of A.__class__.
Also test the refinement added in rev. 2.201 that fixes the problem
reported in SF bug #623669 .
Also test a similar provision in abstract.c's binary_op1().
2003-01-06 23:00:59 +00:00
Guido van Rossum
2720b0dff8
Add some print statements in verbose mode to announce that the newest
...
tests are run. (All tests in this module should have one of these at
the top.)
2003-01-06 21:26:44 +00:00
Skip Montanaro
f09b88ee2f
* add mms (windows media) as another scheme
...
* reformat schemes to 80 columns
2003-01-06 20:27:03 +00:00
Guido van Rossum
4f37418d02
Disable the rexec test now that rexec is out of grace.
2003-01-06 16:03:43 +00:00
Guido van Rossum
38abbf5560
Remove bastion test output
2003-01-06 16:02:12 +00:00
Guido van Rossum
11ae4e20e0
Disable the Bastion test now that Bastion is out of grace.
2003-01-06 15:45:11 +00:00
Guido van Rossum
34a2e08586
Sabotage rexec.py. It is not safe since the new-style classes.
2003-01-06 15:43:34 +00:00
Andrew M. Kuchling
b8c7b9f0cc
Translate spaces in the machine name to underscores
...
(Power Macintosh -> Power_Macintosh)
2003-01-06 13:28:12 +00:00
Raymond Hettinger
f2128b004c
Used dictionaries rather than lists for membership testing.
2003-01-06 12:30:53 +00:00
Just van Rossum
077c5823d1
always also search on sys.path for res files
2003-01-06 11:15:05 +00:00
Neal Norwitz
68b539ef9c
SF feature #618024 , urlparse fails on imap://
2003-01-06 06:58:31 +00:00
Neal Norwitz
4f442372cc
SF feature #618024 , urlparse fails on imap://
2003-01-06 06:51:36 +00:00
Neal Norwitz
b9ef4aea5e
SF #651082 , tarfile module implementation from Lars Gustäbel
2003-01-05 23:19:43 +00:00
Just van Rossum
66d16baf71
- squashed bare except in rmtree()
...
- improved readability of rmtree; removed silly apply()
2003-01-05 19:44:11 +00:00
Neal Norwitz
502b9e1fbb
At least one Solaris box in the snake farm only supports "C" locale.
...
Adding try/except allows the test to pass
2003-01-05 18:15:23 +00:00