• DocumentCode
    3405029
  • Title

    A Constraint Based Bug Checking Approach for Python

  • Author

    Chen, Lin ; Xu, Baowen ; Zhou, Tianlin ; Zhou, Xiaoyu

  • Author_Institution
    State Key Lab. for Novel Software Technol., Nanjing Univ., Nanjing, China
  • Volume
    2
  • fYear
    2009
  • fDate
    20-24 July 2009
  • Firstpage
    306
  • Lastpage
    311
  • Abstract
    Python is a powerful dynamically typed programming language. Dynamic typing brings great flexibility for programming. However, lack of static type checking, it is hard to detect some bugs before run time. We present a constraint framework based on Pythonpsilas structural equivalence type system. The framework does not introduce any new language features, thus without losing benefits of Pythonpsilas dynamic typing. Constraints are extracted from source code via static analysis and are used to check bugs, such as passing wrong parameters to function. A case study shows how to use the framework to check validity of function calls.
  • Keywords
    object-oriented languages; object-oriented programming; program diagnostics; program verification; Python dynamic typing; Python structural equivalence type system; bug checking approach; constraint extraction; constraint framework; object-oriented programming language; programming language; source code; static analysis; static type checking; Application software; Computer applications; Computer bugs; Computer languages; Computer science; Costs; Dynamic programming; Laboratories; Programming profession; Software maintenance; Python; bug checking; constraint;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer Software and Applications Conference, 2009. COMPSAC '09. 33rd Annual IEEE International
  • Conference_Location
    Seattle, WA
  • ISSN
    0730-3157
  • Print_ISBN
    978-0-7695-3726-9
  • Type

    conf

  • DOI
    10.1109/COMPSAC.2009.149
  • Filename
    5254110