Skip to main content

Learn about > python write generator

Search results

1-15 of 1,630 resultsView all results

Search result title:

Charming Python: Iterators and simple generators - IBM

Search result description:Sep 1, 2001 ... One does not directly write a generator in Python 2.2+. Instead, one writes a
function that, when called, returns a generator. This might seem ...

Search result title:

Tip: Using generators - IBM

Search result description:Oct 1, 2002 ... Generators are a very powerful new language feature of Python 2.2. ... a
document then print the Python representation #of each node object in ...

Search result title:

Charming Python: Generator-based state machines - IBM

Search result description:Jul 1, 2002 ... It takes a while to completely "get" Python 2.2's new generators. Even after writing
an introduction to simple generators in an earlier "Charming ...

Search result title:

Charming Python: Implementing "weightless threads" with ... - IBM

Search result description:Jun 1, 2002 ... Similar to Stackless Python microthreads, but using standard Python 2.2 -- they ...
Basically, a generator/coroutine exits with a GOTO target. ... time.clock()
scheduler() print "TOTAL TIME: ", time.clock()-starttime print "TOTAL ...

Search result title:

Writing clean, testable, high quality code in Python - IBM

Search result description:Sep 28, 2010 ... Writing clean, testable, high quality code in Python .... TestHighlight) ... ok
Consumes the generator, and then verifies the result[0] ... ok Verifies ...

Search result title:

Charming Python: Decorators make magic easy - IBM

Search result description:Dec 29, 2006 ... With version 2.2, Python grew a custom metaclass mechanism that went a long
way, ... def enhanced(meth): def new(self, y): print "I am enhanced" return .... list-
comprehensions, and more recently generator-comprehensions, ...

Search result title:

Charming Python: Using state machines - IBM

Search result description:In fact, most programmers often write state machines without really thinking about
..... Python, which efficiently implements coroutines, generators, continuations, ...

Search result title:

Easy and beautiful documentation with Sphinx - IBM

Search result description:Nov 29, 2011 ... Sphinx is a tool allowing developers to write documentation in plain text for easy
output generation in formats meeting varying needs. ... Although Sphinx is written
in Python and was originally created for the Python language ...

Search result title:

From scripting to object-oriented Python programming - IBM

Search result description:Jul 14, 2008 ... Writing a disk-monitoring function in PHP and Bash .... interactive Python shell,
you would see that outline and flag are both generator objects if ...

Search result title:

Wrap GObjects in Python - IBM

Search result description:Nov 15, 2012 ... This enables you to write applications in Python that look and feel ... Override
files tell the code generator what headers to include, what the ...

Search result title:

Writing plug-ins in Python - IBM

Search result description:Sep 2, 2008 ... To get started writing the plug-in, you are going to use an open source Python
package I wrote called pathtool, which uses generators to walk a ...

Search result title:

Charming Python: Using combinatorial functions in the itertools - IBM

Search result description:Jun 12, 2003 ... Python 2.2 introduced simple generators to the Python language and ... Using
itertools functions will be a bit faster than writing your own ...

Search result title:

Metaclass programming in Python - IBM

Search result description:Feb 26, 2003 ... In traditional Python syntax, you can write: .... entirely by the metaclass
DTDGenerator , without any change made to either gnosis.xml.validity or ...

Search result title:

Python testing frameworks : Make your life easy with a Python ... - IBM

Search result description:May 5, 2009 ... The recent emergence of industrial-strength Python testing ... built with Python
seemed to have its own idioms and practices for writing and ... the radically
simpler test style that the newest generation of tools are encouraging.

Search result title:

Python development with Eclipse and Ant - IBM

Search result description:Jun 15, 2004 ... Python is a very flexible and powerful dynamic scripting language with full object
oriented ... PyDoc generation build script fragment .... You'd like any unit tests we
write to be executed automatically as a part of the build.


1-15 of 1,630 resultsView all results