Petr Viktorin

Results 185 comments of Petr Viktorin

With `PY_SSIZE_T_CLEAN`, the `PyArg_ParseTuple` name is redefined as `_PyArg_ParseTuple_SizeT`, which passes an extra flag to the internal routines. Handling the affected format specifiers fails without the flag. Both `_PyArg_ParseTuple_SizeT` and...

> How non-C languages work with variable-argument C functions? With difficulty. Apparently, Rust has the “ready-to-stabilize” [RFC 2137](https://github.com/rust-lang/rust/issues/44930) for `unsafe extern "C"` variadic functions. I assume there's some architecture- or...

> If recent versions of Python are fine, can we just close the issue? Defining `Py_LIMITED_API` to `3` is still common, and IMO we can do better there. But it's...

> We can't do much about the embedding case because the posix syslog API doesn't provide a way to get the current configuration (if any) such that you could restore...

Thanks for the comment! (I can't tell if you just wanted to share historical info, or want to be more involved here? Either is much appreciated. You can stop reading...

OK! Thanks for the input! (I'll write things out for anyone who stumbles upon this. The more people understand this and can point out issues, the better :) The `as`...

As far as I know they can, as long as `test.capi` itself is not an extension module. It would need some extra support in both make and Windows builds, though.

Thank you for the fix! I'll :hammer: test-with-buildbots next time I touch the buildsystem. (I wonder why this issue didn't get the broken buildbot notification, though...)

I'd switch to the built-in `AssertionError`, unless it's specifically a test for custom exceptions.