Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'exception': 0.03; 'syntax': 0.03; 'argument': 0.04; 'subject:Python': 0.05; 'classes,': 0.05; 'pop': 0.05; 'bits': 0.07; 'unittest': 0.07; 'python': 0.09; '(although': 0.09; 'added.': 0.09; 'explanation': 0.09; 'high-level': 0.09; 'to:addr:comp.lang.python': 0.09; 'truncated': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.10; ':-)': 0.13; 'do,': 0.15; '(like': 0.15; 'essential': 0.15; "hasn't": 0.15; '"import': 0.16; '"python': 0.16; '-tkc': 0.16; 'csv': 0.16; 'debugging,': 0.16; 'delimiters': 0.16; 'foo"': 0.16; 'history:': 0.16; 'included"': 0.16; 'it".': 0.16; 'new-style': 0.16; 'pdb': 0.16; 'pythonic': 0.16; 'roy': 0.16; 'silly': 0.16; 'sqlite3': 0.16; 'version?': 0.16; 'zipfile': 0.16; 'wrote:': 0.17; 'certainly': 0.17; 'pieces': 0.17; 'tim': 0.18; '>>>': 0.18; 'appears': 0.18; 'module': 0.19; 'code.': 0.20; 'skip:= 10': 0.20; 'fairly': 0.21; 'decorators': 0.22; 'libraries': 0.22; 'subject:Questions': 0.22; "i'd": 0.22; 'programming': 0.23; 'monday,': 0.23; 'somebody': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'allows': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'candidate': 0.26; 'older': 0.27; 'order.': 0.27; 'topic': 0.27; 'question': 0.27; '(such': 0.27; "doesn't": 0.28; 'chase': 0.29; 'gil': 0.29; 'piece': 0.29; 'questions.': 0.29; 'manual': 0.29; 'this.': 0.29; 'usually': 0.30; 'worked': 0.30; 'stuff': 0.30; 'expect': 0.31; 'code': 0.31; 'file': 0.32; 'getting': 0.33; 'asked': 0.33; 'much.': 0.33; 'skip:j 20': 0.33; 'received:google.com': 0.34; 'along': 0.35; 'open': 0.35; 'sometimes': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'ability': 0.36; 'but': 0.36; "i'll": 0.36; 'enough': 0.36; 'possible': 0.37; 'october': 0.37; 'level': 0.37; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'object': 0.38; 'your': 0.60; 'july': 0.60; 'skip:u 10': 0.60; 'most': 0.61; 'between': 0.63; 'details': 0.63; 'more': 0.63; 'smith': 0.71; 'hoping': 0.72; 'gotten': 0.75; 'satisfied': 0.83; 'basics.': 0.84; 'hardly': 0.84; 'heh.': 0.84; 'subject:Interview': 0.84; 'zen': 0.84; 'careful': 0.91 Newsgroups: comp.lang.python Date: Mon, 9 Jul 2012 13:11:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=204.244.13.2; posting-account=US_9zQoAAABOtpKbrs9cDfYpbT6eMPnL References: <1193768041.349129.26350@v3g2000hsg.googlegroups.com> <3e0ef383-9615-4b4d-89c1-e5519971189f@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 204.244.13.2 MIME-Version: 1.0 Subject: Re: Python Interview Questions From: Demian Brecht To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, Roy Smith 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: , Message-ID: Lines: 77 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341864716 news.xs4all.nl 6877 [2001:888:2000:d::a6]:41636 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25092 On Monday, 9 July 2012 10:40:59 UTC-7, Tim Chase wrote: > On 07/09/12 08:25, Roy Smith wrote: > >> On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote: > >=20 > >>> - more detailed questions about the std. libraries (such as > >>> datetime/email/csv/zipfile/networking/optparse/unittest) > >=20 > > You need to be careful when you ask questions like this. I would expec= t=20 > > somebody to be aware of those and have a high-level understanding of=20 > > what they do, but certainly not remember the details of the exact synta= x=20 > > and argument order. Even with stuff I use everyday (like unittest and= =20 > > datetime), I have a browser open to the reference manual most of the=20 > > time. >=20 > Yeah, the aim isn't to grill them on the minutia, but to get a > feeling that they know the basics. The zipfile module offers a > ZipFile object for reading/writing zip files with or without > compression. The CSV file allows for reading/writing CSV files with > definable delimiters and quoting/escaping. Etc. >=20 >=20 > >>> - questions about PDB > >=20 > > Heh. I would answer that with, "Python Debugger? I've never used it". >=20 > The ability to know off the top of your head that it's the "Python > Debugger" is more than enough :-) That's just first-order > ignorance: you know what you don't know and can spend a few minutes > reading up on it if you need it. The second[or higher]-order > ignorance of not knowing what pdb is (or, if you need more powerful > debugging, how to do it) is sign the person hasn't been programming > in Python much. >=20 > >>> Python History: > >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>> - decorators added in which version? > >>> > >>> - "batteries included" SQL-capible DB in which version? > >>> > >>> - the difference between "class Foo" and "class Foo(object)" > >>> > >>> - questions from "import this" about pythonic code > >=20 > > With the exception of the question about new-style classes, these are= =20 > > silly questions. I was around when both decorators and sqlite3 were=20 > > added. I couldn't possible tell you when to any precision better than= =20 > > "2 dot something".=20 >=20 > I'd even be satisfied if a person just knew that such features > weren't there all along and might need to be worked around for older > deployments. >=20 > > As for the zen of python, it's cute, and a piece of python > > folklore, but hardly an essential part of being a good python p >=20 > [Ed: something appears to have gotten truncated there] Yeah, it's > more about a person being sufficiently steeped in python to know > bits and pieces of the zen, and their ability to recognize/create > pythonic code. I've seen enough Java-written-in-Python to know what > I don't want :-) >=20 > -tkc Definitely appreciate your approach, I've asked similar questions when inte= rviewing. I also usually like to ask what a candidate likes and dislikes about Python= , hoping for the GIL to creep up, along with an explanation as to what it i= s, implementations that don't have it along with methods of getting around = the lock (although that would be a fairly advanced topic IMHO). If it doesn= 't come up, sometimes I'll pop it in depending on their level of experience= .