Tim Peters
0e1159583c
shuffle() doscstring: Removed warning about sequence length
...
versus generator period. While this was a real weakness of the
older WH generator for lists with just a few dozen elements,
and so could potentially bite the naive ;-), the Twister should
show excellent behavior up to at least 600 elements.
Module docstring: reflowed some jarringly short lines.
2006-06-10 22:51:45 +00:00
Skip Montanaro
9a8ae8f46b
Suppress warning on MacOSX about possible use before set of proc.
2006-06-10 22:38:13 +00:00
Thomas Heller
9af2b44805
Handle failure of PyMem_Realloc.
2006-06-10 22:01:50 +00:00
Thomas Heller
9123edcc63
Don't use C++ comment.
2006-06-10 21:56:03 +00:00
Thomas Heller
eb6dcf6b0d
Fix the second occurrence of the problematic printf format.
2006-06-10 21:17:58 +00:00
Thomas Heller
5218ab263a
Fix a wrong printf format.
2006-06-10 21:07:19 +00:00
Thomas Heller
82578c895c
New docs for ctypes.
2006-06-10 20:29:34 +00:00
Fred Drake
9a7e4451d2
credit for SF patch #1303595
2006-06-10 20:02:58 +00:00
Fred Drake
5e30626f7f
SF patch #1303595 : improve description of __builtins__, explaining how it
...
varies between __main__ and other modules, and strongly suggest not touching
it but using __builtin__ if absolutely necessary
2006-06-10 20:01:34 +00:00
Thomas Heller
5114826950
Upgrade to ctypes version 0.9.9.7.
...
Summary of changes:
- support for 'variable sized' data
- support for anonymous structure/union fields
- fix severe bug with certain arrays or structures containing more than 256 fields
2006-06-10 19:55:36 +00:00
Thomas Heller
45f59ab3ee
Upgrade to ctypes version 0.9.9.7.
...
Summary of changes:
- support for 'variable sized' data
- support for anonymous structure/union fields
- fix severe bug with certain arrays or structures containing more than 256 fields
2006-06-10 19:51:46 +00:00
Greg Ward
c5221e157e
Sync with Optik docs (rev 518):
...
* restore "Extending optparse" section
* document ALWAYS_TYPED_ACTIONS (SF #1449311 )
2006-06-10 16:40:01 +00:00
Skip Montanaro
86116e2b75
document the class, not its initializer
2006-06-10 14:09:11 +00:00
Martin v. Löwis
0e8bd7e1cc
Patch #1495999 : Part two of Windows CE changes.
...
- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
2006-06-10 12:23:46 +00:00
Armin Rigo
acd0d6d416
SF bug #1503294 .
...
PyThreadState_GET() complains if the tstate is NULL, but only in debug mode.
2006-06-10 10:57:40 +00:00
Martin v. Löwis
787fe6d9f6
Port cygwin kill_python changes from 2.4 branch.
2006-06-10 08:14:03 +00:00
Georg Brandl
90e27d38f5
Apply perky's fix for #1503157 : "/".join([u"", u""]) raising OverflowError.
...
Also improve error message on overflow.
2006-06-10 06:40:50 +00:00
Brett Cannon
6946ea0be0
Fix bug introduced in rev. 46806 by not having variable declaration at the top of a block.
2006-06-09 22:45:54 +00:00
Brett Cannon
22565aac3b
An object with __call__ as an attribute, when called, will have that attribute checked for __call__ itself, and will continue to look until it finds an object without the attribute. This can lead to an infinite recursion.
...
Closes bug #532646 , again. Will be backported.
2006-06-09 22:31:23 +00:00
Georg Brandl
b2afe855e5
Make use of new str.startswith/endswith semantics.
...
Occurences in email and compiler were ignored due to backwards compat requirements.
2006-06-09 20:43:48 +00:00
Thomas Heller
3ebef999e6
set eol-style svn property
2006-06-09 20:01:01 +00:00
Thomas Heller
2ad7bd5f56
set eol-style svn property
2006-06-09 19:59:11 +00:00
Andrew M. Kuchling
b3f2985c8d
Add some wsgiref text
2006-06-09 19:56:05 +00:00
Andrew M. Kuchling
2007d4e892
Remove unused variable
2006-06-09 19:43:25 +00:00
Tim Peters
e558486953
Implementing a happy idea from Georg Brandl: make runtest() try to
...
clean up files and directories the tests often leave behind by
mistake. This is the first time in history I don't have a bogus
"db_home" directory after running the tests ;-)
Also worked on runtest's docstring, to say something about all the
arguments, and to document the non-obvious return values.
New functions runtest_inner() and cleanup_test_droppings() in
support of the above.
2006-06-09 19:24:44 +00:00
Andrew M. Kuchling
a04d118586
Describe startswith()/endswiith() change; add reminder about wsgiref
2006-06-09 19:03:16 +00:00
Georg Brandl
242508160e
RFE #1491485 : str/unicode.endswith()/startswith() now accept a tuple as first argument.
2006-06-09 18:45:48 +00:00
Brett Cannon
932f5afbe8
svn:ignore .pyc and .pyo files.
2006-06-09 18:40:46 +00:00
Georg Brandl
e7ec81f130
Test file.__exit__.
2006-06-09 18:29:52 +00:00
Tim Peters
982c30b861
Whitespace normalization.
2006-06-09 17:47:00 +00:00
Brett Cannon
c48b0e6657
Fix inconsistency in naming within an enum.
2006-06-09 17:05:48 +00:00
Andrew M. Kuchling
0873b11f2e
Add note about wsgiref
2006-06-09 16:46:51 +00:00
Andrew M. Kuchling
3fed2eb6dc
Add note about XMLGenerator bugfix
2006-06-09 16:44:40 +00:00
Phillip J. Eby
5cf565ddd1
Import wsgiref into the stdlib, as of the external version 0.1-r2181.
2006-06-09 16:40:18 +00:00
Kristján Valur Jónsson
dbeaa699cd
Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005.
...
Make the definition #ARRAYSIZE conditional. VisualStudio .NET 2005 already has it defined using a better gimmick.
2006-06-09 16:28:01 +00:00
Andrew M. Kuchling
91c64a05d2
[Bug #1472827 ] Make saxutils.XMLGenerator handle \r\n\t in attribute values by escaping them properly. 2.4 bugfix candidate.
2006-06-09 13:15:57 +00:00
Andrew M. Kuchling
7dbb1ff77d
Markup fix
2006-06-09 10:22:35 +00:00
Neal Norwitz
c9778a8951
Fix grammar and reflow
2006-06-09 05:54:18 +00:00
Tim Peters
71dc0a043b
Remove the temporary hack to force test_optparse to
...
run immediately after test_file. At least 8 buildbot
boxes passed since the underlying problem got fixed,
and they all failed before the fix, so there's no point
to this anymore.
2006-06-09 05:12:40 +00:00
Tim Peters
0556e9b119
testUnicodeOpen(): I have no idea why, but making this
...
test clean up after itself appears to fix the test failures
when test_optparse follows test_file.
test_main(): Get rid of TESTFN no matter what. That's
also enough to fix the mystery failures. Doesn't hurt
to fix them twice :-)
2006-06-09 04:02:06 +00:00
Tim Peters
dbb82f623f
AutoFileTests.tearDown(): Removed mysterious undocumented
...
try/except. Remove TESTFN.
Throughout: used open() instead of file(), and wrapped
long lines.
2006-06-09 03:51:41 +00:00
Tim Peters
2b6377912e
To boost morale :-), force test_optparse to run immediately
...
after test_file until we can figure out how to fix it.
(See python-dev; at the moment we don't even know which checkin
caused the problem.)
2006-06-09 03:09:42 +00:00
Tim Peters
520d8ddd97
Whitespace normalization.
...
Since test_file is implicated in mysterious test failures
when followed by test_optparse, if I had any brains I'd
look at the checkin that last changed test_file ;-)
2006-06-09 02:11:02 +00:00
Andrew M. Kuchling
e878fe6a58
Update functools section
2006-06-09 01:10:17 +00:00
Brett Cannon
de3b052216
Buffer objects would return the read or write buffer for a wrapped object when
...
the char buffer was requested. Now it actually returns the char buffer if
available or raises a TypeError if it isn't (as is raised for the other buffer
types if they are not present but requested).
Not a backport candidate since it does change semantics of the buffer object
(although it could be argued this is enough of a bug to bother backporting).
2006-06-08 17:00:45 +00:00
Brett Cannon
6ee7d01c05
Make binascii.hexlify() use s# for its arguments instead of t# to actually
...
match its documentation stating it accepts any read-only buffer.
2006-06-08 16:23:04 +00:00
Georg Brandl
442b49e938
Convert test_file to unittest.
2006-06-08 14:50:53 +00:00
Georg Brandl
98b40ad590
Bug #1502805 : don't alias file.__exit__ to file.close since the
...
latter can return something that's true.
2006-06-08 14:50:21 +00:00
Nick Coghlan
676725db92
Add functools.update_wrapper() and functools.wraps() as described in PEP 356
2006-06-08 13:54:49 +00:00
Georg Brandl
98251f8a2f
Argh. "integer" is a very confusing word ;)
...
Actually, checking for INT_MAX and INT_MIN is correct since
the format code explicitly handles a C "int".
2006-06-08 13:31:07 +00:00