{"id":22627,"date":"2020-09-14T15:55:47","date_gmt":"2020-09-14T22:55:47","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22627"},"modified":"2023-12-01T03:59:40","modified_gmt":"2023-12-01T11:59:40","slug":"python-maximum-recursion-depth-exceeded-in-comparison","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/","title":{"rendered":"Python maximum recursion depth exceeded in comparison Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-recursion\/\">Recursive functions<\/a>, without limits, could call themselves indefinitely. If you write a recursive function that executes over a certain number of iterations, you\u2019ll encounter the \u201cmaximum recursion depth exceeded in comparison\u201d <a href=\"https:\/\/careerkarma.com\/blog\/what-python-is-used-for\/\">Python<\/a> error.<br><\/p>\n\n\n\n<p>This guide discusses what this error means and why it is important. We\u2019ll walk through an example of this error so you can learn how to fix it in your program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">maximum recursion depth exceeded in comparison<\/h2>\n\n\n\n<p>Recursive functions are functions that call themselves to find a solution to a program.<br><\/p>\n\n\n\n<p>Well-written recursive functions include limits to ensure they do not execute infinitely. This may mean that a function should only run until a particular condition is met.<br><\/p>\n\n\n\n<p>If you write a recursive function that executes more than a particular number of iterations (usually 997), you\u2019ll see an error when you get to the next iteration.<br><\/p>\n\n\n\n<p>This is because Python limits the depth of a recursion algorithm. This refers to how many times the function can call itself.<br><\/p>\n\n\n\n<p>You can view the recursion limit in your Python shell using this code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import sys\nprint(sys.getrecursionlimit())\n<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Let\u2019s write a recursive function that calculates a number in the Fibonacci Sequence. In the Fibonacci Sequence, the next number in the sequence is the sum of the last two numbers. The first two numbers in the sequence are 0 and 1.<br><\/p>\n\n\n\n<p>Here is a recursive function that calculates the <a href=\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\">Fibonacci Sequence<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def fibonacci(n):\n\tif n &lt;= 1:\n\t\treturn n\n\telse:\n\t\treturn(fibonacci(n-1) + fibonacci(n-2))\n<\/pre><\/div>\n\n\n\n<p>If the number we specify is less than or equal to 1, <a href=\"https:\/\/careerkarma.com\/blog\/python-return\/\">that number is returned<\/a>. Otherwise, our program calculates the next number in the sequence.<br><\/p>\n\n\n\n<p>Next, we\u2019re going to <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">call our function<\/a>:<br><\/p>\n\n\n\n<p><code>print(fibonacci(5000))<br><\/code><\/p>\n\n\n\n<p>This code calculates the number after the 5,000th number in the Fibonacci Sequence. Let\u2019s run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Traceback (most recent call last):\n  File &quot;main.py&quot;, line 7, in &lt;module&gt;\n\tprint(recur_fibo(5000))\n  File &quot;main.py&quot;, line 5, in recur_fibo\n\treturn(recur_fibo(n-1) + recur_fibo(n-2))\n\u2026 \n  File &quot;main.py&quot;, line 2, in recur_fibo\n\tif n &lt;= 1:\nRecursionError: maximum recursion depth exceeded in comparison\n<\/pre><\/div>\n\n\n\n<p>Our code returns a long error message. This message has been shortened for brevity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>Python has raised a recursion error to protect us against a stack overflow. This is when the pointer in a stack exceeds the stack bound. Without this error, our program would try to use more memory space than was available.<br><\/p>\n\n\n\n<p>We can fix this error by either making our sequence iterative, or by increasing the recursion limit in our program.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Solution #1: Use an Iterative Algorithm<\/h3>\n\n\n\n<p>We can change our program to use an <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">iterative approach<\/a> instead of a recursive approach:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>to_calculate = 5\ni = 0\nnext = 1\ncurrent = 1\nlast = 0\n\nwhile i &lt; to_calculate:\n\tnext = current + last\n\tcurrent = last\n\tlast = next\n\ti += 1\n<\/pre><\/div>\n\n\n\n<p>This code calculates the first five numbers in the Fibonacci Sequence. We could increase the number of values we calculate but that would also increase the time it takes for our program to execute. Our program returns:<br><\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>3<\/p>\n\n\n\n<p>5<br><\/p>\n\n\n\n<p>This approach bypasses the recursion error because we do not use recursive functions. Instead, we use a while loop to calculate the next number in the list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Solution #2: Increase Recursion Limit<\/h3>\n\n\n\n<p>You can override the default recursion limit Python sets using the setrecursionlimit() method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import sys\nsys.setrecursionlimit(5000)\n<\/pre><\/div>\n\n\n\n<p>This code sets the maximum recursion depth to 5,000. You should be careful when you use this method because it may cause a stack overflow depending on the resources available to the Python interpreter.<br><\/p>\n\n\n\n<p>In general, it is best to rewrite a function to use an iterative approach instead of increasing the recursion limit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cmaximum recursion depth exceeded in comparison\u201d error is raised when you try to execute a function that exceeds Python\u2019s built in recursion limit. You can fix this error by rewriting your program to use an iterative approach or by increasing the recursion limit in Python.<br><\/p>\n\n\n\n<p>Now you have the knowledge you need to fix this error like a pro!<br><\/p>\n","protected":false},"excerpt":{"rendered":"Recursive functions, without limits, could call themselves indefinitely. If you write a recursive function that executes over a certain number of iterations, you\u2019ll encounter the \u201cmaximum recursion depth exceeded in comparison\u201d Python error. This guide discusses what this error means and why it is important. We\u2019ll walk through an example of this error so you&hellip;","protected":false},"author":240,"featured_media":22628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-22627","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":[]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python maximum recursion depth exceeded in comparison | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python maximum recursion depth exceeded in comparison error helps protect against a stack overflow. On Career Karma, learn how to fix this error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python maximum recursion depth exceeded in comparison Solution\" \/>\n<meta property=\"og:description\" content=\"The Python maximum recursion depth exceeded in comparison error helps protect against a stack overflow. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-14T22:55:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:59:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python maximum recursion depth exceeded in comparison Solution\",\"datePublished\":\"2020-09-14T22:55:47+00:00\",\"dateModified\":\"2023-12-01T11:59:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\"},\"wordCount\":585,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\",\"name\":\"Python maximum recursion depth exceeded in comparison | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg\",\"datePublished\":\"2020-09-14T22:55:47+00:00\",\"dateModified\":\"2023-12-01T11:59:40+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python maximum recursion depth exceeded in comparison error helps protect against a stack overflow. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python maximum recursion depth exceeded in comparison Solution\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python maximum recursion depth exceeded in comparison | Career Karma","description":"The Python maximum recursion depth exceeded in comparison error helps protect against a stack overflow. On Career Karma, learn how to fix this error.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/","og_locale":"en_US","og_type":"article","og_title":"Python maximum recursion depth exceeded in comparison Solution","og_description":"The Python maximum recursion depth exceeded in comparison error helps protect against a stack overflow. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-14T22:55:47+00:00","article_modified_time":"2023-12-01T11:59:40+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python maximum recursion depth exceeded in comparison Solution","datePublished":"2020-09-14T22:55:47+00:00","dateModified":"2023-12-01T11:59:40+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/"},"wordCount":585,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/","url":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/","name":"Python maximum recursion depth exceeded in comparison | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg","datePublished":"2020-09-14T22:55:47+00:00","dateModified":"2023-12-01T11:59:40+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python maximum recursion depth exceeded in comparison error helps protect against a stack overflow. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/antonio-janeski-KpIpjje1Mxk-unsplash.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-maximum-recursion-depth-exceeded-in-comparison\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python maximum recursion depth exceeded in comparison Solution"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=22627"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22627\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/22628"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}