- 11 Ara, 2016 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
-
Martin Panter yazdı
Based on patch by Michael Layzell.
-
- 05 Ara, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Replace _PyObject_CallArg1(func, arg) with PyObject_CallFunctionObjArgs(func, arg, NULL) Using the _PyObject_CallArg1() macro increases the usage of the C stack, which was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this issue.
-
- 20 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
functions.
-
- 16 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
-
- 11 Kas, 2016 2 kayıt (commit)
-
-
Victor Stinner yazdı
When Python is not compiled with PGO, the performance of Python on call_simple and call_method microbenchmarks depend highly on the code placement. In the worst case, the performance slowdown can be up to 70%. The GCC __attribute__((hot)) attribute helps to keep hot code close to reduce the risk of such major slowdown. This attribute is ignored when Python is compiled with PGO. The following functions are considered as hot according to statistics collected by perf record/perf report: * _PyEval_EvalFrameDefault() * call_function() * _PyFunction_FastCall() * PyFrame_New() * frame_dealloc() * PyErr_Occurred()
-
Victor Stinner yazdı
It seems like _PyThreadState_UncheckedGet() is not inlined as expected, even when using gcc -O3.
-
- 21 Eki, 2016 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1]
-
Serhiy Storchaka yazdı
-
- 07 Eyl, 2016 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 22 Agu, 2016 2 kayıt (commit)
-
-
Victor Stinner yazdı
-
Victor Stinner yazdı
Issue #27809: Helper function optimized to create an exception: use fastcall whenever possible.
-
- 01 May, 2016 1 kayıt (commit)
-
-
Berker Peksag yazdı
Patch by Ofer Schwarz.
-
- 10 Nis, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
in places where Py_DECREF was used.
-
- 06 Nis, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 28 Şub, 2016 1 kayıt (commit)
-
-
Martin Panter yazdı
-
- 20 Ock, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which gets the current thread state, but don't call Py_FatalError() if it is NULL. Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to no more expose complex and private atomic types. Atomic types depends on the compiler or can even depend on compiler options. The new function _PyThreadState_UncheckedGet() allows to get the variable value without having to care of the exact implementation of atomic types. Changes: * Replace direct usage of the _PyThreadState_Current variable with a call to _PyThreadState_UncheckedGet(). * In pystate.c, replace direct usage of the _PyThreadState_Current variable with the PyThreadState_GET() macro for readability. * Document also PyThreadState_Get() in pystate.h
-
- 27 Ara, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
This patch is manually crafted and contains changes that couldn't be handled automatically.
-
- 03 Tem, 2015 1 kayıt (commit)
-
-
Yury Selivanov yazdı
-
- 02 Nis, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Patch by Martin Panter.
-
- 24 Mar, 2015 1 kayıt (commit)
-
-
Victor Stinner yazdı
current exception because they can run arbitrary Python code and so no exception must be set.
-
- 18 Mar, 2015 1 kayıt (commit)
-
-
Victor Stinner yazdı
* If fopen() fails, OSError is raised with the original filename object. * The GIL is now released while calling fopen()
-
- 08 Eki, 2014 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
_PyErr_ChainExceptions() function.
-
- 30 Eyl, 2014 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting a `va_list` argument.
-
- 10 Şub, 2014 2 kayıt (commit)
-
-
Larry Hastings yazdı
-
Larry Hastings yazdı
now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one.
-
- 07 Kas, 2013 1 kayıt (commit)
-
-
Victor Stinner yazdı
are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
-
- 06 Kas, 2013 2 kayıt (commit)
-
-
Victor Stinner yazdı
_PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString() when both strings are equal and interned. Add also _PyId_builtins identifier for "builtins" common string.
-
Victor Stinner yazdı
instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter.
-
- 12 Eki, 2013 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
-
- 02 Eyl, 2013 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 27 Agu, 2013 1 kayıt (commit)
-
-
Victor Stinner yazdı
are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
-
- 26 Agu, 2013 2 kayıt (commit)
-
-
Victor Stinner yazdı
filenames anymore on Windows.
-
Victor Stinner yazdı
* Catch PyFile_WriteString() and PyFile_WriteObject() errors * Clear the current exception on _PyObject_GetAttrId() failure * Use PyUnicode_CompareWithASCIIString() and PyFile_WriteObject() instead of _PyUnicode_AsString() and strcmp() to avoid Unicode encoding error. stderr has a more tolerant error handler than utf-8/strict.
-
- 22 Tem, 2013 1 kayıt (commit)
-
-
Victor Stinner yazdı
before PyExc_MemoryError has been initialized by _PyExc_Init()
-
- 17 Tem, 2013 2 kayıt (commit)
-
-
Victor Stinner yazdı
with an assertion error if they are called with an exception set (PyErr_Occurred()). If these functions are called with an exception set, the exception may be cleared and so the caller looses its exception. Add also assertions to PyEval_CallObjectWithKeywords() and call_function() to check if the function succeed with no exception set, or the function failed with an exception set.
-
Victor Stinner yazdı
-
- 16 Tem, 2013 1 kayıt (commit)
-
-
Victor Stinner yazdı
PyObject_IsSubclass() can fail and raise a new exception!
-
- 11 Tem, 2013 1 kayıt (commit)
-
-
Victor Stinner yazdı
fails with an assertion error
-
- 04 Tem, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
-