Commit graph

79929 commits

Author SHA1 Message Date
R David Murray
4d35e75ca0 #17818: aifc.getparams now returns a namedtuple.
Patch by Claudiu Popa.
2013-07-25 16:12:01 -04:00
Guido van Rossum
840c310a25 Fix typo on MutableSequence docstring. 2013-07-25 11:55:41 -07:00
R David Murray
bd2a757010 Merge #15130: remove repeat of abstract paragraph from socket howto body. 2013-07-25 13:24:40 -04:00
R David Murray
b76b1b1ec8 #15130: remove repeat of abstract paragraph from socket howto body.
Patch by Tshepang Lekhonkhobe.
2013-07-25 13:24:15 -04:00
R David Murray
4d0f808c24 #18503: small cleanups in test_email.
Patch by Vajrasky Kok.
2013-07-25 12:15:28 -04:00
R David Murray
271ade87ac #18503: small cleanups in test_email.
Patch by Vajrasky Kok.
2013-07-25 12:11:55 -04:00
Vinay Sajip
c985d08e51 Closes #18491: Added script-wrapper functionality to launcher source (but not to executable). 2013-07-25 11:20:55 +01:00
Christian Heimes
7c8cd257e4 Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
2013-07-25 11:47:25 +02:00
Christian Heimes
9228837e31 Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
2013-07-25 11:46:10 +02:00
Ezio Melotti
99f969e7c7 #14853: merge with 3.3. 2013-07-25 05:24:47 +02:00
Ezio Melotti
b042daa5a7 #14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat. 2013-07-25 05:21:00 +02:00
Ezio Melotti
3e1e97a99a #16937: merge with 3.3. 2013-07-25 05:04:50 +02:00
Ezio Melotti
61b0c672b5 #16937: document that stdin is always buffered, even when -u is used. Patch by Elena Oat. 2013-07-25 05:04:02 +02:00
Christian Heimes
6f08d30afe Fix potential NULL pointer dereferencing in ast module
CID 719690
2013-07-24 21:02:50 +02:00
Christian Heimes
72f562f719 Fix potential NULL pointer dereferencing in ast module
CID 719690
2013-07-24 21:02:17 +02:00
Vinay Sajip
aca61703fa Closes #18541: merged update from 3.3. 2013-07-24 17:52:58 +01:00
Vinay Sajip
a92fbe6dce Issue #18541: simplified LoggerAdapter example. 2013-07-24 17:52:01 +01:00
Benjamin Peterson
26421ab302 merge 3.3 2013-07-22 22:08:17 -07:00
Benjamin Peterson
7d28b6b379 return NULL here 2013-07-22 22:08:09 -07:00
Brian Curtin
a3852ff33a Add in a comment that was removed in 240adc564539 (requested by Victor Stinner) 2013-07-22 19:05:48 -05:00
Christian Heimes
52b9fdfbc2 Remove duplicate entry for sdigit.
I fixed it before the checkin but forgot to save... :wq
2013-07-23 02:01:33 +02:00
Christian Heimes
b911cfdd21 Add modeling file for Coverity Scan.
The modeling file avoids false positive reports.
2013-07-23 01:31:15 +02:00
Victor Stinner
ba30883f60 Issue #18520: Fix initstdio(), handle PySys_SetObject() failure 2013-07-22 23:55:19 +02:00
Victor Stinner
5b3b1006bb Issue #18520: Fix _PyDict_GetItemId(), suppress _PyUnicode_FromId() error
As PyDict_GetItem(), _PyDict_GetItemId() suppresses all errors that may occur,
for historical reasons.
2013-07-22 23:50:57 +02:00
Victor Stinner
34f96b8dd3 Issue #18520: Fix PyFunction_NewWithQualName() error handling 2013-07-22 23:04:55 +02:00
Victor Stinner
4d1f5d6eee Reindent PyFunction_NewWithQualName() 2013-07-22 23:02:05 +02:00
Victor Stinner
62ce62a3a1 Issue #18520: initsite() is a little bit more verbose when import site fails 2013-07-22 22:53:28 +02:00
Victor Stinner
580496005d Issue #18520: Fix _PySys_Init(), handle PyDict_SetItemString() errors 2013-07-22 22:40:00 +02:00
Victor Stinner
f54a574478 Issue #18520: PyErr_NoMemory() now fails with a fatal error if it is called
before PyExc_MemoryError has been initialized by _PyExc_Init()
2013-07-22 22:28:37 +02:00
Victor Stinner
1c8f059019 Issue #18520: Add a new PyStructSequence_InitType2() function, same than
PyStructSequence_InitType() except that it has a return value (0 on success,
-1 on error).

 * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure
 * Fix also some calls to PyDict_SetItemString(): handle error
2013-07-22 22:24:54 +02:00
Brian Curtin
2a545099f7 Merge 2013-07-22 13:08:21 -05:00
Brian Curtin
06f6fbffd4 Fix #18530. Remove extra stat call from posixpath.ismount 2013-07-22 13:07:52 -05:00
Serhiy Storchaka
9068e4d642 Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types.  Fixed a bug with skipping
some tests due to use of exhausted iterators.
2013-07-22 21:02:14 +03:00
Serhiy Storchaka
fa6bc29987 Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types.  Fixed a bug with skipping
some tests due to use of exhausted iterators.
2013-07-22 21:00:11 +03:00
Christian Heimes
7b3902a20f Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
2013-07-22 16:34:28 +02:00
Christian Heimes
1eb0cb12ac Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
2013-07-22 16:34:13 +02:00
Christian Heimes
de0e63bd9c Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
2013-07-22 12:54:21 +02:00
Christian Heimes
60a6067709 Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
2013-07-22 12:53:32 +02:00
Christian Heimes
7fca717815 merge 2013-07-22 10:38:04 +02:00
Christian Heimes
37c916dd18 merge 2013-07-22 10:37:41 +02:00
Christian Heimes
826b754e32 Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens when debugging
a new grammar.
CID 715360
2013-07-22 10:30:45 +02:00
Christian Heimes
53d2dc4045 Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens when debugging
a new grammar.
CID 715360
2013-07-22 10:30:14 +02:00
Victor Stinner
3a8573230c Issue #18488: Fix _pysqlite_final_callback()
Restore behaviour of Python 3.3: print the finalizer() error if
sqlite3.enable_callback_tracebacks() has been called, clear the error
otherwise.

But keep (save/restore) also the AttributeError raised in
_pysqlite_step_callback().
2013-07-22 08:34:32 +02:00
Terry Jan Reedy
db53ad7cf1 Merge with 3.3 2013-07-21 20:58:15 -04:00
Terry Jan Reedy
6e2711b345 Issue #18439: Make patchcheck work on Windows for ACKS, NEWS. 2013-07-21 20:57:44 -04:00
Christian Heimes
e5378e2223 Now all error paths of _freeze_importlib use 'goto error' and the error label cleans up all used resources. 2013-07-21 23:05:11 +02:00
Christian Heimes
43d82df406 Now all error paths of _freeze_importlib use 'goto error' and the error label cleans up all used resources. 2013-07-21 23:05:04 +02:00
Benjamin Peterson
c3e10c237b merge 3.3 2013-07-21 13:29:42 -07:00
Benjamin Peterson
0f9b7d32c7 fix spacing 2013-07-21 13:29:37 -07:00
Benjamin Peterson
33113a3504 merge 3.3 2013-07-21 13:26:27 -07:00