Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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.033 X-Spam-Evidence: '*H*': 0.93; '*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; '"w")': 0.16; 'candidates.': 0.16; 'for,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 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; "aren't": 0.24; 'port.': 0.24; 'fine': 0.24; 'paul': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'skills.': 0.29; 'talented': 0.30; 'message- id:@mail.gmail.com': 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; 'received:google.com': 0.35; 'there': 0.35; 'method': 0.36; 'area': 0.37; 'skip:o 20': 0.38; 'nov': 0.38; 'to:addr:python- list': 0.38; 'little': 0.38; '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; 'believe': 0.68; 'skill': 0.68; 'useful.': 0.68; 'skip:w 30': 0.69; 'subject:your': 0.76; 'assessments': 0.84; 'pickled': 0.84; 'technically': 0.84; '2013': 0.98 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:to :content-type; bh=KKN1Vg5i3+5wU+PIRVZOyY/a3vyN2z6rVQVPBTz3Pm0=; b=uMUOGcMTjrL9t2aAjdurtLhm/gRWjk8OdeP3AuJOGjc/43P3yAgq1vMs5feFH5QdNw Wb2Szf+dEVS21P9SCRrr0VnrsbAdRCjFelxgOknEpbDKUuYpV/eWm07ZTIdlHiGcK5bd exHIjp78vh18NDkMbXhb4sTIRHebcZC1JTtU9BcbPCwoq5duidECLC33L3gw6CSU9FIY 7xibLZ4G+TRW+rklGi3H2/ERUysBTkh46Nsj8c+o6tC4wCCFLte/Sp/NNQGFs1vGAn0w 0YVf7/SWX29EGqxqPDy5/wyFXBuKN+VHs/pdX4CBVoKq4SeWB8KDoJMcVmfRdIIKFhxT K7Jw== MIME-Version: 1.0 X-Received: by 10.66.159.193 with SMTP id xe1mr6778099pab.166.1383785954114; Wed, 06 Nov 2013 16:59:14 -0800 (PST) In-Reply-To: <82328ec8-7178-4a17-abfe-13d444fab9cf@googlegroups.com> References: <82328ec8-7178-4a17-abfe-13d444fab9cf@googlegroups.com> Date: Thu, 7 Nov 2013 11:59:14 +1100 Subject: Re: Show off your Python chops and compete with others From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383785963 news.xs4all.nl 15977 [2001:888:2000:d::a6]:60825 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58611 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?""" Sounds like Python history trivia more than a coding challenge, but if that's what you want to go for, sure. ChrisA