miniblog.
← Back to all posts
Oct 15, 2013 at 11:40
Yikes. On Python 2 `foo = lambda: 5; print foo > 6, foo() > 6` gives 'True False'. Hides tricky bugs. Another reason to move to Python 3.
Wilfred Hughes
Related Posts
Jul 31, 2011 at 18:07
Another reason to switch to #python 3: "True = False; assert(True)"
Wilfred Hughes
Shared words: Python, True, False, reason Score: 79.7
Mar 26, 2016 at 18:38
Another reason to move to Python 3: a useful repr() for regexp match objects! Example: <_sre.SRE_Match object; span=(0, 3), match='foo'>
Wilfred Hughes
Shared words: Python, foo, reason, move Score: 72.9
Aug 11, 2020 at 07:23
Today I needed a library that takes a regular expression and gives you a string that matches.
https://github.com/fent/randexp.js
fits that need nicely. Unfortunately, reading the docs has introduced me to evil patterns like /a^/ and /\1 (a)/. Yikes.
GitHub - fent/randexp.js: Create random strings that match a given regular expression.
Create random strings that match a given regular expression. - fent/randexp.js
Wilfred Hughes
Shared words: Yikes, gives Score: 68