Design by contract for python']python

被引:9
|
作者
Plosch, R [1 ]
机构
[1] Johannes Kepler Univ, Ch Doppler Lab Software Engn, A-4040 Linz, Austria
关键词
D O I
10.1109/APSEC.1997.640178
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The idea of design by contract (DEC), realized in the statically typed object-oriented programming language Eiffel, can be viewed as a systematic approach to specifying and implementing object-oriented software systems. We believe that a statically typed programming language is not suitable in the analysis and design phase of a prototyping-oriented software life cycle. For this purpose, dynamically typed interpreted programming languages art: better suited. Unfortunately, dynamically typed programming languages usually do not support the concept of DBC. Therefore we integrated DEC into the programming language Python by using a metaprogramming approach, i.e., without changing the language or the run-time system. We adopted the DEC concept by adding mechanisms for dynamic type checking for method parameters and instance variables. The proposed combination of a more formal approach with a slim programming language provides a good basis for elicitation and documentation tasks in the analysis and design phase, especially in cases of a prototyping-oriented software development approach. Although the approach presented provides basic tool support for the analysis and design phase, further tool support, especially for browsing assertions, is desirable.
引用
收藏
页码:213 / 219
页数:7
相关论文
共 50 条
  • [31] Python']Python-Bot: A Chatbot for Teaching Python']Python Programming
    Okonkwo, Chinedu Wilfred
    Ade-Ibijola, Abejide
    ENGINEERING LETTERS, 2021, 29 (01) : 25 - 34
  • [32] Implications of the 2013 Python']Python Challenge® for Ecology and Management of Python']Python molorus bivittatus (Burmese Python']Python) in Florida
    Mazzotti, Frank J.
    Rochford, Mike
    Vinci, Joy
    Jeffery, Brian M.
    Eckles, Jennifer Ketterlin
    Dove, Carla
    Sommers, Kristen P.
    SOUTHEASTERN NATURALIST, 2016, 15 : 63 - 74
  • [33] Infectious dermatitis in a ball python']python (Python']Python regius) colony
    Branch, S
    Hall, L
    Blackshear, P
    Chernoff, N
    JOURNAL OF ZOO AND WILDLIFE MEDICINE, 1998, 29 (04) : 461 - 464
  • [34] Entamoeba ranarum Infection in a Ball Python']Python (Python']Python regius)
    Michaely, L. M.
    von Doernberg, K.
    Molnar, V
    Tappe, D.
    Tannich, E.
    Hewicker-Trautwein, M.
    Wohlsein, P.
    JOURNAL OF COMPARATIVE PATHOLOGY, 2020, 179 : 74 - 78
  • [35] Intestinal hydrolase activity of the Burmese python']python, Python']Python molurus
    Cox, C. L.
    Secor, S. M.
    INTEGRATIVE AND COMPARATIVE BIOLOGY, 2006, 46 : E29 - E29
  • [36] PARASITES OF COMMON AFRICAN PYTHON']PYTHON, PYTHON']PYTHON-SEBAE
    ARUO, SK
    EAST AFRICAN WILDLIFE JOURNAL, 1977, 15 (02): : 159 - 163
  • [37] Development of Hemipenes in the Ball Python']Python Snake Python']Python regius
    Leal, Francisca
    Cohn, Martin J.
    SEXUAL DEVELOPMENT, 2015, 9 (01) : 6 - 20
  • [38] Python']Python Skin
    Reddick, Yvonne
    STAND, 2016, 14 (04): : 10 - 10
  • [39] Sharing with Python']Python
    Einevoll, Gaute T.
    FRONTIERS IN NEUROSCIENCE, 2009, 3 (03): : 334 - 335
  • [40] Python']Python Skin
    Sze, Arthur
    KENYON REVIEW, 2015, 37 (04): : 26 - 29