Movatterモバイル変換


[0]ホーム

URL:


homepage

Message81023

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorbenjamin.peterson
RecipientsCarl.Friedrich.Bolz, amaury.forgeotdarc, arigo, benjamin.peterson, fijal, mark.dickinson
Date2009-02-03.01:56:04
SpamBayes Score0.004040998
Marked as misclassifiedNo
Message-id<1233626166.55.0.417082385063.issue1875@psf.upfronthosting.co.za>
In-reply-to
Content
You should remove the error logic compile.c for "return" and "yield" infunction calls.The problem with this approach is that every SyntaxError generatedduring bytecode compilation must be moved to earlier. For example, I canstill use "break" and "continue" outside loops with your patch. The onlyway I can think of around this is to compile the block anyway and removethe extra code later. Maybe this optimization could be moved to the peepholer?
History
DateUserActionArgs
2009-02-03 01:56:07benjamin.petersonsetrecipients: +benjamin.peterson,arigo,amaury.forgeotdarc,mark.dickinson,fijal,Carl.Friedrich.Bolz
2009-02-03 01:56:06benjamin.petersonsetmessageid: <1233626166.55.0.417082385063.issue1875@psf.upfronthosting.co.za>
2009-02-03 01:56:05benjamin.petersonlinkissue1875 messages
2009-02-03 01:56:04benjamin.petersoncreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp