Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35068
| Date | 2012-12-18 13:09 -0800 |
|---|---|
| From | Andrew Robinson <andrew3@r3dsolutions.com> |
| Subject | Re: where to view open() function's C implementation source code ? |
| References | <f3af9605-2dc7-40a9-861f-52724d29bf1e@googlegroups.com> <roy-9CAF53.00355818122012@news.panix.com> <ad040201-ba94-496c-bb17-7433b0e09d9d@googlegroups.com> <roy-0389D1.09281918122012@news.panix.com> <CAPTjJmrZTp9BigC2nr5Ne1Yge_Q-Tnp1d_7SLbKVzSeB0iaWOw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1027.1355861508.29569.python-list@python.org> (permalink) |
On 12/18/2012 07:03 AM, Chris Angelico wrote: > On Wed, Dec 19, 2012 at 1:28 AM, Roy Smith<roy@panix.com> wrote: >> In article<ad040201-ba94-496c-bb17-7433b0e09d9d@googlegroups.com>, >> iMath<redstone-cold@163.com> wrote: >>>> Download the source for the version you're interested in. >>> but which python module is open() in ? >> I met you half-way, I showed you where the source code is. Now you >> need to come the other half and look at the code. Maybe start by >> grepping the entire source tree for "open"? > Ouch, that mightn't be very effective! With some function names, you > could do that. Not so much "open". Still, it'd be a start... > > ChrisA In Python3.3.0 -- the built in open() appears in Python-3.3.0/Modules/_io/_iomodule.c; There is another module defined in an object in Python-3.3.0/Modules/_io/fileio.c; but I don't think that the one called when a lone x=open(...) is done. Cheers. --Andrew.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
where to view open() function's C implementation source code ? iMath <redstone-cold@163.com> - 2012-12-17 21:25 -0800
Re: where to view open() function's C implementation source code ï¼ Roy Smith <roy@panix.com> - 2012-12-18 00:35 -0500
Re: where to view open() function's C implementation source code � iMath <redstone-cold@163.com> - 2012-12-17 22:32 -0800
Re: where to view open() function's C implementation source code ? Roy Smith <roy@panix.com> - 2012-12-18 09:28 -0500
Re: where to view open() function's C implementation source code ? Chris Angelico <rosuav@gmail.com> - 2012-12-19 02:03 +1100
Re: where to view open() function's C implementation source code ? Andrew Robinson <andrew3@r3dsolutions.com> - 2012-12-18 13:09 -0800
Re: where to view open() function's C implementation source code � rurpy@yahoo.com - 2012-12-18 12:57 -0800
Re: where to view open() function's C implementation source code � rurpy@yahoo.com - 2012-12-18 13:15 -0800
Re: where to view open() function's C implementation source code � iMath <redstone-cold@163.com> - 2012-12-18 15:55 -0800
Re: where to view open() function's C implementation source code � iMath <redstone-cold@163.com> - 2012-12-18 15:55 -0800
Re: where to view open() function's C implementation source code � rurpy@yahoo.com - 2012-12-18 20:49 -0800
Re: where to view open() function's C implementation source code ? Terry Reedy <tjreedy@udel.edu> - 2012-12-18 03:55 -0500
csiph-web