FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RustPython/examples/atexit_example.py at main · RustPython/RustPython · GitHub
RustPython
RustPython
Repository navigation
Code
Issues
182
(182)
Pull requests
109
(109)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
RustPython
/
examples
/
atexit_example.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (5 loc) · 83 Bytes
Breadcrumbs
RustPython
/
examples
/
atexit_example.py
Copy path
File metadata and controls
9 lines (5 loc) · 83 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
import
atexit
import
sys
def
myexit
():
sys
.
exit
(
2
)
atexit
.
register
(
myexit
)
Back
|
FazBrowse Home
|
New Git URL