Re: Pyrex speed

2006-05-27 Thread Gonzalo Monzón
Hi John, John Machin escribió: >On 28/05/2006 12:10 AM, Gonzalo Monzón wrote: > >[good advice snipped] > > > >>Example A: >>This code is more than 80 times faster than a "easy" Python >>implementation. For every call, it does some bitwise op

Re: Pyrex speed

2006-05-27 Thread Gonzalo Monzón
Hi Jim, It depends a lot on what you're doing. You will get speed up from Pyrex or wrapping C code if you understand how does it work internally, and to speed up you application via coding *only* Pyrex parts (I mean don't using it for wrapping C but implementing in Pyrex), it limits a lot the

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-26 Thread Gonzalo Monzón
Hi, sturlamolden escribió: Gonzalo Monzón wrote: > > >>I use Python 2.4.3 (msvcrt71) and I succesfully installed the last >>version of binutils, pyrex and MinGW, some weeks ago, using Julien Fiore >>step-by-step guide, so "my" MinGW is linking wit

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Gonzalo Monzón
Robert Kern escribió: >Gonzalo Monzón wrote: > > > >>I see there are both libraries linked in my pyrex modules... However, >>when one should expect to have problems with this "dll nightmare", if >>you always provide the right msvcr71.dll bundled with

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Gonzalo Monzón
Robert Kern escribió: >Gonzalo Monzón wrote: > > >>sturlamolden escribió: >> >> > > > >>>I don't think this is safe. MinGW links with msvcrt.dll whereas the >>>main Python distribution links with msvcr71.dll (due to Visual C++ >

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Gonzalo Monzón
sturlamolden escribió: >Julien Fiore wrote: > > >># step A.3 # >>Install Mingw, the gcc compiler for Windows, available at >>http://www.mingw.org/download.shtml. (we downloaded the file >>MinGW-5.0.2.exe and installed only the "base tool" (this includes >>mingw-runtime 3.9, w32api-3.6, binutils

Re: Python update trouble (2.3 to 2.4): x<

2006-05-21 Thread Gonzalo Monzón
Hi John! John Machin escribió: >On 22/05/2006 5:22 AM, Gonzalo Monzón wrote: > > >>Thank you for all the suggestions! :-) >> >>The C routine is almost -changing data type long for word- a copy of the >>function given by a hardware manufacturer, the same code

Re: Python update trouble (2.3 to 2.4): x<

2006-05-21 Thread Gonzalo Monzón
Thank you for all the suggestions! :-) The C routine is almost -changing data type long for word- a copy of the function given by a hardware manufacturer, the same code used in their firmware to calc the checksum of every piece of data sent or received, and that data is somewhat special: it doe

Re: Python update trouble (2.3 to 2.4): x<

2006-05-21 Thread Gonzalo Monzón
Thank you very much John, I missed the point to add the *and* to workaround the long result issue! I think I understand it now. I am timing the code once translated, so here are the results for the crc calculation function. I did expected a big gap, as this does a lot of lookups to the crc tab

Python update trouble (2.3 to 2.4): x<

2006-05-20 Thread Gonzalo Monzón
I reply again attaching a file as I see the editor wrecked the tab indentation. Gonzalo Monzón escribió: Hi all! I have been translating some Python custom C extension code into Python, as I need these modules to be portable and run on a PocketPC without the need of compile (for the

Re: Python update trouble (2.3 to 2.4): x<

2006-05-20 Thread Gonzalo Monzón
I reply again attaching a file as I see the editor wrecked the tab indentation. Gonzalo Monzón escribió: Hi all! I have been translating some Python custom C extension code into Python, as I need these modules to be portable and run on a PocketPC without the need of compile (for the

Python update trouble (2.3 to 2.4): x<

2006-05-20 Thread Gonzalo Monzón
Hi all! I have been translating some Python custom C extension code into Python, as I need these modules to be portable and run on a PocketPC without the need of compile (for the purpose its a must 2.4 as it is the last PythonCE release with great improvements). But I've been stuck with a scri

Re: py on windows Mobile 5.0?

2006-05-15 Thread Gonzalo Monzón
from this page, but a direct link is: http://sourceforge.net/project/shownotes.php?release_id=413801&group_id=104228 Luke ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce Regards, Gonzalo Mon

Re: [PythonCE] Curious about Python for Windows CE

2006-05-03 Thread Gonzalo Monzón
l list. Hope a 2.4 version could be possible soon! And about Python for Linux handhelds, I really don't know much, but I thought the main Python distribution should work. Perhaps I'm wrong... could someone point towards this issue? Thanks to Luke Dunstan and all the Python & PythonCE contributors for such a sucessful work. Gonzalo Monzón. -- http://mail.python.org/mailman/listinfo/python-list

Re: From Python to c++

2006-03-21 Thread Gonzalo Monzón
Hi Marco! Perhaps the simpler way could be to store them all in the map as string data, but of course, it depends on what you must do later with that data, so you can save the field types and convert from string when needed to use any value... if you do not need to process later that data at a

Re: PyWin SendMessage

2005-09-30 Thread Gonzalo Monzón
g.franzkowiak escribió: >Thomas Heller schrieb: > > >>"g.franzkowiak" <[EMAIL PROTECTED]> writes: >> >> >> >> >>>Thomas Heller schrieb: >>> >>> >>> "g.franzkowiak" <[EMAIL PROTECTED]> writes: >Hello everybody, > >I've tryed to use an int