I love assert
peter.cacioppi at gmail.com
Wed Nov 12 00:02:41 CET 2014
On Tue, Nov 11, 2014 at 12:57 PM, TP <wingusr at gmail.com> wrote:
> On Tue, Nov 11, 2014 at 11:40 AM, Peter Cacioppi <peter.cacioppi at gmail.com
> > wrote:
>> I think one needs to take care with some basic assert coding - it's not a
>> substitute for unit tests, it doesn't absolve you of normal exception
>> responsibilities, and, most of all, it should be used for passive
>> inspection and not action. But given these guidelines, I still find it very
>> useful as "active comments".
> I first came across asserts when using Wing IDE. See "Helping Wing Analyze
> Code"  explains why using assert and isinstance will let Wing IDE
> autocomplete things it otherwise couldn't.
> PyCharm uses docstrings to accomplish the same task  but can also use
> asserts/isinstance .
>  https://wingware.com/doc/edit/helping-wing-analyze-code
>  https://www.jetbrains.com/pycharm/webhelp/type-hinting-in-pycharm.html
I use PyCharm. Thanks for , it's a keeper
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list