-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7d35f7
commit 77f6c80
Showing
10 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+251 Bytes
(100%)
src/punctilious/__pycache__/_formal_language.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.61 KB
src/punctilious/__pycache__/_operators_1_representations.cpython-312.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import _util | ||
import _representation | ||
import _formal_language | ||
import _bundling | ||
|
||
|
||
class Operators1Representations(_bundling.YamlFileBundle): | ||
"""A punctilious package of well-known mathematical operators.""" | ||
_singleton = None | ||
_singleton_initialized = None | ||
|
||
def __init__(self): | ||
if self.__class__._singleton_initialized is None: | ||
path = 'data.representations' | ||
resource = 'operators_1.yaml' | ||
super().__init__(path=path, resource=resource) | ||
self.__class__._singleton_initialized = True | ||
_util.get_logger().debug( | ||
f'Operators1Representations 1 singleton ({id(self)}) initialized.') | ||
|
||
def __new__(cls, *args, **kwargs): | ||
if cls._singleton is None: | ||
cls._singleton = super(Operators1Representations, cls).__new__(cls) | ||
return cls._singleton |
Binary file modified
BIN
+11 Bytes
(100%)
tests/__pycache__/test_formula.cpython-312-pytest-8.3.2.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/__pycache__/test_shared_library.cpython-312-pytest-8.3.2.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters