Raymond Hettinger [Mon, 13 Jan 2003 04:29:19 +0000 (04:29 +0000)]
SF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
'%s' % u'x' return a unicode object.
Jack Jansen [Sun, 12 Jan 2003 23:01:46 +0000 (23:01 +0000)]
Implemented FSCatalogInfo.
Neal Norwitz [Sun, 12 Jan 2003 15:04:54 +0000 (15:04 +0000)]
Try to make a sentance more readable.
Neal Norwitz [Sun, 12 Jan 2003 14:56:19 +0000 (14:56 +0000)]
SF #665570, curses causes interpreter crash
The interpreter doesn't crash, but it does call exit() in libncurses.
Add a note to this effect.
Will backport
Fred Drake [Sat, 11 Jan 2003 23:15:47 +0000 (23:15 +0000)]
Minor correction and clarification.
Tim Peters [Sat, 11 Jan 2003 03:39:11 +0000 (03:39 +0000)]
Got rid of the internal datetimetz type.
Tim Peters [Sat, 11 Jan 2003 00:15:54 +0000 (00:15 +0000)]
Minor fiddling to make the next part easier. Introduced an internal
HASTZINFO() macro.
Neal Norwitz [Fri, 10 Jan 2003 23:29:48 +0000 (23:29 +0000)]
SF #639945 was fixed in alpha 1
Neal Norwitz [Fri, 10 Jan 2003 23:24:32 +0000 (23:24 +0000)]
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto
Add the optional gain parameter and pass it to Tk.
Neal Norwitz [Fri, 10 Jan 2003 21:27:54 +0000 (21:27 +0000)]
Get build working on Redhat 7.2 linux 2.4.7
Kurt B. Kaiser [Fri, 10 Jan 2003 21:27:23 +0000 (21:27 +0000)]
Update documentation.
Kurt B. Kaiser [Fri, 10 Jan 2003 21:25:20 +0000 (21:25 +0000)]
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.
Neal Norwitz [Fri, 10 Jan 2003 20:57:54 +0000 (20:57 +0000)]
SF #665913, Fix mmap module core dump with unix
Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
Neal Norwitz [Fri, 10 Jan 2003 20:52:16 +0000 (20:52 +0000)]
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.
Kurt B. Kaiser [Fri, 10 Jan 2003 20:13:57 +0000 (20:13 +0000)]
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.
Barry Warsaw [Fri, 10 Jan 2003 19:28:15 +0000 (19:28 +0000)]
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.
Barry Warsaw [Fri, 10 Jan 2003 19:03:29 +0000 (19:03 +0000)]
Cleanups, and conversion of assert to assertEqual()
Raymond Hettinger [Fri, 10 Jan 2003 16:45:17 +0000 (16:45 +0000)]
As discussed on python-dev, removed from DUP_TOPX support for the
parameter being either four or five. Currently, compile.c does not
generate calls with a parameter higher than three.
May have to be reverted if the second alpha or beta shakes out some
other tool generating this op code with a parameter of four or five.
Neal Norwitz [Fri, 10 Jan 2003 15:31:15 +0000 (15:31 +0000)]
As discussed briefly on python-dev, add Pending Deprecation Warning
when a string exception is raised. Note that raising string exceptions
is deprecated in an exception message.
Neal Norwitz [Fri, 10 Jan 2003 15:29:16 +0000 (15:29 +0000)]
Get rid of compiler warnings
Neal Norwitz [Fri, 10 Jan 2003 13:52:30 +0000 (13:52 +0000)]
Remove extra 'types'
Change a couple of list -> mylist
Raymond Hettinger [Fri, 10 Jan 2003 09:33:08 +0000 (09:33 +0000)]
SF bug #652888: bad documentation for the "type" builtin
Clarified that not all types are included. The OP was looking for a
StaticMethodType.
Also, added a note and example suggesting the use of int,str, etc.
instead of IntType, StrType, etc.
Renamed the crummy variable name in the example from "list" to "mylist".
Kurt B. Kaiser [Fri, 10 Jan 2003 05:07:24 +0000 (05:07 +0000)]
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.
Tim Peters [Fri, 10 Jan 2003 03:49:02 +0000 (03:49 +0000)]
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.
Kurt B. Kaiser [Fri, 10 Jan 2003 03:06:30 +0000 (03:06 +0000)]
Default the OK key in the Save Before Run dialog.
Tim Peters [Fri, 10 Jan 2003 02:05:14 +0000 (02:05 +0000)]
Removed more now-pointless pickle code.
Jack Jansen [Thu, 9 Jan 2003 23:37:37 +0000 (23:37 +0000)]
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
try it.
Just van Rossum [Thu, 9 Jan 2003 23:20:31 +0000 (23:20 +0000)]
interpret utf-8 file names on OSX
Just van Rossum [Thu, 9 Jan 2003 23:18:39 +0000 (23:18 +0000)]
support unicode in menu items
Just van Rossum [Thu, 9 Jan 2003 22:54:37 +0000 (22:54 +0000)]
removed silly & mask, avoiding FutureWarning
Just van Rossum [Thu, 9 Jan 2003 22:27:10 +0000 (22:27 +0000)]
cleaned up Jack's Mac OS9 changes
Tim Peters [Thu, 9 Jan 2003 19:52:17 +0000 (19:52 +0000)]
Purged reference to defunct datetimetz.
Raymond Hettinger [Thu, 9 Jan 2003 15:24:30 +0000 (15:24 +0000)]
SF patch #664320: Replace push/pop clusters in ceval.c
Replaced groups of pushes and pops with indexed access to the stack and
a single adjustment (if needed) to the stacklevel.
Avoids scores of unnecessary increments and decrements to the stackpointer.
Removes unnecessary sequential dependencies so that the compiler has more
freedom for optimizations. Frees the processor for more parallel and
pipelined execution by using mostly read-only access and having few pointer
adjustments just prior to a read or write.
Andrew M. Kuchling [Thu, 9 Jan 2003 13:46:30 +0000 (13:46 +0000)]
Various minor edits
Andrew M. Kuchling [Thu, 9 Jan 2003 12:51:50 +0000 (12:51 +0000)]
Markup fix
Walter Dörwald [Thu, 9 Jan 2003 11:38:50 +0000 (11:38 +0000)]
Make the test scripts work again with narrow Python builds.
Just van Rossum [Thu, 9 Jan 2003 10:47:20 +0000 (10:47 +0000)]
add newline to source before compilation
Tim Peters [Thu, 9 Jan 2003 04:10:05 +0000 (04:10 +0000)]
Massive fiddling to reflect that datetimetz and timetz no longer exist.
WARNING: It would be a minor miracle if the LaTeX stuff still worked.
s/field/member/ generally everywhere, to conform with most other usage in
the docs.
s/daylight savings time/daylight saving time/ generally everywhere,
because the latter spelling is anally correct.
Walter Dörwald [Wed, 8 Jan 2003 23:22:13 +0000 (23:22 +0000)]
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.
Walter Dörwald [Wed, 8 Jan 2003 23:02:34 +0000 (23:02 +0000)]
Add a test that exercises the error handling part of
PyUnicode_EncodeDecimal().
Walter Dörwald [Wed, 8 Jan 2003 22:01:33 +0000 (22:01 +0000)]
Fix charmapencode_lookup(), so that a None value in the mapping
is treated as "character maps to <undefined>" and not as
"character mapping must return integer, None or str".
Tim Peters [Wed, 8 Jan 2003 21:20:57 +0000 (21:20 +0000)]
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.
Tim Peters [Wed, 8 Jan 2003 20:51:36 +0000 (20:51 +0000)]
Deleted pickle/unpickle code for the old datetime and time classes -- it's
unreachable now.
Tim Peters [Wed, 8 Jan 2003 20:40:01 +0000 (20:40 +0000)]
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.
Walter Dörwald [Wed, 8 Jan 2003 20:38:39 +0000 (20:38 +0000)]
Remove variable owned from PyUnicode_FromEncodedObject, which is unused
(except for Py_DECREF calls) since the introduction of __unicode__.
Steve Holden [Wed, 8 Jan 2003 18:53:18 +0000 (18:53 +0000)]
Fix bug 427345 [related to IE's additional input on POST request].
Jack Jansen [Wed, 8 Jan 2003 16:37:03 +0000 (16:37 +0000)]
Various tweaks to make the test work on the Mac.
Jack Jansen [Wed, 8 Jan 2003 16:33:40 +0000 (16:33 +0000)]
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.
Jack Jansen [Wed, 8 Jan 2003 16:33:16 +0000 (16:33 +0000)]
Test that chmod() actually exists before calling it (it doesn't on MacOS9).
Jack Jansen [Wed, 8 Jan 2003 16:32:29 +0000 (16:32 +0000)]
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).
Jack Jansen [Wed, 8 Jan 2003 16:32:09 +0000 (16:32 +0000)]
quashed another case of the 32-bit warning.
Jack Jansen [Wed, 8 Jan 2003 16:31:11 +0000 (16:31 +0000)]
Updated the list of expected skips for MacPython-OS9.
Jack Jansen [Wed, 8 Jan 2003 16:30:54 +0000 (16:30 +0000)]
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.
Jack Jansen [Wed, 8 Jan 2003 16:30:34 +0000 (16:30 +0000)]
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.
Jack Jansen [Wed, 8 Jan 2003 16:29:17 +0000 (16:29 +0000)]
Made "ascii" the default encoding for MacPython, as suggested by MvL, and ripped out my previous changes to test_unicode. Doing this for 2.3a1 should give people enough time to complain, if they want to, and then we can see whether we want to do anything about it.
Jack Jansen [Wed, 8 Jan 2003 16:28:45 +0000 (16:28 +0000)]
Added a couple of casts to make this compile with CodeWarrior.
Jack Jansen [Wed, 8 Jan 2003 16:27:44 +0000 (16:27 +0000)]
Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk.
Thomas Heller [Wed, 8 Jan 2003 15:14:55 +0000 (15:14 +0000)]
Mention the change from patch #664376.
Thomas Heller [Wed, 8 Jan 2003 14:33:48 +0000 (14:33 +0000)]
Patch #664376: sys.path[0] should contain absolute pathname.
This fixes the problem on Windows - that's the only system where I can
test it.
It leaves sys.argv alone and only changes sys.path[0] to an absolute
pathname.
Fred Drake [Wed, 8 Jan 2003 07:21:53 +0000 (07:21 +0000)]
Add notes about the linuxaudiodev and ossaudiodev modules.
Fred Drake [Wed, 8 Jan 2003 07:09:43 +0000 (07:09 +0000)]
- 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
Neal Norwitz [Wed, 8 Jan 2003 05:27:42 +0000 (05:27 +0000)]
command doesn't work, but program does, not sure it's correct, though
Greg Ward [Wed, 8 Jan 2003 03:04:42 +0000 (03:04 +0000)]
There's no such method as has_option() -- should be has_extn().
Greg Ward [Wed, 8 Jan 2003 03:02:26 +0000 (03:02 +0000)]
Rewrite awkward/ungrammatical sentence.
Typo fix.
Andrew M. Kuchling [Wed, 8 Jan 2003 02:09:40 +0000 (02:09 +0000)]
Bump version number
Greg Ward [Wed, 8 Jan 2003 01:37:41 +0000 (01:37 +0000)]
Add reminder that ossaudiodev can/should also be built on FreeBSD.
Guido van Rossum [Wed, 8 Jan 2003 01:23:01 +0000 (01:23 +0000)]
Enable building and testing of ossaudiodev for Linux.
Guido van Rossum [Tue, 7 Jan 2003 23:03:05 +0000 (23:03 +0000)]
Note about rexec.py and Bastion.py. This requires doc changes and
whatsnew updates as well.
Barry Warsaw [Tue, 7 Jan 2003 22:43:25 +0000 (22:43 +0000)]
Document EX_OK and friends.
Barry Warsaw [Tue, 7 Jan 2003 22:42:49 +0000 (22:42 +0000)]
Test for presence of sysexits.h and set HAVE_SYSEXITS_H if so. Used
by posixmodule.c.
Neal Norwitz [Tue, 7 Jan 2003 22:36:04 +0000 (22:36 +0000)]
SF #664011, move tarfile module in docs
Barry Warsaw [Tue, 7 Jan 2003 20:57:09 +0000 (20:57 +0000)]
all_ins(): EX_OK and friends, constants from sysexits.h
Barry Warsaw [Tue, 7 Jan 2003 20:55:26 +0000 (20:55 +0000)]
A note about EX_OK and friends in the posixmodule.
Guido van Rossum [Tue, 7 Jan 2003 20:34:19 +0000 (20:34 +0000)]
Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread
state swaps in readline).
Guido van Rossum [Tue, 7 Jan 2003 20:04:12 +0000 (20:04 +0000)]
A few more whitespace normalizations.
Guido van Rossum [Tue, 7 Jan 2003 20:01:29 +0000 (20:01 +0000)]
Various cleanups:
- Whitespace normalization.
- Cleaned up some comments.
- Broke long lines.
Guido van Rossum [Tue, 7 Jan 2003 16:46:24 +0000 (16:46 +0000)]
Use regular expressions for branch matching, to avoid including
changes on a sub-branch into output for a given branch.
Guido van Rossum [Tue, 7 Jan 2003 13:41:37 +0000 (13:41 +0000)]
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.
Raymond Hettinger [Tue, 7 Jan 2003 10:25:55 +0000 (10:25 +0000)]
Much clearer when super() is used.
Raymond Hettinger [Tue, 7 Jan 2003 09:55:03 +0000 (09:55 +0000)]
SF bug #652933 (for IdleFork): Open Module "math" Fails
When a module doesn't have a __path__ attribute, trigger a dialog box
rather than dumping a traceback to the console.
Raymond Hettinger [Tue, 7 Jan 2003 02:09:16 +0000 (02:09 +0000)]
Revert change 1.37.
The nanoseconds saved by using dict.fromkeys aren't
worth the loss in clarity. Linear searches live on.
Raymond Hettinger [Tue, 7 Jan 2003 01:58:52 +0000 (01:58 +0000)]
SF patch #662433: Fill arraymodule's tp_iter and sq_contains slots
Barry Warsaw [Tue, 7 Jan 2003 00:29:07 +0000 (00:29 +0000)]
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.)
Andrew M. Kuchling [Tue, 7 Jan 2003 00:07:19 +0000 (00:07 +0000)]
Add tarfile module
Guido van Rossum [Mon, 6 Jan 2003 23:00:59 +0000 (23:00 +0000)]
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().
Guido van Rossum [Mon, 6 Jan 2003 22:57:47 +0000 (22:57 +0000)]
Add a refinement to SLOT1BINFULL() that fixes the problem reported in
SF bug #623669: only try (e.g.) __rdiv__ before __div__ if the right
class actually overrides it.
Raymond Hettinger [Mon, 6 Jan 2003 22:42:41 +0000 (22:42 +0000)]
GvR's idea to use memset() for the most common special case of repeating
a single character. Shaves another 10% off the running time by avoiding
the lg2(N) loops and cache effects for the other cases.
Guido van Rossum [Mon, 6 Jan 2003 21:26:44 +0000 (21:26 +0000)]
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.)
Skip Montanaro [Mon, 6 Jan 2003 20:27:03 +0000 (20:27 +0000)]
* add mms (windows media) as another scheme
* reformat schemes to 80 columns
Andrew M. Kuchling [Mon, 6 Jan 2003 20:04:17 +0000 (20:04 +0000)]
Add Tix and rexec changes
Raymond Hettinger [Mon, 6 Jan 2003 18:41:01 +0000 (18:41 +0000)]
Fix spelling.
Skip Montanaro [Mon, 6 Jan 2003 17:23:37 +0000 (17:23 +0000)]
delete reference to defunct Misc/HPUX-NOTES. Adjust reference for BeOS
notes.
Skip Montanaro [Mon, 6 Jan 2003 17:14:28 +0000 (17:14 +0000)]
removing - contains outdated information
Neal Norwitz [Mon, 6 Jan 2003 16:51:37 +0000 (16:51 +0000)]
SF #642236, optparse LaTeX docs by Johannes Gijsbers
Fred Drake [Mon, 6 Jan 2003 16:38:10 +0000 (16:38 +0000)]
Strike any hint that from-import-* could ever be reasonable; it's a
vile abomination and should be eradicated!
Guido van Rossum [Mon, 6 Jan 2003 16:03:43 +0000 (16:03 +0000)]
Disable the rexec test now that rexec is out of grace.
Guido van Rossum [Mon, 6 Jan 2003 16:02:12 +0000 (16:02 +0000)]
Remove bastion test output
Fred Drake [Mon, 6 Jan 2003 15:50:32 +0000 (15:50 +0000)]
Fix some nits Guido brought up last August:
- give subsection pages nicer names
- shorten some really long table cells; table cells can't wrap in the
typeset version of the documentation
Guido van Rossum [Mon, 6 Jan 2003 15:45:11 +0000 (15:45 +0000)]
Disable the Bastion test now that Bastion is out of grace.
Guido van Rossum [Mon, 6 Jan 2003 15:43:34 +0000 (15:43 +0000)]
Sabotage rexec.py. It is not safe since the new-style classes.