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


Groups > comp.lang.python > #66306

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'tests.': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'python': 0.11; 'bugs.': 0.16; 'subject:type': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; "python's": 0.19; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'easier': 0.31; 'bugs': 0.33; 'programmers': 0.33; 'but': 0.35; 'subject:data': 0.36; 'charset:us-ascii': 0.36; 'unit': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'here': 0.66; 'sam': 0.68; 'caused': 0.69; 'subject:Best': 0.91
Date Fri, 14 Feb 2014 08:32:32 -0800
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: Best practices to overcome python's dynamic data type nature
References <5fd7e804-820e-4fe1-b36b-67e553f3aedf@googlegroups.com>
In-Reply-To <5fd7e804-820e-4fe1-b36b-67e553f3aedf@googlegroups.com>
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator3304.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-BWhitelist no
X-Source-IP 173.12.184.233
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender ([173.12.184.233]) [173.12.184.233]:36744
X-Source-Auth ethan+stoneleaf.us
X-Email-Count 1
X-Source-Cap dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6921.1392397036.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392397036 news.xs4all.nl 2928 [2001:888:2000:d::a6]:47783
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66306

Show key headers only | View raw


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.

--
~Ethan~

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