I believe that there is some answer to any question. It is not the task of the users here to lecture others or criticize them for laziness or stupidity. There is little educational value in sarcasm.

If a question is badly formulated, one can give advice on how to do better.

If important information is missing, one can kindly ask for it.

Someone else being unfriendly or badly mannered is no justification for being so yourself.

Before posting any question about a problem with your code, please read this (twice).

Favorite Answers

3h
revised python subprocess communicate() block
added link to expect
Apr
13
awarded Nice Answer
Apr
10
answered Capturing stderr using py.tests capsys
Apr
10
asked Capturing stderr using py.tests capsys
Apr
6
awarded Caucus
Mar
23
awarded Guru
Mar
17
comment A python class that acts like dict
Thanks for posting this. I have updated my answer to include an up-to-date link for Python 3.
Mar
17
revised A python class that acts like dict
updated link
Mar
15
awarded Nice Question
Mar
12
comment Is it possible to remove the Dock in Lion?
This link is dead.
Mar
9
comment How to use namedtuples in multiple inheritance
This looks promising. I'll have to look into it!
Mar
9
comment How to use namedtuples in multiple inheritance
That works for the example I have given, but the real situation is slightly more complicated. In my real use case I have a class that inherits directly and indirectly from namedtuple. Apparently I have oversimplified my example.
Mar
9
comment How to use namedtuples in multiple inheritance
I don't understand the question. I'd expect everything to behave the same as it would with regular mutable classes, except that it would be immutable. The sub-class would have all the fields of all the base classes. Thus, the example above would be equivalent to namedtuple(Test, ('foo', 'bar')).
Mar
9
revised How to use namedtuples in multiple inheritance
added example, fixed grammar
Mar
9
asked How to use namedtuples in multiple inheritance
Mar
5
comment Weird c++ construct
@Shoter: Welcome to Stackoverflow. Note that linking to relevant code is not a good practice, because links tend to go stale. Please post relevant excerpts in your question (such as types of all involved variables). You should also always post the exact error messages you are getting. This makes it much easier for people to answer your question, and makes it more useful to other people with a similar problem.
Mar
5
comment Weird c++ construct
Reopening because this is not a duplicate. The question was also whether the modification has adverse effects.
Mar
5
answered Weird c++ construct
Mar
5
answered Syntax to call a member function before constructor member initilization
Mar
3
comment IDE for Go capable of refactoring: variable, function, structure and package renaming
Doesn't this do simple string replacement? In that case it is not refactoring.
1 2 3 4 5