Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #66318

Re: Best practices to overcome python's dynamic data type nature

From Thomas Heller <theller@ctypes.org>
Newsgroups comp.lang.python
Subject Re: Best practices to overcome python's dynamic data type nature
Date 2014-02-14 20:50 +0100
Message-ID <bm7aabF6du0U1@mid.individual.net> (permalink)
References <5fd7e804-820e-4fe1-b36b-67e553f3aedf@googlegroups.com> <mailman.6921.1392397036.18130.python-list@python.org>

Show all headers | View raw


Am 14.02.2014 17:32, schrieb Ethan Furman:
> On 02/14/2014 08:10 AM, Sam wrote:
>>
>> Dynamic data type has pros and cons. It is easier to program but
>>  also easier to create bugs. What are the best practices to reduce
>>  bugs caused by Python's dynamic data-type characteristic? Can the
>>  experienced Python programmers here advise?
>
> Unit tests.

Lint-like tools - there are a few - also help to discover bugs,
even before running or testing the code.  They also help in
other ways to write better code.

Myself I use the 'frosted' tool.

Thomas

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Best practices to overcome python's dynamic data type nature Sam <lightaiyee@gmail.com> - 2014-02-14 08:10 -0800
  Re:Best practices to overcome python's dynamic data type nature Dave Angel <davea@davea.name> - 2014-02-14 11:42 -0500
  Re: Best practices to overcome python's dynamic data type nature Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-14 16:39 +0000
  Re: Best practices to overcome python's dynamic data type nature Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-14 16:43 +0000
  Re: Best practices to overcome python's dynamic data type nature Marko Rauhamaa <marko@pacujo.net> - 2014-02-14 18:54 +0200
    Re: Best practices to overcome python's dynamic data type nature Ethan Furman <ethan@stoneleaf.us> - 2014-02-14 09:02 -0800
    Re: Best practices to overcome python's dynamic data type nature Chris Angelico <rosuav@gmail.com> - 2014-02-15 06:42 +1100
  Re: Best practices to overcome python's dynamic data type nature Ethan Furman <ethan@stoneleaf.us> - 2014-02-14 08:32 -0800
    Re: Best practices to overcome python's dynamic data type nature Thomas Heller <theller@ctypes.org> - 2014-02-14 20:50 +0100
      Re: Best practices to overcome python's dynamic data type nature flebber <flebber.crue@gmail.com> - 2014-02-14 20:20 -0800
  Re: Best practices to overcome python's dynamic data type nature Gary Herron <gary.herron@islandtraining.com> - 2014-02-14 09:09 -0800

csiph-web