Hi,
Is there a recommended way for writing unittests of
SocketServer.StreamRequestHandler subclasses? I've tried making a
server stub class and a connection stub class with a recv() method
that immediately raises socket.error(errno.ECONNRESET, ).
This works OK, but it means that whatever unittest
Hi
I'm trying to compare some text to find differences other than whitespace.
I seem to be misunderstanding something, since I can't even get a basic
example to work:
In [104]: d = difflib.Differ(charjunk=difflib.IS_CHARACTER_JUNK)
In [105]: list(d.compare([' a'], ['a']))
Out[105]: ['- a', '+
Hi.
I'm doing a FEM (Finite Elements) code in python. It uses a tetrahedral
mesh to represent the geometry. For post-processing one specifies a list
of 3D coordinates to calculate field values at, which requires the tet
that contains a given point. Right now I'm brute-forcing it checking each
tet