Tags: comprehension, generator, python
News (1)
Microsoft looks to extinguish LAMP
The threat of open source web application software has led the software giant to produce smaller, cheaper versions of some of its tools. Read more »
Features (5)
Generating functions rather than lists in Python
There are situations where list comprehensions are useful, but also situations where you're better served by using some other form. In this article we'll take an example of where a function factory is the better choice. Read more »
Lazy list builders: Generators in Python
Sometimes your program is just too motivated, and does all this work you don't need or want it to do -- you want it to be lazier. That's where generators come in. Using a generator in Python lets you choose exactly how much you want done, and when. Read more »
Data driven transformations: list comprehensions
List comprehensions give you a different way to code in Python that allows you to focus on the data you're transforming, rather than the functions you use. Nick Gibson shows how you can use list comprehensions to make your Python code cleaner, clearer and faster. Read more »
Faster, smaller, clearer: Python iterator tools
With Python's itertools module you can quickly and simply perform some of the more complicated operations you'll need to do on lists. It will make your code perform better and become easier to read. Read more »
Java trends: Scripting languages
Java is still less than a decade old, but it's taken hold of the dev world. It's even spawned Java-esque scripting languages, such as BeanShell and Jess. Read more »
News and features
- Latest
- Popular
- Features
- Most Discussed
-
Bridging the gap between programmers and the visionA successful project will have a hard time flying if you don't walk through the game plan before writing a line of code. Read more »
-
Social news start-up Streem shuts downSydney social news start-up Streem will shut down this afternoon, according to a heartfelt notice posted on the site this morning by its founder Elgar Welch. Read more »
-
What's the point in following Apple's rules on the iPhone SDK if other developers will just flaunt them? We check the answer out and cover the other issues from the week: OLPC, IE, Ballmer and the Internet in space. Read more »
-
How to Reset Windows passwords
2008/10/01 14:31:09
-
Five things to consider when choosing a Linux distribution
2008/10/01 15:50:33
-
Cyber-terrorism 'a big threat'
2008/12/01 12:43:32
What's on?
-
Space pr0n, patent karma and Yang out -- Club Builder
On Club Builder this week: how NASA plans to get the Internet into space, Jerry Yang is out the door at Yahoo and Brendan Eich discusses javascript engine competition.

