dissert

A file-level assertion disabler for Python (by boothby)

Dissert Alternatives

Similar projects and alternatives to dissert

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better dissert alternative or higher similarity.

dissert reviews and mentions

Posts with mentions or reviews of dissert. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-01-20.
  • Python feature you cannot use
    1 project | news.ycombinator.com | 17 Jun 2023
    As a bit of a joke I wrote a library for this once

    https://github.com/boothby/dissert

    The big problem is that some people use assert wrong. There's a distinct time and place for asserts, and that's for testing purely internal logic. If you're testing anything that can be tainted with user data, that must be done with a conditional & exception.

    Dissert saves the day! You can disable asserts on a per-file basis, and get that PYTHONOPTIMIZE experience with no loss of safety.

  • Python 3's F-Strings: An Improved String Formatting Syntax
    4 projects | news.ycombinator.com | 20 Jan 2021
    > And we've resisted having per-module pragmas, so maybe it's dead in the water.

    There's a hack for that (no apologies for the self promotion; this project is literally a joke)

    https://github.com/boothby/dissert

Stats

Basic dissert repo stats
2
4
0.0
almost 4 years ago

The primary programming language of dissert is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com