- 29 Nis, 2018 1 kayıt (commit)
-
-
Siddhesh Poyarekar yazdı
METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument.
-
- 13 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
in int(), float() and complex() parsers. This also speeds up parsing non-ASCII numbers by around 20%.
-
- 11 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 05 Nis, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 30 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 24 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
In a future versions of Python this can be an error.
-
- 19 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 20 Şub, 2017 1 kayıt (commit)
-
-
Mark Dickinson yazdı
* Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry.
-
- 06 Ara, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Replace: PyObject_CallFunctionObjArgs(callable, NULL) with: _PyObject_CallNoArg(callable)
-
- 04 Ara, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs().
-
- 01 Ara, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
* PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func) * PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg) PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires extra work to "parse" C arguments to build a C array of PyObject*. _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. This change is part of the fastcall project. The change on listsort() is related to the issue #23507.
-
- 24 Eyl, 2016 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 09 Eyl, 2016 1 kayıt (commit)
-
-
Brett Cannon yazdı
Thanks to Georg Brandl for the patch.
-
- 07 Kas, 2015 1 kayıt (commit)
-
-
Martin Panter yazdı
This avoids possible buffer overreads when int(), float(), compile(), exec() and eval() are passed bytes-like objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch by John Leitch, Serhiy Storchaka and Martin Panter.
-
- 02 Şub, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
and PyObject_AsWriteBuffer().
-
- 10 Eki, 2014 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
-
- 07 Tem, 2014 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
-
- 04 Ara, 2013 1 kayıt (commit)
-
-
Christian Heimes yazdı
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.
-
- 07 Kas, 2013 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 05 Eki, 2013 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 13 Agu, 2013 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
-
- 17 Nis, 2013 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
-
- 14 Kas, 2012 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 29 May, 2012 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Formatting string, int, float and complex use the _PyUnicodeWriter API. It avoids a temporary buffer in most cases. * Add _PyUnicodeWriter_WriteStr() to restore the PyAccu optimization: just keep a reference to the string if the output is only composed of one string * Disable overallocation when formatting the last argument of str%args and str.format(args) * Overallocation allocates at least 100 characters: add min_length attribute to the _PyUnicodeWriter structure * Add new private functions: _PyUnicode_FastCopyCharacters(), _PyUnicode_FastFill() and _PyUnicode_FromASCII() The speed up is around 20% in average.
-
- 22 Ock, 2012 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
-
- 28 Eyl, 2011 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 11 Agu, 2011 1 kayıt (commit)
-
-
Brian Curtin yazdı
The macro was introduced in #12724.
-
- 20 Nis, 2011 1 kayıt (commit)
-
-
Jesus Cea yazdı
-
- 21 Mar, 2011 1 kayıt (commit)
-
-
Victor Stinner yazdı
PyOS_snprintf() to avoid temporary buffer allocated on the stack and a conversion from bytes to Unicode.
-
- 04 Ara, 2010 2 kayıt (commit)
-
-
Eric Smith yazdı
Removed static function complex_format, moved it into complex_repr. Modified tests to check both str and repr, which are the same for complex.
-
Alexander Belopolsky yazdı
types. Added a new API function, PyUnicode_TransformDecimalToASCII(), which transforms non-ASCII decimal digits in a Unicode string to their ASCII equivalents.
-
- 03 Ara, 2010 1 kayıt (commit)
-
-
Victor Stinner yazdı
-
- 23 Eki, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 17 Eki, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 04 Agu, 2010 1 kayıt (commit)
-
-
Mark Dickinson yazdı
(And similarly for complex numbers.)
-
- 30 May, 2010 3 kayıt (commit)
-
-
Mark Dickinson yazdı
and a complex instance. Based on a patch by Meador Inge.
-
Mark Dickinson yazdı
-
Mark Dickinson yazdı
type. Coercion for arithmetic operations was already removed in r78280, but that commit didn't remove coercion for rich comparisons.
-
- 23 May, 2010 1 kayıt (commit)
-
-
Mark Dickinson yazdı
(instances of int, float, complex, decimal.Decimal and fractions.Fraction) that makes it easy to maintain the invariant that hash(x) == hash(y) whenever x and y have equal value.
-
- 21 May, 2010 1 kayıt (commit)
-
-
Mark Dickinson yazdı
objects. (1) The comparison could incorrectly return True in some cases (2**53+1 == complex(2**53) == 2**53), breaking transivity of equality. (2) The comparison raised an OverflowError for large integers, leading to unpredictable exceptions when combining integers and complex objects in sets or dicts. Patch by Meador Inge.
-