Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(40)  |  Call(24)  |  Derive(0)  |  Import(16)
recursively flatten the list or tuple L

        def flatten(L):
    '''recursively flatten the list or tuple L'''
    R = []
    _flatten(L,R.append)
    return R
        


src/d/j/django-admin-report-HEAD/example/lib/reportlab/graphics/barcode/test.py   django-admin-report(Download)
 
    codeNames = getCodeNames()
    from reportlab.lib.utils import flatten
    width = [float(x[8:]) for x in sys.argv if x.startswith('--width=')]
    height = [float(x[9:]) for x in sys.argv if x.startswith('--height=')]
    if isoScale: options['isoScale'] = isoScale[0]
    scales = [x[8:].split(',') for x in sys.argv if x.startswith('--scale=')]
    scales = map(float,scales and flatten(scales) or [1])
    scales = map(float,scales and flatten(scales) or [1])
    for scale in scales:

src/d/j/django-admin-report-HEAD/example/lib/reportlab/graphics/charts/utils.py   django-admin-report(Download)
import weakref
from reportlab.graphics.shapes import transformPoint, transformPoints, inverse, Ellipse
from reportlab.lib.utils import flatten
class DrawTimeCollector(object):
    '''
            iA = inverse(A)
            p = transformPoints(iA,p)
        return tuple(flatten(p))
 
    @property

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/platypus/tables.py   mwlib.ext(Download)
from reportlab.lib.styles import PropertySet, ParagraphStyle, _baseFontName
from reportlab.lib import colors
from reportlab.lib.utils import fp_str, annotateException, IdentStr, flatten
from reportlab.lib.abag import ABag as CellFrame
from reportlab.pdfbase.pdfmetrics import stringWidth
                        if isinstance(v,(tuple,list,Flowable)):
                            if isinstance(v,Flowable): v = (v,)
                            else: v = flatten(v)
                            v = V[j] = self._cellListProcess(v,w,None)
                            if w is None and not self._canGetWidth(v):

src/r/e/reportlab-3.1.8/src/reportlab/platypus/tables.py   reportlab(Download)
from reportlab.lib.styles import PropertySet, ParagraphStyle, _baseFontName
from reportlab.lib import colors
from reportlab.lib.utils import annotateException, IdentStr, flatten, isStr, asNative, strTypes
from reportlab.lib.rl_accel import fp_str
from reportlab.lib.abag import ABag as CellFrame
                        if isinstance(v,(tuple,list,Flowable)):
                            if isinstance(v,Flowable): v = (v,)
                            else: v = flatten(v)
                            v = V[j] = self._cellListProcess(v,w,None)
                            if w is None and not self._canGetWidth(v):

src/r/e/reportlab-3.1.8/src/reportlab/graphics/charts/utils.py   reportlab(Download)
import weakref
from reportlab.graphics.shapes import transformPoint, transformPoints, inverse, Ellipse, Group, String, Path
from reportlab.lib.utils import flatten
from reportlab.pdfbase.pdfmetrics import stringWidth
 
            iA = inverse(A)
            p = transformPoints(iA,p)
        return tuple(flatten(p))
 
    @property

src/r/e/ReportLab-HEAD/src/reportlab/graphics/charts/utils.py   ReportLab(Download)
import weakref
from reportlab.graphics.shapes import transformPoint, transformPoints, inverse, Ellipse
from reportlab.lib.utils import flatten
class DrawTimeCollector(object):
    '''
            iA = inverse(A)
            p = transformPoints(iA,p)
        return tuple(flatten(p))
 
    @property

src/i/e/iellos-HEAD/lib/reportlab/graphics/charts/utils.py   iellos(Download)
import weakref
from reportlab.graphics.shapes import transformPoint, transformPoints, inverse, Ellipse
from reportlab.lib.utils import flatten
class DrawTimeCollector(object):
    '''
            iA = inverse(A)
            p = transformPoints(iA,p)
        return tuple(flatten(p))
 
    @property

src/m/a/mangareader-to-ebook-HEAD/reportlab/graphics/charts/utils.py   mangareader-to-ebook(Download)
import weakref
from reportlab.graphics.shapes import transformPoint, transformPoints, inverse, Ellipse
from reportlab.lib.utils import flatten
class DrawTimeCollector(object):
    '''
            iA = inverse(A)
            p = transformPoints(iA,p)
        return tuple(flatten(p))
 
    @property

src/x/h/xhtml2pdf-0.0.6/xhtml2pdf/xhtml2pdf_reportlab.py   xhtml2pdf(Download)
from reportlab.lib.enums import TA_RIGHT
from reportlab.lib.styles import ParagraphStyle
from reportlab.lib.utils import flatten, open_for_read, getStringIO, \
    LazyImageReader, haveImages
from reportlab.platypus.doctemplate import BaseDocTemplate, PageTemplate, IndexingFlowable
            def pageNumbering(objList):
                for obj in flatten(objList):
                    if isinstance(obj, PmlParagraph):
                        for frag in obj.frags:
                            if frag.pageNumber:

src/r/e/reportlab-3.1.8/src/reportlab/graphics/barcode/test.py   reportlab(Download)
 
    codeNames = getCodeNames()
    from reportlab.lib.utils import flatten
    width = [float(x[8:]) for x in sys.argv if x.startswith('--width=')]
    height = [float(x[9:]) for x in sys.argv if x.startswith('--height=')]
    if isoScale: options['isoScale'] = isoScale[0]
    scales = [x[8:].split(',') for x in sys.argv if x.startswith('--scale=')]
    scales = list(map(float,scales and flatten(scales) or [1]))
    scales = list(map(float,scales and flatten(scales) or [1]))
    for scale in scales:

  1 | 2  Next