2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-30 20:12:37 +00:00

Expend less energy on fancy error messages for internal errors which might as

well be asserts() because they can never happen.


[SVN r8263]
This commit is contained in:
Dave Abrahams
2000-11-20 03:28:00 +00:00
parent c15c9f4236
commit 5e4da6a9e0
3 changed files with 152 additions and 150 deletions

View File

@@ -101,7 +101,7 @@ namespace {
Ptr state(PyObject_GetAttrString(instance, "__dict__"), Ptr::null_ok);
PyErr_Clear();
if (state.get() != 0)
if (state.get() != 0 && Dict(state).size() > 0)
{
return Tuple(instance_class, initargs, state);
}