Where to find python c-sources

T

Tor Erik Sønvisen

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
 
M

Michael J. Fromberger

"Tor Erik Sønvisen said:
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
 
E

Erik Max Francis

Tor said:
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?
 
T

Tor Erik Sønvisen

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

--
Erik Max Francis && (e-mail address removed) && 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!
 
S

Steve Holden

Tor said:
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,

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
 
R

Richie Hindle

[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).
 
E

Erik Max Francis

Steve said:
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.

I told him exactly where it was. I just also pointed out that he could
have trivially found out the answer on his own by using Google for
fifteen seconds. It would be one thing if I (and nobody else) answered
his question and just rudely pointed him to Google. But since I
actually answered his question, looks to me like someone just wanted to
stand on his soapbox today.
 
J

John J. Lee

Tor Erik Sønvisen said:
Thanks for the answers... And yes, I have searched google!

How odd -- the most useful link (the viewcvs page for this source
file) is the very first link for me when I search for socketmodule.c

Does google vary in its results across the globe?


John
 
P

Paul Boddie

John said:
How odd -- the most useful link (the viewcvs page for this source
file) is the very first link for me when I search for socketmodule.c

Does google vary in its results across the globe?

Actually, yes, although in this case the top result is the same for
both google.no (where I get sent if I go to google.com) and
google.co.uk (where my browser's search field takes me, probably
because of some locale setting or other).

Paul
 
M

Mike Meyer

Steve Holden said:
However,


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.

Ok, *what* are the reasons for not using Google?

I agree with Steve - there's no reason to impugn the motives of
someone looking for answers. They may not realize what an excellent
resource Google is. People have to learn how to find answers, just
like they have to learn how to use Python. Suggesting that they check
Google - if they didn't say they already did - is perfectly
reasonable. Assuming they are to lazy to do so is something else
again.

<mike
 
S

Steve Holden

Erik said:
Steve Holden wrote:




I told him exactly where it was. I just also pointed out that he could
have trivially found out the answer on his own by using Google for
fifteen seconds. It would be one thing if I (and nobody else) answered
his question and just rudely pointed him to Google. But since I
actually answered his question, looks to me like someone just wanted to
stand on his soapbox today.
I don't think "The source tarball on python.org" could claim to be
telling him "exactly where it was" given that my copy of the web site
has 341 MB of stuff in it.

Just that same, if you are saying that your behaviour didn't really
merit my response then I'd probably agree. Your post was the straw that
broke the camel's back rather than an egregious example of bad manners.
So I'm sorry if it looked as though the soapboxing was directed
primarily at you, which it wasn't.

regards
Steve
 
E

Erik Max Francis

Steve said:
I don't think "The source tarball on python.org" could claim to be
telling him "exactly where it was" given that my copy of the web site
has 341 MB of stuff in it.

He doesn't have to search through the whole thing, there's a link on the
front page, so this 341 MB figure is meaningless.

I certainly understand laziness. I don't approve of it, but I can
understand it. But I really don't understand _defending_ laziness.

His grasp of the English language was just fine. He could have gotten
the answer to his question by using Google with less time and effort
than it took him to post to Usenet, wait for a response, and then act on
it. Even if he were totally lazy and selfish, he could have gotten the
answer more easily by using Google for ten seconds. Language was
obviously not a barrier here, since the very words he used in asking the
question could have been typed into a search engine to get exactly the
answer he wanted.

There are plenty of questions that are complex enough, or require
knowing the right terminology which might not be obvious to an
interested amateur, such that a search engine won't be the most
practical way to do research. This was _certainly_ not one of those cases.
 
M

Michael

John said:
....
Does google vary in its results across the globe?

Aside from Paul Boddie's comment to the effect of "yes", there is a very
important thing that people forget - *no everyone is as good at using a
search engine as others*. People are not simply as good at finding the same
information using the same tools as others.

You liken the problem to a library. If you understand how a library is laid
out, you can find the information alot quicker. If however you're looking
in a library for a book on "how to create those odd things for computers"
and you've been told it involves "python" you're as likely to end up in the
fiction section as you are zoology.

If you can't figure out the right search terms you need, google can be
useless. (That said when that happens to me, I tend to either use
kartoo.com or ask a friend)

The search terms might be obvious to you, but it simply means your google-fu
is strong, and the strong should help the weak. (or not attack them at
least...)


Michael.
 
J

John J. Lee

[Tor Erik Sønvisen]
socketmodule.c, but I can't locate this file... Where should I look?

[John, finding 'socketmodule.c' responds well to "I'm Feeling Lucky"]
Does google vary in its results across the globe?
[Michael]
The search terms might be obvious to you, but it simply means your google-fu
is strong, and the strong should help the weak. (or not attack them at
least...)

You believe that Tor is dumb enough not to think of searching for
"socketmodule.c" when, um, searching for socketmodule.c?


John
 
M

Michael

John said:
[Tor Erik Sønvisen]
socketmodule.c, but I can't locate this file... Where should I look?

[John, finding 'socketmodule.c' responds well to "I'm Feeling Lucky"]
Does google vary in its results across the globe?
[Michael]
The search terms might be obvious to you, but it simply means your
google-fu is strong, and the strong should help the weak. (or not attack
them at least...)

You believe that Tor is dumb enough not to think of searching for
"socketmodule.c" when, um, searching for socketmodule.c?

He said he had tried google - OK, not in the first post but early in this
thread - I don't equate that with being dumb - just dumb luck :)

Message-ID: <[email protected]>

After all Peter Hansen suggested the search terms "python socketmodule.c"
rather than just "socketmodule.c"

Message-ID: <[email protected]>

To you the obvious search term was "socketmodule.c" which to me simply means
you're more aligned with Google than Tor :)

These things happen :)

Regards,


Michael.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top