-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_sacred_scroll.py
More file actions
37 lines (27 loc) · 1.11 KB
/
Copy pathft_sacred_scroll.py
File metadata and controls
37 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import alchemy
import alchemy.elements
def safe_call(func):
try:
return func()
except AttributeError:
return "AttributeError - not exposed"
print("=== Sacred Scroll Mastery ===")
print("\nTesting direct module access:")
print("alchemy.elements.create_fire():", alchemy.elements.create_fire())
print("alchemy.elements.create_water():", alchemy.elements.create_water())
print("alchemy.elements.create_earth():", alchemy.elements.create_earth())
print("alchemy.elements.create_air():", alchemy.elements.create_air())
print("\nTesting package-level access (controlled by __init__.py):")
print("alchemy.create_fire():", alchemy.create_fire())
print("alchemy.create_water():", alchemy.create_water())
try:
print("alchemy.create_earth():", alchemy.create_earth())
except AttributeError:
print("alchemy.create_earth(): AttributeError - not exposed")
try:
print("alchemy.create_air():", alchemy.create_air())
except AttributeError:
print("alchemy.create_air(): AttributeError - not exposed")
print("\nPackage metadata:")
print("Version:", alchemy.__version__)
print("Author:", alchemy.__author__)