Serhiy Storchaka
|
4fdb68491e
|
Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
and PyObject_AsWriteBuffer().
|
2015-02-03 01:21:08 +02:00 |
|
Serhiy Storchaka
|
83cf99d733
|
Issue #20335: bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
|
2014-12-02 09:24:06 +02:00 |
|
Benjamin Peterson
|
c2cfa8ddd8
|
merge 3.3
|
2014-09-29 19:12:37 -04:00 |
|
Benjamin Peterson
|
d48bc9468f
|
these variables ought to be Py_ssize_t
|
2014-09-29 19:12:26 -04:00 |
|
Benjamin Peterson
|
18f836fb65
|
merge 3.3 (closes #22519)
|
2014-09-29 19:09:49 -04:00 |
|
Benjamin Peterson
|
42ff105539
|
fix overflow checking in PyBytes_Repr (closes #22519)
|
2014-09-29 19:01:18 -04:00 |
|
Kristján Valur Jónsson
|
25dded041f
|
Make the various iterators' "setstate" sliently and consistently clip the
index. This avoids the possibility of setting an iterator to an invalid
state.
|
2014-03-05 13:47:57 +00:00 |
|
Kristján Valur Jónsson
|
c5cc5011ac
|
Make the various iterators' "setstate" sliently and consistently clip the
index. This avoids the possibility of setting an iterator to an invalid
state.
|
2014-03-05 15:23:07 +00:00 |
|
Victor Stinner
|
507ac3a591
|
(Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
"%c" argument is not in range [0; 255].
|
2013-12-13 12:15:31 +01:00 |
|
Victor Stinner
|
c9362cf86a
|
Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
|
2013-12-13 12:14:44 +01:00 |
|
Christian Heimes
|
d3afe781b1
|
Silence expression result unused warnings with clang.
The PyObject_INIT() macros returns obj:
../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value]
PyObject_INIT(op, &PyCFunction_Type);
^~
../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT'
( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
^
1 warning generated.
|
2013-12-04 09:27:47 +01:00 |
|
Christian Heimes
|
985ecdcfc2
|
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.
|
2013-11-20 11:46:18 +01:00 |
|
Ezio Melotti
|
745d54d2fa
|
#17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs().
|
2013-11-16 19:10:57 +02:00 |
|
Victor Stinner
|
fd9e44db37
|
Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same
pointer) for any operator, not only Py_EQ and Py_NE.
Code of bytes_richcompare() and PyUnicode_RichCompare() is now closer.
|
2013-11-04 11:23:05 +01:00 |
|
Victor Stinner
|
c8bc5377ac
|
Issue #16286: write a new subfunction bytes_compare_eq()
* cleanup bytes_richcompare()
* PyUnicode_RichCompare(): replace a test with a XOR
|
2013-11-04 11:08:10 +01:00 |
|
Victor Stinner
|
986e224d5a
|
Issue #18408: Fix error handling in PyBytes_FromObject()
_PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL.
|
2013-10-29 03:14:22 +01:00 |
|
Serhiy Storchaka
|
c679227e31
|
Issue #1772673: The type of char* arguments now changed to const char*.
|
2013-10-19 21:03:34 +03:00 |
|
Antoine Pitrou
|
9ed5f27266
|
Issue #18722: Remove uses of the "register" keyword in C code.
|
2013-08-13 20:18:52 +02:00 |
|
Serhiy Storchaka
|
b8cbba5877
|
Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
|
2013-02-10 17:43:25 +02:00 |
|
Serhiy Storchaka
|
801d955f04
|
Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
|
2013-02-10 17:42:01 +02:00 |
|
Serhiy Storchaka
|
5e61f14c6d
|
Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
|
2013-02-10 17:36:00 +02:00 |
|
Serhiy Storchaka
|
8911ef5b6d
|
Issue #17034: Use Py_CLEAR() in bytesobject.c.
|
2013-02-02 18:46:19 +02:00 |
|
Serhiy Storchaka
|
d357a3f841
|
Issue #17034: Use Py_CLEAR() in bytesobject.c.
|
2013-02-02 18:45:54 +02:00 |
|
Serhiy Storchaka
|
f458a03617
|
Issue #17034: Use Py_CLEAR() in bytesobject.c.
|
2013-02-02 18:45:22 +02:00 |
|
Serhiy Storchaka
|
f584aba3a5
|
Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
|
2013-01-25 23:33:22 +02:00 |
|