This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dwoodjunkmail
Recipients dwoodjunkmail
Date 2021-03-08.15:31:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I have a c function to encrypt values which returns an array of bytes.  The function returns proper values outside of python.  When used as a python function, the result is incomplete usually 10-20% of the time.  If I add a sleep(1) call before returning from the function, my success rate goes to 100%.  While this works, it is unacceptable as it will create enormous latency in my application.

static PyObject *method_encrypt(PyObject *self, PyObject *args) {
	char *keyval, *str = NULL, output[512];
	Py_ssize_t count=0;
	PyObject *retval;

	if(!PyArg_ParseTuple(args, "ss", &str, &keyval)) {
		return NULL;

	encryptBlowfishCfb(str, &count, output, keyval);

	retval = Py_BuildValue("y#", output, count);
	return retval;
Date User Action Args
2021-03-08 15:31:33dwoodjunkmailsetrecipients: + dwoodjunkmail
2021-03-08 15:31:33dwoodjunkmailsetmessageid: <>
2021-03-08 15:31:33dwoodjunkmaillinkissue43435 messages
2021-03-08 15:31:32dwoodjunkmailcreate