method: code.Source.__init__

*Not documented*
    def __init__(self, *parts, **kwargs):

origin: code.Source

where:

changes in __dict__ after execution:

function source:

def __init__(self, *parts, **kwargs):
    self.lines = lines = []
    de = kwargs.get('deindent', True)
    rstrip = kwargs.get('rstrip', True) 
    for part in parts:
        if not part: 
            partlines = []
        if isinstance(part, Source):
            partlines = part.lines
        elif isinstance(part, (unicode, str)):
            partlines = part.split('\n')
            if rstrip:
                while partlines: 
                    if partlines[-1].strip(): 
                        break
                    partlines.pop()
        else:
            partlines = getsource(part, deindent=de).lines
        if de:
            partlines = deindent(partlines)
        lines.extend(partlines)

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.0

called in /home/johnny/projects/merlinux/py/dist/py/apigen/source/testing/test_browser.py

traceback code.Source.__init__.1

called in /home/johnny/projects/merlinux/py/dist/py/apigen/source/testing/test_html.py

traceback code.Source.__init__.2

called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_code.py

traceback code.Source.__init__.3

called in /home/johnny/projects/merlinux/py/dist/py/code/code.py

traceback code.Source.__init__.4

called in /home/johnny/projects/merlinux/py/dist/py/test/raises.py

traceback code.Source.__init__.5

called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_code.py

traceback code.Source.__init__.6

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.7

called in /home/johnny/projects/merlinux/py/dist/py/apigen/source/testing/test_browser.py

traceback code.Source.__init__.8

called in /home/johnny/projects/merlinux/py/dist/py/code/code.py

traceback code.Source.__init__.9

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.10

called in /home/johnny/projects/merlinux/py/dist/py/c-extension/greenlet/test_remote.py

traceback code.Source.__init__.11

called in /home/johnny/projects/merlinux/py/dist/py/test/raises.py

traceback code.Source.__init__.12

called in /home/johnny/projects/merlinux/py/dist/py/execnet/gateway.py

traceback code.Source.__init__.13

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.14

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.15

called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_code.py

traceback code.Source.__init__.16

called in /home/johnny/projects/merlinux/py/dist/py/test/raises.py

traceback code.Source.__init__.17

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.18

called in /home/johnny/projects/merlinux/py/dist/py/code/source.py

traceback code.Source.__init__.19

called in /home/johnny/projects/merlinux/py/dist/py/test/raises.py

traceback code.Source.__init__.20