« | » Main « | »

Coverage.py 4.0a6

Sunday 21 June 2015

A new alpha of Coverage.py 4.0 is available: coverage.py 4.0a6. (Yes, there are many alphas: I'm changing a lot, and want to let it bake well before locking things in.)

Also available is the latest version of the Django coverage plugin: django_coverage_plugin 0.5. This uses the new plugin support in Coverage.py 4.0 to implement coverage measurement of Django templates.

Other changes since 4.0a5:

  • Python 3.5 is supported.
  • The old-style module-level function interface is no longer supported. I'm not sure what this might break. Try your coverage-related tools!
  • Branch coverage got better: extremely long files are supported and yield statements are supported better.
  • A few encoding-related bugs were fixed (for seemingly the fourteenth time...)

Try Coverage.py v4.0a6. If you are interested, there is a complete list of changes since the last stable release: CHANGES.txt

Math factoid of the day: 53

Tuesday 16 June 2015

53 is a hex-palindrome: 5310 = 3516, or in programming terminology: 53 == 0x35.

In fact, the only numbers with this property (other than the trivial single-digit numbers) are multiples of 53:

53   =3516=   53 × 1
371   =17316=   53 × 7
5141   =141516=   53 × 97
99481   =1849916=   53 × 1877
8520280   =082025816=   53 × 160760

Update: I asked for a proof of this on math.stackexchange.com, and I got one!

« | » Main « | »