Fred Drake
b8ab8b6da8
move support code to a helper module to ease re-use
2004-06-17 20:14:50 +00:00
Raymond Hettinger
aefde435ef
Reverse argument order for nsmallest() and nlargest().
...
Reads better when the iterable is a generator expression.
2004-06-15 23:53:35 +00:00
Fred Drake
d0620dcf00
add a test that actually installs some scripts
2004-06-15 16:55:46 +00:00
Fred Drake
bb7c14461d
One unit test for distutils is not much, but is more than we had yesterday.
...
We need to write more; hopefully the barrier is a little lower now.
2004-06-15 15:49:46 +00:00
Raymond Hettinger
a050171ee9
SF bug #973092 : inspect.getframeinfo bug if 'context' is to big
...
Make sure the start argument is not negative.
2004-06-15 11:22:53 +00:00
Raymond Hettinger
b67ad7e671
Patch #826074 : cmath.log optional base argument, fixes #823209
...
(Contributed by Andrew Gaul.)
2004-06-14 07:40:10 +00:00
Martin v. Löwis
ad21945d03
Back out #957240 .
2004-06-14 04:58:42 +00:00
Raymond Hettinger
bb6b7346ce
Apply heapq.nlargest() to find best matches.
2004-06-13 09:57:33 +00:00
Raymond Hettinger
59efe363b6
Add heapq to list of __all__ checks.
2004-06-13 05:46:14 +00:00
Raymond Hettinger
2e3dfaf707
Install C version of heapq.nsmallest().
2004-06-13 05:26:33 +00:00
Michael W. Hudson
84a7f0077c
note a really bad test (no time to fix now)
2004-06-12 16:30:32 +00:00
Raymond Hettinger
b25aa36f83
Improve the memory performance and speed of heapq.nsmallest() by using
...
an alternate algorithm when the number of selected items is small
relative to the full iterable.
2004-06-12 08:33:36 +00:00
Fred Drake
0eb32a65b0
Add support for package data.
...
This is basically the support for package data from Phillip Eby's
setuptools package. I've changed it only to fit it into the core
implementation rather than to live in subclasses, and added
documentation.
2004-06-11 21:50:33 +00:00
Michael W. Hudson
5c26e86096
lightly modified version of my patch
...
[ 971323 ] make test_signal less annoying
after some comments on IRC from a highly opinionated australian who
wishes to remain anonymous.
2004-06-11 18:09:28 +00:00
Anthony Baxter
c982bbde1c
Bug 957381: rpmbuild builds a -debuginfo rpm on recent Redhat and Fedora releases.
...
Ignore it, rather than breaking.
Will backport.
(and r1.1000 for Misc/NEWS!)
2004-06-11 17:16:46 +00:00
Anthony Baxter
01e80b45d6
fix a poorly worded error message
2004-06-11 15:57:49 +00:00
Skip Montanaro
a5616d2255
Respect a module's __all__ attribute. Closes #969938 .
2004-06-11 04:46:12 +00:00
Raymond Hettinger
bce036b49e
Convert test_heapq.py to unittests.
2004-06-10 05:07:18 +00:00
Raymond Hettinger
33ecffb65a
SF patch #969791 : Add nlargest() and nsmallest() to heapq.
2004-06-10 05:03:17 +00:00
Tim Peters
4182cfd7db
test_devnull(): Use assertEqual() instead of an assert stmt.
2004-06-08 20:34:34 +00:00
Brett Cannon
6ccc9a99df
Removed test_sitepackages test. Skip discovered that it only passed if Python
...
had already been installed previously.
2004-06-08 18:25:48 +00:00
Martin v. Löwis
bdec50f027
Feature request #935915 : Add os.path.devnull.
2004-06-08 08:29:33 +00:00
Tim Peters
604c013ef2
SF 952807: Unpickling pickled instances of subclasses of datetime.date,
...
datetime.datetime and datetime.time could yield insane objects. Thanks
to Jiwon Seo for the fix.
Bugfix candidate. I'll backport it to 2.3.
2004-06-07 23:04:33 +00:00
Skip Montanaro
1c0228a519
Another nit found by Neal Norwitz using pychecker. This was caused by a
...
too-mechanical translation when converting html() to text() (simply stripped
strong() where it appeared).
2004-06-07 11:20:40 +00:00
Neal Norwitz
1cdd3632a0
Cleanup: the in operator already returns a bool, no need to bool() it again
...
Cleanup: use condition to be consistent with code above
CookieJar is in cookielib
2004-06-07 03:49:50 +00:00
Neal Norwitz
492faa5505
There is no reason to have an underscore after self
2004-06-07 03:47:06 +00:00
Neal Norwitz
c75f891879
Remove a useless operation, setting name to itself
2004-06-07 03:45:56 +00:00
Skip Montanaro
f2134842b4
correct name error caught by Neal Norwitz with pychecker
2004-06-07 02:40:05 +00:00
Raymond Hettinger
5dae505bbd
Fix typo in comment.
2004-06-07 02:07:15 +00:00
Neal Norwitz
c28e7ad3d0
Try to improve test coverage for utime()
2004-06-06 20:27:05 +00:00
Neal Norwitz
7b0a5057af
Look for the multibyte codec map files in the parent directory too
...
This is similar to test_normalization, so that many source trees
can reference the same test file(s).
2004-06-06 20:09:49 +00:00
Skip Montanaro
0179a18034
add -L flag to cause leaks(1) command to run just before exit
2004-06-06 15:53:18 +00:00
Kurt B. Kaiser
4d5bc6031c
Noam Raphel: Further developemt of CodeContext feature.
...
The visibility state of the code context pane is now persistent between
sessions and the pane does not appear in the shell window.
M CodeContext.py
M EditorWindow.py
M NEWS.txt
M PyShell.py
M config-extensions.def
M configHandler.py
2004-06-06 01:29:22 +00:00
Neil Schemenauer
6412b121f6
Remove a number of tests that differ only in input data size. It seems
...
no bug motivated their inclusion and the chance of them triggering a
problem seems unlikely. Refactor to reduce code duplication. Rename
'hamlet_scene' to 'HAMLET_SCENE'. Test is much faster now. Closes #960995 .
2004-06-05 19:34:28 +00:00
Andrew M. Kuchling
26f6bdf4f1
[Bug #758665 ] cgitb.scanvars() fails because of an unititialized value variable. Patch from Robin Becker.
2004-06-05 19:15:34 +00:00
Neil Schemenauer
94afd3e7ae
Remove lots of magic constants.
2004-06-05 19:02:52 +00:00
Hye-Shik Chang
2400e93057
SF #877165 : Give an info about what C++ compiler command should be
...
used in cygwin and mingw32. (Reported by Michael Droettboom)
2004-06-05 18:37:53 +00:00
Skip Montanaro
58fc5d0813
Rewrote to use temporary files instead of StringIO objects in most places.
...
Goal is to work in the direction of universal newline support.
2004-06-05 17:03:20 +00:00
Andrew M. Kuchling
a2c9a98a0a
[Bug #897935 ] Fix fd leak in pty.spawn(). Reported by James Henstridge; 2.3 bugfix candidate.
2004-06-05 16:27:16 +00:00
Andrew M. Kuchling
b7d8ce0275
[Bug #921657 ] Allow '@' in unquoted HTML attributes. Not strictly legal according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann.
2004-06-05 15:31:45 +00:00
Raymond Hettinger
9021c95595
SF bug #964230 : random.choice([]) should return more intelligible exception
...
Add a comment to make the traceback less mysterious.
2004-06-05 14:53:22 +00:00
Andrew M. Kuchling
ba8b6bc86f
[Bug #954364 ] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
2004-06-05 14:11:59 +00:00
Hye-Shik Chang
39aef79821
Fix a bug that robotparser starves memory when the server responses
...
in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and
urllib.addbase.
2004-06-05 13:30:56 +00:00
Andrew M. Kuchling
5962f457b4
[Bug #841757 ] Patch from /F to allow Unicode strings as struct keys
2004-06-05 12:35:58 +00:00
Andrew M. Kuchling
b12d97c275
[Bug #841757 ] Exercise handling of Unicode strings
2004-06-05 12:33:27 +00:00
Brett Cannon
0096e262ff
Refactored site.py into functions. Also moved over to using sets.
...
New regression test suite.
2004-06-05 01:12:51 +00:00
Raymond Hettinger
4e49b836db
SF patch #961387 : Make IDLE's paragraph reformatting width configurable
2004-06-04 06:31:08 +00:00
Hye-Shik Chang
3c145449da
Reuse width/iswide tests from strings_test. (Suggested by Walter Dörwald)
2004-06-04 04:24:54 +00:00
Hye-Shik Chang
6838c557fa
Add comments for unicode-only methods to give hints on AttributeError
...
tracebacks. (Suggested by Walter Dörwald)
2004-06-04 04:23:29 +00:00
Hye-Shik Chang
7bd860655f
Fix typo.
2004-06-04 03:19:17 +00:00