P
P
papa_justify2011-02-28 12:38:44
Python
papa_justify, 2011-02-28 12:38:44

Interview questions for a Python programmer

What questions should you ask a Python programmer to evaluate his knowledge?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
D
DeNnEr, 2011-02-28
@DeNnEr

Design, flows?
Ask what are greenlets, Twisted, Tornado, what is the difference between multiprocessing and threads, what are their differences in Python modules (the test is passed if the person says that the GIL works in both cases, and the modules themselves have the same set of functions).
It's hard to talk about design. Ask them to come up with the simplest Singleton and explain what alternatives there are to this solution. He will say something about meta-classes, about the fact that the modules themselves are a singleton - the test is passed.
Ask what are circular dependencies. Give an example of a code with such a problem and ask to solve it or argue why there is no way out. The test is passed if the person moves all run-time used imports to the end of the file or redesigns the system to offer a variant without ring dependencies.

I
int0x80, 2011-03-01
@int0x80

pyobject.ru/blog/2010/02/04/python-quiz/ - quite an interesting list of questions

H
homm, 2011-02-28
@homm

What is the difference between new and old classes?
Why didn't everyone just switch to the new ones and forget about the old ones?
From which version the old classes are not supported?
What is the difference between (i for i in arr) and [i for i in arr]?

D
deex, 2011-11-14
@deex

It would be great to see a similar FAQ with answers on Habré :)

T
thenno, 2016-04-12
@thenno

I wrote basic python interview questions here: https://thenno.me/blog/python-interview.html

V
VasilKo, 2017-11-28
@VasilKo

well, there are a lot of interesting things here and from what they called - and not yet))
vas3k.ru/blog/270
plus, for example, the question of how it can be that float(10**53) +1 < 10**53 :- )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question