[Bug 245773] lang/python3: Missing errno.EDEADLOCK

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Sep 2021 12:54:00 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245773

--- Comment #3 from Gleb Popov <arrowd_at_FreeBSD.org> ---
(In reply to Willem Jan Withagen from comment #2)

> But it would be a lot more conveinient if it did exist and worked as expected.

And what's expected in this case? I, for example, expect an undefined constant,
because FreeBSD doesn't have EDEADLOCK code.

> Then again Python claims that it errno.EDEADLOCK is there,

Actually, at the top of https://docs.python.org/3/library/errno.html there is a
following sentence:

> Of the following list, symbols that are not used on the current platform are not defined by the module. The specific list of defined symbols is available as errno.errorcode.keys().

I think there is no bug here. At least, no FreeBSD-specific one. If the
reporter believes that EDEADLOCK should be automatically mapped to something,
the right thing is to open a PR on the Python bug tracker.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Sep 16 2021 - 12:54:00 UTC

Original text of this message