Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/src/sage/structure/debug_options.pyx
8814 views
1
"""
2
Debug options for the `sage.structure` modules
3
4
EXAMPLES::
5
6
sage: from sage.structure.debug_options import debug
7
sage: debug.bad_parent_warnings
8
False
9
sage: debug.unique_parent_warnings
10
False
11
sage: debug.refine_category_hash_check
12
True
13
"""
14
15
#*****************************************************************************
16
# Copyright (C) 2013 Robert Bradshaw <[email protected]>
17
# William Stein <[email protected]>
18
# Volker Braun <[email protected]>
19
#
20
# Distributed under the terms of the GNU General Public License (GPL)
21
# as published by the Free Software Foundation; either version 2 of
22
# the License, or (at your option) any later version.
23
# http://www.gnu.org/licenses/
24
#*****************************************************************************
25
26
27
cdef class DebugOptions_class:
28
def __cinit__(self):
29
"""
30
Initializer for the debug options
31
32
TESTS::
33
34
sage: from sage.structure.debug_options import debug
35
sage: type(debug)
36
<type 'sage.structure.debug_options.DebugOptions_class'>
37
"""
38
self.bad_parent_warnings = False
39
self.unique_parent_warnings = False
40
# This one will be enabled during doctests
41
self.refine_category_hash_check = False
42
43
44
debug = DebugOptions_class()
45
46