python-sdbus icon indicating copy to clipboard operation
python-sdbus copied to clipboard

Use `bound` instead of `binded`

Open souliane opened this issue 2 years ago • 3 comments

There are a few classes like DbusBindedAsync that should IMHO be renamed to use bound instead of binded.

I am not a native speaker, but the correct conjugation seems to be bound (e.g. this source, but there are many others).

souliane avatar Apr 19 '24 09:04 souliane

Yes, the name is pretty bad.

Those objects actually are the descriptors: https://docs.python.org/3/glossary.html#term-descriptor

When a class attribute is a descriptor, its special binding behavior is triggered upon attribute lookup.

But I am not sure what is the correct name for what the descriptor returns from its __get__ method.

igo95862 avatar Apr 19 '24 10:04 igo95862

Another alternative naming is drop the bind name all together.

For example,

  • DbusMethodAsync: D-Bus method not accessed from any specific object (or accessed from class)
  • DbusLocalMethodAsync - D-Bus method accessed from a local object
  • DbusProxyMethodAsync - D-Bus method accessed from a proxy object

Can also be LocalDbusMethodAsync / ProxyDbusMethodAsync. What do you think @souliane ?

igo95862 avatar Apr 20 '24 13:04 igo95862

Hey, sorry for the late reply. Honestly, I don't have any preference... Beside the fact that binded sounds wrong, I am OK with the current naming. Feel free to pick whatever names you prefer :-)

souliane avatar May 02 '24 20:05 souliane

Fixed by @dragomirecky in 1fbc7ce9f9f6e406dc7747783af6f3fa750627ce

igo95862 avatar Dec 14 '24 15:12 igo95862