Search results
Guide to Python introspection - IBM
Search result description:Dec 1, 2002 ... To illustrate the dynamic nature of Python's introspection capabilities, let's look at
some examples using dir() on a custom class and some class ...
Charming Python: Functional programming in Python, Part 3 - IBM
Search result description:Using the attributes of that class, we were able to assure that a particular name
means only one thing within a given block scope: Listing 1: Python FP session ...
Metaclass programming in Python - IBM
Search result description:Feb 26, 2003 ... But there is one element brushed over in the description: in Python (and other
languages), classes are themselves objects that can be passed ...
Charming Python: Functional programming in Python, Part 1 - IBM
Search result description:The above examples have already shown the first class status of functions in
Python, but in a subtle way. When we create a function object with the lambda ...
Charming Python: Decorators make magic easy - IBM
Search result description:Dec 29, 2006 ... As Michele Simionato and I pointed out in earlier Charming Python installments,
it was possible even in Python 1.5 to manipulate Python class ...
Charming Python: Using state machines - IBM
Search result description:The StateMachine class is really all you need for an abstract state machine.
Because passing function objects in Python is so easy, this class uses far fewer
lines ...
Explore Python, machine learning, and the NLTK library - IBM
Search result description:Oct 9, 2012 ... Fortunately, Python and NLTK enable you to clean up this mess. The
normalized_words method of class RssItem , in Listing 7, deals with all of ...
Introduction to Python descriptors - IBM
Search result description:Jun 26, 2012 ... Python descriptors were introduced in Python 2.2, along with new style classes,
yet they remain widely unused. Python descriptors are a way to ...
Practical threaded programming with Python - IBM
Search result description:Jun 3, 2008 ... Threaded programming in Python can be done with a minimal amount of ...
import threading import datetime class ThreadClass(threading.
Metaclass programming in Python, Part 2 - IBM
Search result description:Aug 28, 2003 ... An instance is a Python object that was "manufactured" by a class; the class acts
as a sort of template for the instance. Every instance is an ...
Charming Python: Text processing in Python - IBM
Search result description:This article summarizes Python's text processing facilities for the programmer
new ... The simplest character class is a single character, which is just included in ...
Charming Python: Python elegance and warts, Part 2 - IBM
Search result description:Aug 29, 2007 ... Since the old days (before Python 2.1), Python has had a magic method called .
__getattr__() that a class could define to return computed ...
Python persistence management - IBM
Search result description:Nov 1, 2002 ... When Python unpickles a class instance, it attempts to import the module
containing the class definition using the exact class name and module ...
Building and filling out templates with Python and Cheetah - IBM
Search result description:Aug 9, 2005 ... Cheetah generates a custom Python class that implements code for merging the
template definition with dynamic data. You can see this for ...
Issue with the locals() function in submit function on the class definition
Search result description:Apr 26, 2012 ... I would like to build a python class to perform certain spss jobs. The main
problem is with the spss.Submit function. I would like to declare a ...