py-setproctitle icon indicating copy to clipboard operation
py-setproctitle copied to clipboard

FYI, pure python implementation

Open bersace opened this issue 3 years ago • 4 comments

Hi @dvarrazzo !

I think I missed to share you our pure python implementation of setproctitle. It's base on py-setproctitle but using ctypes. I didn't extract that module from temBoard source code.

Here is the code : https://github.com/dalibo/temboard/blob/master/ui/temboardui/toolkit/proctitle.py

It works on Python 2 and 3.

What do you think of this ?

Regards, Étienne

bersace avatar Oct 14 '22 11:10 bersace

Does it pass setproctitle test suite?

dvarrazzo avatar Oct 14 '22 12:10 dvarrazzo

Do you mean py-setproctitle own test suite ?

We have tests for this : https://github.com/dalibo/temboard/blob/2b31325f77684264b34636ef2784382262e863a9/tests/test_00_setup_ui.py#L13-L28 base on embedded test at https://github.com/dalibo/temboard/blob/2b31325f77684264b34636ef2784382262e863a9/ui/temboardui/toolkit/proctitle.py#L219-L242

bersace avatar Oct 14 '22 13:10 bersace

Reading py-setproctitle, I'd say that our implementation is a subset of py-setproctitle. It only implements argv overwriting.

bersace avatar Oct 14 '22 13:10 bersace