python-module
Extending python with C module
So I have a C program to interface with an i2c device. I need to interface to that device from python. I\'m just wondering if it\'s worth porting the program into a python module or if the amount of e[详细]
2023-01-12 08:29 分类:问答Python Class in module not loading in one computer, but the other
So I have two files: File 1 has this method in it: import MyGlobals global old_function def init(): import ModuleB[详细]
2023-01-11 03:01 分类:问答Getting Python's nltk.wordnet module working for Jython
I\'ve read through the FAQ for Jython and this post Jython and python modules but am not sure how I can determine if a module is written purely in C or Python.[详细]
2023-01-07 13:40 分类:问答Define a global in a Python module from a C API
I am deve开发者_开发技巧loping a module for Python using a C API. How can I create a variable that is seen as global from Python?[详细]
2023-01-02 14:27 分类:问答Python: what modules have been imported in my process?
How can I get a list of the modules that have been imported into my开发者_如何学运维 process?sys.modules.values() ... if you really need the names of the modules, use sys.modules.keys()[详细]
2023-01-02 06:40 分类:问答Python - problem in importing new module - libgmail
I downloaded Python module libgmail from sourceforge and extracted all the files in the archive. The archive had setup.py, so I went to that directory in command prompt and did[详细]
2022-12-30 02:07 分类:问答Checking for module availability programmatically in Python?
given a list of module names (e.g. mymods = [\'numpy\', \'scipy\', ...]) how can I check if the modules are available?[详细]
2022-12-26 16:57 分类:问答Easiest way to automatically download required modules in Python?
I would like to release a python module I wrote which depends on several packages. What\'s the easiest way to make it so these pa开发者_如何学Gockages are programmatically downloaded just in case they[详细]
2022-12-26 14:13 分类:问答Pylibmc: ImportError: dynamic module does not define init function (init_pylibmc)
>>> import pylibmc Traceback (most recent call last): File \"<stdin>\", line 1, in <module>[详细]
2022-12-25 07:12 分类:问答python metaprogramming
I\'m trying to archive a task which turns out to be a bit complicated since I\'m not very good at Python metaprogramming.[详细]
2022-12-23 07:08 分类:问答