Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'value,': 0.04; 'behavior.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:python': 0.10; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'iterator,': 0.16; 'subject:case': 0.16; 'onto': 0.18; 'wrap': 0.18; 'trying': 0.21; 'header:In-Reply-To:1': 0.22; 'stops': 0.23; 'stefan': 0.24; 'code': 0.25; 'fact': 0.27; 'subject:" ': 0.28; 'explicitly': 0.29; 'problem': 0.29; 'class': 0.29; 'implementing': 0.32; 'ps:': 0.32; 'list': 0.32; 'header:User- Agent:1': 0.33; 'header:X-Complaints-To:1': 0.33; 'to:addr:python- list': 0.34; 'received:84': 0.34; 'anything': 0.34; 'subject:/': 0.35; 'unless': 0.35; 'subject:lists': 0.36; 'received:org': 0.38; 'should': 0.39; 'hit': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'reply,': 0.67; 'soon': 0.70; 'make,': 0.84; 'nathan': 0.84; 'subject:Making': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Stefan Behnel Subject: Re: Making the case for "typed" lists/iterators in python Date: Fri, 16 Dec 2011 21:16:22 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslb-084-056-028-212.pools.arcor-ip.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Lightning/1.0b2 Thunderbird/3.1.15 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324066604 news.xs4all.nl 6880 [2001:888:2000:d::a6]:44629 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17383 Nathan Rice, 16.12.2011 19:51: > Nothing stops me from implementing it, in fact it is VERY trivial to > wrap member class methods onto a list subclass, and wrap functions to > support vectorized behavior. The problem is that as soon as you hit > anything outside your code that returns a list or iterator, everything > gets blown away unless you explicitly wrap the return value, which > entirely defeats the point. The point you are trying to make, maybe. Stefan PS: note that you top-posted in your reply, you should try to avoid that.