コード例 #1
0
ファイル: __init__.py プロジェクト: KOLANICH-libs/lazily.py
 def __init__(self):
     self.a = 1
     log(self.__class__.__name__, "constructed")
コード例 #2
0
ファイル: __init__.py プロジェクト: KOLANICH-libs/lazily.py
def initShit():
    log("lazilyTest1.__init__.initShit is called")
コード例 #3
0
ファイル: __init__.py プロジェクト: KOLANICH-libs/lazily.py
def a():
    log("lazilyTest1.submodule.a is run")
コード例 #4
0
ファイル: __init__.py プロジェクト: KOLANICH-libs/lazily.py
from ImportTimeline import log

log("lazilyTest1/__init__.py run")
import traceback

#traceback.print_stack()


def initShit():
    log("lazilyTest1.__init__.initShit is called")


class Abracadabra:
    __slots__ = ("a", )

    def __init__(self):
        self.a = 1
        log(self.__class__.__name__, "constructed")
コード例 #5
0
ファイル: a.py プロジェクト: KOLANICH-libs/lazily.py
from ImportTimeline import log

log("lazilyTest2/a.py run")
import traceback

#traceback.print_stack()
コード例 #6
0
ファイル: __init__.py プロジェクト: KOLANICH-libs/lazily.py
from ImportTimeline import log

log("lazilyTest1/submodule/__init__.py run")
import traceback


#traceback.print_stack()
def a():
    log("lazilyTest1.submodule.a is run")
コード例 #7
0
from ImportTimeline import log

log("lazilyTest2/b.py run")
import traceback

#traceback.print_stack()

import lazily.lazilyTest1.a
コード例 #8
0
def b():
    log("lazilyTest1.a.b called")
コード例 #9
0
def getSourceFile():
    log("lazilyTest1.a.getSourceFile called")
    from inspect import currentframe, getsourcefile
    print("lazilyTest1.a.getFrameInfo called: " +
          str(getsourcefile(currentframe().f_back)))
コード例 #10
0
from ImportTimeline import log

log("lazilyTest1/a.py run")
import traceback

#traceback.print_stack()


def b():
    log("lazilyTest1.a.b called")


def getSourceFile():
    log("lazilyTest1.a.getSourceFile called")
    from inspect import currentframe, getsourcefile
    print("lazilyTest1.a.getFrameInfo called: " +
          str(getsourcefile(currentframe().f_back)))
コード例 #11
0
from ImportTimeline import log

log("lazilyTest1/b.py run")
import traceback

#traceback.print_stack()

import lazily.shit.a