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


Groups > comp.lang.python > #56206

Re: feature requests

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'languages,': 0.04; 'level,': 0.07; 'skip:` 10': 0.07; "'return": 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; '~ethan~': 0.09; 'python': 0.11; 'thread': 0.14; 'all?': 0.16; 'assumptions': 0.16; 'rarely': 0.16; 'reinvent': 0.16; 'subject:requests': 0.16; 'suggestion.': 0.16; 'wow,': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'trying': 0.19; 'things.': 0.19; 'not,': 0.20; 'issue.': 0.22; 'python?': 0.22; 'header:User- Agent:1': 0.23; 'helper': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; 'change,': 0.30; "i'm": 0.30; 'lines': 0.31; 'trivial': 0.31; 'probably': 0.32; 'could': 0.34; 'problem': 0.35; 'add': 0.35; 'really': 0.36; 'thanks': 0.36; 'work?': 0.38; 'to:addr:python- list': 0.38; 'expect': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'solve': 0.60; 'received:173': 0.61; "you're": 0.61; 'making': 0.63; 'useful.': 0.68; 'stated': 0.69; 'blow': 0.84; 'ethan,': 0.84; 'forward.': 0.84; 'ugly,': 0.84; 'wheel': 0.84
Date Sat, 05 Oct 2013 08:58:02 -0700
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: feature requests
References <6782f295-1885-4114-aea8-d785480f3489@googlegroups.com> <mailman.687.1380822918.18130.python-list@python.org> <ca517a69-edc7-468f-9e9e-94e61ea1014c@googlegroups.com>
In-Reply-To <ca517a69-edc7-468f-9e9e-94e61ea1014c@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; 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
X-Source-Args
X-Source-Dir
X-Source-Sender ([173.12.184.233]) [173.12.184.233]:38356
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.753.1380991655.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1380991655 news.xs4all.nl 15881 [2001:888:2000:d::a6]:57478
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:56206

Show key headers only | View raw


On 10/05/2013 05:49 AM, macker wrote:
>>
>> Ugly, menial lines are a clue that a function to hide it could be useful.
>
> Or a clue to add a trivial change elsewhere (hint for Ethan: `return self` at the end of `Thread.start()`).

I'm aware that would solve your issue.  I'm also aware that Python rarely does a 'return self' at the end of methods. 
Since that probably isn't going to change, a helper function is probably your best way forward.


>> Have you verified that this is a problem in Python?
>
> ?

You stated it "would blow up RAM" -- have you actually tested this, or are you making assumptions based on experience 
from other languages, or assumptions based on nothing at all?


>> You could try subclassing.
>
> I could try many things. What this thread is about is trying to fix it on stdlib level, so that people don't have to reinvent the wheel every time.

Did you really expect your idea to just sail through with no opposition, no counter-ideas, no reasons why it might not, 
or would not, work?


> Thanks to Chris for his suggestion. Ethan, please stay away from this thread.

Wow, you're rude.

--
~Ethan~

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

feature requests macker <tester.testerus@gmail.com> - 2013-10-03 09:12 -0700
  Re: feature requests Chris Angelico <rosuav@gmail.com> - 2013-10-04 02:21 +1000
  Re: feature requests Tim Chase <python.list@tim.thechases.com> - 2013-10-03 11:42 -0500
  Re: feature requests Chris Angelico <rosuav@gmail.com> - 2013-10-04 02:42 +1000
  Re: feature requests Ethan Furman <ethan@stoneleaf.us> - 2013-10-03 10:01 -0700
    Re: feature requests macker <tester.testerus@gmail.com> - 2013-10-05 05:49 -0700
      Re: feature requests Ethan Furman <ethan@stoneleaf.us> - 2013-10-05 08:58 -0700
      Re: feature requests Terry Reedy <tjreedy@udel.edu> - 2013-10-05 17:56 -0400

csiph-web