Skip to content
  1. Feb 24, 2018
  2. Dec 07, 2017
  3. Dec 06, 2017
  4. Nov 22, 2017
  5. Nov 08, 2017
  6. Oct 31, 2017
  7. Oct 29, 2017
  8. Oct 21, 2017
  9. Oct 06, 2017
  10. Oct 05, 2017
    • Matt Wala's avatar
      Improve PersistentDict warnings. · b1be1516
      Matt Wala authored
      * Add a CacheCollision warning subclass.
      * Track stack level so that warnings show user code line numbers.
      
      Example:
      
      Modifying line 287 of test_persistent_dict.py so that the warning
      isn't captured by the test, we get this:
      
      ```
      test_persistent_dict.py:287: CollisionWarning: pytools-test: key collision in cache at '/tmp/tmpq9p3i0b9' -- these are sufficiently unlikely that they're often indicative of a broken implementation of equality comparison
        pdict[key2]  # user code
      ```
      
      The old behavior was:
      
      ```
      /home/matt/src/pytools/pytools/persistent_dict.py:466: UserWarning: pytools-test: key collision in cache at '/tmp/tmpuk8js9jw' -- these are sufficiently unlikely that they're often indicative of a broken implementation of equality comparison
        % (self.identifier, self.container_dir))
      ```
      b1be1516
  11. Sep 27, 2017
  12. Sep 26, 2017
  13. Sep 25, 2017
  14. Sep 24, 2017
  15. Sep 23, 2017
  16. Sep 20, 2017
  17. Sep 19, 2017
  18. Jul 20, 2017
Loading