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 cjw296, gvanrossum, levkivskyi
Date 2020-09-27.22:00:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7+vJJ7APjs69ZCK1T_ENh3FY6A=5F5etarKK2btPnGG-SVQA@mail.gmail.com>
In-reply-to <1601241794.88.0.820353328979.issue41872@roundup.psfhosted.org>
Content
I've only seen it in test cases too -- that's one of the very few
situations where it makes sense to define a class inside a function.
(Creating a class is an expensive operation, so any function that expects
to be called more than once is better off moving the class out of the
function.)
History
Date User Action Args
2020-09-27 22:00:19gvanrossumsetrecipients: + gvanrossum, cjw296, levkivskyi
2020-09-27 22:00:19gvanrossumlinkissue41872 messages
2020-09-27 22:00:19gvanrossumcreate