[summerofcode] stdlib port to python

Narayan Newton narayannewton at gmail.com
Sun Jun 5 06:55:14 CEST 2005


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



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. 

-- 
Narayan Newton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/summerofcode/attachments/20050604/326949c1/attachment-0001.html


More information about the summerofcode mailing list