<br><br><div><span class="gmail_quote">On 6/4/05, <b class="gmail_sendername">Lorentz Morrow</b> &lt;<a href="mailto:lorentz@canterburytravel.com">lorentz@canterburytravel.com</a>&gt; 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>&gt; Lorentz Morrow wrote:<br>&gt; &gt; I'm interested in doing the port of stdlib to python.&nbsp;&nbsp;If I'm<br>&gt; &gt; understanding correctly you need a port of the following functions:
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; atof, atoi, atol, ecvt, fcvt, itoa, ltoa, strtod, strtol, strtoul,<br>&gt; &gt; ultoa, bsearch, lfind, lsearch, qsort, swab,<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; abs, div, labs, ldiv<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; calloc, free, malloc, realloc,
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; abort, atexit, exit, getenv, putenv, system,<br>&gt;<br>&gt; In what way do you mean by porting to Python?&nbsp;&nbsp;To add these ISO C functions<br>&gt; to the stdlib so they are accessible in Python code?&nbsp;&nbsp;If that is what you
<br>&gt; mean then do realize that almost all of them are already available in the<br>&gt; stdlib (e.g. ``int(&quot;12345&quot;)``) or they are not needed (what purpose would<br>&gt; malloc() serve at the Python level?).<br>
&gt;<br>&gt; And obviously these are already available at the C level since Python<br>&gt; requires a C89 compiler.&nbsp;&nbsp;A little clarification is needed to know what you<br>&gt; are trying to accomplish before any feedback can be given.
<br>&gt;<br>&gt; -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>(&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port stdlib modules from C to Python
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.&quot;)<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.&nbsp;&nbsp;Perhaps I misunderstand what it is<br>saying.&nbsp;&nbsp;Or since it is on a wiki page it has been added by someone who<br>didn't really understand what they were suggesting.&nbsp;&nbsp;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