Questions tagged as 'module'

2
answers

Is a module the same as a class in Python?

Is a module the same as a class? If not what are the differences? I ask this because according to The Zen of Python , modules should be used instead of if s. The problem is that after searching I looked the same.     
asked by 05.03.2015 / 02:08
2
answers

How to install numpy and other modules?

I need help with how to install numpy. I tried to install pygame using pip but it did not work and I was confused on how to install modules or packages. Using python 3.5.0 in Windows 10 pro     
asked by 16.11.2015 / 00:09
2
answers

How does NodeJS manage package.json in subfolders?

How does NodeJS manage packages.json in sub-folders? You have your normal application but have sub-modules that you want to have your own dependencies, how does Node manage it? Does it create another node_modules and put all files back...
asked by 27.11.2015 / 16:56
0
answers

How to modularize an app made in Sammy.js with Require.js or "module pattern"?

I have an app (mobile app) written in Sammy.js with 4 routes. Each route has 40 to 70 lines of code and a evento bindado . Writing everything in a single callback of app is turning into a beautiful pasta because these events (...
asked by 17.02.2015 / 01:04
1
answer

"require" in higher directories

I have a program in Lua. This is the structure of the files: |Programa |-Main.lua |-config.lua |--------functions |-functions.lua Through functions.lua , I want to give require to config.lua . Is there a...
asked by 20.11.2014 / 19:11
3
answers

Get source file from a Python module

How can I assign a method to a module in Python or even access the source file of this module? I tried using the __file__ attribute, as shown below, but returned the error saying that the module does not have such an attribute. >>...
asked by 18.02.2017 / 01:59
1
answer

Delphi module for Apache 32 bits with error

I'm using Apache to upload a rest server made in Delphi, when I generate the module in Delphi in the 32-bit version, I put it in the Apache modules folder and the execution simply gives an error and does not start Apache, since version 64 bits w...
asked by 12.03.2018 / 14:48
1
answer

How do I migrate my website to RequireJS?

Currently I concatenate all my javascripts with grunt I send the mined file to the page, but I know a best practice is to use RequireJS to muddle everything, but I do not know how to migrate my Javascript files from "normal" to "modules ". :   ...
asked by 24.07.2015 / 20:38
1
answer

Is there any way to modify what the module will return in Lua?

I want to know if it exists since I have a data storage system, in which the data is in a table and when the player enters, that data is stored in a module script (The only one that returns something) . The problem is that you can not keep typin...
asked by 14.04.2017 / 01:08
1
answer

Webpack error with bootstrap-loader

I'm having trouble implementing the bootstrap-loader in the webpack. I get this error output on the console:    ERROR in   ./~/css-loader!/~/resolve-url-loader!/~/sass-loader?sourceMap!/~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/ b...
asked by 05.09.2016 / 17:52