» Home » Module » Page 1
How do I import an external module when a local module masks a standard library module imported by the external module?
Category : Programming Languages

I have a local module named tokenize.py, masks a standard library module of the same name. I only discovered this when I tried to import an external module (sklearn.linear_model), which in turn does import tokenize and expects to get the standard library module, but gets my local module instead.


This is related to How to access a standard-library module in


View Replies


how to change a variable from a module inside a module in a module… (confused)
Category : Programming Languages

I have a variable in my main module which is changed using another module, but I want to change the variable from my main module through another module. I'm new to programmering, so I actually don't really know how to explain this stuff - sorry if I'm asking a stupid question.


The program's hierarchy looks a bit like this:


Main

---Features

---Pygame_han


View Replies


Access functions of a module from another module which itself imports the first module
Category : Web Design

Sorry for the confusing title, I tried to fit as much of the problem in the title.


The scenario:

I have a module(say ModuleA) which contains class definitions of some Tkinter GUI elements.
These elements also have certain events/functions bound/binded with them(such as '<Button-1>','<Button-2>'....


Now there's another modu


View Replies


Netbeans module developpement: How to benefit the freemarker engin without using a file template module?
Category : Programming Languages

I created a "custom wizard" module in Netbeans 7.2 and I want to generate a couple of files using freemarker engine.


I m not using a "file type wizard" (as I dont want the "template" to appear in "New file" dialog)


I tried using @templateRegistration annotation on the wizard action class but cant get the template file.


Is there a way to get for exemple a cust


View Replies


Drupal, conflict between Taxonomy Translation (part of i17 module) and super-select module?
Category : Web Design

I've enabled internazionalization for my Taxonomy vocabulary, and I've noticed that I've lost the changes made by Taxonomy super-select module (http://drupal.org/project/taxonomy_super_select)


I was wondering if there is a conflict between the 2 modules.


Update. Yes there is, and they suggest to apply this patch to change the module weights:
http://drupal.org/node/3


View Replies


Change module __version__ and save the module source file with updated version afterwards
Category : Programming Languages

In all of my Python module files I put the module version with __version__.


Now if I release my Python library, I want to increase this module version inside all Python module files automatically.


I know that I can access the version of a module for reading like this:


mymodule.py:


# my module
__version__ = "0.0.1"

View Replies


Is there a tool for extracting all variable, module, and function names from a Perl module file?
Category : Programming Languages

My apologies if this is a duplicate; I may not know the proper terms to search for.


I am tasked with analyzing a Perl module file (.pm) that is a fragment of a larger application. Is there a tool, app, or script that will simply go through the code and pull out all the variable names, module names, and function calls? Even better would be something that would identify whether it was


View Replies


Custom module in nodejs returns “cannot find module” error
Category : Development Tools & Services

I've been writing a little prototype app in the cloud9 ide using express and nodejs.


I was going to re-organize some code into a few custom modules but when I attempt to require them I get an error "cannot find module './lib'


The lib folder is in the root of my site directory. I have 1 file in there "test.js" that has a simple demo to try and get this working.



View Replies


Drupal's Event module with View module - how to change color of past events?
Category : Web Design

i'm using event module, with event_views module.


is it possible to change color of past events? or events in the future?


i know that will be some extra programing, but i don't know what and where..


tnx in adv on suggestions!


View Replies


Python and Eclipse: How to use interactive console after running a module, with the module variables and functions
Category : Programming Languages

Let's consider 3 situations:


1) I write a pyhon module in Eclipse (pydev) and run it Ctrl-F11. The module runs and I don't have any control or access (AFAIK) to the module variables and functions.


2) I have defined a python interpreter as an external tool in Eclipse, so I can run it within Eclipse. It works fine, but it does not have tab completion.


3) I ope


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .