Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed2.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'programmer': 0.03; '"this': 0.03; 'exercise': 0.04; 'interpreter': 0.05; 'learn,': 0.09; 'measure': 0.09; 'whatever.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hint': 0.16; 'plan.': 0.16; 's/he': 0.16; 'sat,': 0.16; 'student': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'bit': 0.19; 'trying': 0.19; 'cc:addr:python.org': 0.22; 'own.': 0.24; 'regardless': 0.24; 'cc:2**0': 0.24; 'post': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'quickly': 0.29; 'strongly': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'asked': 0.31; 'another': 0.32; 'programmers': 0.33; 'advice': 0.35; 'something': 0.35; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'done': 0.36; 'two': 0.37; 'sometimes': 0.38; 'little': 0.38; 'bad': 0.39; 'how': 0.40; 'read': 0.60; 'dave': 0.60; 'entire': 0.61; 'course': 0.61; 'first': 0.61; 'soon': 0.63; 'between': 0.67; 'himself,': 0.84; 'is)': 0.84; 'learn.': 0.84; 'negotiate': 0.84; 'to:none': 0.92; 'differences': 0.93; 'obtained': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=OK7GGHASfHWhTMpERW0YDFB+bdQ+J74kc+MRV7d7FMI=; b=iT4BzbGNHi7CRMiyK+HhEkpyaVL7FOfLktgLd7QwxtUgjB/vowbFwA7YrQHOjtQDRU vbnyJKMmw8bENGqLWCN6q1ww8qjjOdTnb0y/D/49/QRN2poZqRBOi3PHlOcifDLOhn6R XoW+9NCu2qeWnoob2GlUokK9j2ger/xlnins6qzrVaxy1YPi3EP9qd79VOU0RgN5Z26/ /Zii57RAFn7mcvs/3TRvMELfTakFfDCp7vkVFGk6by0oRbZA9XDGPRs/CLN71jIeKI5a 7BujZx8NE8ODVT9+BZsuAJ5JMTqk+bn/53KNEHgCkx5Qxb4+cT4cZM2Hj2J6zlUpcAo9 dY0Q== MIME-Version: 1.0 X-Received: by 10.68.194.97 with SMTP id hv1mr107070pbc.162.1396651003545; Fri, 04 Apr 2014 15:36:43 -0700 (PDT) In-Reply-To: References: <533E1B2E.5040608@gmail.com> Date: Sat, 5 Apr 2014 09:36:43 +1100 Subject: Re: converting strings to hex From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396651007 news.xs4all.nl 2861 [2001:888:2000:d::a6]:52292 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69684 On Sat, Apr 5, 2014 at 8:33 AM, Mark H Harris wrote: > On 4/4/14 1:16 AM, James Harris wrote: >> >> YMMV but I thought the OP had done a good job before asking for help and >> then asked about only a tiny bit of it. Some just post a question! > > > Indeed they do. Its a little like negotiating with terrorists. As soon as > you negotiate with the first one, you then must negotiate with all of them. > Bad plan. What, you treat student programmers like terrorists?!? Ouch. > The OP was soooo close, that to give him the help is immoral for two > reasons: 1) it deprives him of the satisfaction of accomplishing the > solution to the puzzle himself, and 2) it deprives the instructor (whoever > she is) of the teachable moment. There is something she is trying to get > Dave to learn, and she really *does* want him to go through the entire > exercise on his own. I strongly disagree. If someone is asking for a hint, it's because s/he is trying to learn. I'm always willing to help someone learn, regardless of whether they're going through a course or currently employed or whatever. Sometimes a small hint can be obtained from the interpreter itself; but often, it takes a measure of experience to grok (one of the differences between the expert and the inexperienced is how quickly a traceback can be read - an expert can often go straight to the line with the problem); a hint from another Python programmer can be immensely helpful, as it can include advice as well as a hard "this works, that doesn't". ChrisA