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 rhettinger
Recipients rhettinger
Date 2014年04月03日.01:19:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396487942.81.0.581020836184.issue21137@psf.upfronthosting.co.za>
In-reply-to
Content
It is really nice to have the open/closed status in the __repr__ of file objects: 
 <open file 'data.txt', mode 'r' at 0x102c8ec90>
 <closed file 'data.txt', mode 'r' at 0x102c8ec90>
I would like to have the same for locks:
 <unlocked thread.lock object at 0x1002b1330>
 <locked thread.lock object at 0x1002b1330>
This would be nice in logs and tracebacks for example.
History
Date User Action Args
2014年04月03日 01:19:02rhettingersetrecipients: + rhettinger
2014年04月03日 01:19:02rhettingersetmessageid: <1396487942.81.0.581020836184.issue21137@psf.upfronthosting.co.za>
2014年04月03日 01:19:02rhettingerlinkissue21137 messages
2014年04月03日 01:19:01rhettingercreate

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