homepage

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 benjamin.peterson
Recipients Arfrever, Trundle, benjamin.peterson, eric.snow, georg.brandl, loewis, marienz, ncoghlan, pitrou, terry.reedy
Date 2011年07月16日.16:50:34
SpamBayes Score 8.916213e-08
Marked as misclassified No
Message-id <CAPZV6o9hB_R4OR2EL9kpMmtnQr_q2TsUs5zA-tR6sAtfUtJBYA@mail.gmail.com>
In-reply-to <CADiSq7eEiezxdopoS2D2pvRps=dkLNjpKN4E7V_7PbUG-ZjtKg@mail.gmail.com>
Content
2011年7月16日 Nick Coghlan <report@bugs.python.org>:
>
> Nick Coghlan <ncoghlan@gmail.com> added the comment:
>
> It matters, because Python "users" are programmers, and most
> programmers want to know *why* they're being told something is wrong.
> Raising MemoryError is technically incorrect at this point, but at
> least gives the right flavour of the user not doing anything
> specifically wrong, the program just ran out of resources trying to do
> as they asked. I see SyntaxError as significantly worse, however, as
> instead of telling the developer "sorry, that's a reasonable request,
> but I can't handle it", the interpreter is now telling them "you did
> that wrong, change it". The semantics of that are all wrong. There's
> nothing wrong with the syntax of the user's code, it's just that the
> compiler can't handle it.
I content that in normal code, it is so extremely rare as to be
unheard of, to get exceptions about the parser stack overflowing or
segfault the compiler by too deep nesting. People who are doing this
(generally to prove the point about limitations of the compiler) are
smart enough to know exactly what "parser stack overflowed" means and
separate that from Python as the language. Adding a new exception is
solving a non-existent problem.
History
Date User Action Args
2011年07月16日 16:50:35benjamin.petersonsetrecipients: + benjamin.peterson, loewis, georg.brandl, terry.reedy, ncoghlan, marienz, pitrou, Arfrever, Trundle, eric.snow
2011年07月16日 16:50:34benjamin.petersonlinkissue11343 messages
2011年07月16日 16:50:34benjamin.petersoncreate

AltStyle によって変換されたページ (->オリジナル) /