<br><br><div><span class="gmail_quote">On 6/4/05, <b class="gmail_sendername">Lorentz Morrow</b> <<a href="mailto:lorentz@canterburytravel.com">lorentz@canterburytravel.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Saturday 04 June 2005 10:17 pm, Brett C. wrote:<br>> Lorentz Morrow wrote:<br>> > I'm interested in doing the port of stdlib to python. If I'm<br>> > understanding correctly you need a port of the following functions:
<br>> > atof, atoi, atol, ecvt, fcvt, itoa, ltoa, strtod, strtol, strtoul,<br>> > ultoa, bsearch, lfind, lsearch, qsort, swab,<br>> > abs, div, labs, ldiv<br>> > calloc, free, malloc, realloc,
<br>> > abort, atexit, exit, getenv, putenv, system,<br>><br>> In what way do you mean by porting to Python? To add these ISO C functions<br>> to the stdlib so they are accessible in Python code? If that is what you
<br>> mean then do realize that almost all of them are already available in the<br>> stdlib (e.g. ``int("12345")``) or they are not needed (what purpose would<br>> malloc() serve at the Python level?).<br>
><br>> And obviously these are already available at the C level since Python<br>> requires a C89 compiler. A little clarification is needed to know what you<br>> are trying to accomplish before any feedback can be given.
<br>><br>> -Brett<br><br>I was reading the page <a href="http://wiki.python.org/moin/CodingProjectIdeas">http://wiki.python.org/moin/CodingProjectIdeas</a> it says:<br>(" Port stdlib modules from C to Python
<br> Jython,
IronPython, and PyPy all require standard library modules to be<br>written in pure Python; porting C-based standard library modules to Python<br>helps them.")<br>When I read it I was under the idea that someone affiliated with PSF in some
<br>way was making it as a suggestion. Perhaps I misunderstand what it is<br>saying. Or since it is on a wiki page it has been added by someone who<br>didn't really understand what they were suggesting. Perhaps I should look
<br>into something else.<br><br>-Lorentz<br><br>_______________________________________________<br>summerofcode mailing list<br><a href="mailto:summerofcode@python.org">summerofcode@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/summerofcode">
http://mail.python.org/mailman/listinfo/summerofcode</a><br></blockquote></div><br><br>
<br>
I read that idea as porting the modules in the Python Standard Lib that
are coded in C to straight python. Maybe I am wrong, but that would
seem to make more sense then porting over stdlib.h. <br><br>-- <br>Narayan Newton