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 Claudiu.Popa
Recipients Claudiu.Popa
Date 2014-06-05.17:26:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401989217.73.0.191894123322.issue21670@psf.upfronthosting.co.za>
In-reply-to
Content
Hello!

Working with Shelf instances in the interactive console is cumbersome because you can't have an instant feedback when running the following:

>>> from shelve import Shelf
>>> s = Shelf({})
>>> s['a'] = 1
>>> s
<shelve.Shelf object at 0x033D0AF0>

This patch adds an useful repr to Shelf objects.

>>> s
Shelf({'a': 1})

Thanks!
History
Date User Action Args
2014-06-05 17:26:57Claudiu.Popasetrecipients: + Claudiu.Popa
2014-06-05 17:26:57Claudiu.Popasetmessageid: <1401989217.73.0.191894123322.issue21670@psf.upfronthosting.co.za>
2014-06-05 17:26:57Claudiu.Popalinkissue21670 messages
2014-06-05 17:26:57Claudiu.Popacreate