Ben Holt

Results 12 comments of Ben Holt

1:24,000 is a good scale 🗺

I noticed this as well and cringed. I included the following at the top of my new and edit views: ``` from django.core.exceptions import PermissionDenied ... def new_post(request): if not...

While I'm here, this line: https://github.com/NerdWalletOSS/kinesis-python/blob/2bf355173de05a38f685df0f5a6000cff9a2076a/src/kinesis/consumer.py#L52 Should be `(self.retries * 2) or 1` if the behavior is to (mostly) match the comment.

I'd love to try some reverse-engineering, but I don't know when I'll find the time. Why doesn't touchio use qtouch on the M4 builds?

I can, of course, easily do a full-depth search and filter by a complete pattern if I want: ``` [ p for p in g`**/*` if re.match(r"(.*/)*\w+\.py", p) ] ```

For posterity: ``` $ xonsh --version xonsh/0.9.13 ```

I don't mind that the implementation is more like "path-wise regular expression", as that can prune a great deal of the search space down in most cases; also the workaround...

Although... I just realized that if we dig into the `re` guts enough, we might be able to test a partial path against a full pattern and determine if the...

Yes, I linked to the code in the description and summarized what it's doing; "mangling" is a reasonable description 😜 [Here's the link again](https://xon.sh/_modules/xonsh/built_ins.html#reglob)

Posted a question to StackOverflow for this, if anyone can point me in the right direction, you could save me a bunch of time implementing this: https://stackoverflow.com/questions/58599729/programmatically-determine-where-pythons-re-match-stopped-matching