by: Fernando Rodriguez |
last post by:
Hi,
How can I get the list of all the functions defined in the current module?
|
by: Christian Hudon |
last post by:
Hi,
I'd like to be able to trap lookups of attributes of the current module.
Exactly like what __getattr__ does, but for modules. As an exmaple, I'd
like to be able to do:
File foo.py
...
|
by: Joe HM |
last post by:
Hello -
The following code will crash if the TestA() instances are declared as
Private and work just fine if they are Public.
Is there a way to hide these instances to callers from outside the...
|
by: Hole |
last post by:
Hi There!
I'm trying to use Zope and the product OpenFlow.
I got the following error while I was using the built-in function
getattr() to retrieve an OpenFlow object:
attribute name must be...
|
by: dmitrey |
last post by:
hi all,
can anyone explain howto get function from module, known by string
names?
I.e. something like
def myfunc(module_string1, func_string2, *args):
eval('from ' + module_string1 + 'import...
|
by: Tobiah |
last post by:
Can I do:
getattr(current_module, 'foo')
where 'current_module' is a handle the the one
that the code is in? Just like
getattr(self, 'foo')
in a class, but for the current module...
|
by: Torsten Bronger |
last post by:
Hallöchen!
How can I get a list with all classes defined in the current module?
Thank you!
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
|
by: Mike |
last post by:
I want to do something like the following (let's pretend that this is
in file 'driver.py'):
#!/bin/env python
import sys
def foo():
print 'foo'
|
by: Alex |
last post by:
Can I get reference to module object of current module (from which the
code is currently executed)? I know __import__('filename') should
probably do that, but the call contains redundant...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|