473,573 Members | 2,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where to find python c-sources

Hi

I need to browse the socket-module source-code. I believe it's contained in
the file socketmodule.c, but I can't locate this file... Where should I
look?

regards tores
Sep 29 '05 #1
25 2531
Tor Erik Sønvisen wrote:
I need to browse the socket-module source-code. I believe it's contained in
the file socketmodule.c, but I can't locate this file... Where should I
look?


The source tarball, available on python.org. Are people really too lazy
to do elementary research on Google?

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
The people are to be taken in very small doses.
-- Ralph Waldo Emerson
Sep 29 '05 #2
In article <dh**********@n ews.uit.no>,
"Tor Erik Sønvisen" <to***@stud.cs. uit.no> wrote:
Hi

I need to browse the socket-module source-code. I believe it's contained in
the file socketmodule.c, but I can't locate this file... Where should I
look?


I recommend you look in the "Modules" subdirectory of the Python source
tree.

Cheers,
-M

--
Michael J. Fromberger | Lecturer, Dept. of Computer Science
http://www.dartmouth.edu/~sting/ | Dartmouth College, Hanover, NH, USA
Sep 29 '05 #3
On 2005-09-29, Erik Max Francis <ma*@alcyone.co m> wrote:
Tor Erik Sønvisen wrote:
I need to browse the socket-module source-code. I believe it's
contained in the file socketmodule.c, but I can't locate this
file... Where should I look?


The source tarball, available on python.org. Are people
really too lazy to do elementary research on Google?


Yes.

--
Grant Edwards grante Yow! One FISHWICH coming
at up!!
visi.com
Sep 29 '05 #4
Erik Max Francis wrote:
Tor Erik Sønvisen wrote:
I need to browse the socket-module source-code. I believe it's
contained in the file socketmodule.c, but I can't locate this file...
Where should I look?


The source tarball, available on python.org. Are people really too lazy
to do elementary research on Google?


Don't know, have you checked Google?
--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science
Sep 29 '05 #5
Tor Erik Sønvisen wrote:
I need to browse the socket-module source-code. I believe it's contained in
the file socketmodule.c, but I can't locate this file... Where should I
look?


You can browse the Python CVS tree here:
http://cvs.sourceforge.net/viewcvs.p...thon/dist/src/

For example, the file you asked for is viewable here:
http://cvs.sourceforge.net/viewcvs.p....314&view=auto

Dave
Sep 29 '05 #6
Dave Benjamin wrote:
Tor Erik Sønvisen wrote:
I need to browse the socket-module source-code. I believe it's
contained in the file socketmodule.c, but I can't locate this file...
Where should I look?


You can browse the Python CVS tree here:
http://cvs.sourceforge.net/viewcvs.p...thon/dist/src/

For example, the file you asked for is viewable here:
http://cvs.sourceforge.net/viewcvs.p....314&view=auto


And only three hits down in this Google search:

http://www.google.com/search?q=python+socketmodule.c

plus one additional click on "view" once you're there...

-Peter
Sep 30 '05 #7

"Erik Max Francis" <ma*@alcyone.co m> wrote in message
news:Ab******** ************@sp eakeasy.net...
Tor Erik Sønvisen wrote:
I need to browse the socket-module source-code. I believe it's contained
in the file socketmodule.c, but I can't locate this file... Where should
I look?


The source tarball, available on python.org. Are people really too lazy
to do elementary research on Google?

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
The people are to be taken in very small doses.
-- Ralph Waldo Emerson


Thanks for the answers... And yes, I have searched google!
Sep 30 '05 #8
Tor Erik Sønvisen wrote:
"Erik Max Francis" <ma*@alcyone.co m> wrote in message
news:Ab******** ************@sp eakeasy.net...
Tor Erik Sønvisen wrote:

I need to browse the socket-module source-code. I believe it's contained
in the file socketmodule.c, but I can't locate this file... Where should
I look?


The source tarball, available on python.org. Are people really too lazy
to do elementary research on Google?

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
The people are to be taken in very small doses.
-- Ralph Waldo Emerson

Thanks for the answers... And yes, I have searched google!

As Pythonistas we can all marvel at the utility of Python, possibly
best-known for its many applications at Google. However, I've noticed an
increasing number of replies (quite possibly including some from me, so
I'm not being holier-than-thou in this respect) of the "sheesh, can't
people use Google?" type lately.

However,
Are people really too lazy to do elementary research on Google?


goes a bit too far in imputing motives to the enquirer and overlooking
the fact that there are some very good reasons for *not* using Google.

Since Google and the Python Software Foundation have a relationship
(Google are a sponsor member of the Foundation, were one of the sponsors
of PyCon DC 2005 and employ some Foundation Board members) and since I
am a Board member of the Foundation (there, full disclosure), I hesitate
to suggest that Googling can't fulfil every individual's every needs,
but the bald fact is it's true. [Thinks: if Google stock tanks today I'm
in deep doo-doo here].

Technical people like to pretend there's only technology. The fact that
this is demonstrably not true doesn't appear to condition their
behaviour very much, and on newsgroups, a bastion of testosterone from
the very early days of internetworking (due to network news' tight
interlinking with the dial-up UUCP network that used mainly local calls
to propagate news and mail), the position is at its worst. Note that
we're talking male hormones here, since by and large women don't appear
to have embraced the Python community (except perhaps individually, but
that's no business of mine).

While a snappish "go and look it up on Google" might suffice for a
mouthy apprentice who's just asked their thirteenth question in the last
half hour, it's (shall we say) a little on the brusque side for someone
who only appears on the group last February, and has a history of asking
reasonably pertinent though sometimes beginner-level questions.

In the real world there are many reasons why people interact, and
interactions on c.l.py reflect this diversity. Sometimes it's just (as
Americans say) "gathering round the water cooler": it's good to be in
touch with a number of other people who have the same technical interest
as you, and sometimes you get to say "well done" or interject your own
opinion.

