Jump to content
  • Advertisement
Sign in to follow this  
laserbeak43

how do i look at whats inside a .pyd file?(python)

This topic is 4629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have been trying to look at the functions inside of a python pyd file but i dont know how to access it. here are my attempts first i just tried to import the stuff but imported the wrong thing, then i ran the test script for the pyd file then tried again.
PythonWin 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32.
Portions Copyright 1994-2004 Mark Hammond (mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further copyright information.
>>> import portmidi
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
ImportError: No module named portmidi
>>> import portmidi
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
ImportError: No module named portmidi
>>> 
enter your choice...
1: test input
2: test output
    

0 Microsoft MIDI Mapper   (output)  (unopened)
14 USB Audio Device   (output)  (unopened)
15 Out-A USB MidiSport 2x2   (output)  (unopened)
16 Out-B USB MidiSport 2x2   (output)  (unopened)
17 MIDI Yoke NT:  1   (output)  (unopened)
18 MIDI Yoke NT:  2   (output)  (unopened)
19 MIDI Yoke NT:  3   (output)  (unopened)
20 MIDI Yoke NT:  4   (output)  (unopened)
21 MIDI Yoke NT:  5   (output)  (unopened)
22 MIDI Yoke NT:  6   (output)  (unopened)
23 MIDI Yoke NT:  7   (output)  (unopened)
24 MIDI Yoke NT:  8   (output)  (unopened)
25 Microsoft GS Wavetable SW Synth   (output)  (unopened)
26 kX Control CT4760 10k1 [bc00]   (output)  (unopened)
27 kX Synth CT4760 10k1 [bc00]   (output)  (unopened)
28 kX Synth2 CT4760 10k1 [bc00]   (output)  (unopened)
29 kX Uart CT4760 10k1 [bc00]   (output)  (unopened)

Midi Output opened with  1  latency

chord will arpeggiate if latency > 0
Sending SysEx messages...
>>> import inspect
>>> pypm._doc_
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '_doc_'
>>> print pypm._doc_
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '_doc_'
>>> import pypm
>>> print pypm._doc_
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '_doc_'
>>> 
edit: sorry tried to put that in between '['code]'['/code]' [Edited by - laserbeak43 on October 21, 2005 8:21:08 PM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster

dir(module_name)

Share this post


Link to post
Share on other sites
this is what i get when i try to print any one of those things

>>> dir([pypm])
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__delslice__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getitem__', '__getslice__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__setslice__', '__str__', 'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']
>>> print pypm.__class__
<type 'module'>
>>> print pypm __contains__
Traceback ( File "<interactive input>", line 1
print pypm __contains__
^
SyntaxError: invalid syntax
>>> print pypm.__contains__
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '__contains__'
>>> print pypm.__eq__
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '__eq__'
>>> print pypm.__hash__
<method-wrapper object at 0x01AFF3B0>
>>> print pypm.__getattribute__
<method-wrapper object at 0x01AFF3B0>
>>> print pypm.__getitem__
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '__getitem__'
>>> print pypm.__getslice__
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute '__getslice__'
>>> print pypm.__str__
<method-wrapper object at 0x01B0BBD0>
>>>

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!