Thomas Heller
27bb71e963
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.
2003-01-08 14:33:48 +00:00
Fred Drake
326c72a839
Add notes about the linuxaudiodev and ossaudiodev modules.
2003-01-08 07:21:53 +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
Neal Norwitz
55d555f012
command doesn't work, but program does, not sure it's correct, though
2003-01-08 05:27:42 +00:00
Greg Ward
19b6f60f5c
There's no such method as has_option() -- should be has_extn().
2003-01-08 03:04:42 +00:00
Greg Ward
d4fee28717
Rewrite awkward/ungrammatical sentence.
...
Typo fix.
2003-01-08 03:02:26 +00:00
Andrew M. Kuchling
d97b01cb82
Bump version number
2003-01-08 02:09:40 +00:00
Greg Ward
0a6355eb1f
Add reminder that ossaudiodev can/should also be built on FreeBSD.
2003-01-08 01:37:41 +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
cd0c047619
Note about rexec.py and Bastion.py. This requires doc changes and
...
whatsnew updates as well.
2003-01-07 23:03:05 +00:00
Barry Warsaw
b6604b3e69
Document EX_OK and friends.
2003-01-07 22:43:25 +00:00
Barry Warsaw
fe33b795d5
Test for presence of sysexits.h and set HAVE_SYSEXITS_H if so. Used
...
by posixmodule.c.
2003-01-07 22:42:49 +00:00
Neal Norwitz
051314f924
SF #664011 , move tarfile module in docs
2003-01-07 22:36:04 +00:00
Barry Warsaw
5676bd1c2d
all_ins(): EX_OK and friends, constants from sysexits.h
2003-01-07 20:57:09 +00:00
Barry Warsaw
f8ba39c4c0
A note about EX_OK and friends in the posixmodule.
2003-01-07 20:55:26 +00:00
Guido van Rossum
6d0d3655af
Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread
...
state swaps in readline).
2003-01-07 20:34:19 +00:00
Guido van Rossum
05ac449d29
A few more whitespace normalizations.
2003-01-07 20:04:12 +00:00
Guido van Rossum
74f3143d18
Various cleanups:
...
- Whitespace normalization.
- Cleaned up some comments.
- Broke long lines.
2003-01-07 20:01:29 +00:00
Guido van Rossum
8b7b345328
Use regular expressions for branch matching, to avoid including
...
changes on a sub-branch into output for a given branch.
2003-01-07 16:46:24 +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
a9cfa5501f
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.
2003-01-07 09:55:03 +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
Andrew M. Kuchling
674b0bfde6
Add tarfile module
2003-01-07 00:07:19 +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
cd118803b5
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.
2003-01-06 22:57:47 +00:00
Raymond Hettinger
0a2f849b79
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.
2003-01-06 22:42:41 +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
Andrew M. Kuchling
ef893fe452
Add Tix and rexec changes
2003-01-06 20:04:17 +00:00
Raymond Hettinger
8ef3d8d5d1
Fix spelling.
2003-01-06 18:41:01 +00:00
Skip Montanaro
2d98db6bb6
delete reference to defunct Misc/HPUX-NOTES. Adjust reference for BeOS
...
notes.
2003-01-06 17:23:37 +00:00
Skip Montanaro
ead73b88da
removing - contains outdated information
2003-01-06 17:14:28 +00:00
Neal Norwitz
488609e43a
SF #642236 , optparse LaTeX docs by Johannes Gijsbers
2003-01-06 16:51:37 +00:00
Fred Drake
11f89b75e1
Strike any hint that from-import-* could ever be reasonable; it's a
...
vile abomination and should be eradicated!
2003-01-06 16:38:10 +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
Fred Drake
2e3ae21060
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
2003-01-06 15:50:32 +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
Fred Drake
2b0a3d33f8
Fix markup so this will format again.
2003-01-06 15:03:11 +00:00
Raymond Hettinger
9f5b07dd92
SF bug #592859 : os.chmod is underdocumented
...
Document constants for permission bits.
2003-01-06 13:31:26 +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
1772f17666
SF bug #661848 and #631055 : Clarify use of __all__.
2003-01-06 12:54:54 +00:00
Jason Tishler
fb8595df4f
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.
2003-01-06 12:41:26 +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
Raymond Hettinger
698258a199
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.
2003-01-06 10:33:56 +00:00