Neal Norwitz
35cff5ff75
Document "new" params to HTTPConnection/HTTPSConnection
2007-05-22 06:09:24 +00:00
Georg Brandl
13703087ba
Backport rev 55465 by Nick Coghlan.
2007-05-20 15:03:06 +00:00
Neal Norwitz
df73802131
Backout the original 'fix' to 1721309 which had no effect.
...
Different versions of Berkeley DB handle this differently.
The comments and bug report should have the details. Memory is allocated
in 4.4 (and presumably earlier), but not in 4.5. Thus
4.5 has the free error, but not earlier versions.
Mostly update comments, plus make the free conditional.
2007-05-20 02:14:48 +00:00
Neal Norwitz
73bf1018d6
Backport rev 55452:
...
Whoops, need to pay attention to those test failures.
Move the clear to *before* the first use, not after.
2007-05-19 04:37:31 +00:00
Neal Norwitz
f86ae691d3
Backport rev 55450:
...
SF bug #1721309 : Clear data so random memory does not get freed.
2007-05-19 03:53:33 +00:00
Neal Norwitz
cf0fab2686
Verify neither dumps or loads overflow the stack and segfault.
2007-05-18 05:45:33 +00:00
Neal Norwitz
ce15dce421
Drop the max stack depth to something that works in 2.6
2007-05-18 05:12:22 +00:00
Fred Drake
2cb077a8c1
fix argument name in documentation; match the implementation
2007-05-17 19:29:43 +00:00
Neal Norwitz
dc78cc6f7c
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:09:36 +00:00
Georg Brandl
4043a6bbd6
Bug #1719995 : don't use deprecated method in sets example.
...
(backport from rev. 55383)
2007-05-16 13:44:25 +00:00
Neal Norwitz
5ece2fb0d1
Add what looks like a necessary call to PyErr_NoMemory() when PyMem_MALLOC()
...
fails.
2007-05-16 04:35:11 +00:00
Georg Brandl
4c87581c32
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.
(backport from rev. 55348)
2007-05-15 20:19:39 +00:00
Georg Brandl
0d338e4bc6
Bug #1046945 : document SWIG options of distutils.
...
(backport from rev. 55287)
2007-05-12 21:06:51 +00:00
Georg Brandl
39d8cc7422
Update DDJ link.
...
(backport from rev. 55259)
2007-05-11 11:44:00 +00:00
Georg Brandl
5a25e45d3a
Patch #1714700 : clarify os.linesep vs. tfiles opened in text mode.
...
(backport)
2007-05-11 11:03:46 +00:00
Neal Norwitz
914c98bfe3
Fix typo in docstring (the module is popen2, not 3).
2007-05-11 06:23:43 +00:00
Thomas Heller
e4b5c331fc
Mark blocked revisions.
2007-05-10 07:19:16 +00:00
Thomas Heller
455c4b377b
Mark already merged revisions.
2007-05-10 06:53:40 +00:00
Walter Dörwald
0ac60611fe
Backport checkin:
...
Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
instead of memchr().
2007-05-09 18:13:53 +00:00
Neal Norwitz
6ca6f1472c
Backport r55070: Stop using PyMem_FREE while the GIL is not held.
2007-05-09 06:45:53 +00:00
Neal Norwitz
27803cee9a
Backport: Add markup for True/False.
2007-05-09 06:44:23 +00:00
Kristján Valur Jónsson
a01d6609b9
Merge change 54983 from the trunk: Add the locale "English" to test_locale.py for a windows run, since "En" isn't legal for the Visual C 8 runtime. This update restores full testsuite compliance to VisualStudio 2005 builds, apart from unavailible external modules.
2007-05-07 19:31:41 +00:00
Kristján Valur Jónsson
a1392d5ace
Merge change 54982 from the trunk. This fixes the test_subprocess test in the testsuite for VisualStudio2005 builds, by "sanitizing" the "mode" that is used in the posixmodule's fdopen(). In particular the non-standard "U" mode character is removed.
2007-05-07 19:25:38 +00:00
Kristján Valur Jónsson
dffe9a214b
the nb_long slot on classobject instances now defaults to call the nb_int slot member if there is no __long__ attribute found. This is in accordance with a suggestion from Armin Rigo, and allows the test_getargs2.py test in the testsuite for x64
2007-05-07 18:36:39 +00:00
Kristján Valur Jónsson
f4601d874f
Fix two problems that emerged when the testsuite was run with an x64 build: PyLong_FromSSize_t incorrectly assumed an unsigned object, and itertools.count() had the wrong upper limit for the iterator.
2007-05-07 18:30:48 +00:00
Kristján Valur Jónsson
b4c285a25b
Fix NonRecursiveMutex on x64. The signature of the faux-InterlockedCompareExchange function was wrong: It works with LONG and not PVOID objects, and it needs to have the target marked as volatile. Further, it is not needed at all for x64 targets, since that platform always has the real McCoy.
2007-05-07 18:28:12 +00:00
Kristján Valur Jónsson
7bca027f64
Merging change 55102 from the trunk:
...
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-07 13:33:39 +00:00
Georg Brandl
4e6b5e9ead
Bug #1713535 backport.
2007-05-05 18:57:09 +00:00
Kristján Valur Jónsson
b4c0bea528
Merging changes 55092, 55101,55120 from trunk, making PCBuild8 solution up to date.
2007-05-05 08:32:03 +00:00
Thomas Heller
a982bb114e
Blocked revisions 54357 via svnmerge
...
........
r54357 | thomas.heller | 2007-03-13 21:42:52 +0100 (Tue, 13 Mar 2007) | 1 line
Patch #1649190 : Adding support for _Bool to ctypes as c_bool, by David Remahl.
........
2007-05-04 22:08:22 +00:00
Walter Dörwald
f8f68fbe0e
Backport checkin:
...
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:16:16 +00:00
Thomas Heller
412b20bd31
Merged revisions 55027 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes
........
r55027 | thomas.heller | 2007-04-30 18:04:57 +0200 (Mo, 30 Apr 2007) | 8 lines
When accessing the .value attribute of a c_wchar_p instance, and the
instance does not point to a valid wchar_t zero-terminated string,
raise a ValueError. c_char_p does this already.
The ValueError message now contains the correct pointer address.
Will backport to release25-maint.
........
2007-05-02 19:41:16 +00:00
Kristján Valur Jónsson
e5ebbecae3
Additional changes to the property sheets in PCBuild8. Visual Studio doesn's save those when it builds, unlike the .vcproj files, so I chekced in out-of-date versions.
2007-05-02 16:08:51 +00:00
Kristján Valur Jónsson
00b0a9e5b2
Undefine the Yield macro after including Python_ast.h where it may cause conflicts with winbase.h on Windows.
2007-05-02 16:02:48 +00:00
Kristján Valur Jónsson
55d53f0367
Merging of change 55024 from the truk to release25-maint branch.
...
Complete revamp of PCBuild8 directory. Use subdirectories for each project under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64.
2007-05-02 15:55:14 +00:00
Georg Brandl
9aa62ff4a1
Patch #1710352 : add missing public functions to locale.__all__.
...
(backport from rev. 55038)
2007-05-01 06:08:20 +00:00
Georg Brandl
be69a0acc4
Bug #1710295 : exceptions are now new-style classes.
...
(backport from rev. 55036)
2007-05-01 06:04:20 +00:00
Thomas Heller
f69fa1756f
Merged revisions 55025 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes
........
r55025 | thomas.heller | 2007-04-30 17:44:17 +0200 (Mo, 30 Apr 2007) | 4 lines
Make sure to call PyErr_NoMemory() in several places where
PyMem_Malloc() could potentially fail.
Will backport to the release25-maint branch.
........
2007-04-30 15:58:51 +00:00
Neal Norwitz
80a42c079f
Update with the version that has been running for a while. Most of
...
the changes are to support multiple versions (ie, trunk and 2.5).
Also check for conflicts in the .tex file when a release is cut.
2007-04-29 23:56:19 +00:00
Brett Cannon
daa2e58104
Backport fix for r54646-7: properly clear locale cache in time.strptime when
...
the locale changes between calls.
2007-04-27 23:17:43 +00:00
Brett Cannon
a801b6a1fd
Backport r54712: document that calling file.next() on a file open for writing
...
leads to undefined behaviour.
2007-04-27 22:35:57 +00:00
Georg Brandl
c22aee03c6
Version fix (bug #1708710 )
2007-04-27 19:19:29 +00:00
Fred Drake
12c295040c
fix some markup errors
2007-04-26 04:43:58 +00:00
Barry Warsaw
ca3b7b5ea1
bump email package version to 4.0.2
2007-04-25 19:26:37 +00:00
Neal Norwitz
44dab0ab2f
Whitespace normalization
2007-04-25 06:42:41 +00:00
Georg Brandl
eeff493426
Markup fix.
...
(backport from rev. 54951)
2007-04-25 06:25:57 +00:00
Georg Brandl
d1e3f6df38
Patch #1698768 : updated the "using Python on the Mac" intro.
...
(backport from rev. 54949)
2007-04-25 06:25:07 +00:00
Raymond Hettinger
4db90ac485
Fix markup
2007-04-24 22:04:26 +00:00
Georg Brandl
f784d91215
Bug #1706381 : Specifying the SWIG option "-c++" in the setup.py file
...
(as opposed to the command line) will now write file names ending in
".cpp" too.
(backport from rev. 54941)
2007-04-24 15:27:25 +00:00
Georg Brandl
22c00e08bf
Bug #1705717 : error in sys.argv docs.
...
(backport from rev. 54939)
2007-04-24 15:10:16 +00:00