Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'tutorial': 0.03; 'static': 0.04; 'annotations': 0.09; 'ide': 0.09; 'python': 0.11; 'all).': 0.16; 'checking,': 0.16; 'enlighten': 0.16; 'pythonic': 0.16; 'stumbled': 0.16; 'wrote:': 0.18; 'typing': 0.19; 'aug': 0.22; 'mon,': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'appear': 0.29; 'message-id:@mail.gmail.com': 0.30; 'comments': 0.31; 'anyone': 0.31; 'this.': 0.32; 'entirely': 0.33; 'implemented': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'searching': 0.37; 'implement': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'wish': 0.70; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dxjjfbhfOOzPIm3D7xh8MskQvnmW1cW/CnIvNYkzmf0=; b=lBx0kbB11cNufTImqu/LDJLKg/Cd69r9Rm2H3Bcq9RULAvQ+Rmsf7hViEiq9n5ZMhv OIzZHamI+oB2KtAy5hn+wd90MaCJd2rLIZIkb5ROsvy/xn9BS6Hw9W1VN93Es6dn+7ko CofiIBZ23xgHOwQ/zQhQbA+XygSrydzfc0MLnIhiMxHzB6cCsqhfgrPgNwS1wKVYVoWI vIbJSFJRveoQgQBT7wGl7GjJ80UAhMpapFJGUyQJXl0f0wB8UZOnWl18QGe3Se6wAXSr UrwQPmtWL7m1+xh2RoBDH0K/rydFTpPpuJAwL3IjZbtCE4er1jRHlt6pdRZ3f0lhFM56 A3rw== X-Received: by 10.68.28.232 with SMTP id e8mr25095717pbh.94.1375745950496; Mon, 05 Aug 2013 16:39:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Mon, 5 Aug 2013 17:38:30 -0600 Subject: Re: Newbie: static typing? To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375745960 news.xs4all.nl 15962 [2001:888:2000:d::a6]:49843 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51988 On Mon, Aug 5, 2013 at 2:46 PM, Rui Maciel wrote: > Is there any pythonic way to perform static typing? After searching the web > I've stumbled on a significant number of comments that appear to cover > static typing as a proof of concept , but in the process I've found no > tutorial on how to implement it. > > Does anyone care to enlighten a newbie? Python 3 has support for function annotations, but it leaves it entirely up to the user how they wish to use these annotations (if at all). In theory, a Python IDE could use function annotations to perform static type checking, but I am not aware of any IDE that has actually implemented this.