Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'subject:Python': 0.06; 'string': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'pep': 0.09; '~ethan~': 0.09; 'python': 0.11; 'def': 0.12; 'cryptic': 0.16; 'filename:fname piece:signature': 0.16; 'str)': 0.16; 'yup,': 0.16; 'wrote:': 0.18; '(but': 0.19; 'example': 0.22; 'header:User-Agent:1': 0.23; 'pointer': 0.24; 'looks': 0.24; 'header:In-Reply-To:1': 0.27; 'bigger': 0.30; 'work.': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'anyone': 0.31; 'probably': 0.32; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'received:173': 0.61; 'name': 0.63; 'subject:! ': 0.74; '08:30': 0.84; 'intuit': 0.84 Date: Wed, 21 Jan 2015 22:02:11 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python is DOOMED! Again! References: <54c07d04$0$13012$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <54c07d04$0$13012$c3e8da3$5496439d@news.astraweb.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eItILbXH0TnnHdeAwvbDxoKeIm7wVvt4u" 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: 58 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421906568 news.xs4all.nl 2905 [2001:888:2000:d::a6]:46161 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84195 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eItILbXH0TnnHdeAwvbDxoKeIm7wVvt4u Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 01/21/2015 08:30 PM, Steven D'Aprano wrote: >=20 > So what is this unspeakable, nightmarish, cryptic abomination going to = look=20 > like? Here's an example from PEP 484: >=20 > def greeting(name: str) -> str: > return 'Hello ' + name >=20 >=20 > I don't know about you, but I think anyone who cannot read that and int= uit=20 > that argument `name` is a string and the return result is also a string= There is nothing inherently intuitive about that syntax. The : makes it = look like a dictionary (but it isn't) and the -> looks like a pointer to something (but it isn't). > is probably going to have bigger troubles with Python than just type-hi= nting. Yup, true -- I do find writing meta-classes takes extra work. ;) -- ~Ethan~ --eItILbXH0TnnHdeAwvbDxoKeIm7wVvt4u Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJUwJJlAAoJENZ7D1rrH75N10wQAL6emhtzXL79o6B2L+iZrX9h xIb+N+zU5Yus2LCJ3gA4S2SBO01ji9+L89DI/M0vOXL3V8gork7uAcrxzIINR+U0 smEwk+0wFcgBlYdYPR53rLB/XMwr5Fr4aF6j3cjCMXMs6apO8hxW5VsZ3qU8a11C dTu0o2OYSA44Pkz2Ka0Q2u0//BVsOYhUPdC10rT6FM0Y5FpouW/zhwoSEO7WxKVO OZDJ9Z9Zt0iyoxByRMhAkade9PftI2NLHAB7EuWiPDvUpfWT7zT3epsvLF0UHmA+ asQulq1BAJWRqD95NaI+rXb89wqK6y8l3F8jMrTj9xmYaTTmxnXevqsUxnAyF6Wy /MBSbe77c50Qu6aXw+NfqM0TWFjoZCwpGpqKri1V1dc8kHGzl5P4wU1ng1ceirRm hQeTx8TKquxtuA/fa8X99cfrTlFYY50CYbN1+3eGYlFZd7E7es27eqm5/+yps4ER P1WrUZnKK4Tx8Q7OzD/1BZeSf9EiuF+j1zmYvc40DBbKS0PomiBal6zFA2xAAthp kvHi7SH+2Rp2ZFpDAiPHVub454hMx160xcZfVTCp00kLaEnnRvCaB4/wtzz4ebX+ t2RMARxy+Kj9FyuL51xppflfyY6FVbL7+M3gTF8YpZkh5LzlrctPbfLZL58Cd+Tk gOatlgUYAxpFgUK2HqwA =0H3o -----END PGP SIGNATURE----- --eItILbXH0TnnHdeAwvbDxoKeIm7wVvt4u--