Commit graph

79595 commits

Author SHA1 Message Date
Eli Bendersky
f81de8df0a Issue #17378: ctypes documentation fix.
Document that ctypes automatically applies byref() when argtypes declares
POINTER.
2013-03-08 05:31:54 -08:00
Vinay Sajip
becf5c6deb Issue #17384: Consolidated cleanup operations in tests. 2013-03-08 09:50:57 +00:00
Benjamin Peterson
00e9886bd9 Add PyDict_SetDefault. (closes #17327)
Patch by Stefan Behnel and I.
2013-03-07 22:16:29 -05:00
Victor Stinner
763edc1c6a (Merge 3.3) Issue #17223: the test is specific to 32-bit wchar_t type
Skip the test on Windows.
2013-03-08 02:33:44 +01:00
Victor Stinner
29c0034ff9 Issue #17223: the test is specific to 32-bit wchar_t type
Skip the test on Windows.
2013-03-08 02:33:06 +01:00
R David Murray
857b24b0d5 Merge: PEP8 fixup on previous patch, remove unused imports in test_email. 2013-03-07 18:17:19 -05:00
R David Murray
965794ed58 Merge: PEP8 fixup on previous patch, remove unused imports in test_email. 2013-03-07 18:16:47 -05:00
R David Murray
b9534f4ed5 PEP8 fixup on previous patch, remove unused import in test_email. 2013-03-07 18:15:13 -05:00
R David Murray
2e78cd9b5e Merge: #14645: Generator now emits correct linesep for all parts.
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 17:31:21 -05:00
R David Murray
addb0be63e Merge: #14645: Generator now emits correct linesep for all parts.
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 16:43:58 -05:00
R David Murray
e67c6c545b #14645: Generator now emits correct linesep for all parts.
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 16:38:03 -05:00
Ezio Melotti
03e667d15a Fix memory leak introduced in 15190138d3f3. 2013-03-07 21:18:45 +02:00
Ezio Melotti
d4725f3f20 Merge typo fix in Misc/NEWS entry from 3.3. 2013-03-07 19:56:15 +02:00
Ezio Melotti
0e7ec44aa9 Merge typo fix in Misc/NEWS entry from 3.2. 2013-03-07 19:55:08 +02:00
Ezio Melotti
697e7bacbc Fix typo in Misc/NEWS entry. 2013-03-07 19:53:19 +02:00
Ezio Melotti
a44ce78d94 #11732: null merge with 3.3. 2013-03-07 18:46:09 +02:00
Ezio Melotti
de7f4b2947 #11732: null merge with 3.2. 2013-03-07 18:45:48 +02:00
Ezio Melotti
1f38621a33 #11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes. 2013-03-07 18:44:29 +02:00
Ezio Melotti
1181a46e09 #11732: merge with 3.3. 2013-03-07 18:38:45 +02:00
Ezio Melotti
e846342f8a #11732: make suppress_crash_popup() work on Windows XP and Windows Server 2003. 2013-03-07 18:37:13 +02:00
Nick Coghlan
90c91afd2e Merge fix for #15465 from 3.3 2013-03-07 23:45:03 +10:00
Nick Coghlan
7d82c8621b Close #15465: Document C API version macros
Mostly moving the existing macro docs over from the standard
library docs to the C API docs where they belong.

Patch by Kushal Das.
2013-03-07 23:14:44 +10:00
Giampaolo Rodola'
3ff5e7578e Refactor ftplib by getting rid of 4 methods (retr*() and stor*()) which were duplicated in TLS_FTP class. 2013-03-07 14:03:27 +01:00
Giampaolo Rodola'
94c56a172c PEP8-ify ftplib.py: get rid of multiple statements on one line (if cond: ...) 2013-03-07 13:51:20 +01:00
Stefan Krah
e8d4d51f59 Merge 3.3. 2013-03-07 01:23:01 +01:00
Stefan Krah
4f1974496a Issue #17361: Use cc from sysconfig for testing flags. 2013-03-07 01:12:03 +01:00
Victor Stinner
fb84b5d48d (Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
2013-03-06 19:29:09 +01:00
Victor Stinner
2cb16aa3cb _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
2013-03-06 19:28:37 +01:00
Eli Bendersky
82078bcfc3 Fix doc grammar and line width 2013-03-06 06:53:39 -08:00
Eli Bendersky
be0c028eb5 Fix doc grammar and line width 2013-03-06 06:50:36 -08:00
Eli Bendersky
68dd8ba010 Fix doc grammar and line width 2013-03-06 06:49:22 -08:00
Eli Bendersky
f9164e13fc Fix doc grammar and line width 2013-03-06 06:48:57 -08:00
Eli Bendersky
ca83233216 Fix formatting changes that led to compilation errors 2013-03-06 06:30:23 -08:00
Eli Bendersky
3612da6b2b call_commethod was only used in samples/Windows, which no longer exists.
This method is dead code - not documented, not tested. As far as we know, it
can be horribly broken.
2013-03-06 06:21:46 -08:00
Eli Bendersky
d867bad0fc Fix some formatting 2013-03-06 05:45:57 -08:00
Ezio Melotti
ed63754ef6 #17364: merge with 3.3. 2013-03-06 03:23:52 +02:00
Ezio Melotti
20d19241e5 #17364: merge with 3.2. 2013-03-06 03:23:28 +02:00
Ezio Melotti
f5a9bc5fdd #17364: remove documentation for a function that does not exist. 2013-03-06 03:20:27 +02:00
Ezio Melotti
33e20d1954 #17364: remove documentation for a function that does not exist. 2013-03-06 03:20:27 +02:00
Ezio Melotti
648b5900d5 #17363: merge with 3.3. 2013-03-06 02:59:25 +02:00
Ezio Melotti
32b0f02034 #17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs. 2013-03-06 02:57:25 +02:00
Victor Stinner
cf77da9fb5 Backed out changeset b9f7b1bf36aa 2013-03-06 01:09:24 +01:00
Victor Stinner
313cac88c5 Issue #17223: Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type)
to reject invalid UTF-16 surrogate.
2013-03-06 00:41:50 +01:00
Victor Stinner
e5c0533b58 Issue #17223: Add another test to check that _PyUnicode_Ready() rejects
code points bigger than U+10ffff
2013-03-06 00:39:03 +01:00
Ezio Melotti
87a249c119 #11732: merge with 3.3. 2013-03-05 20:33:38 +02:00
Ezio Melotti
e1857d999d Fix indentation. 2013-03-05 20:31:34 +02:00
Ezio Melotti
25a404520d #11732: add a new suppress_crash_popup() context manager to test.support. 2013-03-05 20:26:17 +02:00
Senthil Kumaran
df1d3c5c4b Reverting the changeset b87792757ee8 made for Issue #12921 2013-03-05 02:28:18 -08:00
Senthil Kumaran
884f0585a4 Reverting the changeset 5d76a4746d9d made for Issue #12921 2013-03-05 02:26:50 -08:00
Senthil Kumaran
1e7551dc87 Reverting the changeset 5126e62c60af made for Issue #12921 2013-03-05 02:25:58 -08:00