FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RustPython/tools/opcode_metadata/cpython.py at main · RustPython/RustPython · GitHub
RustPython
RustPython
Repository navigation
Code
Issues
184
(184)
Pull requests
110
(110)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
RustPython
/
tools
/
opcode_metadata
/
cpython.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (18 loc) · 726 Bytes
Breadcrumbs
RustPython
/
tools
/
opcode_metadata
/
cpython.py
Copy path
File metadata and controls
27 lines (18 loc) · 726 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
os
import
pathlib
import
sys
try
:
CPYTHON_ROOT
=
pathlib
.
Path
(
os
.
environ
[
"CPYTHON_ROOT"
]).
expanduser
().
resolve
()
except
KeyError
:
raise
ValueError
(
"Missing environment variable 'CPYTHON_ROOT'"
)
CPYTHON_TOOLS_LIB
=
CPYTHON_ROOT
/
"Tools"
/
"cases_generator"
if
(
path
:=
CPYTHON_TOOLS_LIB
.
as_posix
())
not
in
sys
.
path
:
sys
.
path
.
append
(
path
)
from
analyzer
import
SKIP_PROPERTIES
,
Analysis
,
Family
,
Properties
,
analyze_files
from
stack
import
get_stack_effect
def
get_analysis
()
->
Analysis
:
from
generators_common
import
DEFAULT_INPUT
analysis
=
analyze_files
([
DEFAULT_INPUT
])
# Our speration is done at the enum definition
analysis
.
instructions
|=
analysis
.
pseudos
return
analysis
Back
|
FazBrowse Home
|
New Git URL