Staging
v0.5.1
https://github.com/python/cpython
Revision a8c25d1c7f0d395861cc3e10dd01989150891c95 authored by Miss Islington (bot) on 05 February 2018, 03:10:00 UTC, committed by Nick Coghlan on 05 February 2018, 03:10:00 UTC
When `__getattr__` is implemented, attribute lookup will always fall back to that,
even if the initial failure comes from `__getattribute__` or a descriptor's `__get__`
method (including property methods).
(cherry picked from commit d1f318105b8781b01f3507d5cb0fd841b977d5f2)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
1 parent 1c2b138
Raw File
Tip revision: a8c25d1c7f0d395861cc3e10dd01989150891c95 authored by Miss Islington (bot) on 05 February 2018, 03:10:00 UTC
[3.6] bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-5542)
Tip revision: a8c25d1
pyfpe.c
#include "pyconfig.h"
#include "pyfpe.h"
/*
 * The signal handler for SIGFPE is actually declared in an external
 * module fpectl, or as preferred by the user.  These variable
 * definitions are required in order to compile Python without
 * getting missing externals, but to actually handle SIGFPE requires
 * defining a handler and enabling generation of SIGFPE.
 */

#ifdef WANT_SIGFPE_HANDLER
jmp_buf PyFPE_jbuf;
int PyFPE_counter = 0;
#endif

/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
   warning when compiling an empty file. */

double
PyFPE_dummy(void *dummy)
{
	return 1.0;
}
back to top