Top "Module" questions

A logical subdivision of a larger, more complex system.

Can I invoke an instance method on a Ruby module without including it?

Background: I have a module which declares a number of instance methods module UsefulThings def get_file; ... def delete_file; ... …

ruby module methods
How can I conditionally import an ES6 module?

I need to do something like: if (condition) { import something from 'something'; } // ... if (something) { something.doStuff(); } The above code does …

javascript module ecmascript-6
How do I install Python libraries in wheel format?

I was looking for a tutorial on how to install Python libraries in the wheel format. It does not seem …

python module installation python-wheel
What to put in a python module docstring?

Ok, so I've read both PEP 8 and PEP 257, and I've written lots of docstrings for functions and classes, but I'm …

python documentation module
Python DNS module import error

I have been using python dns module.I was trying to use it on a new Linux installation but the …

python python-2.7 module resolver
Python: importing a sub‑package or sub‑module

Having already use flat packages, I was not expecting the issue I encountered with nested packages. Here is… Directory layout …

python import module package
How can I install a CPAN module into a local directory?

I'm using a hosted Linux machine so I don't have permissions to write into the /usr/lib directory. When I …

perl module installation cpan
Passing variable from Form to Module in VBA

I have the following button on a Form: Private Sub CommandButton1_Click() Dim pass As String pass = UserForm1.TextBox1 Unload …

excel vba module userform
In Python, can I call the main() of an imported module?

In Python I have a module myModule.py where I define a few functions and a main(), which takes a …

python module arguments main
Does Python have a package/module management system?

Does Python have a package/module management system, similar to how Ruby has rubygems where you can do gem install …

python module