Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > where to view open() function's C implementation source code ?

Reply
Thread Tools

where to view open() function's C implementation source code ?

 
 
iMath
Guest
Posts: n/a
 
      12-18-2012
在 2012年12月19日星期三UTC+8上午4时57分37 ,(E-Mail Removed)写道:
> On Monday, December 17, 2012 10:35:58 PM UTC-7, Roy Smith wrote:
>
> > iMath <(E-Mail Removed)> wrote:

>
> > > where to view open() function's C implementation source code ?

>
> > http://www.python.org/download/releases/

>
> > Download the source for the version you're interested in.

>
>
>
> iMath:
>
>
>
> There is no need to download the source. You can browse the
>
> source code online. For the v3.0.0 version of open():
>
> hg.python.org/cpython/file/bd8afb90ebf2/Modules/_io/_iomodule.c
>
>
>
> For 2.7.3 I think what you want is the builtin_open() function in
>
> http://hg.python.org/cpython/file/70.../bltinmodule.c
>
> and the file object and open_the_file() function in
>
> http://hg.python.org/cpython/file/70...s/fileobject.c
>
>
>
> Hope this helps.


thanks very much !
 
Reply With Quote
 
 
 
 
rurpy@yahoo.com
Guest
Posts: n/a
 
      12-19-2012
On 12/18/2012 04:55 PM, iMath wrote:
> > 在 2012年12月19日星期三UTC+8上午4时57分37 ,(E-Mail Removed)写道:
> >[...]
>> >> There is no need to download the source. You can browse the
>> >> source code online. For the v3.0.0 version of open():
>> >> hg.python.org/cpython/file/bd8afb90ebf2/Modules/_io/_iomodule.c
>> >>
>> >> For 2.7.3 I think what you want is the builtin_open() function in
>> >> http://hg.python.org/cpython/file/70.../bltinmodule.c
>> >> and the file object and open_the_file() function in
>> >> http://hg.python.org/cpython/file/70...s/fileobject.c
>> >>
>> >> Hope this helps.

> >
> > thanks very much !


Your welcome.

I noticed that you, like me, are using Google Groups. You
might want to read this page about posting from Google Groups:

http://wiki.python.org/moin/GoogleGroupsPython

It will help you avoid double posts and other Google Groups
posting problems that annoy other people here.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
where to view range([start], stop[, step])'s C implementation source code ? iMath Python 3 10-17-2012 11:23 PM
Updates in Design view not moved to Source view andspal ASP .Net Web Controls 0 11-02-2006 08:13 AM
how do i edit source (like in IE, view..source)? q_q_anonymous@yahoo.co.uk Firefox 4 05-13-2006 11:07 PM
can't use View, Source menu to open the source code. Jenny Javascript 3 12-17-2004 07:01 AM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM



Advertisments