Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '(at': 0.04; 'subject:Python': 0.06; 'derived': 0.09; 'measure': 0.09; 'recruiters': 0.09; 'wrong,': 0.09; 'python': 0.11; '"from"': 0.16; '"w")': 0.16; 'candidates.': 0.16; 'for,': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'sure.': 0.16; 'think.': 0.16; 'trivia': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'platforms': 0.22; 'example': 0.22; 'coding': 0.22; 'header:User-Agent:1': 0.23; "aren't": 0.24; 'port.': 0.24; 'fine': 0.24; 'paul': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'skills.': 0.29; 'talented': 0.30; '(which': 0.31; 'bunch': 0.31; 'dropped': 0.31; 'maintains': 0.31; 'pickle': 0.31; 'file': 0.32; 'languages': 0.32; "we're": 0.32; 'open': 0.33; "i'd": 0.34; 'could': 0.34; 'subject:with': 0.35; 'classes': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; 'method': 0.36; 'area': 0.37; 'skip:o 20': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'ago,': 0.61; 'excited': 0.61; 'new': 0.61; 'making': 0.63; 'hear': 0.63; 'more': 0.64; 'different': 0.65; 'love': 0.65; 'forward': 0.65; 'finally': 0.65; 'header:Reply-To:1': 0.67; 'believe': 0.68; 'skill': 0.68; 'useful.': 0.68; 'skip:w 30': 0.69; 'reply-to:no real name:2**0': 0.71; 'subject:your': 0.76; 'assessments': 0.84; 'pickled': 0.84; 'reply-to:addr:python.org': 0.84; 'technically': 0.84; '2013': 0.98 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=J66TsmXS c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=2LCq-pQfA8cA:10 a=RDcumMo2fZIA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=FM7cQZTeImcA:10 a=pGLkceISAAAA:8 a=wprb7Bz1AAAA:8 a=gy2zQ8frMMBVX3D0QFYA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 X-AUTH: mrabarnett:2500 Date: Thu, 07 Nov 2013 01:12:34 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Show off your Python chops and compete with others References: <82328ec8-7178-4a17-abfe-13d444fab9cf@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383786753 news.xs4all.nl 15882 [2001:888:2000:d::a6]:45170 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58614 On 07/11/2013 00:59, Chris Angelico wrote: > On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward > wrote: >> Thought this group would appreciate this: www.metabright.com/challenges/python >> >> MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright to find outrageously skilled job candidates. >> >> Python is a new area of expertise for us. We make "Challenges" for a bunch of languages and we're excited to finally have Python released. Give it a shot -- I'd love to hear what you think. > > """How could you open a file c:\scores.dat to write in binary? > > outfile = open("c:\\scores.dat", "w") > outfile = open("c:\scores.dat", "a") > outfile = open("c:\\scores.dat", "w") > outfile = open("c:\\scores.dat", "wb")""" > > Not technically wrong, but stylistically suspect; I would recommend > using forward slashes (which work fine on Windows) and avoiding the > drive letter, both of which avoid making your example > Windows-specific. (At least, I don't think there are any other > platforms Python supports that use drive letters; OS/2 support was > dropped a little while ago, though I believe Paul Smedley still > maintains a port. But I digress.) > > """Which method will write a pickled representation of the object to > an open file?""" > > Method names without object names aren't all that useful. Do you mean > "Which method of the pickle module..."? > > """From which languages are Python classes derived from?""" > Does it really have the word "from" twice? > Sounds like Python history trivia more than a coding challenge, but if > that's what you want to go for, sure. >