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 条
  • [41] PYTHON']PYTHON PANIC
    GILLETT, JD
    NEW SCIENTIST, 1993, 140 (1897) : 50 - 50
  • [42] PYTHON']PYTHON HUNTERS
    Fredman, Alexander
    KENYON REVIEW, 2024, 46 (03): : 112 - 121
  • [43] Pattern for Python']Python
    De Smedt, Tom
    Daelemans, Walter
    JOURNAL OF MACHINE LEARNING RESEARCH, 2012, 13 : 2063 - 2067
  • [44] The python']python in Pennsylvania
    Moseley, FL
    SCIENCE, 1901, 14 : 852 - 853
  • [45] MatOpt: A Python']Python Package for Nanomaterials Design Using Discrete Optimization
    Hanselman, Christopher L.
    Yin, Xiangyu
    Miller, David C.
    Gounaris, Chrysanthos E.
    JOURNAL OF CHEMICAL INFORMATION AND MODELING, 2022, 62 (02) : 295 - 308
  • [46] Symbolic Python']Python
    Ari, Niyazi
    Mamatnazarova, Nurayim
    PROCEEDINGS OF THE 2014 11TH INTERNATIONAL CONFERENCE ON ELECTRONICS, COMPUTER AND COMPUTATION (ICECCO'14), 2014,
  • [47] Python']Python for Linguists
    Tagarro, Pablo M.
    Rodriguez, Igor
    Oronoz, Maite
    NATURAL LANGUAGE PROCESSING, 2025, 31 (01): : 176 - 180
  • [48] About python']python
    Arnold, D
    Bond, A
    Chilvers, M
    DR DOBBS JOURNAL, 1998, 23 (02): : 48 - 48
  • [49] Python']Python in astronomy
    Pirzkal, N
    Hook, RN
    ASTRONOMICAL DATA ANALYSIS SOFTWARE AND SYSTEMS VIII, 1999, 172 : 479 - 482
  • [50] Python']Python for Linguists
    Roth, Benjamin
    Wiegand, Michael
    COMPUTATIONAL LINGUISTICS, 2021, 47 (01) : 217 - 220