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 ezio.melotti
Recipients charles.newey, docs@python, ezio.melotti
Date 2014-07-30.10:59:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406717973.67.0.408025989551.issue22106@psf.upfronthosting.co.za>
In-reply-to
Content
Do you have any suggestion?
The section already includes examples about empty classes and as placeholder inside functions, and the only other "realistic" situations I can think of is inside an except to ignore errors -- but that might be considered an anti-pattern too.
It could be used with "for" loops if you want to e.g. consume an iterator, or with the "with" statement if you want to create an empty file, but these cases are not very common.
History
Date User Action Args
2014-07-30 10:59:33ezio.melottisetrecipients: + ezio.melotti, docs@python, charles.newey
2014-07-30 10:59:33ezio.melottisetmessageid: <1406717973.67.0.408025989551.issue22106@psf.upfronthosting.co.za>
2014-07-30 10:59:33ezio.melottilinkissue22106 messages
2014-07-30 10:59:33ezio.melotticreate