This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!
Project Description

Given a list of nested lists/tuples, returns all the elements in a single list. Typical usage:

#!/usr/bin/env python

from flatten.flatten import flattenlist

the_list = [[1,2,3],[4,5,6], [7], [8,9]]
[1, 2, 3, 4, 5, 6, 7, 8, 9]

Short Intro

There are already many implementations of this problem, given below.

  • Enthought Matplotlib. If you have matplotlib installed or Enthought Canopy.The flatten module using:

    from matplotlib.cbook import flatten
  • The main recipie for above code given here:

  • An attempt using this module is made in this stackoverflow problem:

FlattenList is a vanilla python attempt to get the same result without any external module overhead.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
FlattenList-0.1.4-py2-none-any.whl (3.6 kB) Copy SHA256 Checksum SHA256 py2 Wheel Jan 29, 2015 (5.6 kB) Copy SHA256 Checksum SHA256 Source Jan 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting