Neal Norwitz
117ef0863b
Reduce the max stack depth to see if this fixes the segfaults on
...
Windows and some other boxes. If this is successful, this rev should
be backported. I'm not sure how close to the limit we should push this.
2007-05-17 06:11:36 +00:00
Brett Cannon
5cd0fca9d8
Complete deprecation of BaseException.message. Some subclasses were directly
...
accessing the message attribute instead of using the descriptor.
2007-05-17 02:02:56 +00:00
Raymond Hettinger
72ef8daa88
calendar.py gets no benefit from xrange() instead of range()
2007-05-17 01:08:04 +00:00
Brett Cannon
d75f043c33
Remove the gopherlib module. It has been raising a DeprecationWarning since
...
Python 2.5.
Also remove gopher support from urllib/urllib2. As both imported gopherlib the
usage of the support would have raised a DeprecationWarning.
2007-05-16 22:42:29 +00:00
Neal Norwitz
b1a9b37aa8
Fix bug in marshal where bad data would cause a segfault due to
...
lack of an infinite recursion check.
Contributed by Damien Miller at Google.
2007-05-16 20:05:11 +00:00
Georg Brandl
f1135f30f8
Bug #1719995 : don't use deprecated method in sets example.
2007-05-16 13:44:18 +00:00
Brett Cannon
fa155111b4
Change the maintainer of the BeOS port.
2007-05-16 05:50:03 +00:00
Neal Norwitz
e0e70a42fa
Mention removal of some directories for obsolete platforms
2007-05-16 05:06:33 +00:00
Neal Norwitz
d501d1fbc4
Port rev 55353 from Guido:
...
Add what looks like a necessary call to PyErr_NoMemory() when PyMem_MALLOC()
fails.
Will backport.
2007-05-16 04:33:50 +00:00
Georg Brandl
a09a96a544
HTML-escape the plain traceback in cgitb's HTML output, to prevent
...
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.
2007-05-15 20:19:34 +00:00
Raymond Hettinger
8be9ab8497
Small speedup.
2007-05-14 20:52:31 +00:00
Neal Norwitz
cd498be90e
Remove support for freebsd[23] which haven't been released since 2000
...
or earlier. http://www.freebsd.org/releases/index.html
2007-05-13 21:13:42 +00:00
Neal Norwitz
25e4461666
Remove references to stdwin which was removed long ago.
2007-05-13 20:54:19 +00:00
Neal Norwitz
7072559db9
Remove Amoeba doc which was removed in version 1.0! according to Misc/HISTORY.
...
Hopefully Guido won't shed a tear. :-)
2007-05-13 20:45:05 +00:00
Georg Brandl
0c1f6fcaac
Add bz2 to content encodings.
2007-05-13 08:04:07 +00:00
Georg Brandl
2dd7d179de
Bug #1046945 : document SWIG options of distutils.
2007-05-12 21:06:41 +00:00
Raymond Hettinger
a74b67e15e
Better tests for posixpath.commonprefix
2007-05-11 17:59:59 +00:00
Georg Brandl
e3e62b3783
Update DDJ link.
2007-05-11 11:43:56 +00:00
Georg Brandl
c5207c8425
Patch #1714700 : clarify os.linesep vs. tfiles opened in text mode.
...
(backport)
2007-05-11 11:04:26 +00:00
Georg Brandl
bc1b5f1669
Remove an XXX that is unnecessary.
2007-05-11 09:41:37 +00:00
Neal Norwitz
6bf8fa66ff
Deprecate os.popen* and popen2 module in favor of the subprocess module. (forgot the doc)
2007-05-11 07:13:30 +00:00
Neal Norwitz
42dd86b8e2
Deprecate os.popen* and popen2 module in favor of the subprocess module.
2007-05-11 06:57:33 +00:00
Neal Norwitz
82be218e97
Remove trailing whitespace in docstring
2007-05-11 06:56:52 +00:00
Neal Norwitz
aa87fb6be4
Fix typo in docstring (the module is popen2, not 3).
2007-05-11 06:23:01 +00:00
Neal Norwitz
d9841039db
Don't ever report a failure when the sum of the reference count differences
...
are zero. This should help reduce the false positives.
The message about references leaking is maintained to provide as much
info as possible rather than simply suppressing the message at the source.
2007-05-11 05:55:15 +00:00
Guido van Rossum
360496d9c0
Fix a bug in test_c_api() that caused a negative refcount.
2007-05-10 17:20:15 +00:00
Walter Dörwald
3ebc45d602
Backport checkin:
...
Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
instead of memchr().
2007-05-09 18:10:47 +00:00
Neal Norwitz
0999a1150a
Add markup for True/False. Will backport
2007-05-09 06:43:15 +00:00
Collin Winter
fa9be8c289
Fix a bug in test.test_support.open_urlresource().
...
If the call to requires() doesn't precede the filesystem check, we get the following situation:
1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped
2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs
3. ./python Lib/test/regrtest.py test_foo # test runs (!)
By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note.
2007-05-09 04:14:36 +00:00
Kristján Valur Jónsson
abe1d48d20
As per Armin Rigo's suggestion, remove special handing from intobject.c to deal with the peculiarities of classobject's implementation of the number protocol. The nb_long method of classobject now falls back to nb_int if there is no __long__ attribute present.
2007-05-07 16:46:54 +00:00
Neal Norwitz
58e123d75e
Verify changes to the trunk go to the normal checkins list
2007-05-07 07:02:26 +00:00
Vinay Sajip
8549ce335f
Updates of recent changes to logging.
2007-05-06 17:53:37 +00:00
Georg Brandl
cc40ff831c
Bug #1713535 : typo in logging example.
2007-05-05 18:55:37 +00:00
Brett Cannon
229cee2d3d
Deprecate BaseException.message as per PEP 352.
2007-05-05 01:34:02 +00:00
Thomas Heller
2ebc4d8054
Oops, these tests do not run on Windows CE.
2007-05-04 19:56:32 +00:00
Thomas Heller
1ad576c267
Do not truncate 64-bit pointers to 32-bit integers.
...
Fixes SF #1703286 , will backport to release25-maint.
2007-05-04 19:54:22 +00:00
Kristján Valur Jónsson
22ea025481
Minor fix of PCBuild8/_ctypes vcproj, moving include dir into the .vsprops file.
2007-05-04 17:28:06 +00:00
Kristján Valur Jónsson
465bdcc1d1
Update the pcbuild8 solution. Straightened out the _ctypes project by using a .vsproj file and a masm64.rules file to avoid redundancy
2007-05-04 15:48:15 +00:00
Thomas Heller
db3bfdf141
On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the
...
remaining crashes in the ctypes tests, when functions return float or
double types.
2007-05-04 08:20:41 +00:00
Thomas Heller
0455214f1c
Fix some ctypes test crashes, when running with a debug Python
...
version on win64 by using proper argtypes and restype function
attributes.
2007-05-04 07:14:39 +00:00
Kristján Valur Jónsson
c0e9840028
Revert compiler comment to AMD64 for x64/AMD64 builds.
2007-05-04 00:25:08 +00:00
Kristján Valur Jónsson
f030394de3
Fix problems in x64 build that were discovered by the testsuite:
...
- Reenable modules on x64 that had been disabled aeons ago for Itanium.
- Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above.
- Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms.
- Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform.
- Itertools module used wrong constant to check for overflow in count()
- PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member.
- PyLong_FromSsize_t() incorrectly specified that the operand were unsigned.
With these changes, the x64 passes the testsuite, for those modules present.
2007-05-03 20:27:03 +00:00
Kristján Valur Jónsson
170eee9d6a
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform.
2007-05-03 20:09:56 +00:00
Kristján Valur Jónsson
19ac472ba1
Fix pcbuild8 after recent overhaul: Added the version resource to python26.dll. Adjust stacksize to 2Mb and made large address aware for 32 bits, and set stacksize to 3Mb for 64 bits.
...
Todo: Set .dll optimized load addresses, and side-by-side packaging of the python26.dll.
2007-05-03 20:04:53 +00:00
Walter Dörwald
27f4abf3b1
Clarify the behaviour of PyUnicode_DecodeUTF16(): A BOM is only skipped
...
in native order mode, and only if it's the first two bytes.
2007-05-03 15:13:55 +00:00
Thomas Heller
9b73d0aed5
Don't truncate pointers to integers (on win64 platform).
2007-05-03 12:05:20 +00:00
Thomas Heller
8baeb11041
Fix building _ctypes.pyd for x64 / Windows.
2007-05-03 12:02:08 +00:00
Neal Norwitz
8b267b55ef
Remove dead code. This code couldn't be reached because earlier in
...
the function there is another check for z != Py_None.
2007-05-03 07:20:57 +00:00
Neal Norwitz
dc9b32e1ab
Handle a couple of uncaught errors. This should be backported
2007-05-03 06:47:18 +00:00
Georg Brandl
b8ae3d0138
Actually raise an exception before calling ast_error_finish.
...
Triggers an assertion otherwise.
2007-05-02 20:02:29 +00:00