By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,084 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,084 IT Pros & Developers. It's quick & easy.

where is ctypes.py?

P: n/a
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?

Thanks a lot for your help.

- wcc

Jul 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
wc****@yahoo.com <wc****@yahoo.com> wrote:
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?


Download and install ctypes from
<http://starship.python.net/crew/theller/ctypes/>
Alex
Jul 18 '05 #2

P: n/a
Thanks a lot Alex. I got the file.

- wcc

Jul 18 '05 #3

P: n/a
wc****@yahoo.com wrote:
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?


I see others have pointed you to the module, but nobody has
yet told you how you could have found it yourself.

"ctypes" and many other such modules are third-party packages
which do not come with Python itself. In almost all cases,
you should be able to use Google quite easily to find such
a module by typing "python ctypes" (or substitute the appropriate
name in place of ctypes) in a Google search. Quite often
the home page of the package (where you'll find instructions
on downloading) will be the first result Google provides.

-Peter
Jul 18 '05 #5

P: n/a
Peter,

Thank you very much. I'll keep that in mind.

- wcc

Jul 18 '05 #6

P: n/a

"Peter Hansen" > I see others have pointed you to the module, but nobody
has
yet told you how you could have found it yourself.

"ctypes" and many other such modules are third-party packages
which do not come with Python itself. In almost all cases,
you should be able to use Google quite easily to find such
a module by typing "python ctypes" (or substitute the appropriate
name in place of ctypes) in a Google search. Quite often
the home page of the package (where you'll find instructions
on downloading) will be the first result Google provides.


If one does not already know the name of what one is searching for, there
is also the PythonPackageIndex PyPI at python.org.

Terry J. Reedy

Jul 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.