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
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
Neal Norwitz
6d23b170cf
Fix a typo
2003-01-05 22:20:51 +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
Raymond Hettinger
3dd990c53a
Move the statistical tests for four distributions into the unittest suite.
2003-01-05 09:20:06 +00:00
Tim Peters
541ceec3e6
PyCFunction_Call(): Combined two switch cases w/ identical bodies.
2003-01-05 07:22:44 +00:00
Raymond Hettinger
15ec3731cf
Add a test case.
2003-01-05 01:08:34 +00:00
Greg Ward
5bd844e20f
Tweak __version__ -- the current code is between Optik 1.4 and 1.4.1.
2003-01-04 21:54:26 +00:00
Just van Rossum
8afa3a3092
module to run commands in a Terminal.app window
2003-01-04 21:44:21 +00:00
Tim Peters
75a6e3bd1a
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().
2003-01-04 18:17:36 +00:00
Just van Rossum
85e4c6757f
correct comment (and add newline at end)
2003-01-04 16:26:26 +00:00
Guido van Rossum
5e1222be57
Add Shockwave Flash.
...
(backport candidate?)
2003-01-04 14:11:38 +00:00
Raymond Hettinger
73ced7ee99
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.
2003-01-04 09:26:32 +00:00
Martin v. Löwis
3a57d9de07
Fix typo.
2003-01-04 08:54:59 +00:00
Martin v. Löwis
6a759d9e00
Remove appartment check from dooneevent. Fixes #660961 .
...
Check whether self is NULL in mainloop.
2003-01-04 08:36:57 +00:00
Tim Peters
adf642038e
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>).
2003-01-04 06:03:15 +00:00
Raymond Hettinger
8ec78814c1
Test an edge case for sample().
2003-01-04 05:55:11 +00:00
Raymond Hettinger
8b9aa8dbba
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().
2003-01-04 05:20:33 +00:00
Skip Montanaro
950cdacfa5
Moved this info to the top-level README where all the other
...
platform-specific verbiage lives.
2003-01-04 04:12:19 +00:00
Skip Montanaro
5a47e5ba04
The bsddb3 library does not build w/ Berkeley DB 3.0. 3.1 is the earliest
...
supported version.
2003-01-04 04:06:56 +00:00