Other people come here for a sense of affirmation ("I wonder if those
Python guys will treat me like a leper if I post on c.l.py?"), amusement
("I wonder what the quote of the week'll be on the python-url"),
intelligence (I wonder if the Twisted guys have produces a new version
of X recently") and even identity ("I'll argue about everything I can
possibly find the minutest hole in so people know that I have a brain
and can use it").

Also, many regular readers didn't grow up speaking English (I was
tempted to omit those last two words and leave it at that, but I won;'t
be quite so extreme today), and so they may not phrase their questions
appropriately. For all I know, there may not be that much Google content
in Norwegian.

In short, this group is a broad church, and those readers with brain s
the size of planets should remember that they are just as much in a
minority as the readers who appear on the list for the first time this
week. The vast majority are here to learn and grow, and I think that's
the sort of behaviour we should be encouraging.

Google is *very* good at delivering information. I use google.com all
the time, and I'm also a Google Earth user. However, we wouldn't be at
all happy if Google just stuck a pipe onto our computers and spewed
information at them three times as fast as it could be read. Bandwidth
on a group like this is precious (which, I recently had to be reminded,
is why it's important Not to Feed the Trolls - trolls eat bandwidth up
like nobody's business, and pretty soon whole days are taken up by
responses to their inanities).

As time goes by I find myself more and more likely, getting to the end
of a possibly sharp or vindictive response, to simply kill the post and
take what pleasure I can from not having shared that particular piece of
small-mindedness with the group. In the end our most valuable
contributions to groups like this can be the gift of being able to walk
away from a fight simply to keep the noise level down.

so-now-thank-me-for-not-saying-all-that-crap-ly y'rs - steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Sep 30 '05 #9

[Steve]
In short, this group is a broad church, and those readers with brain s
the size of planets should remember that they are just as much in a
minority as the readers who appear on the list for the first time this
week. The vast majority are here to learn and grow, and I think that's
the sort of behaviour we should be encouraging.
+1 (and +1 QOTW).
As time goes by I find myself more and more likely, getting to the end
of a possibly sharp or vindictive response, to simply kill the post and
take what pleasure I can from not having shared that particular piece of
small-mindedness with the group. In the end our most valuable
contributions to groups like this can be the gift of being able to walk
away from a fight simply to keep the noise level down.


+1 (and +1 QONW).

--
Richie Hindle
ri****@entrian. com
Sep 30 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8584
by: Pierre Rouleau | last post by:
I can't remember where/how sys.path is set (aside from the automatically loaded site.py) and i get a strange entry in it. Can anyone remind me where/how to control sys.path on a Win32 machine (i'm running XP on the one where the issue arises). I can't figure out why the 'C:\WINDOWS\System32\python23.zip' entry is inside sys.path. That...
4
1765
by: Susanne | last post by:
Hello, i need the source code of python 2.3 for windows. I looked on ftp.python.org, but i can't find it. I need it, because i want to create a visual Mfc debug application and for that i need the python*_d.dll and python*_d.lib. Can anyone give me a hint, where i can get the sourcecode??
6
4469
by: wccppp | last post by:
Hello, I'm a complete newbie in learning python. I was testing some sample codes I found in this newsgroup and seems it could not locate the module ctypes.py. I installed python 2.4, wxPython and pywin32. Just could not find this file. I thought it should be in Lib/site-packages/ directory but it is not there. Where can I find this file?
1
1974
by: mirandacascade | last post by:
Version of python: 2.4 O/S: Win2K I will be writing some python scripts to do some client-side programming that involves socket.py. I expect that I will be making calls to the following methods/functions: connect_ex() setsockopt() sendall()
1
1061
by: Sullivan WxPyQtKinter | last post by:
I have been looking for python API documentation of BDBXML for quite a few days but I could not find it. Anyone has any idea where it is? Or if there is not such a thing at all, how could I get started? In addition, in the previous posts I have seen some grumble about python API's lack of XMLexception and some basic programming and...
23
2373
by: gord | last post by:
As a complete novice in the study of Python, I am asking myself where this language is superior or better suited than others. For example, all I see in the tutorials are lots of examples of list processing, arithmetic calculations - all in a DOS-like environment. What is particularly disappointing is the absence of a Windows IDE, components...
0
1396
by: Jim | last post by:
I am trying to tell Python where it can find some modules it will need when embedded in my app. The convenient way would be to plop a .pth file somewhere Python can find it. I found that the doc is wrong when it says this kind of filecan go anywhere on the python path. It is not found if it goes into the python root dir, or python\lib --...
5
3694
by: Wijaya Edward | last post by:
I tried to call pydoc from my Linux box. To my realization that it doesn't contain pydoc. I thought this module should be a default module. Can anybody suggest where can I find the module? I tried: $ easy_install pydoc
1
1823
by: arorap | last post by:
Hi, I recently setup mod_python successfully and things work smooth. However, I do not remember telling mod_python where to find Python installation. There's not environment variable which gives that information. As such how does mod_python know where to find Python ? When I print sys.path in my scripts it contains my python installation...
15
14728
by: Kurda Yon | last post by:
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or directory". So, I assume that the absence of the "sqlite3.h" is the origin of the problem. I found on the web, that this file should be either in...
0
7781
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8027
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8202
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7788
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6421
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5594
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5292
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2216
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1304
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.