{"id":4891,"date":"2025-04-18T02:48:58","date_gmt":"2025-04-18T01:48:58","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4891"},"modified":"2025-04-18T02:48:58","modified_gmt":"2025-04-18T01:48:58","slug":"exit","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/exit\/exit","title":{"rendered":"Exit"},"content":{"rendered":"\n<p>Like die() in php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import sys\n\nsys.exit()\n\n#Or with a message:\nsys.exit(\"Exiting...\")<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Like die() in php<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[381],"tags":[],"class_list":["post-4891","post","type-post","status-publish","format-standard","hentry","category-exit"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4891"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4891\/revisions"}],"predecessor-version":[{"id":4892,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4891\/revisions\/4892"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}