Guys,
Very beginner question.
I'm importing xml.dom.minidom at the top of my file.
I'm trying to figure out where the heck this is. According to Quick Python,
there should be folders on my drive
(using XP), under c:\python23, named xml, then underneath: dom, etc. But
there isn't.
I know that xml.dom.minidom is not built into sys.built_module_names,
cuz I viewed this variable under IDLE.
Could you tell me how Python finds this hierarchy?
( the reason for this knowledge is to figure out how to add XML_Objectify
to my path, but I'm trying to do it myself)
Thank you
Steve 2 1880
On Sun, Dec 07, 2003 at 12:54:06AM +0000, python newbie wrote: Guys, Very beginner question. I'm importing xml.dom.minidom at the top of my file.
I'm trying to figure out where the heck this is. According to Quick Python, there should be folders on my drive (using XP), under c:\python23, named xml, then underneath: dom, etc. But there isn't.
You missed one folder under the python folder: Lib. Full path should
resemble something like:
C:\Python23\Lib\xml
Sometimes you can also find modules installed in the site-packages directory
underneath the lib folder.
--
Jay Dorsey
jay at jaydorsey dot com
>>> import xml.dom.minidom xml.dom.minidom.__file__
'/usr/local/lib/python2.3/xml/dom/minidom.pyc'
----
levi
Jay Dorsey <ja*@jaydorsey.com> wrote in message news:<ma**************************************@pyt hon.org>... On Sun, Dec 07, 2003 at 12:54:06AM +0000, python newbie wrote: Guys, Very beginner question. I'm importing xml.dom.minidom at the top of my file.
I'm trying to figure out where the heck this is. According to Quick Python, there should be folders on my drive (using XP), under c:\python23, named xml, then underneath: dom, etc. But there isn't.
You missed one folder under the python folder: Lib. Full path should resemble something like:
C:\Python23\Lib\xml
Sometimes you can also find modules installed in the site-packages directory underneath the lib folder. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Guyon Morée |
last post by:
Hi,
I'm developing an application with Delphi+Python. Distributing such an
application requires me to include all the used modules + python23.dll.
At the moment I'm using 'trial-and-error' on...
|
by: Jerald |
last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks
the use of uninitialized memory, etc), gives a lot of errors.
See below.
jfj@cluster:~/> python -V
Python 2.3.4...
|
by: mwt |
last post by:
When I'm rewriting code (cutting and pasting pieces from earlier
modules), is there a quick way to determine if I have imported all the
necessary modules? I am used to working in Java, where the...
|
by: Justin Johnson |
last post by:
Hello,
I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler
(VisualAge C++ Professional / C for AIX Compiler, Version 6). I run
configure and make, but makes fails with undefined...
|
by: Joshua J. Kugler |
last post by:
So, I have:
ModTest
__init__.py
AModule.py
BModule.py
CModule.py
All works fine. However, when I import ModTest, I would like it to discover
and store the names of the modules beneath it,...
|
by: mg |
last post by:
When make gets to the _ctypes section, I am getting the following in
my output:
building '_ctypes' extension
creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/
Modules/_ctypes...
|
by: Astley Le Jasper |
last post by:
Sorry for the numpty question ...
How do you find the reference name of an object?
So if i have this
bob = modulename.objectname()
how do i find that the name is 'bob'
|
by: Akira Kitada |
last post by:
Hi list,
I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed
to build some of the modules.
"""
Failed to find the necessary bits to build these modules:
_bsddb ...
|
by: Akira Kitada |
last post by:
Hi Marc-Andre,
Thanks for the suggestion.
I opened a ticket for this issue: http://bugs.python.org/issue4204
Now I understand the state of the multiprocessing module,
but it's too bad to see...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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...
| |