Opened 16 years ago

Last modified 12 years ago

#2 new defect

rewrite or remove python bindings

Reported by: jylam@lnxscene.org Owned by: Jylam
Priority: minor Milestone: Final
Component: bindings: Python Version: SVN
Keywords: python bindings ctypes Cc: eriol@mornie.org
Product: libcaca

Description

The python bindings are outdated, not object-oriented, et far to be complete. So they must either be totally rewritten, or simply removed, as http://mornie.org/blog/2007/03/25/Playing-with-ctypes-and-libcaca/ shows us ctypes can be a quite clean and easay way to achieve this.

Change History (10)

comment:1 Changed 16 years ago by eriol@mornie.org

Cc: eriol@mornie.org added

Hi, I would like to help with the python binding. Do you think it's not worth fixing the actual C extension? I wrote the snake game using ctypes because, at the time of writing, I was not aware of your binding.

comment:2 in reply to:  1 Changed 16 years ago by Jean-Yves Lamoureux

Replying to eriol@mornie.org:

Hi, I would like to help with the python binding. Do you think it's not worth fixing the actual C extension? I wrote the snake game using ctypes because, at the time of writing, I was not aware of your binding.

Actually, there are two way of doing this, as you know. The first one is using ctypes as you did. Easy, fast, and perfect for lazy guys like me. The second one is to updateW rewrite the existing one. I clearly don't have the time to do this, nor has sam I guess (replace time by will, and you'll get the truth). The thing is these bindings are not object oriented, and don't follow widely accepted rules about python libraries. So, if you want to give it a try, feel free. I'd be very happy about this. But it must be done in a clever and python-oriented way, and that's a long and boring work. But I'd really appreciate you to this, really :)

comment:3 Changed 16 years ago by Sam Hocevar

Summary: Must rewrite or remove python bindingslibcaca: rewrite or remove python bindings

comment:4 Changed 15 years ago by guest

Hello,

I have generated a wrapper for libcaca using the pyglet wraptypes generator and built a simple object-oriented layer above it. The source:

http://www.bitbucket.org/xho5/pycaca/

Anybody wanting to help a bit? ;-)

Regards,

Fred

comment:5 in reply to:  4 Changed 15 years ago by guest

Replying to guest:

I have generated a wrapper for libcaca using the pyglet wraptypes generator and built a simple object-oriented layer above it. The source:

http://www.bitbucket.org/xho5/pycaca/

Anybody wanting to help a bit? ;-)

Oh, yes, I would like to help you :-) I did not find a TODO, can you drive me? What can I do? If you want, drop me a line at eriol@mornie.org

Regards, Daniele

comment:6 Changed 15 years ago by Sam Hocevar

Product: libcaca

comment:7 Changed 15 years ago by Sam Hocevar

Summary: libcaca: rewrite or remove python bindingsrewrite or remove python bindings

comment:8 Changed 12 years ago by xadmin

thanks for sharing.for the phenomenal clarity in your writing.

comment:9 in reply to:  description Changed 12 years ago by xadmin

Replying to jylam@…:

The python bindings are outdated, not object-oriented, et far to be complete. So they must either be totally rewritten, or simply removed, as http://mornie.org/blog/2007/03/25/Playing-with-ctypes-and-libcaca/ shows us ctypes can be a quite clean and easay way to achieve this.

thanks for sharing.for the phenomenal clarity in your writing.

comment:10 Changed 12 years ago by zohoki

I am truly amazed at how well you have laid out this information. It’s easy to comprehend and read as well as informative.

It’s so well-worded that I can’t dispute the valid points you make.

youtubefacebookseo services blog blognesian

Last edited 12 years ago by zohoki (previous) (diff)
Note: See TracTickets for help on using tickets.