Re: Accessing parallel port interrupts using python or any c python binding ?

2008-04-20 Thread Gabriel Genellina
En Mon, 21 Apr 2008 01:09:59 -0300, kapardhi bvn <[EMAIL PROTECTED]> escribió: > Any body can tell me an efficient way of reading parallel port at high > speed. > this is basically to extend ISA and other bus interfacing. See pyparallel (part of the pyserial package) -- Gabriel Genellina -- h

Accessing parallel port interrupts using python or any c python binding ?

2008-04-20 Thread kapardhi bvn
Any body can tell me an efficient way of reading parallel port at high speed. this is basically to extend ISA and other bus interfacing. please help thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Binding

2007-05-12 Thread Georg Grabler
You are completely right wihtin this. It's some time i didn't reply, but i've taken a look on pyrex and swig now which did cost me some time, and they really make it easier. SWIG provides more possibilities and bindings for other languages too, though - i must say i've been faster with pyrex, for s

Re: Python Binding

2007-05-08 Thread Stefan Behnel
STiAT wrote: > Why do you all suggest other things than the way suggested by python? Because going to Paris is not the only way to get french bread? Why would you want to write all that ugly glue code by hand that Pyrex generates for free? Module descriptors? Class descriptors? Method descriptors

Re: Python Binding

