Back to Python


Details
Welcome to the restart of GothPy.
We are planning for a restart of the Gothenburg Python User Group - GothPy. The evening will be a mix between a few short talks and a short programming exercise.
The Agenda in short, Talks by Emily Bache, Samuel Ytterbrink and Andrew Dalke.
Some food and drinks are sponsored by HiQ.
We will end the evening with a short hands-on TDD exercise by Emily. We will use Cyber-dojo so you don't need to install anything in advance. We will work in pairs or small groups so bring a laptop if you can but don't worry if you can't.
Talk Description - Andrew Dalke
I was working with a group which had way too many tests. They had a data set that they would re-use for many test cases, even if the variability didn't do anything.
Imagine:
def f(x): return g(x) + 1
where you've already tested g(x) with 1,000 different input. There is no need to test f(x) with the same 1,000 different inputs, because there's only one code path.
However, sometimes there are multiple code paths that are hard to see.
I used Python's tracing ability to identify which code paths are executed by each test fixture, then use Z3 to identify a minimal subset of test cases which provide the same coverage.
Talk Description - Samuel Ytterbrink
Writing an interpreter with the PyPy toolchain
Talk Description - Emily Bache
Teambuilding for Developers. Instead of meaningless icebreakers and games involving spaghetti, let's write code together. Introduction to Cyber-Dojo.

Back to Python