Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; "(i'd": 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'testing,': 0.09; 'python': 0.11; 'assume': 0.14; 'language.': 0.14; '16:10,': 0.16; 'bugs.': 0.16; 'ides': 0.16; 'programmer,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:type': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; "python's": 0.19; 'header:User-Agent:1': 0.23; 'regardless': 0.24; '---': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'testing': 0.29; 'easier': 0.31; 'testing.': 0.31; 'running': 0.33; 'bugs': 0.33; 'programmers': 0.33; 'editor': 0.35; 'but': 0.35; 'combination': 0.36; 'subject:data': 0.36; 'thank': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'free': 0.61; 'viruses': 0.61; 'you.': 0.62; 'protection': 0.63; 'our': 0.64; 'more': 0.64; 'here': 0.66; 'antivirus': 0.68; 'sam': 0.68; 'caused': 0.69; 'subject:Best': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Best practices to overcome python's dynamic data type nature Date: Fri, 14 Feb 2014 16:39:01 +0000 References: <5fd7e804-820e-4fe1-b36b-67e553f3aedf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-16-159.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <5fd7e804-820e-4fe1-b36b-67e553f3aedf@googlegroups.com> X-Antivirus: avast! (VPS 140214-1, 14/02/2014), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392395962 news.xs4all.nl 2950 [2001:888:2000:d::a6]:33708 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66303 On 14/02/2014 16:10, 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? > > Thank you. > Bugs are caused by the programmer, regardless of the language. The best way of know of avoiding bugs in Python is a combination of running Pylint in the Pydev editor as I type (I'd assume other IDEs let you do this as well) and testing, more testing and yet more testing. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com