2007-05-08 Thread STiAT
Hello, I've basically had plans on just extending python for the wrapper. That basically works fine, i just don't get along by the types provided (http://docs.python.org/ext/ext.html). Anyway, i want to extend python for types. The problem i currently experience is the following. Guess what - i

Re: Python Binding

2007-05-06 Thread Nick Craig-Wood
Georg Grabler <[EMAIL PROTECTED]> wrote: > There's a C library which i'd like to have python bindings for. I havn't > known anything before about how to write python bindings for a C library. > > I succeeded now by using distutils to write the first bindings for functions > and similar. > >

Re: Python Binding

2007-05-06 Thread Stefan Sonnenberg-Carstens
Stefan Behnel schrieb: > Georg Grabler wrote: > >> There's a C library which i'd like to have python bindings for. I havn't >> known anything before about how to write python bindings for a C library. >> >> I succeeded now by using distutils to write the first bindings for functions >> and simil

Re: Python Binding

2007-05-06 Thread Stefan Sonnenberg-Carstens
Stefan Behnel schrieb: > Georg Grabler wrote: > >> There's a C library which i'd like to have python bindings for. I havn't >> known anything before about how to write python bindings for a C library. >> >> I succeeded now by using distutils to write the first bindings for functions >> and simil

Re: Python Binding

2007-05-05 Thread Stefan Behnel
Georg Grabler wrote: > There's a C library which i'd like to have python bindings for. I havn't > known anything before about how to write python bindings for a C library. > > I succeeded now by using distutils to write the first bindings for functions > and similar. > > Now, it seems as somethin

Python Binding

2007-05-05 Thread Georg Grabler
Hello everybody. There's a C library which i'd like to have python bindings for. I havn't known anything before about how to write python bindings for a C library. I succeeded now by using distutils to write the first bindings for functions and similar. Now, it seems as something is blocking my

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread Ian Parker
In message <[EMAIL PROTECTED]>, Alex Li <[EMAIL PROTECTED]> writes >Thanks Michel, I will give it a try. > >Alex > > > You could simply generate the .dot files from python and do os.startfile on the dot file (which is what I do because it is remarkably easy!) Regards -- Ian Parker -- http://m

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread Alex Li
On Mar 6, 3:20 pm, "Istvan Albert" <[EMAIL PROTECTED]> wrote: > > https://networkx.lanl.gov/wiki/pygraphviz Thanks Albert. I looked into pygraphviz as well but it requires compiling C extension, and there is no Windows compilation instruction (though it probably won't be hard). -- http://mail.p

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread bearophileHUGS
Alex Li: > Now, I am sure we will redo it in C# after my "prototype"; Sadly this happens often, they don't want to keep using two languages when one may suffice. On the other hand, you may even find a way to adapt your Python code to IronPython, so maybe you can avoid the translation to C#. Bye,

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread Istvan Albert
On Mar 6, 3:18 pm, "Istvan Albert" <[EMAIL PROTECTED]> wrote: > try the networkx package, it includes the pygraphviz module that can > generate dot files: > > https://networkx.lanl.gov/wiki should've checked it before posting, it seems nowadays is actually a separate package https://networkx.lan

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread Istvan Albert
On Mar 5, 5:16 pm, "Alex Li" <[EMAIL PROTECTED]> wrote: > I tried to avoid. Any suggestions? try the networkx package, it includes the pygraphviz module that can generate dot files: https://networkx.lanl.gov/wiki Istvan -- http://mail.python.org/mailman/listinfo/python-list

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread Alex Li
Thanks all for your suggestions. Nick: I am trying to avoid generate the dot file manually so that I can minimize bugs coz by me ;) SPE: Unfortunately that may be too radical ;) I work in a corporate environment (read: MS shop) and my group wants to generate a dependency graph of our system. I

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-06 Thread SPE - Stani's Python Editor
On Mar 6, 8:39 am, "Nick Vatamaniuc" <[EMAIL PROTECTED]> wrote: > On Mar 5, 5:16 pm, "Alex Li" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I would like to use Python 2.5 on Windows with Graphviz to generate > > graphs. I used yapgvb but it only requires Python 2.4 (won't work > > with Python 2.5

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-05 Thread Nick Vatamaniuc
On Mar 5, 5:16 pm, "Alex Li" <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to use Python 2.5 on Windows with Graphviz to generate > graphs. I used yapgvb but it only requires Python 2.4 (won't work > with Python 2.5). Other packages like pydot seems to be unmaintained > or requires custom

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-05 Thread Alex Li
Thanks Michel, I will give it a try. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-05 Thread M�ta-MCI
Hi! You can also use/call GraphViz by COM. It's run OK with P2.3 - 2.4 & 2.5 @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Graphviz Python Binding for Python 2.5 on Windows?

2007-03-05 Thread Alex Li
Hello, I would like to use Python 2.5 on Windows with Graphviz to generate graphs. I used yapgvb but it only requires Python 2.4 (won't work with Python 2.5). Other packages like pydot seems to be unmaintained or requires custom building to be used on Windows (pygraphviz), which I tried to avoid

[ANN] clnum-1.4 Class Library For Numbers Python Binding

2006-11-19 Thread Raymond L. Buvel
The clnum package adds rational numbers and arbitrary precision floating point numbers in real and complex form to Python. Also provides arbitrary precision floating point replacements for the functions in the math and cmath standard library modules. Home page: http://calcrpnpy.sourceforge.net/cln

Re: [ANN] clnum-1.3 Class Library For Numbers Python Binding

2006-08-19 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

[ANN] clnum-1.3 Class Library For Numbers Python Binding

2006-08-19 Thread Raymond L. Buvel
The clnum package adds rational numbers and arbitrary precision floating point numbers in real and complex form to Python. Also provides arbitrary precision floating point replacements for the functions in the math and cmath standard library modules. Home page: http://calcrpnpy.sourceforge.net/cln

[ANN] clnum-1.2.1 Class Library For Numbers Python Binding

2006-06-11 Thread Raymond L. Buvel
The clnum package adds rational numbers and arbitrary precision floating point numbers in real and complex form to Python. Also provides arbitrary precision floating point replacements for the functions in the math and cmath standard library modules. Home page: http://calcrpnpy.sourceforge.net/cln

[ANN] clnum-1.2 Class Library For Numbers Python Binding

2006-05-06 Thread Raymond L. Buvel
The clnum package adds rational numbers and arbitrary precision floating point numbers in real and complex form to Python. Also provides arbitrary precision floating point replacements for the functions in the math and cmath standard library modules. Home page: http://calcrpnpy.sourceforge.net/cln

Re: Is the Python binding for ncurses unicode capable?

2006-01-20 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > I don't have any problems with simply printing the characters from > Python (outside of ncurses), but using the ncurses functions for > printing these characters is problematic. I see. I can't get this to work, either, and neither with libncursesw. Regards, Martin -- h

Re: Is the Python binding for ncurses unicode capable?

2006-01-20 Thread Martin v. Löwis
Thomas Dickey wrote: > Both libraries respond to locale. But ncurses only deals in single-byte > encodings, e.g., ISO-8859-1 through ISO-8859-15. ncursesw supports that, > but adds support for multi-byte encodings, e.g., UTF-8. For the latter, > one can also have characters that combine (a print

Re: Is the Python binding for ncurses unicode capable?

2006-01-20 Thread bmcnally
Can someone explain what I'm doing wrong? The following code snipet produces an error about addch() expecting an int: u = u'\u2591' s = u.encode("UTF-8") stdscr.addch((y+1), (x+1), s, curses.color_pair(1)) If I try this instead: u = u'\u2591' s = u.encode(

Re: Is the Python binding for ncurses unicode capable?

2006-01-20 Thread Thomas Dickey
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Thomas Dickey wrote: >>>ncurses expects byte strings (although I'm uncertain as to what >>>impact multi-byte encodings have in ncurses). >> >> >> It depends on whether python's curses binding is linked with the >> wide-character >> flavor (ncursesw)

Re: Is the Python binding for ncurses unicode capable?

2006-01-19 Thread Martin v. Löwis
Thomas Dickey wrote: >>ncurses expects byte strings (although I'm uncertain as to what >>impact multi-byte encodings have in ncurses). > > > It depends on whether python's curses binding is linked with the > wide-character > flavor (ncursesw) or the normal one. If it's linked with ncursesw, str

Re: Is the Python binding for ncurses unicode capable?

2006-01-19 Thread Thomas Dickey
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > ncurses expects byte strings (although I'm uncertain as to what > impact multi-byte encodings have in ncurses). It depends on whether python's curses binding is linked with the wide-character flavor (ncursesw) or the normal one. If it's linked with

Re: Is the Python binding for ncurses unicode capable?

2006-01-19 Thread Martin v. Löwis
Brian McNally wrote: > Thanks for responding to my question. I'm still a little confused > though. How can I encode unicode strings as UTF-8? My terminal does > support UTF-8, but from looking at Python's ncurses API, it looks like > all of the methods for displaying characters want an ASCII code (

Re: Is the Python binding for ncurses unicode capable?

2006-01-18 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > I can't tell from the documentation, but I'd like to try and print > unicode characters through Python's binding to ncurses. From reading > the documentation on the curses module, it doesn't appear that this is > possible: > > http://python.org/doc/2.4.2/lib/module-curse

Is the Python binding for ncurses unicode capable?

2006-01-18 Thread bmcnally
I can't tell from the documentation, but I'd like to try and print unicode characters through Python's binding to ncurses. From reading the documentation on the curses module, it doesn't appear that this is possible: http://python.org/doc/2.4.2/lib/module-curses.html Am I missing something, or is