This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Mark.Shannon, brandtbucher, corona10, gregory.p.smith, steven.daprano
Date 2022-03-04.22:31:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646433063.26.0.447816908259.issue46923@roundup.psfhosted.org>
In-reply-to
Content
> Personally I'd prefer a new exception `StackOverflow` to `MemoryError`

+1 on a new exception (presumably a subclass of MemoryError).

How about using OverflowedStack instead?

The situation is not quite as bad as you suggest. Googling for "stack overflow" alone (with a space and no other qualifications):

* on Bing, scroll halfway down the first page of results to find the "People also ask..." 

  How do you get a stack overflow?
  How to prevent a stack overflow error?

* also on Bing at the bottom of the first page of results is a question on stackoverflow.com asking what causes memory stack overflows;

* on DuckDuckGo, the first page of search results fails to suggest anything useful;

* on Google itself, on the first page is the People Also Ask

  What causes stack overflows?

* as well as a link to Wikipedia's page on stack overflows.

I expect that going forward, "python stack overflow exception" will be sufficient to hit the Python docs somewhere on the first page.

Besides, presumably this OverflowedStack exception is likely to be rare, so I expect that few people will need to google it.
History
Date User Action Args
2022-03-04 22:31:03steven.dapranosetrecipients: + steven.daprano, gregory.p.smith, Mark.Shannon, corona10, brandtbucher
2022-03-04 22:31:03steven.dapranosetmessageid: <1646433063.26.0.447816908259.issue46923@roundup.psfhosted.org>
2022-03-04 22:31:03steven.dapranolinkissue46923 messages
2022-03-04 22:31:03steven.dapranocreate