Anders Kaseorg

Results 162 issues of Anders Kaseorg

One would expect ```rust for v in (0..n).map(|_| &[0, 1]).multi_cartesian_product() { println!("{:?}", v); } ``` to enumerate all {0, 1} vectors of length `n`. However, it fails when `n ==...

Our custom patched version of python-zephyr only worked on Python 2. Now we don’t need python-zephyr at all. **⚠️ 100% untested, guaranteed broken. ⚠️**

size: XL

Flake8 (#588) revealed a number of unused variable assignments. I removed the unused variables in these commits: 54b257820481d39d2b38c60b1ca019a495270771 cleanup: Remove unused variables. a01e5e37f42971db042f042726040d283efec857 cleanup: Remove more unused variables. However, I...

The documentation claims that calling `safe_url_string` on an already “safe” URL will return the URL unmodified, but this breaks when the username or password include `%`. ```python >>> url =...

bug

# Bug report `urllib.parse.urljoin` is usually used to join a normalized absolute URL with a relative URL, and it generally works for that purpose. But if it’s used to join...

type-bug

[ShellCheck](https://www.shellcheck.net/) is very good at finding shell script quality issues. In this script it detects, among other things, several bash-specific constructs that actually fail on Debian and Ubuntu systems, which...

From the `py.test` output (as well as the output of other projects using `hyper`, if warnings are enabled): ``` =============================== warnings summary =============================== hyper/http11/connection.py:13 hyper/http11/connection.py:13 /hyper/hyper/http11/connection.py:13: DeprecationWarning: Using or importing...

Validating an array against the empty schema `{}` gives `KeyError: 'items'`. A `git bisect` shows this was introduced by commit 35f8e28157ca5d2f1ddd9f5684c4e6c0ddf75d6c (#318). ```python3 from openapi_core import create_spec from openapi_core.testing import...