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 gvanrossum
Recipients Mark.Shannon, dom1310df, gregory.p.smith, gvanrossum, vstinner
Date 2022年04月05日.22:35:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649198128.59.0.1701503061.issue47185@roundup.psfhosted.org>
In-reply-to
Content
This idea just cannot work. Take these two functions:
def f():
 foo()
 try:
 bar()
 except:
 pass
def g():
 try:
 foo()
 bar()
 except:
 pass
Using dis to look at their disassembly, the only hint that in f(), the call to foo() is outside the try block and in g() it is inside it is the presence of some NOP opcodes. The actual demarcation of where the try blocks start and end is exclusively determined by the exception table.
It just doesn't make sense to try to validate that correct parameters are being passed in when you are modifying co_code and friends.
History
Date User Action Args
2022年04月05日 22:35:28gvanrossumsetrecipients: + gvanrossum, gregory.p.smith, vstinner, Mark.Shannon, dom1310df
2022年04月05日 22:35:28gvanrossumsetmessageid: <1649198128.59.0.1701503061.issue47185@roundup.psfhosted.org>
2022年04月05日 22:35:28gvanrossumlinkissue47185 messages
2022年04月05日 22:35:28gvanrossumcreate

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