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.
Fred Drake [Mon, 6 Jan 2003 15:03:11 +0000 (15:03 +0000)]
Fix markup so this will format again.
Raymond Hettinger [Mon, 6 Jan 2003 13:31:26 +0000 (13:31 +0000)]
SF bug #592859: os.chmod is underdocumented
Document constants for permission bits.
Andrew M. Kuchling [Mon, 6 Jan 2003 13:28:12 +0000 (13:28 +0000)]
Translate spaces in the machine name to underscores
(Power Macintosh -> Power_Macintosh)
Raymond Hettinger [Mon, 6 Jan 2003 12:54:54 +0000 (12:54 +0000)]
SF bug #661848 and #631055: Clarify use of __all__.
Jason Tishler [Mon, 6 Jan 2003 12:41:26 +0000 (12:41 +0000)]
Patch #661760: Cygwin auto-import module patch
The attached patch enables shared extension
modules to build cleanly under Cygwin without
moving the static initialization of certain function
pointers (i.e., ones exported from the Python
DLL core) to a module initialization function.
Additionally, this patch fixes the modules that
have been changed in the past to accommodate
Cygwin.
Raymond Hettinger [Mon, 6 Jan 2003 12:30:53 +0000 (12:30 +0000)]
Used dictionaries rather than lists for membership testing.
Just van Rossum [Mon, 6 Jan 2003 11:15:05 +0000 (11:15 +0000)]
always also search on sys.path for res files
Raymond Hettinger [Mon, 6 Jan 2003 10:33:56 +0000 (10:33 +0000)]
Optimize string_repeat.
Christian Tismer pointed out the high cost of the loop overhead and
function call overhead for 'c' * n where n is large. Accordingly,
the new code only makes lg2(n) loops.
Interestingly, 'c' * 1000 * 1000 ran a bit faster with old code. At some
point, the loop and function call overhead became cheaper than invalidating
the cache with lengthy memcpys. But for more typical sizes of n, the new
code runs much faster and for larger values of n it runs only a bit slower.
Neal Norwitz [Mon, 6 Jan 2003 06:58:31 +0000 (06:58 +0000)]
SF feature #618024, urlparse fails on imap://
Neal Norwitz [Mon, 6 Jan 2003 06:51:36 +0000 (06:51 +0000)]
SF feature #618024, urlparse fails on imap://
Neal Norwitz [Sun, 5 Jan 2003 23:19:43 +0000 (23:19 +0000)]
SF #651082, tarfile module implementation from Lars Gustäbel
Neal Norwitz [Sun, 5 Jan 2003 22:20:51 +0000 (22:20 +0000)]
Fix a typo
Just van Rossum [Sun, 5 Jan 2003 19:44:11 +0000 (19:44 +0000)]
- squashed bare except in rmtree()
- improved readability of rmtree; removed silly apply()
Neal Norwitz [Sun, 5 Jan 2003 18:15:23 +0000 (18:15 +0000)]
At least one Solaris box in the snake farm only supports "C" locale.
Adding try/except allows the test to pass
Raymond Hettinger [Sun, 5 Jan 2003 09:20:06 +0000 (09:20 +0000)]
Move the statistical tests for four distributions into the unittest suite.
Tim Peters [Sun, 5 Jan 2003 07:22:44 +0000 (07:22 +0000)]
PyCFunction_Call(): Combined two switch cases w/ identical bodies.
Raymond Hettinger [Sun, 5 Jan 2003 01:08:34 +0000 (01:08 +0000)]
Add a test case.
Greg Ward [Sat, 4 Jan 2003 21:54:26 +0000 (21:54 +0000)]
Tweak __version__ -- the current code is between Optik 1.4 and 1.4.1.
Just van Rossum [Sat, 4 Jan 2003 21:44:21 +0000 (21:44 +0000)]
module to run commands in a Terminal.app window
Tim Peters [Sat, 4 Jan 2003 18:17:36 +0000 (18:17 +0000)]
datetime_from_timet_and_us(): ignore leap seconds if the platform
localtime()/gmtime() insists on delivering them, + associated doc
changes.
Redid the docs for datetimtez.astimezone().
Just van Rossum [Sat, 4 Jan 2003 16:26:26 +0000 (16:26 +0000)]
correct comment (and add newline at end)
Guido van Rossum [Sat, 4 Jan 2003 14:11:38 +0000 (14:11 +0000)]
Add Shockwave Flash.
(backport candidate?)
Raymond Hettinger [Sat, 4 Jan 2003 09:26:32 +0000 (09:26 +0000)]
Correct long standing bugs in the methods for random distributions.
The range of u=random() is [0,1), so log(u) and 1/x can fail.
Fix by setting u=1-random() or by reselecting for a usable value.
Will backport.
Martin v. Löwis [Sat, 4 Jan 2003 08:54:59 +0000 (08:54 +0000)]
Fix typo.
Martin v. Löwis [Sat, 4 Jan 2003 08:36:57 +0000 (08:36 +0000)]
Remove appartment check from dooneevent. Fixes #660961.
Check whether self is NULL in mainloop.
Tim Peters [Sat, 4 Jan 2003 06:03:15 +0000 (06:03 +0000)]
A new implementation of astimezone() that does what we agreed on in all
cases, plus even tougher tests of that. This implementation follows
the correctness proof very closely, and should also be quicker (yes,
I wrote the proof before the code, and the code proves the proof <wink>).
Raymond Hettinger [Sat, 4 Jan 2003 05:55:11 +0000 (05:55 +0000)]
Test an edge case for sample().
Raymond Hettinger [Sat, 4 Jan 2003 05:20:33 +0000 (05:20 +0000)]
Remove the random=None nonsense from sample() before it gets set in stone.
It was once available so that faster generators could be substituted. Now,
that is less necessary and preferrably done via subclassing.
Also, clarified and shortened the comments for sample().
Skip Montanaro [Sat, 4 Jan 2003 04:12:19 +0000 (04:12 +0000)]
Moved this info to the top-level README where all the other
platform-specific verbiage lives.
Skip Montanaro [Sat, 4 Jan 2003 04:06:56 +0000 (04:06 +0000)]
The bsddb3 library does not build w/ Berkeley DB 3.0. 3.1 is the earliest
supported version.
Skip Montanaro [Sat, 4 Jan 2003 04:05:51 +0000 (04:05 +0000)]
Merged Misc/AtheOS-NOTES into the platform-specific section. Rewrote the
bsddb module build note to reflect the inclusion of bsddb3 and the demotion
of the old bsddb module.
Raymond Hettinger [Sat, 4 Jan 2003 02:16:22 +0000 (02:16 +0000)]
SF bug #655271: Slightly modify locals() doc
Clarify the operation of locals().
Raymond Hettinger [Sat, 4 Jan 2003 01:53:38 +0000 (01:53 +0000)]
SF bug #651149: Review libshelve.tex when possible
Minor fixes to markup, spelling, parameter names, and abbreviations.
Kurt B. Kaiser [Sat, 4 Jan 2003 01:43:53 +0000 (01:43 +0000)]
M AutoExpand.py
M Bindings.py
M EditorWindow.py
M PyShell.py
M config-keys.def
M configHandler.py
M help.txt
1. Annotate the shell window with last restart boundary upon restart.
2. Provide a shell menu entry and hot key (F6) to jump to the last
restart boundary.
3. Add a new shell menu feature to restart the shell.
4. Update the help menu to add these features.
5. Update the help menu to put text in same order as the menus.
6. Correct a capitalization inconsistency on the Edit menu: Expand Word
7. Rename the "Debug" menu to be "Shell": it's doing more now.
8. Rearrange the "Shell" menu to make the StackViewer entries adjacent.
9. Add a get_geometry method to EditorWindow, which may be of use in
making window positions persisent.
10. Make <ctrl-v> the "Classic Windows" paste key.
11. Restore decorum on the Help menu by removing "Advice". As Guido said,
things will never be the same. Thanks, David!
Neal Norwitz [Sat, 4 Jan 2003 01:02:25 +0000 (01:02 +0000)]
Fix compiler warning
Raymond Hettinger [Sat, 4 Jan 2003 00:37:53 +0000 (00:37 +0000)]
SF Patch #661440: Refactor and streamline PyCFunction_Call
Refactor code in PyCFunction_Call giving a modest (tiny) speed boost,
a slight improvement in semantics (now detects invalid flag combinations),
and (arguably) improved clarity (making it blindingly clear which flag
combinations are allowed). All this comes at a cost of a few lines of
code duplication.
* Folded test for METH_KEYWORDS into the switch/case.
* Deferred testing for an empty dictionary until when and where needed.
* Make a similar deferral for filling the "size" variable.
* Inverted the dictionary test so that the common case falls though
instead of making a jump.
Martin v. Löwis [Sat, 4 Jan 2003 00:33:13 +0000 (00:33 +0000)]
Wrap doc strings in PyDoc_STRVAR. Fix .string docstring. Provide default
macro definitions for older Python releases.
Tim Peters [Sat, 4 Jan 2003 00:26:59 +0000 (00:26 +0000)]
Completed astimezone()'s correctness proof. This also proves we can get
the desired compromise behavior during the "problem hour" when DST ends
cheaply (but I haven't yet implemented that).
Martin v. Löwis [Sat, 4 Jan 2003 00:08:09 +0000 (00:08 +0000)]
Convert Tcl path objects to strings. Fixes #661357.
Provide .string attribute and __unicode for Tcl_Objs.
Tim Peters [Fri, 3 Jan 2003 22:35:24 +0000 (22:35 +0000)]
Remark about datetime tzinfo examples.
Tim Peters [Fri, 3 Jan 2003 22:26:57 +0000 (22:26 +0000)]
Replaced the flawed "local time" example tzinfo class with the guts
of Guido's later Local.py (from the datetime sandbox).
Greg Ward [Fri, 3 Jan 2003 21:22:08 +0000 (21:22 +0000)]
Grammatical fix in comment.
Greg Ward [Fri, 3 Jan 2003 21:09:57 +0000 (21:09 +0000)]
Grammatical fix: change possessive "it's" to "its".
Walter Dörwald [Fri, 3 Jan 2003 21:06:46 +0000 (21:06 +0000)]
Remove a list comprehension, because a loop over the list
is done afterwards anyway, so what the list comp does
can be done in the loop.
Walter Dörwald [Fri, 3 Jan 2003 21:02:36 +0000 (21:02 +0000)]
Pass the strict argument from read() on to readfp(), so the
file content ends up in the correct dict.
Martin v. Löwis [Fri, 3 Jan 2003 20:39:29 +0000 (20:39 +0000)]
Use RUNSHARED for python invocations. Fixes #661408.
Walter Dörwald [Fri, 3 Jan 2003 19:33:17 +0000 (19:33 +0000)]
Fix read_mime_types() so that it returns a dict as documented.
This fixes a bug reported as http://www.python.org/sf/661630,
which was introduced in the patch http://www.python.org/sf/554192.
Martin v. Löwis [Fri, 3 Jan 2003 19:16:14 +0000 (19:16 +0000)]
Allow PyFile_GetLine() to return Unicode objects. Fixes #660165.
Neal Norwitz [Fri, 3 Jan 2003 18:12:28 +0000 (18:12 +0000)]
Fix SF #659228, 'realpath' function missing from os.path
Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.
Backport candidate, I think?
Greg Ward [Fri, 3 Jan 2003 18:03:21 +0000 (18:03 +0000)]
Spread the blame (err, I mean credit) for ossaudiodev around a bit.
Greg Ward [Fri, 3 Jan 2003 18:02:15 +0000 (18:02 +0000)]
Mention ossaudiodev.
Neal Norwitz [Fri, 3 Jan 2003 18:01:57 +0000 (18:01 +0000)]
Fix SF #659228, 'realpath' function missing from os.path
Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.
Backport candidate, I think?
Andrew M. Kuchling [Fri, 3 Jan 2003 16:52:27 +0000 (16:52 +0000)]
Write PEP 301 section
Mention difference between 2.2.2 and 2.3 True and False
Guido van Rossum [Fri, 3 Jan 2003 16:33:49 +0000 (16:33 +0000)]
Mention that imaplib now supports SSL -- this wasn't noted before.
Skip Montanaro [Fri, 3 Jan 2003 16:26:23 +0000 (16:26 +0000)]
qualify known Solaris versions related to the binutils breakage.
Andrew M. Kuchling [Fri, 3 Jan 2003 16:24:28 +0000 (16:24 +0000)]
Add SSL support for imaplib; add empty PEP301 section
Skip Montanaro [Fri, 3 Jan 2003 16:17:08 +0000 (16:17 +0000)]
update info about binutils 2.13 breakage on Solaris.